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
29,600
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>::get_binary() const
monkey531[P]llama/common/json.hpp
const binary_t& get_binary() const { if (!is_binary()) { JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this)); } return *get_ptr<const binary_t*>(); }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_binary() const: pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x8, (%rdi) jne 0x95e4f movq 0x8(%r14), %rax addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x19370 movq %rax, %rbx movq %r14, %rdi callq 0x2f7ce leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x294cc(%rip), %rsi # 0xbf33f leaq 0x10(%rsp), %rdi callq 0x4c7ed movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x4c488 xorl %ebp, %ebp leaq 0x57082(%rip), %rsi # 0xecf20 leaq -0x6a557(%rip), %rdx # 0x2b94e movq %rbx, %rdi callq 0x19b70 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x95ed3 movq 0x20(%rsp), %rsi incq %rsi callq 0x196b0 jmp 0x95ed3 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x95ee0 movq %rbx, %rdi callq 0x19510 movq %r14, %rdi callq 0x19be0
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 8 jnz short loc_95E4F mov rax, [r14+8] add rsp, 30h pop rbx pop r14 pop rbp retn loc_95E4F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeBina; "type must be binary, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_95ED3 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_95ED3 mov r14, rax mov bpl, 1 loc_95ED3: test bpl, bpl jz short loc_95EE0 mov rdi, rbx; void * call ___cxa_free_exception loc_95EE0: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary( long long a1) { nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v3; // [rsp+8h] [rbp-40h] BYREF _QWORD v4[2]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 != 8 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); 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>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v4, (long long)"type must be binary, but is ", &v3); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, v4); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return *(_QWORD *)(a1 + 8); }
get_binary: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x8 JNZ 0x00195e4f MOV RAX,qword ptr [R14 + 0x8] ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_00195e4f: MOV EDI,0x20 CALL 0x00119370 MOV RBX,RAX MOV RDI,R14 CALL 0x0012f7ce LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_00195e6c: LEA RSI,[0x1bf33f] LEA RDI,[RSP + 0x10] CALL 0x0014c7ed MOV BPL,0x1 LAB_00195e80: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x0014c488 XOR EBP,EBP LEA RSI,[0x1ecf20] LEA RDX,[0x12b94e] MOV RDI,RBX CALL 0x00119b70
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::get_binary() const */ int8 __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 uVar1; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x8) { return *(int8 *)(this + 8); } uVar1 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 00195e6c to 00195e7c has its CatchHandler @ 00195ecd */ detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be binary, but is ",&local_40); /* try { // try from 00195e80 to 00195eac has its CatchHandler @ 00195ead */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0x12e,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception); }
29,601
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&)
monkey531[P]llama/common/minja.hpp
static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) { std::map<std::string, size_t> named_positions; for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i; return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value { auto args_obj = Value::object(); std::vector<bool> provided_args(params.size()); for (size_t i = 0, n = args.args.size(); i < n; i++) { auto & arg = args.args[i]; if (i < params.size()) { args_obj.set(params[i], arg); provided_args[i] = true; } else { throw std::runtime_error("Too many positional params for " + fn_name); } } for (auto & [name, value] : args.kwargs) { auto named_pos_it = named_positions.find(name); if (named_pos_it == named_positions.end()) { throw std::runtime_error("Unknown argument " + name + " for function " + fn_name); } provided_args[named_pos_it->second] = true; args_obj.set(name, value); } return fn(context, args_obj); }); }
O0
cpp
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&): subq $0x158, %rsp # imm = 0x158 movq %rdi, 0x30(%rsp) movq %rdi, %rax movq %rax, 0x38(%rsp) movq %rdi, 0x150(%rsp) movq %rsi, 0x148(%rsp) movq %rdx, 0x140(%rsp) movq %rcx, 0x138(%rsp) leaq 0x108(%rsp), %rdi callq 0x16f640 movq $0x0, 0x100(%rsp) movq 0x140(%rsp), %rdi callq 0x8e020 movq %rax, 0xf8(%rsp) movq 0x100(%rsp), %rax cmpq 0xf8(%rsp), %rax jae 0x1d87b1 movq 0x100(%rsp), %rsi movq %rsi, 0x20(%rsp) movq 0x140(%rsp), %rdi callq 0xf7df0 movq %rax, %rsi leaq 0x108(%rsp), %rdi callq 0x16f650 movq %rax, 0x28(%rsp) jmp 0x1d8775 movq 0x28(%rsp), %rax movq 0x20(%rsp), %rcx movq %rcx, (%rax) movq 0x100(%rsp), %rax addq $0x1, %rax movq %rax, 0x100(%rsp) jmp 0x1d8732 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0x1d890d leaq 0x40(%rsp), %rdi movq %rdi, 0x18(%rsp) movq 0x140(%rsp), %rsi callq 0x8e7d0 jmp 0x1d87ca leaq 0x58(%rsp), %rdi movq %rdi, 0x10(%rsp) movq 0x148(%rsp), %rsi callq 0x5a1f0 jmp 0x1d87e3 leaq 0x78(%rsp), %rdi movq %rdi, 0x8(%rsp) leaq 0x108(%rsp), %rsi callq 0x16f740 jmp 0x1d87fc leaq 0xa8(%rsp), %rdi movq 0x138(%rsp), %rsi callq 0x16f770 jmp 0x1d8813 leaq 0xc8(%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0x1d8930 jmp 0x1d8827 movq 0x30(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x13ae00 jmp 0x1d883b leaq 0xc8(%rsp), %rdi callq 0x13af30 leaq 0x40(%rsp), %rdi callq 0x1d89e0 leaq 0x108(%rsp), %rdi callq 0x16f820 movq 0x38(%rsp), %rax addq $0x158, %rsp # imm = 0x158 retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0x1d88c0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0x1d88b6 movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) callq 0x16f820 movq 0x10(%rsp), %rdi callq 0x5b588 movq 0x18(%rsp), %rdi callq 0x631d0 jmp 0x1d890d movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0x1d8903 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) leaq 0xc8(%rsp), %rdi callq 0x13af30 leaq 0x40(%rsp), %rdi callq 0x1d89e0 leaq 0x108(%rsp), %rdi callq 0x16f820 movq 0xf0(%rsp), %rdi callq 0x5aba0 nopw (%rax,%rax)
_ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE_0: sub rsp, 158h mov [rsp+158h+var_128], rdi mov rax, rdi mov [rsp+158h+var_120], rax mov [rsp+158h+var_8], rdi mov [rsp+158h+var_10], rsi mov [rsp+158h+var_18], rdx mov [rsp+158h+var_20], rcx lea rdi, [rsp+158h+var_50] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEC2Ev; std::map<std::string,ulong>::map(void) mov [rsp+158h+var_58], 0 mov rdi, [rsp+158h+var_18] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov [rsp+158h+var_60], rax loc_1D8732: mov rax, [rsp+158h+var_58] cmp rax, [rsp+158h+var_60] jnb short loc_1D87B1 mov rsi, [rsp+158h+var_58] mov [rsp+158h+var_138], rsi mov rdi, [rsp+158h+var_18] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm; std::vector<std::string>::operator[](ulong) mov rsi, rax lea rdi, [rsp+158h+var_50] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&) mov [rsp+158h+var_130], rax jmp short $+2 loc_1D8775: mov rax, [rsp+158h+var_130] mov rcx, [rsp+158h+var_138] mov [rax], rcx mov rax, [rsp+158h+var_58] add rax, 1 mov [rsp+158h+var_58], rax jmp short loc_1D8732 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp loc_1D890D loc_1D87B1: lea rdi, [rsp+158h+var_118] mov [rsp+158h+var_140], rdi mov rsi, [rsp+158h+var_18] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) jmp short $+2 loc_1D87CA: lea rdi, [rsp+158h+var_100] mov [rsp+158h+var_148], rdi mov rsi, [rsp+158h+var_10] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_1D87E3: lea rdi, [rsp+158h+var_E0] mov [rsp+158h+var_150], rdi lea rsi, [rsp+158h+var_50] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEC2ERKSC_; std::map<std::string,ulong>::map(std::map<std::string,ulong> const&) jmp short $+2 loc_1D87FC: lea rdi, [rsp+158h+var_B0] mov rsi, [rsp+158h+var_20] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) jmp short $+2 loc_1D8813: lea rdi, [rsp+158h+var_90] lea rsi, [rsp+158h+var_118] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEC2IZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISH_SaISH_EERKS_IFS1_S6_RS1_EEE3$_0vEEOT__0; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::simple_function(std::string const&,std::vector<std::string> const&,std::function const&<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>)::$_0,void>(minja::simple_function(std::string const&,std::vector<std::string> const&,std::function const&<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>)::$_0 &&) jmp short $+2 loc_1D8827: mov rdi, [rsp+158h+var_128] lea rsi, [rsp+158h+var_90] call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&) jmp short $+2 loc_1D883B: lea rdi, [rsp+158h+var_90] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEED2Ev; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::~function() lea rdi, [rsp+158h+var_118] call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev_0; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0() lea rdi, [rsp+158h+var_50] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEED2Ev; std::map<std::string,ulong>::~map() mov rax, [rsp+158h+var_120] add rsp, 158h retn mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp short loc_1D88C0 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp short loc_1D88B6 mov rdi, [rsp+arg_0] mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEED2Ev; std::map<std::string,ulong>::~map() loc_1D88B6: mov rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1D88C0: mov rdi, [rsp+arg_10] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_1D890D mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp short loc_1D8903 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax lea rdi, [rsp+arg_C0] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEED2Ev; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::~function() loc_1D8903: lea rdi, [rsp+arg_38] call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev_0; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0() loc_1D890D: lea rdi, [rsp+arg_100] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEED2Ev; std::map<std::string,ulong>::~map() mov rdi, [rsp+arg_E8] call __Unwind_Resume
long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4) { long long v4; // rax int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d int v9; // edx int v10; // ecx int v11; // r8d int v12; // r9d _QWORD v14[3]; // [rsp+40h] [rbp-118h] BYREF _BYTE v15[32]; // [rsp+58h] [rbp-100h] BYREF _BYTE v16[48]; // [rsp+78h] [rbp-E0h] BYREF _BYTE v17[32]; // [rsp+A8h] [rbp-B0h] BYREF _BYTE v18[48]; // [rsp+C8h] [rbp-90h] BYREF unsigned long long v19; // [rsp+F8h] [rbp-60h] unsigned long long v20; // [rsp+100h] [rbp-58h] _BYTE v21[48]; // [rsp+108h] [rbp-50h] BYREF long long v22; // [rsp+138h] [rbp-20h] _QWORD *v23; // [rsp+140h] [rbp-18h] long long v24; // [rsp+148h] [rbp-10h] long long v25; // [rsp+150h] [rbp-8h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; std::map<std::string,unsigned long>::map((long long)v21); v20 = 0LL; v19 = std::vector<std::string>::size(v23); while ( v20 < v19 ) { v4 = std::vector<std::string>::operator[](v23, v20); *(_QWORD *)std::map<std::string,unsigned long>::operator[]((long long)v21, v4) = v20++; } std::vector<std::string>::vector(v14, v23); std::string::basic_string(v15, v24); std::map<std::string,unsigned long>::map(v16, v21); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function( (std::_Function_base *)v17, v22); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::simple_function(std::string const&,std::vector<std::string> const&,std::function const&<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>)::$_0,void>( (unsigned int)v18, (unsigned int)v14, v5, v6, v7, v8); minja::Value::callable(a1, (long long)v18, v9, v10, v11, v12); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::~function((std::_Function_base *)v18); minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0(v14); std::map<std::string,unsigned long>::~map((long long)v21); return a1; }
29,602
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&)
monkey531[P]llama/common/minja.hpp
static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) { std::map<std::string, size_t> named_positions; for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i; return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value { auto args_obj = Value::object(); std::vector<bool> provided_args(params.size()); for (size_t i = 0, n = args.args.size(); i < n; i++) { auto & arg = args.args[i]; if (i < params.size()) { args_obj.set(params[i], arg); provided_args[i] = true; } else { throw std::runtime_error("Too many positional params for " + fn_name); } } for (auto & [name, value] : args.kwargs) { auto named_pos_it = named_positions.find(name); if (named_pos_it == named_positions.end()) { throw std::runtime_error("Unknown argument " + name + " for function " + fn_name); } provided_args[named_pos_it->second] = true; args_obj.set(name, value); } return fn(context, args_obj); }); }
O1
cpp
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rcx, 0x28(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, 0x20(%rsp) leaq 0xc0(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movq 0x8(%rdx), %rbp subq (%rdx), %rbp je 0x7cd1c sarq $0x5, %rbp cmpq $0x1, %rbp adcq $0x0, %rbp xorl %ebx, %ebx leaq 0xb8(%rsp), %r13 xorl %r12d, %r12d movq (%r15), %rsi addq %rbx, %rsi movq %r13, %rdi callq 0xb1980 movq %r12, (%rax) incq %r12 addq $0x20, %rbx cmpq %r12, %rbp jne 0x7ccff leaq 0x30(%rsp), %rdi movq %r15, %rsi callq 0x59398 leaq 0x48(%rsp), %rdi leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq (%r14), %rsi movq 0x8(%r14), %rdx addq %rsi, %rdx callq 0x25d66 leaq 0x68(%rsp), %r14 leaq 0xb8(%rsp), %rsi movq %r14, %rdi callq 0xb1dda leaq 0x98(%rsp), %r15 movq %r15, %rdi movq 0x28(%rsp), %rsi callq 0xb19fc xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movaps %xmm0, (%rsp) movl $0x88, %edi callq 0x1b910 movq %rax, %r12 leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x59398 leaq 0x18(%r12), %rdi leaq 0x28(%r12), %rbp movq %rbp, 0x18(%r12) movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx addq %rsi, %rdx callq 0x25d66 leaq 0x40(%r12), %rax movq 0x78(%rsp), %rcx testq %rcx, %rcx je 0x7ce07 leaq 0x70(%rsp), %rdx movl (%rdx), %esi movl %esi, 0x40(%r12) movq %rcx, 0x48(%r12) movups 0x10(%rdx), %xmm0 movups %xmm0, 0x50(%r12) movq %rax, 0x8(%rcx) leaq 0x90(%rsp), %rax movq (%rax), %rcx movq %rcx, 0x60(%r12) movq $0x0, -0x18(%rax) movq %rdx, -0x10(%rax) movq %rdx, -0x8(%rax) jmp 0x7ce28 movl $0x0, 0x40(%r12) movq $0x0, 0x48(%r12) movq %rax, 0x50(%r12) movq %rax, 0x58(%r12) leaq 0x60(%r12), %rax movq $0x0, (%rax) leaq 0x68(%r12), %rdi movq %r15, %rsi callq 0xb19fc movq %rsp, %rsi movq %r12, (%rsi) leaq 0x1d5(%rip), %rax # 0x7d01e movq %rax, 0x18(%rsi) leaq 0x858(%rip), %rax # 0x7d6ac movq %rax, 0x10(%rsi) movq 0x20(%rsp), %rbx movq %rbx, %rdi callq 0x9b3d6 movq 0x10(%rsp), %rax testq %rax, %rax je 0x7ce7c movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0xa8(%rsp), %rax testq %rax, %rax je 0x7ce96 movq %r15, %rdi movq %r15, %rsi movl $0x3, %edx callq *%rax movq %r14, %rdi callq 0xb203c movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x7ceb5 movq 0x58(%rsp), %rsi incq %rsi callq 0x1b940 leaq 0x30(%rsp), %rdi callq 0x258d6 leaq 0xb8(%rsp), %rdi callq 0xb203c movq %rbx, %rax addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x7cf75 jmp 0x7cf75 movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0x7cf69 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x7cf69 jmp 0x7cf75 movq %rax, %rbx movq %r12, %rdi addq $0x38, %rdi callq 0xb203c movq 0x18(%r12), %rdi cmpq %rbp, %rdi je 0x7cf33 movq (%rbp), %rsi incq %rsi callq 0x1b940 jmp 0x7cf33 movq %rax, %rbx movq %r12, %rdi callq 0x258d6 jmp 0x7cf40 movq %rax, %rbx movl $0x88, %esi movq %r12, %rdi callq 0x1b940 jmp 0x7cf52 movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0x7cf69 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0x30(%rsp), %rdi callq 0x7cfd0 jmp 0x7cfba movq %rax, %rdi callq 0x25c97 movq %rax, %rbx movq %r14, %rdi callq 0xb203c jmp 0x7cf8d movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x7cfa9 movq 0x58(%rsp), %rsi incq %rsi callq 0x1b940 jmp 0x7cfa9 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x258d6 jmp 0x7cfba jmp 0x7cfb7 movq %rax, %rbx leaq 0xb8(%rsp), %rdi callq 0xb203c movq %rbx, %rdi callq 0x1c040 nop
_ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov [rsp+118h+var_F0], rcx mov r15, rdx mov r14, rsi mov [rsp+118h+var_F8], rdi lea rax, [rsp+118h+var_58] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov rbp, [rdx+8] sub rbp, [rdx] jz short loc_7CD1C sar rbp, 5 cmp rbp, 1 adc rbp, 0 xor ebx, ebx lea r13, [rsp+118h+var_60] xor r12d, r12d loc_7CCFF: mov rsi, [r15] add rsi, rbx mov rdi, r13 call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&) mov [rax], r12 inc r12 add rbx, 20h ; ' ' cmp rbp, r12 jnz short loc_7CCFF loc_7CD1C: lea rdi, [rsp+118h+var_E8] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [rsp+118h+var_D0] lea r13, [rsp+118h+var_C0] mov [r13-10h], r13 mov rsi, [r14] mov rdx, [r14+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r14, [rsp+118h+var_B0] lea rsi, [rsp+118h+var_60] mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&) lea r15, [rsp+118h+var_80] mov rdi, r15 mov rsi, [rsp+118h+var_F0] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) xorps xmm0, xmm0 movaps [rsp+118h+var_108], xmm0 movaps [rsp+118h+var_118], xmm0 mov edi, 88h; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax lea rsi, [rsp+118h+var_E8] mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [r12+18h] lea rbp, [r12+28h] mov [r12+18h], rbp mov rsi, [rsp+118h+var_D0] mov rdx, [rsp+118h+var_C8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, [r12+40h] mov rcx, [rsp+118h+var_A0] test rcx, rcx jz short loc_7CE07 lea rdx, [rsp+118h+var_A8] mov esi, [rdx] mov [r12+40h], esi mov [r12+48h], rcx movups xmm0, xmmword ptr [rdx+10h] movups xmmword ptr [r12+50h], xmm0 mov [rcx+8], rax lea rax, [rsp+118h+var_88] mov rcx, [rax] mov [r12+60h], rcx mov qword ptr [rax-18h], 0 mov [rax-10h], rdx mov [rax-8], rdx jmp short loc_7CE28 loc_7CE07: mov dword ptr [r12+40h], 0 mov qword ptr [r12+48h], 0 mov [r12+50h], rax mov [r12+58h], rax lea rax, [r12+60h] loc_7CE28: mov qword ptr [rax], 0 lea rdi, [r12+68h] mov rsi, r15 call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) mov rsi, rsp mov [rsi], r12 lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8_; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax mov rbx, [rsp+118h+var_F8] mov rdi, rbx call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_7CE7C mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_7CE7C: mov rax, [rsp+118h+var_70] test rax, rax jz short loc_7CE96 mov rdi, r15 mov rsi, r15 mov edx, 3 call rax loc_7CE96: mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_7CEB5 mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CEB5: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rax, rbx add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp loc_7CF75 jmp loc_7CF75 mov rbx, rax mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_7CF69 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_7CF69 jmp short loc_7CF75 mov rbx, rax mov rdi, r12 add rdi, 38h ; '8' call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [r12+18h]; void * cmp rdi, rbp jz short loc_7CF33 mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7CF33 mov rbx, rax loc_7CF33: mov rdi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_7CF40 mov rbx, rax loc_7CF40: mov esi, 88h; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7CF52 mov rbx, rax loc_7CF52: mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_7CF69 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_7CF69: lea rdi, [rsp+118h+var_E8] call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0() jmp short loc_7CFBA loc_7CF75: mov rdi, rax call __clang_call_terminate mov rbx, rax mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() jmp short loc_7CF8D mov rbx, rax loc_7CF8D: mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_7CFA9 mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7CFA9 mov rbx, rax loc_7CFA9: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_7CFBA jmp short $+2 loc_7CFB7: mov rbx, rax loc_7CFBA: lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4) { long long v5; // rbp long long v6; // rbp long long v7; // rbx long long v8; // r12 long long v9; // r12 long long v10; // rax long long v11; // rcx long long *v12; // rax long long v13; // rbx int v14; // edx int v15; // ecx int v16; // r8d int v17; // r9d __int128 v19; // [rsp+0h] [rbp-118h] BYREF __int128 v20; // [rsp+10h] [rbp-108h] long long v21; // [rsp+20h] [rbp-F8h] long long v22; // [rsp+28h] [rbp-F0h] _QWORD v23[3]; // [rsp+30h] [rbp-E8h] BYREF void *v24[2]; // [rsp+48h] [rbp-D0h] BYREF _QWORD v25[2]; // [rsp+58h] [rbp-C0h] BYREF _BYTE v26[8]; // [rsp+68h] [rbp-B0h] BYREF int v27; // [rsp+70h] [rbp-A8h] BYREF long long v28; // [rsp+78h] [rbp-A0h] __int128 v29; // [rsp+80h] [rbp-98h] long long v30; // [rsp+90h] [rbp-88h] BYREF _BYTE v31[16]; // [rsp+98h] [rbp-80h] BYREF void ( *v32)(_BYTE *, _BYTE *, long long); // [rsp+A8h] [rbp-70h] _BYTE v33[8]; // [rsp+B8h] [rbp-60h] BYREF int v34; // [rsp+C0h] [rbp-58h] BYREF long long v35; // [rsp+C8h] [rbp-50h] int *v36; // [rsp+D0h] [rbp-48h] int *v37; // [rsp+D8h] [rbp-40h] long long v38; // [rsp+E0h] [rbp-38h] v22 = a4; v21 = a1; v34 = 0; v35 = 0LL; v36 = &v34; v37 = &v34; v38 = 0LL; v5 = a3[1] - *a3; if ( v5 ) { v6 = (v5 >> 5 == 0) + (v5 >> 5); v7 = 0LL; v8 = 0LL; do { *(_QWORD *)std::map<std::string,unsigned long>::operator[](v33, v7 + *a3) = v8++; v7 += 32LL; } while ( v6 != v8 ); } std::vector<std::string>::vector((long long)v23, a3); v24[0] = v25; std::string::_M_construct<char *>(v24, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree( v26, v33); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v31, v22); v20 = 0LL; v19 = 0LL; v9 = operator new(0x88uLL); std::vector<std::string>::vector(v9, v23); *(_QWORD *)(v9 + 24) = v9 + 40; std::string::_M_construct<char *>((_QWORD *)(v9 + 24), (_BYTE *)v24[0], (long long)v24[0] + (unsigned long long)v24[1]); v10 = v9 + 64; v11 = v28; if ( v28 ) { *(_DWORD *)(v9 + 64) = v27; *(_QWORD *)(v9 + 72) = v11; *(_OWORD *)(v9 + 80) = v29; *(_QWORD *)(v11 + 8) = v10; v12 = &v30; *(_QWORD *)(v9 + 96) = v30; v28 = 0LL; *(_QWORD *)&v29 = &v27; *((_QWORD *)&v29 + 1) = &v27; } else { *(_DWORD *)(v9 + 64) = 0; *(_QWORD *)(v9 + 72) = 0LL; *(_QWORD *)(v9 + 80) = v10; *(_QWORD *)(v9 + 88) = v10; v12 = (long long *)(v9 + 96); } *v12 = 0LL; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v9 + 104, v31); *((_QWORD *)&v20 + 1) = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke; *(_QWORD *)&v20 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager; v13 = v21; minja::Value::callable(v21, (unsigned int)&v19, v14, v15, v16, v17, v9, *((long long *)&v19 + 1)); if ( (_QWORD)v20 ) ((void ( *)(__int128 *, __int128 *, long long))v20)(&v19, &v19, 3LL); if ( v32 ) v32(v31, v31, 3LL); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v26); if ( v24[0] != v25 ) operator delete(v24[0], v25[0] + 1LL); std::vector<std::string>::~vector(v23); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v33); return v13; }
simple_function: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV qword ptr [RSP + 0x28],RCX MOV R15,RDX MOV R14,RSI MOV qword ptr [RSP + 0x20],RDI LEA RAX,[RSP + 0xc0] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX MOV qword ptr [RAX + 0x20],RCX MOV RBP,qword ptr [RDX + 0x8] SUB RBP,qword ptr [RDX] JZ 0x0017cd1c SAR RBP,0x5 CMP RBP,0x1 ADC RBP,0x0 XOR EBX,EBX LEA R13,[RSP + 0xb8] XOR R12D,R12D LAB_0017ccff: MOV RSI,qword ptr [R15] ADD RSI,RBX LAB_0017cd05: MOV RDI,R13 CALL 0x001b1980 MOV qword ptr [RAX],R12 INC R12 ADD RBX,0x20 CMP RBP,R12 JNZ 0x0017ccff LAB_0017cd1c: LEA RDI,[RSP + 0x30] MOV RSI,R15 CALL 0x00159398 LEA RDI,[RSP + 0x48] LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] ADD RDX,RSI LAB_0017cd41: CALL 0x00125d66 LEA R14,[RSP + 0x68] LAB_0017cd4b: LEA RSI,[RSP + 0xb8] MOV RDI,R14 CALL 0x001b1dda LEA R15,[RSP + 0x98] LAB_0017cd63: MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x28] CALL 0x001b19fc XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOVAPS xmmword ptr [RSP],XMM0 LAB_0017cd7c: MOV EDI,0x88 CALL 0x0011b910 LAB_0017cd86: MOV R12,RAX LEA RSI,[RSP + 0x30] MOV RDI,RAX CALL 0x00159398 LEA RDI,[R12 + 0x18] LEA RBP,[R12 + 0x28] MOV qword ptr [R12 + 0x18],RBP MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] ADD RDX,RSI LAB_0017cdb2: CALL 0x00125d66 LEA RAX,[R12 + 0x40] MOV RCX,qword ptr [RSP + 0x78] TEST RCX,RCX JZ 0x0017ce07 LEA RDX,[RSP + 0x70] MOV ESI,dword ptr [RDX] MOV dword ptr [R12 + 0x40],ESI MOV qword ptr [R12 + 0x48],RCX MOVUPS XMM0,xmmword ptr [RDX + 0x10] MOVUPS xmmword ptr [R12 + 0x50],XMM0 MOV qword ptr [RCX + 0x8],RAX LEA RAX,[RSP + 0x90] MOV RCX,qword ptr [RAX] MOV qword ptr [R12 + 0x60],RCX MOV qword ptr [RAX + -0x18],0x0 MOV qword ptr [RAX + -0x10],RDX MOV qword ptr [RAX + -0x8],RDX JMP 0x0017ce28 LAB_0017ce07: MOV dword ptr [R12 + 0x40],0x0 MOV qword ptr [R12 + 0x48],0x0 MOV qword ptr [R12 + 0x50],RAX MOV qword ptr [R12 + 0x58],RAX LEA RAX,[R12 + 0x60] LAB_0017ce28: MOV qword ptr [RAX],0x0 LEA RDI,[R12 + 0x68] LAB_0017ce34: MOV RSI,R15 CALL 0x001b19fc MOV RSI,RSP MOV qword ptr [RSI],R12 LEA RAX,[0x17d01e] MOV qword ptr [RSI + 0x18],RAX LEA RAX,[0x17d6ac] MOV qword ptr [RSI + 0x10],RAX LAB_0017ce58: MOV RBX,qword ptr [RSP + 0x20] MOV RDI,RBX CALL 0x0019b3d6 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x0017ce7c LAB_0017ce6f: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0017ce7c: MOV RAX,qword ptr [RSP + 0xa8] TEST RAX,RAX JZ 0x0017ce96 LAB_0017ce89: MOV RDI,R15 MOV RSI,R15 MOV EDX,0x3 CALL RAX LAB_0017ce96: MOV RDI,R14 CALL 0x001b203c MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x0017ceb5 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011b940 LAB_0017ceb5: LEA RDI,[RSP + 0x30] CALL 0x001258d6 LEA RDI,[RSP + 0xb8] CALL 0x001b203c MOV RAX,RBX ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::simple_function(std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&) */ Value * __thiscall minja::simple_function(minja *this,string *param_1,vector *param_2,function *param_3) { minja *pmVar1; long *plVar2; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar3; long lVar4; long lVar5; long lVar6; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_118; int8 uStack_110; code *local_108; code *pcStack_100; minja *local_f8; function *local_f0; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_e8 [24]; long *local_d0; long local_c8; long local_c0 [2]; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> local_b0 [8]; int4 local_a8 [2]; long local_a0; int4 *local_98; int4 *puStack_90; int8 local_88; function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> local_80 [16]; code *local_70; map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> local_60 [8]; int4 local_58 [2]; int8 local_50; int4 *local_48; int4 *local_40; int8 local_38; local_48 = local_58; local_58[0] = 0; local_50 = 0; local_38 = 0; local_f8 = this; local_f0 = param_3; local_40 = local_48; if (*(long *)(param_2 + 8) - *(long *)param_2 != 0) { lVar5 = *(long *)(param_2 + 8) - *(long *)param_2 >> 5; lVar4 = 0; lVar6 = 0; do { /* try { // try from 0017cd05 to 0017cd0c has its CatchHandler @ 0017cfb7 */ plVar2 = (long *)std:: map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::operator[](local_60,(string *)(*(long *)param_2 + lVar4)); *plVar2 = lVar6; lVar6 = lVar6 + 1; lVar4 = lVar4 + 0x20; } while (lVar5 + (ulong)(lVar5 == 0) != lVar6); } /* try { // try from 0017cd1c to 0017cd28 has its CatchHandler @ 0017cfb5 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_e8,param_2); local_d0 = local_c0; /* try { // try from 0017cd41 to 0017cd45 has its CatchHandler @ 0017cfa6 */ std::__cxx11::string::_M_construct<char*> (&local_d0,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 0017cd4b to 0017cd5a has its CatchHandler @ 0017cf8a */ std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::_Rb_tree(local_b0,(_Rb_tree *)local_60); /* try { // try from 0017cd63 to 0017cd6f has its CatchHandler @ 0017cf7d */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function (local_80,local_f0); local_108 = (code *)0x0; pcStack_100 = (code *)0x0; local_118 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0; uStack_110 = 0; /* try { // try from 0017cd7c to 0017cd85 has its CatchHandler @ 0017cf4f */ this_00 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)operator_new(0x88); /* try { // try from 0017cd86 to 0017cd95 has its CatchHandler @ 0017cf3d */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector (this_00,(vector *)local_e8); *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x18) = this_00 + 0x28; /* try { // try from 0017cdb2 to 0017cdb6 has its CatchHandler @ 0017cf30 */ std::__cxx11::string::_M_construct<char*>(this_00 + 0x18,local_d0,local_c8 + (long)local_d0); pvVar3 = this_00 + 0x40; if (local_a0 == 0) { *(int4 *)(this_00 + 0x40) = 0; *(int8 *)(this_00 + 0x48) = 0; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x50) = pvVar3 ; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x58) = pvVar3 ; pvVar3 = this_00 + 0x60; } else { *(int4 *)(this_00 + 0x40) = local_a8[0]; *(long *)(this_00 + 0x48) = local_a0; *(int4 **)(this_00 + 0x50) = local_98; *(int4 **)(this_00 + 0x58) = puStack_90; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(local_a0 + 8) = pvVar3; pvVar3 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_88; *(int8 *)(this_00 + 0x60) = local_88; local_a0 = 0; local_98 = local_a8; puStack_90 = local_a8; } *(int8 *)pvVar3 = 0; /* try { // try from 0017ce34 to 0017ce3b has its CatchHandler @ 0017cf09 */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function ((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> *) (this_00 + 0x68),local_80); pmVar1 = local_f8; pcStack_100 = std:: _Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0> ::_M_invoke; local_108 = std:: _Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0> ::_M_manager; local_118 = this_00; /* try { // try from 0017ce58 to 0017ce64 has its CatchHandler @ 0017ceeb */ Value::callable((Value *)local_f8,(function *)&local_118); if (local_108 != (code *)0x0) { /* try { // try from 0017ce6f to 0017ce7b has its CatchHandler @ 0017cee6 */ (*local_108)(&local_118,&local_118,3); } if (local_70 != (code *)0x0) { /* try { // try from 0017ce89 to 0017ce95 has its CatchHandler @ 0017cee1 */ (*local_70)(local_80,local_80,3); } std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::~_Rb_tree(local_b0); if (local_d0 != local_c0) { operator_delete(local_d0,local_c0[0] + 1); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_e8); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> *)local_60); return (Value *)pmVar1; }
29,603
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&)
monkey531[P]llama/common/minja.hpp
static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) { std::map<std::string, size_t> named_positions; for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i; return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value { auto args_obj = Value::object(); std::vector<bool> provided_args(params.size()); for (size_t i = 0, n = args.args.size(); i < n; i++) { auto & arg = args.args[i]; if (i < params.size()) { args_obj.set(params[i], arg); provided_args[i] = true; } else { throw std::runtime_error("Too many positional params for " + fn_name); } } for (auto & [name, value] : args.kwargs) { auto named_pos_it = named_positions.find(name); if (named_pos_it == named_positions.end()) { throw std::runtime_error("Unknown argument " + name + " for function " + fn_name); } provided_args[named_pos_it->second] = true; args_obj.set(name, value); } return fn(context, args_obj); }); }
O3
cpp
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rcx, 0x28(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, 0x20(%rsp) leaq 0xc0(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movq 0x8(%rdx), %rbp subq (%rdx), %rbp je 0xd706b sarq $0x5, %rbp cmpq $0x1, %rbp adcq $0x0, %rbp xorl %ebx, %ebx leaq 0xb8(%rsp), %r13 xorl %r12d, %r12d movq (%r15), %rsi addq %rbx, %rsi movq %r13, %rdi callq 0xabbb0 movq %r12, (%rax) incq %r12 addq $0x20, %rbx cmpq %r12, %rbp jne 0xd704e leaq 0x30(%rsp), %rdi movq %r15, %rsi callq 0x54714 leaq 0x48(%rsp), %rdi leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq (%r14), %rsi movq 0x8(%r14), %rdx addq %rsi, %rdx callq 0x219c4 leaq 0x68(%rsp), %r14 leaq 0xb8(%rsp), %rsi movq %r14, %rdi callq 0xac00a leaq 0x98(%rsp), %r15 movq %r15, %rdi movq 0x28(%rsp), %rsi callq 0xabc2c xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movaps %xmm0, (%rsp) movl $0x88, %edi callq 0x1a8c0 movq %rax, %r12 leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x54714 leaq 0x18(%r12), %rdi leaq 0x28(%r12), %rbp movq %rbp, 0x18(%r12) movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx addq %rsi, %rdx callq 0x219c4 leaq 0x40(%r12), %rax movq 0x78(%rsp), %rdx testq %rdx, %rdx je 0xd7152 leaq 0x70(%rsp), %rdi movl (%rdi), %ecx movq %rdx, 0x48(%r12) movq 0x10(%rdi), %r8 movq 0x18(%rdi), %rsi movq %rax, 0x8(%rdx) leaq 0x90(%rsp), %rdx movq (%rdx), %rax movq %rax, 0x60(%r12) movq $0x0, -0x18(%rdx) movq %rdi, -0x10(%rdx) movq %rdi, -0x8(%rdx) movq %r8, %rax jmp 0xd7165 movq $0x0, 0x48(%r12) leaq 0x60(%r12), %rdx xorl %ecx, %ecx movq %rax, %rsi movq %rax, 0x50(%r12) movq %rsi, 0x58(%r12) movq $0x0, (%rdx) movl %ecx, 0x40(%r12) leaq 0x68(%r12), %rdi movq %r15, %rsi callq 0xabc2c movq %rsp, %rsi movq %r12, (%rsi) leaq 0x1c9(%rip), %rax # 0xd735e movq %rax, 0x18(%rsi) leaq 0x84c(%rip), %rax # 0xd79ec movq %rax, 0x10(%rsi) movq 0x20(%rsp), %rdi callq 0x957ca movq 0x10(%rsp), %rax testq %rax, %rax je 0xd71c5 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0xa8(%rsp), %rax testq %rax, %rax je 0xd71df movq %r15, %rdi movq %r15, %rsi movl $0x3, %edx callq *%rax movq %r14, %rdi callq 0xac26c movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0xd71fe movq 0x58(%rsp), %rsi incq %rsi callq 0x1a8f0 leaq 0x30(%rsp), %rdi callq 0x2152e leaq 0xb8(%rsp), %rdi callq 0xac26c addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xd72a6 jmp 0xd72a6 movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0xd72b1 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0xd72b1 jmp 0xd72a6 movq %rax, %rbx movq %r12, %rdi addq $0x38, %rdi callq 0xac26c movq 0x18(%r12), %rdi cmpq %rbp, %rdi je 0xd7273 movq (%rbp), %rsi incq %rsi callq 0x1a8f0 jmp 0xd7273 movq %rax, %rbx movq %r12, %rdi callq 0x2152e jmp 0xd7280 movq %rax, %rbx movl $0x88, %esi movq %r12, %rdi callq 0x1a8f0 movq 0x10(%rsp), %rax testq %rax, %rax je 0xd72b1 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0xd72b1 movq %rax, %rdi callq 0x218f5 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0xd7310 jmp 0xd72fa movq %rax, %rbx movq %r14, %rdi callq 0xac26c jmp 0xd72cd movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0xd72e9 movq 0x58(%rsp), %rsi incq %rsi callq 0x1a8f0 jmp 0xd72e9 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x2152e jmp 0xd72fa jmp 0xd72f7 movq %rax, %rbx leaq 0xb8(%rsp), %rdi callq 0xac26c movq %rbx, %rdi callq 0x1afd0 nop
_ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE_0: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov [rsp+118h+var_F0], rcx mov r15, rdx mov r14, rsi mov [rsp+118h+var_F8], rdi lea rax, [rsp+118h+var_58] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov rbp, [rdx+8] sub rbp, [rdx] jz short loc_D706B sar rbp, 5 cmp rbp, 1 adc rbp, 0 xor ebx, ebx lea r13, [rsp+118h+var_60] xor r12d, r12d loc_D704E: mov rsi, [r15] add rsi, rbx mov rdi, r13 call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&) mov [rax], r12 inc r12 add rbx, 20h ; ' ' cmp rbp, r12 jnz short loc_D704E loc_D706B: lea rdi, [rsp+118h+var_E8] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [rsp+118h+var_D0] lea r13, [rsp+118h+var_C0] mov [r13-10h], r13 mov rsi, [r14] mov rdx, [r14+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r14, [rsp+118h+var_B0] lea rsi, [rsp+118h+var_60] mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&) lea r15, [rsp+118h+var_80] mov rdi, r15 mov rsi, [rsp+118h+var_F0] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) xorps xmm0, xmm0 movaps [rsp+118h+var_108], xmm0 movaps [rsp+118h+var_118], xmm0 mov edi, 88h; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax lea rsi, [rsp+118h+var_E8] mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [r12+18h] lea rbp, [r12+28h] mov [r12+18h], rbp mov rsi, [rsp+118h+var_D0] mov rdx, [rsp+118h+var_C8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, [r12+40h] mov rdx, [rsp+118h+var_A0] test rdx, rdx jz short loc_D7152 lea rdi, [rsp+118h+var_A8] mov ecx, [rdi] mov [r12+48h], rdx mov r8, [rdi+10h] mov rsi, [rdi+18h] mov [rdx+8], rax lea rdx, [rsp+118h+var_88] mov rax, [rdx] mov [r12+60h], rax mov qword ptr [rdx-18h], 0 mov [rdx-10h], rdi mov [rdx-8], rdi mov rax, r8 jmp short loc_D7165 loc_D7152: mov qword ptr [r12+48h], 0 lea rdx, [r12+60h] xor ecx, ecx mov rsi, rax loc_D7165: mov [r12+50h], rax mov [r12+58h], rsi mov qword ptr [rdx], 0 mov [r12+40h], ecx lea rdi, [r12+68h] mov rsi, r15 call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) mov rsi, rsp mov [rsi], r12 lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8__0; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation_0; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax mov rdi, [rsp+118h+var_F8] call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_D71C5 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_D71C5: mov rax, [rsp+118h+var_70] test rax, rax jz short loc_D71DF mov rdi, r15 mov rsi, r15 mov edx, 3 call rax loc_D71DF: mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_D71FE mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D71FE: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_D72A6 jmp short loc_D72A6 mov rbx, rax mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_D72B1 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_D72B1 jmp short loc_D72A6 mov rbx, rax mov rdi, r12 add rdi, 38h ; '8' call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [r12+18h]; void * cmp rdi, rbp jz short loc_D7273 mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_D7273 mov rbx, rax loc_D7273: mov rdi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_D7280 mov rbx, rax loc_D7280: mov esi, 88h; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_D72B1 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_D72B1 loc_D72A6: mov rdi, rax call __clang_call_terminate mov rbx, rax loc_D72B1: lea rdi, [rsp+118h+var_E8] call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev_0; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0() jmp short loc_D72FA mov rbx, rax mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() jmp short loc_D72CD mov rbx, rax loc_D72CD: mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_D72E9 mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_D72E9 mov rbx, rax loc_D72E9: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_D72FA jmp short $+2 loc_D72F7: mov rbx, rax loc_D72FA: lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
void minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4) { long long v5; // rbp long long v6; // rbp long long v7; // rbx long long v8; // r12 long long v9; // r12 long long v10; // rax long long v11; // rdx int v12; // ecx int *v13; // r8 int *v14; // rsi long long *v15; // rdx __int128 v16; // [rsp+0h] [rbp-118h] BYREF __int128 v17; // [rsp+10h] [rbp-108h] long long v18; // [rsp+20h] [rbp-F8h] long long v19; // [rsp+28h] [rbp-F0h] _QWORD v20[3]; // [rsp+30h] [rbp-E8h] BYREF void *v21[2]; // [rsp+48h] [rbp-D0h] BYREF _QWORD v22[2]; // [rsp+58h] [rbp-C0h] BYREF _BYTE v23[8]; // [rsp+68h] [rbp-B0h] BYREF int v24; // [rsp+70h] [rbp-A8h] BYREF long long v25; // [rsp+78h] [rbp-A0h] int *v26; // [rsp+80h] [rbp-98h] int *v27; // [rsp+88h] [rbp-90h] long long v28; // [rsp+90h] [rbp-88h] BYREF __int128 v29; // [rsp+98h] [rbp-80h] BYREF void ( *v30)(__int128 *, __int128 *, long long); // [rsp+A8h] [rbp-70h] _BYTE v31[8]; // [rsp+B8h] [rbp-60h] BYREF int v32; // [rsp+C0h] [rbp-58h] BYREF long long v33; // [rsp+C8h] [rbp-50h] int *v34; // [rsp+D0h] [rbp-48h] int *v35; // [rsp+D8h] [rbp-40h] long long v36; // [rsp+E0h] [rbp-38h] v19 = a4; v18 = a1; v32 = 0; v33 = 0LL; v34 = &v32; v35 = &v32; v36 = 0LL; v5 = a3[1] - *a3; if ( v5 ) { v6 = (v5 >> 5 == 0) + (v5 >> 5); v7 = 0LL; v8 = 0LL; do { *(_QWORD *)std::map<std::string,unsigned long>::operator[]((long long)v31, v7 + *a3) = v8++; v7 += 32LL; } while ( v6 != v8 ); } std::vector<std::string>::vector((long long)v20, a3); v21[0] = v22; std::string::_M_construct<char *>((long long)v21, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree( (long long)v23, (long long)v31); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(&v29, v19); v17 = 0LL; v16 = 0LL; v9 = operator new(0x88uLL); std::vector<std::string>::vector(v9, v20); *(_QWORD *)(v9 + 24) = v9 + 40; std::string::_M_construct<char *>(v9 + 24, (_BYTE *)v21[0], (long long)v21[0] + (unsigned long long)v21[1]); v10 = v9 + 64; v11 = v25; if ( v25 ) { v12 = v24; *(_QWORD *)(v9 + 72) = v25; v13 = v26; v14 = v27; *(_QWORD *)(v11 + 8) = v10; v15 = &v28; *(_QWORD *)(v9 + 96) = v28; v25 = 0LL; v26 = &v24; v27 = &v24; v10 = (long long)v13; } else { *(_QWORD *)(v9 + 72) = 0LL; v15 = (long long *)(v9 + 96); v12 = 0; v14 = (int *)(v9 + 64); } *(_QWORD *)(v9 + 80) = v10; *(_QWORD *)(v9 + 88) = v14; *v15 = 0LL; *(_DWORD *)(v9 + 64) = v12; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function( (_OWORD *)(v9 + 104), (long long)&v29); *(_QWORD *)&v16 = v9; *((_QWORD *)&v17 + 1) = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke; *(_QWORD *)&v17 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager; minja::Value::callable(v18, (long long)&v16); if ( (_QWORD)v17 ) ((void ( *)(__int128 *, __int128 *, long long))v17)(&v16, &v16, 3LL); if ( v30 ) v30(&v29, &v29, 3LL); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree((long long)v23); if ( v21[0] != v22 ) operator delete(v21[0], v22[0] + 1LL); std::vector<std::string>::~vector((long long)v20); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree((long long)v31); }
29,604
mbedtls_ccm_setkey
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/ccm.c
int mbedtls_ccm_setkey(mbedtls_ccm_context *ctx, mbedtls_cipher_id_t cipher, const unsigned char *key, unsigned int keybits) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; const mbedtls_cipher_info_t *cipher_info; CCM_VALIDATE_RET(ctx != NULL); CCM_VALIDATE_RET(key != NULL); cipher_info = mbedtls_cipher_info_from_values(cipher, keybits, MBEDTLS_MODE_ECB); if (cipher_info == NULL) { return MBEDTLS_ERR_CCM_BAD_INPUT; } if (cipher_info->block_size != 16) { return MBEDTLS_ERR_CCM_BAD_INPUT; } mbedtls_cipher_free(&ctx->cipher_ctx); if ((ret = mbedtls_cipher_setup(&ctx->cipher_ctx, cipher_info)) != 0) { return ret; } if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, MBEDTLS_ENCRYPT)) != 0) { return ret; } return 0; }
O3
c
mbedtls_ccm_setkey: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebx movq %rdx, %r14 movq %rdi, %r15 movl %esi, %edi movl %ecx, %esi movl $0x1, %edx callq 0x9a25f movq %rax, %r12 movl $0xfffffff3, %eax # imm = 0xFFFFFFF3 testq %r12, %r12 je 0x9f289 cmpl $0x10, 0x20(%r12) jne 0x9f289 movq %r15, %rdi callq 0x9a2b4 movq %r15, %rdi movq %r12, %rsi callq 0x9a2df testl %eax, %eax je 0x9f295 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %r15, %rdi movq %r14, %rsi movl %ebx, %edx movl $0x1, %ecx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x9a393
mbedtls_ccm_setkey: push r15 push r14 push r12 push rbx push rax mov ebx, ecx mov r14, rdx mov r15, rdi mov edi, esi mov esi, ecx mov edx, 1 call mbedtls_cipher_info_from_values mov r12, rax mov eax, 0FFFFFFF3h test r12, r12 jz short loc_9F289 cmp dword ptr [r12+20h], 10h jnz short loc_9F289 mov rdi, r15 call mbedtls_cipher_free mov rdi, r15 mov rsi, r12 call mbedtls_cipher_setup test eax, eax jz short loc_9F295 loc_9F289: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_9F295: mov rdi, r15 mov rsi, r14 mov edx, ebx mov ecx, 1 add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp mbedtls_cipher_setkey
long long mbedtls_ccm_setkey(long long *a1, int a2, long long a3, int a4) { long long v6; // r12 long long result; // rax v6 = mbedtls_cipher_info_from_values(a2, a4, 1); result = 4294967283LL; if ( v6 && *(_DWORD *)(v6 + 32) == 16 ) { mbedtls_cipher_free(a1); result = mbedtls_cipher_setup((long long)a1, v6); if ( !(_DWORD)result ) return mbedtls_cipher_setkey(a1, a3, a4, 1); } return result; }
mbedtls_ccm_setkey: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV EBX,ECX MOV R14,RDX MOV R15,RDI MOV EDI,ESI MOV ESI,ECX MOV EDX,0x1 CALL 0x0019a25f MOV R12,RAX MOV EAX,0xfffffff3 TEST R12,R12 JZ 0x0019f289 CMP dword ptr [R12 + 0x20],0x10 JNZ 0x0019f289 MOV RDI,R15 CALL 0x0019a2b4 MOV RDI,R15 MOV RSI,R12 CALL 0x0019a2df TEST EAX,EAX JZ 0x0019f295 LAB_0019f289: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_0019f295: MOV RDI,R15 MOV RSI,R14 MOV EDX,EBX MOV ECX,0x1 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x0019a393
int8 mbedtls_ccm_setkey(int8 param_1,int4 param_2,int8 param_3,int4 param_4) { long lVar1; int8 uVar2; lVar1 = mbedtls_cipher_info_from_values(param_2,param_4,1); uVar2 = 0xfffffff3; if ((lVar1 != 0) && (*(int *)(lVar1 + 0x20) == 0x10)) { mbedtls_cipher_free(param_1); uVar2 = mbedtls_cipher_setup(param_1,lVar1); if ((int)uVar2 == 0) { uVar2 = mbedtls_cipher_setkey(param_1,param_3,param_4,1); return uVar2; } } return uVar2; }
29,605
end_key_cache_internal
eloqsql/mysys/mf_keycache.c
static void end_key_cache_internal(KEY_CACHE *keycache, my_bool cleanup, my_bool use_op_lock) { if (keycache->key_cache_inited) { keycache->interface_funcs->end(keycache->keycache_cb, cleanup); if (cleanup) { if (keycache->keycache_cb) { my_free(keycache->keycache_cb); keycache->keycache_cb= 0; } /* We do not destroy op_lock if we are going to reuse the same key cache. This happens if we are called from repartition_key_cache_internal(). */ if (use_op_lock) pthread_mutex_destroy(&keycache->op_lock); keycache->key_cache_inited= 0; } keycache->can_be_used= 0; } }
O0
c
end_key_cache_internal: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movb %dl, %al movb %sil, %cl movq %rdi, -0x8(%rbp) movb %cl, -0x9(%rbp) movb %al, -0xa(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, 0x48(%rax) je 0xe6a68 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movq 0x40(%rax), %rax movq -0x8(%rbp), %rcx movq 0x8(%rcx), %rdi movsbl -0x9(%rbp), %esi callq *%rax cmpb $0x0, -0x9(%rbp) je 0xe6a60 movq -0x8(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0xe6a45 movq -0x8(%rbp), %rax movq 0x8(%rax), %rdi callq 0xf9d70 movq -0x8(%rbp), %rax movq $0x0, 0x8(%rax) cmpb $0x0, -0xa(%rbp) je 0xe6a58 movq -0x8(%rbp), %rdi addq $0x58, %rdi callq 0x2a0f0 movq -0x8(%rbp), %rax movb $0x0, 0x48(%rax) movq -0x8(%rbp), %rax movb $0x0, 0x49(%rax) addq $0x10, %rsp popq %rbp retq nop
end_key_cache_internal: push rbp mov rbp, rsp sub rsp, 10h mov al, dl mov cl, sil mov [rbp+var_8], rdi mov [rbp+var_9], cl mov [rbp+var_A], al mov rax, [rbp+var_8] cmp byte ptr [rax+48h], 0 jz short loc_E6A68 mov rax, [rbp+var_8] mov rax, [rax+10h] mov rax, [rax+40h] mov rcx, [rbp+var_8] mov rdi, [rcx+8] movsx esi, [rbp+var_9] call rax cmp [rbp+var_9], 0 jz short loc_E6A60 mov rax, [rbp+var_8] cmp qword ptr [rax+8], 0 jz short loc_E6A45 mov rax, [rbp+var_8] mov rdi, [rax+8] call my_free mov rax, [rbp+var_8] mov qword ptr [rax+8], 0 loc_E6A45: cmp [rbp+var_A], 0 jz short loc_E6A58 mov rdi, [rbp+var_8] add rdi, 58h ; 'X' call _pthread_mutex_destroy loc_E6A58: mov rax, [rbp+var_8] mov byte ptr [rax+48h], 0 loc_E6A60: mov rax, [rbp+var_8] mov byte ptr [rax+49h], 0 loc_E6A68: add rsp, 10h pop rbp retn
long long end_key_cache_internal(long long a1, char a2, char a3) { long long result; // rax result = a1; if ( *(_BYTE *)(a1 + 72) ) { (*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(a1 + 16) + 64LL))(*(_QWORD *)(a1 + 8), (unsigned int)a2); if ( a2 ) { if ( *(_QWORD *)(a1 + 8) ) { my_free(*(_QWORD *)(a1 + 8)); *(_QWORD *)(a1 + 8) = 0LL; } if ( a3 ) pthread_mutex_destroy(a1 + 88); *(_BYTE *)(a1 + 72) = 0; } result = a1; *(_BYTE *)(a1 + 73) = 0; } return result; }
end_key_cache_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV AL,DL MOV CL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],CL MOV byte ptr [RBP + -0xa],AL MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x48],0x0 JZ 0x001e6a68 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x8] MOVSX ESI,byte ptr [RBP + -0x9] CALL RAX CMP byte ptr [RBP + -0x9],0x0 JZ 0x001e6a60 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x8],0x0 JZ 0x001e6a45 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001f9d70 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],0x0 LAB_001e6a45: CMP byte ptr [RBP + -0xa],0x0 JZ 0x001e6a58 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x58 CALL 0x0012a0f0 LAB_001e6a58: MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x48],0x0 LAB_001e6a60: MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x49],0x0 LAB_001e6a68: ADD RSP,0x10 POP RBP RET
void end_key_cache_internal(long param_1,char param_2,char param_3) { if (*(char *)(param_1 + 0x48) != '\0') { (**(code **)(*(long *)(param_1 + 0x10) + 0x40))(*(int8 *)(param_1 + 8),(int)param_2); if (param_2 != '\0') { if (*(long *)(param_1 + 8) != 0) { my_free(*(int8 *)(param_1 + 8)); *(int8 *)(param_1 + 8) = 0; } if (param_3 != '\0') { pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x58)); } *(int1 *)(param_1 + 0x48) = 0; } *(int1 *)(param_1 + 0x49) = 0; } return; }
29,606
nglog::AddLogSink(nglog::LogSink*)
ng-log[P]ng-log/src/logging.cc
void AddLogSink(LogSink* destination) { LogDestination::AddLogSink(destination); }
O3
cpp
nglog::AddLogSink(nglog::LogSink*): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq %rdi, 0x8(%rsp) leaq 0x254bb(%rip), %rdi # 0x31c48 callq 0x7870 cmpl $0x23, %eax je 0xc7f5 movq 0x254a2(%rip), %rax # 0x31c40 testq %rax, %rax jne 0xc7c2 movl $0x18, %edi callq 0x8eb0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x2547e(%rip) # 0x31c40 movq 0x8(%rax), %rsi cmpq 0x10(%rax), %rsi je 0xc7d6 movq %rbx, (%rsi) addq $0x8, 0x8(%rax) jmp 0xc7e3 leaq 0x8(%rsp), %rdx movq %rax, %rdi callq 0x12ac6 leaq 0x2545e(%rip), %rdi # 0x31c48 callq 0x7720 addq $0x10, %rsp popq %rbx retq movl $0x23, %edi callq 0x7350 jmp 0xc801 movq %rax, %rbx leaq 0x2543d(%rip), %rdi # 0x31c48 callq 0x7720 movq %rbx, %rdi callq 0x79b0
_ZN5nglog10AddLogSinkEPNS_7LogSinkE: push rbx sub rsp, 10h mov rbx, rdi mov [rsp+18h+var_10], rdi lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_wrlock cmp eax, 23h ; '#' jz short loc_C7F5 mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ test rax, rax jnz short loc_C7C2 mov edi, 18h; unsigned __int64 call _Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov cs:_ZN5nglog14LogDestination6sinks_E, rax; nglog::LogDestination::sinks_ loc_C7C2: mov rsi, [rax+8] cmp rsi, [rax+10h] jz short loc_C7D6 mov [rsi], rbx add qword ptr [rax+8], 8 jmp short loc_C7E3 loc_C7D6: lea rdx, [rsp+18h+var_10] mov rdi, rax call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_; std::vector<nglog::LogSink *>::_M_realloc_insert<nglog::LogSink * const&>(__gnu_cxx::__normal_iterator<nglog::LogSink **,std::vector<nglog::LogSink *>>,nglog::LogSink * const&) loc_C7E3: lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_unlock add rsp, 10h pop rbx retn loc_C7F5: mov edi, 23h ; '#'; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) jmp short $+2 loc_C801: mov rbx, rax lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_unlock mov rdi, rbx call __Unwind_Resume
long long nglog::AddLogSink(nglog *this, nglog::LogSink *a2) { long long v2; // rax _QWORD *v3; // rsi nglog *v5; // [rsp+8h] [rbp-10h] BYREF v5 = this; if ( (unsigned int)pthread_rwlock_wrlock(&nglog::LogDestination::sink_mutex_) == 35 ) std::__throw_system_error(35); v2 = nglog::LogDestination::sinks_; if ( !nglog::LogDestination::sinks_ ) { v2 = operator new(24LL); *(_OWORD *)v2 = 0LL; *(_QWORD *)(v2 + 16) = 0LL; nglog::LogDestination::sinks_ = v2; } v3 = *(_QWORD **)(v2 + 8); if ( v3 == *(_QWORD **)(v2 + 16) ) { std::vector<nglog::LogSink *>::_M_realloc_insert<nglog::LogSink * const&>(v2, v3, &v5); } else { *v3 = this; *(_QWORD *)(v2 + 8) += 8LL; } return pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_); }
AddLogSink: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV qword ptr [RSP + 0x8],RDI LEA RDI,[0x131c48] CALL 0x00107870 CMP EAX,0x23 JZ 0x0010c7f5 MOV RAX,qword ptr [0x00131c40] TEST RAX,RAX JNZ 0x0010c7c2 LAB_0010c7a3: MOV EDI,0x18 CALL 0x00108eb0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [0x00131c40],RAX LAB_0010c7c2: MOV RSI,qword ptr [RAX + 0x8] CMP RSI,qword ptr [RAX + 0x10] JZ 0x0010c7d6 MOV qword ptr [RSI],RBX ADD qword ptr [RAX + 0x8],0x8 JMP 0x0010c7e3 LAB_0010c7d6: LEA RDX,[RSP + 0x8] MOV RDI,RAX CALL 0x00112ac6 LAB_0010c7e3: LEA RDI,[0x131c48] CALL 0x00107720 ADD RSP,0x10 POP RBX RET LAB_0010c7f5: MOV EDI,0x23 CALL 0x00107350
/* nglog::AddLogSink(nglog::LogSink*) */ void nglog::AddLogSink(LogSink *param_1) { int8 *puVar1; vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *pvVar2; int iVar3; LogSink *local_10; local_10 = param_1; iVar3 = pthread_rwlock_wrlock((pthread_rwlock_t *)LogDestination::sink_mutex_); if (iVar3 != 0x23) { if (LogDestination::sinks_ == (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *)0x0) { /* try { // try from 0010c7a3 to 0010c7ac has its CatchHandler @ 0010c801 */ LogDestination::sinks_ = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *)operator_new(0x18); *(int8 *)LogDestination::sinks_ = 0; *(int8 *)(LogDestination::sinks_ + 8) = 0; *(int8 *)(LogDestination::sinks_ + 0x10) = 0; } pvVar2 = LogDestination::sinks_; puVar1 = *(int8 **)(LogDestination::sinks_ + 8); if (puVar1 == *(int8 **)(LogDestination::sinks_ + 0x10)) { /* try { // try from 0010c7d6 to 0010c7e2 has its CatchHandler @ 0010c7ff */ std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>:: _M_realloc_insert<nglog::LogSink*const&>(LogDestination::sinks_,puVar1,&local_10); } else { *puVar1 = param_1; *(long *)(pvVar2 + 8) = *(long *)(pvVar2 + 8) + 8; } pthread_rwlock_unlock((pthread_rwlock_t *)LogDestination::sink_mutex_); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(0x23); }
29,607
pfs_set_thread_db_v1
eloqsql/storage/perfschema/pfs.cc
void pfs_set_thread_db_v1(const char* db, int db_len) { PFS_thread *pfs= my_thread_get_THR_PFS(); assert((db != NULL) || (db_len == 0)); assert(db_len >= 0); assert((uint) db_len <= sizeof(pfs->m_dbname)); if (likely(pfs != NULL)) { pfs_dirty_state dirty_state; pfs->m_stmt_lock.allocated_to_dirty(& dirty_state); if (db_len > 0) memcpy(pfs->m_dbname, db, db_len); pfs->m_dbname_length= db_len; pfs->m_stmt_lock.dirty_to_allocated(& dirty_state); } }
O0
cpp
pfs_set_thread_db_v1: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) callq 0x455e0 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x4649d movq -0x18(%rbp), %rdi addq $0x1038, %rdi # imm = 0x1038 leaq -0x1c(%rbp), %rsi callq 0x4e250 cmpl $0x0, -0xc(%rbp) jle 0x4647c movq -0x18(%rbp), %rdi addq $0xf64, %rdi # imm = 0xF64 movq -0x8(%rbp), %rsi movslq -0xc(%rbp), %rdx callq 0x26280 movl -0xc(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x1024(%rax) movq -0x18(%rbp), %rdi addq $0x1038, %rdi # imm = 0x1038 leaq -0x1c(%rbp), %rsi callq 0x33390 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
pfs_set_thread_db_v1: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void) mov [rbp+var_18], rax cmp [rbp+var_18], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_4649D mov rdi, [rbp+var_18] add rdi, 1038h lea rsi, [rbp+var_1C] call _ZN8pfs_lock18allocated_to_dirtyEP15pfs_dirty_state; pfs_lock::allocated_to_dirty(pfs_dirty_state *) cmp [rbp+var_C], 0 jle short loc_4647C mov rdi, [rbp+var_18] add rdi, 0F64h mov rsi, [rbp+var_8] movsxd rdx, [rbp+var_C] call _memcpy loc_4647C: mov ecx, [rbp+var_C] mov rax, [rbp+var_18] mov [rax+1024h], ecx mov rdi, [rbp+var_18] add rdi, 1038h lea rsi, [rbp+var_1C] call _ZN8pfs_lock18dirty_to_allocatedEPK15pfs_dirty_state; pfs_lock::dirty_to_allocated(pfs_dirty_state const*) loc_4649D: add rsp, 20h pop rbp retn
long long pfs_set_thread_db_v1(long long a1, int a2) { long long result; // rax unsigned int v3; // edx int v4; // [rsp+4h] [rbp-1Ch] BYREF long long THR_PFS; // [rsp+8h] [rbp-18h] int v6; // [rsp+14h] [rbp-Ch] long long v7; // [rsp+18h] [rbp-8h] v7 = a1; v6 = a2; THR_PFS = my_thread_get_THR_PFS(); result = THR_PFS != 0; if ( THR_PFS ) { pfs_lock::allocated_to_dirty(THR_PFS + 4152, &v4); if ( v6 > 0 ) memcpy(THR_PFS + 3940, v7, v6); *(_DWORD *)(THR_PFS + 4132) = v6; return pfs_lock::dirty_to_allocated((PFS_atomic *)(THR_PFS + 4152), &v4, v3); } return result; }
pfs_set_thread_db_v1: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI CALL 0x001455e0 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x0014649d MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x1038 LEA RSI,[RBP + -0x1c] CALL 0x0014e250 CMP dword ptr [RBP + -0xc],0x0 JLE 0x0014647c MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0xf64 MOV RSI,qword ptr [RBP + -0x8] MOVSXD RDX,dword ptr [RBP + -0xc] CALL 0x00126280 LAB_0014647c: MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x1024],ECX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x1038 LEA RSI,[RBP + -0x1c] CALL 0x00133390 LAB_0014649d: ADD RSP,0x20 POP RBP RET
void pfs_set_thread_db_v1(void *param_1,int param_2) { pfs_dirty_state local_24 [4]; long local_20; int local_14; void *local_10; local_14 = param_2; local_10 = param_1; local_20 = my_thread_get_THR_PFS(); if (local_20 != 0) { pfs_lock::allocated_to_dirty((pfs_lock *)(local_20 + 0x1038),local_24); if (0 < local_14) { memcpy((void *)(local_20 + 0xf64),local_10,(long)local_14); } *(int *)(local_20 + 0x1024) = local_14; pfs_lock::dirty_to_allocated((pfs_lock *)(local_20 + 0x1038),local_24); } return; }
29,608
translog_only_in_buffers
eloqsql/storage/maria/ma_loghandler.c
static TRANSLOG_ADDRESS translog_only_in_buffers() { register TRANSLOG_ADDRESS addr; DBUG_ENTER("translog_only_in_buffers"); mysql_mutex_lock(&log_descriptor.sent_to_disk_lock); addr= log_descriptor.in_buffers_only; mysql_mutex_unlock(&log_descriptor.sent_to_disk_lock); DBUG_RETURN(addr); }
O0
c
translog_only_in_buffers: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp leaq 0x44ab51(%rip), %rdi # 0x47fd90 addq $0x800cc0, %rdi # imm = 0x800CC0 leaq 0x12215d(%rip), %rsi # 0x1573aa movl $0x932, %edx # imm = 0x932 callq 0x2bff0 movq 0xc4b7ea(%rip), %rax # 0xc80a48 movq %rax, -0x8(%rbp) leaq 0x44ab27(%rip), %rdi # 0x47fd90 addq $0x800cc0, %rdi # imm = 0x800CC0 callq 0x2c060 movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
translog_only_in_buffers: push rbp mov rbp, rsp sub rsp, 10h lea rdi, log_descriptor add rdi, 800CC0h lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 932h call inline_mysql_mutex_lock mov rax, cs:qword_C80A48 mov [rbp+var_8], rax lea rdi, log_descriptor add rdi, 800CC0h call inline_mysql_mutex_unlock mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] add rsp, 10h pop rbp retn
long long translog_only_in_buffers() { long long v1; // [rsp+8h] [rbp-8h] inline_mysql_mutex_lock( (long long)&log_descriptor[1048984], (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x932u); v1 = qword_C80A48; inline_mysql_mutex_unlock((long long)&log_descriptor[1048984]); return v1; }
translog_only_in_buffers: PUSH RBP MOV RBP,RSP SUB RSP,0x10 LEA RDI,[0x57fd90] ADD RDI,0x800cc0 LEA RSI,[0x2573aa] MOV EDX,0x932 CALL 0x0012bff0 MOV RAX,qword ptr [0x00d80a48] MOV qword ptr [RBP + -0x8],RAX LEA RDI,[0x57fd90] ADD RDI,0x800cc0 CALL 0x0012c060 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RSP,0x10 POP RBP RET
int8 translog_only_in_buffers(void) { int8 uVar1; inline_mysql_mutex_lock (&DAT_00d80a50,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x932); uVar1 = DAT_00d80a48; inline_mysql_mutex_unlock(&DAT_00d80a50); return uVar1; }
29,609
harvest_pins
eloqsql/mysys/lf_alloc-pin.c
static int harvest_pins(LF_PINS *el, struct st_harvester *hv) { int i; LF_PINS *el_end= el+MY_MIN(hv->npins, LF_DYNARRAY_LEVEL_LENGTH); for (; el < el_end; el++) { for (i= 0; i < LF_PINBOX_PINS; i++) { void *p= el->pin[i]; if (p) *hv->granary++= p; } } /* hv->npins may become negative below, but it means that we're on the last dynarray page and harvest_pins() won't be called again. We don't bother to make hv->npins() correct (that is 0) in this case. */ hv->npins-= LF_DYNARRAY_LEVEL_LENGTH; return 0; }
O0
c
harvest_pins: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax cmpl $0x100, 0x8(%rax) # imm = 0x100 jge 0xfc08d movq -0x10(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x34(%rbp) jmp 0xfc097 movl $0x100, %eax # imm = 0x100 movl %eax, -0x34(%rbp) jmp 0xfc097 movq -0x30(%rbp), %rax movl -0x34(%rbp), %ecx movslq %ecx, %rcx imulq $0x78, %rcx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xfc10f movl $0x0, -0x14(%rbp) cmpl $0x4, -0x14(%rbp) jge 0xfc0ff movq -0x8(%rbp), %rax movslq -0x14(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0xfc0f2 movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rdx movq (%rdx), %rax movq %rax, %rsi addq $0x8, %rsi movq %rsi, (%rdx) movq %rcx, (%rax) jmp 0xfc0f4 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0xfc0bd jmp 0xfc101 movq -0x8(%rbp), %rax addq $0x78, %rax movq %rax, -0x8(%rbp) jmp 0xfc0ac movq -0x10(%rbp), %rax movl 0x8(%rax), %ecx subl $0x100, %ecx # imm = 0x100 movl %ecx, 0x8(%rax) xorl %eax, %eax popq %rbp retq nopw %cs:(%rax,%rax)
harvest_pins: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_30], rax mov rax, [rbp+var_10] cmp dword ptr [rax+8], 100h jge short loc_FC08D mov rax, [rbp+var_10] mov eax, [rax+8] mov [rbp+var_34], eax jmp short loc_FC097 loc_FC08D: mov eax, 100h mov [rbp+var_34], eax jmp short $+2 loc_FC097: mov rax, [rbp+var_30] mov ecx, [rbp+var_34] movsxd rcx, ecx imul rcx, 78h ; 'x' add rax, rcx mov [rbp+var_20], rax loc_FC0AC: mov rax, [rbp+var_8] cmp rax, [rbp+var_20] jnb short loc_FC10F mov [rbp+var_14], 0 loc_FC0BD: cmp [rbp+var_14], 4 jge short loc_FC0FF mov rax, [rbp+var_8] movsxd rcx, [rbp+var_14] mov rax, [rax+rcx*8] mov [rbp+var_28], rax cmp [rbp+var_28], 0 jz short loc_FC0F2 mov rcx, [rbp+var_28] mov rdx, [rbp+var_10] mov rax, [rdx] mov rsi, rax add rsi, 8 mov [rdx], rsi mov [rax], rcx loc_FC0F2: jmp short $+2 loc_FC0F4: mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax jmp short loc_FC0BD loc_FC0FF: jmp short $+2 loc_FC101: mov rax, [rbp+var_8] add rax, 78h ; 'x' mov [rbp+var_8], rax jmp short loc_FC0AC loc_FC10F: mov rax, [rbp+var_10] mov ecx, [rax+8] sub ecx, 100h mov [rax+8], ecx xor eax, eax pop rbp retn
long long harvest_pins(unsigned long long a1, long long a2) { _QWORD *v2; // rax int v4; // [rsp+0h] [rbp-34h] long long v5; // [rsp+Ch] [rbp-28h] int i; // [rsp+20h] [rbp-14h] unsigned long long v7; // [rsp+2Ch] [rbp-8h] v7 = a1; if ( *(int *)(a2 + 8) >= 256 ) v4 = 256; else v4 = *(_DWORD *)(a2 + 8); while ( v7 < 120LL * v4 + a1 ) { for ( i = 0; i < 4; ++i ) { v5 = *(_QWORD *)(v7 + 8LL * i); if ( v5 ) { v2 = *(_QWORD **)a2; *(_QWORD *)a2 += 8LL; *v2 = v5; } } v7 += 120LL; } *(_DWORD *)(a2 + 8) -= 256; return 0LL; }
harvest_pins: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x8],0x100 JGE 0x001fc08d MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x34],EAX JMP 0x001fc097 LAB_001fc08d: MOV EAX,0x100 MOV dword ptr [RBP + -0x34],EAX JMP 0x001fc097 LAB_001fc097: MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x34] MOVSXD RCX,ECX IMUL RCX,RCX,0x78 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX LAB_001fc0ac: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001fc10f MOV dword ptr [RBP + -0x14],0x0 LAB_001fc0bd: CMP dword ptr [RBP + -0x14],0x4 JGE 0x001fc0ff MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x001fc0f2 MOV RCX,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RDX] MOV RSI,RAX ADD RSI,0x8 MOV qword ptr [RDX],RSI MOV qword ptr [RAX],RCX LAB_001fc0f2: JMP 0x001fc0f4 LAB_001fc0f4: MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x001fc0bd LAB_001fc0ff: JMP 0x001fc101 LAB_001fc101: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x78 MOV qword ptr [RBP + -0x8],RAX JMP 0x001fc0ac LAB_001fc10f: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x8] SUB ECX,0x100 MOV dword ptr [RAX + 0x8],ECX XOR EAX,EAX POP RBP RET
int8 harvest_pins(ulong param_1,int8 *param_2) { long lVar1; long *plVar2; int local_3c; int local_1c; ulong local_10; if (*(int *)(param_2 + 1) < 0x100) { local_3c = *(int *)(param_2 + 1); } else { local_3c = 0x100; } for (local_10 = param_1; local_10 < param_1 + (long)local_3c * 0x78; local_10 = local_10 + 0x78) { for (local_1c = 0; local_1c < 4; local_1c = local_1c + 1) { lVar1 = *(long *)(local_10 + (long)local_1c * 8); if (lVar1 != 0) { plVar2 = (long *)*param_2; *param_2 = plVar2 + 1; *plVar2 = lVar1; } } } *(int *)(param_2 + 1) = *(int *)(param_2 + 1) + -0x100; return 0; }
29,610
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> const&) const
monkey531[P]llama/common/json.hpp
bool operator==(const IterImpl& other) const { // if objects are not the same, the comparison is undefined if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) { JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object)); } JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: return (m_it.object_iterator == other.m_it.object_iterator); case value_t::array: return (m_it.array_iterator == other.m_it.array_iterator); case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: return (m_it.primitive_iterator == other.m_it.primitive_iterator); } }
O0
cpp
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> const&) const: subq $0x88, %rsp movq %rdi, 0x78(%rsp) movq %rsi, 0x70(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x20(%rsp) movq (%rax), %rax movq 0x70(%rsp), %rcx cmpq (%rcx), %rax setne %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xd6a46 jmp 0xd6b0b movb $0x1, 0x3b(%rsp) movl $0x20, %edi callq 0x555d0 movq %rax, 0x10(%rsp) leaq 0x4f(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x55e80 movq 0x18(%rsp), %rdx leaq 0xf09ba(%rip), %rsi # 0x1c742f leaq 0x50(%rsp), %rdi callq 0x5def0 jmp 0xd6a81 movq 0x10(%rsp), %rdi movq 0x20(%rsp), %rax movq (%rax), %rcx movl $0xd4, %esi leaq 0x50(%rsp), %rdx callq 0xd6c00 jmp 0xd6a9f movq 0x10(%rsp), %rdi movb $0x0, 0x3b(%rsp) leaq 0x16e790(%rip), %rsi # 0x245240 leaq -0xc657(%rip), %rdx # 0xca460 callq 0x559b0 jmp 0xd6bff movq %rax, %rcx movl %edx, %eax movq %rcx, 0x40(%rsp) movl %eax, 0x3c(%rsp) jmp 0xd6ae9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x40(%rsp) movl %eax, 0x3c(%rsp) leaq 0x50(%rsp), %rdi callq 0x56290 leaq 0x4f(%rsp), %rdi callq 0x56270 testb $0x1, 0x3b(%rsp) jne 0xd6afc jmp 0xd6b06 movq 0x10(%rsp), %rdi callq 0x55d50 jmp 0xd6bf5 movq 0x20(%rsp), %rax cmpq $0x0, (%rax) jne 0xd6b37 leaq 0xef3f4(%rip), %rdi # 0x1c5f11 movl $0x3422, %esi # imm = 0x3422 leaq 0xebdc2(%rip), %rdx # 0x1c28eb leaq 0xf1b60(%rip), %rcx # 0x1c8690 movb $0x0, %al callq 0x55cd0 movq 0x20(%rsp), %rax movq (%rax), %rax movzbl (%rax), %eax movq %rax, 0x8(%rsp) subq $0x9, %rax ja 0xd6bb0 movq 0x8(%rsp), %rax leaq 0xed4c7(%rip), %rcx # 0x1c4020 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x20(%rsp), %rdi addq $0x8, %rdi movq 0x70(%rsp), %rsi addq $0x8, %rsi callq 0xca470 andb $0x1, %al movb %al, 0x87(%rsp) jmp 0xd6be4 movq 0x20(%rsp), %rdi addq $0x8, %rdi addq $0x8, %rdi movq 0x70(%rsp), %rsi addq $0x8, %rsi addq $0x8, %rsi callq 0xca4b0 andb $0x1, %al movb %al, 0x87(%rsp) jmp 0xd6be4 jmp 0xd6bb0 movq 0x20(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x30(%rsp) movq 0x70(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x28(%rsp) movq 0x30(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0xca4f0 andb $0x1, %al movb %al, 0x87(%rsp) movb 0x87(%rsp), %al andb $0x1, %al addq $0x88, %rsp retq movq 0x40(%rsp), %rdi callq 0x55a10 nop
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_: sub rsp, 88h mov qword ptr [rsp+88h+var_10], rdi; int mov qword ptr [rsp+88h+var_18], rsi; char mov rax, qword ptr [rsp+88h+var_10] mov qword ptr [rsp+88h+var_68], rax; int mov rax, [rax] mov rcx, qword ptr [rsp+88h+var_18] cmp rax, [rcx] setnz al xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_D6A46 jmp loc_D6B0B loc_D6A46: mov [rsp+88h+var_4D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+88h+var_78], rax; int lea rdi, [rsp+88h+var_39] mov qword ptr [rsp+88h+var_70], rdi; char call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+88h+var_70] lea rsi, aCannotCompareI; "cannot compare iterators of different c"... lea rdi, [rsp+88h+var_38] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_D6A81: mov rdi, [rsp+88h+var_78]; int mov rax, qword ptr [rsp+88h+var_68] mov rcx, [rax] mov esi, 0D4h lea rdx, [rsp+88h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_D6A9F: mov rdi, [rsp+88h+var_78]; void * mov [rsp+88h+var_4D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *) call ___cxa_throw jmp loc_D6BFF mov rcx, rax mov eax, edx mov [rsp+arg_38], rcx mov [rsp+arg_34], eax jmp short loc_D6AE9 mov rcx, rax mov eax, edx mov [rsp+arg_38], rcx mov [rsp+arg_34], eax lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_D6AE9: lea rdi, [rsp+arg_47] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_33], 1 jnz short loc_D6AFC jmp short loc_D6B06 loc_D6AFC: mov rdi, [rsp+arg_8]; void * call ___cxa_free_exception loc_D6B06: jmp loc_D6BF5 loc_D6B0B: mov rax, qword ptr [rsp+88h+var_68] cmp qword ptr [rax], 0 jnz short loc_D6B37 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 3422h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov al, 0 call _ggml_abort loc_D6B37: mov rax, qword ptr [rsp+88h+var_68] mov rax, [rax] movzx eax, byte ptr [rax] mov [rsp+88h+var_80], rax sub rax, 9; switch 10 cases ja short def_D6B60; jumptable 00000000000D6B60 default case mov rax, [rsp+88h+var_80] lea rcx, jpt_D6B60 movsxd rax, ds:(jpt_D6B60 - 1C4020h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_D6B62: mov rdi, qword ptr [rsp+88h+var_68]; jumptable 00000000000D6B60 case 1 add rdi, 8 mov rsi, qword ptr [rsp+88h+var_18] add rsi, 8 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&) and al, 1 mov [rsp+88h+var_1], al jmp short loc_D6BE4 loc_D6B84: mov rdi, qword ptr [rsp+88h+var_68]; jumptable 00000000000D6B60 case 2 add rdi, 8 add rdi, 8 mov rsi, qword ptr [rsp+88h+var_18] add rsi, 8 add rsi, 8 call _ZN9__gnu_cxxeqIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEEbRKNS_17__normal_iteratorIT_T0_EESO_; __gnu_cxx::operator==<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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>>>(__gnu_cxx::__normal_iterator<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<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<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<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&) and al, 1 mov [rsp+88h+var_1], al jmp short loc_D6BE4 loc_D6BAE: jmp short $+2; jumptable 00000000000D6B60 cases 0,3-9 def_D6B60: mov rax, qword ptr [rsp+88h+var_68]; jumptable 00000000000D6B60 default case mov rax, [rax+18h] mov [rsp+88h+var_58], rax mov rax, qword ptr [rsp+88h+var_18] mov rax, [rax+18h] mov [rsp+88h+var_60], rax mov rdi, [rsp+88h+var_58] mov rsi, [rsp+88h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detaileqENS1_20primitive_iterator_tES2_; nlohmann::json_abi_v3_11_3::detail::operator==(nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t,nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t) and al, 1 mov [rsp+88h+var_1], al loc_D6BE4: mov al, [rsp+88h+var_1] and al, 1 add rsp, 88h retn loc_D6BF5: mov rdi, [rsp+arg_38] call __Unwind_Resume loc_D6BFF: nop
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_: SUB RSP,0x88 MOV qword ptr [RSP + 0x78],RDI MOV qword ptr [RSP + 0x70],RSI MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RSP + 0x70] CMP RAX,qword ptr [RCX] SETNZ AL XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001d6a46 JMP 0x001d6b0b LAB_001d6a46: MOV byte ptr [RSP + 0x3b],0x1 MOV EDI,0x20 CALL 0x001555d0 MOV qword ptr [RSP + 0x10],RAX LEA RDI,[RSP + 0x4f] MOV qword ptr [RSP + 0x18],RDI CALL 0x00155e80 MOV RDX,qword ptr [RSP + 0x18] LAB_001d6a6e: LEA RSI,[0x2c742f] LEA RDI,[RSP + 0x50] CALL 0x0015def0 JMP 0x001d6a81 LAB_001d6a81: MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RAX] LAB_001d6a8e: MOV ESI,0xd4 LEA RDX,[RSP + 0x50] CALL 0x001d6c00 JMP 0x001d6a9f LAB_001d6a9f: MOV RDI,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x3b],0x0 LEA RSI,[0x345240] LEA RDX,[0x1ca460] CALL 0x001559b0 LAB_001d6b0b: MOV RAX,qword ptr [RSP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x001d6b37 LEA RDI,[0x2c5f11] MOV ESI,0x3422 LEA RDX,[0x2c28eb] LEA RCX,[0x2c8690] MOV AL,0x0 CALL 0x00155cd0 LAB_001d6b37: MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX] MOV qword ptr [RSP + 0x8],RAX SUB RAX,0x9 JA 0x001d6bb0 MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x2c4020] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 MOV RSI,qword ptr [RSP + 0x70] ADD RSI,0x8 CALL 0x001ca470 AND AL,0x1 MOV byte ptr [RSP + 0x87],AL JMP 0x001d6be4 caseD_2: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 ADD RDI,0x8 MOV RSI,qword ptr [RSP + 0x70] ADD RSI,0x8 ADD RSI,0x8 CALL 0x001ca4b0 AND AL,0x1 MOV byte ptr [RSP + 0x87],AL JMP 0x001d6be4 caseD_0: JMP 0x001d6bb0 default: MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x28] CALL 0x001ca4f0 AND AL,0x1 MOV byte ptr [RSP + 0x87],AL LAB_001d6be4: MOV AL,byte ptr [RSP + 0x87] AND AL,0x1 ADD RSP,0x88 RET
int8 _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (long *param_1,long *param_2) { byte extraout_AL; int8 uVar1; int7 extraout_var; int7 extraout_var_00; int7 extraout_var_01; int7 uVar2; allocator local_39; string local_38 [32]; long *local_18; long *local_10; bool local_1; local_18 = param_2; local_10 = param_1; if (*param_1 != *param_2) { uVar1 = __cxa_allocate_exception(0x20); std::allocator<char>::allocator(); /* try { // try from 001d6a6e to 001d6a7e has its CatchHandler @ 001d6ac1 */ std::__cxx11::string::string<std::allocator<char>> (local_38,"cannot compare iterators of different containers",&local_39); /* try { // try from 001d6a8e to 001d6abb has its CatchHandler @ 001d6ad1 */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0xd4,local_38,*param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator); } if (*param_1 == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422, "GGML_ASSERT(%s) failed","m_object != nullptr"); } switch(*(int1 *)*param_1) { case 0: case 3: case 4: case 5: case 6: case 7: case 8: case 9: default: nlohmann::json_abi_v3_11_3::detail::operator==(param_1[3],local_18[3]); local_1 = (bool)(extraout_AL & 1); uVar2 = extraout_var_01; break; case 1: local_1 = __gnu_cxx::operator== ((__normal_iterator *)(param_1 + 1),(__normal_iterator *)(local_18 + 1)); uVar2 = extraout_var; break; case 2: local_1 = __gnu_cxx::operator== ((__normal_iterator *)(param_1 + 2),(__normal_iterator *)(local_18 + 2)); uVar2 = extraout_var_00; } return CONCAT71(uVar2,local_1); }
29,611
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> const&) const
monkey531[P]llama/common/json.hpp
bool operator==(const IterImpl& other) const { // if objects are not the same, the comparison is undefined if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) { JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object)); } JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: return (m_it.object_iterator == other.m_it.object_iterator); case value_t::array: return (m_it.array_iterator == other.m_it.array_iterator); case value_t::null: case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: return (m_it.primitive_iterator == other.m_it.primitive_iterator); } }
O2
cpp
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const> const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movq (%rdi), %rax cmpq (%rsi), %rax jne 0x4efdb testq %rax, %rax je 0x4f02c movzbl (%rax), %eax cmpl $0x2, %eax je 0x4efbd cmpl $0x1, %eax jne 0x4efc7 movq 0x8(%r14), %rax cmpq 0x8(%rsi), %rax jmp 0x4efcf movq 0x10(%r14), %rax cmpq 0x10(%rsi), %rax jmp 0x4efcf movq 0x18(%r14), %rax cmpq 0x18(%rsi), %rax sete %al addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x223c0 movq %rax, %rbx leaq 0x469ea(%rip), %rsi # 0x959d7 leaq 0x10(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x26838 movq (%r14), %rcx movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0xd4, %esi callq 0x4f074 xorl %ebp, %ebp leaq 0x863e3(%rip), %rsi # 0xd5400 leaq -0x1cf2(%rip), %rdx # 0x4d332 movq %rbx, %rdi callq 0x22cd0 leaq 0x4547f(%rip), %rdi # 0x944b2 leaq 0x42935(%rip), %rdx # 0x9196f leaq 0x47bd7(%rip), %rcx # 0x96c18 movl $0x3422, %esi # imm = 0x3422 xorl %eax, %eax callq 0x22c90 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x22f48 testb %bpl, %bpl jne 0x4f064 jmp 0x4f06c movq %rax, %r14 movq %rbx, %rdi callq 0x22550 movq %r14, %rdi callq 0x22d30
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi mov rax, [rdi] cmp rax, [rsi] jnz short loc_4EFDB test rax, rax jz loc_4F02C movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_4EFBD cmp eax, 1 jnz short loc_4EFC7 mov rax, [r14+8] cmp rax, [rsi+8] jmp short loc_4EFCF loc_4EFBD: mov rax, [r14+10h] cmp rax, [rsi+10h] jmp short loc_4EFCF loc_4EFC7: mov rax, [r14+18h] cmp rax, [rsi+18h] loc_4EFCF: setz al add rsp, 30h pop rbx pop r14 pop rbp retn loc_4EFDB: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aCannotCompareI; "cannot compare iterators of different c"... lea rdi, [rsp+48h+var_38] lea rdx, [rsp+48h+var_39] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rcx, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 0D4h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_4F02C: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAnchorMObjectN+7; "m_object != nullptr" mov esi, 3422h xor eax, eax call _ggml_abort mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_4F064 jmp short loc_4F06C mov r14, rax loc_4F064: mov rdi, rbx; void * call ___cxa_free_exception loc_4F06C: mov rdi, r14 call __Unwind_Resume
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOV RAX,qword ptr [RDI] CMP RAX,qword ptr [RSI] JNZ 0x0014efdb TEST RAX,RAX JZ 0x0014f02c MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x0014efbd CMP EAX,0x1 JNZ 0x0014efc7 MOV RAX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RSI + 0x8] JMP 0x0014efcf LAB_0014efbd: MOV RAX,qword ptr [R14 + 0x10] CMP RAX,qword ptr [RSI + 0x10] JMP 0x0014efcf LAB_0014efc7: MOV RAX,qword ptr [R14 + 0x18] CMP RAX,qword ptr [RSI + 0x18] LAB_0014efcf: SETZ AL ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0014efdb: PUSH 0x20 POP RDI CALL 0x001223c0 MOV RBX,RAX LAB_0014efe6: LEA RSI,[0x1959d7] LEA RDI,[RSP + 0x10] LEA RDX,[RSP + 0xf] CALL 0x00126838 MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_0014f002: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0xd4 CALL 0x0014f074 XOR EBP,EBP LEA RSI,[0x1d5400] LEA RDX,[0x14d332] MOV RDI,RBX CALL 0x00122cd0 LAB_0014f02c: LEA RDI,[0x1944b2] LEA RDX,[0x19196f] LEA RCX,[0x196c18] MOV ESI,0x3422 XOR EAX,EAX CALL 0x00122c90
int8 _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ (int8 *param_1,int8 *param_2) { char *pcVar1; long lVar2; int8 uVar3; bool bVar4; allocator local_39; string local_38 [32]; pcVar1 = (char *)*param_1; if (pcVar1 != (char *)*param_2) { uVar3 = __cxa_allocate_exception(0x20); /* try { // try from 0014efe6 to 0014effb has its CatchHandler @ 0014f061 */ std::__cxx11::string::string<std::allocator<char>> (local_38,"cannot compare iterators of different containers",&local_39); /* try { // try from 0014f002 to 0014f02b has its CatchHandler @ 0014f04d */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar3,0xd4,local_38,*param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } if (pcVar1 != (char *)0x0) { if (*pcVar1 == '\x02') { lVar2 = param_1[2]; bVar4 = lVar2 == param_2[2]; } else if (*pcVar1 == '\x01') { lVar2 = param_1[1]; bVar4 = lVar2 == param_2[1]; } else { lVar2 = param_1[3]; bVar4 = lVar2 == param_2[3]; } return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4); } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422, "GGML_ASSERT(%s) failed","m_object != nullptr"); }
29,612
LefDefParser::lefwMacroPinOutputnoisemargin(int, int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwMacroPinOutputnoisemargin(int high, int low) { lefwObsoleteNum = LEFW_MACRO_OUTPUTNOISEMARGIN; if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (!lefwIsMacroPin) return LEFW_BAD_ORDER; if (versionNum >= 5.4) return LEFW_OBSOLETE; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " OUTPUTNOISEMARGIN %d %d ;\n", high, low); else fprintf(lefwFile, " OUTPUTNOISEMARGIN %d %d ;\n", high, low); lefwLines++; lefwState = LEFW_MACRO; return LEFW_OK; }
O0
cpp
LefDefParser::lefwMacroPinOutputnoisemargin(int, int): subq $0x18, %rsp movl %edi, 0x10(%rsp) movl %esi, 0xc(%rsp) movl $0x2b, 0x11c52(%rip) # 0x32d48 leaq 0x11d03(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x21110 movl $0x1, 0x14(%rsp) jmp 0x211d7 leaq 0x11f3d(%rip), %rax # 0x33054 cmpl $0x0, (%rax) jne 0x21129 movl $0x2, 0x14(%rsp) jmp 0x211d7 leaq 0x11f70(%rip), %rax # 0x330a0 cmpl $0x0, (%rax) jne 0x21142 movl $0x2, 0x14(%rsp) jmp 0x211d7 movsd 0x11bf6(%rip), %xmm0 # 0x32d40 movsd 0x80ae(%rip), %xmm1 # 0x29200 ucomisd %xmm1, %xmm0 jb 0x21162 movl $0x7, 0x14(%rsp) jmp 0x211d7 cmpl $0x0, 0x11f83(%rip) # 0x330ec je 0x2118d leaq 0x11c8e(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0x10(%rsp), %edx movl 0xc(%rsp), %ecx leaq 0xa625(%rip), %rsi # 0x2b7a9 movb $0x0, %al callq 0x289b0 jmp 0x211ad leaq 0x11c6c(%rip), %rax # 0x32e00 movq (%rax), %rdi movl 0x10(%rsp), %edx movl 0xc(%rsp), %ecx leaq 0xa603(%rip), %rsi # 0x2b7a9 movb $0x0, %al callq 0x1100 leaq 0x11e98(%rip), %rax # 0x3304c movl (%rax), %ecx addl $0x1, %ecx leaq 0x11e8c(%rip), %rax # 0x3304c movl %ecx, (%rax) leaq 0x11e87(%rip), %rax # 0x33050 movl $0x21, (%rax) movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq
_ZN12LefDefParser29lefwMacroPinOutputnoisemarginEii: sub rsp, 18h mov [rsp+18h+var_8], edi mov [rsp+18h+var_C], esi mov cs:_ZN12LefDefParserL15lefwObsoleteNumE, 2Bh ; '+'; LefDefParser::lefwObsoleteNum lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_21110 mov [rsp+18h+var_4], 1 jmp loc_211D7 loc_21110: lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit cmp dword ptr [rax], 0 jnz short loc_21129 mov [rsp+18h+var_4], 2 jmp loc_211D7 loc_21129: lea rax, _ZN12LefDefParser14lefwIsMacroPinE; LefDefParser::lefwIsMacroPin cmp dword ptr [rax], 0 jnz short loc_21142 mov [rsp+18h+var_4], 2 jmp loc_211D7 loc_21142: movsd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum movsd xmm1, cs:dbl_29200 ucomisd xmm0, xmm1 jb short loc_21162 mov [rsp+18h+var_4], 7 jmp short loc_211D7 loc_21162: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_2118D lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, [rsp+18h+var_8] mov ecx, [rsp+18h+var_C] lea rsi, aOutputnoisemar; " OUTPUTNOISEMARGIN %d %d ;\n" mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_211AD loc_2118D: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov edx, [rsp+18h+var_8] mov ecx, [rsp+18h+var_C] lea rsi, aOutputnoisemar; " OUTPUTNOISEMARGIN %d %d ;\n" mov al, 0 call _fprintf loc_211AD: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov dword ptr [rax], 21h ; '!' mov [rsp+18h+var_4], 0 loc_211D7: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwMacroPinOutputnoisemargin( LefDefParser *this, int a2, int a3, long long a4, int a5, int a6) { LefDefParser::lefwObsoleteNum = 43; if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwDidInit ) { if ( LefDefParser::lefwIsMacroPin ) { if ( *(double *)&LefDefParser::versionNum < 5.4 ) { if ( LefDefParser::lefwWriteEncrypt ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" OUTPUTNOISEMARGIN %d %d ;\n", (_DWORD)this, a2, a5, a6); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " OUTPUTNOISEMARGIN %d %d ;\n", (_DWORD)this, a2); ++LefDefParser::lefwLines; LefDefParser::lefwState = 33; return 0; } else { return 7; } } else { return 2; } } else { return 2; } } else { return 1; } }
lefwMacroPinOutputnoisemargin: SUB RSP,0x18 MOV dword ptr [RSP + 0x10],EDI MOV dword ptr [RSP + 0xc],ESI MOV dword ptr [0x00132d48],0x2b LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x00121110 MOV dword ptr [RSP + 0x14],0x1 JMP 0x001211d7 LAB_00121110: LEA RAX,[0x133054] CMP dword ptr [RAX],0x0 JNZ 0x00121129 MOV dword ptr [RSP + 0x14],0x2 JMP 0x001211d7 LAB_00121129: LEA RAX,[0x1330a0] CMP dword ptr [RAX],0x0 JNZ 0x00121142 MOV dword ptr [RSP + 0x14],0x2 JMP 0x001211d7 LAB_00121142: MOVSD XMM0,qword ptr [0x00132d40] MOVSD XMM1,qword ptr [0x00129200] UCOMISD XMM0,XMM1 JC 0x00121162 MOV dword ptr [RSP + 0x14],0x7 JMP 0x001211d7 LAB_00121162: CMP dword ptr [0x001330ec],0x0 JZ 0x0012118d LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0x10] MOV ECX,dword ptr [RSP + 0xc] LEA RSI,[0x12b7a9] MOV AL,0x0 CALL 0x001289b0 JMP 0x001211ad LAB_0012118d: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP + 0x10] MOV ECX,dword ptr [RSP + 0xc] LEA RSI,[0x12b7a9] MOV AL,0x0 CALL 0x00101100 LAB_001211ad: LEA RAX,[0x13304c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x13304c] MOV dword ptr [RAX],ECX LEA RAX,[0x133050] MOV dword ptr [RAX],0x21 MOV dword ptr [RSP + 0x14],0x0 LAB_001211d7: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwMacroPinOutputnoisemargin(int, int) */ int4 LefDefParser::lefwMacroPinOutputnoisemargin(int param_1,int param_2) { int4 local_4; lefwObsoleteNum = 0x2b; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (lefwDidInit == 0) { local_4 = 2; } else if (lefwIsMacroPin == 0) { local_4 = 2; } else if (versionNum < DAT_00129200) { if (lefwWriteEncrypt == 0) { fprintf(lefwFile," OUTPUTNOISEMARGIN %d %d ;\n",(ulong)(uint)param_1,(ulong)(uint)param_2 ); } else { encPrint(lefwFile," OUTPUTNOISEMARGIN %d %d ;\n",(ulong)(uint)param_1, (ulong)(uint)param_2); } lefwLines = lefwLines + 1; lefwState = 0x21; local_4 = 0; } else { local_4 = 7; } return local_4; }
29,613
resize_queue
eloqsql/mysys/queues.c
int resize_queue(QUEUE *queue, uint max_elements) { uchar **new_root; DBUG_ENTER("resize_queue"); if (queue->max_elements == max_elements) DBUG_RETURN(0); if ((new_root= (uchar **) my_realloc(key_memory_QUEUE, (void *)queue->root, (max_elements + 1)* sizeof(void*), MYF(MY_WME))) == 0) DBUG_RETURN(1); set_if_smaller(queue->elements, max_elements); queue->max_elements= max_elements; queue->root= new_root; DBUG_RETURN(0); }
O0
c
resize_queue: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rax movl 0x14(%rax), %eax cmpl -0x14(%rbp), %eax jne 0xf7106 jmp 0xf70fd movl $0x0, -0x4(%rbp) jmp 0xf7179 leaq 0xb8c1c3(%rip), %rax # 0xc832d0 movl (%rax), %edi movq -0x10(%rbp), %rax movq (%rax), %rsi movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, %eax movl %eax, %edx shlq $0x3, %rdx movl $0x10, %ecx callq 0xf3a00 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0xf7143 jmp 0xf713a movl $0x1, -0x4(%rbp) jmp 0xf7179 jmp 0xf7145 movq -0x10(%rbp), %rax movl 0x10(%rax), %eax cmpl -0x14(%rbp), %eax jbe 0xf715b movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x10(%rax) jmp 0xf715d movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
resize_queue: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov rax, [rbp+var_10] mov eax, [rax+14h] cmp eax, [rbp+var_14] jnz short loc_F7106 jmp short $+2 loc_F70FD: mov [rbp+var_4], 0 jmp short loc_F7179 loc_F7106: lea rax, key_memory_QUEUE mov edi, [rax] mov rax, [rbp+var_10] mov rsi, [rax] mov eax, [rbp+var_14] add eax, 1 mov eax, eax mov edx, eax shl rdx, 3 mov ecx, 10h call my_realloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_F7143 jmp short $+2 loc_F713A: mov [rbp+var_4], 1 jmp short loc_F7179 loc_F7143: jmp short $+2 loc_F7145: mov rax, [rbp+var_10] mov eax, [rax+10h] cmp eax, [rbp+var_14] jbe short loc_F715B mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+10h], ecx loc_F715B: jmp short $+2 loc_F715D: mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+14h], ecx mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_4], 0 loc_F7179: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long resize_queue(long long a1, unsigned int a2) { long long v3; // [rsp+0h] [rbp-20h] if ( *(_DWORD *)(a1 + 20) == a2 ) { return 0; } else { v3 = my_realloc(key_memory_QUEUE, *(_QWORD *)a1, (const char *)(8LL * (a2 + 1)), 16); if ( v3 ) { if ( *(_DWORD *)(a1 + 16) > a2 ) *(_DWORD *)(a1 + 16) = a2; *(_DWORD *)(a1 + 20) = a2; *(_QWORD *)a1 = v3; return 0; } else { return 1; } } }
resize_queue: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x14] CMP EAX,dword ptr [RBP + -0x14] JNZ 0x001f7106 JMP 0x001f70fd LAB_001f70fd: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001f7179 LAB_001f7106: LEA RAX,[0xd832d0] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV EAX,EAX MOV EDX,EAX SHL RDX,0x3 MOV ECX,0x10 CALL 0x001f3a00 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x001f7143 JMP 0x001f713a LAB_001f713a: MOV dword ptr [RBP + -0x4],0x1 JMP 0x001f7179 LAB_001f7143: JMP 0x001f7145 LAB_001f7145: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x10] CMP EAX,dword ptr [RBP + -0x14] JBE 0x001f715b MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x10],ECX LAB_001f715b: JMP 0x001f715d LAB_001f715d: MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x14],ECX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x0 LAB_001f7179: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 resize_queue(long *param_1,uint param_2) { long lVar1; int4 local_c; if (*(uint *)((long)param_1 + 0x14) == param_2) { local_c = 0; } else { lVar1 = my_realloc(key_memory_QUEUE,*param_1,(ulong)(param_2 + 1) << 3,0x10); if (lVar1 == 0) { local_c = 1; } else { if (param_2 < *(uint *)(param_1 + 2)) { *(uint *)(param_1 + 2) = param_2; } *(uint *)((long)param_1 + 0x14) = param_2; *param_1 = lVar1; local_c = 0; } } return local_c; }
29,614
list_reverse
eloqsql/libmariadb/libmariadb/ma_list.c
LIST *list_reverse(LIST *root) { LIST *last; last=root; while (root) { last=root; root=root->next; last->next=last->prev; last->prev=root; } return last; }
O0
c
list_reverse: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) cmpq $0x0, -0x8(%rbp) je 0x295e7 movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x8(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x295b0 movq -0x10(%rbp), %rax popq %rbp retq nopl (%rax)
list_reverse: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax loc_295B0: cmp [rbp+var_8], 0 jz short loc_295E7 mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_8], rax mov rax, [rbp+var_10] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+8], rcx mov rcx, [rbp+var_8] mov rax, [rbp+var_10] mov [rax], rcx jmp short loc_295B0 loc_295E7: mov rax, [rbp+var_10] pop rbp retn
_QWORD * list_reverse(_QWORD *a1) { _QWORD *v2; // [rsp+0h] [rbp-10h] _QWORD *v3; // [rsp+8h] [rbp-8h] v3 = a1; v2 = a1; while ( v3 ) { v2 = v3; v3 = (_QWORD *)v3[1]; v2[1] = *v2; *v2 = v3; } return v2; }
list_reverse: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX LAB_001295b0: CMP qword ptr [RBP + -0x8],0x0 JZ 0x001295e7 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX JMP 0x001295b0 LAB_001295e7: MOV RAX,qword ptr [RBP + -0x10] POP RBP RET
int8 * list_reverse(int8 *param_1) { int8 *puVar1; int8 *local_18; int8 *local_10; local_18 = param_1; local_10 = param_1; while (local_10 != (int8 *)0x0) { local_18 = local_10; puVar1 = (int8 *)local_10[1]; local_10[1] = *local_10; *local_10 = puVar1; local_10 = puVar1; } return local_18; }
29,615
POINTonE2_affine_on_curve
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e2.c
static bool_t POINTonE2_affine_on_curve(const POINTonE2_affine *p) { vec384x XXX, YY; sqr_fp2(XXX, p->X); mul_fp2(XXX, XXX, p->X); /* X^3 */ add_fp2(XXX, XXX, B_E2); /* X^3 + B */ sqr_fp2(YY, p->Y); /* Y^2 */ return vec_is_equal(XXX, YY, sizeof(XXX)); }
O3
c
POINTonE2_affine_on_curve: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rdi, %r14 leaq 0x24128(%rip), %r15 # 0x3fb10 leaq -0xf0(%rbp), %rbx movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x332e0 movq %rbx, %rdi movq %rbx, %rsi movq %r14, %rdx movq %r15, %rcx movq %r12, %r8 callq 0x331a0 leaq 0x2500b(%rip), %rdx # 0x40a30 movq %rbx, %rdi movq %rbx, %rsi movq %r15, %rcx callq 0x2ed20 addq $0x60, %r14 leaq -0x90(%rbp), %r13 movq %r13, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx callq 0x332e0 movl $0x60, %edx movq %rbx, %rdi movq %r13, %rsi callq 0x2ff80 addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
POINTonE2_affine_on_curve: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r14, rdi lea r15, BLS12_381_P lea rbx, [rbp+var_F0] mov r12, 89F3FFFCFFFCFFFDh mov rdi, rbx mov rsi, r14 mov rdx, r15 mov rcx, r12 call sqr_mont_384x mov rdi, rbx mov rsi, rbx mov rdx, r14 mov rcx, r15 mov r8, r12 call mul_mont_384x lea rdx, B_E2 mov rdi, rbx mov rsi, rbx mov rcx, r15 call add_mod_384x add r14, 60h ; '`' lea r13, [rbp+var_90] mov rdi, r13 mov rsi, r14 mov rdx, r15 mov rcx, r12 call sqr_mont_384x mov edx, 60h ; '`' mov rdi, rbx mov rsi, r13 call vec_is_equal_16x add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long POINTonE2_affine_on_curve(long long a1) { _BYTE v2[96]; // [rsp+0h] [rbp-F0h] BYREF _BYTE v3[144]; // [rsp+60h] [rbp-90h] BYREF sqr_mont_384x(v2, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); mul_mont_384x(v2, v2, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); add_mod_384x(v2, v2, &B_E2, &BLS12_381_P); sqr_mont_384x(v3, a1 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); return vec_is_equal_16x(v2, v3, 96LL); }
POINTonE2_affine_on_curve: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R14,RDI LEA R15,[0x13fb10] LEA RBX,[RBP + -0xf0] MOV R12,-0x760c000300030003 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x001332e0 MOV RDI,RBX MOV RSI,RBX MOV RDX,R14 MOV RCX,R15 MOV R8,R12 CALL 0x001331a0 LEA RDX,[0x140a30] MOV RDI,RBX MOV RSI,RBX MOV RCX,R15 CALL 0x0012ed20 ADD R14,0x60 LEA R13,[RBP + -0x90] MOV RDI,R13 MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 CALL 0x001332e0 MOV EDX,0x60 MOV RDI,RBX MOV RSI,R13 CALL 0x0012ff80 ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void POINTonE2_affine_on_curve(long param_1) { int1 local_f8 [96]; int1 local_98 [104]; sqr_mont_384x(local_f8,param_1,BLS12_381_P,0x89f3fffcfffcfffd); mul_mont_384x(local_f8,local_f8,param_1,BLS12_381_P,0x89f3fffcfffcfffd); add_mod_384x(local_f8,local_f8,B_E2,BLS12_381_P); sqr_mont_384x(local_98,param_1 + 0x60,BLS12_381_P,0x89f3fffcfffcfffd); vec_is_equal_16x(local_f8,local_98,0x60); return; }
29,616
mi_rec_pos
eloqsql/storage/myisam/mi_search.c
my_off_t _mi_rec_pos(MYISAM_SHARE *s, uchar *ptr) { my_off_t pos; switch (s->rec_reflength) { #if SIZEOF_OFF_T > 4 case 8: pos= (my_off_t) mi_uint8korr(ptr); if (pos == HA_OFFSET_ERROR) return HA_OFFSET_ERROR; /* end of list */ break; case 7: pos= (my_off_t) mi_uint7korr(ptr); if (pos == (((my_off_t) 1) << 56) -1) return HA_OFFSET_ERROR; /* end of list */ break; case 6: pos= (my_off_t) mi_uint6korr(ptr); if (pos == (((my_off_t) 1) << 48) -1) return HA_OFFSET_ERROR; /* end of list */ break; case 5: pos= (my_off_t) mi_uint5korr(ptr); if (pos == (((my_off_t) 1) << 40) -1) return HA_OFFSET_ERROR; /* end of list */ break; #else case 8: case 7: case 6: case 5: ptr+= (s->rec_reflength-4); /* fall through */ #endif case 4: pos= (my_off_t) mi_uint4korr(ptr); if (pos == (my_off_t) (uint32) ~0L) return HA_OFFSET_ERROR; break; case 3: pos= (my_off_t) mi_uint3korr(ptr); if (pos == (my_off_t) (1 << 24) -1) return HA_OFFSET_ERROR; break; case 2: pos= (my_off_t) mi_uint2korr(ptr); if (pos == (my_off_t) (1 << 16) -1) return HA_OFFSET_ERROR; break; default: abort(); /* Impossible */ } return ((s->options & (HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) ? pos : pos*s->base.pack_reclength); }
O0
c
mi_rec_pos: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movl 0x338(%rax), %eax addl $-0x2, %eax movl %eax, %ecx movq %rcx, -0x28(%rbp) subl $0x6, %eax ja 0xc0ac4 movq -0x28(%rbp), %rax leaq 0x98c6d(%rip), %rcx # 0x159554 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax movzbl 0x7(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x6(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x5(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x4(%rcx), %ecx shll $0x18, %ecx orl %ecx, %eax movl %eax, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx movq -0x18(%rbp), %rdx movzbl 0x2(%rdx), %edx shll $0x8, %edx orl %edx, %ecx movq -0x18(%rbp), %rdx movzbl 0x1(%rdx), %edx shll $0x10, %edx orl %edx, %ecx movq -0x18(%rbp), %rdx movzbl (%rdx), %edx shll $0x18, %edx orl %edx, %ecx movl %ecx, %ecx shlq $0x20, %rcx orq %rcx, %rax movq %rax, -0x20(%rbp) cmpq $-0x1, -0x20(%rbp) jne 0xc0970 movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 movq -0x18(%rbp), %rdi callq 0xc0530 movq %rax, -0x20(%rbp) movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF cmpq %rax, -0x20(%rbp) jne 0xc099f movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 movq -0x18(%rbp), %rdi callq 0xc0590 movq %rax, -0x20(%rbp) movabsq $0xffffffffffff, %rax # imm = 0xFFFFFFFFFFFF cmpq %rax, -0x20(%rbp) jne 0xc09ce movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 movq -0x18(%rbp), %rdi callq 0xc05e0 movq %rax, -0x20(%rbp) movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF cmpq %rax, -0x20(%rbp) jne 0xc09fd movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 movq -0x18(%rbp), %rax movzbl 0x3(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx shll $0x18, %ecx orl %ecx, %eax movl %eax, %eax movq %rax, -0x20(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, -0x20(%rbp) jne 0xc0a4e movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 movq -0x18(%rbp), %rax movzbl 0x2(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movq %rax, -0x20(%rbp) cmpq $0xffffff, -0x20(%rbp) # imm = 0xFFFFFF jne 0xc0a8b movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax movq %rax, -0x20(%rbp) cmpq $0xffff, -0x20(%rbp) # imm = 0xFFFF jne 0xc0ac2 movq $-0x1, -0x8(%rbp) jmp 0xc0b04 jmp 0xc0ac9 callq 0x2a5d0 movq -0x10(%rbp), %rax movq 0x318(%rax), %rax andq $0x5, %rax cmpq $0x0, %rax je 0xc0ae8 movq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0xc0afc movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx imulq 0x148(%rcx), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nop
_mi_rec_pos: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov eax, [rax+338h] add eax, 0FFFFFFFEh; switch 7 cases mov ecx, eax mov [rbp+var_28], rcx sub eax, 6 ja def_C08EE; jumptable 00000000000C08EE default case mov rax, [rbp+var_28] lea rcx, jpt_C08EE movsxd rax, ds:(jpt_C08EE - 159554h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_C08F0: mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 8 movzx eax, byte ptr [rax+7] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+6] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+5] shl ecx, 10h or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+4] shl ecx, 18h or eax, ecx mov eax, eax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] mov rdx, [rbp+var_18] movzx edx, byte ptr [rdx+2] shl edx, 8 or ecx, edx mov rdx, [rbp+var_18] movzx edx, byte ptr [rdx+1] shl edx, 10h or ecx, edx mov rdx, [rbp+var_18] movzx edx, byte ptr [rdx] shl edx, 18h or ecx, edx mov ecx, ecx shl rcx, 20h or rax, rcx mov [rbp+var_20], rax cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh jnz short loc_C0970 mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp loc_C0B04 loc_C0970: jmp loc_C0AC9 loc_C0975: mov rdi, [rbp+var_18]; jumptable 00000000000C08EE case 7 call mi_uint7korr_0 mov [rbp+var_20], rax mov rax, 0FFFFFFFFFFFFFFh cmp [rbp+var_20], rax jnz short loc_C099F mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp loc_C0B04 loc_C099F: jmp loc_C0AC9 loc_C09A4: mov rdi, [rbp+var_18]; jumptable 00000000000C08EE case 6 call mi_uint6korr_0 mov [rbp+var_20], rax mov rax, 0FFFFFFFFFFFFh cmp [rbp+var_20], rax jnz short loc_C09CE mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp loc_C0B04 loc_C09CE: jmp loc_C0AC9 loc_C09D3: mov rdi, [rbp+var_18]; jumptable 00000000000C08EE case 5 call mi_uint5korr_0 mov [rbp+var_20], rax mov rax, 0FFFFFFFFFFh cmp [rbp+var_20], rax jnz short loc_C09FD mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp loc_C0B04 loc_C09FD: jmp loc_C0AC9 loc_C0A02: mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 4 movzx eax, byte ptr [rax+3] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 10h or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] shl ecx, 18h or eax, ecx mov eax, eax mov [rbp+var_20], rax mov eax, 0FFFFFFFFh cmp [rbp+var_20], rax jnz short loc_C0A4E mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp loc_C0B04 loc_C0A4E: jmp short loc_C0AC9 loc_C0A50: mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 3 movzx eax, byte ptr [rax+2] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] shl ecx, 10h or eax, ecx mov eax, eax mov [rbp+var_20], rax cmp [rbp+var_20], 0FFFFFFh jnz short loc_C0A8B mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp short loc_C0B04 loc_C0A8B: jmp short loc_C0AC9 loc_C0A8D: mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 2 movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax mov [rbp+var_20], rax cmp [rbp+var_20], 0FFFFh jnz short loc_C0AC2 mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp short loc_C0B04 loc_C0AC2: jmp short loc_C0AC9 def_C08EE: call _abort; jumptable 00000000000C08EE default case loc_C0AC9: mov rax, [rbp+var_10] mov rax, [rax+318h] and rax, 5 cmp rax, 0 jz short loc_C0AE8 mov rax, [rbp+var_20] mov [rbp+var_30], rax jmp short loc_C0AFC loc_C0AE8: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] imul rax, [rcx+148h] mov [rbp+var_30], rax loc_C0AFC: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_C0B04: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long mi_rec_pos(long long a1, unsigned int *a2, long long a3) { unsigned long long v4; // [rsp+0h] [rbp-30h] unsigned long long v5; // [rsp+10h] [rbp-20h] long long v6; // [rsp+28h] [rbp-8h] switch ( *(_DWORD *)(a1 + 824) ) { case 2: v5 = _byteswap_ushort(*(_WORD *)a2); if ( v5 != 0xFFFF ) goto LABEL_24; v6 = -1LL; break; case 3: v5 = (*(unsigned __int8 *)a2 << 16) | (*((unsigned __int8 *)a2 + 1) << 8) | (unsigned int)*((unsigned __int8 *)a2 + 2); if ( v5 != 0xFFFFFF ) goto LABEL_24; v6 = -1LL; break; case 4: v5 = _byteswap_ulong(*a2); if ( v5 != 0xFFFFFFFF ) goto LABEL_24; v6 = -1LL; break; case 5: v5 = mi_uint5korr_0(a2); if ( v5 != 0xFFFFFFFFFFLL ) goto LABEL_24; v6 = -1LL; break; case 6: v5 = mi_uint6korr_0(a2); if ( v5 != 0xFFFFFFFFFFFFLL ) goto LABEL_24; v6 = -1LL; break; case 7: v5 = mi_uint7korr_0(a2); if ( v5 != 0xFFFFFFFFFFFFFFLL ) goto LABEL_24; v6 = -1LL; break; case 8: v5 = ((unsigned long long)_byteswap_ulong(*a2) << 32) | _byteswap_ulong(a2[1]); if ( v5 == -1LL ) { v6 = -1LL; } else { LABEL_24: if ( (*(_QWORD *)(a1 + 792) & 5LL) != 0 ) v4 = v5; else v4 = *(_QWORD *)(a1 + 328) * v5; v6 = v4; } break; default: abort(a1, a2, a3); } return v6; }
_mi_rec_pos: 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 EAX,dword ptr [RAX + 0x338] ADD EAX,-0x2 MOV ECX,EAX MOV qword ptr [RBP + -0x28],RCX SUB EAX,0x6 JA 0x001c0ac4 MOV RAX,qword ptr [RBP + -0x28] LEA RCX,[0x259554] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_8: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x7] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x6] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x5] SHL ECX,0x10 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x4] SHL ECX,0x18 OR EAX,ECX MOV EAX,EAX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] MOV RDX,qword ptr [RBP + -0x18] MOVZX EDX,byte ptr [RDX + 0x2] SHL EDX,0x8 OR ECX,EDX MOV RDX,qword ptr [RBP + -0x18] MOVZX EDX,byte ptr [RDX + 0x1] SHL EDX,0x10 OR ECX,EDX MOV RDX,qword ptr [RBP + -0x18] MOVZX EDX,byte ptr [RDX] SHL EDX,0x18 OR ECX,EDX MOV ECX,ECX SHL RCX,0x20 OR RAX,RCX MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],-0x1 JNZ 0x001c0970 MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c0970: JMP 0x001c0ac9 caseD_7: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001c0530 MOV qword ptr [RBP + -0x20],RAX MOV RAX,0xffffffffffffff CMP qword ptr [RBP + -0x20],RAX JNZ 0x001c099f MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c099f: JMP 0x001c0ac9 caseD_6: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001c0590 MOV qword ptr [RBP + -0x20],RAX MOV RAX,0xffffffffffff CMP qword ptr [RBP + -0x20],RAX JNZ 0x001c09ce MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c09ce: JMP 0x001c0ac9 caseD_5: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001c05e0 MOV qword ptr [RBP + -0x20],RAX MOV RAX,0xffffffffff CMP qword ptr [RBP + -0x20],RAX JNZ 0x001c09fd MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c09fd: JMP 0x001c0ac9 caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x3] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x10 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] SHL ECX,0x18 OR EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x20],RAX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x20],RAX JNZ 0x001c0a4e MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c0a4e: JMP 0x001c0ac9 caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x2] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0xffffff JNZ 0x001c0a8b MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c0a8b: JMP 0x001c0ac9 caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0xffff JNZ 0x001c0ac2 MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001c0b04 LAB_001c0ac2: JMP 0x001c0ac9 default: CALL 0x0012a5d0 LAB_001c0ac9: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x318] AND RAX,0x5 CMP RAX,0x0 JZ 0x001c0ae8 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x30],RAX JMP 0x001c0afc LAB_001c0ae8: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] IMUL RAX,qword ptr [RCX + 0x148] MOV qword ptr [RBP + -0x30],RAX LAB_001c0afc: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001c0b04: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
ulong _mi_rec_pos(long param_1,int1 *param_2) { ulong local_38; ulong local_28; switch(*(int4 *)(param_1 + 0x338)) { case 2: local_28 = (ulong)CONCAT11(*param_2,param_2[1]); if (local_28 == 0xffff) { return 0xffffffffffffffff; } break; case 3: local_28 = (ulong)CONCAT12(*param_2,CONCAT11(param_2[1],param_2[2])); if (local_28 == 0xffffff) { return 0xffffffffffffffff; } break; case 4: local_28 = (ulong)CONCAT13(*param_2,CONCAT12(param_2[1],CONCAT11(param_2[2],param_2[3]))); if (local_28 == 0xffffffff) { return 0xffffffffffffffff; } break; case 5: local_28 = mi_uint5korr(param_2); if (local_28 == 0xffffffffff) { return 0xffffffffffffffff; } break; case 6: local_28 = mi_uint6korr(param_2); if (local_28 == 0xffffffffffff) { return 0xffffffffffffffff; } break; case 7: local_28 = mi_uint7korr(param_2); if (local_28 == 0xffffffffffffff) { return 0xffffffffffffffff; } break; case 8: local_28 = CONCAT44(CONCAT13(*param_2,CONCAT12(param_2[1],CONCAT11(param_2[2],param_2[3]))), CONCAT13(param_2[4],CONCAT12(param_2[5],CONCAT11(param_2[6],param_2[7])))); if (local_28 == 0xffffffffffffffff) { return 0xffffffffffffffff; } break; default: /* WARNING: Subroutine does not return */ abort(); } if ((*(ulong *)(param_1 + 0x318) & 5) == 0) { local_38 = local_28 * *(long *)(param_1 + 0x148); } else { local_38 = local_28; } return local_38; }
29,617
sha256_final
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/sha256.h
static void sha256_final(unsigned char md[32], SHA256_CTX *ctx) { unsigned long long bits = ctx->N * 8; size_t n = ctx->off; unsigned char *tail; ctx->buf[n++] = 0x80; if (n > (sizeof(ctx->buf) - 8)) { sha256_block_data_order(ctx->h, ctx->buf, 1); vec_zero(ctx->buf, sizeof(ctx->buf)); } tail = ctx->buf + sizeof(ctx->buf) - 8; __TOBE32(tail, (unsigned int)(bits >> 32)); __TOBE32(tail + 4, (unsigned int)bits); sha256_block_data_order(ctx->h, ctx->buf, 1); sha256_emit(md, ctx->h); }
O1
c
sha256_final: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movq 0x20(%rsi), %r12 movq 0x68(%rsi), %rax leaq 0x28(%rsi), %r15 movb $-0x80, 0x28(%rsi,%rax) addq $-0x38, %rax cmpq $-0x3a, %rax ja 0x6a4f5 movl $0x1, %edx movq %rbx, %rdi movq %r15, %rsi callq 0x6f240 xorl %eax, %eax movq $0x0, (%r15,%rax,8) incq %rax cmpq $0x8, %rax jne 0x6a4e4 shlq $0x3, %r12 bswapq %r12 movq %r12, 0x60(%rbx) movl $0x1, %edx movq %rbx, %rdi movq %r15, %rsi callq 0x6f240 movq %r14, %rdi movq %rbx, %rsi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x715a0
sha256_final: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rsi mov r14, rdi mov r12, [rsi+20h] mov rax, [rsi+68h] lea r15, [rsi+28h] mov byte ptr [rsi+rax+28h], 80h add rax, 0FFFFFFFFFFFFFFC8h cmp rax, 0FFFFFFFFFFFFFFC6h ja short loc_6A4F5 mov edx, 1 mov rdi, rbx mov rsi, r15 call blst_sha256_block_data_order xor eax, eax loc_6A4E4: mov qword ptr [r15+rax*8], 0 inc rax cmp rax, 8 jnz short loc_6A4E4 loc_6A4F5: shl r12, 3 bswap r12 mov [rbx+60h], r12 mov edx, 1 mov rdi, rbx mov rsi, r15 call blst_sha256_block_data_order mov rdi, r14 mov rsi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp blst_sha256_emit
sha256_final: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV R12,qword ptr [RSI + 0x20] MOV RAX,qword ptr [RSI + 0x68] LEA R15,[RSI + 0x28] MOV byte ptr [RSI + RAX*0x1 + 0x28],0x80 ADD RAX,-0x38 CMP RAX,-0x3a JA 0x0016a4f5 MOV EDX,0x1 MOV RDI,RBX MOV RSI,R15 CALL 0x0016f240 XOR EAX,EAX LAB_0016a4e4: MOV qword ptr [R15 + RAX*0x8],0x0 INC RAX CMP RAX,0x8 JNZ 0x0016a4e4 LAB_0016a4f5: SHL R12,0x3 BSWAP R12 MOV qword ptr [RBX + 0x60],R12 MOV EDX,0x1 MOV RDI,RBX MOV RSI,R15 CALL 0x0016f240 MOV RDI,R14 MOV RSI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x001715a0
void sha256_final(int8 param_1,long param_2) { long lVar1; long lVar2; long lVar3; ulong uVar4; lVar2 = *(long *)(param_2 + 0x20); lVar3 = *(long *)(param_2 + 0x68); lVar1 = param_2 + 0x28; *(int1 *)(param_2 + 0x28 + lVar3) = 0x80; if (lVar3 - 0x38U < 0xffffffffffffffc7) { blst_sha256_block_data_order(param_2,lVar1,1); lVar3 = 0; do { *(int8 *)(lVar1 + lVar3 * 8) = 0; lVar3 = lVar3 + 1; } while (lVar3 != 8); } uVar4 = lVar2 << 3; *(ulong *)(param_2 + 0x60) = uVar4 >> 0x38 | (uVar4 & 0xff000000000000) >> 0x28 | (uVar4 & 0xff0000000000) >> 0x18 | (uVar4 & 0xff00000000) >> 8 | (uVar4 & 0xff000000) << 8 | (uVar4 & 0xff0000) << 0x18 | (uVar4 & 0xff00) << 0x28 | lVar2 << 0x3b; blst_sha256_block_data_order(param_2,lVar1,1); blst_sha256_emit(param_1,param_2); return; }
29,618
ggml_sub_or_set
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static void ggml_sub_or_set( struct ggml_context * ctx, struct ggml_cgraph * cgraph, size_t isrc, struct ggml_tensor * tensor) { struct ggml_tensor * src = cgraph->visited_hash_set.keys[isrc]; GGML_ASSERT(src); if (cgraph->grads[isrc]) { cgraph->grads[isrc] = ggml_sub_impl(ctx, cgraph->grads[isrc], tensor, cgraph->grad_accs[isrc]); } else { cgraph->grads[isrc] = ggml_neg(ctx, tensor); } ggml_format_name(cgraph->grads[isrc], "grad for %s", src->name); ggml_build_forward_expand(cgraph, cgraph->grads[isrc]); }
O0
c
ggml_sub_or_set: 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 movq 0x40(%rax), %rax movq -0x18(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x5a744 leaq 0x56e8d(%rip), %rdi # 0xb15b7 movl $0x147f, %esi # imm = 0x147F leaq 0x56ed3(%rip), %rdx # 0xb1609 leaq 0x59abf(%rip), %rcx # 0xb41fc movb $0x0, %al callq 0x48a00 movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x18(%rbp), %rcx cmpq $0x0, (%rax,%rcx,8) je 0x5a7a3 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x18(%rbp), %rcx movq (%rax,%rcx,8), %rsi movq -0x20(%rbp), %rdx movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx cmpq $0x0, (%rax,%rcx,8) setne %al movzbl %al, %ecx andl $0x1, %ecx callq 0x4d330 movq %rax, %rdx movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x18(%rbp), %rcx movq %rdx, (%rax,%rcx,8) jmp 0x5a7c3 movq -0x8(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x46480 movq %rax, %rdx movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x18(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x18(%rbp), %rcx movq (%rax,%rcx,8), %rdi movq -0x28(%rbp), %rdx addq $0x100, %rdx # imm = 0x100 leaq 0x59a1b(%rip), %rsi # 0xb4200 movb $0x0, %al callq 0x481b0 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq -0x18(%rbp), %rcx movq (%rax,%rcx,8), %rsi callq 0x436a0 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
ggml_sub_or_set: 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 rax, [rax+40h] mov rcx, [rbp+var_18] mov rax, [rax+rcx*8] mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_5A744 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 147Fh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSrc; "src" mov al, 0 call _ggml_abort loc_5A744: mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_18] cmp qword ptr [rax+rcx*8], 0 jz short loc_5A7A3 mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_18] mov rsi, [rax+rcx*8] mov rdx, [rbp+var_20] mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] cmp qword ptr [rax+rcx*8], 0 setnz al movzx ecx, al and ecx, 1 call ggml_sub_impl mov rdx, rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_18] mov [rax+rcx*8], rdx jmp short loc_5A7C3 loc_5A7A3: mov rdi, [rbp+var_8] mov rsi, [rbp+var_20] call _ggml_neg mov rdx, rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_18] mov [rax+rcx*8], rdx loc_5A7C3: mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_18] mov rdi, [rax+rcx*8] mov rdx, [rbp+var_28] add rdx, 100h lea rsi, aGradForS; "grad for %s" mov al, 0 call _ggml_format_name mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov rax, [rax+18h] mov rcx, [rbp+var_18] mov rsi, [rax+rcx*8] call _ggml_build_forward_expand add rsp, 30h pop rbp retn
long long ggml_sub_or_set( long long a1, _QWORD *a2, long long a3, _QWORD *a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { long long v12; // rax long long v13; // r8 long long v14; // r9 __m128 v15; // xmm4 __m128 v16; // xmm5 char v18; // [rsp+0h] [rbp-30h] long long v19; // [rsp+8h] [rbp-28h] v19 = *(_QWORD *)(a2[8] + 8 * a3); if ( !v19 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 5247, (long long)"GGML_ASSERT(%s) failed", "src"); if ( *(_QWORD *)(a2[3] + 8 * a3) ) v12 = ggml_sub_impl( a1, *(long long **)(a2[3] + 8 * a3), a4, *(_QWORD *)(a2[4] + 8 * a3) != 0LL, a5, a6, a7, a8, a9, a10, a11, a12); else v12 = ggml_neg(a1, (long long)a4); *(_QWORD *)(a2[3] + 8 * a3) = v12; ggml_format_name( *(_QWORD *)(a2[3] + 8 * a3), (long long)"grad for %s", v19 + 256, a3, v13, v14, a5, a6, a7, a8, v15, v16, a11, a12, v18); return ggml_build_forward_expand((long long)a2, *(_QWORD *)(a2[3] + 8 * a3)); }
ggml_sub_or_set: 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 RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0015a744 LEA RDI,[0x1b15b7] MOV ESI,0x147f LEA RDX,[0x1b1609] LEA RCX,[0x1b41fc] MOV AL,0x0 CALL 0x00148a00 LAB_0015a744: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + RCX*0x8],0x0 JZ 0x0015a7a3 MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + RCX*0x8] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + RCX*0x8],0x0 SETNZ AL MOVZX ECX,AL AND ECX,0x1 CALL 0x0014d330 MOV RDX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + RCX*0x8],RDX JMP 0x0015a7c3 LAB_0015a7a3: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00146480 MOV RDX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + RCX*0x8],RDX LAB_0015a7c3: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + RCX*0x8] MOV RDX,qword ptr [RBP + -0x28] ADD RDX,0x100 LEA RSI,[0x1b4200] MOV AL,0x0 CALL 0x001481b0 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + RCX*0x8] CALL 0x001436a0 ADD RSP,0x30 POP RBP RET
void ggml_sub_or_set(int8 param_1,long param_2,long param_3,int8 param_4) { long lVar1; int8 uVar2; lVar1 = *(long *)(*(long *)(param_2 + 0x40) + param_3 * 8); if (lVar1 == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0x147f,"GGML_ASSERT(%s) failed",&DAT_001b41fc); } if (*(long *)(*(long *)(param_2 + 0x18) + param_3 * 8) == 0) { uVar2 = ggml_neg(param_1,param_4); *(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8) = uVar2; } else { uVar2 = ggml_sub_impl(param_1,*(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8),param_4, *(long *)(*(long *)(param_2 + 0x20) + param_3 * 8) != 0); *(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8) = uVar2; } ggml_format_name(*(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8),"grad for %s", lVar1 + 0x100); ggml_build_forward_expand(param_2,*(int8 *)(*(long *)(param_2 + 0x18) + param_3 * 8)); return; }
29,619
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
monkey531[P]llama/common/minja.hpp
T get(const std::string & key, T default_value) const { if (!contains(key)) return default_value; return at(key).get<T>(); }
O0
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const: subq $0xb8, %rsp movq %rcx, 0x18(%rsp) movq %rdi, 0x20(%rsp) movq %rdi, %rax movq %rax, 0x28(%rsp) movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq %rdx, 0xa0(%rsp) movq %rcx, 0x98(%rsp) movq 0xa8(%rsp), %rdi movq %rdi, 0x30(%rsp) movq 0xa0(%rsp), %rsi callq 0x131680 testb $0x1, %al jne 0x1748a8 movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdi callq 0x5b010 jmp 0x17490c movq 0xa0(%rsp), %rsi leaq 0x48(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x1197e0 movq 0x30(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x171340 movq %rax, 0x10(%rsp) jmp 0x1748d5 movq 0x10(%rsp), %rsi movq 0x20(%rsp), %rdi callq 0x113fb0 jmp 0x1748e6 leaq 0x48(%rsp), %rdi callq 0x112070 jmp 0x17490c movq %rax, %rcx movl %edx, %eax movq %rcx, 0x40(%rsp) movl %eax, 0x3c(%rsp) leaq 0x48(%rsp), %rdi callq 0x112070 jmp 0x174919 movq 0x28(%rsp), %rax addq $0xb8, %rsp retq movq 0x40(%rsp), %rdi callq 0x5abc0 nopw %cs:(%rax,%rax) nopl (%rax)
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_S8_: sub rsp, 0B8h mov qword ptr [rsp+0B8h+var_A0], rcx; int mov qword ptr [rsp+0B8h+var_98], rdi; __int16 mov rax, rdi mov [rsp+0B8h+var_90], rax; __int64 mov [rsp+0B8h+var_8], rdi mov qword ptr [rsp+0B8h+var_10], rsi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_20], rcx mov rdi, qword ptr [rsp+0B8h+var_10] mov [rsp+0B8h+var_88], rdi; char mov rsi, [rsp+0B8h+var_18] call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&) test al, 1 jnz short loc_1748A8 mov rsi, qword ptr [rsp+0B8h+var_A0] mov rdi, qword ptr [rsp+0B8h+var_98] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_; std::string::basic_string(std::string&&) jmp short loc_17490C loc_1748A8: mov rsi, [rsp+0B8h+var_18] lea rdi, [rsp+0B8h+var_70] mov [rsp+0B8h+var_B0], rdi; int call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) mov rdi, [rsp+0B8h+var_88]; this mov rsi, [rsp+0B8h+var_B0]; minja::Value * call _ZNK5minja5Value2atERKS0_; minja::Value::at(minja::Value const&) mov qword ptr [rsp+0B8h+var_A8], rax; int jmp short $+2 loc_1748D5: mov rsi, qword ptr [rsp+0B8h+var_A8]; int mov rdi, qword ptr [rsp+0B8h+var_98]; int call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp short $+2 loc_1748E6: lea rdi, [rsp+0B8h+var_70]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_17490C mov rcx, rax mov eax, edx mov [rsp+arg_38], rcx mov [rsp+arg_34], eax lea rdi, [rsp+arg_40]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_174919 loc_17490C: mov rax, [rsp+0B8h+var_90] add rsp, 0B8h retn loc_174919: mov rdi, [rsp+arg_38] call __Unwind_Resume
void * minja::Value::get<std::string>(void *a1, minja::Value *a2, long long a3, long long a4) { minja::Value *v5; // [rsp+10h] [rbp-A8h] int v7[20]; // [rsp+48h] [rbp-70h] BYREF long long v8; // [rsp+98h] [rbp-20h] long long v9; // [rsp+A0h] [rbp-18h] char v10[8]; // [rsp+A8h] [rbp-10h] void *v11; // [rsp+B0h] [rbp-8h] v11 = a1; *(_QWORD *)v10 = a2; v9 = a3; v8 = a4; if ( minja::Value::contains((long long)a2, a3) ) { minja::Value::Value((long long)v7, v9); v5 = (minja::Value *)minja::Value::at(a2, (const minja::Value *)v7); minja::Value::get<std::string>(a1, v5); minja::Value::~Value((minja::Value *)v7); } else { std::string::basic_string(a1, a4); } return a1; }
29,620
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
monkey531[P]llama/common/minja.hpp
T get(const std::string & key, T default_value) const { if (!contains(key)) return default_value; return at(key).get<T>(); }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const: pushq %r15 pushq %r14 pushq %rbx subq $0x50, %rsp movl %edx, %ebx movq %rsi, %r15 movq %rdi, %r14 callq 0x92cf0 testb %al, %al je 0xb38d0 movq %rsp, %rbx movq %rbx, %rdi movq %r15, %rsi callq 0x89890 movq %r14, %rdi movq %rbx, %rsi callq 0x92892 movq %rax, %rdi callq 0x86892 movl %eax, %ebx leaq 0x40(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x57ee4 movq %r14, %rdi callq 0x5d352 movq -0x8(%r14), %rdi testq %rdi, %rdi je 0xb387c callq 0x6cd76 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0xb388b callq 0x6cd76 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0xb389a callq 0x6cd76 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xb38d0 movq 0x776dd(%rip), %rax # 0x12af88 cmpb $0x0, (%rax) je 0xb38bb movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xb38c5 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xb38d0 movq (%rdi), %rax callq *0x18(%rax) movl %ebx, %eax addq $0x50, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x85832 movq %rbx, %rdi callq 0x1afa0 nop
_ZNK5minja5Value3getIbEET_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_: push r15 push r14 push rbx sub rsp, 50h mov ebx, edx mov r15, rsi mov r14, rdi call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&) test al, al jz loc_B38D0 mov rbx, rsp mov rdi, rbx mov rsi, r15 call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) mov rdi, r14; this mov rsi, rbx; minja::Value * call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&) mov rdi, rax call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) mov ebx, eax lea r14, [rsp+68h+var_28] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [r14-8] test rdi, rdi jz short loc_B387C call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_B387C: mov rdi, [rsp+68h+var_40] test rdi, rdi jz short loc_B388B call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_B388B: mov rdi, [rsp+68h+var_50] test rdi, rdi jz short loc_B389A call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_B389A: mov rdi, [rsp+68h+var_60] test rdi, rdi jz short loc_B38D0 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_B38BB mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_B38C5 loc_B38BB: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_B38C5: cmp eax, 1 jnz short loc_B38D0 mov rax, [rdi] call qword ptr [rax+18h] loc_B38D0: mov eax, ebx add rsp, 50h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, rsp; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rdi, rbx call __Unwind_Resume
long long minja::Value::get<bool>(minja::Value *this, long long a2, unsigned int a3) { _QWORD *v4; // rax unsigned int v5; // eax long long v6; // rdi signed __int32 v7; // eax long long v9; // [rsp+0h] [rbp-68h] BYREF long long v10; // [rsp+8h] [rbp-60h] volatile signed __int32 *v11; // [rsp+18h] [rbp-50h] volatile signed __int32 *v12; // [rsp+28h] [rbp-40h] volatile signed __int32 *v13; // [rsp+38h] [rbp-30h] char v14[40]; // [rsp+40h] [rbp-28h] BYREF if ( minja::Value::contains((long long)this, a2) ) { minja::Value::Value((long long)&v9, a2); v4 = (_QWORD *)minja::Value::at(this, (const minja::Value *)&v9); LOBYTE(v5) = minja::Value::get<bool>(v4); a3 = v5; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v14); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v14); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); if ( v12 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12); if ( v11 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11); v6 = v10; if ( v10 ) { if ( _libc_single_threaded ) { v7 = *(_DWORD *)(v10 + 12); *(_DWORD *)(v10 + 12) = v7 - 1; } else { v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v10 + 12), 0xFFFFFFFF); } if ( v7 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL); } } return a3; }
get<bool>: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x50 MOV EBX,EDX MOV R15,RSI MOV R14,RDI CALL 0x00192cf0 TEST AL,AL JZ 0x001b38d0 MOV RBX,RSP MOV RDI,RBX MOV RSI,R15 CALL 0x00189890 LAB_001b3842: MOV RDI,R14 MOV RSI,RBX CALL 0x00192892 MOV RDI,RAX CALL 0x00186892 LAB_001b3855: MOV EBX,EAX LEA R14,[RSP + 0x40] MOV RDI,R14 XOR ESI,ESI CALL 0x00157ee4 MOV RDI,R14 CALL 0x0015d352 MOV RDI,qword ptr [R14 + -0x8] TEST RDI,RDI JZ 0x001b387c CALL 0x0016cd76 LAB_001b387c: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x001b388b CALL 0x0016cd76 LAB_001b388b: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001b389a CALL 0x0016cd76 LAB_001b389a: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x001b38d0 MOV RAX,qword ptr [0x0022af88] CMP byte ptr [RAX],0x0 JZ 0x001b38bb MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001b38c5 LAB_001b38bb: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001b38c5: CMP EAX,0x1 JNZ 0x001b38d0 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001b38d0: MOV EAX,EBX ADD RSP,0x50 POP RBX POP R14 POP R15 RET
/* bool minja::Value::get<bool>(std::__cxx11::string const&, bool) const */ bool __thiscall minja::Value::get<bool>(Value *this,string *param_1,bool param_2) { int *piVar1; char cVar2; int iVar3; Value *this_00; Value aVStack_68 [8]; long *local_60; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; data local_28 [16]; cVar2 = contains(this,param_1); if (cVar2 != '\0') { Value(aVStack_68,param_1); /* try { // try from 001b3842 to 001b3854 has its CatchHandler @ 001b38dc */ this_00 = (Value *)at(this,aVStack_68); param_2 = get<bool>(this_00); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_28,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_28); if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50); } if (local_60 != (long *)0x0) { if (*PTR___libc_single_threaded_0022af88 == '\0') { LOCK(); piVar1 = (int *)((long)local_60 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_60 + 0xc); *(int *)((long)local_60 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_60 + 0x18))(); } } } return param_2; }
29,621
EsrganBlock::map_by_name(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
7CodeWizard[P]stablediffusion/esrgan.hpp
void map_by_name(std::map<std::string, ggml_tensor*>& tensors, std::string prefix) { for (int i = 0; i < num_residual_blocks; i++) { rd_blocks[i].map_by_name(tensors, prefix + "rdb" + std::to_string(i + 1) + "."); } }
O0
cpp
EsrganBlock::map_by_name(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): subq $0xd8, %rsp movq %rdx, 0x18(%rsp) movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq %rdx, 0xc0(%rsp) movq 0xd0(%rsp), %rax movq %rax, 0x20(%rsp) movl $0x0, 0xbc(%rsp) movq 0x20(%rsp), %rcx movl 0xbc(%rsp), %eax cmpl 0x108(%rcx), %eax jge 0xf233b movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rax movslq 0xbc(%rsp), %rcx imulq $0x58, %rcx, %rcx addq %rcx, %rax movq %rax, 0x8(%rsp) movq 0xc8(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0x937f0(%rip), %rdx # 0x185a16 leaq 0x58(%rsp), %rdi callq 0x303b0 movl 0xbc(%rsp), %esi incl %esi leaq 0x38(%rsp), %rdi callq 0x30610 jmp 0xf2245 leaq 0x78(%rsp), %rdi leaq 0x58(%rsp), %rsi leaq 0x38(%rsp), %rdx callq 0x308f0 jmp 0xf225b leaq 0x8ddc3(%rip), %rdx # 0x180025 leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x30440 jmp 0xf2276 movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdi leaq 0x98(%rsp), %rdx callq 0xf2350 jmp 0xf228f leaq 0x98(%rsp), %rdi callq 0xbf00 leaq 0x78(%rsp), %rdi callq 0xbf00 leaq 0x38(%rsp), %rdi callq 0xbf00 leaq 0x58(%rsp), %rdi callq 0xbf00 movl 0xbc(%rsp), %eax addl $0x1, %eax movl %eax, 0xbc(%rsp) jmp 0xf21dc movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xf232f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xf2325 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xf231b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x98(%rsp), %rdi callq 0xbf00 leaq 0x78(%rsp), %rdi callq 0xbf00 leaq 0x38(%rsp), %rdi callq 0xbf00 leaq 0x58(%rsp), %rdi callq 0xbf00 jmp 0xf2343 addq $0xd8, %rsp retq movq 0x30(%rsp), %rdi callq 0xbd30 nopl (%rax)
_ZN11EsrganBlock11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEES6_: sub rsp, 0D8h mov [rsp+0D8h+var_C0], rdx; __int64 mov [rsp+0D8h+var_8], rdi mov qword ptr [rsp+0D8h+var_10], rsi mov [rsp+0D8h+var_18], rdx mov rax, [rsp+0D8h+var_8] mov [rsp+0D8h+var_B8], rax mov [rsp+0D8h+var_1C], 0 loc_F21DC: mov rcx, [rsp+0D8h+var_B8] mov eax, [rsp+0D8h+var_1C] cmp eax, [rcx+108h] jge loc_F233B mov rsi, [rsp+0D8h+var_C0]; int mov rax, [rsp+0D8h+var_B8] movsxd rcx, [rsp+0D8h+var_1C] imul rcx, 58h ; 'X'; int add rax, rcx mov [rsp+0D8h+var_D0], rax; void * mov rax, qword ptr [rsp+0D8h+var_10] mov qword ptr [rsp+0D8h+var_C8], rax; int lea rdx, aRdb; "rdb" lea rdi, [rsp+0D8h+var_80]; int call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) mov esi, [rsp+0D8h+var_1C] inc esi; int lea rdi, [rsp+0D8h+var_A0]; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) jmp short $+2 loc_F2245: lea rdi, [rsp+0D8h+var_60] lea rsi, [rsp+0D8h+var_80] lea rdx, [rsp+0D8h+var_A0] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) jmp short $+2 loc_F225B: lea rdx, aMiddleBlock0+0Eh; "." lea rdi, [rsp+0D8h+var_40] lea rsi, [rsp+0D8h+var_60] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) jmp short $+2 loc_F2276: mov rsi, qword ptr [rsp+0D8h+var_C8] mov rdi, [rsp+0D8h+var_D0] lea rdx, [rsp+0D8h+var_40] call _ZN18ResidualDenseBlock11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEES6_; ResidualDenseBlock::map_by_name(std::map<std::string,ggml_tensor *> &,std::string) jmp short $+2 loc_F228F: lea rdi, [rsp+0D8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov eax, [rsp+0D8h+var_1C] add eax, 1 mov [rsp+0D8h+var_1C], eax jmp loc_F21DC mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_F232F mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_F2325 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_F231B mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_F231B: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_F2325: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_F232F: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_F2343 loc_F233B: add rsp, 0D8h retn loc_F2343: mov rdi, [rsp+arg_28] call __Unwind_Resume
long long EsrganBlock::map_by_name(long long a1, long long a2, long long a3) { long long result; // rax void *v4; // [rsp+8h] [rbp-D0h] int v5[2]; // [rsp+10h] [rbp-C8h] _BYTE v7[32]; // [rsp+38h] [rbp-A0h] BYREF int v8[8]; // [rsp+58h] [rbp-80h] BYREF _BYTE v9[32]; // [rsp+78h] [rbp-60h] BYREF _BYTE v10[36]; // [rsp+98h] [rbp-40h] BYREF unsigned int i; // [rsp+BCh] [rbp-1Ch] long long v12; // [rsp+C0h] [rbp-18h] int v13[2]; // [rsp+C8h] [rbp-10h] long long v14; // [rsp+D0h] [rbp-8h] v14 = a1; *(_QWORD *)v13 = a2; v12 = a3; for ( i = 0; ; ++i ) { result = i; if ( (signed int)i >= *(_DWORD *)(a1 + 264) ) break; v4 = (void *)(88LL * (int)i + a1); *(_QWORD *)v5 = *(_QWORD *)v13; std::operator+<char>((long long)v8, a3, (long long)"rdb"); std::to_string((std::__cxx11 *)v7, i + 1); std::operator+<char>((long long)v9, (long long)v8, (long long)v7); std::operator+<char>((long long)v10, (long long)v9, (long long)"."); ResidualDenseBlock::map_by_name(v4, *(_QWORD *)v5, v10); std::string::~string(v10); std::string::~string(v9); std::string::~string(v7); std::string::~string(v8); } return result; }
map_by_name: SUB RSP,0xd8 MOV qword ptr [RSP + 0x18],RDX MOV qword ptr [RSP + 0xd0],RDI MOV qword ptr [RSP + 0xc8],RSI MOV qword ptr [RSP + 0xc0],RDX MOV RAX,qword ptr [RSP + 0xd0] MOV qword ptr [RSP + 0x20],RAX MOV dword ptr [RSP + 0xbc],0x0 LAB_001f21dc: MOV RCX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0xbc] CMP EAX,dword ptr [RCX + 0x108] JGE 0x001f233b MOV RSI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x20] MOVSXD RCX,dword ptr [RSP + 0xbc] IMUL RCX,RCX,0x58 ADD RAX,RCX MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0xc8] MOV qword ptr [RSP + 0x10],RAX LEA RDX,[0x285a16] LEA RDI,[RSP + 0x58] CALL 0x001303b0 MOV ESI,dword ptr [RSP + 0xbc] INC ESI LAB_001f2239: LEA RDI,[RSP + 0x38] CALL 0x00130610 JMP 0x001f2245 LAB_001f2245: LEA RDI,[RSP + 0x78] LEA RSI,[RSP + 0x58] LEA RDX,[RSP + 0x38] CALL 0x001308f0 JMP 0x001f225b LAB_001f225b: LEA RDX,[0x280025] LEA RDI,[RSP + 0x98] LEA RSI,[RSP + 0x78] CALL 0x00130440 JMP 0x001f2276 LAB_001f2276: MOV RSI,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x8] LEA RDX,[RSP + 0x98] CALL 0x001f2350 LAB_001f228d: JMP 0x001f228f LAB_001f228f: LEA RDI,[RSP + 0x98] CALL 0x0010bf00 LEA RDI,[RSP + 0x78] CALL 0x0010bf00 LEA RDI,[RSP + 0x38] CALL 0x0010bf00 LEA RDI,[RSP + 0x58] CALL 0x0010bf00 MOV EAX,dword ptr [RSP + 0xbc] ADD EAX,0x1 MOV dword ptr [RSP + 0xbc],EAX JMP 0x001f21dc LAB_001f233b: ADD RSP,0xd8 RET
/* EsrganBlock::map_by_name(std::map<std::__cxx11::string, ggml_tensor*, std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, ggml_tensor*> > >&, std::__cxx11::string) */ void __thiscall EsrganBlock::map_by_name(EsrganBlock *this,int8 param_1,char *param_3) { int8 uVar1; long lVar2; __cxx11 local_a0 [32]; string local_80 [32]; string local_60 [32]; string local_40 [36]; int local_1c; char *local_18; int8 local_10; EsrganBlock *local_8; local_18 = param_3; local_10 = param_1; local_8 = this; for (local_1c = 0; uVar1 = local_10, local_1c < *(int *)(this + 0x108); local_1c = local_1c + 1) { lVar2 = (long)local_1c; std::operator+(local_80,param_3); /* try { // try from 001f2239 to 001f2242 has its CatchHandler @ 001f22d0 */ std::__cxx11::to_string(local_a0,local_1c + 1); /* try { // try from 001f2245 to 001f2258 has its CatchHandler @ 001f22e0 */ std::operator+(local_60,local_80); /* try { // try from 001f225b to 001f2273 has its CatchHandler @ 001f22f0 */ std::operator+(local_40,(char *)local_60); /* try { // try from 001f2276 to 001f228c has its CatchHandler @ 001f2300 */ ResidualDenseBlock::map_by_name((ResidualDenseBlock *)(this + lVar2 * 0x58),uVar1,local_40); std::__cxx11::string::~string(local_40); std::__cxx11::string::~string(local_60); std::__cxx11::string::~string((string *)local_a0); std::__cxx11::string::~string(local_80); } return; }
29,622
EsrganBlock::map_by_name(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
7CodeWizard[P]stablediffusion/esrgan.hpp
void map_by_name(std::map<std::string, ggml_tensor*>& tensors, std::string prefix) { for (int i = 0; i < num_residual_blocks; i++) { rd_blocks[i].map_by_name(tensors, prefix + "rdb" + std::to_string(i + 1) + "."); } }
O2
cpp
EsrganBlock::map_by_name(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, 0x8(%rsp) movq %rsi, (%rsp) movq %rdi, %r15 xorl %r14d, %r14d leaq 0x38(%rsp), %r13 leaq 0x18(%rsp), %rbp leaq 0x58(%rsp), %r12 leaq 0x78(%rsp), %rbx movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movslq 0x108(%rax), %rax cmpq %rax, %r14 jge 0x58ced movq %r13, %rdi movq 0x8(%rsp), %rsi leaq 0x46b7d(%rip), %rdx # 0x9f7fe callq 0x19f94 leal 0x1(%r14), %esi movq %rbp, %rdi callq 0x1a085 movq %r12, %rdi movq %r13, %rsi movq %rbp, %rdx callq 0x1a163 movq %rbx, %rdi movq %r12, %rsi leaq 0x40057(%rip), %rdx # 0x98d04 callq 0x19fcc movq %r15, %rdi movq (%rsp), %rsi movq %rbx, %rdx callq 0x58d42 movq %rbx, %rdi callq 0xac60 movq %r12, %rdi callq 0xac60 movq %rbp, %rdi callq 0xac60 movq %r13, %rdi callq 0xac60 addq $0x58, %r15 incq %r14 jmp 0x58c61 addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x78(%rsp), %rdi callq 0xac60 jmp 0x58d11 movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0xac60 jmp 0x58d25 movq %rax, %rbx jmp 0x58d2f movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0xac60 leaq 0x38(%rsp), %rdi callq 0xac60 movq %rbx, %rdi callq 0xaab0 nop
_ZN11EsrganBlock11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEES6_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov [rsp+0C8h+var_C0], rdx mov [rsp+0C8h+var_C8], rsi mov r15, rdi xor r14d, r14d lea r13, [rsp+0C8h+var_90] lea rbp, [rsp+0C8h+var_B0] lea r12, [rsp+0C8h+var_70] lea rbx, [rsp+0C8h+var_50] mov [rsp+0C8h+var_B8], rdi loc_58C61: mov rax, [rsp+0C8h+var_B8] movsxd rax, dword ptr [rax+108h] cmp r14, rax jge short loc_58CED mov rdi, r13 mov rsi, [rsp+0C8h+var_C0] lea rdx, aRdb; "rdb" call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) lea esi, [r14+1]; int mov rdi, rbp; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, r12 mov rsi, r13 mov rdx, rbp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) mov rdi, rbx mov rsi, r12 lea rdx, aTThreadsNNumbe+5Eh; "." call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov rdi, r15 mov rsi, [rsp+0C8h+var_C8] mov rdx, rbx call _ZN18ResidualDenseBlock11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEES6_; ResidualDenseBlock::map_by_name(std::map<std::string,ggml_tensor *> &,std::string) mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r13; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add r15, 58h ; 'X' inc r14 jmp loc_58C61 loc_58CED: add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_58D11 mov rbx, rax loc_58D11: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_58D25 mov rbx, rax jmp short loc_58D2F mov rbx, rax loc_58D25: lea rdi, [rsp+arg_10]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_58D2F: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long EsrganBlock::map_by_name(long long a1, long long a2, long long a3) { long long v3; // r15 long long i; // r14 long long result; // rax _QWORD v7[4]; // [rsp+18h] [rbp-B0h] BYREF _QWORD v8[4]; // [rsp+38h] [rbp-90h] BYREF _BYTE v9[32]; // [rsp+58h] [rbp-70h] BYREF _BYTE v10[80]; // [rsp+78h] [rbp-50h] BYREF v3 = a1; for ( i = 0LL; ; ++i ) { result = *(int *)(a1 + 264); if ( i >= result ) break; std::operator+<char>((long long)v8, a3, (long long)"rdb"); std::to_string((std::__cxx11 *)v7, i + 1); std::operator+<char>((long long)v9, v8, v7); std::operator+<char>((long long)v10, (long long)v9, (long long)"."); ResidualDenseBlock::map_by_name(v3, a2, v10); std::string::~string(v10); std::string::~string(v9); std::string::~string(v7); std::string::~string(v8); v3 += 88LL; } return result; }
map_by_name: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV qword ptr [RSP + 0x8],RDX MOV qword ptr [RSP],RSI MOV R15,RDI XOR R14D,R14D LEA R13,[RSP + 0x38] LEA RBP,[RSP + 0x18] LEA R12,[RSP + 0x58] LEA RBX,[RSP + 0x78] MOV qword ptr [RSP + 0x10],RDI LAB_00158c61: MOV RAX,qword ptr [RSP + 0x10] MOVSXD RAX,dword ptr [RAX + 0x108] CMP R14,RAX JGE 0x00158ced MOV RDI,R13 MOV RSI,qword ptr [RSP + 0x8] LEA RDX,[0x19f7fe] CALL 0x00119f94 LEA ESI,[R14 + 0x1] LAB_00158c8a: MOV RDI,RBP CALL 0x0011a085 LAB_00158c92: MOV RDI,R12 MOV RSI,R13 MOV RDX,RBP CALL 0x0011a163 LAB_00158ca0: MOV RDI,RBX MOV RSI,R12 LEA RDX,[0x198d04] CALL 0x00119fcc LAB_00158cb2: MOV RDI,R15 MOV RSI,qword ptr [RSP] MOV RDX,RBX CALL 0x00158d42 LAB_00158cc1: MOV RDI,RBX CALL 0x0010ac60 MOV RDI,R12 CALL 0x0010ac60 MOV RDI,RBP CALL 0x0010ac60 MOV RDI,R13 CALL 0x0010ac60 ADD R15,0x58 INC R14 JMP 0x00158c61 LAB_00158ced: ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* EsrganBlock::map_by_name(std::map<std::__cxx11::string, ggml_tensor*, std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, ggml_tensor*> > >&, std::__cxx11::string) */ void __thiscall EsrganBlock::map_by_name(EsrganBlock *this,int8 param_1,char *param_3) { long lVar1; EsrganBlock *pEVar2; __cxx11 local_b0 [32]; string local_90 [32]; string local_70 [32]; string local_50 [32]; pEVar2 = this; for (lVar1 = 0; lVar1 < *(int *)(this + 0x108); lVar1 = lVar1 + 1) { std::operator+(local_90,param_3); /* try { // try from 00158c8a to 00158c91 has its CatchHandler @ 00158d1d */ std::__cxx11::to_string(local_b0,(int)lVar1 + 1); /* try { // try from 00158c92 to 00158c9f has its CatchHandler @ 00158d22 */ std::operator+(local_70,local_90); /* try { // try from 00158ca0 to 00158cb1 has its CatchHandler @ 00158d0e */ std::operator+(local_50,(char *)local_70); /* try { // try from 00158cb2 to 00158cc0 has its CatchHandler @ 00158cff */ ResidualDenseBlock::map_by_name((ResidualDenseBlock *)pEVar2,param_1,local_50); std::__cxx11::string::~string(local_50); std::__cxx11::string::~string(local_70); std::__cxx11::string::~string((string *)local_b0); std::__cxx11::string::~string(local_90); pEVar2 = (EsrganBlock *)((ResidualDenseBlock *)pEVar2 + 0x58); } return; }
29,623
EsrganBlock::map_by_name(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
7CodeWizard[P]stablediffusion/esrgan.hpp
void map_by_name(std::map<std::string, ggml_tensor*>& tensors, std::string prefix) { for (int i = 0; i < num_residual_blocks; i++) { rd_blocks[i].map_by_name(tensors, prefix + "rdb" + std::to_string(i + 1) + "."); } }
O3
cpp
EsrganBlock::map_by_name(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ggml_tensor*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ggml_tensor*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rsi, 0x80(%rsp) cmpl $0x0, 0x108(%rdi) jle 0x7ca6c movq %rdx, %rbx movq %rdi, %r15 leaq 0x50(%rsp), %rbp xorl %r13d, %r13d movq %rbp, %r14 movq %rbp, 0x40(%rsp) movq (%rbx), %rsi movq 0x8(%rbx), %rdx addq %rsi, %rdx leaq 0x40(%rsp), %r12 movq %r12, %rdi callq 0x2ebc4 movq %r12, %rdi leaq 0x46085(%rip), %rsi # 0xc28de callq 0xabe0 leaq 0x1(%r13), %r12 movl $0x1, %ebp cmpq $0x9, %r13 jb 0x7c8af movl $0x4, %ebp movl %r12d, %eax movl $0xd1b71759, %edx # imm = 0xD1B71759 cmpl $0x63, %eax jbe 0x7c8a8 cmpl $0x3e7, %eax # imm = 0x3E7 jbe 0x7c8ad cmpl $0x2710, %eax # imm = 0x2710 jb 0x7c8af movl %eax, %ecx imulq %rdx, %rcx shrq $0x2d, %rcx addl $0x4, %ebp cmpl $0x1869f, %eax # imm = 0x1869F movl %ecx, %eax ja 0x7c87a addl $-0x3, %ebp jmp 0x7c8af addl $-0x2, %ebp jmp 0x7c8af decl %ebp movl %ebp, %esi leaq 0x30(%rsp), %rax movq %rax, 0x20(%rsp) leaq 0x20(%rsp), %rdi movl $0x2d, %edx callq 0xa6c0 movq 0x20(%rsp), %rdi movl %ebp, %esi movl %r12d, %edx callq 0x2eaa5 movq 0x40(%rsp), %rcx movl $0xf, %edi movq %r14, %rbp cmpq %r14, %rcx je 0x7c8f0 movq 0x50(%rsp), %rdi movq 0x48(%rsp), %r8 movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rdi, %rax jbe 0x7c921 movl $0xf, %edi leaq 0x30(%rsp), %r9 cmpq %r9, %rsi je 0x7c91c movq 0x30(%rsp), %rdi cmpq %rdi, %rax jbe 0x7c92d leaq 0x40(%rsp), %rdi callq 0xa180 jmp 0x7c93b leaq 0x20(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0xa670 leaq 0x10(%rsp), %rsi movq %rsi, (%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x7c95e movq %rdx, (%rsp) movq (%rcx), %rdx movq %rdx, 0x10(%rsp) jmp 0x7c964 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x8(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) movq %rsp, %rdi leaq 0x3f449(%rip), %rsi # 0xbbdd4 callq 0xabe0 leaq 0x70(%rsp), %rsi movq %rsi, 0x60(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x7c9b8 movq %rdx, 0x60(%rsp) movq (%rcx), %rdx movq %rdx, 0x70(%rsp) jmp 0x7c9be movups (%rcx), %xmm0 movups %xmm0, (%rsi) imulq $0x58, %r13, %rdi addq %r15, %rdi movq 0x8(%rax), %rdx movq %rdx, 0x68(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq 0x80(%rsp), %rsi leaq 0x60(%rsp), %rdx callq 0x7cb04 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi leaq 0x10(%rsp), %r14 je 0x7ca10 movq 0x70(%rsp), %rsi incq %rsi callq 0xa5d0 movq (%rsp), %rdi cmpq %r14, %rdi je 0x7ca26 movq 0x10(%rsp), %rsi incq %rsi callq 0xa5d0 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x7ca42 movq 0x30(%rsp), %rsi incq %rsi callq 0xa5d0 movq 0x40(%rsp), %rdi cmpq %rbp, %rdi je 0x7ca59 movq 0x50(%rsp), %rsi incq %rsi callq 0xa5d0 movslq 0x108(%r15), %rax movq %r12, %r13 cmpq %rax, %r12 jl 0x7c830 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x7ca80 movq %rax, %rbx jmp 0x7cae5 movq %rax, %rbx jmp 0x7cac9 movq %rax, %rbx jmp 0x7caae movq %rax, %rbx movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0x7caae movq 0x70(%rsp), %rsi incq %rsi callq 0xa5d0 movq (%rsp), %rdi leaq 0x10(%rsp), %rax cmpq %rax, %rdi je 0x7cac9 movq 0x10(%rsp), %rsi incq %rsi callq 0xa5d0 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x7cae5 movq 0x30(%rsp), %rsi incq %rsi callq 0xa5d0 movq 0x40(%rsp), %rdi cmpq %r14, %rdi je 0x7cafc movq 0x50(%rsp), %rsi incq %rsi callq 0xa5d0 movq %rbx, %rdi callq 0xaad0
_ZN11EsrganBlock11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEES6_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov qword ptr [rsp+0B8h+var_38], rsi cmp dword ptr [rdi+108h], 0 jle loc_7CA6C mov rbx, rdx mov r15, rdi lea rbp, [rsp+0B8h+var_68] xor r13d, r13d loc_7C830: mov r14, rbp mov [rsp+0B8h+var_78], rbp mov rsi, [rbx] mov rdx, [rbx+8] add rdx, rsi lea r12, [rsp+0B8h+var_78] mov rdi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rdi, r12 lea rsi, aRdb; "rdb" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r12, [r13+1] mov ebp, 1 cmp r13, 9 jb short loc_7C8AF mov ebp, 4 mov eax, r12d mov edx, 0D1B71759h loc_7C87A: cmp eax, 63h ; 'c' jbe short loc_7C8A8 cmp eax, 3E7h jbe short loc_7C8AD cmp eax, 2710h jb short loc_7C8AF mov ecx, eax imul rcx, rdx shr rcx, 2Dh add ebp, 4 cmp eax, 1869Fh mov eax, ecx ja short loc_7C87A add ebp, 0FFFFFFFDh jmp short loc_7C8AF loc_7C8A8: add ebp, 0FFFFFFFEh jmp short loc_7C8AF loc_7C8AD: dec ebp loc_7C8AF: mov esi, ebp lea rax, [rsp+0B8h+var_88] mov [rsp+0B8h+var_98], rax lea rdi, [rsp+0B8h+var_98] mov edx, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rdi, [rsp+0B8h+var_98] mov esi, ebp mov edx, r12d call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov rcx, [rsp+0B8h+var_78] mov edi, 0Fh mov rbp, r14 cmp rcx, r14 jz short loc_7C8F0 mov rdi, [rsp+0B8h+var_68] loc_7C8F0: mov r8, [rsp+0B8h+var_70] mov rsi, [rsp+0B8h+var_98] mov rdx, [rsp+0B8h+var_90] lea rax, [rdx+r8] cmp rax, rdi jbe short loc_7C921 mov edi, 0Fh lea r9, [rsp+0B8h+var_88] cmp rsi, r9 jz short loc_7C91C mov rdi, [rsp+0B8h+var_88] loc_7C91C: cmp rax, rdi jbe short loc_7C92D loc_7C921: lea rdi, [rsp+0B8h+var_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_7C93B loc_7C92D: lea rdi, [rsp+0B8h+var_98] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_7C93B: lea rsi, [rsp+0B8h+var_A8] mov [rsp+0B8h+var_B8], rsi; void * mov rdx, [rax] lea rcx, [rax+10h] cmp rdx, rcx jz short loc_7C95E mov [rsp+0B8h+var_B8], rdx mov rdx, [rcx] mov [rsp+0B8h+var_A8], rdx jmp short loc_7C964 loc_7C95E: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rsi], xmm0 loc_7C964: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov qword ptr [rsp+0B8h+var_B0], rsi; int mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 mov rdi, rsp lea rsi, aTThreadsNNumbe+5Eh; "." call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rsi, [rsp+0B8h+var_48] mov [rsp+0B8h+var_58], rsi mov rdx, [rax] mov rcx, rax add rcx, 10h; int cmp rdx, rcx jz short loc_7C9B8 mov [rsp+0B8h+var_58], rdx mov rdx, [rcx] mov [rsp+0B8h+var_48], rdx jmp short loc_7C9BE loc_7C9B8: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rsi], xmm0 loc_7C9BE: imul rdi, r13, 58h ; 'X' add rdi, r15; int mov rdx, [rax+8] mov [rsp+0B8h+var_50], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rsi, qword ptr [rsp+0B8h+var_38]; int lea rdx, [rsp+0B8h+var_58]; int call _ZN18ResidualDenseBlock11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEES6_; ResidualDenseBlock::map_by_name(std::map<std::string,ggml_tensor *> &,std::string) mov rdi, [rsp+0B8h+var_58]; void * lea rax, [rsp+0B8h+var_48] cmp rdi, rax lea r14, [rsp+0B8h+var_A8] jz short loc_7CA10 mov rsi, [rsp+0B8h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CA10: mov rdi, [rsp+0B8h+var_B8]; void * cmp rdi, r14 jz short loc_7CA26 mov rsi, [rsp+0B8h+var_A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CA26: mov rdi, [rsp+0B8h+var_98]; void * lea rax, [rsp+0B8h+var_88] cmp rdi, rax jz short loc_7CA42 mov rsi, [rsp+0B8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CA42: mov rdi, [rsp+0B8h+var_78]; void * cmp rdi, rbp jz short loc_7CA59 mov rsi, [rsp+0B8h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CA59: movsxd rax, dword ptr [r15+108h] mov r13, r12 cmp r12, rax jl loc_7C830 loc_7CA6C: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_7CA80: mov rbx, rax jmp short loc_7CAE5 mov rbx, rax jmp short loc_7CAC9 mov rbx, rax jmp short loc_7CAAE mov rbx, rax mov rdi, [rsp+arg_58]; void * lea rax, [rsp+arg_68] cmp rdi, rax jz short loc_7CAAE mov rsi, [rsp+arg_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CAAE: mov rdi, [rsp+0]; void * lea rax, [rsp+arg_8] cmp rdi, rax jz short loc_7CAC9 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CAC9: mov rdi, [rsp+arg_18]; void * lea rax, [rsp+arg_28] cmp rdi, rax jz short loc_7CAE5 mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CAE5: mov rdi, [rsp+arg_38]; void * cmp rdi, r14 jz short loc_7CAFC mov rsi, [rsp+arg_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7CAFC: mov rdi, rbx call __Unwind_Resume
void EsrganBlock::map_by_name(long long a1, long long a2, long long a3) { unsigned long long *v5; // rbp unsigned long long v6; // r13 unsigned long long *v7; // r14 signed long long v8; // r12 unsigned int v9; // ebp unsigned int v10; // eax bool v11; // cc unsigned long long v12; // rdi unsigned long long v13; // rdi long long v14; // rax __int128 *v15; // rcx long long v16; // rax int v17; // r8d int v18; // r9d __int128 *v19; // rcx void *v20; // [rsp+0h] [rbp-B8h] BYREF int v21[2]; // [rsp+8h] [rbp-B0h] __int128 v22; // [rsp+10h] [rbp-A8h] BYREF void *v23; // [rsp+20h] [rbp-98h] BYREF long long v24; // [rsp+28h] [rbp-90h] _QWORD v25[2]; // [rsp+30h] [rbp-88h] BYREF void *v26; // [rsp+40h] [rbp-78h] BYREF long long v27; // [rsp+48h] [rbp-70h] unsigned long long v28; // [rsp+50h] [rbp-68h] BYREF void *v29[2]; // [rsp+60h] [rbp-58h] BYREF __int128 v30; // [rsp+70h] [rbp-48h] BYREF int v31[14]; // [rsp+80h] [rbp-38h] *(_QWORD *)v31 = a2; if ( *(int *)(a1 + 264) > 0 ) { v5 = &v28; v6 = 0LL; do { v7 = v5; v26 = v5; std::string::_M_construct<char *>((long long)&v26, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); std::string::append(&v26, "rdb"); v8 = v6 + 1; v9 = 1; if ( v6 >= 9 ) { v9 = 4; v10 = v6 + 1; while ( 1 ) { if ( v10 <= 0x63 ) { v9 -= 2; goto LABEL_12; } if ( v10 <= 0x3E7 ) break; if ( v10 < 0x2710 ) goto LABEL_12; v9 += 4; v11 = v10 <= 0x1869F; v10 /= 0x2710u; if ( v11 ) { v9 -= 3; goto LABEL_12; } } --v9; } LABEL_12: v23 = v25; std::string::_M_construct(&v23, v9, 45LL); std::__detail::__to_chars_10_impl<unsigned int>((char *)v23, v9, v8); v12 = 15LL; v5 = v7; if ( v26 != v7 ) v12 = v28; if ( v24 + v27 <= v12 ) goto LABEL_18; v13 = 15LL; if ( v23 != v25 ) v13 = v25[0]; if ( v24 + v27 <= v13 ) v14 = std::string::replace(&v23, 0LL, 0LL, v26, v27); else LABEL_18: v14 = std::string::_M_append(&v26, v23, v24); v20 = &v22; v15 = (__int128 *)(v14 + 16); if ( *(_QWORD *)v14 == v14 + 16 ) { v22 = *v15; } else { v20 = *(void **)v14; *(_QWORD *)&v22 = *(_QWORD *)v15; } *(_QWORD *)v21 = *(_QWORD *)(v14 + 8); *(_QWORD *)v14 = v15; *(_QWORD *)(v14 + 8) = 0LL; *(_BYTE *)v15 = 0; v16 = std::string::append(&v20, "."); v29[0] = &v30; v19 = (__int128 *)(v16 + 16); if ( *(_QWORD *)v16 == v16 + 16 ) { v30 = *v19; } else { v29[0] = *(void **)v16; *(_QWORD *)&v30 = *(_QWORD *)v19; } v29[1] = *(void **)(v16 + 8); *(_QWORD *)v16 = v19; *(_QWORD *)(v16 + 8) = 0LL; *(_BYTE *)(v16 + 16) = 0; ResidualDenseBlock::map_by_name(a1 + 88 * v6, v31[0], (int)v29, (int)v19, v17, v18, v20, v21[0], v22); if ( v29[0] != &v30 ) operator delete(v29[0], v30 + 1); if ( v20 != &v22 ) operator delete(v20, v22 + 1); if ( v23 != v25 ) operator delete(v23, v25[0] + 1LL); if ( v26 != v7 ) operator delete(v26, v28 + 1); ++v6; } while ( v8 < *(int *)(a1 + 264) ); } }
29,624
testing::(anonymous namespace)::PrintBytesInObjectToImpl(unsigned char const*, unsigned long, std::ostream*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-printers.cc
void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count, ostream* os) { // Tells the user how big the object is. *os << count << "-byte object <"; const size_t kThreshold = 132; const size_t kChunkSize = 64; // If the object size is bigger than kThreshold, we'll have to omit // some details by printing only the first and the last kChunkSize // bytes. if (count < kThreshold) { PrintByteSegmentInObjectTo(obj_bytes, 0, count, os); } else { PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os); *os << " ... "; // Rounds up to 2-byte boundary. const size_t resume_pos = (count - kChunkSize + 1) / 2 * 2; PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os); } *os << ">"; }
O0
cpp
testing::(anonymous namespace)::PrintBytesInObjectToImpl(unsigned char const*, unsigned long, std::ostream*): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x20(%rsp) movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x15150 movq %rax, %rdi leaq 0x5bba7(%rip), %rsi # 0x156bd3 callq 0x15740 movq $0x84, 0x18(%rsp) movq $0x40, 0x10(%rsp) cmpq $0x84, 0x28(%rsp) jae 0xfb068 movq 0x30(%rsp), %rdi movq 0x28(%rsp), %rdx movq 0x20(%rsp), %rcx xorl %eax, %eax movl %eax, %esi callq 0x11dea0 jmp 0xfb0c7 movq 0x30(%rsp), %rdi movq 0x20(%rsp), %rcx xorl %eax, %eax movl %eax, %esi movl $0x40, %edx callq 0x11dea0 movq 0x20(%rsp), %rdi leaq 0x5bb56(%rip), %rsi # 0x156be2 callq 0x15740 movq 0x28(%rsp), %rax subq $0x40, %rax addq $0x1, %rax shrq %rax shlq %rax movq %rax, 0x8(%rsp) movq 0x30(%rsp), %rdi movq 0x8(%rsp), %rsi movq 0x28(%rsp), %rdx subq 0x8(%rsp), %rdx movq 0x20(%rsp), %rcx callq 0x11dea0 movq 0x20(%rsp), %rdi leaq 0x5b190(%rip), %rsi # 0x156263 callq 0x15740 addq $0x38, %rsp retq nopl (%rax)
_ZN7testing12_GLOBAL__N_124PrintBytesInObjectToImplEPKhmPSo: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov [rsp+38h+var_18], rdx mov rdi, [rsp+38h+var_18] mov rsi, [rsp+38h+var_10] call __ZNSolsEm; std::ostream::operator<<(ulong) mov rdi, rax lea rsi, aByteObject; "-byte object <" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rsp+38h+var_20], 84h mov [rsp+38h+var_28], 40h ; '@' cmp [rsp+38h+var_10], 84h jnb short loc_FB068 mov rdi, [rsp+38h+var_8]; this mov rdx, [rsp+38h+var_10]; unsigned __int64 mov rcx, [rsp+38h+var_18]; unsigned __int64 xor eax, eax mov esi, eax; unsigned __int8 * call _ZN7testing12_GLOBAL__N_126PrintByteSegmentInObjectToEPKhmmPSo; testing::`anonymous namespace'::PrintByteSegmentInObjectTo(uchar const*,ulong,ulong,std::ostream *) jmp short loc_FB0C7 loc_FB068: mov rdi, [rsp+38h+var_8]; this mov rcx, [rsp+38h+var_18]; unsigned __int64 xor eax, eax mov esi, eax; unsigned __int8 * mov edx, 40h ; '@'; unsigned __int64 call _ZN7testing12_GLOBAL__N_126PrintByteSegmentInObjectToEPKhmmPSo; testing::`anonymous namespace'::PrintByteSegmentInObjectTo(uchar const*,ulong,ulong,std::ostream *) mov rdi, [rsp+38h+var_18] lea rsi, asc_156BE2; " ... " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rax, [rsp+38h+var_10] sub rax, 40h ; '@' add rax, 1 shr rax, 1 shl rax, 1 mov [rsp+38h+var_30], rax mov rdi, [rsp+38h+var_8]; this mov rsi, [rsp+38h+var_30]; unsigned __int8 * mov rdx, [rsp+38h+var_10] sub rdx, [rsp+38h+var_30]; unsigned __int64 mov rcx, [rsp+38h+var_18]; unsigned __int64 call _ZN7testing12_GLOBAL__N_126PrintByteSegmentInObjectToEPKhmmPSo; testing::`anonymous namespace'::PrintByteSegmentInObjectTo(uchar const*,ulong,ulong,std::ostream *) loc_FB0C7: mov rdi, [rsp+38h+var_18] lea rsi, aType_0+9; ">" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) add rsp, 38h retn
long long testing::`anonymous namespace'::PrintBytesInObjectToImpl( testing::_anonymous_namespace_ *this, const unsigned __int8 *a2, unsigned long long a3, std::ostream *a4) { long long v4; // rax std::ostream *v5; // r8 std::ostream *v6; // r8 v4 = std::ostream::operator<<(a3, a2); std::operator<<<std::char_traits<char>>(v4, "-byte object <"); if ( (unsigned long long)a2 >= 0x84 ) { testing::`anonymous namespace'::PrintByteSegmentInObjectTo(this, 0LL, 0x40uLL, a3, v5); std::operator<<<std::char_traits<char>>(a3, " ... "); testing::`anonymous namespace'::PrintByteSegmentInObjectTo( this, (const unsigned __int8 *)(2 * ((unsigned long long)(a2 - 63) >> 1)), (unsigned long long)&a2[-2 * ((unsigned long long)(a2 - 63) >> 1)], a3, v6); } else { testing::`anonymous namespace'::PrintByteSegmentInObjectTo(this, 0LL, (unsigned long long)a2, a3, v5); } return std::operator<<<std::char_traits<char>>(a3, ">"); }
PrintBytesInObjectToImpl: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x20],RDX MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] CALL 0x00115150 MOV RDI,RAX LEA RSI,[0x256bd3] CALL 0x00115740 MOV qword ptr [RSP + 0x18],0x84 MOV qword ptr [RSP + 0x10],0x40 CMP qword ptr [RSP + 0x28],0x84 JNC 0x001fb068 MOV RDI,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x20] XOR EAX,EAX MOV ESI,EAX CALL 0x0021dea0 JMP 0x001fb0c7 LAB_001fb068: MOV RDI,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RSP + 0x20] XOR EAX,EAX MOV ESI,EAX MOV EDX,0x40 CALL 0x0021dea0 MOV RDI,qword ptr [RSP + 0x20] LEA RSI,[0x256be2] CALL 0x00115740 MOV RAX,qword ptr [RSP + 0x28] SUB RAX,0x40 ADD RAX,0x1 SHR RAX,0x1 SHL RAX,0x1 MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x28] SUB RDX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x20] CALL 0x0021dea0 LAB_001fb0c7: MOV RDI,qword ptr [RSP + 0x20] LEA RSI,[0x256263] CALL 0x00115740 ADD RSP,0x38 RET
/* testing::(anonymous namespace)::PrintBytesInObjectToImpl(unsigned char const*, unsigned long, std::ostream*) */ void testing::(anonymous_namespace)::PrintBytesInObjectToImpl (uchar *param_1,ulong param_2,ostream *param_3) { ostream *poVar1; ulong uVar2; poVar1 = (ostream *)std::ostream::operator<<(param_3,param_2); std::operator<<(poVar1,"-byte object <"); if (param_2 < 0x84) { PrintByteSegmentInObjectTo(param_1,0,param_2,param_3); } else { PrintByteSegmentInObjectTo(param_1,0,0x40,param_3); std::operator<<(param_3," ... "); uVar2 = param_2 - 0x3f & 0xfffffffffffffffe; PrintByteSegmentInObjectTo(param_1,uVar2,param_2 - uVar2,param_3); } std::operator<<(param_3,">"); return; }
29,625
copy_not_changed_fields
eloqsql/storage/maria/ma_blockrec.c
void copy_not_changed_fields(MARIA_HA *info, MY_BITMAP *changed_fields, uchar *to, uchar *from) { MARIA_COLUMNDEF *column, *end_column; uchar *bitmap= (uchar*) changed_fields->bitmap; MARIA_SHARE *share= info->s; uint bit= 1; for (column= share->columndef, end_column= column+ share->base.fields; column < end_column; column++) { if (!(*bitmap & bit)) { uint field_length= column->length; if (column->type == FIELD_VARCHAR) { if (column->fill_length == 1) field_length= (uint) from[column->offset] + 1; else field_length= uint2korr(from + column->offset) + 2; } memcpy(to + column->offset, from + column->offset, field_length); } if ((bit= (bit << 1)) == 256) { bitmap++; bit= 1; } } }
O3
c
copy_not_changed_fields: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, -0x30(%rbp) movq (%rdi), %rax movl 0x3c8(%rax), %ecx testq %rcx, %rcx je 0x4a60d movq 0x588(%rax), %r15 imulq $0x38, %rcx, %r12 addq %r15, %r12 movq (%rsi), %r13 movl $0x1, %ecx movl $0x1, %r14d movzbl (%r13), %eax testl %eax, %r14d jne 0x4a5ee movl 0x4(%r15), %esi cmpl $0x8, (%r15) jne 0x4a5ca cmpw $0x1, 0xc(%r15) jne 0x4a5d1 movzbl (%rbx,%rsi), %edx incq %rdx jmp 0x4a5d9 movzwl 0x8(%r15), %edx jmp 0x4a5d9 movzwl (%rbx,%rsi), %edx addq $0x2, %rdx movq -0x30(%rbp), %rax leaq (%rax,%rsi), %rdi addq %rbx, %rsi callq 0x29080 movl $0x1, %ecx addl %r14d, %r14d xorl %eax, %eax cmpl $0x100, %r14d # imm = 0x100 cmovel %ecx, %r14d sete %al addq %rax, %r13 addq $0x38, %r15 cmpq %r12, %r15 jb 0x4a5a5 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
copy_not_changed_fields: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rcx mov [rbp+var_30], rdx mov rax, [rdi] mov ecx, [rax+3C8h] test rcx, rcx jz loc_4A60D mov r15, [rax+588h] imul r12, rcx, 38h ; '8' add r12, r15 mov r13, [rsi] mov ecx, 1 mov r14d, 1 loc_4A5A5: movzx eax, byte ptr [r13+0] test r14d, eax jnz short loc_4A5EE mov esi, [r15+4] cmp dword ptr [r15], 8 jnz short loc_4A5CA cmp word ptr [r15+0Ch], 1 jnz short loc_4A5D1 movzx edx, byte ptr [rbx+rsi] inc rdx jmp short loc_4A5D9 loc_4A5CA: movzx edx, word ptr [r15+8] jmp short loc_4A5D9 loc_4A5D1: movzx edx, word ptr [rbx+rsi] add rdx, 2 loc_4A5D9: mov rax, [rbp+var_30] lea rdi, [rax+rsi] add rsi, rbx call _memcpy mov ecx, 1 loc_4A5EE: add r14d, r14d xor eax, eax cmp r14d, 100h cmovz r14d, ecx setz al add r13, rax add r15, 38h ; '8' cmp r15, r12 jb short loc_4A5A5 loc_4A60D: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char copy_not_changed_fields(long long *a1, _BYTE **a2, long long a3, long long a4) { long long v5; // rax unsigned long long v6; // r15 unsigned long long v7; // r12 _BYTE *v8; // r13 int v9; // r14d long long v10; // rsi long long v11; // rdx bool v12; // zf v5 = *a1; if ( *(_DWORD *)(*a1 + 968) ) { v6 = *(_QWORD *)(v5 + 1416); v7 = v6 + 56LL * *(unsigned int *)(*a1 + 968); v8 = *a2; v9 = 1; do { if ( (*v8 & (unsigned __int8)v9) == 0 ) { v10 = *(unsigned int *)(v6 + 4); if ( *(_DWORD *)v6 == 8 ) { if ( *(_WORD *)(v6 + 12) == 1 ) v11 = *(unsigned __int8 *)(a4 + v10) + 1LL; else v11 = *(unsigned __int16 *)(a4 + v10) + 2LL; } else { v11 = *(unsigned __int16 *)(v6 + 8); } memcpy(a3 + v10, a4 + v10, v11); } v9 *= 2; v5 = 0LL; v12 = v9 == 256; if ( v9 == 256 ) v9 = 1; LOBYTE(v5) = v12; v8 += v5; v6 += 56LL; } while ( v6 < v7 ); } return v5; }
copy_not_changed_fields: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV qword ptr [RBP + -0x30],RDX MOV RAX,qword ptr [RDI] MOV ECX,dword ptr [RAX + 0x3c8] TEST RCX,RCX JZ 0x0014a60d MOV R15,qword ptr [RAX + 0x588] IMUL R12,RCX,0x38 ADD R12,R15 MOV R13,qword ptr [RSI] MOV ECX,0x1 MOV R14D,0x1 LAB_0014a5a5: MOVZX EAX,byte ptr [R13] TEST R14D,EAX JNZ 0x0014a5ee MOV ESI,dword ptr [R15 + 0x4] CMP dword ptr [R15],0x8 JNZ 0x0014a5ca CMP word ptr [R15 + 0xc],0x1 JNZ 0x0014a5d1 MOVZX EDX,byte ptr [RBX + RSI*0x1] INC RDX JMP 0x0014a5d9 LAB_0014a5ca: MOVZX EDX,word ptr [R15 + 0x8] JMP 0x0014a5d9 LAB_0014a5d1: MOVZX EDX,word ptr [RBX + RSI*0x1] ADD RDX,0x2 LAB_0014a5d9: MOV RAX,qword ptr [RBP + -0x30] LEA RDI,[RAX + RSI*0x1] ADD RSI,RBX CALL 0x00129080 MOV ECX,0x1 LAB_0014a5ee: ADD R14D,R14D XOR EAX,EAX CMP R14D,0x100 CMOVZ R14D,ECX SETZ AL ADD R13,RAX ADD R15,0x38 CMP R15,R12 JC 0x0014a5a5 LAB_0014a60d: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void copy_not_changed_fields(long *param_1,int8 *param_2,long param_3,long param_4) { ulong uVar1; size_t __n; int *piVar2; byte *pbVar3; uint uVar4; int *piVar5; bool bVar6; uVar1 = (ulong)*(uint *)(*param_1 + 0x3c8); if (uVar1 != 0) { piVar5 = *(int **)(*param_1 + 0x588); piVar2 = piVar5 + uVar1 * 0xe; pbVar3 = (byte *)*param_2; uVar4 = 1; do { if ((uVar4 & *pbVar3) == 0) { uVar1 = (ulong)(uint)piVar5[1]; if (*piVar5 == 8) { if ((short)piVar5[3] == 1) { __n = (ulong)*(byte *)(param_4 + uVar1) + 1; } else { __n = (ulong)*(ushort *)(param_4 + uVar1) + 2; } } else { __n = (size_t)*(ushort *)(piVar5 + 2); } memcpy((void *)(param_3 + uVar1),(void *)(uVar1 + param_4),__n); } uVar4 = uVar4 * 2; bVar6 = uVar4 == 0x100; if (bVar6) { uVar4 = 1; } pbVar3 = pbVar3 + bVar6; piVar5 = piVar5 + 0xe; } while (piVar5 < piVar2); } return; }
29,626
ggml_transpose
ngxson[P]ggml-easy/ggml/src/ggml.c
struct ggml_tensor * ggml_transpose( struct ggml_context * ctx, struct ggml_tensor * a) { struct ggml_tensor * result = ggml_view_tensor(ctx, a); ggml_format_name(result, "%s (transposed)", a->name); result->ne[0] = a->ne[1]; result->ne[1] = a->ne[0]; result->nb[0] = a->nb[1]; result->nb[1] = a->nb[0]; result->op = GGML_OP_TRANSPOSE; result->src[0] = a; return result; }
O2
c
ggml_transpose: pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx callq 0x1c3e0 movq %rax, %r14 leaq 0x100(%rbx), %rdx leaq 0x298d4(%rip), %rsi # 0x4babf movq %rax, %rdi xorl %eax, %eax callq 0x1e430 movq 0x18(%rbx), %rax movq %rax, 0x10(%r14) movq 0x10(%rbx), %rax movq %rax, 0x18(%r14) movq 0x38(%rbx), %rax movq %rax, 0x30(%r14) movq 0x30(%rbx), %rax movq %rax, 0x38(%r14) movl $0x25, 0x50(%r14) movq %rbx, 0x98(%r14) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
ggml_transpose: push r14 push rbx push rax mov rbx, rsi call _ggml_view_tensor mov r14, rax lea rdx, [rbx+100h] lea rsi, aSTransposed; "%s (transposed)" mov rdi, rax xor eax, eax call _ggml_format_name mov rax, [rbx+18h] mov [r14+10h], rax mov rax, [rbx+10h] mov [r14+18h], rax mov rax, [rbx+38h] mov [r14+30h], rax mov rax, [rbx+30h] mov [r14+38h], rax mov dword ptr [r14+50h], 25h ; '%' mov [r14+98h], rbx mov rax, r14 add rsp, 8 pop rbx pop r14 retn
long long ggml_transpose( long long a1, _QWORD *a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10) { long long v10; // r14 v10 = ggml_view_tensor(a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10); ggml_format_name(v10, (long long)"%s (transposed)"); *(_QWORD *)(v10 + 16) = a2[3]; *(_QWORD *)(v10 + 24) = a2[2]; *(_QWORD *)(v10 + 48) = a2[7]; *(_QWORD *)(v10 + 56) = a2[6]; *(_DWORD *)(v10 + 80) = 37; *(_QWORD *)(v10 + 152) = a2; return v10; }
ggml_transpose: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI CALL 0x0011c3e0 MOV R14,RAX LEA RDX,[RBX + 0x100] LEA RSI,[0x14babf] MOV RDI,RAX XOR EAX,EAX CALL 0x0011e430 MOV RAX,qword ptr [RBX + 0x18] MOV qword ptr [R14 + 0x10],RAX MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [R14 + 0x18],RAX MOV RAX,qword ptr [RBX + 0x38] MOV qword ptr [R14 + 0x30],RAX MOV RAX,qword ptr [RBX + 0x30] MOV qword ptr [R14 + 0x38],RAX MOV dword ptr [R14 + 0x50],0x25 MOV qword ptr [R14 + 0x98],RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
long ggml_transpose(int8 param_1,long param_2) { long lVar1; lVar1 = ggml_view_tensor(); ggml_format_name(lVar1,"%s (transposed)",param_2 + 0x100); *(int8 *)(lVar1 + 0x10) = *(int8 *)(param_2 + 0x18); *(int8 *)(lVar1 + 0x18) = *(int8 *)(param_2 + 0x10); *(int8 *)(lVar1 + 0x30) = *(int8 *)(param_2 + 0x38); *(int8 *)(lVar1 + 0x38) = *(int8 *)(param_2 + 0x30); *(int4 *)(lVar1 + 0x50) = 0x25; *(long *)(lVar1 + 0x98) = param_2; return lVar1; }
29,627
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>>>>>::scan_string()
llama.cpp/common/json.hpp
token_type scan_string() { // reset token_buffer (ignore opening quote) reset(); // we entered the function by reading an open quote JSON_ASSERT(current == '\"'); while (true) { // get next character switch (get()) { // end of file while parsing string case char_traits<char_type>::eof(): { error_message = "invalid string: missing closing quote"; return token_type::parse_error; } // closing quote case '\"': { return token_type::value_string; } // escapes case '\\': { switch (get()) { // quotation mark case '\"': add('\"'); break; // reverse solidus case '\\': add('\\'); break; // solidus case '/': add('/'); break; // backspace case 'b': add('\b'); break; // form feed case 'f': add('\f'); break; // line feed case 'n': add('\n'); break; // carriage return case 'r': add('\r'); break; // tab case 't': add('\t'); break; // unicode escapes case 'u': { const int codepoint1 = get_codepoint(); int codepoint = codepoint1; // start with codepoint1 if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1)) { error_message = "invalid string: '\\u' must be followed by 4 hex digits"; return token_type::parse_error; } // check if code point is a high surrogate if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF) { // expect next \uxxxx entry if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u')) { const int codepoint2 = get_codepoint(); if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1)) { error_message = "invalid string: '\\u' must be followed by 4 hex digits"; return token_type::parse_error; } // check if codepoint2 is a low surrogate if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF)) { // overwrite codepoint codepoint = static_cast<int>( // high surrogate occupies the most significant 22 bits (static_cast<unsigned int>(codepoint1) << 10u) // low surrogate occupies the least significant 15 bits + static_cast<unsigned int>(codepoint2) // there is still the 0xD800, 0xDC00 and 0x10000 noise // in the result, so we have to subtract with: // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00 - 0x35FDC00u); } else { error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; return token_type::parse_error; } } else { error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; return token_type::parse_error; } } else { if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF)) { error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF"; return token_type::parse_error; } } // result of the above calculation yields a proper codepoint JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF); // translate codepoint into bytes if (codepoint < 0x80) { // 1-byte characters: 0xxxxxxx (ASCII) add(static_cast<char_int_type>(codepoint)); } else if (codepoint <= 0x7FF) { // 2-byte characters: 110xxxxx 10xxxxxx add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u))); add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu))); } else if (codepoint <= 0xFFFF) { // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u))); add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu))); add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu))); } else { // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u))); add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu))); add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu))); add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu))); } break; } // other characters after escape default: error_message = "invalid string: forbidden character after backslash"; return token_type::parse_error; } break; } // invalid control characters case 0x00: { error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000"; return token_type::parse_error; } case 0x01: { error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001"; return token_type::parse_error; } case 0x02: { error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002"; return token_type::parse_error; } case 0x03: { error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003"; return token_type::parse_error; } case 0x04: { error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004"; return token_type::parse_error; } case 0x05: { error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005"; return token_type::parse_error; } case 0x06: { error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006"; return token_type::parse_error; } case 0x07: { error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007"; return token_type::parse_error; } case 0x08: { error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b"; return token_type::parse_error; } case 0x09: { error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t"; return token_type::parse_error; } case 0x0A: { error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n"; return token_type::parse_error; } case 0x0B: { error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B"; return token_type::parse_error; } case 0x0C: { error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f"; return token_type::parse_error; } case 0x0D: { error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r"; return token_type::parse_error; } case 0x0E: { error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E"; return token_type::parse_error; } case 0x0F: { error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F"; return token_type::parse_error; } case 0x10: { error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010"; return token_type::parse_error; } case 0x11: { error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011"; return token_type::parse_error; } case 0x12: { error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012"; return token_type::parse_error; } case 0x13: { error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013"; return token_type::parse_error; } case 0x14: { error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014"; return token_type::parse_error; } case 0x15: { error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015"; return token_type::parse_error; } case 0x16: { error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016"; return token_type::parse_error; } case 0x17: { error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017"; return token_type::parse_error; } case 0x18: { error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018"; return token_type::parse_error; } case 0x19: { error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019"; return token_type::parse_error; } case 0x1A: { error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A"; return token_type::parse_error; } case 0x1B: { error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B"; return token_type::parse_error; } case 0x1C: { error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C"; return token_type::parse_error; } case 0x1D: { error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D"; return token_type::parse_error; } case 0x1E: { error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E"; return token_type::parse_error; } case 0x1F: { error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F"; return token_type::parse_error; } // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace)) case 0x20: case 0x21: case 0x23: case 0x24: case 0x25: case 0x26: case 0x27: case 0x28: case 0x29: case 0x2A: case 0x2B: case 0x2C: case 0x2D: case 0x2E: case 0x2F: case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: case 0x3A: case 0x3B: case 0x3C: case 0x3D: case 0x3E: case 0x3F: case 0x40: case 0x41: case 0x42: case 0x43: case 0x44: case 0x45: case 0x46: case 0x47: case 0x48: case 0x49: case 0x4A: case 0x4B: case 0x4C: case 0x4D: case 0x4E: case 0x4F: case 0x50: case 0x51: case 0x52: case 0x53: case 0x54: case 0x55: case 0x56: case 0x57: case 0x58: case 0x59: case 0x5A: case 0x5B: case 0x5D: case 0x5E: case 0x5F: case 0x60: case 0x61: case 0x62: case 0x63: case 0x64: case 0x65: case 0x66: case 0x67: case 0x68: case 0x69: case 0x6A: case 0x6B: case 0x6C: case 0x6D: case 0x6E: case 0x6F: case 0x70: case 0x71: case 0x72: case 0x73: case 0x74: case 0x75: case 0x76: case 0x77: case 0x78: case 0x79: case 0x7A: case 0x7B: case 0x7C: case 0x7D: case 0x7E: case 0x7F: { add(current); break; } // U+0080..U+07FF: bytes C2..DF 80..BF case 0xC2: case 0xC3: case 0xC4: case 0xC5: case 0xC6: case 0xC7: case 0xC8: case 0xC9: case 0xCA: case 0xCB: case 0xCC: case 0xCD: case 0xCE: case 0xCF: case 0xD0: case 0xD1: case 0xD2: case 0xD3: case 0xD4: case 0xD5: case 0xD6: case 0xD7: case 0xD8: case 0xD9: case 0xDA: case 0xDB: case 0xDC: case 0xDD: case 0xDE: case 0xDF: { if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF}))) { return token_type::parse_error; } break; } // U+0800..U+0FFF: bytes E0 A0..BF 80..BF case 0xE0: { if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF})))) { return token_type::parse_error; } break; } // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF case 0xE1: case 0xE2: case 0xE3: case 0xE4: case 0xE5: case 0xE6: case 0xE7: case 0xE8: case 0xE9: case 0xEA: case 0xEB: case 0xEC: case 0xEE: case 0xEF: { if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF})))) { return token_type::parse_error; } break; } // U+D000..U+D7FF: bytes ED 80..9F 80..BF case 0xED: { if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF})))) { return token_type::parse_error; } break; } // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF case 0xF0: { if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF})))) { return token_type::parse_error; } break; } // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF case 0xF1: case 0xF2: case 0xF3: { if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF})))) { return token_type::parse_error; } break; } // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF case 0xF4: { if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF})))) { return token_type::parse_error; } break; } // remaining bytes (80..C1 and F5..FF) are ill-formed default: { error_message = "invalid string: ill-formed UTF-8 byte"; return token_type::parse_error; } } } }
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>>>>>::scan_string(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx callq 0x866b8 cmpl $0x22, 0x14(%rbx) jne 0x862b1 leaq 0x50(%rbx), %r14 leaq 0x93fa7(%rip), %r12 # 0x119e4e leaq 0x8d0d2(%rip), %r13 # 0x112f80 movq %rbx, %rdi callq 0x21856 incl %eax cmpl $0xf5, %eax ja 0x86280 movslq (%r13,%rax,4), %rax addq %r13, %rax jmpq *%rax movabsq $0xbf00000080, %rax # imm = 0xBF00000080 movq %rsp, %rsi movq %rax, (%rsi) movl $0x2, %edx jmp 0x85f4e movaps 0x8c995(%rip), %xmm0 # 0x112880 movq %rsp, %rsi movaps %xmm0, (%rsi) movl $0x4, %edx jmp 0x85f4e movb 0x14(%rbx), %r15b movsbl %r15b, %esi movq %r14, %rdi callq 0x21330 jmp 0x85eae movups 0x96807(%rip), %xmm0 # 0x11c718 jmp 0x85f35 movaps 0x8c956(%rip), %xmm0 # 0x112870 jmp 0x85eeb movaps 0x8c96d(%rip), %xmm0 # 0x112890 jmp 0x85eeb movups 0x96804(%rip), %xmm0 # 0x11c730 jmp 0x85f35 movups 0x967cb(%rip), %xmm0 # 0x11c700 movq %rsp, %rsi movaps %xmm0, (%rsi) movabsq $0xbf00000080, %rax # imm = 0xBF00000080 movq %rax, 0x10(%rsi) movl $0x6, %edx movq %rbx, %rdi callq 0x8673c testb %al, %al jne 0x85eae jmp 0x8628b movq %rbx, %rdi callq 0x21856 leaq 0x93e5f(%rip), %rbp # 0x119dd1 cmpl $0x61, %eax jle 0x8609d leal -0x6e(%rax), %ecx cmpl $0x7, %ecx ja 0x860b8 leaq 0x8d3ca(%rip), %rax # 0x113358 movslq (%rax,%rcx,4), %rcx addq %rax, %rcx jmpq *%rcx movq %rbx, %rdi callq 0x866f6 leaq 0x93d3a(%rip), %rbp # 0x119ce0 cmpl $-0x1, %eax je 0x86287 movl %eax, %r15d andl $0xfffffc00, %eax # imm = 0xFFFFFC00 cmpl $0xd800, %eax # imm = 0xD800 jne 0x86068 movq %rbx, %rdi callq 0x21856 cmpl $0x5c, %eax jne 0x8629f movq %rbx, %rdi callq 0x21856 cmpl $0x75, %eax jne 0x8629f movq %rbx, %rdi callq 0x866f6 cmpl $-0x1, %eax je 0x86287 movl %eax, %ecx andl $0xfffffc00, %ecx # imm = 0xFFFFFC00 leaq 0x93d12(%rip), %rbp # 0x119d16 cmpl $0xdc00, %ecx # imm = 0xDC00 jne 0x86287 shll $0xa, %r15d addl %eax, %r15d addl $0xfca02400, %r15d # imm = 0xFCA02400 movl %r15d, %eax shrl $0x12, %eax orb $-0x10, %al movsbl %al, %esi movq %r14, %rdi callq 0x21330 movl %r15d, %eax shrl $0xc, %eax andb $0x3f, %al orb $-0x80, %al movsbl %al, %esi movq %r14, %rdi callq 0x21330 movl %r15d, %eax shrl $0x6, %eax andb $0x3f, %al orb $-0x80, %al movsbl %al, %esi movq %r14, %rdi callq 0x21330 andb $0x3f, %r15b orb $-0x80, %r15b jmp 0x85efc cmpl $0xdc00, %eax # imm = 0xDC00 je 0x862a8 cmpl $0x110000, %r15d # imm = 0x110000 jae 0x862cd cmpl $0x7f, %r15d jbe 0x85efc cmpl $0x7ff, %r15d # imm = 0x7FF ja 0x860ce movl %r15d, %eax shrl $0x6, %eax orb $-0x40, %al jmp 0x86050 cmpl $0x22, %eax je 0x860f0 cmpl $0x2f, %eax je 0x860e8 cmpl $0x5c, %eax jne 0x86287 movb $0x5c, %r15b jmp 0x85efc cmpl $0x62, %eax je 0x86110 cmpl $0x66, %eax jne 0x86287 movb $0xc, %r15b jmp 0x85efc cmpl $0xffff, %r15d # imm = 0xFFFF ja 0x8601e movl %r15d, %eax shrl $0xc, %eax orb $-0x20, %al jmp 0x8603b movb $0x2f, %r15b jmp 0x85efc movb $0x22, %r15b jmp 0x85efc movb $0x9, %r15b jmp 0x85efc movb $0xa, %r15b jmp 0x85efc movb $0xd, %r15b jmp 0x85efc movb $0x8, %r15b jmp 0x85efc movl $0x4, %eax jmp 0x86290 leaq 0x945c5(%rip), %rbp # 0x11a6ee jmp 0x86287 leaq 0x94407(%rip), %rbp # 0x11a53c jmp 0x86287 leaq 0x94565(%rip), %rbp # 0x11a6a6 jmp 0x86287 leaq 0x94032(%rip), %rbp # 0x11a17f jmp 0x86287 leaq 0x944bd(%rip), %rbp # 0x11a616 jmp 0x86287 leaq 0x9438e(%rip), %rbp # 0x11a4f3 jmp 0x86287 leaq 0x93db8(%rip), %rbp # 0x119f29 jmp 0x86287 leaq 0x93ed0(%rip), %rbp # 0x11a04d jmp 0x86287 leaq 0x93d57(%rip), %rbp # 0x119ee0 jmp 0x86287 leaq 0x93e26(%rip), %rbp # 0x119fbb jmp 0x86287 leaq 0x93e63(%rip), %rbp # 0x11a004 jmp 0x86287 movq %r12, %rbp jmp 0x86287 leaq 0x940f6(%rip), %rbp # 0x11a2ab jmp 0x86287 leaq 0x9405a(%rip), %rbp # 0x11a21b jmp 0x86287 leaq 0x93aed(%rip), %rbp # 0x119cba jmp 0x86287 leaq 0x93d99(%rip), %rbp # 0x119f72 jmp 0x86287 leaq 0x9410f(%rip), %rbp # 0x11a2f4 jmp 0x86287 leaq 0x93c14(%rip), %rbp # 0x119e05 jmp 0x86287 leaq 0x93c9a(%rip), %rbp # 0x119e97 jmp 0x86287 leaq 0x9417d(%rip), %rbp # 0x11a386 jmp 0x86287 leaq 0x941bd(%rip), %rbp # 0x11a3cf jmp 0x86287 leaq 0x943b2(%rip), %rbp # 0x11a5cd jmp 0x86287 leaq 0x93e77(%rip), %rbp # 0x11a09b jmp 0x86287 leaq 0x941eb(%rip), %rbp # 0x11a418 jmp 0x86287 leaq 0x93f97(%rip), %rbp # 0x11a1cd jmp 0x86287 leaq 0x94345(%rip), %rbp # 0x11a584 jmp 0x86287 leaq 0x93ea1(%rip), %rbp # 0x11a0e9 jmp 0x86287 leaq 0x93ee6(%rip), %rbp # 0x11a137 jmp 0x86287 leaq 0x940e3(%rip), %rbp # 0x11a33d jmp 0x86287 leaq 0x94000(%rip), %rbp # 0x11a263 jmp 0x86287 leaq 0x943f2(%rip), %rbp # 0x11a65e jmp 0x86287 leaq 0x941ec(%rip), %rbp # 0x11a461 jmp 0x86287 leaq 0x9422c(%rip), %rbp # 0x11a4aa jmp 0x86287 leaq 0x944af(%rip), %rbp # 0x11a736 movq %rbp, 0x70(%rbx) movl $0xe, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x93a70(%rip), %rbp # 0x119d16 jmp 0x86287 leaq 0x93ab3(%rip), %rbp # 0x119d62 jmp 0x86287 leaq 0x93784(%rip), %rdi # 0x119a3c leaq 0x937b8(%rip), %rdx # 0x119a77 leaq 0x939e4(%rip), %rcx # 0x119caa movl $0x1dd1, %esi # imm = 0x1DD1 jmp 0x862e7 leaq 0x93768(%rip), %rdi # 0x119a3c leaq 0x9379c(%rip), %rdx # 0x119a77 leaq 0x93ac4(%rip), %rcx # 0x119da6 movl $0x1e49, %esi # imm = 0x1E49 xorl %eax, %eax callq 0x20e20
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_stringEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(void) cmp dword ptr [rbx+14h], 22h ; '"' jnz loc_862B1 lea r14, [rbx+50h] lea r12, aInvalidStringC; "invalid string: control character U+000"... lea r13, jpt_85ECB loc_85EAE: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) inc eax; switch 246 cases cmp eax, 0F5h ja def_85ECB; jumptable 0000000000085ECB default case, cases 128-193 movsxd rax, ds:(jpt_85ECB - 112F80h)[r13+rax*4] add rax, r13 jmp rax; switch jump loc_85ECD: mov rax, 0BF00000080h; jumptable 0000000000085ECB cases 194-223 mov rsi, rsp mov [rsi], rax mov edx, 2 jmp short loc_85F4E loc_85EE4: movaps xmm0, cs:xmmword_112880; jumptable 0000000000085ECB cases 225-236,238,239 loc_85EEB: mov rsi, rsp movaps xmmword ptr [rsi], xmm0 mov edx, 4 jmp short loc_85F4E loc_85EF8: mov r15b, [rbx+14h]; jumptable 0000000000085ECB cases 32,33,35-91,93-127 loc_85EFC: movsx esi, r15b mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) jmp short loc_85EAE loc_85F0A: movups xmm0, cs:xmmword_11C718; jumptable 0000000000085ECB cases 241-243 jmp short loc_85F35 loc_85F13: movaps xmm0, cs:xmmword_112870; jumptable 0000000000085ECB case 237 jmp short loc_85EEB loc_85F1C: movaps xmm0, cs:xmmword_112890; jumptable 0000000000085ECB case 224 jmp short loc_85EEB loc_85F25: movups xmm0, cs:xmmword_11C730; jumptable 0000000000085ECB case 244 jmp short loc_85F35 loc_85F2E: movups xmm0, cs:xmmword_11C700; jumptable 0000000000085ECB case 240 loc_85F35: mov rsi, rsp movaps xmmword ptr [rsi], xmm0 mov rax, 0BF00000080h mov [rsi+10h], rax mov edx, 6 loc_85F4E: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(std::initializer_list<int>) test al, al jnz loc_85EAE jmp loc_8628B loc_85F63: mov rdi, rbx; jumptable 0000000000085ECB case 92 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) lea rbp, aInvalidStringF; "invalid string: forbidden character aft"... cmp eax, 61h ; 'a' jle loc_8609D lea ecx, [rax-6Eh]; switch 8 cases cmp ecx, 7 ja def_85F95; jumptable 0000000000085F95 default case lea rax, jpt_85F95 movsxd rcx, ds:(jpt_85F95 - 113358h)[rax+rcx*4] add rcx, rax jmp rcx; switch jump loc_85F97: mov rdi, rbx; jumptable 0000000000085F95 case 117 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(void) lea rbp, aInvalidStringU; "invalid string: '\\u' must be followed "... cmp eax, 0FFFFFFFFh jz loc_86287; jumptable 0000000000085F95 cases 111-113,115 mov r15d, eax and eax, 0FFFFFC00h cmp eax, 0D800h jnz loc_86068 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 5Ch ; '\' jnz loc_8629F mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 75h ; 'u' jnz loc_8629F mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(void) cmp eax, 0FFFFFFFFh jz loc_86287; jumptable 0000000000085F95 cases 111-113,115 mov ecx, eax and ecx, 0FFFFFC00h lea rbp, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"... cmp ecx, 0DC00h jnz loc_86287; jumptable 0000000000085F95 cases 111-113,115 shl r15d, 0Ah add r15d, eax add r15d, 0FCA02400h loc_8601E: mov eax, r15d shr eax, 12h or al, 0F0h movsx esi, al mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov eax, r15d shr eax, 0Ch and al, 3Fh or al, 80h loc_8603B: movsx esi, al mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov eax, r15d shr eax, 6 and al, 3Fh or al, 80h loc_86050: movsx esi, al mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) and r15b, 3Fh or r15b, 80h jmp loc_85EFC loc_86068: cmp eax, 0DC00h jz loc_862A8 cmp r15d, 110000h jnb loc_862CD cmp r15d, 7Fh jbe loc_85EFC cmp r15d, 7FFh ja short loc_860CE mov eax, r15d shr eax, 6 or al, 0C0h jmp short loc_86050 loc_8609D: cmp eax, 22h ; '"' jz short loc_860F0 cmp eax, 2Fh ; '/' jz short loc_860E8 cmp eax, 5Ch ; '\' jnz loc_86287; jumptable 0000000000085F95 cases 111-113,115 mov r15b, 5Ch ; '\' jmp loc_85EFC def_85F95: cmp eax, 62h ; 'b'; jumptable 0000000000085F95 default case jz short loc_86110 cmp eax, 66h ; 'f' jnz loc_86287; jumptable 0000000000085F95 cases 111-113,115 mov r15b, 0Ch jmp loc_85EFC loc_860CE: cmp r15d, 0FFFFh ja loc_8601E mov eax, r15d shr eax, 0Ch or al, 0E0h jmp loc_8603B loc_860E8: mov r15b, 2Fh ; '/' jmp loc_85EFC loc_860F0: mov r15b, 22h ; '"' jmp loc_85EFC loc_860F8: mov r15b, 9; jumptable 0000000000085F95 case 116 jmp loc_85EFC loc_86100: mov r15b, 0Ah; jumptable 0000000000085F95 case 110 jmp loc_85EFC loc_86108: mov r15b, 0Dh; jumptable 0000000000085F95 case 114 jmp loc_85EFC loc_86110: mov r15b, 8 jmp loc_85EFC loc_86118: mov eax, 4; jumptable 0000000000085ECB case 34 jmp loc_86290 loc_86122: lea rbp, aInvalidStringC_0; jumptable 0000000000085ECB case 31 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8612E: lea rbp, aInvalidStringC_1; jumptable 0000000000085ECB case 25 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8613A: lea rbp, aInvalidStringC_2; jumptable 0000000000085ECB case 30 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86146: lea rbp, aInvalidStringC_3; jumptable 0000000000085ECB case 12 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86152: lea rbp, aInvalidStringC_4; jumptable 0000000000085ECB case 28 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8615E: lea rbp, aInvalidStringC_5; jumptable 0000000000085ECB case 24 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8616A: lea rbp, aInvalidStringC_6; jumptable 0000000000085ECB case 4 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86176: lea rbp, aInvalidStringC_7; jumptable 0000000000085ECB case 8 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86182: lea rbp, aInvalidStringC_8; jumptable 0000000000085ECB case 3 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8618E: lea rbp, aInvalidStringC_9; jumptable 0000000000085ECB case 6 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8619A: lea rbp, aInvalidStringC_10; jumptable 0000000000085ECB case 7 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861A6: mov rbp, r12; jumptable 0000000000085ECB case 1 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861AE: lea rbp, aInvalidStringC_11; jumptable 0000000000085ECB case 16 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861BA: lea rbp, aInvalidStringC_12; jumptable 0000000000085ECB case 14 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861C6: lea rbp, aInvalidStringM; jumptable 0000000000085ECB case -1 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861D2: lea rbp, aInvalidStringC_13; jumptable 0000000000085ECB case 5 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861DE: lea rbp, aInvalidStringC_14; jumptable 0000000000085ECB case 17 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861EA: lea rbp, aInvalidStringC_15; jumptable 0000000000085ECB case 0 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_861F6: lea rbp, aInvalidStringC_16; jumptable 0000000000085ECB case 2 jmp loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86202: lea rbp, aInvalidStringC_17; jumptable 0000000000085ECB case 19 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8620B: lea rbp, aInvalidStringC_18; jumptable 0000000000085ECB case 20 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86214: lea rbp, aInvalidStringC_19; jumptable 0000000000085ECB case 27 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8621D: lea rbp, aInvalidStringC_20; jumptable 0000000000085ECB case 9 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86226: lea rbp, aInvalidStringC_21; jumptable 0000000000085ECB case 21 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8622F: lea rbp, aInvalidStringC_22; jumptable 0000000000085ECB case 13 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86238: lea rbp, aInvalidStringC_23; jumptable 0000000000085ECB case 26 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86241: lea rbp, aInvalidStringC_24; jumptable 0000000000085ECB case 10 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8624A: lea rbp, aInvalidStringC_25; jumptable 0000000000085ECB case 11 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86253: lea rbp, aInvalidStringC_26; jumptable 0000000000085ECB case 18 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8625C: lea rbp, aInvalidStringC_27; jumptable 0000000000085ECB case 15 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86265: lea rbp, aInvalidStringC_28; jumptable 0000000000085ECB case 29 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_8626E: lea rbp, aInvalidStringC_29; jumptable 0000000000085ECB case 22 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_86277: lea rbp, aInvalidStringC_30; jumptable 0000000000085ECB case 23 jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 def_85ECB: lea rbp, aInvalidStringI; jumptable 0000000000085ECB default case, cases 128-193 loc_86287: mov [rbx+70h], rbp; jumptable 0000000000085F95 cases 111-113,115 loc_8628B: mov eax, 0Eh loc_86290: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8629F: lea rbp, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"... jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_862A8: lea rbp, aInvalidStringS_0; "invalid string: surrogate U+DC00..U+DFF"... jmp short loc_86287; jumptable 0000000000085F95 cases 111-113,115 loc_862B1: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aCurrent; "current == '\\\"'" mov esi, 1DD1h jmp short loc_862E7 loc_862CD: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, a0x00CodepointC; "0x00 <= codepoint && codepoint <= 0x10F"... mov esi, 1E49h loc_862E7: xor eax, eax call _ggml_abort
long long 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>>>::scan_string( __m128i *a1) { long long v1; // rcx long long v2; // r8 long long v3; // r9 long long v4; // rdx __int128 v5; // xmm0 unsigned int v6; // r15d __int128 v7; // xmm0 int v8; // eax const char *v9; // rbp unsigned int codepoint; // eax unsigned int v11; // eax int v12; // eax char v13; // al char v14; // al __int128 v16; // [rsp+0h] [rbp-48h] BYREF long long v17; // [rsp+10h] [rbp-38h] 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(); if ( a1[1].m128i_i32[1] != 34 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7633LL, "GGML_ASSERT(%s) failed", "current == '\\\"'"); return 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>>>::scan_number("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } while ( 2 ) { while ( 2 ) { switch ( (unsigned int)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>>>::get(a1) ) { case 0xFFFFFFFF: v9 = "invalid string: missing closing quote"; goto LABEL_83; case 0u: v9 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000"; goto LABEL_83; case 1u: v9 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001"; goto LABEL_83; case 2u: v9 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002"; goto LABEL_83; case 3u: v9 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003"; goto LABEL_83; case 4u: v9 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004"; goto LABEL_83; case 5u: v9 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005"; goto LABEL_83; case 6u: v9 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006"; goto LABEL_83; case 7u: v9 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007"; goto LABEL_83; case 8u: v9 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b"; goto LABEL_83; case 9u: v9 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t"; goto LABEL_83; case 0xAu: v9 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n"; goto LABEL_83; case 0xBu: v9 = "invalid string: control character U+000B (VT) must be escaped to \\u000B"; goto LABEL_83; case 0xCu: v9 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f"; goto LABEL_83; case 0xDu: v9 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r"; goto LABEL_83; case 0xEu: v9 = "invalid string: control character U+000E (SO) must be escaped to \\u000E"; goto LABEL_83; case 0xFu: v9 = "invalid string: control character U+000F (SI) must be escaped to \\u000F"; goto LABEL_83; case 0x10u: v9 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010"; goto LABEL_83; case 0x11u: v9 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011"; goto LABEL_83; case 0x12u: v9 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012"; goto LABEL_83; case 0x13u: v9 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013"; goto LABEL_83; case 0x14u: v9 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014"; goto LABEL_83; case 0x15u: v9 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015"; goto LABEL_83; case 0x16u: v9 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016"; goto LABEL_83; case 0x17u: v9 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017"; goto LABEL_83; case 0x18u: v9 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018"; goto LABEL_83; case 0x19u: v9 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019"; goto LABEL_83; case 0x1Au: v9 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A"; goto LABEL_83; case 0x1Bu: v9 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B"; goto LABEL_83; case 0x1Cu: v9 = "invalid string: control character U+001C (FS) must be escaped to \\u001C"; goto LABEL_83; case 0x1Du: v9 = "invalid string: control character U+001D (GS) must be escaped to \\u001D"; goto LABEL_83; case 0x1Eu: v9 = "invalid string: control character U+001E (RS) must be escaped to \\u001E"; goto LABEL_83; case 0x1Fu: v9 = "invalid string: control character U+001F (US) must be escaped to \\u001F"; goto LABEL_83; case 0x20u: case 0x21u: case 0x23u: case 0x24u: case 0x25u: case 0x26u: case 0x27u: case 0x28u: case 0x29u: case 0x2Au: case 0x2Bu: case 0x2Cu: case 0x2Du: case 0x2Eu: case 0x2Fu: case 0x30u: case 0x31u: case 0x32u: case 0x33u: case 0x34u: case 0x35u: case 0x36u: case 0x37u: case 0x38u: case 0x39u: case 0x3Au: case 0x3Bu: case 0x3Cu: case 0x3Du: case 0x3Eu: case 0x3Fu: case 0x40u: case 0x41u: case 0x42u: case 0x43u: case 0x44u: case 0x45u: case 0x46u: case 0x47u: case 0x48u: case 0x49u: case 0x4Au: case 0x4Bu: case 0x4Cu: case 0x4Du: case 0x4Eu: case 0x4Fu: case 0x50u: case 0x51u: case 0x52u: case 0x53u: case 0x54u: case 0x55u: case 0x56u: case 0x57u: case 0x58u: case 0x59u: case 0x5Au: case 0x5Bu: case 0x5Du: case 0x5Eu: case 0x5Fu: case 0x60u: case 0x61u: case 0x62u: case 0x63u: case 0x64u: case 0x65u: case 0x66u: case 0x67u: case 0x68u: case 0x69u: case 0x6Au: case 0x6Bu: case 0x6Cu: case 0x6Du: case 0x6Eu: case 0x6Fu: case 0x70u: case 0x71u: case 0x72u: case 0x73u: case 0x74u: case 0x75u: case 0x76u: case 0x77u: case 0x78u: case 0x79u: case 0x7Au: case 0x7Bu: case 0x7Cu: case 0x7Du: case 0x7Eu: case 0x7Fu: LOBYTE(v6) = a1[1].m128i_i8[4]; goto LABEL_7; case 0x22u: return 4LL; case 0x5Cu: v8 = 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>>>::get(a1); v9 = "invalid string: forbidden character after backslash"; if ( v8 <= 97 ) { switch ( v8 ) { case '"': LOBYTE(v6) = 34; break; case '/': LOBYTE(v6) = 47; break; case '\\': LOBYTE(v6) = 92; break; default: goto LABEL_83; } goto LABEL_7; } break; case 0xC2u: case 0xC3u: case 0xC4u: case 0xC5u: case 0xC6u: case 0xC7u: case 0xC8u: case 0xC9u: case 0xCAu: case 0xCBu: case 0xCCu: case 0xCDu: case 0xCEu: case 0xCFu: case 0xD0u: case 0xD1u: case 0xD2u: case 0xD3u: case 0xD4u: case 0xD5u: case 0xD6u: case 0xD7u: case 0xD8u: case 0xD9u: case 0xDAu: case 0xDBu: case 0xDCu: case 0xDDu: case 0xDEu: case 0xDFu: *(_QWORD *)&v16 = 0xBF00000080LL; v4 = 2LL; goto LABEL_14; case 0xE0u: v5 = xmmword_112890; goto LABEL_5; case 0xE1u: case 0xE2u: case 0xE3u: case 0xE4u: case 0xE5u: case 0xE6u: case 0xE7u: case 0xE8u: case 0xE9u: case 0xEAu: case 0xEBu: case 0xECu: case 0xEEu: case 0xEFu: v5 = xmmword_112880; goto LABEL_5; case 0xEDu: v5 = xmmword_112870; LABEL_5: v16 = v5; v4 = 4LL; goto LABEL_14; case 0xF0u: v7 = xmmword_11C700; goto LABEL_13; case 0xF1u: case 0xF2u: case 0xF3u: v7 = xmmword_11C718; goto LABEL_13; case 0xF4u: v7 = xmmword_11C730; LABEL_13: v16 = v7; v17 = 0xBF00000080LL; v4 = 6LL; LABEL_14: if ( !(unsigned __int8)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>>>::next_byte_in_range( a1, &v16, v4, v1, v2, v3, v16, *((_QWORD *)&v16 + 1), v17) ) return 14LL; continue; default: v9 = "invalid string: ill-formed UTF-8 byte"; goto LABEL_83; } break; } switch ( v8 ) { case 'n': LOBYTE(v6) = 10; goto LABEL_7; case 'o': case 'p': case 'q': case 's': goto LABEL_83; case 'r': LOBYTE(v6) = 13; goto LABEL_7; case 't': LOBYTE(v6) = 9; goto LABEL_7; case 'u': codepoint = 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>>>::get_codepoint(a1); v9 = "invalid string: '\\u' must be followed by 4 hex digits"; if ( codepoint == -1 ) goto LABEL_83; v6 = codepoint; v11 = codepoint & 0xFFFFFC00; if ( v11 == 55296 ) { if ( (unsigned int)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>>>::get(a1) != 92 || (unsigned int)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>>>::get(a1) != 117 ) { v9 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; LABEL_83: a1[7].m128i_i64[0] = (long long)v9; return 14LL; } v12 = 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>>>::get_codepoint(a1); if ( v12 == -1 ) goto LABEL_83; v9 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; if ( (v12 & 0xFFFFFC00) != 0xDC00 ) goto LABEL_83; v6 = v12 + (v6 << 10) - 56613888; goto LABEL_25; } if ( v11 == 56320 ) { v9 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF"; goto LABEL_83; } if ( v6 < 0x110000 ) { if ( v6 > 0x7F ) { if ( v6 <= 0x7FF ) { v14 = (v6 >> 6) | 0xC0; goto LABEL_27; } if ( v6 <= 0xFFFF ) { v13 = (v6 >> 12) | 0xE0; goto LABEL_26; } LABEL_25: std::string::push_back(&a1[5], (unsigned int)(char)((v6 >> 18) | 0xF0)); v13 = (v6 >> 12) & 0x3F | 0x80; LABEL_26: std::string::push_back(&a1[5], (unsigned int)v13); v14 = (v6 >> 6) & 0x3F | 0x80; LABEL_27: std::string::push_back(&a1[5], (unsigned int)v14); LOBYTE(v6) = v6 & 0x3F | 0x80; } LABEL_7: std::string::push_back(&a1[5], (unsigned int)(char)v6); continue; } ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7753LL, "GGML_ASSERT(%s) failed", "0x00 <= codepoint && codepoint <= 0x10FFFF"); return 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>>>::scan_number("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); default: if ( v8 == 98 ) { LOBYTE(v6) = 8; } else { if ( v8 != 102 ) goto LABEL_83; LOBYTE(v6) = 12; } goto LABEL_7; } } }
scan_string: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI CALL 0x001866b8 CMP dword ptr [RBX + 0x14],0x22 JNZ 0x001862b1 LEA R14,[RBX + 0x50] LEA R12,[0x219e4e] LEA R13,[0x212f80] LAB_00185eae: MOV RDI,RBX CALL 0x00121856 INC EAX CMP EAX,0xf5 JA 0x00186280 MOVSXD RAX,dword ptr [R13 + RAX*0x4] ADD RAX,R13 switchD: JMP RAX caseD_c2: MOV RAX,0xbf00000080 MOV RSI,RSP MOV qword ptr [RSI],RAX MOV EDX,0x2 JMP 0x00185f4e caseD_e1: MOVAPS XMM0,xmmword ptr [0x00212880] LAB_00185eeb: MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 MOV EDX,0x4 JMP 0x00185f4e caseD_20: MOV R15B,byte ptr [RBX + 0x14] LAB_00185efc: MOVSX ESI,R15B MOV RDI,R14 CALL 0x00121330 JMP 0x00185eae caseD_f1: MOVUPS XMM0,xmmword ptr [0x0021c718] JMP 0x00185f35 caseD_ed: MOVAPS XMM0,xmmword ptr [0x00212870] JMP 0x00185eeb caseD_e0: MOVAPS XMM0,xmmword ptr [0x00212890] JMP 0x00185eeb caseD_f4: MOVUPS XMM0,xmmword ptr [0x0021c730] JMP 0x00185f35 caseD_f0: MOVUPS XMM0,xmmword ptr [0x0021c700] LAB_00185f35: MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 MOV RAX,0xbf00000080 MOV qword ptr [RSI + 0x10],RAX MOV EDX,0x6 LAB_00185f4e: MOV RDI,RBX CALL 0x0018673c TEST AL,AL JNZ 0x00185eae JMP 0x0018628b caseD_5c: MOV RDI,RBX CALL 0x00121856 LEA RBP,[0x219dd1] CMP EAX,0x61 JLE 0x0018609d LEA ECX,[RAX + -0x6e] CMP ECX,0x7 JA 0x001860b8 LEA RAX,[0x213358] MOVSXD RCX,dword ptr [RAX + RCX*0x4] ADD RCX,RAX switchD: JMP RCX caseD_75: MOV RDI,RBX CALL 0x001866f6 LEA RBP,[0x219ce0] CMP EAX,-0x1 JZ 0x00186287 MOV R15D,EAX AND EAX,0xfffffc00 CMP EAX,0xd800 JNZ 0x00186068 MOV RDI,RBX CALL 0x00121856 CMP EAX,0x5c JNZ 0x0018629f MOV RDI,RBX CALL 0x00121856 CMP EAX,0x75 JNZ 0x0018629f MOV RDI,RBX CALL 0x001866f6 CMP EAX,-0x1 JZ 0x00186287 MOV ECX,EAX AND ECX,0xfffffc00 LEA RBP,[0x219d16] CMP ECX,0xdc00 JNZ 0x00186287 SHL R15D,0xa ADD R15D,EAX ADD R15D,0xfca02400 LAB_0018601e: MOV EAX,R15D SHR EAX,0x12 OR AL,0xf0 MOVSX ESI,AL MOV RDI,R14 CALL 0x00121330 MOV EAX,R15D SHR EAX,0xc AND AL,0x3f OR AL,0x80 LAB_0018603b: MOVSX ESI,AL MOV RDI,R14 CALL 0x00121330 MOV EAX,R15D SHR EAX,0x6 AND AL,0x3f OR AL,0x80 LAB_00186050: MOVSX ESI,AL MOV RDI,R14 CALL 0x00121330 AND R15B,0x3f OR R15B,0x80 JMP 0x00185efc LAB_00186068: CMP EAX,0xdc00 JZ 0x001862a8 CMP R15D,0x110000 JNC 0x001862cd CMP R15D,0x7f JBE 0x00185efc CMP R15D,0x7ff JA 0x001860ce MOV EAX,R15D SHR EAX,0x6 OR AL,0xc0 JMP 0x00186050 LAB_0018609d: CMP EAX,0x22 JZ 0x001860f0 CMP EAX,0x2f JZ 0x001860e8 CMP EAX,0x5c JNZ 0x00186287 MOV R15B,0x5c JMP 0x00185efc default: CMP EAX,0x62 JZ 0x00186110 CMP EAX,0x66 JNZ 0x00186287 MOV R15B,0xc JMP 0x00185efc LAB_001860ce: CMP R15D,0xffff JA 0x0018601e MOV EAX,R15D SHR EAX,0xc OR AL,0xe0 JMP 0x0018603b LAB_001860e8: MOV R15B,0x2f JMP 0x00185efc LAB_001860f0: MOV R15B,0x22 JMP 0x00185efc caseD_74: MOV R15B,0x9 JMP 0x00185efc caseD_6e: MOV R15B,0xa JMP 0x00185efc caseD_72: MOV R15B,0xd JMP 0x00185efc LAB_00186110: MOV R15B,0x8 JMP 0x00185efc caseD_22: MOV EAX,0x4 JMP 0x00186290 caseD_1f: LEA RBP,[0x21a6ee] JMP 0x00186287 caseD_19: LEA RBP,[0x21a53c] JMP 0x00186287 caseD_1e: LEA RBP,[0x21a6a6] JMP 0x00186287 caseD_c: LEA RBP,[0x21a17f] JMP 0x00186287 caseD_1c: LEA RBP,[0x21a616] JMP 0x00186287 caseD_18: LEA RBP,[0x21a4f3] JMP 0x00186287 caseD_4: LEA RBP,[0x219f29] JMP 0x00186287 caseD_8: LEA RBP,[0x21a04d] JMP 0x00186287 caseD_3: LEA RBP,[0x219ee0] JMP 0x00186287 caseD_6: LEA RBP,[0x219fbb] JMP 0x00186287 caseD_7: LEA RBP,[0x21a004] JMP 0x00186287 caseD_1: MOV RBP,R12 JMP 0x00186287 caseD_10: LEA RBP,[0x21a2ab] JMP 0x00186287 caseD_e: LEA RBP,[0x21a21b] JMP 0x00186287 caseD_ffffffff: LEA RBP,[0x219cba] JMP 0x00186287 caseD_5: LEA RBP,[0x219f72] JMP 0x00186287 caseD_11: LEA RBP,[0x21a2f4] JMP 0x00186287 caseD_0: LEA RBP,[0x219e05] JMP 0x00186287 caseD_2: LEA RBP,[0x219e97] JMP 0x00186287 caseD_13: LEA RBP,[0x21a386] JMP 0x00186287 caseD_14: LEA RBP,[0x21a3cf] JMP 0x00186287 caseD_1b: LEA RBP,[0x21a5cd] JMP 0x00186287 caseD_9: LEA RBP,[0x21a09b] JMP 0x00186287 caseD_15: LEA RBP,[0x21a418] JMP 0x00186287 caseD_d: LEA RBP,[0x21a1cd] JMP 0x00186287 caseD_1a: LEA RBP,[0x21a584] JMP 0x00186287 caseD_a: LEA RBP,[0x21a0e9] JMP 0x00186287 caseD_b: LEA RBP,[0x21a137] JMP 0x00186287 caseD_12: LEA RBP,[0x21a33d] JMP 0x00186287 caseD_f: LEA RBP,[0x21a263] JMP 0x00186287 caseD_1d: LEA RBP,[0x21a65e] JMP 0x00186287 caseD_16: LEA RBP,[0x21a461] JMP 0x00186287 caseD_17: LEA RBP,[0x21a4aa] JMP 0x00186287 caseD_80: LEA RBP,[0x21a736] caseD_6f: MOV qword ptr [RBX + 0x70],RBP LAB_0018628b: MOV EAX,0xe LAB_00186290: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018629f: LEA RBP,[0x219d16] JMP 0x00186287 LAB_001862a8: LEA RBP,[0x219d62] JMP 0x00186287 LAB_001862b1: LEA RDI,[0x219a3c] LEA RDX,[0x219a77] LEA RCX,[0x219caa] MOV ESI,0x1dd1 JMP 0x001862e7 LAB_001862cd: LEA RDI,[0x219a3c] LEA RDX,[0x219a77] LEA RCX,[0x219da6] MOV ESI,0x1e49 LAB_001862e7: XOR EAX,EAX CALL 0x00120e20
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* 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 > > >::scan_string() */ 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>>> ::scan_string(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) { char cVar1; int4 uVar2; int iVar3; uint uVar4; char *pcVar5; int8 uVar6; char cVar7; int4 uVar8; int8 local_48; int4 uStack_40; int4 uStack_3c; int8 local_38; reset(this); if (*(int *)(this + 0x14) != 0x22) { pcVar5 = "current == \'\\\"\'"; uVar6 = 0x1dd1; LAB_001862e7: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar6, "GGML_ASSERT(%s) failed",pcVar5); } cVar7 = (char)this + 'P'; LAB_00185eae: uVar2 = get(this); switch(uVar2) { case 0: pcVar5 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000"; break; case 1: pcVar5 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001"; break; case 2: pcVar5 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002"; break; case 3: pcVar5 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003"; break; case 4: pcVar5 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004"; break; case 5: pcVar5 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005"; break; case 6: pcVar5 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006"; break; case 7: pcVar5 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007"; break; case 8: pcVar5 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b"; break; case 9: pcVar5 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t"; break; case 10: pcVar5 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n"; break; case 0xb: pcVar5 = "invalid string: control character U+000B (VT) must be escaped to \\u000B"; break; case 0xc: pcVar5 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f"; break; case 0xd: pcVar5 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r"; break; case 0xe: pcVar5 = "invalid string: control character U+000E (SO) must be escaped to \\u000E"; break; case 0xf: pcVar5 = "invalid string: control character U+000F (SI) must be escaped to \\u000F"; break; case 0x10: pcVar5 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010"; break; case 0x11: pcVar5 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011"; break; case 0x12: pcVar5 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012"; break; case 0x13: pcVar5 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013"; break; case 0x14: pcVar5 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014"; break; case 0x15: pcVar5 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015"; break; case 0x16: pcVar5 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016"; break; case 0x17: pcVar5 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017"; break; case 0x18: pcVar5 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018"; break; case 0x19: pcVar5 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019"; break; case 0x1a: pcVar5 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A"; break; case 0x1b: pcVar5 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B"; break; case 0x1c: pcVar5 = "invalid string: control character U+001C (FS) must be escaped to \\u001C"; break; case 0x1d: pcVar5 = "invalid string: control character U+001D (GS) must be escaped to \\u001D"; break; case 0x1e: pcVar5 = "invalid string: control character U+001E (RS) must be escaped to \\u001E"; break; case 0x1f: pcVar5 = "invalid string: control character U+001F (US) must be escaped to \\u001F"; break; case 0x20: case 0x21: case 0x23: case 0x24: case 0x25: case 0x26: case 0x27: case 0x28: case 0x29: case 0x2a: case 0x2b: case 0x2c: case 0x2d: case 0x2e: case 0x2f: case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: case 0x3a: case 0x3b: case 0x3c: case 0x3d: case 0x3e: case 0x3f: case 0x40: case 0x41: case 0x42: case 0x43: case 0x44: case 0x45: case 0x46: case 0x47: case 0x48: case 0x49: case 0x4a: case 0x4b: case 0x4c: case 0x4d: case 0x4e: case 0x4f: case 0x50: case 0x51: case 0x52: case 0x53: case 0x54: case 0x55: case 0x56: case 0x57: case 0x58: case 0x59: case 0x5a: case 0x5b: case 0x5d: case 0x5e: case 0x5f: case 0x60: case 0x61: case 0x62: case 99: case 100: case 0x65: case 0x66: case 0x67: case 0x68: case 0x69: case 0x6a: case 0x6b: case 0x6c: case 0x6d: case 0x6e: case 0x6f: case 0x70: case 0x71: case 0x72: case 0x73: case 0x74: case 0x75: case 0x76: case 0x77: case 0x78: case 0x79: case 0x7a: case 0x7b: case 0x7c: case 0x7d: case 0x7e: case 0x7f: goto LAB_00185efc; case 0x22: return 4; case 0x5c: iVar3 = get(this); pcVar5 = "invalid string: forbidden character after backslash"; if (iVar3 < 0x62) { if (((iVar3 != 0x22) && (iVar3 != 0x2f)) && (iVar3 != 0x5c)) break; } else { switch(iVar3) { case 0x6e: break; case 0x6f: case 0x70: case 0x71: case 0x73: goto switchD_00185f95_caseD_6f; case 0x72: break; case 0x74: break; case 0x75: uVar4 = get_codepoint(this); pcVar5 = "invalid string: \'\\u\' must be followed by 4 hex digits"; if (uVar4 == 0xffffffff) goto switchD_00185f95_caseD_6f; if ((uVar4 & 0xfffffc00) == 0xd800) { iVar3 = get(this); if ((iVar3 != 0x5c) || (iVar3 = get(this), iVar3 != 0x75)) { pcVar5 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; goto switchD_00185f95_caseD_6f; } uVar4 = get_codepoint(this); if ((uVar4 == 0xffffffff) || (pcVar5 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF" , (uVar4 & 0xfffffc00) != 0xdc00)) goto switchD_00185f95_caseD_6f; LAB_0018601e: std::__cxx11::string::push_back(cVar7); LAB_0018603b: std::__cxx11::string::push_back(cVar7); } else { if ((uVar4 & 0xfffffc00) == 0xdc00) { pcVar5 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF"; goto switchD_00185f95_caseD_6f; } if (0x10ffff < uVar4) { pcVar5 = "0x00 <= codepoint && codepoint <= 0x10FFFF"; uVar6 = 0x1e49; goto LAB_001862e7; } if (uVar4 < 0x80) break; if (0x7ff < uVar4) { if (0xffff < uVar4) goto LAB_0018601e; goto LAB_0018603b; } } std::__cxx11::string::push_back(cVar7); break; default: if ((iVar3 != 0x62) && (iVar3 != 0x66)) goto switchD_00185f95_caseD_6f; } } LAB_00185efc: std::__cxx11::string::push_back(cVar7); goto LAB_00185eae; default: pcVar5 = "invalid string: ill-formed UTF-8 byte"; break; case 0xc2: case 0xc3: case 0xc4: case 0xc5: case 0xc6: case 199: case 200: case 0xc9: case 0xca: case 0xcb: case 0xcc: case 0xcd: case 0xce: case 0xcf: case 0xd0: case 0xd1: case 0xd2: case 0xd3: case 0xd4: case 0xd5: case 0xd6: case 0xd7: case 0xd8: case 0xd9: case 0xda: case 0xdb: case 0xdc: case 0xdd: case 0xde: case 0xdf: local_48 = 0xbf00000080; uVar6 = 2; goto LAB_00185f4e; case 0xe0: uVar2 = _DAT_00212890; uVar8 = _UNK_00212894; uStack_40 = _UNK_00212898; uStack_3c = _UNK_0021289c; goto LAB_00185eeb; case 0xe1: case 0xe2: case 0xe3: case 0xe4: case 0xe5: case 0xe6: case 0xe7: case 0xe8: case 0xe9: case 0xea: case 0xeb: case 0xec: case 0xee: case 0xef: uVar2 = _DAT_00212880; uVar8 = _UNK_00212884; uStack_40 = _UNK_00212888; uStack_3c = _UNK_0021288c; goto LAB_00185eeb; case 0xed: uVar2 = _DAT_00212870; uVar8 = _UNK_00212874; uStack_40 = _UNK_00212878; uStack_3c = _UNK_0021287c; LAB_00185eeb: local_48 = CONCAT44(uVar8,uVar2); uVar6 = 4; LAB_00185f4e: cVar1 = next_byte_in_range(this,&local_48,uVar6); if (cVar1 == '\0') { return 0xe; } goto LAB_00185eae; case 0xf0: uVar2 = _DAT_0021c700; uVar8 = _UNK_0021c704; uStack_40 = _UNK_0021c708; uStack_3c = _UNK_0021c70c; goto LAB_00185f35; case 0xf1: case 0xf2: case 0xf3: uVar2 = _DAT_0021c718; uVar8 = _UNK_0021c71c; uStack_40 = _UNK_0021c720; uStack_3c = _UNK_0021c724; goto LAB_00185f35; case 0xf4: uVar2 = _DAT_0021c730; uVar8 = _UNK_0021c734; uStack_40 = _UNK_0021c738; uStack_3c = _UNK_0021c73c; LAB_00185f35: local_48 = CONCAT44(uVar8,uVar2); local_38 = 0xbf00000080; uVar6 = 6; goto LAB_00185f4e; case 0xffffffff: pcVar5 = "invalid string: missing closing quote"; } switchD_00185f95_caseD_6f: *(char **)(this + 0x70) = pcVar5; return 0xe; }
29,628
ImPlot3DPlot::ImPlot3DPlot()
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d_internal.h
ImPlot3DPlot() { PreviousFlags = Flags = ImPlot3DFlags_None; JustCreated = true; Initialized = false; InitialRotation = ImPlot3DQuat(-0.513269f, -0.212596f, -0.318184f, 0.76819f); Rotation = ImPlot3DQuat(0.0f, 0.0f, 0.0f, 1.0f); RotationCond = ImPlot3DCond_None; for (int i = 0; i < 3; i++) Axes[i] = ImPlot3DAxis(); BoxScale = ImPlot3DPoint(1.0f, 1.0f, 1.0f); AnimationTime = 0.0f; RotationAnimationEnd = Rotation; SetupLocked = false; Hovered = Held = false; HeldEdgeIdx = -1; HeldPlaneIdx = -1; FitThisFrame = true; CurrentItem = nullptr; ContextClick = false; OpenContextThisFrame = false; }
O0
c
ImPlot3DPlot::ImPlot3DPlot(): subq $0x118, %rsp # imm = 0x118 movq %rdi, 0x110(%rsp) movq 0x110(%rsp), %rdi movq %rdi, 0x58(%rsp) addq $0x10, %rdi movq %rdi, 0x50(%rsp) callq 0xd8b20 movq 0x58(%rsp), %rdi addq $0x24, %rdi callq 0xd8a20 jmp 0xdbe5a movq 0x58(%rsp), %rdi addq $0x34, %rdi callq 0xd8a20 jmp 0xdbe6a movq 0x58(%rsp), %rdi addq $0x44, %rdi callq 0xd8a20 jmp 0xdbe7a movq 0x58(%rsp), %rdi addq $0x54, %rdi callq 0xda2e0 jmp 0xdbe8a movq 0x58(%rsp), %rdi addq $0x64, %rdi callq 0xda2e0 jmp 0xdbe9a movq 0x58(%rsp), %rax addq $0x78, %rax movq %rax, 0x38(%rsp) movq %rax, %rcx addq $0x150, %rcx # imm = 0x150 movq %rcx, 0x40(%rsp) movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0xd9350 jmp 0xdbecd movq 0x40(%rsp), %rcx movq 0x30(%rsp), %rax addq $0x70, %rax cmpq %rcx, %rax movq %rax, 0x48(%rsp) jne 0xdbebc movq 0x58(%rsp), %rdi addq $0x1c8, %rdi # imm = 0x1C8 callq 0xd8c20 jmp 0xdbef8 movq 0x58(%rsp), %rdi addq $0x1d8, %rdi # imm = 0x1D8 callq 0xda2e0 jmp 0xdbf0b movq 0x58(%rsp), %rdi addq $0x1f8, %rdi # imm = 0x1F8 movq %rdi, 0x28(%rsp) callq 0xdc330 jmp 0xdbf23 movq 0x58(%rsp), %rdi addq $0x278, %rdi # imm = 0x278 movq %rdi, 0x20(%rsp) callq 0xdc3a0 jmp 0xdbf3b movq 0x58(%rsp), %rax movl $0x0, 0x4(%rax) movl $0x0, 0x8(%rax) movb $0x1, 0x20(%rax) movb $0x0, 0x21(%rax) leaq 0xf4(%rsp), %rdi movss 0x4f5ada(%rip), %xmm0 # 0x5d1a40 movss 0x4f5ad6(%rip), %xmm1 # 0x5d1a44 movss 0x4f5ad2(%rip), %xmm2 # 0x5d1a48 movss 0x4f5ace(%rip), %xmm3 # 0x5d1a4c callq 0xda310 jmp 0xdbf85 movq 0x58(%rsp), %rax movups 0xf4(%rsp), %xmm0 movups %xmm0, 0x54(%rax) leaq 0xe4(%rsp), %rdi xorps %xmm2, %xmm2 movss 0x4f006b(%rip), %xmm3 # 0x5cc014 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0xda310 jmp 0xdbfb6 movq 0x58(%rsp), %rax movq 0xe4(%rsp), %rcx movq %rcx, 0x64(%rax) movq 0xec(%rsp), %rcx movq %rcx, 0x6c(%rax) movl $0x0, 0x74(%rax) movl $0x0, 0xe0(%rsp) cmpl $0x3, 0xe0(%rsp) jge 0xdc117 leaq 0x70(%rsp), %rdi callq 0xd9350 jmp 0xdbfff movq 0x58(%rsp), %rax movslq 0xe0(%rsp), %rcx imulq $0x70, %rcx, %rcx leaq 0x78(%rax,%rcx), %rdi leaq 0x70(%rsp), %rsi callq 0xd9460 jmp 0xdc021 leaq 0x70(%rsp), %rdi callq 0xd94e0 movl 0xe0(%rsp), %eax addl $0x1, %eax movl %eax, 0xe0(%rsp) jmp 0xdbfe5 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0xdc209 movq 0x38(%rsp), %rcx movq %rax, %rsi movq 0x30(%rsp), %rax movq %rsi, 0x108(%rsp) movl %edx, 0x104(%rsp) cmpq %rax, %rcx movq %rax, 0x18(%rsp) je 0xdc0a4 movq 0x18(%rsp), %rdi addq $-0x70, %rdi movq %rdi, 0x10(%rsp) callq 0xd94e0 movq 0x38(%rsp), %rcx movq 0x10(%rsp), %rax cmpq %rcx, %rax movq %rax, 0x18(%rsp) jne 0xdc07d jmp 0xdc209 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0xdc1d2 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0xdc1c8 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0xdc1be movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) leaq 0x70(%rsp), %rdi callq 0xd94e0 jmp 0xdc1be leaq 0x64(%rsp), %rdi movss 0x4efef0(%rip), %xmm2 # 0x5cc014 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0xd8c50 jmp 0xdc131 movq 0x58(%rsp), %rax movq 0x64(%rsp), %rcx movq %rcx, 0x1c8(%rax) movl 0x6c(%rsp), %ecx movl %ecx, 0x1d0(%rax) xorps %xmm0, %xmm0 movss %xmm0, 0x1d4(%rax) movq 0x64(%rax), %rcx movq %rcx, 0x1d8(%rax) movq 0x6c(%rax), %rcx movq %rcx, 0x1e0(%rax) movb $0x0, 0x1e8(%rax) movb $0x0, 0x1ea(%rax) movb $0x0, 0x1e9(%rax) movl $0xffffffff, 0x1ec(%rax) # imm = 0xFFFFFFFF movl $0xffffffff, 0x1f0(%rax) # imm = 0xFFFFFFFF movb $0x1, 0x1f4(%rax) movq $0x0, 0x270(%rax) movb $0x0, 0x2d8(%rax) movb $0x0, 0x2d9(%rax) addq $0x118, %rsp # imm = 0x118 retq movq 0x20(%rsp), %rdi callq 0xdc460 movq 0x28(%rsp), %rdi callq 0xdc4a0 movq 0x38(%rsp), %rax addq $0x150, %rax # imm = 0x150 movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rdi addq $-0x70, %rdi movq %rdi, (%rsp) callq 0xd94e0 movq 0x38(%rsp), %rcx movq (%rsp), %rax cmpq %rcx, %rax movq %rax, 0x8(%rsp) jne 0xdc1e2 jmp 0xdc209 movq 0x50(%rsp), %rdi callq 0xd8b90 movq 0x108(%rsp), %rdi callq 0x13540
_ZN12ImPlot3DPlotC2Ev: sub rsp, 118h mov [rsp+118h+var_8], rdi mov rdi, [rsp+118h+var_8] mov [rsp+118h+var_C0], rdi add rdi, 10h; this mov [rsp+118h+var_C8], rdi call _ZN15ImGuiTextBufferC2Ev; ImGuiTextBuffer::ImGuiTextBuffer(void) mov rdi, [rsp+118h+var_C0] add rdi, 24h ; '$'; this call _ZN6ImRectC2Ev; ImRect::ImRect(void) jmp short $+2 loc_DBE5A: mov rdi, [rsp+118h+var_C0] add rdi, 34h ; '4'; this call _ZN6ImRectC2Ev; ImRect::ImRect(void) jmp short $+2 loc_DBE6A: mov rdi, [rsp+118h+var_C0] add rdi, 44h ; 'D'; this call _ZN6ImRectC2Ev; ImRect::ImRect(void) jmp short $+2 loc_DBE7A: mov rdi, [rsp+118h+var_C0] add rdi, 54h ; 'T'; this call _ZN12ImPlot3DQuatC2Ev; ImPlot3DQuat::ImPlot3DQuat(void) jmp short $+2 loc_DBE8A: mov rdi, [rsp+118h+var_C0] add rdi, 64h ; 'd'; this call _ZN12ImPlot3DQuatC2Ev; ImPlot3DQuat::ImPlot3DQuat(void) jmp short $+2 loc_DBE9A: mov rax, [rsp+118h+var_C0] add rax, 78h ; 'x' mov [rsp+118h+var_E0], rax mov rcx, rax add rcx, 150h mov [rsp+118h+var_D8], rcx mov [rsp+118h+var_D0], rax loc_DBEBC: mov rdi, [rsp+118h+var_D0]; this mov [rsp+118h+var_E8], rdi call _ZN12ImPlot3DAxisC2Ev; ImPlot3DAxis::ImPlot3DAxis(void) jmp short $+2 loc_DBECD: mov rcx, [rsp+118h+var_D8] mov rax, [rsp+118h+var_E8] add rax, 70h ; 'p' cmp rax, rcx mov [rsp+118h+var_D0], rax jnz short loc_DBEBC mov rdi, [rsp+118h+var_C0] add rdi, 1C8h; this call _ZN13ImPlot3DPointC2Ev; ImPlot3DPoint::ImPlot3DPoint(void) jmp short $+2 loc_DBEF8: mov rdi, [rsp+118h+var_C0] add rdi, 1D8h; this call _ZN12ImPlot3DQuatC2Ev; ImPlot3DQuat::ImPlot3DQuat(void) jmp short $+2 loc_DBF0B: mov rdi, [rsp+118h+var_C0] add rdi, 1F8h; this mov [rsp+118h+var_F0], rdi call _ZN17ImPlot3DItemGroupC2Ev; ImPlot3DItemGroup::ImPlot3DItemGroup(void) jmp short $+2 loc_DBF23: mov rdi, [rsp+118h+var_C0] add rdi, 278h; this mov [rsp+118h+var_F8], rdi call _ZN12ImDrawList3DC2Ev; ImDrawList3D::ImDrawList3D(void) jmp short $+2 loc_DBF3B: mov rax, [rsp+118h+var_C0] mov dword ptr [rax+4], 0 mov dword ptr [rax+8], 0 mov byte ptr [rax+20h], 1 mov byte ptr [rax+21h], 0 lea rdi, [rsp+118h+var_24]; this movss xmm0, cs:flt_5D1A40; float movss xmm1, cs:flt_5D1A44; float movss xmm2, cs:flt_5D1A48; float movss xmm3, cs:flt_5D1A4C; float call _ZN12ImPlot3DQuatC2Effff; ImPlot3DQuat::ImPlot3DQuat(float,float,float,float) jmp short $+2 loc_DBF85: mov rax, [rsp+118h+var_C0] movups xmm0, [rsp+118h+var_24] movups xmmword ptr [rax+54h], xmm0 lea rdi, [rsp+118h+var_34]; this xorps xmm2, xmm2; float movss xmm3, cs:flt_5CC014; float movaps xmm0, xmm2; float movaps xmm1, xmm2; float call _ZN12ImPlot3DQuatC2Effff; ImPlot3DQuat::ImPlot3DQuat(float,float,float,float) jmp short $+2 loc_DBFB6: mov rax, [rsp+118h+var_C0] mov rcx, [rsp+118h+var_34] mov [rax+64h], rcx mov rcx, [rsp+118h+var_2C] mov [rax+6Ch], rcx mov dword ptr [rax+74h], 0 mov [rsp+118h+var_38], 0 loc_DBFE5: cmp [rsp+118h+var_38], 3 jge loc_DC117 lea rdi, [rsp+118h+var_A8]; this call _ZN12ImPlot3DAxisC2Ev; ImPlot3DAxis::ImPlot3DAxis(void) jmp short $+2 loc_DBFFF: mov rax, [rsp+118h+var_C0] movsxd rcx, [rsp+118h+var_38] imul rcx, 70h ; 'p' lea rdi, [rax+rcx+78h] lea rsi, [rsp+118h+var_A8] call _ZN12ImPlot3DAxisaSEOS_; ImPlot3DAxis::operator=(ImPlot3DAxis&&) jmp short $+2 loc_DC021: lea rdi, [rsp+118h+var_A8]; this call _ZN12ImPlot3DAxisD2Ev; ImPlot3DAxis::~ImPlot3DAxis() mov eax, [rsp+118h+var_38] add eax, 1 mov [rsp+118h+var_38], eax jmp short loc_DBFE5 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp loc_DC209 mov rcx, [rsp+arg_30] mov rsi, rax mov rax, [rsp+arg_28] mov [rsp+arg_100], rsi mov [rsp+arg_FC], edx cmp rcx, rax mov [rsp+arg_10], rax jz short loc_DC0A4 loc_DC07D: mov rdi, [rsp+arg_10] add rdi, 0FFFFFFFFFFFFFF90h; this mov [rsp+arg_8], rdi call _ZN12ImPlot3DAxisD2Ev; ImPlot3DAxis::~ImPlot3DAxis() mov rcx, [rsp+arg_30] mov rax, [rsp+arg_8] cmp rax, rcx mov [rsp+arg_10], rax jnz short loc_DC07D loc_DC0A4: jmp loc_DC209 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp loc_DC1D2 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp loc_DC1C8 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp loc_DC1BE mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax lea rdi, [rsp+arg_68]; this call _ZN12ImPlot3DAxisD2Ev; ImPlot3DAxis::~ImPlot3DAxis() jmp loc_DC1BE loc_DC117: lea rdi, [rsp+118h+var_B4]; this movss xmm2, cs:flt_5CC014; float movaps xmm0, xmm2; float movaps xmm1, xmm2; float call _ZN13ImPlot3DPointC2Efff; ImPlot3DPoint::ImPlot3DPoint(float,float,float) jmp short $+2 loc_DC131: mov rax, [rsp+118h+var_C0] mov rcx, [rsp+118h+var_B4] mov [rax+1C8h], rcx mov ecx, [rsp+118h+var_AC] mov [rax+1D0h], ecx xorps xmm0, xmm0 movss dword ptr [rax+1D4h], xmm0 mov rcx, [rax+64h] mov [rax+1D8h], rcx mov rcx, [rax+6Ch] mov [rax+1E0h], rcx mov byte ptr [rax+1E8h], 0 mov byte ptr [rax+1EAh], 0 mov byte ptr [rax+1E9h], 0 mov dword ptr [rax+1ECh], 0FFFFFFFFh mov dword ptr [rax+1F0h], 0FFFFFFFFh mov byte ptr [rax+1F4h], 1 mov qword ptr [rax+270h], 0 mov byte ptr [rax+2D8h], 0 mov byte ptr [rax+2D9h], 0 add rsp, 118h retn loc_DC1BE: mov rdi, [rsp+arg_18]; this call _ZN12ImDrawList3DD2Ev; ImDrawList3D::~ImDrawList3D() loc_DC1C8: mov rdi, [rsp+arg_20]; this call _ZN17ImPlot3DItemGroupD2Ev; ImPlot3DItemGroup::~ImPlot3DItemGroup() loc_DC1D2: mov rax, [rsp+arg_30] add rax, 150h mov [rsp+arg_0], rax loc_DC1E2: mov rdi, [rsp+arg_0] add rdi, 0FFFFFFFFFFFFFF90h; this mov [rsp+0], rdi call _ZN12ImPlot3DAxisD2Ev; ImPlot3DAxis::~ImPlot3DAxis() mov rcx, [rsp+arg_30] mov rax, [rsp+0] cmp rax, rcx mov [rsp+arg_0], rax jnz short loc_DC1E2 jmp short $+2 loc_DC209: mov rdi, [rsp+arg_48]; this call _ZN15ImGuiTextBufferD2Ev; ImGuiTextBuffer::~ImGuiTextBuffer() mov rdi, [rsp+arg_100] call __Unwind_Resume
void ImPlot3DPlot::ImPlot3DPlot(ImPlot3DPlot *this) { ImPlot3DAxis *v1; // [rsp+48h] [rbp-D0h] long long v2; // [rsp+64h] [rbp-B4h] BYREF int v3; // [rsp+6Ch] [rbp-ACh] _BYTE v4[112]; // [rsp+70h] [rbp-A8h] BYREF int i; // [rsp+E0h] [rbp-38h] _QWORD v6[2]; // [rsp+E4h] [rbp-34h] BYREF __int128 v7; // [rsp+F4h] [rbp-24h] BYREF ImPlot3DPlot *v8; // [rsp+110h] [rbp-8h] v8 = this; ImGuiTextBuffer::ImGuiTextBuffer((ImPlot3DPlot *)((char *)this + 16)); ImRect::ImRect((ImPlot3DPlot *)((char *)this + 36)); ImRect::ImRect((ImPlot3DPlot *)((char *)this + 52)); ImRect::ImRect((ImPlot3DPlot *)((char *)this + 68)); ImPlot3DQuat::ImPlot3DQuat((ImPlot3DPlot *)((char *)this + 84)); ImPlot3DQuat::ImPlot3DQuat((ImPlot3DPlot *)((char *)this + 100)); v1 = (ImPlot3DPlot *)((char *)this + 120); do { ImPlot3DAxis::ImPlot3DAxis(v1); v1 = (ImPlot3DAxis *)((char *)v1 + 112); } while ( v1 != (ImPlot3DPlot *)((char *)this + 456) ); ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPlot *)((char *)this + 456)); ImPlot3DQuat::ImPlot3DQuat((ImPlot3DPlot *)((char *)this + 472)); ImPlot3DItemGroup::ImPlot3DItemGroup((ImPlot3DPlot *)((char *)this + 504)); ImDrawList3D::ImDrawList3D((ImPlot3DPlot *)((char *)this + 632)); *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; *((_BYTE *)this + 32) = 1; *((_BYTE *)this + 33) = 0; ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)&v7, -0.51326901, -0.212596, -0.31818399, 0.76819003); *(_OWORD *)((char *)this + 84) = v7; ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)v6, 0.0, 0.0, 0.0, 1.0); *(_QWORD *)((char *)this + 100) = v6[0]; *(_QWORD *)((char *)this + 108) = v6[1]; *((_DWORD *)this + 29) = 0; for ( i = 0; i < 3; ++i ) { ImPlot3DAxis::ImPlot3DAxis((ImPlot3DAxis *)v4); ImPlot3DAxis::operator=((long long)this + 112 * i + 120, (long long)v4); ImPlot3DAxis::~ImPlot3DAxis((ImPlot3DAxis *)v4); } ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)&v2, 1.0, 1.0, 1.0); *((_QWORD *)this + 57) = v2; *((_DWORD *)this + 116) = v3; *((_DWORD *)this + 117) = 0; *((_QWORD *)this + 59) = *(_QWORD *)((char *)this + 100); *((_QWORD *)this + 60) = *(_QWORD *)((char *)this + 108); *((_BYTE *)this + 488) = 0; *((_BYTE *)this + 490) = 0; *((_BYTE *)this + 489) = 0; *((_DWORD *)this + 123) = -1; *((_DWORD *)this + 124) = -1; *((_BYTE *)this + 500) = 1; *((_QWORD *)this + 78) = 0LL; *((_BYTE *)this + 728) = 0; *((_BYTE *)this + 729) = 0; }
ImPlot3DPlot: SUB RSP,0x118 MOV qword ptr [RSP + 0x110],RDI MOV RDI,qword ptr [RSP + 0x110] MOV qword ptr [RSP + 0x58],RDI ADD RDI,0x10 MOV qword ptr [RSP + 0x50],RDI CALL 0x001d8b20 MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x24 LAB_001dbe53: CALL 0x001d8a20 JMP 0x001dbe5a LAB_001dbe5a: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x34 CALL 0x001d8a20 JMP 0x001dbe6a LAB_001dbe6a: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x44 CALL 0x001d8a20 JMP 0x001dbe7a LAB_001dbe7a: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x54 CALL 0x001da2e0 JMP 0x001dbe8a LAB_001dbe8a: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x64 CALL 0x001da2e0 JMP 0x001dbe9a LAB_001dbe9a: MOV RAX,qword ptr [RSP + 0x58] ADD RAX,0x78 MOV qword ptr [RSP + 0x38],RAX MOV RCX,RAX ADD RCX,0x150 MOV qword ptr [RSP + 0x40],RCX MOV qword ptr [RSP + 0x48],RAX LAB_001dbebc: MOV RDI,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x30],RDI CALL 0x001d9350 JMP 0x001dbecd LAB_001dbecd: MOV RCX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RSP + 0x30] ADD RAX,0x70 CMP RAX,RCX MOV qword ptr [RSP + 0x48],RAX JNZ 0x001dbebc MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x1c8 LAB_001dbef1: CALL 0x001d8c20 JMP 0x001dbef8 LAB_001dbef8: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x1d8 CALL 0x001da2e0 JMP 0x001dbf0b LAB_001dbf0b: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x1f8 MOV qword ptr [RSP + 0x28],RDI CALL 0x001dc330 JMP 0x001dbf23 LAB_001dbf23: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x278 MOV qword ptr [RSP + 0x20],RDI LAB_001dbf34: CALL 0x001dc3a0 JMP 0x001dbf3b LAB_001dbf3b: MOV RAX,qword ptr [RSP + 0x58] MOV dword ptr [RAX + 0x4],0x0 MOV dword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x20],0x1 MOV byte ptr [RAX + 0x21],0x0 LAB_001dbf56: LEA RDI,[RSP + 0xf4] MOVSS XMM0,dword ptr [0x006d1a40] MOVSS XMM1,dword ptr [0x006d1a44] MOVSS XMM2,dword ptr [0x006d1a48] MOVSS XMM3,dword ptr [0x006d1a4c] CALL 0x001da310 JMP 0x001dbf85 LAB_001dbf85: MOV RAX,qword ptr [RSP + 0x58] MOVUPS XMM0,xmmword ptr [RSP + 0xf4] MOVUPS xmmword ptr [RAX + 0x54],XMM0 LEA RDI,[RSP + 0xe4] XORPS XMM2,XMM2 MOVSS XMM3,dword ptr [0x006cc014] MOVAPS XMM0,XMM2 MOVAPS XMM1,XMM2 CALL 0x001da310 JMP 0x001dbfb6 LAB_001dbfb6: MOV RAX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0xe4] MOV qword ptr [RAX + 0x64],RCX MOV RCX,qword ptr [RSP + 0xec] MOV qword ptr [RAX + 0x6c],RCX MOV dword ptr [RAX + 0x74],0x0 MOV dword ptr [RSP + 0xe0],0x0 LAB_001dbfe5: CMP dword ptr [RSP + 0xe0],0x3 JGE 0x001dc117 LEA RDI,[RSP + 0x70] CALL 0x001d9350 JMP 0x001dbfff LAB_001dbfff: MOV RAX,qword ptr [RSP + 0x58] MOVSXD RCX,dword ptr [RSP + 0xe0] IMUL RCX,RCX,0x70 LEA RDI,[RAX + RCX*0x1 + 0x78] LAB_001dc015: LEA RSI,[RSP + 0x70] CALL 0x001d9460 JMP 0x001dc021 LAB_001dc021: LEA RDI,[RSP + 0x70] CALL 0x001d94e0 MOV EAX,dword ptr [RSP + 0xe0] ADD EAX,0x1 MOV dword ptr [RSP + 0xe0],EAX JMP 0x001dbfe5 LAB_001dc117: LEA RDI,[RSP + 0x64] MOVSS XMM2,dword ptr [0x006cc014] MOVAPS XMM0,XMM2 MOVAPS XMM1,XMM2 CALL 0x001d8c50 LAB_001dc12f: JMP 0x001dc131 LAB_001dc131: MOV RAX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0x64] MOV qword ptr [RAX + 0x1c8],RCX MOV ECX,dword ptr [RSP + 0x6c] MOV dword ptr [RAX + 0x1d0],ECX XORPS XMM0,XMM0 MOVSS dword ptr [RAX + 0x1d4],XMM0 MOV RCX,qword ptr [RAX + 0x64] MOV qword ptr [RAX + 0x1d8],RCX MOV RCX,qword ptr [RAX + 0x6c] MOV qword ptr [RAX + 0x1e0],RCX MOV byte ptr [RAX + 0x1e8],0x0 MOV byte ptr [RAX + 0x1ea],0x0 MOV byte ptr [RAX + 0x1e9],0x0 MOV dword ptr [RAX + 0x1ec],0xffffffff MOV dword ptr [RAX + 0x1f0],0xffffffff MOV byte ptr [RAX + 0x1f4],0x1 MOV qword ptr [RAX + 0x270],0x0 MOV byte ptr [RAX + 0x2d8],0x0 MOV byte ptr [RAX + 0x2d9],0x0 ADD RSP,0x118 RET
/* ImPlot3DPlot::ImPlot3DPlot() */ void __thiscall ImPlot3DPlot::ImPlot3DPlot(ImPlot3DPlot *this) { ImPlot3DAxis *local_d0; int8 local_b4; int4 local_ac; ImPlot3DAxis local_a8 [112]; int local_38; int8 local_34; int8 local_2c; int8 local_24; int8 uStack_1c; ImPlot3DPlot *local_8; local_8 = this; ImGuiTextBuffer::ImGuiTextBuffer((ImGuiTextBuffer *)(this + 0x10)); /* try { // try from 001dbe53 to 001dbe97 has its CatchHandler @ 001dc03e */ ImRect::ImRect((ImRect *)(this + 0x24)); ImRect::ImRect((ImRect *)(this + 0x34)); ImRect::ImRect((ImRect *)(this + 0x44)); ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)(this + 0x54)); ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)(this + 100)); local_d0 = (ImPlot3DAxis *)(this + 0x78); do { /* try { // try from 001dbebc to 001dbeca has its CatchHandler @ 001dc057 */ ImPlot3DAxis::ImPlot3DAxis(local_d0); local_d0 = local_d0 + 0x70; } while (local_d0 != (ImPlot3DAxis *)(this + 0x1c8)); /* try { // try from 001dbef1 to 001dbf20 has its CatchHandler @ 001dc0a9 */ ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)(this + 0x1c8)); ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)(this + 0x1d8)); ImPlot3DItemGroup::ImPlot3DItemGroup((ImPlot3DItemGroup *)(this + 0x1f8)); /* try { // try from 001dbf34 to 001dbf38 has its CatchHandler @ 001dc0c2 */ ImDrawList3D::ImDrawList3D((ImDrawList3D *)(this + 0x278)); *(int4 *)(this + 4) = 0; *(int4 *)(this + 8) = 0; this[0x20] = (ImPlot3DPlot)0x1; this[0x21] = (ImPlot3DPlot)0x0; /* try { // try from 001dbf56 to 001dbffc has its CatchHandler @ 001dc0db */ ImPlot3DQuat::ImPlot3DQuat ((ImPlot3DQuat *)&local_24,DAT_006d1a40,DAT_006d1a44,DAT_006d1a48,DAT_006d1a4c); *(int8 *)(this + 0x54) = local_24; *(int8 *)(this + 0x5c) = uStack_1c; ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)&local_34,0.0,0.0,0.0,DAT_006cc014); *(int8 *)(this + 100) = local_34; *(int8 *)(this + 0x6c) = local_2c; *(int4 *)(this + 0x74) = 0; for (local_38 = 0; local_38 < 3; local_38 = local_38 + 1) { ImPlot3DAxis::ImPlot3DAxis(local_a8); /* try { // try from 001dc015 to 001dc01e has its CatchHandler @ 001dc0f4 */ ImPlot3DAxis::operator=((ImPlot3DAxis *)(this + (long)local_38 * 0x70 + 0x78),local_a8); ImPlot3DAxis::~ImPlot3DAxis(local_a8); } /* try { // try from 001dc117 to 001dc12e has its CatchHandler @ 001dc0db */ ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)&local_b4,DAT_006cc014,DAT_006cc014,DAT_006cc014); *(int8 *)(this + 0x1c8) = local_b4; *(int4 *)(this + 0x1d0) = local_ac; *(int4 *)(this + 0x1d4) = 0; *(int8 *)(this + 0x1d8) = *(int8 *)(this + 100); *(int8 *)(this + 0x1e0) = *(int8 *)(this + 0x6c); this[0x1e8] = (ImPlot3DPlot)0x0; this[0x1ea] = (ImPlot3DPlot)0x0; this[0x1e9] = (ImPlot3DPlot)0x0; *(int4 *)(this + 0x1ec) = 0xffffffff; *(int4 *)(this + 0x1f0) = 0xffffffff; this[500] = (ImPlot3DPlot)0x1; *(int8 *)(this + 0x270) = 0; this[0x2d8] = (ImPlot3DPlot)0x0; this[0x2d9] = (ImPlot3DPlot)0x0; return; }
29,629
query_int_variable
eloqsql/libmariadb/unittest/libmariadb/my_test.h
my_bool query_int_variable(MYSQL *con, const char *var_name, int *var_value) { MYSQL_RES *rs; MYSQL_ROW row; char query_buffer[MAX_TEST_QUERY_LENGTH]; my_bool is_null; sprintf(query_buffer, "SELECT %s", (const char *) var_name); FAIL_IF(mysql_query(con, query_buffer), "Query failed"); FAIL_UNLESS(rs= mysql_store_result(con), "Invaliid result set"); FAIL_UNLESS(row= mysql_fetch_row(rs), "Nothing to fetch"); is_null= row[0] == NULL; if (!is_null) *var_value= atoi(row[0]); mysql_free_result(rs); return is_null; }
O3
c
query_int_variable: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x138, %rsp # imm = 0x138 movq %rdx, %rbx movq %rsi, %r8 movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x20(%rbp) leaq 0x224fd(%rip), %rcx # 0x36247 leaq -0x150(%rbp), %r15 movl $0x12c, %edx # imm = 0x12C movq %r15, %rdi movl $0x1, %esi xorl %eax, %eax callq 0x132a0 movq %r14, %rdi movq %r15, %rsi callq 0x1d045 testl %eax, %eax je 0x13dbc leaq 0x22325(%rip), %rdi # 0x360a0 leaq 0x224cf(%rip), %rsi # 0x36251 leaq 0x2233f(%rip), %rdx # 0x360c8 movl $0x1a2, %ecx # imm = 0x1A2 xorl %eax, %eax callq 0x16f1f movb $0x1, %r14b movq %fs:0x28, %rax cmpq -0x20(%rbp), %rax jne 0x13e34 movl %r14d, %eax addq $0x138, %rsp # imm = 0x138 popq %rbx popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi callq 0x1df3d testq %rax, %rax je 0x13df6 movq %rax, %r15 movq %rax, %rdi callq 0x1e140 testq %rax, %rax je 0x13e15 movq (%rax), %rdi testq %rdi, %rdi sete %r14b je 0x13dec callq 0x136f0 movl %eax, (%rbx) movq %r15, %rdi callq 0x18cf2 jmp 0x13d98 leaq 0x222a3(%rip), %rdi # 0x360a0 leaq 0x2245a(%rip), %rsi # 0x3625e leaq 0x222bd(%rip), %rdx # 0x360c8 movl $0x1a3, %ecx # imm = 0x1A3 jmp 0x13d8e leaq 0x22284(%rip), %rdi # 0x360a0 leaq 0x2244f(%rip), %rsi # 0x36272 leaq 0x2229e(%rip), %rdx # 0x360c8 movl $0x1a4, %ecx # imm = 0x1A4 jmp 0x13d8e callq 0x13500
query_int_variable: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 138h mov rbx, rdx mov r8, rsi mov r14, rdi mov rax, fs:28h mov [rbp+var_20], rax lea rcx, aSelectS; "SELECT %s" lea r15, [rbp+var_150] mov edx, 12Ch mov rdi, r15 mov esi, 1 xor eax, eax call ___sprintf_chk mov rdi, r14 mov rsi, r15 call mysql_query test eax, eax jz short loc_13DBC lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aQueryFailed; "Query failed" lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 1A2h loc_13D8E: xor eax, eax call diag mov r14b, 1 loc_13D98: mov rax, fs:28h cmp rax, [rbp+var_20] jnz loc_13E34 mov eax, r14d add rsp, 138h pop rbx pop r14 pop r15 pop rbp retn loc_13DBC: mov rdi, r14 call mysql_store_result test rax, rax jz short loc_13DF6 mov r15, rax mov rdi, rax call mysql_fetch_row test rax, rax jz short loc_13E15 mov rdi, [rax] test rdi, rdi setz r14b jz short loc_13DEC call _atoi mov [rbx], eax loc_13DEC: mov rdi, r15 call mysql_free_result jmp short loc_13D98 loc_13DF6: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aInvaliidResult; "Invaliid result set" lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 1A3h jmp loc_13D8E loc_13E15: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aNothingToFetch; "Nothing to fetch" lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 1A4h jmp loc_13D8E loc_13E34: call ___stack_chk_fail
long long query_int_variable(long long a1, const char *a2, _DWORD *a3) { unsigned int v4; // r14d int v5; // r8d int v6; // r9d const char *v7; // rsi int v8; // ecx long long v10; // rax long long v11; // r15 _QWORD *row; // rax _BYTE v13[304]; // [rsp+0h] [rbp-150h] BYREF unsigned long long v14; // [rsp+130h] [rbp-20h] v4 = a1; v14 = __readfsqword(0x28u); __sprintf_chk(v13, 1LL, 300LL, "SELECT %s", a2); if ( (unsigned int)mysql_query(a1, v13) ) { v7 = "Query failed"; v8 = 418; LABEL_3: diag( (unsigned int)"Error: %s (%s: %d)", (_DWORD)v7, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", v8, v5, v6); LOBYTE(v4) = 1; return v4; } v10 = mysql_store_result(a1); if ( !v10 ) { v7 = "Invaliid result set"; v8 = 419; goto LABEL_3; } v11 = v10; row = (_QWORD *)mysql_fetch_row(v10); if ( !row ) { v7 = "Nothing to fetch"; v8 = 420; goto LABEL_3; } LOBYTE(v4) = *row == 0LL; if ( *row ) *a3 = atoi(); mysql_free_result(v11); return v4; }
query_int_variable: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x138 MOV RBX,RDX MOV R8,RSI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX LEA RCX,[0x136247] LEA R15,[RBP + -0x150] MOV EDX,0x12c MOV RDI,R15 MOV ESI,0x1 XOR EAX,EAX CALL 0x001132a0 MOV RDI,R14 MOV RSI,R15 CALL 0x0011d045 TEST EAX,EAX JZ 0x00113dbc LEA RDI,[0x1360a0] LEA RSI,[0x136251] LEA RDX,[0x1360c8] MOV ECX,0x1a2 LAB_00113d8e: XOR EAX,EAX CALL 0x00116f1f MOV R14B,0x1 LAB_00113d98: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x00113e34 MOV EAX,R14D ADD RSP,0x138 POP RBX POP R14 POP R15 POP RBP RET LAB_00113dbc: MOV RDI,R14 CALL 0x0011df3d TEST RAX,RAX JZ 0x00113df6 MOV R15,RAX MOV RDI,RAX CALL 0x0011e140 TEST RAX,RAX JZ 0x00113e15 MOV RDI,qword ptr [RAX] TEST RDI,RDI SETZ R14B JZ 0x00113dec CALL 0x001136f0 MOV dword ptr [RBX],EAX LAB_00113dec: MOV RDI,R15 CALL 0x00118cf2 JMP 0x00113d98 LAB_00113df6: LEA RDI,[0x1360a0] LEA RSI,[0x13625e] LEA RDX,[0x1360c8] MOV ECX,0x1a3 JMP 0x00113d8e LAB_00113e15: LEA RDI,[0x1360a0] LEA RSI,[0x136272] LEA RDX,[0x1360c8] MOV ECX,0x1a4 JMP 0x00113d8e LAB_00113e34: CALL 0x00113500
ulong query_int_variable(int8 param_1,int8 param_2,int *param_3) { int iVar1; long lVar2; int8 *puVar3; int8 uVar4; char *pcVar5; int7 uVar7; ulong uVar6; long in_FS_OFFSET; int1 local_158 [304]; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); __sprintf_chk(local_158,1,300,"SELECT %s",param_2); iVar1 = mysql_query(param_1,local_158); uVar7 = (int7)((ulong)param_1 >> 8); if (iVar1 == 0) { lVar2 = mysql_store_result(param_1); if (lVar2 == 0) { pcVar5 = "Invaliid result set"; uVar4 = 0x1a3; } else { puVar3 = (int8 *)mysql_fetch_row(lVar2); if (puVar3 != (int8 *)0x0) { pcVar5 = (char *)*puVar3; uVar6 = CONCAT71(uVar7,pcVar5 == (char *)0x0); if (pcVar5 != (char *)0x0) { iVar1 = atoi(pcVar5); *param_3 = iVar1; } mysql_free_result(lVar2); goto LAB_00113d98; } pcVar5 = "Nothing to fetch"; uVar4 = 0x1a4; } } else { pcVar5 = "Query failed"; uVar4 = 0x1a2; } diag("Error: %s (%s: %d)",pcVar5, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",uVar4); uVar6 = CONCAT71(uVar7,1); LAB_00113d98: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar6 & 0xffffffff; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
29,630
YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test()
yoga-mod/tests/YGBaselineFuncTest.cpp
TEST(YogaTest, align_baseline_customer_func) { YGNodeRef root = YGNodeNew(); YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow); YGNodeStyleSetAlignItems(root, YGAlignBaseline); YGNodeStyleSetWidth(root, 100); YGNodeStyleSetHeight(root, 100); YGNodeRef root_child0 = YGNodeNew(); YGNodeStyleSetWidth(root_child0, 50); YGNodeStyleSetHeight(root_child0, 50); YGNodeInsertChild(root, root_child0, 0); YGNodeRef root_child1 = YGNodeNew(); YGNodeStyleSetWidth(root_child1, 50); YGNodeStyleSetHeight(root_child1, 20); YGNodeInsertChild(root, root_child1, 1); float baselineValue = 10; YGNodeRef root_child1_child0 = YGNodeNew(); YGNodeSetContext(root_child1_child0, &baselineValue); YGNodeStyleSetWidth(root_child1_child0, 50); YGNodeSetBaselineFunc(root_child1_child0, _baseline); YGNodeStyleSetHeight(root_child1_child0, 20); YGNodeInsertChild(root_child1, root_child1_child0, 0); YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetWidth(root)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetLeft(root_child1)); ASSERT_FLOAT_EQ(40, YGNodeLayoutGetTop(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1)); ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child1)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child1_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1_child0)); ASSERT_FLOAT_EQ(20, YGNodeLayoutGetHeight(root_child1_child0)); }
O0
cpp
YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xe2ac0 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x354d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
_ZN42YogaTest_align_baseline_customer_func_TestD0Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN42YogaTest_align_baseline_customer_func_TestD2Ev; YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test() mov rdi, [rbp+var_10]; void * mov esi, 10h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) add rsp, 10h pop rbp retn
void YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test( YogaTest_align_baseline_customer_func_Test *this) { YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test(this); operator delete(this, 0x10uLL); }
~YogaTest_align_baseline_customer_func_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI CALL 0x001e2ac0 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x10 CALL 0x001354d0 ADD RSP,0x10 POP RBP RET
/* YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test() */ void __thiscall YogaTest_align_baseline_customer_func_Test::~YogaTest_align_baseline_customer_func_Test (YogaTest_align_baseline_customer_func_Test *this) { ~YogaTest_align_baseline_customer_func_Test(this); operator_delete(this,0x10); return; }
29,631
js_regexp_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue pattern, flags; StringBuffer b_s, *b = &b_s; if (!JS_IsObject(this_val)) return JS_ThrowTypeErrorNotAnObject(ctx); string_buffer_init(ctx, b, 0); string_buffer_putc8(b, '/'); pattern = JS_GetProperty(ctx, this_val, JS_ATOM_source); if (string_buffer_concat_value_free(b, pattern)) goto fail; string_buffer_putc8(b, '/'); flags = JS_GetProperty(ctx, this_val, JS_ATOM_flags); if (string_buffer_concat_value_free(b, flags)) goto fail; return string_buffer_end(b); fail: string_buffer_free(b); return JS_EXCEPTION; }
O2
c
js_regexp_toString: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rdi, %r14 cmpl $-0x1, %ebx jne 0x42bfc movq %rsi, %r15 leaq 0x8(%rsp), %r12 movq %r14, %rdi movq %r12, %rsi xorl %edx, %edx callq 0x31bf2 pushq $0x2f popq %rsi movq %r12, %rdi callq 0x44fd5 pushq $0x6d popq %rcx movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x1ebf3 movq %r12, %rdi movq %rax, %rsi callq 0x45026 testl %eax, %eax jne 0x42bf0 leaq 0x8(%rsp), %r12 pushq $0x2f popq %rsi movq %r12, %rdi callq 0x44fd5 pushq $0x6e popq %rcx movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x1ebf3 movq %r12, %rdi movq %rax, %rsi callq 0x45026 testl %eax, %eax je 0x42c1a leaq 0x8(%rsp), %rdi callq 0x32ab1 jmp 0x42c04 movq %r14, %rdi callq 0x21191 pushq $0x6 popq %rdx xorl %eax, %eax xorl %ecx, %ecx orq %rcx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq leaq 0x8(%rsp), %rdi callq 0x30684 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %eax jmp 0x42c0b
js_regexp_toString: push r15 push r14 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r14, rdi cmp ebx, 0FFFFFFFFh jnz short loc_42BFC mov r15, rsi lea r12, [rsp+48h+var_40] mov rdi, r14 mov rsi, r12 xor edx, edx call string_buffer_init push 2Fh ; '/' pop rsi mov rdi, r12 call string_buffer_putc8 push 6Dh ; 'm' pop rcx mov rdi, r14 mov rsi, r15 mov rdx, rbx call JS_GetProperty mov rdi, r12 mov rsi, rax call string_buffer_concat_value_free test eax, eax jnz short loc_42BF0 lea r12, [rsp+48h+var_40] push 2Fh ; '/' pop rsi mov rdi, r12 call string_buffer_putc8 push 6Eh ; 'n' pop rcx mov rdi, r14 mov rsi, r15 mov rdx, rbx call JS_GetProperty mov rdi, r12 mov rsi, rax call string_buffer_concat_value_free test eax, eax jz short loc_42C1A loc_42BF0: lea rdi, [rsp+48h+var_40] call string_buffer_free jmp short loc_42C04 loc_42BFC: mov rdi, r14 call JS_ThrowTypeErrorNotAnObject loc_42C04: push 6 pop rdx xor eax, eax xor ecx, ecx loc_42C0B: or rax, rcx add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn loc_42C1A: lea rdi, [rsp+48h+var_40] call string_buffer_end mov rcx, 0FFFFFFFF00000000h and rcx, rax mov eax, eax jmp short loc_42C0B
unsigned long long js_regexp_toString( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long Property; // rax long long v15; // rdx long long v16; // rax long long v17; // rdx long long v18; // rax unsigned long long v19; // rcx char v21; // [rsp+0h] [rbp-48h] long long v22[8]; // [rsp+8h] [rbp-40h] BYREF if ( (_DWORD)a3 == -1 ) { string_buffer_init(a1, (long long)v22, 0); string_buffer_putc8(v22, 47LL); Property = JS_GetProperty(a1, a2, -1, 109); if ( !(unsigned int)string_buffer_concat_value_free(v22, Property, v15) ) { string_buffer_putc8(v22, 47LL); v16 = JS_GetProperty(a1, a2, -1, 110); if ( !(unsigned int)string_buffer_concat_value_free(v22, v16, v17) ) { v18 = string_buffer_end(v22); v19 = v18 & 0xFFFFFFFF00000000LL; v18 = (unsigned int)v18; return v19 | v18; } } string_buffer_free(v22); } else { JS_ThrowTypeErrorNotAnObject(a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6, v21); } v18 = 0LL; v19 = 0LL; return v19 | v18; }
js_regexp_toString: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R14,RDI CMP EBX,-0x1 JNZ 0x00142bfc MOV R15,RSI LEA R12,[RSP + 0x8] MOV RDI,R14 MOV RSI,R12 XOR EDX,EDX CALL 0x00131bf2 PUSH 0x2f POP RSI MOV RDI,R12 CALL 0x00144fd5 PUSH 0x6d POP RCX MOV RDI,R14 MOV RSI,R15 MOV RDX,RBX CALL 0x0011ebf3 MOV RDI,R12 MOV RSI,RAX CALL 0x00145026 TEST EAX,EAX JNZ 0x00142bf0 LEA R12,[RSP + 0x8] PUSH 0x2f POP RSI MOV RDI,R12 CALL 0x00144fd5 PUSH 0x6e POP RCX MOV RDI,R14 MOV RSI,R15 MOV RDX,RBX CALL 0x0011ebf3 MOV RDI,R12 MOV RSI,RAX CALL 0x00145026 TEST EAX,EAX JZ 0x00142c1a LAB_00142bf0: LEA RDI,[RSP + 0x8] CALL 0x00132ab1 JMP 0x00142c04 LAB_00142bfc: MOV RDI,R14 CALL 0x00121191 LAB_00142c04: PUSH 0x6 POP RDX XOR EAX,EAX XOR ECX,ECX LAB_00142c0b: OR RAX,RCX ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET LAB_00142c1a: LEA RDI,[RSP + 0x8] CALL 0x00130684 MOV RCX,-0x100000000 AND RCX,RAX MOV EAX,EAX JMP 0x00142c0b
ulong js_regexp_toString(int8 param_1,int8 param_2,int8 param_3) { int iVar1; int8 uVar2; ulong uVar3; ulong uVar4; int1 local_40 [32]; if ((int)param_3 == -1) { string_buffer_init(param_1,local_40,0); string_buffer_putc8(local_40,0x2f); uVar2 = JS_GetProperty(param_1,param_2,param_3,0x6d); iVar1 = string_buffer_concat_value_free(local_40,uVar2); if (iVar1 == 0) { string_buffer_putc8(local_40,0x2f); uVar2 = JS_GetProperty(param_1,param_2,param_3,0x6e); iVar1 = string_buffer_concat_value_free(local_40,uVar2); if (iVar1 == 0) { uVar3 = string_buffer_end(local_40); uVar4 = uVar3 & 0xffffffff00000000; uVar3 = uVar3 & 0xffffffff; goto LAB_00142c0b; } } string_buffer_free(local_40); } else { JS_ThrowTypeErrorNotAnObject(param_1); } uVar3 = 0; uVar4 = 0; LAB_00142c0b: return uVar3 | uVar4; }
29,632
js_regexp_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue pattern, flags; StringBuffer b_s, *b = &b_s; if (!JS_IsObject(this_val)) return JS_ThrowTypeErrorNotAnObject(ctx); string_buffer_init(ctx, b, 0); string_buffer_putc8(b, '/'); pattern = JS_GetProperty(ctx, this_val, JS_ATOM_source); if (string_buffer_concat_value_free(b, pattern)) goto fail; string_buffer_putc8(b, '/'); flags = JS_GetProperty(ctx, this_val, JS_ATOM_flags); if (string_buffer_concat_value_free(b, flags)) goto fail; return string_buffer_end(b); fail: string_buffer_free(b); return JS_EXCEPTION; }
O3
c
js_regexp_toString: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rdi, %r14 cmpl $-0x1, %ebx jne 0x4edf0 movq %rsi, %r15 movq %r14, 0x8(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rsp) movq %r14, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x252ce movq %rax, 0x10(%rsp) testq %rax, %rax je 0x4ee37 leaq 0x8(%rsp), %r12 movq %r12, %rdi movl $0x2f, %esi callq 0x517d8 movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx movl $0x6d, %ecx movq %r15, %r8 movq %rbx, %r9 pushq $0x0 pushq $0x0 callq 0x27857 addq $0x10, %rsp movq %r12, %rdi movq %rax, %rsi callq 0x5182d testl %eax, %eax jne 0x4edd8 leaq 0x8(%rsp), %r12 movq %r12, %rdi movl $0x2f, %esi callq 0x517d8 movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx movl $0x6e, %ecx movq %r15, %r8 movq %rbx, %r9 pushq $0x0 pushq $0x0 callq 0x27857 addq $0x10, %rsp movq %r12, %rdi movq %rax, %rsi callq 0x5182d testl %eax, %eax je 0x4ee1c movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x2148d movl $0x6, %edx xorl %ebx, %ebx jmp 0x4ee08 leaq 0x57436(%rip), %rsi # 0xa622d xorl %ebx, %ebx movq %r14, %rdi xorl %eax, %eax callq 0x26d97 movl $0x6, %edx xorl %ecx, %ecx orq %rcx, %rbx movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq leaq 0x8(%rsp), %rdi callq 0x382bd movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %ebx jmp 0x4ee0a movl $0x0, 0x1c(%rsp) movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF jmp 0x4ed54
js_regexp_toString: push r15 push r14 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r14, rdi cmp ebx, 0FFFFFFFFh jnz loc_4EDF0 mov r15, rsi mov [rsp+48h+var_40], r14 xorps xmm0, xmm0 movups [rsp+48h+var_30], xmm0 mov rdi, r14 xor esi, esi xor edx, edx call js_alloc_string mov [rsp+48h+var_38], rax test rax, rax jz loc_4EE37 loc_4ED54: lea r12, [rsp+48h+var_40] mov rdi, r12 mov esi, 2Fh ; '/' call string_buffer_putc8 mov rdi, r14 mov rsi, r15 mov rdx, rbx mov ecx, 6Dh ; 'm' mov r8, r15 mov r9, rbx push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov rdi, r12 mov rsi, rax call string_buffer_concat_value_free test eax, eax jnz short loc_4EDD8 lea r12, [rsp+48h+var_40] mov rdi, r12 mov esi, 2Fh ; '/' call string_buffer_putc8 mov rdi, r14 mov rsi, r15 mov rdx, rbx mov ecx, 6Eh ; 'n' mov r8, r15 mov r9, rbx push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov rdi, r12 mov rsi, rax call string_buffer_concat_value_free test eax, eax jz short loc_4EE1C loc_4EDD8: mov rdi, [rsp+48h+var_40] mov rsi, [rsp+48h+var_38] call js_free mov edx, 6 xor ebx, ebx jmp short loc_4EE08 loc_4EDF0: lea rsi, aOperandPrototy+20h; "not an object" xor ebx, ebx mov rdi, r14 xor eax, eax call JS_ThrowTypeError mov edx, 6 loc_4EE08: xor ecx, ecx loc_4EE0A: or rbx, rcx mov rax, rbx add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn loc_4EE1C: lea rdi, [rsp+48h+var_40] call string_buffer_end mov rcx, 0FFFFFFFF00000000h and rcx, rax mov ebx, eax jmp short loc_4EE0A loc_4EE37: mov dword ptr [rsp+48h+var_30+4], 0 mov dword ptr [rsp+48h+var_30+0Ch], 0FFFFFFFFh jmp loc_4ED54
unsigned long long js_regexp_toString( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { unsigned long long PropertyInternal2; // rax long long v16; // rdx unsigned long long v17; // rax long long v18; // rdx long long v19; // rbx unsigned long long v20; // rcx long long v22; // rax char v23; // [rsp+0h] [rbp-48h] long long v24; // [rsp+8h] [rbp-40h] BYREF long long v25; // [rsp+10h] [rbp-38h] __int128 v26; // [rsp+18h] [rbp-30h] if ( (_DWORD)a3 == -1 ) { v24 = a1; v26 = 0LL; v25 = js_alloc_string(a1, 0LL, 0); if ( !v25 ) { DWORD1(v26) = 0; HIDWORD(v26) = -1; } string_buffer_putc8(&v24, 47LL); PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, 0x6Du, a2, a3, 0LL, 0); if ( !(unsigned int)string_buffer_concat_value_free(&v24, PropertyInternal2, v16) ) { string_buffer_putc8(&v24, 47LL); v17 = JS_GetPropertyInternal2(a1, a2, a3, 0x6Eu, a2, a3, 0LL, 0); if ( !(unsigned int)string_buffer_concat_value_free(&v24, v17, v18) ) { v22 = string_buffer_end(&v24); v20 = v22 & 0xFFFFFFFF00000000LL; v19 = (unsigned int)v22; return v20 | v19; } } js_free(v24, v25); v19 = 0LL; } else { v19 = 0LL; JS_ThrowTypeError(a1, (long long)"not an object", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v23); } v20 = 0LL; return v20 | v19; }
js_regexp_toString: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R14,RDI CMP EBX,-0x1 JNZ 0x0014edf0 MOV R15,RSI MOV qword ptr [RSP + 0x8],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x18],XMM0 MOV RDI,R14 XOR ESI,ESI XOR EDX,EDX CALL 0x001252ce MOV qword ptr [RSP + 0x10],RAX TEST RAX,RAX JZ 0x0014ee37 LAB_0014ed54: LEA R12,[RSP + 0x8] MOV RDI,R12 MOV ESI,0x2f CALL 0x001517d8 MOV RDI,R14 MOV RSI,R15 MOV RDX,RBX MOV ECX,0x6d MOV R8,R15 MOV R9,RBX PUSH 0x0 PUSH 0x0 CALL 0x00127857 ADD RSP,0x10 MOV RDI,R12 MOV RSI,RAX CALL 0x0015182d TEST EAX,EAX JNZ 0x0014edd8 LEA R12,[RSP + 0x8] MOV RDI,R12 MOV ESI,0x2f CALL 0x001517d8 MOV RDI,R14 MOV RSI,R15 MOV RDX,RBX MOV ECX,0x6e MOV R8,R15 MOV R9,RBX PUSH 0x0 PUSH 0x0 CALL 0x00127857 ADD RSP,0x10 MOV RDI,R12 MOV RSI,RAX CALL 0x0015182d TEST EAX,EAX JZ 0x0014ee1c LAB_0014edd8: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x10] CALL 0x0012148d MOV EDX,0x6 XOR EBX,EBX JMP 0x0014ee08 LAB_0014edf0: LEA RSI,[0x1a622d] XOR EBX,EBX MOV RDI,R14 XOR EAX,EAX CALL 0x00126d97 MOV EDX,0x6 LAB_0014ee08: XOR ECX,ECX LAB_0014ee0a: OR RBX,RCX MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET LAB_0014ee1c: LEA RDI,[RSP + 0x8] CALL 0x001382bd MOV RCX,-0x100000000 AND RCX,RAX MOV EBX,EAX JMP 0x0014ee0a LAB_0014ee37: MOV dword ptr [RSP + 0x1c],0x0 MOV dword ptr [RSP + 0x24],0xffffffff JMP 0x0014ed54
ulong js_regexp_toString(int8 param_1,int8 param_2,int8 param_3) { int iVar1; int8 uVar2; ulong uVar3; ulong uVar4; int8 local_40; long local_38; ulong local_30; int8 uStack_28; if ((int)param_3 == -1) { local_30 = 0; uStack_28 = 0; local_40 = param_1; local_38 = js_alloc_string(param_1,0,0); if (local_38 == 0) { local_30 = local_30 & 0xffffffff; uStack_28 = CONCAT44(0xffffffff,(int4)uStack_28); } string_buffer_putc8(&local_40,0x2f); uVar2 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x6d,param_2,param_3,0,0); iVar1 = string_buffer_concat_value_free(&local_40,uVar2); if (iVar1 == 0) { string_buffer_putc8(&local_40,0x2f); uVar2 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x6e,param_2,param_3,0,0); iVar1 = string_buffer_concat_value_free(&local_40,uVar2); if (iVar1 == 0) { uVar3 = string_buffer_end(&local_40); uVar4 = uVar3 & 0xffffffff00000000; uVar3 = uVar3 & 0xffffffff; goto LAB_0014ee0a; } } js_free(local_40,local_38); } else { JS_ThrowTypeError(param_1,"not an object"); } uVar3 = 0; uVar4 = 0; LAB_0014ee0a: return uVar3 | uVar4; }
29,633
testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(testing::UnitTest const&, int)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
void PrettyUnitTestResultPrinter::OnTestIterationStart( const UnitTest& unit_test, int iteration) { if (GTEST_FLAG_GET(repeat) != 1) printf("\nRepeating all tests (iteration %d) . . .\n\n", iteration + 1); std::string f = GTEST_FLAG_GET(filter); const char* const filter = f.c_str(); // Prints the filter if it's not *. This reminds the user that some // tests may be skipped. if (!String::CStringEquals(filter, kUniversalFilter)) { ColoredPrintf(GTestColor::kYellow, "Note: %s filter = %s\n", GTEST_NAME_, filter); } if (internal::ShouldShard(kTestTotalShards, kTestShardIndex, false)) { const int32_t shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); ColoredPrintf(GTestColor::kYellow, "Note: This is test shard %d of %s.\n", static_cast<int>(shard_index) + 1, internal::posix::GetEnv(kTestTotalShards)); } if (GTEST_FLAG_GET(shuffle)) { ColoredPrintf(GTestColor::kYellow, "Note: Randomizing tests' orders with a seed of %d .\n", unit_test.random_seed()); } ColoredPrintf(GTestColor::kGreen, "[==========] "); printf("Running %s from %s.\n", FormatTestCount(unit_test.test_to_run_count()).c_str(), FormatTestSuiteCount(unit_test.test_suite_to_run_count()).c_str()); fflush(stdout); }
O1
cpp
testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(testing::UnitTest const&, int): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %rsi, %rbx cmpl $0x1, 0x3739e(%rip) # 0x596f8 je 0x2236e incl %edx leaq 0x20e1b(%rip), %rdi # 0x43180 movl %edx, %esi xorl %eax, %eax callq 0x8080 leaq 0x38(%rsp), %r15 movq %r15, -0x10(%r15) movq 0x3732a(%rip), %rsi # 0x596a8 movq 0x3732b(%rip), %rdx # 0x596b0 addq %rsi, %rdx leaq 0x28(%rsp), %r14 movq %r14, %rdi callq 0x39594 movq (%r14), %r14 testq %r14, %r14 je 0x223b0 leaq 0x1ea50(%rip), %rsi # 0x40df4 movq %r14, %rdi callq 0x87a0 testl %eax, %eax je 0x223cd leaq 0x20df5(%rip), %rsi # 0x431ac leaq 0x20e04(%rip), %rdx # 0x431c2 movl $0x3, %edi movq %r14, %rcx xorl %eax, %eax callq 0x22582 leaq 0x1ea2c(%rip), %rdi # 0x40e00 leaq 0x1ea45(%rip), %rsi # 0x40e20 xorl %edx, %edx callq 0x226e6 testb %al, %al je 0x2241f leaq 0x1ea33(%rip), %rdi # 0x40e20 movl $0xffffffff, %esi # imm = 0xFFFFFFFF callq 0x22b79 movl %eax, %ebp incl %ebp leaq 0x1e9fe(%rip), %rdi # 0x40e00 callq 0x8660 leaq 0x20dc0(%rip), %rsi # 0x431ce movl $0x3, %edi movl %ebp, %edx movq %rax, %rcx xorl %eax, %eax callq 0x22582 cmpb $0x1, 0x372d8(%rip) # 0x596fe jne 0x22445 movq 0x40(%rbx), %rax movl 0x28c(%rax), %edx leaq 0x20db9(%rip), %rsi # 0x431f2 movl $0x3, %edi xorl %eax, %eax callq 0x22582 leaq 0x20ddb(%rip), %rsi # 0x43227 movl $0x2, %edi xorl %eax, %eax callq 0x22582 movq 0x40(%rbx), %rdi callq 0x1cc5a leaq 0x1fda6(%rip), %rdx # 0x4220e leaq 0x201ab(%rip), %rcx # 0x4261a leaq 0x8(%rsp), %rdi movl %eax, %esi callq 0x22db0 movq 0x40(%rbx), %rcx movq 0xb8(%rcx), %rax movq 0xc0(%rcx), %rcx xorl %esi, %esi cmpq %rcx, %rax je 0x224a3 movq (%rax), %rdx movzbl 0x70(%rdx), %edx addl %edx, %esi addq $0x8, %rax jmp 0x2248f movq 0x8(%rsp), %rbx leaq 0x21d9d(%rip), %rdx # 0x4424c leaq 0x21da1(%rip), %rcx # 0x44257 leaq 0x48(%rsp), %rdi callq 0x22db0 leaq 0x58(%rsp), %r14 movq -0x10(%r14), %rdx leaq 0x20d65(%rip), %rdi # 0x43235 movq %rbx, %rsi xorl %eax, %eax callq 0x8080 movq -0x10(%r14), %rdi cmpq %r14, %rdi je 0x224f0 movq 0x58(%rsp), %rsi incq %rsi callq 0x84e0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2250b movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x36a6e(%rip), %rax # 0x58f80 movq (%rax), %rdi callq 0x8600 movq 0x28(%rsp), %rdi cmpq %r15, %rdi je 0x22531 movq 0x38(%rsp), %rsi incq %rsi callq 0x84e0 addq $0x68, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x22563 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x22563 jmp 0x22560 jmp 0x22560 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r15, %rdi je 0x2257a movq 0x38(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN7testing8internal27PrettyUnitTestResultPrinter20OnTestIterationStartERKNS_8UnitTestEi: push rbp push r15 push r14 push rbx sub rsp, 68h mov rbx, rsi cmp cs:_ZN7testing18FLAGS_gtest_repeatE, 1; testing::FLAGS_gtest_repeat jz short loc_2236E inc edx lea rdi, aRepeatingAllTe; "\nRepeating all tests (iteration %d) . "... mov esi, edx xor eax, eax call _printf loc_2236E: lea r15, [rsp+88h+var_50] mov [r15-10h], r15 mov rsi, cs:_ZN7testing18FLAGS_gtest_filterB5cxx11E; testing::FLAGS_gtest_filter mov rdx, cs:qword_596B0 add rdx, rsi lea r14, [rsp+88h+var_60] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov r14, [r14] test r14, r14 jz short loc_223B0 lea rsi, _ZN7testingL16kUniversalFilterE; "*" mov rdi, r14 call _strcmp test eax, eax jz short loc_223CD loc_223B0: lea rsi, aNoteSFilterS; "Note: %s filter = %s\n" lea rdx, aGoogleTest; "Google Test" mov edi, 3 mov rcx, r14 xor eax, eax call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...) loc_223CD: lea rdi, _ZN7testingL16kTestTotalShardsE; "GTEST_TOTAL_SHARDS" lea rsi, _ZN7testingL15kTestShardIndexE; "GTEST_SHARD_INDEX" xor edx, edx; char * call _ZN7testing8internal11ShouldShardEPKcS2_b; testing::internal::ShouldShard(char const*,char const*,bool) test al, al jz short loc_2241F lea rdi, _ZN7testingL15kTestShardIndexE; "GTEST_SHARD_INDEX" mov esi, 0FFFFFFFFh; char * call _ZN7testing8internal17Int32FromEnvOrDieEPKci; testing::internal::Int32FromEnvOrDie(char const*,int) mov ebp, eax inc ebp lea rdi, _ZN7testingL16kTestTotalShardsE; "GTEST_TOTAL_SHARDS" call _getenv lea rsi, aNoteThisIsTest; "Note: This is test shard %d of %s.\n" mov edi, 3 mov edx, ebp mov rcx, rax xor eax, eax call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...) loc_2241F: cmp cs:_ZN7testing19FLAGS_gtest_shuffleE, 1; testing::FLAGS_gtest_shuffle jnz short loc_22445 mov rax, [rbx+40h] mov edx, [rax+28Ch] lea rsi, aNoteRandomizin; "Note: Randomizing tests' orders with a "... mov edi, 3 xor eax, eax call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...) loc_22445: lea rsi, asc_43227; "[==========] " mov edi, 2 xor eax, eax call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...) mov rdi, [rbx+40h]; this call _ZNK7testing8internal12UnitTestImpl17test_to_run_countEv; testing::internal::UnitTestImpl::test_to_run_count(void) lea rdx, aDeathtestPasse+36h; int lea rcx, aAlsoRunDisable+12h; int lea rdi, [rsp+88h+var_80]; int mov esi, eax; int call _ZN7testingL19FormatCountableNounB5cxx11EiPKcS1_; testing::FormatCountableNoun(int,char const*,char const*) mov rcx, [rbx+40h] mov rax, [rcx+0B8h] mov rcx, [rcx+0C0h] xor esi, esi; int loc_2248F: cmp rax, rcx jz short loc_224A3 mov rdx, [rax] movzx edx, byte ptr [rdx+70h] add esi, edx add rax, 8 jmp short loc_2248F loc_224A3: mov rbx, qword ptr [rsp+88h+var_80] lea rdx, aTestSuite; "test suite" lea rcx, aTestSuites; "test suites" lea rdi, [rsp+88h+var_40]; int call _ZN7testingL19FormatCountableNounB5cxx11EiPKcS1_; testing::FormatCountableNoun(int,char const*,char const*) lea r14, [rsp+88h+var_30] mov rdx, [r14-10h] lea rdi, aRunningSFromS; "Running %s from %s.\n" mov rsi, rbx xor eax, eax call _printf mov rdi, [r14-10h]; void * cmp rdi, r14 jz short loc_224F0 mov rsi, [rsp+88h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_224F0: lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2250B mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2250B: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rdi, [rsp+88h+var_60]; void * cmp rdi, r15 jz short loc_22531 mov rsi, [rsp+88h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_22531: add rsp, 68h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_22563 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_22563 jmp short loc_22560 jmp short $+2 loc_22560: mov rbx, rax loc_22563: mov rdi, [rsp+arg_20]; void * cmp rdi, r15 jz short loc_2257A mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2257A: mov rdi, rbx call __Unwind_Resume
void testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart( testing::internal::PrettyUnitTestResultPrinter *this, const testing::UnitTest *a2, int a3) { int v3; // r8d int v4; // r9d int v5; // r14d bool v6; // cl int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d int v11; // ebp int v12; // eax int v13; // r8d int v14; // r9d int v15; // eax int v16; // r8d int v17; // r9d int v18; // r8d int v19; // r9d long long v20; // rcx long long v21; // rax long long v22; // rcx int v23; // esi const char *v24; // rbx void *v25; // [rsp+0h] [rbp-88h] void *v26; // [rsp+0h] [rbp-88h] int v27[2]; // [rsp+8h] [rbp-80h] BYREF long long v28; // [rsp+10h] [rbp-78h] long long v29; // [rsp+18h] [rbp-70h] BYREF int v30; // [rsp+20h] [rbp-68h] void *v31; // [rsp+28h] [rbp-60h] BYREF long long v32; // [rsp+30h] [rbp-58h] _QWORD v33[2]; // [rsp+38h] [rbp-50h] BYREF char *v34; // [rsp+48h] [rbp-40h] BYREF long long v35; // [rsp+58h] [rbp-30h] BYREF if ( testing::FLAGS_gtest_repeat != 1 ) printf("\nRepeating all tests (iteration %d) . . .\n\n", a3 + 1); v31 = v33; std::string::_M_construct<char *>( &v31, *(_QWORD *)&testing::FLAGS_gtest_filter[abi:cxx11], *(_QWORD *)&testing::FLAGS_gtest_filter[abi:cxx11] + qword_596B0); v5 = (int)v31; if ( !v31 || (unsigned int)strcmp(v31, "*") ) testing::internal::ColoredPrintf(3, (unsigned int)"Note: %s filter = %s\n", (unsigned int)"Google Test", v5, v3, v4); if ( (unsigned __int8)testing::internal::ShouldShard( (testing::internal *)"GTEST_TOTAL_SHARDS", "GTEST_SHARD_INDEX", 0LL, v6) ) { v11 = testing::internal::Int32FromEnvOrDie((testing::internal *)"GTEST_SHARD_INDEX", (const char *)0xFFFFFFFFLL, v7) + 1; v12 = getenv("GTEST_TOTAL_SHARDS"); testing::internal::ColoredPrintf(3, (unsigned int)"Note: This is test shard %d of %s.\n", v11, v12, v13, v14); } if ( testing::FLAGS_gtest_shuffle == 1 ) testing::internal::ColoredPrintf( 3, (unsigned int)"Note: Randomizing tests' orders with a seed of %d .\n", *(_DWORD *)(*((_QWORD *)a2 + 8) + 652LL), v8, v9, v10); testing::internal::ColoredPrintf(2, (unsigned int)"[==========] ", v7, v8, v9, v10); v15 = testing::internal::UnitTestImpl::test_to_run_count(*((testing::internal::UnitTestImpl **)a2 + 8)); testing::FormatCountableNoun[abi:cxx11]( (int)v27, v15, (int)"test", (int)"tests", v16, v17, v25, v27[0], v28, v29, v30, (int)v31, v32); v20 = *((_QWORD *)a2 + 8); v21 = *(_QWORD *)(v20 + 184); v22 = *(_QWORD *)(v20 + 192); v23 = 0; while ( v21 != v22 ) { v23 += *(unsigned __int8 *)(*(_QWORD *)v21 + 112LL); v21 += 8LL; } v24 = *(const char **)v27; testing::FormatCountableNoun[abi:cxx11]( (int)&v34, v23, (int)"test suite", (int)"test suites", v18, v19, v26, v27[0], v28, v29, v30, (int)v31, v32); printf("Running %s from %s.\n", v24, v34); if ( v34 != (char *)&v35 ) operator delete(v34, v35 + 1); if ( *(long long **)v27 != &v29 ) operator delete(*(void **)v27, v29 + 1); fflush(stdout); if ( v31 != v33 ) operator delete(v31, v33[0] + 1LL); }
OnTestIterationStart: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x68 MOV RBX,RSI CMP dword ptr [0x001596f8],0x1 JZ 0x0012236e INC EDX LEA RDI,[0x143180] MOV ESI,EDX XOR EAX,EAX CALL 0x00108080 LAB_0012236e: LEA R15,[RSP + 0x38] MOV qword ptr [R15 + -0x10],R15 MOV RSI,qword ptr [0x001596a8] MOV RDX,qword ptr [0x001596b0] ADD RDX,RSI LEA R14,[RSP + 0x28] MOV RDI,R14 CALL 0x00139594 MOV R14,qword ptr [R14] TEST R14,R14 JZ 0x001223b0 LEA RSI,[0x140df4] MOV RDI,R14 CALL 0x001087a0 TEST EAX,EAX JZ 0x001223cd LAB_001223b0: LEA RSI,[0x1431ac] LEA RDX,[0x1431c2] MOV EDI,0x3 MOV RCX,R14 XOR EAX,EAX CALL 0x00122582 LAB_001223cd: LEA RDI,[0x140e00] LEA RSI,[0x140e20] XOR EDX,EDX CALL 0x001226e6 TEST AL,AL JZ 0x0012241f LAB_001223e6: LEA RDI,[0x140e20] MOV ESI,0xffffffff CALL 0x00122b79 MOV EBP,EAX INC EBP LEA RDI,[0x140e00] CALL 0x00108660 LEA RSI,[0x1431ce] MOV EDI,0x3 MOV EDX,EBP MOV RCX,RAX XOR EAX,EAX CALL 0x00122582 LAB_0012241f: CMP byte ptr [0x001596fe],0x1 JNZ 0x00122445 MOV RAX,qword ptr [RBX + 0x40] MOV EDX,dword ptr [RAX + 0x28c] LAB_00122432: LEA RSI,[0x1431f2] MOV EDI,0x3 XOR EAX,EAX CALL 0x00122582 LAB_00122445: LEA RSI,[0x143227] MOV EDI,0x2 XOR EAX,EAX CALL 0x00122582 MOV RDI,qword ptr [RBX + 0x40] CALL 0x0011cc5a LAB_00122461: LEA RDX,[0x14220e] LEA RCX,[0x14261a] LEA RDI,[RSP + 0x8] MOV ESI,EAX CALL 0x00122db0 MOV RCX,qword ptr [RBX + 0x40] MOV RAX,qword ptr [RCX + 0xb8] MOV RCX,qword ptr [RCX + 0xc0] XOR ESI,ESI LAB_0012248f: CMP RAX,RCX JZ 0x001224a3 MOV RDX,qword ptr [RAX] MOVZX EDX,byte ptr [RDX + 0x70] ADD ESI,EDX ADD RAX,0x8 JMP 0x0012248f LAB_001224a3: MOV RBX,qword ptr [RSP + 0x8] LAB_001224a8: LEA RDX,[0x14424c] LEA RCX,[0x144257] LEA RDI,[RSP + 0x48] CALL 0x00122db0 LAB_001224c0: LEA R14,[RSP + 0x58] MOV RDX,qword ptr [R14 + -0x10] LEA RDI,[0x143235] MOV RSI,RBX XOR EAX,EAX CALL 0x00108080 MOV RDI,qword ptr [R14 + -0x10] CMP RDI,R14 JZ 0x001224f0 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001084e0 LAB_001224f0: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012250b MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_0012250b: MOV RAX,qword ptr [0x00158f80] MOV RDI,qword ptr [RAX] CALL 0x00108600 MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R15 JZ 0x00122531 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001084e0 LAB_00122531: ADD RSP,0x68 POP RBX POP R14 POP R15 POP RBP RET
/* testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(testing::UnitTest const&, int) */ void __thiscall testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart (PrettyUnitTestResultPrinter *this,UnitTest *param_1,int param_2) { long *plVar1; char cVar2; int iVar3; uint uVar4; char *pcVar5; long *plVar6; long *local_80 [2]; long local_70 [2]; long *local_60 [2]; long local_50 [2]; long *local_40 [2]; long local_30 [2]; if (FLAGS_gtest_repeat != 1) { printf("\nRepeating all tests (iteration %d) . . .\n\n",(ulong)(param_2 + 1)); } local_60[0] = local_50; std::__cxx11::string::_M_construct<char*> (local_60,FLAGS_gtest_filter_abi_cxx11_,DAT_001596b0 + FLAGS_gtest_filter_abi_cxx11_); plVar6 = local_60[0]; if (local_60[0] != (long *)0x0) { iVar3 = strcmp((char *)local_60[0],"*"); if (iVar3 == 0) goto LAB_001223cd; } /* try { // try from 001223b0 to 001223e1 has its CatchHandler @ 00122560 */ ColoredPrintf(3,"Note: %s filter = %s\n","Google Test",plVar6); LAB_001223cd: cVar2 = ShouldShard("GTEST_TOTAL_SHARDS","GTEST_SHARD_INDEX",false); if (cVar2 != '\0') { /* try { // try from 001223e6 to 0012241e has its CatchHandler @ 0012255e */ iVar3 = Int32FromEnvOrDie("GTEST_SHARD_INDEX",-1); pcVar5 = getenv("GTEST_TOTAL_SHARDS"); ColoredPrintf(3,"Note: This is test shard %d of %s.\n",iVar3 + 1,pcVar5); } if (FLAGS_gtest_shuffle == '\x01') { /* try { // try from 00122432 to 00122457 has its CatchHandler @ 00122560 */ ColoredPrintf(3,"Note: Randomizing tests\' orders with a seed of %d .\n", *(int4 *)(*(long *)(param_1 + 0x40) + 0x28c)); } ColoredPrintf(2,"[==========] "); uVar4 = UnitTestImpl::test_to_run_count(*(UnitTestImpl **)(param_1 + 0x40)); /* try { // try from 00122461 to 0012247a has its CatchHandler @ 0012255c */ FormatCountableNoun_abi_cxx11_((int)local_80,(char *)(ulong)uVar4,"test"); plVar1 = local_80[0]; pcVar5 = (char *)0x0; for (plVar6 = *(long **)(*(long *)(param_1 + 0x40) + 0xb8); plVar6 != *(long **)(*(long *)(param_1 + 0x40) + 0xc0); plVar6 = plVar6 + 1) { pcVar5 = (char *)(ulong)((int)pcVar5 + (uint)*(byte *)(*plVar6 + 0x70)); } /* try { // try from 001224a8 to 001224bf has its CatchHandler @ 0012253c */ FormatCountableNoun_abi_cxx11_((int)local_40,pcVar5,"test suite"); printf("Running %s from %s.\n",plVar1,local_40[0]); if (local_40[0] != local_30) { operator_delete(local_40[0],local_30[0] + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } fflush(*(FILE **)PTR_stdout_00158f80); if (local_60[0] != local_50) { operator_delete(local_60[0],local_50[0] + 1); } return; }
29,634
mi_rec_check
eloqsql/storage/myisam/mi_dynrec.c
my_bool _mi_rec_check(MI_INFO *info,const uchar *record, uchar *rec_buff, ulong packed_length, my_bool with_checksum) { uint length,new_length,flag,bit,i; uchar *pos,*end,*packpos,*to; enum en_fieldtype type; reg3 MI_COLUMNDEF *rec; DBUG_ENTER("_mi_rec_check"); packpos=rec_buff; to= rec_buff+info->s->base.pack_bits; rec=info->s->rec; flag= *packpos; bit=1; for (i=info->s->base.fields ; i-- > 0; record+= length, rec++) { length=(uint) rec->length; if ((type = (enum en_fieldtype) rec->type) != FIELD_NORMAL) { if (type == FIELD_BLOB) { uint blob_length= _mi_calc_blob_length(length-portable_sizeof_char_ptr,record); if (!blob_length && !(flag & bit)) goto err; if (blob_length) to+=length - portable_sizeof_char_ptr+ blob_length; } else if (type == FIELD_SKIP_ZERO) { if (memcmp((uchar*) record,zero_string,length) == 0) { if (!(flag & bit)) goto err; } else to+=length; } else if (type == FIELD_SKIP_ENDSPACE || type == FIELD_SKIP_PRESPACE) { pos= (uchar*) record; end= (uchar*) record + length; if (type == FIELD_SKIP_ENDSPACE) { /* Pack trailing spaces */ while (end > record && *(end-1) == ' ') end--; } else { /* Pack pre-spaces */ while (pos < end && *pos == ' ') pos++; } new_length=(uint) (end-pos); if (new_length + 1 + MY_TEST(rec->length > 255 && new_length > 127) < length) { if (!(flag & bit)) goto err; if (rec->length > 255 && new_length > 127) { /* purecov: begin inspected */ if (to[0] != (uchar) ((new_length & 127) + 128) || to[1] != (uchar) (new_length >> 7)) goto err; to+=2; /* purecov: end */ } else if (*to++ != (uchar) new_length) goto err; to+=new_length; } else to+=length; } else if (type == FIELD_VARCHAR) { uint pack_length= HA_VARCHAR_PACKLENGTH(rec->length -1); uint tmp_length; if (pack_length == 1) { tmp_length= (uint) *(uchar*) record; to+= 1+ tmp_length; continue; } else { tmp_length= uint2korr(record); to+= get_pack_length(tmp_length)+tmp_length; } continue; } else { to+=length; continue; /* Normal field */ } if ((bit= bit << 1) >= 256) { flag= *++packpos; bit=1; } } else to+= length; } if (packed_length != (uint) (to - rec_buff) + MY_TEST(info->s->calc_checksum) || (bit != 1 && (flag & ~(bit - 1)))) goto err; if (with_checksum && ((uchar) info->checksum != (uchar) *to)) { DBUG_PRINT("error",("wrong checksum for row")); goto err; } DBUG_RETURN(0); err: DBUG_RETURN(1); }
O3
c
mi_rec_check: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, -0x34(%rbp) movq %rcx, -0x60(%rbp) movq %rdi, -0x50(%rbp) movq (%rdi), %rax movl 0x168(%rax), %r14d movl 0x18c(%rax), %r12d addq %rdx, %r12 movzbl (%rdx), %edi testl %r14d, %r14d movq %rax, -0x58(%rbp) je 0x78a98 movq %rsi, %r13 movq 0x230(%rax), %rbx movl $0x1, %r9d movq %rdx, -0x48(%rbp) movq %rdx, -0x40(%rbp) movzwl 0x4(%rbx), %r15d movl (%rbx), %ecx testl %ecx, %ecx je 0x7893d cmpl $0x3, %ecx je 0x788c2 cmpl $0x4, %ecx jne 0x788f2 leal -0x9(%r15), %eax cmpl $0x3, %eax ja 0x78994 leaq 0x68dc1(%rip), %rcx # 0xe1670 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movzbl (%r13), %eax jmp 0x78996 movl %r9d, -0x30(%rbp) movl %edi, -0x2c(%rbp) movq %r13, %rdi leaq 0xb86c5d(%rip), %rsi # 0xbff530 movq %r15, %rdx callq 0x29560 testl %eax, %eax je 0x78945 addq %r15, %r12 movl -0x2c(%rbp), %edi movq -0x40(%rbp), %rdx movl -0x30(%rbp), %r9d jmp 0x78a62 cmpl $0x2, %ecx ja 0x7891e leaq (%r15,%r13), %rax cmpl $0x1, %ecx jne 0x7895e movq %rax, %r8 cmpq %r13, %rax jbe 0x78913 leaq -0x1(%r8), %rax cmpb $0x20, -0x1(%r8) je 0x78900 movq %r13, %rcx movq %r8, %rax jmp 0x789e3 cmpl $0x8, %ecx jne 0x7893d cmpl $0x100, %r15d # imm = 0x100 ja 0x789c1 movzbl (%r13), %eax incq %rax jmp 0x789d8 addq %r15, %r12 jmp 0x78a83 movl -0x2c(%rbp), %edi movl -0x30(%rbp), %r9d testl %r9d, %edi movq -0x40(%rbp), %rdx jne 0x78a62 jmp 0x78ae0 movq %r13, %rcx testl %r15d, %r15d je 0x789e0 cmpb $0x20, (%rcx) jne 0x789e3 incq %rcx cmpq %rax, %rcx jb 0x78966 jmp 0x789e3 movzwl (%r13), %ecx movzbl 0x2(%r13), %eax shll $0x10, %eax orq %rcx, %rax jmp 0x78996 movl (%r13), %eax jmp 0x78996 movzwl (%r13), %eax jmp 0x78996 xorl %eax, %eax movl %r15d, %ecx addl $-0x8, %ecx addl %eax, %ecx testq %rax, %rax cmoveq %rax, %rcx addq %rcx, %r12 testq %rax, %rax jne 0x78a62 movl %edi, %eax andl %r9d, %eax jne 0x78a62 jmp 0x78ae0 movzwl (%r13), %eax xorl %ecx, %ecx cmpq $0xff, %rax setae %cl leaq (%rax,%rcx,2), %rax incq %rax addq %rax, %r12 jmp 0x78a83 movq %r13, %rcx subq %rcx, %rax cmpl $0x100, %r15d # imm = 0x100 setae %r8b cmpl $0x7f, %eax seta %cl andb %r8b, %cl movzbl %cl, %r8d addl %eax, %r8d incl %r8d cmpl %r15d, %r8d jae 0x78a47 testl %r9d, %edi je 0x78ae0 movzbl (%r12), %r8d testb %cl, %cl je 0x78a4c movl %eax, %ecx orl $0x80, %ecx movzbl %cl, %ecx cmpl %r8d, %ecx jne 0x78ae0 movl %eax, %r8d shrl $0x7, %r8d movl $0x2, %ecx cmpb %r8b, 0x1(%r12) je 0x78a5a jmp 0x78ae0 addq %r15, %r12 jmp 0x78a62 movl $0x1, %ecx cmpb %al, %r8b jne 0x78ae0 addq %rcx, %r12 movl %eax, %eax addq %rax, %r12 addl %r9d, %r9d cmpl $0x100, %r9d # imm = 0x100 jb 0x78a83 movq -0x48(%rbp), %rax movzbl 0x1(%rax), %edi incq %rax movq %rax, -0x48(%rbp) movl $0x1, %r9d decl %r14d addq %r15, %r13 addq $0x30, %rbx testl %r14d, %r14d jne 0x78882 jmp 0x78a9e movl $0x1, %r9d movl %r12d, %eax subl %edx, %eax movq -0x58(%rbp), %rcx cmpq $0x1, 0x2c8(%rcx) sbbl $-0x1, %eax cmpq -0x60(%rbp), %rax jne 0x78ae0 cmpl $0x1, %r9d je 0x78ac6 negl %r9d testl %r9d, %edi jne 0x78ae0 cmpb $0x0, -0x34(%rbp) je 0x78adc movb (%r12), %al movq -0x50(%rbp), %rcx cmpb 0x1a8(%rcx), %al jne 0x78ae0 xorl %eax, %eax jmp 0x78ae2 movb $0x1, %al addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_rec_check: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_34], r8d mov [rbp+var_60], rcx mov [rbp+var_50], rdi mov rax, [rdi] mov r14d, [rax+168h] mov r12d, [rax+18Ch] add r12, rdx movzx edi, byte ptr [rdx] test r14d, r14d mov [rbp+var_58], rax jz loc_78A98 mov r13, rsi mov rbx, [rax+230h] mov r9d, 1 mov [rbp+var_48], rdx mov [rbp+var_40], rdx loc_78882: movzx r15d, word ptr [rbx+4] mov ecx, [rbx] test ecx, ecx jz loc_7893D cmp ecx, 3 jz short loc_788C2 cmp ecx, 4 jnz short loc_788F2 lea eax, [r15-9]; switch 4 cases cmp eax, 3 ja def_788B6; jumptable 00000000000788B6 default case lea rcx, jpt_788B6 movsxd rax, ds:(jpt_788B6 - 0E1670h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_788B8: movzx eax, byte ptr [r13+0]; jumptable 00000000000788B6 case 9 jmp loc_78996 loc_788C2: mov [rbp+var_30], r9d mov [rbp+var_2C], edi mov rdi, r13 lea rsi, zero_string mov rdx, r15 call _bcmp test eax, eax jz short loc_78945 add r12, r15 mov edi, [rbp+var_2C] mov rdx, [rbp+var_40] mov r9d, [rbp+var_30] jmp loc_78A62 loc_788F2: cmp ecx, 2 ja short loc_7891E lea rax, [r15+r13] cmp ecx, 1 jnz short loc_7895E loc_78900: mov r8, rax cmp rax, r13 jbe short loc_78913 lea rax, [r8-1] cmp byte ptr [r8-1], 20h ; ' ' jz short loc_78900 loc_78913: mov rcx, r13 mov rax, r8 jmp loc_789E3 loc_7891E: cmp ecx, 8 jnz short loc_7893D cmp r15d, 100h ja loc_789C1 movzx eax, byte ptr [r13+0] inc rax jmp loc_789D8 loc_7893D: add r12, r15 jmp loc_78A83 loc_78945: mov edi, [rbp+var_2C] mov r9d, [rbp+var_30] test edi, r9d mov rdx, [rbp+var_40] jnz loc_78A62 jmp loc_78AE0 loc_7895E: mov rcx, r13 test r15d, r15d jz short loc_789E0 loc_78966: cmp byte ptr [rcx], 20h ; ' ' jnz short loc_789E3 inc rcx cmp rcx, rax jb short loc_78966 jmp short loc_789E3 loc_78975: movzx ecx, word ptr [r13+0]; jumptable 00000000000788B6 case 11 movzx eax, byte ptr [r13+2] shl eax, 10h or rax, rcx jmp short loc_78996 loc_78987: mov eax, [r13+0]; jumptable 00000000000788B6 case 12 jmp short loc_78996 loc_7898D: movzx eax, word ptr [r13+0]; jumptable 00000000000788B6 case 10 jmp short loc_78996 def_788B6: xor eax, eax; jumptable 00000000000788B6 default case loc_78996: mov ecx, r15d add ecx, 0FFFFFFF8h add ecx, eax test rax, rax cmovz rcx, rax add r12, rcx test rax, rax jnz loc_78A62 mov eax, edi and eax, r9d jnz loc_78A62 jmp loc_78AE0 loc_789C1: movzx eax, word ptr [r13+0] xor ecx, ecx cmp rax, 0FFh setnb cl lea rax, [rax+rcx*2] inc rax loc_789D8: add r12, rax jmp loc_78A83 loc_789E0: mov rcx, r13 loc_789E3: sub rax, rcx cmp r15d, 100h setnb r8b cmp eax, 7Fh setnbe cl and cl, r8b movzx r8d, cl add r8d, eax inc r8d cmp r8d, r15d jnb short loc_78A47 test edi, r9d jz loc_78AE0 movzx r8d, byte ptr [r12] test cl, cl jz short loc_78A4C mov ecx, eax or ecx, 80h movzx ecx, cl cmp ecx, r8d jnz loc_78AE0 mov r8d, eax shr r8d, 7 mov ecx, 2 cmp [r12+1], r8b jz short loc_78A5A jmp loc_78AE0 loc_78A47: add r12, r15 jmp short loc_78A62 loc_78A4C: mov ecx, 1 cmp r8b, al jnz loc_78AE0 loc_78A5A: add r12, rcx mov eax, eax add r12, rax loc_78A62: add r9d, r9d cmp r9d, 100h jb short loc_78A83 mov rax, [rbp+var_48] movzx edi, byte ptr [rax+1] inc rax mov [rbp+var_48], rax mov r9d, 1 loc_78A83: dec r14d add r13, r15 add rbx, 30h ; '0' test r14d, r14d jnz loc_78882 jmp short loc_78A9E loc_78A98: mov r9d, 1 loc_78A9E: mov eax, r12d sub eax, edx mov rcx, [rbp+var_58] cmp qword ptr [rcx+2C8h], 1 sbb eax, 0FFFFFFFFh cmp rax, [rbp+var_60] jnz short loc_78AE0 cmp r9d, 1 jz short loc_78AC6 neg r9d test edi, r9d jnz short loc_78AE0 loc_78AC6: cmp byte ptr [rbp+var_34], 0 jz short loc_78ADC mov al, [r12] mov rcx, [rbp+var_50] cmp al, [rcx+1A8h] jnz short loc_78AE0 loc_78ADC: xor eax, eax jmp short loc_78AE2 loc_78AE0: mov al, 1 loc_78AE2: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
bool mi_rec_check(_BYTE *a1, unsigned __int8 *a2, unsigned __int8 *a3, long long a4, char a5) { long long v5; // rax int v6; // r14d unsigned __int8 *v7; // r12 int v8; // edi long long v10; // rbx unsigned int v11; // r9d long long v12; // r15 unsigned int v13; // ecx unsigned long long v14; // rax unsigned __int8 *v15; // rax unsigned __int8 *v16; // r8 unsigned __int8 *v17; // rcx long long v18; // rax long long v19; // rcx unsigned int v20; // eax bool v21; // cl int v22; // r8d long long v23; // rcx long long v26; // [rsp+8h] [rbp-58h] unsigned __int8 *v28; // [rsp+18h] [rbp-48h] int v29; // [rsp+20h] [rbp-40h] unsigned int v31; // [rsp+30h] [rbp-30h] v5 = *(_QWORD *)a1; v6 = *(_DWORD *)(*(_QWORD *)a1 + 360LL); v7 = &a3[*(unsigned int *)(*(_QWORD *)a1 + 396LL)]; v8 = *a3; v26 = v5; if ( v6 ) { v10 = *(_QWORD *)(v5 + 560); v11 = 1; v28 = a3; v29 = (int)a3; while ( 1 ) { v12 = *(unsigned __int16 *)(v10 + 4); v13 = *(_DWORD *)v10; if ( !*(_DWORD *)v10 ) goto LABEL_18; if ( v13 == 3 ) { v31 = v11; if ( (unsigned int)bcmp(a2, &zero_string, v12) ) { v7 += v12; LODWORD(a3) = v29; v11 = v31; } else { v11 = v31; LODWORD(a3) = v29; if ( (v31 & v8) == 0 ) return 1; } LABEL_46: v11 *= 2; if ( v11 >= 0x100 ) { v8 = *++v28; v11 = 1; } goto LABEL_48; } if ( v13 == 4 ) { switch ( *(_WORD *)(v10 + 4) ) { case 9: v14 = *a2; break; case 0xA: v14 = *(unsigned __int16 *)a2; break; case 0xB: v14 = *(unsigned __int16 *)a2 | (unsigned long long)(a2[2] << 16); break; case 0xC: v14 = *(unsigned int *)a2; break; default: v14 = 0LL; break; } v19 = (unsigned int)(v14 + v12 - 8); if ( !v14 ) v19 = 0LL; v7 += v19; if ( !v14 && (v11 & v8) == 0 ) return 1; goto LABEL_46; } if ( v13 <= 2 ) { v15 = &a2[v12]; if ( v13 == 1 ) { do { v16 = v15; if ( v15 <= a2 ) break; --v15; } while ( *(v16 - 1) == 32 ); LODWORD(v17) = (_DWORD)a2; LODWORD(v15) = (_DWORD)v16; } else { v17 = a2; if ( *(_WORD *)(v10 + 4) ) { do { if ( *v17 != 32 ) break; ++v17; } while ( v17 < v15 ); } else { LODWORD(v17) = (_DWORD)a2; } } v20 = (_DWORD)v15 - (_DWORD)v17; v21 = (unsigned int)v12 >= 0x100 && v20 > 0x7F; if ( v20 + v21 + 1 >= (unsigned int)v12 ) { v7 += v12; } else { if ( (v11 & v8) == 0 ) return 1; v22 = *v7; if ( v21 ) { if ( ((unsigned __int8)v20 | 0x80) != v22 ) return 1; v23 = 2LL; if ( v7[1] != (unsigned __int8)(v20 >> 7) ) return 1; } else { v23 = 1LL; if ( (_BYTE)v22 != (_BYTE)v20 ) return 1; } v7 += v20 + v23; } goto LABEL_46; } if ( v13 == 8 ) { if ( (unsigned int)v12 > 0x100 ) v18 = *(unsigned __int16 *)a2 + 2LL * (*(unsigned __int16 *)a2 >= 0xFFuLL); else v18 = *a2; v7 += v18 + 1; } else { LABEL_18: v7 += v12; } LABEL_48: --v6; a2 += v12; v10 += 48LL; if ( !v6 ) return (_DWORD)v7 - (_DWORD)a3 - ((*(_QWORD *)(v26 + 712) == 0LL) - 1) != a4 || v11 != 1 && (-v11 & v8) != 0 || a5 && *v7 != a1[424]; } } v11 = 1; return (_DWORD)v7 - (_DWORD)a3 - ((*(_QWORD *)(v26 + 712) == 0LL) - 1) != a4 || v11 != 1 && (-v11 & v8) != 0 || a5 && *v7 != a1[424]; }
_mi_rec_check: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV dword ptr [RBP + -0x34],R8D MOV qword ptr [RBP + -0x60],RCX MOV qword ptr [RBP + -0x50],RDI MOV RAX,qword ptr [RDI] MOV R14D,dword ptr [RAX + 0x168] MOV R12D,dword ptr [RAX + 0x18c] ADD R12,RDX MOVZX EDI,byte ptr [RDX] TEST R14D,R14D MOV qword ptr [RBP + -0x58],RAX JZ 0x00178a98 MOV R13,RSI MOV RBX,qword ptr [RAX + 0x230] MOV R9D,0x1 MOV qword ptr [RBP + -0x48],RDX MOV qword ptr [RBP + -0x40],RDX LAB_00178882: MOVZX R15D,word ptr [RBX + 0x4] MOV ECX,dword ptr [RBX] TEST ECX,ECX JZ 0x0017893d CMP ECX,0x3 JZ 0x001788c2 CMP ECX,0x4 JNZ 0x001788f2 LEA EAX,[R15 + -0x9] CMP EAX,0x3 JA 0x00178994 LEA RCX,[0x1e1670] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_9: MOVZX EAX,byte ptr [R13] JMP 0x00178996 LAB_001788c2: MOV dword ptr [RBP + -0x30],R9D MOV dword ptr [RBP + -0x2c],EDI MOV RDI,R13 LEA RSI,[0xcff530] MOV RDX,R15 CALL 0x00129560 TEST EAX,EAX JZ 0x00178945 ADD R12,R15 MOV EDI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x40] MOV R9D,dword ptr [RBP + -0x30] JMP 0x00178a62 LAB_001788f2: CMP ECX,0x2 JA 0x0017891e LEA RAX,[R15 + R13*0x1] CMP ECX,0x1 JNZ 0x0017895e LAB_00178900: MOV R8,RAX CMP RAX,R13 JBE 0x00178913 LEA RAX,[R8 + -0x1] CMP byte ptr [R8 + -0x1],0x20 JZ 0x00178900 LAB_00178913: MOV RCX,R13 MOV RAX,R8 JMP 0x001789e3 LAB_0017891e: CMP ECX,0x8 JNZ 0x0017893d CMP R15D,0x100 JA 0x001789c1 MOVZX EAX,byte ptr [R13] INC RAX JMP 0x001789d8 LAB_0017893d: ADD R12,R15 JMP 0x00178a83 LAB_00178945: MOV EDI,dword ptr [RBP + -0x2c] MOV R9D,dword ptr [RBP + -0x30] TEST EDI,R9D MOV RDX,qword ptr [RBP + -0x40] JNZ 0x00178a62 JMP 0x00178ae0 LAB_0017895e: MOV RCX,R13 TEST R15D,R15D JZ 0x001789e0 LAB_00178966: CMP byte ptr [RCX],0x20 JNZ 0x001789e3 INC RCX CMP RCX,RAX JC 0x00178966 JMP 0x001789e3 caseD_b: MOVZX ECX,word ptr [R13] MOVZX EAX,byte ptr [R13 + 0x2] SHL EAX,0x10 OR RAX,RCX JMP 0x00178996 caseD_c: MOV EAX,dword ptr [R13] JMP 0x00178996 caseD_a: MOVZX EAX,word ptr [R13] JMP 0x00178996 default: XOR EAX,EAX LAB_00178996: MOV ECX,R15D ADD ECX,-0x8 ADD ECX,EAX TEST RAX,RAX CMOVZ RCX,RAX ADD R12,RCX TEST RAX,RAX JNZ 0x00178a62 MOV EAX,EDI AND EAX,R9D JNZ 0x00178a62 JMP 0x00178ae0 LAB_001789c1: MOVZX EAX,word ptr [R13] XOR ECX,ECX CMP RAX,0xff SETNC CL LEA RAX,[RAX + RCX*0x2] INC RAX LAB_001789d8: ADD R12,RAX JMP 0x00178a83 LAB_001789e0: MOV RCX,R13 LAB_001789e3: SUB RAX,RCX CMP R15D,0x100 SETNC R8B CMP EAX,0x7f SETA CL AND CL,R8B MOVZX R8D,CL ADD R8D,EAX INC R8D CMP R8D,R15D JNC 0x00178a47 TEST EDI,R9D JZ 0x00178ae0 MOVZX R8D,byte ptr [R12] TEST CL,CL JZ 0x00178a4c MOV ECX,EAX OR ECX,0x80 MOVZX ECX,CL CMP ECX,R8D JNZ 0x00178ae0 MOV R8D,EAX SHR R8D,0x7 MOV ECX,0x2 CMP byte ptr [R12 + 0x1],R8B JZ 0x00178a5a JMP 0x00178ae0 LAB_00178a47: ADD R12,R15 JMP 0x00178a62 LAB_00178a4c: MOV ECX,0x1 CMP R8B,AL JNZ 0x00178ae0 LAB_00178a5a: ADD R12,RCX MOV EAX,EAX ADD R12,RAX LAB_00178a62: ADD R9D,R9D CMP R9D,0x100 JC 0x00178a83 MOV RAX,qword ptr [RBP + -0x48] MOVZX EDI,byte ptr [RAX + 0x1] INC RAX MOV qword ptr [RBP + -0x48],RAX MOV R9D,0x1 LAB_00178a83: DEC R14D ADD R13,R15 ADD RBX,0x30 TEST R14D,R14D JNZ 0x00178882 JMP 0x00178a9e LAB_00178a98: MOV R9D,0x1 LAB_00178a9e: MOV EAX,R12D SUB EAX,EDX MOV RCX,qword ptr [RBP + -0x58] CMP qword ptr [RCX + 0x2c8],0x1 SBB EAX,-0x1 CMP RAX,qword ptr [RBP + -0x60] JNZ 0x00178ae0 CMP R9D,0x1 JZ 0x00178ac6 NEG R9D TEST EDI,R9D JNZ 0x00178ae0 LAB_00178ac6: CMP byte ptr [RBP + -0x34],0x0 JZ 0x00178adc MOV AL,byte ptr [R12] MOV RCX,qword ptr [RBP + -0x50] CMP AL,byte ptr [RCX + 0x1a8] JNZ 0x00178ae0 LAB_00178adc: XOR EAX,EAX JMP 0x00178ae2 LAB_00178ae0: MOV AL,0x1 LAB_00178ae2: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 _mi_rec_check(long *param_1,uint *param_2,byte *param_3,ulong param_4,char param_5) { ushort uVar1; long lVar2; uint *puVar3; int iVar4; uint uVar5; int4 extraout_var; ulong uVar6; int8 uVar8; uint *puVar9; long lVar10; uint *puVar11; uint uVar12; uint uVar13; byte *pbVar14; int iVar15; ulong __n; byte *local_50; uint *puVar7; lVar2 = *param_1; iVar15 = *(int *)(lVar2 + 0x168); pbVar14 = param_3 + *(uint *)(lVar2 + 0x18c); uVar12 = (uint)*param_3; if (iVar15 == 0) { uVar13 = 1; } else { puVar11 = *(uint **)(lVar2 + 0x230); uVar13 = 1; local_50 = param_3; do { uVar1 = (ushort)puVar11[1]; __n = (ulong)uVar1; uVar5 = *puVar11; if (uVar5 == 0) { LAB_0017893d: pbVar14 = pbVar14 + __n; } else { if (uVar5 == 3) { iVar4 = bcmp(param_2,zero_string,__n); uVar6 = CONCAT44(extraout_var,iVar4); if (iVar4 == 0) { joined_r0x00178953: if ((uVar12 & uVar13) == 0) goto LAB_00178ae0; } else { pbVar14 = pbVar14 + __n; } } else if (uVar5 == 4) { switch(uVar1) { case 9: uVar5 = (uint)(byte)*param_2; break; case 10: uVar5 = (uint)(ushort)*param_2; break; case 0xb: uVar5 = (uint)(uint3)*param_2; break; case 0xc: uVar5 = *param_2; break; default: uVar5 = 0; } uVar6 = (ulong)((uVar1 - 8) + uVar5); if (uVar5 == 0) { uVar6 = 0; } pbVar14 = pbVar14 + uVar6; if (uVar5 == 0) { uVar6 = 0; goto joined_r0x00178953; } } else { if (2 < uVar5) { if (uVar5 != 8) goto LAB_0017893d; if (uVar1 < 0x101) { uVar6 = (ulong)(byte)*param_2; } else { uVar6 = (ulong)(ushort)*param_2 + (ulong)(0xfe < (ulong)(ushort)*param_2) * 2; } pbVar14 = pbVar14 + uVar6 + 1; goto LAB_00178a83; } puVar7 = (uint *)(__n + (long)param_2); puVar3 = puVar7; puVar9 = param_2; if (uVar5 == 1) { do { puVar7 = puVar3; if (puVar7 <= param_2) break; puVar3 = (uint *)((long)puVar7 + -1); } while (*(byte *)((long)puVar7 + -1) == 0x20); } else if (uVar1 != 0) { do { if ((byte)*puVar9 != 0x20) break; puVar9 = (uint *)((long)puVar9 + 1); } while (puVar9 < puVar7); } uVar6 = (long)puVar7 - (long)puVar9; uVar5 = (uint)uVar6; if ((0x7f < uVar5 && 0xff < uVar1) + uVar5 + 1 < (uint)uVar1) { if ((uVar12 & uVar13) == 0) goto LAB_00178ae0; if (0x7f < uVar5 && 0xff < uVar1) { if (((uVar5 & 0xff | 0x80) != (uint)*pbVar14) || (lVar10 = 2, pbVar14[1] != (byte)(uVar6 >> 7))) goto LAB_00178ae0; } else { lVar10 = 1; if (*pbVar14 != (byte)uVar6) goto LAB_00178ae0; } pbVar14 = pbVar14 + (uVar6 & 0xffffffff) + lVar10; } else { pbVar14 = pbVar14 + __n; } } uVar13 = uVar13 * 2; if (0xff < uVar13) { uVar12 = (uint)local_50[1]; local_50 = local_50 + 1; uVar13 = 1; } } LAB_00178a83: iVar15 = iVar15 + -1; param_2 = (uint *)((long)param_2 + __n); puVar11 = puVar11 + 0xc; } while (iVar15 != 0); } uVar5 = (((int)pbVar14 - (int)param_3) + 1) - (uint)(*(long *)(lVar2 + 0x2c8) == 0); uVar6 = (ulong)uVar5; if (((uVar6 == param_4) && ((uVar13 == 1 || ((uVar12 & -uVar13) == 0)))) && ((param_5 == '\0' || (uVar6 = (ulong)CONCAT31((int3)(uVar5 >> 8),*pbVar14), *pbVar14 == *(byte *)(param_1 + 0x35))) )) { uVar8 = 0; } else { LAB_00178ae0: uVar8 = CONCAT71((int7)(uVar6 >> 8),1); } return uVar8; }
29,635
PFS_buffer_scalable_container<PFS_thread, 256, 256, PFS_thread_array, PFS_thread_allocator>::deallocate(PFS_thread*)
eloqsql/storage/perfschema/pfs_buffer_container.h
void deallocate(value_type *safe_pfs) { /* Find the containing page */ PFS_opaque_container_page *opaque_page= safe_pfs->m_page; array_type *page= reinterpret_cast<array_type *> (opaque_page); /* Mark the object free */ safe_pfs->m_lock.allocated_to_free(); /* Flag the containing page as not full. */ page->m_full= false; /* Flag the overall container as not full. */ m_full= false; }
O0
c
PFS_buffer_scalable_container<PFS_thread, 256, 256, PFS_thread_array, PFS_thread_allocator>::deallocate(PFS_thread*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi callq 0x374f0 movq -0x28(%rbp), %rax movq -0x20(%rbp), %rcx movb $0x0, (%rcx) movb $0x0, 0x9(%rax) addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN29PFS_buffer_scalable_containerI11PFS_programLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE10deallocateEPS0_: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_28], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rdi, [rbp+var_10]; this call _ZN8pfs_lock17allocated_to_freeEv; pfs_lock::allocated_to_free(void) mov rax, [rbp+var_28] mov rcx, [rbp+var_20] mov byte ptr [rcx], 0 mov byte ptr [rax+9], 0 add rsp, 30h pop rbp retn
long long PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>::deallocate( long long a1, pfs_lock *a2) { long long result; // rax _BYTE *v3; // [rsp+10h] [rbp-20h] v3 = (_BYTE *)*((_QWORD *)a2 + 1); pfs_lock::allocated_to_free(a2); result = a1; *v3 = 0; *(_BYTE *)(a1 + 9) = 0; return result; }
deallocate: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001374f0 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x20] MOV byte ptr [RCX],0x0 MOV byte ptr [RAX + 0x9],0x0 ADD RSP,0x30 POP RBP RET
/* PFS_buffer_scalable_container<PFS_program, 1024, 1024, PFS_buffer_default_array<PFS_program>, PFS_buffer_default_allocator<PFS_program> >::deallocate(PFS_program*) */ void __thiscall PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> ::deallocate(PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> *this,PFS_program *param_1) { int1 *puVar1; puVar1 = *(int1 **)(param_1 + 8); pfs_lock::allocated_to_free((pfs_lock *)param_1); *puVar1 = 0; this[9] = (PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> )0x0; return; }
29,636
ma_get_status
eloqsql/storage/maria/ma_state.c
my_bool _ma_get_status(void* param, my_bool concurrent_insert) { MARIA_HA *info=(MARIA_HA*) param; DBUG_ENTER("_ma_get_status"); DBUG_PRINT("info",("key_file: %ld data_file: %ld concurrent_insert: %d", (long) info->s->state.state.key_file_length, (long) info->s->state.state.data_file_length, concurrent_insert)); #ifndef DBUG_OFF if (info->state->key_file_length > info->s->state.state.key_file_length || info->state->data_file_length > info->s->state.state.data_file_length) DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld", (long) info->state->key_file_length, (long) info->state->data_file_length)); #endif info->state_save= info->s->state.state; info->state= &info->state_save; info->state->changed= 0; info->append_insert_at_end= concurrent_insert; DBUG_RETURN(0); }
O0
c
ma_get_status: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x3ba0c movq -0x18(%rbp), %rdi addq $0x28, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi addq $0x18, %rsi movl $0x38, %edx callq 0x270d0 movq -0x18(%rbp), %rcx addq $0x28, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movb 0x34(%rax), %cl andb $-0x2, %cl orb $0x0, %cl movb %cl, 0x34(%rax) movb -0x9(%rbp), %cl movq -0x18(%rbp), %rax movb %cl, 0x681(%rax) jmp 0x3ba5c xorl %eax, %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_get_status: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_3BA0C: mov rdi, [rbp+var_18] add rdi, 28h ; '(' mov rax, [rbp+var_18] mov rsi, [rax] add rsi, 18h mov edx, 38h ; '8' call _memcpy mov rcx, [rbp+var_18] add rcx, 28h ; '(' mov rax, [rbp+var_18] mov [rax+20h], rcx mov rax, [rbp+var_18] mov rax, [rax+20h] mov cl, [rax+34h] and cl, 0FEh or cl, 0 mov [rax+34h], cl mov cl, [rbp+var_9] mov rax, [rbp+var_18] mov [rax+681h], cl jmp short $+2 loc_3BA5C: xor eax, eax add rsp, 20h pop rbp retn
long long ma_get_status(long long a1, char a2) { memcpy(a1 + 40, *(_QWORD *)a1 + 24LL, 56LL); *(_QWORD *)(a1 + 32) = a1 + 40; *(_BYTE *)(*(_QWORD *)(a1 + 32) + 52LL) &= ~1u; *(_BYTE *)(a1 + 1665) = a2; return 0LL; }
_ma_get_status: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x0013ba0c LAB_0013ba0c: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x28 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] ADD RSI,0x18 MOV EDX,0x38 CALL 0x001270d0 MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x28 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV CL,byte ptr [RAX + 0x34] AND CL,0xfe OR CL,0x0 MOV byte ptr [RAX + 0x34],CL MOV CL,byte ptr [RBP + -0x9] MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x681],CL JMP 0x0013ba5c LAB_0013ba5c: XOR EAX,EAX ADD RSP,0x20 POP RBP RET
int8 _ma_get_status(long *param_1,int1 param_2) { memcpy(param_1 + 5,(void *)(*param_1 + 0x18),0x38); param_1[4] = (long)(param_1 + 5); *(byte *)(param_1[4] + 0x34) = *(byte *)(param_1[4] + 0x34) & 0xfe; *(int1 *)((long)param_1 + 0x681) = param_2; return 0; }
29,637
unpack_filename
eloqsql/mysys/mf_pack.c
size_t unpack_filename(char * to, const char *from) { size_t length, n_length, buff_length; char buff[FN_REFLEN + 1]; DBUG_ENTER("unpack_filename"); length=dirname_part(buff, from, &buff_length);/* copy & convert dirname */ n_length=unpack_dirname(buff,buff); if (n_length+strlen(from+length) < FN_REFLEN) { (void) strmov(buff+n_length,from+length); length= system_filename(to,buff); /* Fix to usably filename */ } else length= system_filename(to,from); /* Fix to usably filename */ DBUG_RETURN(length); }
O3
c
unpack_filename: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq -0x230(%rbp), %r12 leaq -0x238(%rbp), %rdx movq %r12, %rdi callq 0x948f5 movq %rax, %r15 movq %r12, %rdi movq %r12, %rsi callq 0x9b482 movq %rax, %r12 addq %r14, %r15 movq %r15, %rdi callq 0x29350 addq %r12, %rax cmpq $0x1ff, %rax # imm = 0x1FF ja 0x9b6a4 leaq (%r12,%rbp), %rdi addq $-0x230, %rdi # imm = 0xFDD0 movq %r15, %rsi callq 0x29360 leaq -0x230(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF movq %rbx, %rdi jmp 0x9b6af movl $0x1ff, %edx # imm = 0x1FF movq %rbx, %rdi movq %r14, %rsi callq 0xd7348 movq %fs:0x28, %rcx cmpq -0x28(%rbp), %rcx jne 0x9b6d6 subq %rbx, %rax addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x29260 nop
unpack_filename: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 220h mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_28], rax lea r12, [rbp+var_230] lea rdx, [rbp+var_238] mov rdi, r12 call dirname_part mov r15, rax mov rdi, r12 mov rsi, r12 call unpack_dirname mov r12, rax add r15, r14 mov rdi, r15 call _strlen add rax, r12 cmp rax, 1FFh ja short loc_9B6A4 lea rdi, [r12+rbp] add rdi, 0FFFFFFFFFFFFFDD0h mov rsi, r15 call _strcpy lea rsi, [rbp+var_230] mov edx, 1FFh mov rdi, rbx jmp short loc_9B6AF loc_9B6A4: mov edx, 1FFh mov rdi, rbx mov rsi, r14 loc_9B6AF: call strmake mov rcx, fs:28h cmp rcx, [rbp+var_28] jnz short loc_9B6D6 sub rax, rbx add rsp, 220h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_9B6D6: call ___stack_chk_fail
long long unpack_filename(long long a1, _BYTE *a2) { long long v2; // r15 long long v3; // r12 _BYTE *v4; // r15 long long v6; // [rsp+8h] [rbp-238h] BYREF _BYTE v7[520]; // [rsp+10h] [rbp-230h] BYREF unsigned long long v8; // [rsp+218h] [rbp-28h] v8 = __readfsqword(0x28u); v2 = dirname_part((long long)v7, a2, &v6); v3 = unpack_dirname((long long)v7, v7); v4 = &a2[v2]; if ( (unsigned long long)(v3 + strlen(v4)) <= 0x1FF ) { strcpy(&v7[v3], v4); a2 = v7; } return strmake(a1, a2, 511LL) - a1; }
unpack_filename: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x220 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA R12,[RBP + -0x230] LEA RDX,[RBP + -0x238] MOV RDI,R12 CALL 0x001948f5 MOV R15,RAX MOV RDI,R12 MOV RSI,R12 CALL 0x0019b482 MOV R12,RAX ADD R15,R14 MOV RDI,R15 CALL 0x00129350 ADD RAX,R12 CMP RAX,0x1ff JA 0x0019b6a4 LEA RDI,[R12 + RBP*0x1] ADD RDI,-0x230 MOV RSI,R15 CALL 0x00129360 LEA RSI,[RBP + -0x230] MOV EDX,0x1ff MOV RDI,RBX JMP 0x0019b6af LAB_0019b6a4: MOV EDX,0x1ff MOV RDI,RBX MOV RSI,R14 LAB_0019b6af: CALL 0x001d7348 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x28] JNZ 0x0019b6d6 SUB RAX,RBX ADD RSP,0x220 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0019b6d6: CALL 0x00129260
long unpack_filename(long param_1,char *param_2) { long lVar1; long lVar2; size_t sVar3; long in_FS_OFFSET; int1 local_240 [8]; char local_238 [520]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = dirname_part(local_238,param_2,local_240); lVar2 = unpack_dirname(local_238,local_238); sVar3 = strlen(param_2 + lVar1); if (sVar3 + lVar2 < 0x200) { strcpy(local_238 + lVar2,param_2 + lVar1); param_2 = local_238; } lVar1 = strmake(param_1,param_2,0x1ff); if (*(long *)(in_FS_OFFSET + 0x28) != local_30) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return lVar1 - param_1; }
29,638
ggml_compute_forward_log_f32
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_log_f32( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; if (params->ith != 0) { return; } GGML_ASSERT(ggml_are_same_shape(src0, dst)); const int n = ggml_nrows(src0); const int nc = src0->ne[0]; GGML_ASSERT( dst->nb[0] == sizeof(float)); GGML_ASSERT(src0->nb[0] == sizeof(float)); for (int i = 0; i < n; i++) { ggml_vec_log_f32(nc, (float *) ((char *) dst->data + i*( dst->nb[1])), (float *) ((char *) src0->data + i*(src0->nb[1]))); } }
O0
c
ggml_compute_forward_log_f32: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, (%rax) je 0x2540d jmp 0x25506 movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xe260 testb $0x1, %al jne 0x2543f leaq 0x4e73d(%rip), %rdi # 0x73b62 movl $0x14f3, %esi # imm = 0x14F3 leaq 0x4e790(%rip), %rdx # 0x73bc1 leaq 0x4ee82(%rip), %rcx # 0x742ba movb $0x0, %al callq 0xe270 movq -0x18(%rbp), %rdi callq 0xdc20 movl %eax, -0x1c(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl %eax, -0x20(%rbp) movq -0x10(%rbp), %rax cmpq $0x4, 0x30(%rax) je 0x25482 leaq 0x4e6fa(%rip), %rdi # 0x73b62 movl $0x14f8, %esi # imm = 0x14F8 leaq 0x4e74d(%rip), %rdx # 0x73bc1 leaq 0x4f3a6(%rip), %rcx # 0x74821 movb $0x0, %al callq 0xe270 movq -0x18(%rbp), %rax cmpq $0x4, 0x30(%rax) je 0x254ae leaq 0x4e6ce(%rip), %rdi # 0x73b62 movl $0x14f9, %esi # imm = 0x14F9 leaq 0x4e721(%rip), %rdx # 0x73bc1 leaq 0x4f396(%rip), %rcx # 0x7483d movb $0x0, %al callq 0xe270 movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpl -0x1c(%rbp), %eax jge 0x25506 movl -0x20(%rbp), %edi movq -0x10(%rbp), %rax movq 0xf8(%rax), %rsi movslq -0x24(%rbp), %rax movq -0x10(%rbp), %rcx imulq 0x38(%rcx), %rax addq %rax, %rsi movq -0x18(%rbp), %rax movq 0xf8(%rax), %rdx movslq -0x24(%rbp), %rax movq -0x18(%rbp), %rcx imulq 0x38(%rcx), %rax addq %rax, %rdx callq 0x25510 movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x254b5 addq $0x30, %rsp popq %rbp retq nopl (%rax)
ggml_compute_forward_log_f32: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+98h] mov [rbp+var_18], rax mov rax, [rbp+var_8] cmp dword ptr [rax], 0 jz short loc_2540D jmp loc_25506 loc_2540D: mov rdi, [rbp+var_18] mov rsi, [rbp+var_10] call _ggml_are_same_shape test al, 1 jnz short loc_2543F lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 14F3h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)" mov al, 0 call _ggml_abort loc_2543F: mov rdi, [rbp+var_18] call _ggml_nrows mov [rbp+var_1C], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_20], eax mov rax, [rbp+var_10] cmp qword ptr [rax+30h], 4 jz short loc_25482 lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 14F8h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aDstNb0SizeofFl; "dst->nb[0] == sizeof(float)" mov al, 0 call _ggml_abort loc_25482: mov rax, [rbp+var_18] cmp qword ptr [rax+30h], 4 jz short loc_254AE lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 14F9h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSrc0Nb0SizeofF; "src0->nb[0] == sizeof(float)" mov al, 0 call _ggml_abort loc_254AE: mov [rbp+var_24], 0 loc_254B5: mov eax, [rbp+var_24] cmp eax, [rbp+var_1C] jge short loc_25506 mov edi, [rbp+var_20] mov rax, [rbp+var_10] mov rsi, [rax+0F8h] movsxd rax, [rbp+var_24] mov rcx, [rbp+var_10] imul rax, [rcx+38h] add rsi, rax mov rax, [rbp+var_18] mov rdx, [rax+0F8h] movsxd rax, [rbp+var_24] mov rcx, [rbp+var_18] imul rax, [rcx+38h] add rdx, rax call ggml_vec_log_f32 mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_254B5 loc_25506: add rsp, 30h pop rbp retn
unsigned long long ggml_compute_forward_log_f32(_DWORD *a1, _QWORD *a2) { unsigned long long result; // rax unsigned int i; // [rsp+Ch] [rbp-24h] unsigned int v4; // [rsp+10h] [rbp-20h] int v5; // [rsp+14h] [rbp-1Ch] _QWORD *v6; // [rsp+18h] [rbp-18h] v6 = (_QWORD *)a2[19]; result = (unsigned long long)a1; if ( !*a1 ) { if ( (ggml_are_same_shape(v6, a2) & 1) == 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 5363LL, "GGML_ASSERT(%s) failed", "ggml_are_same_shape(src0, dst)"); v5 = ggml_nrows(v6); v4 = v6[2]; if ( a2[6] != 4LL ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 5368LL, "GGML_ASSERT(%s) failed", "dst->nb[0] == sizeof(float)"); if ( v6[6] != 4LL ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 5369LL, "GGML_ASSERT(%s) failed", "src0->nb[0] == sizeof(float)"); for ( i = 0; ; ++i ) { result = i; if ( (int)i >= v5 ) break; ggml_vec_log_f32(v4, a2[7] * (int)i + a2[31], v6[7] * (int)i + v6[31]); } } return result; }
ggml_compute_forward_log_f32: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX],0x0 JZ 0x0012540d JMP 0x00125506 LAB_0012540d: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0010e260 TEST AL,0x1 JNZ 0x0012543f LEA RDI,[0x173b62] MOV ESI,0x14f3 LEA RDX,[0x173bc1] LEA RCX,[0x1742ba] MOV AL,0x0 CALL 0x0010e270 LAB_0012543f: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0010dc20 MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x30],0x4 JZ 0x00125482 LEA RDI,[0x173b62] MOV ESI,0x14f8 LEA RDX,[0x173bc1] LEA RCX,[0x174821] MOV AL,0x0 CALL 0x0010e270 LAB_00125482: MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x30],0x4 JZ 0x001254ae LEA RDI,[0x173b62] MOV ESI,0x14f9 LEA RDX,[0x173bc1] LEA RCX,[0x17483d] MOV AL,0x0 CALL 0x0010e270 LAB_001254ae: MOV dword ptr [RBP + -0x24],0x0 LAB_001254b5: MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RBP + -0x1c] JGE 0x00125506 MOV EDI,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x10] IMUL RAX,qword ptr [RCX + 0x38] ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX + 0xf8] MOVSXD RAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x18] IMUL RAX,qword ptr [RCX + 0x38] ADD RDX,RAX CALL 0x00125510 MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001254b5 LAB_00125506: ADD RSP,0x30 POP RBP RET
void ggml_compute_forward_log_f32(int *param_1,long param_2) { long lVar1; int8 uVar2; int iVar3; ulong uVar4; int local_2c; lVar1 = *(long *)(param_2 + 0x98); if (*param_1 == 0) { uVar4 = ggml_are_same_shape(lVar1,param_2); if ((uVar4 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x14f3,"GGML_ASSERT(%s) failed","ggml_are_same_shape(src0, dst)"); } iVar3 = ggml_nrows(lVar1); uVar2 = *(int8 *)(lVar1 + 0x10); if (*(long *)(param_2 + 0x30) != 4) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x14f8,"GGML_ASSERT(%s) failed","dst->nb[0] == sizeof(float)"); } if (*(long *)(lVar1 + 0x30) != 4) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x14f9,"GGML_ASSERT(%s) failed","src0->nb[0] == sizeof(float)"); } for (local_2c = 0; local_2c < iVar3; local_2c = local_2c + 1) { ggml_vec_log_f32((int)uVar2, *(long *)(param_2 + 0xf8) + (long)local_2c * *(long *)(param_2 + 0x38), *(long *)(lVar1 + 0xf8) + (long)local_2c * *(long *)(lVar1 + 0x38)); } } return; }
29,639
mbedtls_cipher_list
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/cipher.c
const int *mbedtls_cipher_list(void) { const mbedtls_cipher_definition_t *def; int *type; if (!supported_init) { def = mbedtls_cipher_definitions; type = mbedtls_cipher_supported; while (def->type != 0) { *type++ = (*def++).type; } *type = 0; supported_init = 1; } return mbedtls_cipher_supported; }
O3
c
mbedtls_cipher_list: cmpb $0x0, 0x555cd(%rip) # 0xef76c jne 0x9a1df leaq 0x4a318(%rip), %rax # 0xe44c0 movl (%rax), %edx testl %edx, %edx je 0x9a1cb addq $0x10, %rax leaq 0x555b7(%rip), %rcx # 0xef770 movl %edx, (%rcx) addq $0x4, %rcx movl (%rax), %edx addq $0x10, %rax testl %edx, %edx jne 0x9a1b9 jmp 0x9a1d2 leaq 0x5559e(%rip), %rcx # 0xef770 movl $0x0, (%rcx) movb $0x1, 0x5558d(%rip) # 0xef76c leaq 0x5558a(%rip), %rax # 0xef770 retq
mbedtls_cipher_list: cmp cs:supported_init, 0 jnz short loc_9A1DF lea rax, mbedtls_cipher_definitions mov edx, [rax] test edx, edx jz short loc_9A1CB add rax, 10h lea rcx, mbedtls_cipher_supported loc_9A1B9: mov [rcx], edx add rcx, 4 mov edx, [rax] add rax, 10h test edx, edx jnz short loc_9A1B9 jmp short loc_9A1D2 loc_9A1CB: lea rcx, mbedtls_cipher_supported loc_9A1D2: mov dword ptr [rcx], 0 mov cs:supported_init, 1 loc_9A1DF: lea rax, mbedtls_cipher_supported retn
void *mbedtls_cipher_list() { int v0; // edx int *v1; // rax _DWORD *v2; // rcx if ( !supported_init ) { v0 = mbedtls_cipher_definitions[0]; if ( mbedtls_cipher_definitions[0] ) { v1 = &mbedtls_cipher_definitions[4]; v2 = &mbedtls_cipher_supported; do { *v2++ = v0; v0 = *v1; v1 += 4; } while ( v0 ); } else { v2 = &mbedtls_cipher_supported; } *v2 = 0; supported_init = 1; } return &mbedtls_cipher_supported; }
mbedtls_cipher_list: CMP byte ptr [0x001ef76c],0x0 JNZ 0x0019a1df LEA RAX,[0x1e44c0] MOV EDX,dword ptr [RAX] TEST EDX,EDX JZ 0x0019a1cb ADD RAX,0x10 LEA RCX,[0x1ef770] LAB_0019a1b9: MOV dword ptr [RCX],EDX ADD RCX,0x4 MOV EDX,dword ptr [RAX] ADD RAX,0x10 TEST EDX,EDX JNZ 0x0019a1b9 JMP 0x0019a1d2 LAB_0019a1cb: LEA RCX,[0x1ef770] LAB_0019a1d2: MOV dword ptr [RCX],0x0 MOV byte ptr [0x001ef76c],0x1 LAB_0019a1df: LEA RAX,[0x1ef770] RET
int4 * mbedtls_cipher_list(void) { int *piVar1; int *piVar2; int iVar3; if (supported_init == '\0') { if (mbedtls_cipher_definitions == 0) { piVar2 = &mbedtls_cipher_supported; } else { piVar1 = &DAT_001e44d0; piVar2 = &mbedtls_cipher_supported; iVar3 = mbedtls_cipher_definitions; do { *piVar2 = iVar3; piVar2 = piVar2 + 1; iVar3 = *piVar1; piVar1 = piVar1 + 4; } while (iVar3 != 0); } *piVar2 = 0; supported_init = '\x01'; } return &mbedtls_cipher_supported; }
29,640
pfs_end_cond_wait_v1
eloqsql/storage/perfschema/pfs.cc
void pfs_end_cond_wait_v1(PSI_cond_locker* locker, int rc) { PSI_cond_locker_state *state= reinterpret_cast<PSI_cond_locker_state*> (locker); assert(state != NULL); ulonglong timer_end= 0; ulonglong wait_time= 0; PFS_cond *cond= reinterpret_cast<PFS_cond *> (state->m_cond); /* PFS_mutex *mutex= reinterpret_cast<PFS_mutex *> (state->m_mutex); */ if (state->m_flags & STATE_FLAG_TIMED) { timer_end= state->m_timer(); wait_time= timer_end - state->m_timer_start; /* Aggregate to EVENTS_WAITS_SUMMARY_BY_INSTANCE (timed) */ cond->m_cond_stat.m_wait_stat.aggregate_value(wait_time); } else { /* Aggregate to EVENTS_WAITS_SUMMARY_BY_INSTANCE (counted) */ cond->m_cond_stat.m_wait_stat.aggregate_counted(); } if (state->m_flags & STATE_FLAG_THREAD) { PFS_thread *thread= reinterpret_cast<PFS_thread *> (state->m_thread); assert(thread != NULL); PFS_single_stat *event_name_array; event_name_array= thread->write_instr_class_waits_stats(); uint index= cond->m_class->m_event_name_index; if (state->m_flags & STATE_FLAG_TIMED) { /* Aggregate to EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME (timed) */ event_name_array[index].aggregate_value(wait_time); } else { /* Aggregate to EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME (counted) */ event_name_array[index].aggregate_counted(); } if (state->m_flags & STATE_FLAG_EVENT) { PFS_events_waits *wait= reinterpret_cast<PFS_events_waits*> (state->m_wait); assert(wait != NULL); wait->m_timer_end= timer_end; wait->m_end_event_id= thread->m_event_id; if (thread->m_flag_events_waits_history) insert_events_waits_history(thread, wait); if (thread->m_flag_events_waits_history_long) insert_events_waits_history_long(wait); thread->m_events_waits_current--; assert(wait == thread->m_events_waits_current); } } }
O0
cpp
pfs_end_cond_wait_v1: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq $0x0, -0x20(%rbp) movq $0x0, -0x28(%rbp) movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x5167f movq -0x18(%rbp), %rax callq *0x28(%rax) movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq 0x20(%rcx), %rax movq %rax, -0x28(%rbp) movq -0x30(%rbp), %rdi addq $0x20, %rdi movq -0x28(%rbp), %rsi callq 0x56a80 jmp 0x5168c movq -0x30(%rbp), %rdi addq $0x20, %rdi callq 0x569c0 movq -0x18(%rbp), %rax movl (%rax), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x51783 movq -0x18(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rdi callq 0x3e8c0 movq %rax, -0x40(%rbp) movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movl 0x10(%rax), %eax movl %eax, -0x44(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x516ec movq -0x40(%rbp), %rdi movl -0x44(%rbp), %eax shlq $0x5, %rax addq %rax, %rdi movq -0x28(%rbp), %rsi callq 0x56a80 jmp 0x516ff movq -0x40(%rbp), %rdi movl -0x44(%rbp), %eax shlq $0x5, %rax addq %rax, %rdi callq 0x569c0 movq -0x18(%rbp), %rax movl (%rax), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x51781 movq -0x18(%rbp), %rax movq 0x30(%rax), %rax movq %rax, -0x50(%rbp) movq -0x20(%rbp), %rcx movq -0x50(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x38(%rbp), %rax movq 0x7f8(%rax), %rcx movq -0x50(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x38(%rbp), %rax testb $0x1, 0x7e2(%rax) je 0x51752 movq -0x38(%rbp), %rdi movq -0x50(%rbp), %rsi callq 0x351b0 movq -0x38(%rbp), %rax testb $0x1, 0x7e3(%rax) je 0x51768 movq -0x50(%rbp), %rdi callq 0x35280 movq -0x38(%rbp), %rax movq 0x7f0(%rax), %rcx addq $-0xb0, %rcx movq %rcx, 0x7f0(%rax) jmp 0x51783 addq $0x50, %rsp popq %rbp retq nopl (%rax)
pfs_end_cond_wait_v1: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov [rbp+var_20], 0 mov [rbp+var_28], 0 mov rax, [rbp+var_18] mov rax, [rax+8] mov [rbp+var_30], rax mov rax, [rbp+var_18] mov eax, [rax] and eax, 1 cmp eax, 0 jz short loc_5167F mov rax, [rbp+var_18] call qword ptr [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, [rcx+20h] mov [rbp+var_28], rax mov rdi, [rbp+var_30] add rdi, 20h ; ' '; this mov rsi, [rbp+var_28]; unsigned __int64 call _ZN15PFS_single_stat15aggregate_valueEy; PFS_single_stat::aggregate_value(ulong long) jmp short loc_5168C loc_5167F: mov rdi, [rbp+var_30] add rdi, 20h ; ' '; this call _ZN15PFS_single_stat17aggregate_countedEv; PFS_single_stat::aggregate_counted(void) loc_5168C: mov rax, [rbp+var_18] mov eax, [rax] and eax, 2 cmp eax, 0 jz loc_51783 mov rax, [rbp+var_18] mov rax, [rax+18h] mov [rbp+var_38], rax mov rdi, [rbp+var_38]; this call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void) mov [rbp+var_40], rax mov rax, [rbp+var_30] mov rax, [rax+18h] mov eax, [rax+10h] mov [rbp+var_44], eax mov rax, [rbp+var_18] mov eax, [rax] and eax, 1 cmp eax, 0 jz short loc_516EC mov rdi, [rbp+var_40] mov eax, [rbp+var_44] shl rax, 5 add rdi, rax; this mov rsi, [rbp+var_28]; unsigned __int64 call _ZN15PFS_single_stat15aggregate_valueEy; PFS_single_stat::aggregate_value(ulong long) jmp short loc_516FF loc_516EC: mov rdi, [rbp+var_40] mov eax, [rbp+var_44] shl rax, 5 add rdi, rax; this call _ZN15PFS_single_stat17aggregate_countedEv; PFS_single_stat::aggregate_counted(void) loc_516FF: mov rax, [rbp+var_18] mov eax, [rax] and eax, 4 cmp eax, 0 jz short loc_51781 mov rax, [rbp+var_18] mov rax, [rax+30h] mov [rbp+var_50], rax mov rcx, [rbp+var_20] mov rax, [rbp+var_50] mov [rax+40h], rcx mov rax, [rbp+var_38] mov rcx, [rax+7F8h] mov rax, [rbp+var_50] mov [rax+10h], rcx mov rax, [rbp+var_38] test byte ptr [rax+7E2h], 1 jz short loc_51752 mov rdi, [rbp+var_38] mov rsi, [rbp+var_50] call _Z27insert_events_waits_historyP10PFS_threadP16PFS_events_waits; insert_events_waits_history(PFS_thread *,PFS_events_waits *) loc_51752: mov rax, [rbp+var_38] test byte ptr [rax+7E3h], 1 jz short loc_51768 mov rdi, [rbp+var_50] call _Z32insert_events_waits_history_longP16PFS_events_waits; insert_events_waits_history_long(PFS_events_waits *) loc_51768: mov rax, [rbp+var_38] mov rcx, [rax+7F0h] add rcx, 0FFFFFFFFFFFFFF50h mov [rax+7F0h], rcx loc_51781: jmp short $+2 loc_51783: add rsp, 50h pop rbp retn
PFS_connection_slice * pfs_end_cond_wait_v1(long long a1) { PFS_connection_slice *result; // rax long long v2; // [rsp+0h] [rbp-50h] unsigned int v3; // [rsp+Ch] [rbp-44h] long long v4; // [rsp+10h] [rbp-40h] PFS_connection_slice *v5; // [rsp+18h] [rbp-38h] long long v6; // [rsp+20h] [rbp-30h] unsigned long long v7; // [rsp+28h] [rbp-28h] long long v8; // [rsp+30h] [rbp-20h] v8 = 0LL; v7 = 0LL; v6 = *(_QWORD *)(a1 + 8); if ( (*(_DWORD *)a1 & 1) != 0 ) { v8 = (*(long long (**)(void))(a1 + 40))(); v7 = v8 - *(_QWORD *)(a1 + 32); PFS_single_stat::aggregate_value((PFS_single_stat *)(v6 + 32), v7); } else { PFS_single_stat::aggregate_counted((PFS_single_stat *)(v6 + 32)); } result = (PFS_connection_slice *)(*(_DWORD *)a1 & 2); if ( (_DWORD)result ) { v5 = *(PFS_connection_slice **)(a1 + 24); v4 = PFS_connection_slice::write_instr_class_waits_stats(v5); v3 = *(_DWORD *)(*(_QWORD *)(v6 + 24) + 16LL); if ( (*(_DWORD *)a1 & 1) != 0 ) PFS_single_stat::aggregate_value((PFS_single_stat *)(32LL * v3 + v4), v7); else PFS_single_stat::aggregate_counted((PFS_single_stat *)(32LL * v3 + v4)); result = (PFS_connection_slice *)(*(_DWORD *)a1 & 4); if ( (_DWORD)result ) { v2 = *(_QWORD *)(a1 + 48); *(_QWORD *)(v2 + 64) = v8; *(_QWORD *)(v2 + 16) = *((_QWORD *)v5 + 255); if ( (*((_BYTE *)v5 + 2018) & 1) != 0 ) insert_events_waits_history((long long)v5, v2); if ( (*((_BYTE *)v5 + 2019) & 1) != 0 ) insert_events_waits_history_long(v2); result = v5; *((_QWORD *)v5 + 254) -= 176LL; } } return result; }
pfs_end_cond_wait_v1: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV qword ptr [RBP + -0x20],0x0 MOV qword ptr [RBP + -0x28],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] AND EAX,0x1 CMP EAX,0x0 JZ 0x0015167f MOV RAX,qword ptr [RBP + -0x18] CALL qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,qword ptr [RCX + 0x20] MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x20 MOV RSI,qword ptr [RBP + -0x28] CALL 0x00156a80 JMP 0x0015168c LAB_0015167f: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x20 CALL 0x001569c0 LAB_0015168c: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] AND EAX,0x2 CMP EAX,0x0 JZ 0x00151783 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x38] CALL 0x0013e8c0 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV EAX,dword ptr [RAX + 0x10] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] AND EAX,0x1 CMP EAX,0x0 JZ 0x001516ec MOV RDI,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBP + -0x44] SHL RAX,0x5 ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x28] CALL 0x00156a80 JMP 0x001516ff LAB_001516ec: MOV RDI,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBP + -0x44] SHL RAX,0x5 ADD RDI,RAX CALL 0x001569c0 LAB_001516ff: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] AND EAX,0x4 CMP EAX,0x0 JZ 0x00151781 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x50],RAX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x7f8] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x38] TEST byte ptr [RAX + 0x7e2],0x1 JZ 0x00151752 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x50] CALL 0x001351b0 LAB_00151752: MOV RAX,qword ptr [RBP + -0x38] TEST byte ptr [RAX + 0x7e3],0x1 JZ 0x00151768 MOV RDI,qword ptr [RBP + -0x50] CALL 0x00135280 LAB_00151768: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x7f0] ADD RCX,-0xb0 MOV qword ptr [RAX + 0x7f0],RCX LAB_00151781: JMP 0x00151783 LAB_00151783: ADD RSP,0x50 POP RBP RET
void pfs_end_cond_wait_v1(uint *param_1) { uint uVar1; long lVar2; PFS_connection_slice *this; PFS_events_waits *pPVar3; long lVar4; ulonglong local_30; long local_28; local_28 = 0; local_30 = 0; lVar2 = *(long *)(param_1 + 2); if ((*param_1 & 1) == 0) { PFS_single_stat::aggregate_counted((PFS_single_stat *)(lVar2 + 0x20)); } else { local_28 = (**(code **)(param_1 + 10))(); local_30 = local_28 - *(long *)(param_1 + 8); PFS_single_stat::aggregate_value((PFS_single_stat *)(lVar2 + 0x20),local_30); } if ((*param_1 & 2) != 0) { this = *(PFS_connection_slice **)(param_1 + 6); lVar4 = PFS_connection_slice::write_instr_class_waits_stats(this); uVar1 = *(uint *)(*(long *)(lVar2 + 0x18) + 0x10); if ((*param_1 & 1) == 0) { PFS_single_stat::aggregate_counted((PFS_single_stat *)(lVar4 + (ulong)uVar1 * 0x20)); } else { PFS_single_stat::aggregate_value((PFS_single_stat *)(lVar4 + (ulong)uVar1 * 0x20),local_30); } if ((*param_1 & 4) != 0) { pPVar3 = *(PFS_events_waits **)(param_1 + 0xc); *(long *)(pPVar3 + 0x40) = local_28; *(int8 *)(pPVar3 + 0x10) = *(int8 *)(this + 0x7f8); if (((byte)this[0x7e2] & 1) != 0) { insert_events_waits_history((PFS_thread *)this,pPVar3); } if (((byte)this[0x7e3] & 1) != 0) { insert_events_waits_history_long(pPVar3); } *(long *)(this + 0x7f0) = *(long *)(this + 0x7f0) + -0xb0; } } return; }
29,641
my_string_repertoire_8bit
eloqsql/strings/ctype.c
uint my_string_repertoire_8bit(CHARSET_INFO *cs, const char *str, size_t length) { const char *strend; if ((cs->state & MY_CS_NONASCII) && length > 0) return MY_REPERTOIRE_UNICODE30; for (strend= str + length; str < strend; str++) { if (((uchar) *str) > 0x7F) return MY_REPERTOIRE_UNICODE30; } return MY_REPERTOIRE_ASCII; }
O0
c
my_string_repertoire_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0xc(%rax), %eax andl $0x2000, %eax # imm = 0x2000 cmpl $0x0, %eax je 0x7d331 cmpq $0x0, -0x20(%rbp) jbe 0x7d331 movl $0x3, -0x4(%rbp) jmp 0x7d373 movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax cmpq -0x28(%rbp), %rax jae 0x7d36c movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0x7f, %eax jle 0x7d35c movl $0x3, -0x4(%rbp) jmp 0x7d373 jmp 0x7d35e movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x7d33d movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax,%rax)
my_string_repertoire_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov eax, [rax+0Ch] and eax, 2000h cmp eax, 0 jz short loc_7D331 cmp [rbp+var_20], 0 jbe short loc_7D331 mov [rbp+var_4], 3 jmp short loc_7D373 loc_7D331: mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_28], rax loc_7D33D: mov rax, [rbp+var_18] cmp rax, [rbp+var_28] jnb short loc_7D36C mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 7Fh jle short loc_7D35C mov [rbp+var_4], 3 jmp short loc_7D373 loc_7D35C: jmp short $+2 loc_7D35E: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_7D33D loc_7D36C: mov [rbp+var_4], 1 loc_7D373: mov eax, [rbp+var_4] pop rbp retn
long long my_string_repertoire_8bit(long long a1, unsigned __int8 *a2, long long a3) { unsigned __int8 *v4; // [rsp+10h] [rbp-18h] v4 = a2; if ( (*(_DWORD *)(a1 + 12) & 0x2000) != 0 && a3 ) { return 3; } else { while ( v4 < &a2[a3] ) { if ( *v4 > 0x7Fu ) return 3; ++v4; } return 1; } }
my_string_repertoire_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] AND EAX,0x2000 CMP EAX,0x0 JZ 0x0017d331 CMP qword ptr [RBP + -0x20],0x0 JBE 0x0017d331 MOV dword ptr [RBP + -0x4],0x3 JMP 0x0017d373 LAB_0017d331: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x28],RAX LAB_0017d33d: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x28] JNC 0x0017d36c MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0x7f JLE 0x0017d35c MOV dword ptr [RBP + -0x4],0x3 JMP 0x0017d373 LAB_0017d35c: JMP 0x0017d35e LAB_0017d35e: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0017d33d LAB_0017d36c: MOV dword ptr [RBP + -0x4],0x1 LAB_0017d373: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_string_repertoire_8bit(long param_1,byte *param_2,long param_3) { byte *local_20; int4 local_c; if (((*(uint *)(param_1 + 0xc) & 0x2000) == 0) || (param_3 == 0)) { for (local_20 = param_2; local_20 < param_2 + param_3; local_20 = local_20 + 1) { if (0x7f < *local_20) { return 3; } } local_c = 1; } else { local_c = 3; } return local_c; }
29,642
r3d_project_sphere_bounding_box
r3d/src/details/r3d_projection.c
Rectangle r3d_project_sphere_bounding_box(Vector3 center, float radius, Vector3 viewPos, Matrix viewProj, int screenWidth, int screenHeight) { Rectangle boundingBox = { 0 }; // If the camera is inside the projected sphere, assume the entire screen is affected. // This is not entirely accurate, but the result would be the same if we performed // the full projection, with a potential additional margin of error. if (r3d_collision_check_point_in_sphere(viewPos, center, radius)) { boundingBox.width = (float)screenWidth; boundingBox.height = (float)screenHeight; return boundingBox; } // Create 8 points representing the corners of a cube that encloses the sphere. Vector3 points[8]; points[0] = (Vector3) { center.x - radius, center.y - radius, center.z - radius }; points[1] = (Vector3) { center.x + radius, center.y - radius, center.z - radius }; points[2] = (Vector3) { center.x - radius, center.y + radius, center.z - radius }; points[3] = (Vector3) { center.x + radius, center.y + radius, center.z - radius }; points[4] = (Vector3) { center.x - radius, center.y - radius, center.z + radius }; points[5] = (Vector3) { center.x + radius, center.y - radius, center.z + radius }; points[6] = (Vector3) { center.x - radius, center.y + radius, center.z + radius }; points[7] = (Vector3) { center.x + radius, center.y + radius, center.z + radius }; // Initialize min/max values for computing the bounding rectangle. float minX = (float)screenWidth; float minY = (float)screenHeight; float maxX = 0, maxY = 0; // Project each point and determine the min/max screen coordinates. for (int i = 0; i < 8; i++) { r3d_project_point_result_t result = r3d_project_point( points[i], viewProj, screenWidth, screenHeight ); // Ignore points that are behind the near plane. if (result.outNear) continue; if (result.position.x < minX) minX = result.position.x; if (result.position.x > maxX) maxX = result.position.x; if (result.position.y < minY) minY = result.position.y; if (result.position.y > maxY) maxY = result.position.y; } // Construct the bounding rectangle using the computed min/max values. boundingBox.x = minX; boundingBox.y = minY; boundingBox.width = maxX - minX; boundingBox.height = maxY - minY; return boundingBox; }
O0
c
r3d_project_sphere_bounding_box: pushq %rbp movq %rsp, %rbp subq $0x1d0, %rsp # imm = 0x1D0 leaq 0x10(%rbp), %rax movq %rax, -0x188(%rbp) movlpd %xmm0, -0x30(%rbp) movss %xmm1, -0x28(%rbp) movl -0x28(%rbp), %eax movl %eax, -0x18(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x20(%rbp) movlpd %xmm3, -0x50(%rbp) movss %xmm4, -0x48(%rbp) movl -0x48(%rbp), %eax movl %eax, -0x38(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x40(%rbp) movss %xmm2, -0x54(%rbp) movl %edi, -0x58(%rbp) movl %esi, -0x5c(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, -0x10(%rbp) movss -0x54(%rbp), %xmm4 movl -0x38(%rbp), %eax movl %eax, -0x68(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x70(%rbp) movsd -0x70(%rbp), %xmm0 movss -0x68(%rbp), %xmm1 movl -0x18(%rbp), %eax movl %eax, -0x78(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x80(%rbp) movsd -0x80(%rbp), %xmm2 movss -0x78(%rbp), %xmm3 callq 0x172380 testb $0x1, %al jne 0x170d28 jmp 0x170d41 cvtsi2ssl -0x58(%rbp), %xmm0 movss %xmm0, -0x8(%rbp) cvtsi2ssl -0x5c(%rbp), %xmm0 movss %xmm0, -0x4(%rbp) jmp 0x17118e movss -0x20(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0xec(%rbp) movss -0x1c(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0xe8(%rbp) movss -0x18(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0xe4(%rbp) movq -0xec(%rbp), %rax movq %rax, -0xe0(%rbp) movl -0xe4(%rbp), %eax movl %eax, -0xd8(%rbp) movss -0x20(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0xf8(%rbp) movss -0x1c(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0xf4(%rbp) movss -0x18(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0xf0(%rbp) movq -0xf8(%rbp), %rax movq %rax, -0xd4(%rbp) movl -0xf0(%rbp), %eax movl %eax, -0xcc(%rbp) movss -0x20(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0x104(%rbp) movss -0x1c(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x100(%rbp) movss -0x18(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0xfc(%rbp) movq -0x104(%rbp), %rax movq %rax, -0xc8(%rbp) movl -0xfc(%rbp), %eax movl %eax, -0xc0(%rbp) movss -0x20(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x110(%rbp) movss -0x1c(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x10c(%rbp) movss -0x18(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0x108(%rbp) movq -0x110(%rbp), %rax movq %rax, -0xbc(%rbp) movl -0x108(%rbp), %eax movl %eax, -0xb4(%rbp) movss -0x20(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0x11c(%rbp) movss -0x1c(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0x118(%rbp) movss -0x18(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x114(%rbp) movq -0x11c(%rbp), %rax movq %rax, -0xb0(%rbp) movl -0x114(%rbp), %eax movl %eax, -0xa8(%rbp) movss -0x20(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x128(%rbp) movss -0x1c(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0x124(%rbp) movss -0x18(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x120(%rbp) movq -0x128(%rbp), %rax movq %rax, -0xa4(%rbp) movl -0x120(%rbp), %eax movl %eax, -0x9c(%rbp) movss -0x20(%rbp), %xmm0 subss -0x54(%rbp), %xmm0 movss %xmm0, -0x134(%rbp) movss -0x1c(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x130(%rbp) movss -0x18(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x12c(%rbp) movq -0x134(%rbp), %rax movq %rax, -0x98(%rbp) movl -0x12c(%rbp), %eax movl %eax, -0x90(%rbp) movss -0x20(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x140(%rbp) movss -0x1c(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x13c(%rbp) movss -0x18(%rbp), %xmm0 addss -0x54(%rbp), %xmm0 movss %xmm0, -0x138(%rbp) movq -0x140(%rbp), %rax movq %rax, -0x8c(%rbp) movl -0x138(%rbp), %eax movl %eax, -0x84(%rbp) cvtsi2ssl -0x58(%rbp), %xmm0 movss %xmm0, -0x144(%rbp) cvtsi2ssl -0x5c(%rbp), %xmm0 movss %xmm0, -0x148(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x14c(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -0x150(%rbp) movl $0x0, -0x154(%rbp) cmpl $0x8, -0x154(%rbp) jge 0x17114a movq -0x188(%rbp), %rax movslq -0x154(%rbp), %rcx leaq (%rcx,%rcx,2), %rcx movl -0x58(%rbp), %edi movl -0x5c(%rbp), %esi movl -0xd8(%rbp,%rcx,4), %edx movl %edx, -0x168(%rbp) movq -0xe0(%rbp,%rcx,4), %rcx movq %rcx, -0x170(%rbp) movsd -0x170(%rbp), %xmm0 movss -0x168(%rbp), %xmm1 movups (%rax), %xmm2 movups 0x10(%rax), %xmm3 movups 0x20(%rax), %xmm4 movups 0x30(%rax), %xmm5 movq %rsp, %rax movups %xmm5, 0x30(%rax) movups %xmm4, 0x20(%rax) movups %xmm3, 0x10(%rax) movups %xmm2, (%rax) callq 0x170a50 movl %eax, -0x178(%rbp) movlpd %xmm0, -0x180(%rbp) movq -0x180(%rbp), %rax movq %rax, -0x160(%rbp) movl -0x178(%rbp), %eax movl %eax, -0x158(%rbp) testb $0x1, -0x157(%rbp) je 0x1710a8 jmp 0x171136 movss -0x160(%rbp), %xmm1 movss -0x144(%rbp), %xmm0 ucomiss %xmm1, %xmm0 jbe 0x1710cd movss -0x160(%rbp), %xmm0 movss %xmm0, -0x144(%rbp) movss -0x160(%rbp), %xmm0 ucomiss -0x14c(%rbp), %xmm0 jbe 0x1710ee movss -0x160(%rbp), %xmm0 movss %xmm0, -0x14c(%rbp) movss -0x15c(%rbp), %xmm1 movss -0x148(%rbp), %xmm0 ucomiss %xmm1, %xmm0 jbe 0x171113 movss -0x15c(%rbp), %xmm0 movss %xmm0, -0x148(%rbp) movss -0x15c(%rbp), %xmm0 ucomiss -0x150(%rbp), %xmm0 jbe 0x171134 movss -0x15c(%rbp), %xmm0 movss %xmm0, -0x150(%rbp) jmp 0x171136 movl -0x154(%rbp), %eax addl $0x1, %eax movl %eax, -0x154(%rbp) jmp 0x170ffb movss -0x144(%rbp), %xmm0 movss %xmm0, -0x10(%rbp) movss -0x148(%rbp), %xmm0 movss %xmm0, -0xc(%rbp) movss -0x14c(%rbp), %xmm0 subss -0x144(%rbp), %xmm0 movss %xmm0, -0x8(%rbp) movss -0x150(%rbp), %xmm0 subss -0x148(%rbp), %xmm0 movss %xmm0, -0x4(%rbp) movsd -0x10(%rbp), %xmm0 movsd -0x8(%rbp), %xmm1 addq $0x1d0, %rsp # imm = 0x1D0 popq %rbp retq nopw %cs:(%rax,%rax)
r3d_project_sphere_bounding_box: push rbp mov rbp, rsp sub rsp, 1D0h lea rax, [rbp+arg_0] mov [rbp+var_188], rax movlpd [rbp+var_30], xmm0 movss [rbp+var_28], xmm1 mov eax, [rbp+var_28] mov [rbp+var_18], eax mov rax, [rbp+var_30] mov [rbp+var_20], rax movlpd [rbp+var_50], xmm3 movss [rbp+var_48], xmm4 mov eax, [rbp+var_48] mov [rbp+var_38], eax mov rax, [rbp+var_50] mov [rbp+var_40], rax movss [rbp+var_54], xmm2 mov [rbp+var_58], edi mov [rbp+var_5C], esi xorps xmm0, xmm0 movaps [rbp+var_10], xmm0 movss xmm4, [rbp+var_54] mov eax, [rbp+var_38] mov [rbp+var_68], eax mov rax, [rbp+var_40] mov [rbp+var_70], rax movsd xmm0, [rbp+var_70] movss xmm1, [rbp+var_68] mov eax, [rbp+var_18] mov [rbp+var_78], eax mov rax, [rbp+var_20] mov [rbp+var_80], rax movsd xmm2, [rbp+var_80] movss xmm3, [rbp+var_78] call r3d_collision_check_point_in_sphere test al, 1 jnz short loc_170D28 jmp short loc_170D41 loc_170D28: cvtsi2ss xmm0, [rbp+var_58] movss dword ptr [rbp+var_10+8], xmm0 cvtsi2ss xmm0, [rbp+var_5C] movss dword ptr [rbp+var_10+0Ch], xmm0 jmp loc_17118E loc_170D41: movss xmm0, dword ptr [rbp+var_20] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_EC], xmm0 movss xmm0, dword ptr [rbp+var_20+4] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_EC+4], xmm0 movss xmm0, [rbp+var_18] subss xmm0, [rbp+var_54] movss [rbp+var_E4], xmm0 mov rax, [rbp+var_EC] mov [rbp+var_E0], rax mov eax, [rbp+var_E4] mov [rbp+var_D8], eax movss xmm0, dword ptr [rbp+var_20] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_F8], xmm0 movss xmm0, dword ptr [rbp+var_20+4] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_F8+4], xmm0 movss xmm0, [rbp+var_18] subss xmm0, [rbp+var_54] movss [rbp+var_F0], xmm0 mov rax, [rbp+var_F8] mov [rbp+var_D4], rax mov eax, [rbp+var_F0] mov [rbp+var_CC], eax movss xmm0, dword ptr [rbp+var_20] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_104], xmm0 movss xmm0, dword ptr [rbp+var_20+4] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_104+4], xmm0 movss xmm0, [rbp+var_18] subss xmm0, [rbp+var_54] movss [rbp+var_FC], xmm0 mov rax, [rbp+var_104] mov [rbp+var_C8], rax mov eax, [rbp+var_FC] mov [rbp+var_C0], eax movss xmm0, dword ptr [rbp+var_20] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_110], xmm0 movss xmm0, dword ptr [rbp+var_20+4] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_110+4], xmm0 movss xmm0, [rbp+var_18] subss xmm0, [rbp+var_54] movss [rbp+var_108], xmm0 mov rax, [rbp+var_110] mov [rbp+var_BC], rax mov eax, [rbp+var_108] mov [rbp+var_B4], eax movss xmm0, dword ptr [rbp+var_20] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_11C], xmm0 movss xmm0, dword ptr [rbp+var_20+4] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_11C+4], xmm0 movss xmm0, [rbp+var_18] addss xmm0, [rbp+var_54] movss [rbp+var_114], xmm0 mov rax, [rbp+var_11C] mov [rbp+var_B0], rax mov eax, [rbp+var_114] mov [rbp+var_A8], eax movss xmm0, dword ptr [rbp+var_20] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_128], xmm0 movss xmm0, dword ptr [rbp+var_20+4] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_128+4], xmm0 movss xmm0, [rbp+var_18] addss xmm0, [rbp+var_54] movss [rbp+var_120], xmm0 mov rax, [rbp+var_128] mov [rbp+var_A4], rax mov eax, [rbp+var_120] mov [rbp+var_9C], eax movss xmm0, dword ptr [rbp+var_20] subss xmm0, [rbp+var_54] movss dword ptr [rbp+var_134], xmm0 movss xmm0, dword ptr [rbp+var_20+4] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_134+4], xmm0 movss xmm0, [rbp+var_18] addss xmm0, [rbp+var_54] movss [rbp+var_12C], xmm0 mov rax, [rbp+var_134] mov [rbp+var_98], rax mov eax, [rbp+var_12C] mov [rbp+var_90], eax movss xmm0, dword ptr [rbp+var_20] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_140], xmm0 movss xmm0, dword ptr [rbp+var_20+4] addss xmm0, [rbp+var_54] movss dword ptr [rbp+var_140+4], xmm0 movss xmm0, [rbp+var_18] addss xmm0, [rbp+var_54] movss [rbp+var_138], xmm0 mov rax, [rbp+var_140] mov [rbp+var_8C], rax mov eax, [rbp+var_138] mov [rbp+var_84], eax cvtsi2ss xmm0, [rbp+var_58] movss [rbp+var_144], xmm0 cvtsi2ss xmm0, [rbp+var_5C] movss [rbp+var_148], xmm0 xorps xmm0, xmm0 movss [rbp+var_14C], xmm0 xorps xmm0, xmm0 movss [rbp+var_150], xmm0 mov [rbp+var_154], 0 loc_170FFB: cmp [rbp+var_154], 8 jge loc_17114A mov rax, [rbp+var_188] movsxd rcx, [rbp+var_154] lea rcx, [rcx+rcx*2] mov edi, [rbp+var_58] mov esi, [rbp+var_5C] mov edx, [rbp+rcx*4+var_D8] mov [rbp+var_168], edx mov rcx, [rbp+rcx*4+var_E0] mov [rbp+var_170], rcx movsd xmm0, [rbp+var_170] movss xmm1, [rbp+var_168] movups xmm2, xmmword ptr [rax] movups xmm3, xmmword ptr [rax+10h] movups xmm4, xmmword ptr [rax+20h] movups xmm5, xmmword ptr [rax+30h] mov rax, rsp movups xmmword ptr [rax+30h], xmm5 movups xmmword ptr [rax+20h], xmm4 movups xmmword ptr [rax+10h], xmm3 movups xmmword ptr [rax], xmm2 call r3d_project_point mov [rbp+var_178], eax movlpd [rbp+var_180], xmm0 mov rax, [rbp+var_180] mov [rbp+var_160], rax mov eax, [rbp+var_178] mov [rbp+var_158], eax test byte ptr [rbp+var_158+1], 1 jz short loc_1710A8 jmp loc_171136 loc_1710A8: movss xmm1, dword ptr [rbp+var_160] movss xmm0, [rbp+var_144] ucomiss xmm0, xmm1 jbe short loc_1710CD movss xmm0, dword ptr [rbp+var_160] movss [rbp+var_144], xmm0 loc_1710CD: movss xmm0, dword ptr [rbp+var_160] ucomiss xmm0, [rbp+var_14C] jbe short loc_1710EE movss xmm0, dword ptr [rbp+var_160] movss [rbp+var_14C], xmm0 loc_1710EE: movss xmm1, dword ptr [rbp+var_160+4] movss xmm0, [rbp+var_148] ucomiss xmm0, xmm1 jbe short loc_171113 movss xmm0, dword ptr [rbp+var_160+4] movss [rbp+var_148], xmm0 loc_171113: movss xmm0, dword ptr [rbp+var_160+4] ucomiss xmm0, [rbp+var_150] jbe short loc_171134 movss xmm0, dword ptr [rbp+var_160+4] movss [rbp+var_150], xmm0 loc_171134: jmp short $+2 loc_171136: mov eax, [rbp+var_154] add eax, 1 mov [rbp+var_154], eax jmp loc_170FFB loc_17114A: movss xmm0, [rbp+var_144] movss dword ptr [rbp+var_10], xmm0 movss xmm0, [rbp+var_148] movss dword ptr [rbp+var_10+4], xmm0 movss xmm0, [rbp+var_14C] subss xmm0, [rbp+var_144] movss dword ptr [rbp+var_10+8], xmm0 movss xmm0, [rbp+var_150] subss xmm0, [rbp+var_148] movss dword ptr [rbp+var_10+0Ch], xmm0 loc_17118E: movsd xmm0, qword ptr [rbp+var_10] movsd xmm1, qword ptr [rbp+var_10+8] add rsp, 1D0h pop rbp retn
double r3d_project_sphere_bounding_box( int a1, int a2, double a3, float a4, float a5, double a6, float a7, long long a8, long long a9, long long a10, long long a11, long long a12, long long a13, long long a14, long long a15, long long a16, long long a17, long long a18, long long a19) { long long v19; // r8 long long v20; // r9 double v22; // [rsp+70h] [rbp-160h] int i; // [rsp+7Ch] [rbp-154h] float v24; // [rsp+80h] [rbp-150h] float v25; // [rsp+84h] [rbp-14Ch] float v26; // [rsp+88h] [rbp-148h] float v27; // [rsp+8Ch] [rbp-144h] long long v28; // [rsp+90h] [rbp-140h] long long v29; // [rsp+9Ch] [rbp-134h] long long v30; // [rsp+A8h] [rbp-128h] long long v31; // [rsp+B4h] [rbp-11Ch] long long v32; // [rsp+C0h] [rbp-110h] long long v33; // [rsp+CCh] [rbp-104h] long long v34; // [rsp+D8h] [rbp-F8h] long long v35; // [rsp+E4h] [rbp-ECh] long long v36; // [rsp+F0h] [rbp-E0h] float v37; // [rsp+F8h] [rbp-D8h] long long v38; // [rsp+FCh] [rbp-D4h] float v39; // [rsp+104h] [rbp-CCh] long long v40; // [rsp+108h] [rbp-C8h] float v41; // [rsp+110h] [rbp-C0h] long long v42; // [rsp+114h] [rbp-BCh] float v43; // [rsp+11Ch] [rbp-B4h] long long v44; // [rsp+120h] [rbp-B0h] float v45; // [rsp+128h] [rbp-A8h] long long v46; // [rsp+12Ch] [rbp-A4h] float v47; // [rsp+134h] [rbp-9Ch] long long v48; // [rsp+138h] [rbp-98h] float v49; // [rsp+140h] [rbp-90h] long long v50; // [rsp+144h] [rbp-8Ch] float v51; // [rsp+14Ch] [rbp-84h] double v52; // [rsp+150h] [rbp-80h] float v53; // [rsp+158h] [rbp-78h] double v54; // [rsp+160h] [rbp-70h] float v55; // [rsp+168h] [rbp-68h] int v56; // [rsp+174h] [rbp-5Ch] int v57; // [rsp+178h] [rbp-58h] float v58; // [rsp+17Ch] [rbp-54h] double v59; // [rsp+180h] [rbp-50h] float v60; // [rsp+188h] [rbp-48h] double v61; // [rsp+190h] [rbp-40h] float v62; // [rsp+198h] [rbp-38h] double v63; // [rsp+1A0h] [rbp-30h] float v64; // [rsp+1A8h] [rbp-28h] double v65; // [rsp+1B0h] [rbp-20h] float v66; // [rsp+1B8h] [rbp-18h] __int128 v67; // [rsp+1C0h] [rbp-10h] v63 = a3; v64 = a4; v66 = a4; v65 = a3; v59 = a6; v60 = a7; v62 = a7; v61 = a6; v58 = a5; v57 = a1; v56 = a2; v67 = 0LL; v55 = a7; v54 = a6; v53 = a4; v52 = a3; if ( (r3d_collision_check_point_in_sphere(a6, a7, a3, a4, a5) & 1) != 0 ) { *((float *)&v67 + 2) = (float)v57; *((float *)&v67 + 3) = (float)v56; } else { *(float *)&v35 = *(float *)&v65 - v58; *((float *)&v35 + 1) = *((float *)&v65 + 1) - v58; v36 = v35; v37 = v66 - v58; *(float *)&v34 = *(float *)&v65 + v58; *((float *)&v34 + 1) = *((float *)&v65 + 1) - v58; v38 = v34; v39 = v66 - v58; *(float *)&v33 = *(float *)&v65 - v58; *((float *)&v33 + 1) = *((float *)&v65 + 1) + v58; v40 = v33; v41 = v66 - v58; *(float *)&v32 = *(float *)&v65 + v58; *((float *)&v32 + 1) = *((float *)&v65 + 1) + v58; v42 = v32; v43 = v66 - v58; *(float *)&v31 = *(float *)&v65 - v58; *((float *)&v31 + 1) = *((float *)&v65 + 1) - v58; v44 = v31; v45 = v66 + v58; *(float *)&v30 = *(float *)&v65 + v58; *((float *)&v30 + 1) = *((float *)&v65 + 1) - v58; v46 = v30; v47 = v66 + v58; *(float *)&v29 = *(float *)&v65 - v58; *((float *)&v29 + 1) = *((float *)&v65 + 1) + v58; v48 = v29; v49 = v66 + v58; *(float *)&v28 = *(float *)&v65 + v58; *((float *)&v28 + 1) = *((float *)&v65 + 1) + v58; v50 = v28; v51 = v66 + v58; v27 = (float)v57; v26 = (float)v56; v25 = 0.0; v24 = 0.0; for ( i = 0; i < 8; ++i ) { v22 = *(double *)((char *)&v36 + 12 * i); if ( (r3d_project_point( v22, *(&v37 + 3 * i), (unsigned int)v57, (unsigned int)v56, *((unsigned int *)&v37 + 3 * i), *(long long *)&v22, v19, v20, a12, a13, a14, a15, a16, a17, a18, a19) & 0x100) == 0 ) { if ( v27 > *(float *)&v22 ) v27 = *(float *)&v22; if ( *(float *)&v22 > v25 ) v25 = *(float *)&v22; if ( v26 > *((float *)&v22 + 1) ) v26 = *((float *)&v22 + 1); if ( *((float *)&v22 + 1) > v24 ) v24 = *((float *)&v22 + 1); } } *(_QWORD *)&v67 = __PAIR64__(LODWORD(v26), LODWORD(v27)); *((float *)&v67 + 2) = v25 - v27; *((float *)&v67 + 3) = v24 - v26; } return *(double *)&v67; }
29,643
r3d_project_sphere_bounding_box
r3d/src/details/r3d_projection.c
Rectangle r3d_project_sphere_bounding_box(Vector3 center, float radius, Vector3 viewPos, Matrix viewProj, int screenWidth, int screenHeight) { Rectangle boundingBox = { 0 }; // If the camera is inside the projected sphere, assume the entire screen is affected. // This is not entirely accurate, but the result would be the same if we performed // the full projection, with a potential additional margin of error. if (r3d_collision_check_point_in_sphere(viewPos, center, radius)) { boundingBox.width = (float)screenWidth; boundingBox.height = (float)screenHeight; return boundingBox; } // Create 8 points representing the corners of a cube that encloses the sphere. Vector3 points[8]; points[0] = (Vector3) { center.x - radius, center.y - radius, center.z - radius }; points[1] = (Vector3) { center.x + radius, center.y - radius, center.z - radius }; points[2] = (Vector3) { center.x - radius, center.y + radius, center.z - radius }; points[3] = (Vector3) { center.x + radius, center.y + radius, center.z - radius }; points[4] = (Vector3) { center.x - radius, center.y - radius, center.z + radius }; points[5] = (Vector3) { center.x + radius, center.y - radius, center.z + radius }; points[6] = (Vector3) { center.x - radius, center.y + radius, center.z + radius }; points[7] = (Vector3) { center.x + radius, center.y + radius, center.z + radius }; // Initialize min/max values for computing the bounding rectangle. float minX = (float)screenWidth; float minY = (float)screenHeight; float maxX = 0, maxY = 0; // Project each point and determine the min/max screen coordinates. for (int i = 0; i < 8; i++) { r3d_project_point_result_t result = r3d_project_point( points[i], viewProj, screenWidth, screenHeight ); // Ignore points that are behind the near plane. if (result.outNear) continue; if (result.position.x < minX) minX = result.position.x; if (result.position.x > maxX) maxX = result.position.x; if (result.position.y < minY) minY = result.position.y; if (result.position.y > maxY) maxY = result.position.y; } // Construct the bounding rectangle using the computed min/max values. boundingBox.x = minX; boundingBox.y = minY; boundingBox.width = maxX - minX; boundingBox.height = maxY - minY; return boundingBox; }
O3
c
r3d_project_sphere_bounding_box: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xe0, %rsp movl %esi, %ebx movl %edi, %r14d movaps %xmm2, %xmm6 movaps %xmm1, %xmm5 movaps %xmm0, %xmm2 movaps %xmm3, %xmm0 movaps %xmm4, %xmm1 movaps %xmm2, -0x40(%rbp) movss %xmm5, -0x50(%rbp) movaps %xmm5, %xmm3 movss %xmm6, -0x30(%rbp) movaps %xmm6, %xmm4 callq 0xd0930 testb %al, %al je 0xcfd4e xorps %xmm1, %xmm1 cvtsi2ss %r14d, %xmm1 xorps %xmm0, %xmm0 cvtsi2ss %ebx, %xmm0 unpcklps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1] xorps %xmm0, %xmm0 jmp 0xcfeff leaq 0x10(%rbp), %r15 movaps -0x40(%rbp), %xmm5 movaps %xmm5, %xmm1 movss -0x30(%rbp), %xmm6 subss %xmm6, %xmm1 movaps %xmm5, %xmm0 shufps $0x55, %xmm5, %xmm0 # xmm0 = xmm0[1,1],xmm5[1,1] movaps %xmm0, %xmm2 subss %xmm6, %xmm2 movss -0x50(%rbp), %xmm4 movaps %xmm4, %xmm3 subss %xmm6, %xmm3 movss %xmm1, -0xb0(%rbp) movss %xmm2, -0xac(%rbp) movss %xmm3, -0xa8(%rbp) addss %xmm6, %xmm5 movss %xmm5, -0xa4(%rbp) movss %xmm2, -0xa0(%rbp) movss %xmm3, -0x9c(%rbp) addss %xmm6, %xmm0 movss %xmm1, -0x98(%rbp) movss %xmm0, -0x94(%rbp) movss %xmm3, -0x90(%rbp) movss %xmm5, -0x8c(%rbp) movss %xmm0, -0x88(%rbp) movss %xmm3, -0x84(%rbp) addss %xmm6, %xmm4 movss %xmm1, -0x80(%rbp) movss %xmm2, -0x7c(%rbp) movss %xmm4, -0x78(%rbp) movss %xmm5, -0x74(%rbp) movss %xmm2, -0x70(%rbp) movss %xmm4, -0x6c(%rbp) movss %xmm1, -0x68(%rbp) movss %xmm0, -0x64(%rbp) movss %xmm4, -0x60(%rbp) movss %xmm5, -0x5c(%rbp) xorps %xmm1, %xmm1 cvtsi2ss %r14d, %xmm1 movaps %xmm1, -0x40(%rbp) movss %xmm0, -0x58(%rbp) xorps %xmm0, %xmm0 cvtsi2ss %ebx, %xmm0 movaps %xmm0, -0x30(%rbp) movss %xmm4, -0x54(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, -0x50(%rbp) movl $0x8, %r12d movaps %xmm0, -0xc0(%rbp) movsd -0xb8(%rbp,%r12), %xmm0 movss -0xb0(%rbp,%r12), %xmm1 movups (%r15), %xmm2 movups 0x10(%r15), %xmm3 movups 0x20(%r15), %xmm4 movups 0x30(%r15), %xmm5 movups %xmm5, 0x30(%rsp) movups %xmm4, 0x20(%rsp) movups %xmm3, 0x10(%rsp) movups %xmm2, (%rsp) movl %r14d, %edi movl %ebx, %esi callq 0xcfbc0 btl $0x8, %eax jb 0xcfed0 movaps %xmm0, %xmm1 minss -0x40(%rbp), %xmm1 movaps %xmm0, %xmm2 maxss -0x50(%rbp), %xmm2 shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1] movaps %xmm0, %xmm3 minss -0x30(%rbp), %xmm3 maxss -0xc0(%rbp), %xmm0 movaps %xmm0, -0xc0(%rbp) movaps %xmm2, -0x50(%rbp) movaps %xmm3, -0x30(%rbp) movaps %xmm1, -0x40(%rbp) addq $0xc, %r12 cmpq $0x68, %r12 jne 0xcfe4f movaps -0x50(%rbp), %xmm1 movaps -0x40(%rbp), %xmm0 subss %xmm0, %xmm1 movaps -0x30(%rbp), %xmm2 unpcklps %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1] movaps -0xc0(%rbp), %xmm3 subss %xmm2, %xmm3 unpcklps %xmm3, %xmm1 # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1] addq $0xe0, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
r3d_project_sphere_bounding_box: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 0E0h mov ebx, esi mov r14d, edi movaps xmm6, xmm2 movaps xmm5, xmm1 movaps xmm2, xmm0 movaps xmm0, xmm3 movaps xmm1, xmm4 movaps [rbp+var_40], xmm2 movss dword ptr [rbp+var_50], xmm5 movaps xmm3, xmm5 movss dword ptr [rbp+var_30], xmm6 movaps xmm4, xmm6 call r3d_collision_check_point_in_sphere test al, al jz short loc_CFD4E xorps xmm1, xmm1 cvtsi2ss xmm1, r14d xorps xmm0, xmm0 cvtsi2ss xmm0, ebx unpcklps xmm1, xmm0 xorps xmm0, xmm0 jmp loc_CFEFF loc_CFD4E: lea r15, [rbp+arg_0] movaps xmm5, [rbp+var_40] movaps xmm1, xmm5 movss xmm6, dword ptr [rbp+var_30] subss xmm1, xmm6 movaps xmm0, xmm5 shufps xmm0, xmm5, 55h ; 'U' movaps xmm2, xmm0 subss xmm2, xmm6 movss xmm4, dword ptr [rbp+var_50] movaps xmm3, xmm4 subss xmm3, xmm6 movss [rbp+var_B0], xmm1 movss [rbp+var_AC], xmm2 movss [rbp+var_A8], xmm3 addss xmm5, xmm6 movss [rbp+var_A4], xmm5 movss [rbp+var_A0], xmm2 movss [rbp+var_9C], xmm3 addss xmm0, xmm6 movss [rbp+var_98], xmm1 movss [rbp+var_94], xmm0 movss [rbp+var_90], xmm3 movss [rbp+var_8C], xmm5 movss [rbp+var_88], xmm0 movss [rbp+var_84], xmm3 addss xmm4, xmm6 movss [rbp+var_80], xmm1 movss [rbp+var_7C], xmm2 movss [rbp+var_78], xmm4 movss [rbp+var_74], xmm5 movss [rbp+var_70], xmm2 movss [rbp+var_6C], xmm4 movss [rbp+var_68], xmm1 movss [rbp+var_64], xmm0 movss [rbp+var_60], xmm4 movss [rbp+var_5C], xmm5 xorps xmm1, xmm1 cvtsi2ss xmm1, r14d movaps [rbp+var_40], xmm1 movss [rbp+var_58], xmm0 xorps xmm0, xmm0 cvtsi2ss xmm0, ebx movaps [rbp+var_30], xmm0 movss [rbp+var_54], xmm4 xorps xmm0, xmm0 movaps [rbp+var_50], xmm0 mov r12d, 8 movaps [rbp+var_C0], xmm0 loc_CFE4F: movsd xmm0, qword ptr [rbp+r12+var_C0+8] movss xmm1, [rbp+r12+var_B0] movups xmm2, xmmword ptr [r15] movups xmm3, xmmword ptr [r15+10h] movups xmm4, xmmword ptr [r15+20h] movups xmm5, xmmword ptr [r15+30h] movups [rsp+100h+var_D0], xmm5 movups [rsp+100h+var_E0], xmm4 movups [rsp+100h+var_F0], xmm3 movups [rsp+100h+var_100], xmm2 mov edi, r14d mov esi, ebx call r3d_project_point bt eax, 8 jb short loc_CFED0 movaps xmm1, xmm0 minss xmm1, dword ptr [rbp+var_40] movaps xmm2, xmm0 maxss xmm2, dword ptr [rbp+var_50] shufps xmm0, xmm0, 55h ; 'U' movaps xmm3, xmm0 minss xmm3, dword ptr [rbp+var_30] maxss xmm0, dword ptr [rbp+var_C0] movaps [rbp+var_C0], xmm0 movaps [rbp+var_50], xmm2 movaps [rbp+var_30], xmm3 movaps [rbp+var_40], xmm1 loc_CFED0: add r12, 0Ch cmp r12, 68h ; 'h' jnz loc_CFE4F movaps xmm1, [rbp+var_50] movaps xmm0, [rbp+var_40] subss xmm1, xmm0 movaps xmm2, [rbp+var_30] unpcklps xmm0, xmm2 movaps xmm3, [rbp+var_C0] subss xmm3, xmm2 unpcklps xmm1, xmm3 loc_CFEFF: add rsp, 0E0h pop rbx pop r12 pop r14 pop r15 pop rbp retn
__m128 r3d_project_sphere_bounding_box( int a1, int a2, __m128 a3, double a4, double a5, double a6, double a7, long long a8, long long a9, long long a10, long long a11, long long a12, long long a13, long long a14, long long a15, long long a16, long long a17, long long a18, long long a19) { long long v19; // rdx long long v20; // rcx long long v21; // r8 long long v22; // r9 float v24; // xmm0_4 __m128 v25; // xmm1 __m128 v26; // xmm0 long long v27; // r12 __m128 v28; // xmm0 __int16 v29; // ax __m128 v30; // xmm1 __m128 v31; // xmm2 __m128 v32; // xmm0 __m128 v33; // xmm3 __m128 v34; // [rsp+40h] [rbp-C0h] float v35[14]; // [rsp+50h] [rbp-B0h] float v36; // [rsp+88h] [rbp-78h] float v37; // [rsp+8Ch] [rbp-74h] float v38; // [rsp+90h] [rbp-70h] float v39; // [rsp+94h] [rbp-6Ch] float v40; // [rsp+98h] [rbp-68h] float v41; // [rsp+9Ch] [rbp-64h] float v42; // [rsp+A0h] [rbp-60h] float v43; // [rsp+A4h] [rbp-5Ch] float v44; // [rsp+A8h] [rbp-58h] float v45; // [rsp+ACh] [rbp-54h] __m128 v46; // [rsp+B0h] [rbp-50h] __m128 v47; // [rsp+C0h] [rbp-40h] __m128 v48; // [rsp+D0h] [rbp-30h] v47 = a3; v46.m128_i32[0] = LODWORD(a4); v48.m128_i32[0] = LODWORD(a5); if ( (unsigned __int8)r3d_collision_check_point_in_sphere(a6, a7, *(double *)a3.m128_u64, a4, a5) ) { return (__m128)0LL; } else { v24 = _mm_shuffle_ps(v47, v47, 85).m128_f32[0]; v35[0] = v47.m128_f32[0] - v48.m128_f32[0]; v35[1] = v24 - v48.m128_f32[0]; v35[2] = v46.m128_f32[0] - v48.m128_f32[0]; v35[3] = v47.m128_f32[0] + v48.m128_f32[0]; v35[4] = v24 - v48.m128_f32[0]; v35[5] = v46.m128_f32[0] - v48.m128_f32[0]; v35[6] = v47.m128_f32[0] - v48.m128_f32[0]; v35[7] = v24 + v48.m128_f32[0]; v35[8] = v46.m128_f32[0] - v48.m128_f32[0]; v35[9] = v47.m128_f32[0] + v48.m128_f32[0]; v35[10] = v24 + v48.m128_f32[0]; v35[11] = v46.m128_f32[0] - v48.m128_f32[0]; v35[12] = v47.m128_f32[0] - v48.m128_f32[0]; v35[13] = v24 - v48.m128_f32[0]; v36 = v46.m128_f32[0] + v48.m128_f32[0]; v37 = v47.m128_f32[0] + v48.m128_f32[0]; v38 = v24 - v48.m128_f32[0]; v39 = v46.m128_f32[0] + v48.m128_f32[0]; v40 = v47.m128_f32[0] - v48.m128_f32[0]; v41 = v24 + v48.m128_f32[0]; v42 = v46.m128_f32[0] + v48.m128_f32[0]; v43 = v47.m128_f32[0] + v48.m128_f32[0]; v25 = 0LL; v25.m128_f32[0] = (float)a1; v47 = v25; v44 = v24 + v48.m128_f32[0]; v26 = 0LL; v26.m128_f32[0] = (float)a2; v48 = v26; v45 = v36; v46 = 0LL; v27 = 2LL; v34 = 0LL; do { v28 = r3d_project_point( a1, a2, (__m128)*(unsigned long long *)((char *)&v34.m128_u64[1] + v27 * 4), v35[v27], v19, v20, v21, v22, a12, a13, a14, a15, a16, a17, a18, a19); if ( (v29 & 0x100) == 0 ) { v30 = v28; v30.m128_f32[0] = fminf(v28.m128_f32[0], v47.m128_f32[0]); v31 = v28; v31.m128_f32[0] = fmaxf(v28.m128_f32[0], v46.m128_f32[0]); v32 = _mm_shuffle_ps(v28, v28, 85); v33 = v32; v33.m128_f32[0] = fminf(v32.m128_f32[0], v48.m128_f32[0]); v32.m128_f32[0] = fmaxf(v32.m128_f32[0], v34.m128_f32[0]); v34 = v32; v46 = v31; v48 = v33; v47 = v30; } v27 += 3LL; } while ( v27 != 26 ); return _mm_unpacklo_ps(v47, v48); } }
r3d_project_sphere_bounding_box: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xe0 MOV EBX,ESI MOV R14D,EDI MOVAPS XMM6,XMM2 MOVAPS XMM5,XMM1 MOVAPS XMM2,XMM0 MOVAPS XMM0,XMM3 MOVAPS XMM1,XMM4 MOVAPS xmmword ptr [RBP + -0x40],XMM2 MOVSS dword ptr [RBP + -0x50],XMM5 MOVAPS XMM3,XMM5 MOVSS dword ptr [RBP + -0x30],XMM6 MOVAPS XMM4,XMM6 CALL 0x001d0930 TEST AL,AL JZ 0x001cfd4e XORPS XMM1,XMM1 CVTSI2SS XMM1,R14D XORPS XMM0,XMM0 CVTSI2SS XMM0,EBX UNPCKLPS XMM1,XMM0 XORPS XMM0,XMM0 JMP 0x001cfeff LAB_001cfd4e: LEA R15,[RBP + 0x10] MOVAPS XMM5,xmmword ptr [RBP + -0x40] MOVAPS XMM1,XMM5 MOVSS XMM6,dword ptr [RBP + -0x30] SUBSS XMM1,XMM6 MOVAPS XMM0,XMM5 SHUFPS XMM0,XMM5,0x55 MOVAPS XMM2,XMM0 SUBSS XMM2,XMM6 MOVSS XMM4,dword ptr [RBP + -0x50] MOVAPS XMM3,XMM4 SUBSS XMM3,XMM6 MOVSS dword ptr [RBP + -0xb0],XMM1 MOVSS dword ptr [RBP + -0xac],XMM2 MOVSS dword ptr [RBP + -0xa8],XMM3 ADDSS XMM5,XMM6 MOVSS dword ptr [RBP + -0xa4],XMM5 MOVSS dword ptr [RBP + -0xa0],XMM2 MOVSS dword ptr [RBP + -0x9c],XMM3 ADDSS XMM0,XMM6 MOVSS dword ptr [RBP + -0x98],XMM1 MOVSS dword ptr [RBP + -0x94],XMM0 MOVSS dword ptr [RBP + -0x90],XMM3 MOVSS dword ptr [RBP + -0x8c],XMM5 MOVSS dword ptr [RBP + -0x88],XMM0 MOVSS dword ptr [RBP + -0x84],XMM3 ADDSS XMM4,XMM6 MOVSS dword ptr [RBP + -0x80],XMM1 MOVSS dword ptr [RBP + -0x7c],XMM2 MOVSS dword ptr [RBP + -0x78],XMM4 MOVSS dword ptr [RBP + -0x74],XMM5 MOVSS dword ptr [RBP + -0x70],XMM2 MOVSS dword ptr [RBP + -0x6c],XMM4 MOVSS dword ptr [RBP + -0x68],XMM1 MOVSS dword ptr [RBP + -0x64],XMM0 MOVSS dword ptr [RBP + -0x60],XMM4 MOVSS dword ptr [RBP + -0x5c],XMM5 XORPS XMM1,XMM1 CVTSI2SS XMM1,R14D MOVAPS xmmword ptr [RBP + -0x40],XMM1 MOVSS dword ptr [RBP + -0x58],XMM0 XORPS XMM0,XMM0 CVTSI2SS XMM0,EBX MOVAPS xmmword ptr [RBP + -0x30],XMM0 MOVSS dword ptr [RBP + -0x54],XMM4 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RBP + -0x50],XMM0 MOV R12D,0x8 MOVAPS xmmword ptr [RBP + -0xc0],XMM0 LAB_001cfe4f: MOVSD XMM0,qword ptr [RBP + R12*0x1 + -0xb8] MOVSS XMM1,dword ptr [RBP + R12*0x1 + -0xb0] MOVUPS XMM2,xmmword ptr [R15] MOVUPS XMM3,xmmword ptr [R15 + 0x10] MOVUPS XMM4,xmmword ptr [R15 + 0x20] MOVUPS XMM5,xmmword ptr [R15 + 0x30] MOVUPS xmmword ptr [RSP + 0x30],XMM5 MOVUPS xmmword ptr [RSP + 0x20],XMM4 MOVUPS xmmword ptr [RSP + 0x10],XMM3 MOVUPS xmmword ptr [RSP],XMM2 MOV EDI,R14D MOV ESI,EBX CALL 0x001cfbc0 BT EAX,0x8 JC 0x001cfed0 MOVAPS XMM1,XMM0 MINSS XMM1,dword ptr [RBP + -0x40] MOVAPS XMM2,XMM0 MAXSS XMM2,dword ptr [RBP + -0x50] SHUFPS XMM0,XMM0,0x55 MOVAPS XMM3,XMM0 MINSS XMM3,dword ptr [RBP + -0x30] MAXSS XMM0,dword ptr [RBP + -0xc0] MOVAPS xmmword ptr [RBP + -0xc0],XMM0 MOVAPS xmmword ptr [RBP + -0x50],XMM2 MOVAPS xmmword ptr [RBP + -0x30],XMM3 MOVAPS xmmword ptr [RBP + -0x40],XMM1 LAB_001cfed0: ADD R12,0xc CMP R12,0x68 JNZ 0x001cfe4f MOVAPS XMM1,xmmword ptr [RBP + -0x50] MOVAPS XMM0,xmmword ptr [RBP + -0x40] SUBSS XMM1,XMM0 MOVAPS XMM2,xmmword ptr [RBP + -0x30] UNPCKLPS XMM0,XMM2 MOVAPS XMM3,xmmword ptr [RBP + -0xc0] SUBSS XMM3,XMM2 UNPCKLPS XMM1,XMM3 LAB_001cfeff: ADD RSP,0xe0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
int8 r3d_project_sphere_bounding_box (int8 param_1,int4 param_2,int4 param_3,int4 param_4, int4 param_5,int param_6,int param_7) { float fVar1; char cVar2; uint uVar3; long lVar4; float extraout_XMM0_Da; float fVar5; float extraout_XMM0_Db; int4 in_XMM0_Dc; int4 extraout_XMM0_Dc; int4 in_XMM0_Dd; int4 extraout_XMM0_Dd; float fVar6; float fVar7; float fVar8; int8 uStack_c0; float local_b8 [4]; float local_a8; float local_a4; float local_a0; float local_9c; float local_98; float local_94; float local_90; float local_8c; float local_88; float local_84; float local_80; float local_7c; float local_78; float local_74; float local_70; float local_6c; float local_68; float local_64; float local_60; float local_5c; int8 local_58; int8 uStack_50; int1 local_48 [8]; int4 uStack_40; int4 uStack_3c; int1 local_38 [8]; float fStack_30; float fStack_2c; uStack_40 = in_XMM0_Dc; local_48 = (int1 [8])param_1; uStack_3c = in_XMM0_Dd; local_58 = CONCAT44(local_58._4_4_,param_2); local_38._0_4_ = param_3; cVar2 = r3d_collision_check_point_in_sphere(param_4,param_5,(int)param_1,param_2,param_3); if (cVar2 == '\0') { local_b8[0] = (float)local_48._0_4_ - (float)local_38._0_4_; local_b8[1] = (float)local_48._4_4_ - (float)local_38._0_4_; local_b8[2] = (float)local_58 - (float)local_38._0_4_; local_b8[3] = (float)local_48._0_4_ + (float)local_38._0_4_; local_a8 = local_b8[1]; local_a4 = local_b8[2]; local_9c = (float)local_48._4_4_ + (float)local_38._0_4_; local_a0 = local_b8[0]; local_98 = local_b8[2]; local_94 = local_b8[3]; local_90 = local_9c; local_8c = local_b8[2]; local_80 = (float)local_58 + (float)local_38._0_4_; local_88 = local_b8[0]; local_84 = local_b8[1]; local_7c = local_b8[3]; local_78 = local_b8[1]; local_74 = local_80; local_70 = local_b8[0]; local_6c = local_9c; local_68 = local_80; local_64 = local_b8[3]; _local_48 = ZEXT416((uint)(float)param_6); local_60 = local_9c; _local_38 = ZEXT416((uint)(float)param_7); local_5c = local_80; local_58 = 0; uStack_50 = 0; lVar4 = 8; fVar1 = 0.0; uStack_c0 = 0; do { uVar3 = r3d_project_point((int)*(int8 *)((long)&uStack_c0 + lVar4), *(int4 *)((long)local_b8 + lVar4),param_6,param_7); if ((uVar3 >> 8 & 1) == 0) { fVar6 = extraout_XMM0_Da; if ((float)local_48._0_4_ <= extraout_XMM0_Da) { fVar6 = (float)local_48._0_4_; } fVar7 = extraout_XMM0_Da; if (extraout_XMM0_Da <= (float)local_58) { fVar7 = (float)local_58; } fVar8 = extraout_XMM0_Db; if ((float)local_38._0_4_ <= extraout_XMM0_Db) { fVar8 = (float)local_38._0_4_; } fVar5 = extraout_XMM0_Db; if (extraout_XMM0_Db <= fVar1) { fVar5 = fVar1; } uStack_c0 = CONCAT44(extraout_XMM0_Db,extraout_XMM0_Db); local_58 = CONCAT44(extraout_XMM0_Db,fVar7); uStack_50 = CONCAT44(extraout_XMM0_Dd,extraout_XMM0_Dc); local_38._4_4_ = extraout_XMM0_Db; local_38._0_4_ = fVar8; fStack_30 = extraout_XMM0_Db; fStack_2c = extraout_XMM0_Db; local_48._4_4_ = extraout_XMM0_Db; local_48._0_4_ = fVar6; uStack_40 = extraout_XMM0_Dc; uStack_3c = extraout_XMM0_Dd; fVar1 = fVar5; } lVar4 = lVar4 + 0xc; } while (lVar4 != 0x68); } else { local_48._0_4_ = 0; local_38._0_4_ = 0; } return CONCAT44(local_38._0_4_,local_48._0_4_); }
29,644
lunasvg::Font::ascent() const
dmazzella[P]pylunasvg/lunasvg/source/graphics.cpp
float Font::ascent() const { float ascent = 0; if(m_size > 0.f && !m_face.isNull()) plutovg_font_face_get_metrics(m_face.get(), m_size, &ascent, nullptr, nullptr, nullptr); return ascent; }
O3
cpp
lunasvg::Font::ascent() const: pushq %rbx subq $0x10, %rsp movl $0x0, 0xc(%rsp) movss 0x8(%rdi), %xmm0 xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe 0xd63a movq (%rdi), %rdi testq %rdi, %rdi je 0xd63a leaq 0xc(%rsp), %rbx movq %rbx, %rsi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x24ec4 movss (%rbx), %xmm1 movaps %xmm1, %xmm0 addq $0x10, %rsp popq %rbx retq nop
_ZNK7lunasvg4Font6ascentEv: push rbx sub rsp, 10h mov [rsp+18h+var_C], 0 movss xmm0, dword ptr [rdi+8] xorps xmm1, xmm1 ucomiss xmm0, xmm1 jbe short loc_D63A mov rdi, [rdi] test rdi, rdi jz short loc_D63A lea rbx, [rsp+18h+var_C] mov rsi, rbx xor edx, edx xor ecx, ecx xor r8d, r8d call plutovg_font_face_get_metrics movss xmm1, dword ptr [rbx] loc_D63A: movaps xmm0, xmm1 add rsp, 10h pop rbx retn
__int128 __usercall lunasvg::Font::ascent@<xmm0>(lunasvg::Font *this@<rdi>) { __int128 v1; // xmm1 long long v2; // rdi _DWORD v4[3]; // [rsp+Ch] [rbp-Ch] BYREF v4[0] = 0; v1 = 0LL; if ( *((float *)this + 2) > 0.0 ) { v2 = *(_QWORD *)this; if ( v2 ) { plutovg_font_face_get_metrics(v2, v4, 0LL, 0LL, 0LL); return v4[0]; } } return v1; }
ascent: PUSH RBX SUB RSP,0x10 MOV dword ptr [RSP + 0xc],0x0 MOVSS XMM0,dword ptr [RDI + 0x8] XORPS XMM1,XMM1 UCOMISS XMM0,XMM1 JBE 0x0010d63a MOV RDI,qword ptr [RDI] TEST RDI,RDI JZ 0x0010d63a LEA RBX,[RSP + 0xc] MOV RSI,RBX XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x00124ec4 MOVSS XMM1,dword ptr [RBX] LAB_0010d63a: MOVAPS XMM0,XMM1 ADD RSP,0x10 POP RBX RET
/* lunasvg::Font::ascent() const */ int4 __thiscall lunasvg::Font::ascent(Font *this) { int4 uVar1; int4 local_c; local_c = 0; uVar1 = 0; if ((0.0 < *(float *)(this + 8)) && (*(long *)this != 0)) { plutovg_font_face_get_metrics(*(long *)this,&local_c,0,0,0); uVar1 = local_c; } return uVar1; }
29,645
inheritance_source_by_id
eloqsql/mysys/charset.c
static CHARSET_INFO *inheritance_source_by_id(CHARSET_INFO *cs, uint refid) { CHARSET_INFO *refcs; return refid && refid != cs->number && (refcs= all_charsets[refid]) && (refcs->state & MY_CS_AVAILABLE) ? refcs : NULL; }
O0
c
inheritance_source_by_id: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpl $0x0, -0xc(%rbp) je 0xdddc1 movl -0xc(%rbp), %eax movq -0x8(%rbp), %rcx cmpl (%rcx), %eax je 0xdddc1 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0xb9c928(%rip), %rax # 0xc7a6c0 movq (%rax,%rcx,8), %rax movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0xdddc1 movq -0x18(%rbp), %rax movl 0xc(%rax), %eax andl $0x200, %eax # imm = 0x200 cmpl $0x0, %eax je 0xdddc1 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0xdddc9 xorl %eax, %eax movq %rax, -0x20(%rbp) jmp 0xdddc9 movq -0x20(%rbp), %rax popq %rbp retq nop
inheritance_source_by_id: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi cmp [rbp+var_C], 0 jz short loc_DDDC1 mov eax, [rbp+var_C] mov rcx, [rbp+var_8] cmp eax, [rcx] jz short loc_DDDC1 mov eax, [rbp+var_C] mov ecx, eax lea rax, all_charsets mov rax, [rax+rcx*8] mov [rbp+var_18], rax cmp rax, 0 jz short loc_DDDC1 mov rax, [rbp+var_18] mov eax, [rax+0Ch] and eax, 200h cmp eax, 0 jz short loc_DDDC1 mov rax, [rbp+var_18] mov [rbp+var_20], rax jmp short loc_DDDC9 loc_DDDC1: xor eax, eax mov [rbp+var_20], rax jmp short $+2 loc_DDDC9: mov rax, [rbp+var_20] pop rbp retn
long long inheritance_source_by_id(_DWORD *a1, int a2) { long long v4; // [rsp+8h] [rbp-18h] if ( a2 && a2 != *a1 && (v4 = all_charsets[a2]) != 0 && (*(_DWORD *)(v4 + 12) & 0x200) != 0 ) return all_charsets[a2]; else return 0LL; }
inheritance_source_by_id: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI CMP dword ptr [RBP + -0xc],0x0 JZ 0x001dddc1 MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX] JZ 0x001dddc1 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0xd7a6c0] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JZ 0x001dddc1 MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0xc] AND EAX,0x200 CMP EAX,0x0 JZ 0x001dddc1 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX JMP 0x001dddc9 LAB_001dddc1: XOR EAX,EAX MOV qword ptr [RBP + -0x20],RAX JMP 0x001dddc9 LAB_001dddc9: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long inheritance_source_by_id(uint *param_1,uint param_2) { long local_28; if ((((param_2 == 0) || (param_2 == *param_1)) || (local_28 = (&all_charsets)[param_2], local_28 == 0)) || ((*(uint *)(local_28 + 0xc) & 0x200) == 0)) { local_28 = 0; } return local_28; }
29,646
check_mb_utf8_sequence
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_utf8_sequence(const char *start, const char *end) { uchar c; if (start >= end) { return 0; } c = (uchar) start[0]; if (c < 0x80) { return 1; /* single byte character */ } if (c < 0xC2) { return 0; /* invalid mb character */ } if (c < 0xE0) { if (start + 2 > end) { return 0; /* too small */ } if (!(((uchar)start[1] ^ 0x80) < 0x40)) { return 0; } return 2; } if (c < 0xF0) { if (start + 3 > end) { return 0; /* too small */ } if (!(((uchar)start[1] ^ 0x80) < 0x40 && ((uchar)start[2] ^ 0x80) < 0x40 && (c >= 0xE1 || (uchar)start[1] >= 0xA0))) { return 0; /* invalid utf8 character */ } return 3; } if (c < 0xF5) { if (start + 4 > end) { /* We need 4 characters */ return 0; /* too small */ } /* UTF-8 quick four-byte mask: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx Encoding allows to encode U+00010000..U+001FFFFF The maximum character defined in the Unicode standard is U+0010FFFF. Higher characters U+00110000..U+001FFFFF are not used. 11110000.10010000.10xxxxxx.10xxxxxx == F0.90.80.80 == U+00010000 (min) 11110100.10001111.10111111.10111111 == F4.8F.BF.BF == U+0010FFFF (max) Valid codes: [F0][90..BF][80..BF][80..BF] [F1][80..BF][80..BF][80..BF] [F2][80..BF][80..BF][80..BF] [F3][80..BF][80..BF][80..BF] [F4][80..8F][80..BF][80..BF] */ if (!(((uchar)start[1] ^ 0x80) < 0x40 && ((uchar)start[2] ^ 0x80) < 0x40 && ((uchar)start[3] ^ 0x80) < 0x40 && (c >= 0xf1 || (uchar)start[1] >= 0x90) && (c <= 0xf3 || (uchar)start[1] <= 0x8F))) { return 0; /* invalid utf8 character */ } return 4; } return 0; }
O0
c
check_mb_utf8_sequence: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax jb 0x69952 movl $0x0, -0x4(%rbp) jmp 0x69aff movq -0x10(%rbp), %rax movb (%rax), %al movb %al, -0x19(%rbp) movzbl -0x19(%rbp), %eax cmpl $0x80, %eax jge 0x69972 movl $0x1, -0x4(%rbp) jmp 0x69aff movzbl -0x19(%rbp), %eax cmpl $0xc2, %eax jge 0x69989 movl $0x0, -0x4(%rbp) jmp 0x69aff movzbl -0x19(%rbp), %eax cmpl $0xe0, %eax jge 0x699d8 movq -0x10(%rbp), %rax addq $0x2, %rax cmpq -0x18(%rbp), %rax jbe 0x699ae movl $0x0, -0x4(%rbp) jmp 0x69aff movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jl 0x699cc movl $0x0, -0x4(%rbp) jmp 0x69aff movl $0x2, -0x4(%rbp) jmp 0x69aff movzbl -0x19(%rbp), %eax cmpl $0xf0, %eax jge 0x69a53 movq -0x10(%rbp), %rax addq $0x3, %rax cmpq -0x18(%rbp), %rax jbe 0x699fd movl $0x0, -0x4(%rbp) jmp 0x69aff movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x69a3b movq -0x10(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x69a3b movzbl -0x19(%rbp), %eax cmpl $0xe1, %eax jge 0x69a47 movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xa0, %eax jge 0x69a47 movl $0x0, -0x4(%rbp) jmp 0x69aff movl $0x3, -0x4(%rbp) jmp 0x69aff movzbl -0x19(%rbp), %eax cmpl $0xf5, %eax jge 0x69af8 movq -0x10(%rbp), %rax addq $0x4, %rax cmpq -0x18(%rbp), %rax jbe 0x69a7c movl $0x0, -0x4(%rbp) jmp 0x69aff movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x69ae6 movq -0x10(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x69ae6 movq -0x10(%rbp), %rax movzbl 0x3(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x69ae6 movzbl -0x19(%rbp), %eax cmpl $0xf1, %eax jge 0x69acc movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x90, %eax jl 0x69ae6 movzbl -0x19(%rbp), %eax cmpl $0xf3, %eax jle 0x69aef movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x8f, %eax jle 0x69aef movl $0x0, -0x4(%rbp) jmp 0x69aff movl $0x4, -0x4(%rbp) jmp 0x69aff movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
check_mb_utf8_sequence: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] cmp rax, [rbp+var_18] jb short loc_69952 mov [rbp+var_4], 0 jmp loc_69AFF loc_69952: mov rax, [rbp+var_10] mov al, [rax] mov [rbp+var_19], al movzx eax, [rbp+var_19] cmp eax, 80h jge short loc_69972 mov [rbp+var_4], 1 jmp loc_69AFF loc_69972: movzx eax, [rbp+var_19] cmp eax, 0C2h jge short loc_69989 mov [rbp+var_4], 0 jmp loc_69AFF loc_69989: movzx eax, [rbp+var_19] cmp eax, 0E0h jge short loc_699D8 mov rax, [rbp+var_10] add rax, 2 cmp rax, [rbp+var_18] jbe short loc_699AE mov [rbp+var_4], 0 jmp loc_69AFF loc_699AE: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jl short loc_699CC mov [rbp+var_4], 0 jmp loc_69AFF loc_699CC: mov [rbp+var_4], 2 jmp loc_69AFF loc_699D8: movzx eax, [rbp+var_19] cmp eax, 0F0h jge short loc_69A53 mov rax, [rbp+var_10] add rax, 3 cmp rax, [rbp+var_18] jbe short loc_699FD mov [rbp+var_4], 0 jmp loc_69AFF loc_699FD: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_69A3B mov rax, [rbp+var_10] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_69A3B movzx eax, [rbp+var_19] cmp eax, 0E1h jge short loc_69A47 mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] cmp eax, 0A0h jge short loc_69A47 loc_69A3B: mov [rbp+var_4], 0 jmp loc_69AFF loc_69A47: mov [rbp+var_4], 3 jmp loc_69AFF loc_69A53: movzx eax, [rbp+var_19] cmp eax, 0F5h jge loc_69AF8 mov rax, [rbp+var_10] add rax, 4 cmp rax, [rbp+var_18] jbe short loc_69A7C mov [rbp+var_4], 0 jmp loc_69AFF loc_69A7C: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_69AE6 mov rax, [rbp+var_10] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_69AE6 mov rax, [rbp+var_10] movzx eax, byte ptr [rax+3] xor eax, 80h cmp eax, 40h ; '@' jge short loc_69AE6 movzx eax, [rbp+var_19] cmp eax, 0F1h jge short loc_69ACC mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] cmp eax, 90h jl short loc_69AE6 loc_69ACC: movzx eax, [rbp+var_19] cmp eax, 0F3h jle short loc_69AEF mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] cmp eax, 8Fh jle short loc_69AEF loc_69AE6: mov [rbp+var_4], 0 jmp short loc_69AFF loc_69AEF: mov [rbp+var_4], 4 jmp short loc_69AFF loc_69AF8: mov [rbp+var_4], 0 loc_69AFF: mov eax, [rbp+var_4] pop rbp retn
long long check_mb_utf8_sequence(unsigned __int8 *a1, unsigned long long a2) { unsigned __int8 v3; // [rsp+1h] [rbp-19h] if ( (unsigned long long)a1 < a2 ) { v3 = *a1; if ( *a1 >= 0x80u ) { if ( v3 >= 0xC2u ) { if ( v3 >= 0xE0u ) { if ( v3 >= 0xF0u ) { if ( v3 >= 0xF5u ) { return 0; } else if ( (unsigned long long)(a1 + 4) <= a2 ) { if ( (a1[1] ^ 0x80) < 64 && (a1[2] ^ 0x80) < 64 && (a1[3] ^ 0x80) < 64 && (v3 >= 0xF1u || a1[1] >= 0x90u) && (v3 <= 0xF3u || a1[1] <= 0x8Fu) ) { return 4; } else { return 0; } } else { return 0; } } else if ( (unsigned long long)(a1 + 3) <= a2 ) { if ( (a1[1] ^ 0x80) < 64 && (a1[2] ^ 0x80) < 64 && (v3 >= 0xE1u || a1[1] >= 0xA0u) ) return 3; else return 0; } else { return 0; } } else if ( (unsigned long long)(a1 + 2) <= a2 ) { if ( (a1[1] ^ 0x80) < 64 ) return 2; else return 0; } else { return 0; } } else { return 0; } } else { return 1; } } else { return 0; } }
check_mb_utf8_sequence: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x18] JC 0x00169952 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_00169952: MOV RAX,qword ptr [RBP + -0x10] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x19],AL MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0x80 JGE 0x00169972 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00169aff LAB_00169972: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xc2 JGE 0x00169989 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_00169989: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xe0 JGE 0x001699d8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x18] JBE 0x001699ae MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_001699ae: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JL 0x001699cc MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_001699cc: MOV dword ptr [RBP + -0x4],0x2 JMP 0x00169aff LAB_001699d8: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xf0 JGE 0x00169a53 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3 CMP RAX,qword ptr [RBP + -0x18] JBE 0x001699fd MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_001699fd: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x00169a3b MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x00169a3b MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xe1 JGE 0x00169a47 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xa0 JGE 0x00169a47 LAB_00169a3b: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_00169a47: MOV dword ptr [RBP + -0x4],0x3 JMP 0x00169aff LAB_00169a53: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xf5 JGE 0x00169af8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x4 CMP RAX,qword ptr [RBP + -0x18] JBE 0x00169a7c MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_00169a7c: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x00169ae6 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x00169ae6 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x3] XOR EAX,0x80 CMP EAX,0x40 JGE 0x00169ae6 MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xf1 JGE 0x00169acc MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x90 JL 0x00169ae6 LAB_00169acc: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xf3 JLE 0x00169aef MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x8f JLE 0x00169aef LAB_00169ae6: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00169aff LAB_00169aef: MOV dword ptr [RBP + -0x4],0x4 JMP 0x00169aff LAB_00169af8: MOV dword ptr [RBP + -0x4],0x0 LAB_00169aff: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 check_mb_utf8_sequence(byte *param_1,byte *param_2) { byte bVar1; int4 local_c; if (param_1 < param_2) { bVar1 = *param_1; if (bVar1 < 0x80) { local_c = 1; } else if (bVar1 < 0xc2) { local_c = 0; } else if (bVar1 < 0xe0) { if (param_2 < param_1 + 2) { local_c = 0; } else if ((param_1[1] ^ 0x80) < 0x40) { local_c = 2; } else { local_c = 0; } } else if (bVar1 < 0xf0) { if (param_2 < param_1 + 3) { local_c = 0; } else if ((((param_1[1] ^ 0x80) < 0x40) && ((param_1[2] ^ 0x80) < 0x40)) && ((0xe0 < bVar1 || (0x9f < param_1[1])))) { local_c = 3; } else { local_c = 0; } } else if (bVar1 < 0xf5) { if (param_2 < param_1 + 4) { local_c = 0; } else if ((((((param_1[1] ^ 0x80) < 0x40) && ((param_1[2] ^ 0x80) < 0x40)) && ((param_1[3] ^ 0x80) < 0x40)) && ((0xf0 < bVar1 || (0x8f < param_1[1])))) && ((bVar1 < 0xf4 || (param_1[1] < 0x90)))) { local_c = 4; } else { local_c = 0; } } else { local_c = 0; } } else { local_c = 0; } return local_c; }
29,647
FindPeaksCppTest_DistanceFiltering_Test::TestBody()
giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp
TEST_F(FindPeaksCppTest, DistanceFiltering) { PeakConditions conditions; conditions.set_distance(3); // Peaks must be at least 3 samples apart auto peaks = find_peaks(simple_signal, conditions); ASSERT_EQ(3, peaks.size()); EXPECT_EQ(1, peaks[0].peak); // First peak at index 1 EXPECT_EQ(5, peaks[1].peak); // Second peak at index 5, the peak in index 3 is skipped EXPECT_EQ(9, peaks[2].peak); // Second peak at index 9, the peak in index 7 is skipped }
O3
cpp
FindPeaksCppTest_DistanceFiltering_Test::TestBody(): pushq %rbx subq $0xc0, %rsp leaq 0x10(%rdi), %rsi movaps 0x350a3(%rip), %xmm0 # 0x40010 leaq 0x38(%rsp), %rdx movups %xmm0, 0x8(%rdx) movups %xmm0, 0x20(%rdx) movq $0x3, 0x30(%rdx) movups %xmm0, 0x40(%rdx) movups %xmm0, 0x58(%rdx) xorl %eax, %eax movq %rax, 0x68(%rdx) movabsq $0x3fe0000000000000, %rcx # imm = 0x3FE0000000000000 movq %rcx, 0x70(%rdx) movq %rax, 0x78(%rdx) movq $-0x1, 0x80(%rdx) leaq 0x20(%rsp), %rbx movq %rbx, %rdi callq 0x3d274 leaq 0x8(%rsp), %rcx movl $0x3, (%rcx) movq 0x8(%rbx), %rax subq (%rbx), %rax sarq $0x4, %rax movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7 imulq %rax, %rdx movq %rsp, %r8 movq %rdx, (%r8) leaq 0x351c3(%rip), %rsi # 0x401ae leaq 0x3547d(%rip), %rdx # 0x4046f leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) je 0xb05f movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb017 leaq 0x18(%rsp), %rdi callq 0xdb84 movq %rsp, %rcx movl $0x1, (%rcx) movq 0x20(%rsp), %r8 leaq 0x37317(%rip), %rsi # 0x42343 leaq 0x3516d(%rip), %rdx # 0x401a0 leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) jne 0xb0f2 movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb0aa movq (%rax), %r8 jmp 0xb0b1 movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb076 movq (%rax), %r8 jmp 0xb07d leaq 0x38301(%rip), %r8 # 0x4337e leaq 0x350c0(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x2, %esi movl $0x2f, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e jmp 0xb223 leaq 0x382cd(%rip), %r8 # 0x4337e leaq 0x3508c(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x1, %esi movl $0x30, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e leaq 0x8(%rsp), %rdi callq 0x18bf4 movq (%rsp), %rdi testq %rdi, %rdi je 0xb0f2 movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb106 leaq 0x18(%rsp), %rdi callq 0xdb84 movq %rsp, %rcx movl $0x5, (%rcx) movq 0x20(%rsp), %r8 addq $0x70, %r8 leaq 0x351df(%rip), %rsi # 0x402fe leaq 0x3508a(%rip), %rdx # 0x401b0 leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) jne 0xb196 movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb14e movq (%rax), %r8 jmp 0xb155 leaq 0x38229(%rip), %r8 # 0x4337e leaq 0x34fe8(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x1, %esi movl $0x31, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e leaq 0x8(%rsp), %rdi callq 0x18bf4 movq (%rsp), %rdi testq %rdi, %rdi je 0xb196 movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb1aa leaq 0x18(%rsp), %rdi callq 0xdb84 movq %rsp, %rcx movl $0x9, (%rcx) movl $0xe0, %r8d addq 0x20(%rsp), %r8 leaq 0x35017(%rip), %rsi # 0x401dc leaq 0x34ff2(%rip), %rdx # 0x401be leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) jne 0xb23c movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb1f4 movq (%rax), %r8 jmp 0xb1fb leaq 0x38183(%rip), %r8 # 0x4337e leaq 0x34f42(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x1, %esi movl $0x32, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e leaq 0x8(%rsp), %rdi callq 0x18bf4 movq (%rsp), %rdi testq %rdi, %rdi je 0xb23c movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb250 leaq 0x18(%rsp), %rdi callq 0xdb84 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0xb267 movq 0x30(%rsp), %rsi subq %rdi, %rsi callq 0x84e0 addq $0xc0, %rsp popq %rbx retq jmp 0xb286 jmp 0xb295 jmp 0xb2a9 jmp 0xb286 jmp 0xb295 jmp 0xb2a9 jmp 0xb286 jmp 0xb295 jmp 0xb2a9 jmp 0xb2c4 jmp 0xb2c4 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x18bf4 jmp 0xb298 movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0xb2ac movq (%rdi), %rax callq *0x8(%rax) jmp 0xb2ac movq %rax, %rbx movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb2c7 leaq 0x18(%rsp), %rdi callq 0xdb84 jmp 0xb2c7 jmp 0xb2c4 movq %rax, %rbx movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0xb2de movq 0x30(%rsp), %rsi subq %rdi, %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN39FindPeaksCppTest_DistanceFiltering_Test8TestBodyEv: push rbx; int sub rsp, 0C0h lea rsi, [rdi+10h]; int movaps xmm0, cs:xmmword_40010 lea rdx, [rsp+0C8h+var_90]; int movups xmmword ptr [rdx+8], xmm0 movups xmmword ptr [rdx+20h], xmm0 mov qword ptr [rdx+30h], 3 movups xmmword ptr [rdx+40h], xmm0 movups xmmword ptr [rdx+58h], xmm0 xor eax, eax mov [rdx+68h], rax mov rcx, 3FE0000000000000h; int mov [rdx+70h], rcx mov [rdx+78h], rax mov qword ptr [rdx+80h], 0FFFFFFFFFFFFFFFFh lea rbx, [rsp+0C8h+var_A8] mov rdi, rbx; int call _ZN9findPeaks10find_peaksERKSt6vectorIdSaIdEENS_14PeakConditionsE; findPeaks::find_peaks(std::vector<double> const&,findPeaks::PeakConditions) lea rcx, [rsp+0C8h+var_C0] mov dword ptr [rcx], 3 mov rax, [rbx+8] sub rax, [rbx] sar rax, 4 mov rdx, 6DB6DB6DB6DB6DB7h imul rdx, rax mov r8, rsp mov [r8], rdx lea rsi, a3; "3" lea rdx, aExpectedPeaksS+9; "peaks.size()" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jz short loc_B05F mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B017 lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B017: mov rcx, rsp mov dword ptr [rcx], 1 mov r8, [rsp+0C8h+var_A8] lea rsi, aFcntlPipeFd1FS+22h; "1" lea rdx, aPeaks0Peak; "peaks[0].peak" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jnz loc_B0F2 mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B0AA mov r8, [rax] jmp short loc_B0B1 loc_B05F: mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B076 mov r8, [rax] jmp short loc_B07D loc_B076: lea r8, aSFromSSMsTotal+1Ah; "" loc_B07D: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 2 mov ecx, 2Fh ; '/' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) jmp loc_B223 loc_B0AA: lea r8, aSFromSSMsTotal+1Ah; "" loc_B0B1: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 1 mov ecx, 30h ; '0' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) lea rdi, [rsp+0C8h+var_C0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0C8h+var_C8] test rdi, rdi jz short loc_B0F2 mov rax, [rdi] call qword ptr [rax+8] loc_B0F2: mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B106 lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B106: mov rcx, rsp mov dword ptr [rcx], 5 mov r8, [rsp+0C8h+var_A8] add r8, 70h ; 'p' lea rsi, a15+2; "5" lea rdx, aPeaks1Peak; "peaks[1].peak" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jnz short loc_B196 mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B14E mov r8, [rax] jmp short loc_B155 loc_B14E: lea r8, aSFromSSMsTotal+1Ah; "" loc_B155: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 1 mov ecx, 31h ; '1' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) lea rdi, [rsp+0C8h+var_C0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0C8h+var_C8] test rdi, rdi jz short loc_B196 mov rax, [rdi] call qword ptr [rax+8] loc_B196: mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B1AA lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B1AA: mov rcx, rsp mov dword ptr [rcx], 9 mov r8d, 0E0h add r8, [rsp+0C8h+var_A8] lea rsi, a9; "9" lea rdx, aPeaks2Peak; "peaks[2].peak" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jnz short loc_B23C mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B1F4 mov r8, [rax] jmp short loc_B1FB loc_B1F4: lea r8, aSFromSSMsTotal+1Ah; "" loc_B1FB: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 1 mov ecx, 32h ; '2' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) loc_B223: lea rdi, [rsp+0C8h+var_C0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0C8h+var_C8] test rdi, rdi jz short loc_B23C mov rax, [rdi] call qword ptr [rax+8] loc_B23C: mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B250 lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B250: mov rdi, [rsp+0C8h+var_A8]; void * test rdi, rdi jz short loc_B267 mov rsi, [rsp+0C8h+var_98] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B267: add rsp, 0C0h pop rbx retn jmp short loc_B286 jmp short loc_B295 jmp short loc_B2A9 jmp short loc_B286 jmp short loc_B295 jmp short loc_B2A9 jmp short loc_B286 jmp short loc_B295 jmp short loc_B2A9 jmp short loc_B2C4 jmp short loc_B2C4 loc_B286: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() jmp short loc_B298 loc_B295: mov rbx, rax loc_B298: mov rdi, [rsp+0] test rdi, rdi jz short loc_B2AC mov rax, [rdi] call qword ptr [rax+8] jmp short loc_B2AC loc_B2A9: mov rbx, rax loc_B2AC: mov rsi, [rsp+arg_10] test rsi, rsi jz short loc_B2C7 lea rdi, [rsp+arg_10] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) jmp short loc_B2C7 jmp short $+2 loc_B2C4: mov rbx, rax loc_B2C7: mov rdi, [rsp+arg_18]; void * test rdi, rdi jz short loc_B2DE mov rsi, [rsp+arg_28] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B2DE: mov rdi, rbx call __Unwind_Resume
TestBody: PUSH RBX SUB RSP,0xc0 LEA RSI,[RDI + 0x10] MOVAPS XMM0,xmmword ptr [0x00140010] LEA RDX,[RSP + 0x38] MOVUPS xmmword ptr [RDX + 0x8],XMM0 MOVUPS xmmword ptr [RDX + 0x20],XMM0 MOV qword ptr [RDX + 0x30],0x3 MOVUPS xmmword ptr [RDX + 0x40],XMM0 MOVUPS xmmword ptr [RDX + 0x58],XMM0 XOR EAX,EAX MOV qword ptr [RDX + 0x68],RAX MOV RCX,0x3fe0000000000000 MOV qword ptr [RDX + 0x70],RCX MOV qword ptr [RDX + 0x78],RAX MOV qword ptr [RDX + 0x80],-0x1 LEA RBX,[RSP + 0x20] MOV RDI,RBX CALL 0x0013d274 LEA RCX,[RSP + 0x8] MOV dword ptr [RCX],0x3 MOV RAX,qword ptr [RBX + 0x8] SUB RAX,qword ptr [RBX] SAR RAX,0x4 MOV RDX,0x6db6db6db6db6db7 IMUL RDX,RAX MOV R8,RSP MOV qword ptr [R8],RDX LAB_0010afe4: LEA RSI,[0x1401ae] LEA RDX,[0x14046f] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JZ 0x0010b05f MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b017 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b017: MOV RCX,RSP MOV dword ptr [RCX],0x1 MOV R8,qword ptr [RSP + 0x20] LAB_0010b025: LEA RSI,[0x142343] LEA RDX,[0x1401a0] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010b0f2 LAB_0010b048: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b0aa MOV R8,qword ptr [RAX] JMP 0x0010b0b1 LAB_0010b05f: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b076 MOV R8,qword ptr [RAX] JMP 0x0010b07d LAB_0010b076: LEA R8,[0x14337e] LAB_0010b07d: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x2 MOV ECX,0x2f CALL 0x00118b88 LAB_0010b098: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e JMP 0x0010b223 LAB_0010b0aa: LEA R8,[0x14337e] LAB_0010b0b1: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x1 MOV ECX,0x30 CALL 0x00118b88 LAB_0010b0cc: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e LAB_0010b0d9: LEA RDI,[RSP + 0x8] CALL 0x00118bf4 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0010b0f2 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010b0f2: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b106 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b106: MOV RCX,RSP MOV dword ptr [RCX],0x5 MOV R8,qword ptr [RSP + 0x20] ADD R8,0x70 LAB_0010b118: LEA RSI,[0x1402fe] LEA RDX,[0x1401b0] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010b196 LAB_0010b137: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b14e MOV R8,qword ptr [RAX] JMP 0x0010b155 LAB_0010b14e: LEA R8,[0x14337e] LAB_0010b155: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x1 MOV ECX,0x31 CALL 0x00118b88 LAB_0010b170: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e LAB_0010b17d: LEA RDI,[RSP + 0x8] CALL 0x00118bf4 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0010b196 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010b196: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b1aa LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b1aa: MOV RCX,RSP MOV dword ptr [RCX],0x9 MOV R8D,0xe0 ADD R8,qword ptr [RSP + 0x20] LAB_0010b1be: LEA RSI,[0x1401dc] LEA RDX,[0x1401be] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010b23c LAB_0010b1dd: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b1f4 MOV R8,qword ptr [RAX] JMP 0x0010b1fb LAB_0010b1f4: LEA R8,[0x14337e] LAB_0010b1fb: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x1 MOV ECX,0x32 CALL 0x00118b88 LAB_0010b216: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e LAB_0010b223: LEA RDI,[RSP + 0x8] CALL 0x00118bf4 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0010b23c MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010b23c: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b250 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b250: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x0010b267 MOV RSI,qword ptr [RSP + 0x30] SUB RSI,RDI CALL 0x001084e0 LAB_0010b267: ADD RSP,0xc0 POP RBX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* FindPeaksCppTest_DistanceFiltering_Test::TestBody() */ void __thiscall FindPeaksCppTest_DistanceFiltering_Test::TestBody(FindPeaksCppTest_DistanceFiltering_Test *this) { char *pcVar1; long *local_c8; int local_c0 [2]; internal local_b8 [8]; string *local_b0; ulong *local_a8; long local_a0; long local_98; int4 local_88; int4 uStack_84; int4 uStack_80; int4 uStack_7c; int4 local_70; int4 uStack_6c; int4 uStack_68; int4 uStack_64; int8 local_60; int4 local_50; int4 uStack_4c; int4 uStack_48; int4 uStack_44; int4 local_38; int4 uStack_34; int4 uStack_30; int4 uStack_2c; int8 local_28; int8 local_20; int8 local_18; int8 local_10; local_88 = _DAT_00140010; uStack_84 = _UNK_00140014; uStack_80 = _UNK_00140018; uStack_7c = _UNK_0014001c; local_70 = _DAT_00140010; uStack_6c = _UNK_00140014; uStack_68 = _UNK_00140018; uStack_64 = _UNK_0014001c; local_60 = 3; local_50 = _DAT_00140010; uStack_4c = _UNK_00140014; uStack_48 = _UNK_00140018; uStack_44 = _UNK_0014001c; local_38 = _DAT_00140010; uStack_34 = _UNK_00140014; uStack_30 = _UNK_00140018; uStack_2c = _UNK_0014001c; local_28 = 0; local_20 = 0x3fe0000000000000; local_18 = 0; local_10 = 0xffffffffffffffff; findPeaks::find_peaks((findPeaks *)&local_a8,this + 0x10); local_c0[0] = 3; local_c8 = (long *)((local_a0 - (long)local_a8 >> 4) * 0x6db6db6db6db6db7); /* try { // try from 0010afe4 to 0010affb has its CatchHandler @ 0010b2c4 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"3","peaks.size()",local_c0,(ulong *)&local_c8); if (local_b8[0] == (internal)0x0) { /* try { // try from 0010b05f to 0010b066 has its CatchHandler @ 0010b2a9 */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b07d to 0010b097 has its CatchHandler @ 0010b295 */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,2, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x2f,pcVar1); /* try { // try from 0010b098 to 0010b0a4 has its CatchHandler @ 0010b286 */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); } else { if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } local_c8 = (long *)CONCAT44(local_c8._4_4_,1); /* try { // try from 0010b025 to 0010b03c has its CatchHandler @ 0010b2c2 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"1","peaks[0].peak",(int *)&local_c8,local_a8); if (local_b8[0] == (internal)0x0) { /* try { // try from 0010b048 to 0010b04f has its CatchHandler @ 0010b280 */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b0b1 to 0010b0cb has its CatchHandler @ 0010b27e */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x30,pcVar1); /* try { // try from 0010b0cc to 0010b0d8 has its CatchHandler @ 0010b27c */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); testing::internal::AssertHelper::~AssertHelper((AssertHelper *)local_c0); if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(); } } if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } local_c8 = (long *)CONCAT44(local_c8._4_4_,5); /* try { // try from 0010b118 to 0010b12f has its CatchHandler @ 0010b284 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"5","peaks[1].peak",(int *)&local_c8,local_a8 + 0xe); if (local_b8[0] == (internal)0x0) { /* try { // try from 0010b137 to 0010b13e has its CatchHandler @ 0010b27a */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b155 to 0010b16f has its CatchHandler @ 0010b278 */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x31,pcVar1); /* try { // try from 0010b170 to 0010b17c has its CatchHandler @ 0010b276 */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); testing::internal::AssertHelper::~AssertHelper((AssertHelper *)local_c0); if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(); } } if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } local_c8 = (long *)CONCAT44(local_c8._4_4_,9); /* try { // try from 0010b1be to 0010b1d5 has its CatchHandler @ 0010b282 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"9","peaks[2].peak",(int *)&local_c8,local_a8 + 0x1c); if (local_b8[0] != (internal)0x0) goto LAB_0010b23c; /* try { // try from 0010b1dd to 0010b1e4 has its CatchHandler @ 0010b274 */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b1fb to 0010b215 has its CatchHandler @ 0010b272 */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x32,pcVar1); /* try { // try from 0010b216 to 0010b222 has its CatchHandler @ 0010b270 */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); } testing::internal::AssertHelper::~AssertHelper((AssertHelper *)local_c0); if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(); } LAB_0010b23c: if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } if (local_a8 != (ulong *)0x0) { operator_delete(local_a8,local_98 - (long)local_a8); } return; }
29,648
pick_seeds
eloqsql/storage/maria/ma_rt_split.c
static void pick_seeds(SplitStruct *node, int n_entries, SplitStruct **seed_a, SplitStruct **seed_b, int n_dim) { SplitStruct *cur1; SplitStruct *lim1= node + (n_entries - 1); SplitStruct *cur2; SplitStruct *lim2= node + n_entries; double max_d= -DBL_MAX; double d; for (cur1= node; cur1 < lim1; cur1++) { for (cur2=cur1 + 1; cur2 < lim2; cur2++) { d= mbr_join_square(cur1->coords, cur2->coords, n_dim) - cur1->square - cur2->square; if (d > max_d) { max_d= d; *seed_a= cur1; *seed_b= cur2; } } } }
O0
c
pick_seeds: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x8(%rbp), %rax movl -0xc(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx shlq $0x5, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x8(%rbp), %rax movslq -0xc(%rbp), %rcx shlq $0x5, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movsd 0xbd082(%rip), %xmm0 # 0x158c80 movsd %xmm0, -0x50(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x9bcab movq -0x30(%rbp), %rax addq $0x20, %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax cmpq -0x48(%rbp), %rax jae 0x9bc98 movq -0x30(%rbp), %rax movq 0x18(%rax), %rdi movq -0x40(%rbp), %rax movq 0x18(%rax), %rsi movl -0x24(%rbp), %edx callq 0x9bf20 movq -0x30(%rbp), %rax subsd (%rax), %xmm0 movq -0x40(%rbp), %rax subsd (%rax), %xmm0 movsd %xmm0, -0x58(%rbp) movsd -0x58(%rbp), %xmm0 ucomisd -0x50(%rbp), %xmm0 jbe 0x9bc88 movsd -0x58(%rbp), %xmm0 movsd %xmm0, -0x50(%rbp) movq -0x30(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0x40(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) jmp 0x9bc8a movq -0x40(%rbp), %rax addq $0x20, %rax movq %rax, -0x40(%rbp) jmp 0x9bc25 jmp 0x9bc9a movq -0x30(%rbp), %rax addq $0x20, %rax movq %rax, -0x30(%rbp) jmp 0x9bc0b addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
pick_seeds: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov rax, [rbp+var_8] mov ecx, [rbp+var_C] sub ecx, 1 movsxd rcx, ecx shl rcx, 5 add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_8] movsxd rcx, [rbp+var_C] shl rcx, 5 add rax, rcx mov [rbp+var_48], rax movsd xmm0, cs:qword_158C80 movsd [rbp+var_50], xmm0 mov rax, [rbp+var_8] mov [rbp+var_30], rax loc_9BC0B: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb loc_9BCAB mov rax, [rbp+var_30] add rax, 20h ; ' ' mov [rbp+var_40], rax loc_9BC25: mov rax, [rbp+var_40] cmp rax, [rbp+var_48] jnb short loc_9BC98 mov rax, [rbp+var_30] mov rdi, [rax+18h] mov rax, [rbp+var_40] mov rsi, [rax+18h] mov edx, [rbp+var_24] call mbr_join_square mov rax, [rbp+var_30] subsd xmm0, qword ptr [rax] mov rax, [rbp+var_40] subsd xmm0, qword ptr [rax] movsd [rbp+var_58], xmm0 movsd xmm0, [rbp+var_58] ucomisd xmm0, [rbp+var_50] jbe short loc_9BC88 movsd xmm0, [rbp+var_58] movsd [rbp+var_50], xmm0 mov rcx, [rbp+var_30] mov rax, [rbp+var_18] mov [rax], rcx mov rcx, [rbp+var_40] mov rax, [rbp+var_20] mov [rax], rcx loc_9BC88: jmp short $+2 loc_9BC8A: mov rax, [rbp+var_40] add rax, 20h ; ' ' mov [rbp+var_40], rax jmp short loc_9BC25 loc_9BC98: jmp short $+2 loc_9BC9A: mov rax, [rbp+var_30] add rax, 20h ; ' ' mov [rbp+var_30], rax jmp loc_9BC0B loc_9BCAB: add rsp, 60h pop rbp retn
unsigned long long pick_seeds( unsigned long long a1, int a2, unsigned long long *a3, unsigned long long *a4, unsigned int a5) { unsigned long long result; // rax double v6; // [rsp+8h] [rbp-58h] double v7; // [rsp+10h] [rbp-50h] unsigned long long j; // [rsp+20h] [rbp-40h] unsigned long long i; // [rsp+30h] [rbp-30h] v7 = -1.797693134862316e308; for ( i = a1; ; i += 32LL ) { result = i; if ( i >= 32LL * (a2 - 1) + a1 ) break; for ( j = i + 32; j < 32LL * a2 + a1; j += 32LL ) { v6 = mbr_join_square(*(_QWORD *)(i + 24), *(_QWORD *)(j + 24), a5) - *(double *)i - *(double *)j; if ( v6 > v7 ) { v7 = v6; *a3 = i; *a4 = j; } } } return result; }
pick_seeds: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] SUB ECX,0x1 MOVSXD RCX,ECX SHL RCX,0x5 ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0xc] SHL RCX,0x5 ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOVSD XMM0,qword ptr [0x00258c80] MOVSD qword ptr [RBP + -0x50],XMM0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x30],RAX LAB_0019bc0b: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x0019bcab MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x20 MOV qword ptr [RBP + -0x40],RAX LAB_0019bc25: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x48] JNC 0x0019bc98 MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RAX + 0x18] MOV EDX,dword ptr [RBP + -0x24] CALL 0x0019bf20 MOV RAX,qword ptr [RBP + -0x30] SUBSD XMM0,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x40] SUBSD XMM0,qword ptr [RAX] MOVSD qword ptr [RBP + -0x58],XMM0 MOVSD XMM0,qword ptr [RBP + -0x58] UCOMISD XMM0,qword ptr [RBP + -0x50] JBE 0x0019bc88 MOVSD XMM0,qword ptr [RBP + -0x58] MOVSD qword ptr [RBP + -0x50],XMM0 MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX LAB_0019bc88: JMP 0x0019bc8a LAB_0019bc8a: MOV RAX,qword ptr [RBP + -0x40] ADD RAX,0x20 MOV qword ptr [RBP + -0x40],RAX JMP 0x0019bc25 LAB_0019bc98: JMP 0x0019bc9a LAB_0019bc9a: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x20 MOV qword ptr [RBP + -0x30],RAX JMP 0x0019bc0b LAB_0019bcab: ADD RSP,0x60 POP RBP RET
void pick_seeds(double *param_1,int param_2,int8 *param_3,int8 *param_4, int4 param_5) { double *pdVar1; double dVar2; double local_58; double *local_48; double *local_38; local_58 = DAT_00258c80; for (local_38 = param_1; pdVar1 = local_38, local_38 < param_1 + (long)(param_2 + -1) * 4; local_38 = local_38 + 4) { while (local_48 = pdVar1 + 4, local_48 < param_1 + (long)param_2 * 4) { dVar2 = (double)mbr_join_square(local_38[3],pdVar1[7],param_5); dVar2 = (dVar2 - *local_38) - *local_48; pdVar1 = local_48; if (local_58 < dVar2) { *param_3 = local_38; *param_4 = local_48; local_58 = dVar2; } } } return; }
29,649
bitmap_set_prefix
eloqsql/mysys/my_bitmap.c
void bitmap_set_prefix(MY_BITMAP *map, uint prefix_size) { uint prefix_bytes, prefix_bits, d; uchar *m= (uchar *)map->bitmap; DBUG_ASSERT(map->bitmap); DBUG_ASSERT(prefix_size <= map->n_bits || prefix_size == (uint) ~0); set_if_smaller(prefix_size, map->n_bits); if ((prefix_bytes= prefix_size / 8)) memset(m, 0xff, prefix_bytes); m+= prefix_bytes; if ((prefix_bits= prefix_size & 7)) { *(m++)= (1 << prefix_bits)-1; // As the prefix bits are set, lets count this byte too as a prefix byte. prefix_bytes ++; } if ((d= no_bytes_in_map(map)-prefix_bytes)) memset(m, 0, d); }
O0
c
bitmap_set_prefix: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) jmp 0xef79c jmp 0xef79e jmp 0xef7a0 jmp 0xef7a2 movl -0xc(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x1c(%rcx), %eax jbe 0xef7b8 movq -0x8(%rbp), %rax movl 0x1c(%rax), %eax movl %eax, -0xc(%rbp) jmp 0xef7ba movl -0xc(%rbp), %eax shrl $0x3, %eax movl %eax, -0x10(%rbp) cmpl $0x0, %eax je 0xef7db movq -0x20(%rbp), %rdi movl -0x10(%rbp), %eax movl %eax, %edx movl $0xff, %esi callq 0x2a2c0 movl -0x10(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x20(%rbp) movl -0xc(%rbp), %eax andl $0x7, %eax movl %eax, -0x14(%rbp) cmpl $0x0, %eax je 0xef822 movl -0x14(%rbp), %ecx movl $0x1, %eax shll %cl, %eax subl $0x1, %eax movb %al, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl -0x10(%rbp), %eax addl $0x1, %eax movl %eax, -0x10(%rbp) movq -0x8(%rbp), %rax movl 0x1c(%rax), %eax addl $0x7, %eax shrl $0x3, %eax subl -0x10(%rbp), %eax movl %eax, -0x18(%rbp) cmpl $0x0, %eax je 0xef84a movq -0x20(%rbp), %rdi movl -0x18(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2c0 addq $0x20, %rsp popq %rbp retq
bitmap_set_prefix: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_20], rax jmp short $+2 loc_EF79C: jmp short $+2 loc_EF79E: jmp short $+2 loc_EF7A0: jmp short $+2 loc_EF7A2: mov eax, [rbp+var_C] mov rcx, [rbp+var_8] cmp eax, [rcx+1Ch] jbe short loc_EF7B8 mov rax, [rbp+var_8] mov eax, [rax+1Ch] mov [rbp+var_C], eax loc_EF7B8: jmp short $+2 loc_EF7BA: mov eax, [rbp+var_C] shr eax, 3 mov [rbp+var_10], eax cmp eax, 0 jz short loc_EF7DB mov rdi, [rbp+var_20] mov eax, [rbp+var_10] mov edx, eax mov esi, 0FFh call _memset loc_EF7DB: mov ecx, [rbp+var_10] mov rax, [rbp+var_20] mov ecx, ecx add rax, rcx mov [rbp+var_20], rax mov eax, [rbp+var_C] and eax, 7 mov [rbp+var_14], eax cmp eax, 0 jz short loc_EF822 mov ecx, [rbp+var_14] mov eax, 1 shl eax, cl sub eax, 1 mov cl, al mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov eax, [rbp+var_10] add eax, 1 mov [rbp+var_10], eax loc_EF822: mov rax, [rbp+var_8] mov eax, [rax+1Ch] add eax, 7 shr eax, 3 sub eax, [rbp+var_10] mov [rbp+var_18], eax cmp eax, 0 jz short loc_EF84A mov rdi, [rbp+var_20] mov eax, [rbp+var_18] mov edx, eax xor esi, esi call _memset loc_EF84A: add rsp, 20h pop rbp retn
long long bitmap_set_prefix(long long *a1, unsigned int a2) { _BYTE *v2; // rax long long result; // rax long long v4; // [rsp+0h] [rbp-20h] _BYTE *v5; // [rsp+0h] [rbp-20h] unsigned int v6; // [rsp+10h] [rbp-10h] unsigned int v7; // [rsp+14h] [rbp-Ch] v7 = a2; v4 = *a1; if ( a2 > *((_DWORD *)a1 + 7) ) v7 = *((_DWORD *)a1 + 7); v6 = v7 >> 3; if ( v7 >> 3 ) memset(v4, 255LL, v6); v5 = (_BYTE *)(v6 + v4); if ( (v7 & 7) != 0 ) { v2 = v5++; *v2 = (1 << (v7 & 7)) - 1; ++v6; } result = ((unsigned int)(*((_DWORD *)a1 + 7) + 7) >> 3) - v6; if ( (_DWORD)result ) return memset(v5, 0LL, (unsigned int)result); return result; }
bitmap_set_prefix: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX JMP 0x001ef79c LAB_001ef79c: JMP 0x001ef79e LAB_001ef79e: JMP 0x001ef7a0 LAB_001ef7a0: JMP 0x001ef7a2 LAB_001ef7a2: MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x1c] JBE 0x001ef7b8 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x1c] MOV dword ptr [RBP + -0xc],EAX LAB_001ef7b8: JMP 0x001ef7ba LAB_001ef7ba: MOV EAX,dword ptr [RBP + -0xc] SHR EAX,0x3 MOV dword ptr [RBP + -0x10],EAX CMP EAX,0x0 JZ 0x001ef7db MOV RDI,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x10] MOV EDX,EAX MOV ESI,0xff CALL 0x0012a2c0 LAB_001ef7db: MOV ECX,dword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x7 MOV dword ptr [RBP + -0x14],EAX CMP EAX,0x0 JZ 0x001ef822 MOV ECX,dword ptr [RBP + -0x14] MOV EAX,0x1 SHL EAX,CL SUB EAX,0x1 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x10] ADD EAX,0x1 MOV dword ptr [RBP + -0x10],EAX LAB_001ef822: MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x1c] ADD EAX,0x7 SHR EAX,0x3 SUB EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x18],EAX CMP EAX,0x0 JZ 0x001ef84a MOV RDI,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x18] MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2c0 LAB_001ef84a: ADD RSP,0x20 POP RBP RET
void bitmap_set_prefix(int8 *param_1,uint param_2) { void *__s; char *pcVar1; char *local_28; uint local_18; uint local_14; __s = (void *)*param_1; local_14 = param_2; if (*(uint *)((long)param_1 + 0x1c) < param_2) { local_14 = *(uint *)((long)param_1 + 0x1c); } local_18 = local_14 >> 3; if (local_18 != 0) { memset(__s,0xff,(ulong)local_18); } pcVar1 = (char *)((long)__s + (ulong)local_18); local_28 = pcVar1; if ((local_14 & 7) != 0) { local_28 = pcVar1 + 1; *pcVar1 = (char)(1 << (sbyte)(local_14 & 7)) + -1; local_18 = local_18 + 1; } local_18 = (*(int *)((long)param_1 + 0x1c) + 7U >> 3) - local_18; if (local_18 != 0) { memset(local_28,0,(ulong)local_18); } return; }
29,650
my_uca_coll_init_utf8mb4
eloqsql/strings/ctype-uca.c
static my_bool my_uca_coll_init_utf8mb4(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { if (my_coll_init_uca(cs, loader)) return TRUE; if (my_uca_collation_can_optimize_no_contractions(cs)) my_uca_handler_map(cs, &my_uca_package_utf8mb4, &my_uca_package_no_contractions_utf8mb4); return FALSE; }
O0
c
my_uca_coll_init_utf8mb4: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xa7400 cmpb $0x0, %al je 0xa9c77 movb $0x1, -0x1(%rbp) jmp 0xa9c9f movq -0x10(%rbp), %rdi callq 0xb33f0 cmpb $0x0, %al je 0xa9c9b movq -0x10(%rbp), %rdi leaq 0x281931(%rip), %rsi # 0x32b5c0 leaq 0x28194a(%rip), %rdx # 0x32b5e0 callq 0xb3450 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
my_uca_coll_init_utf8mb4: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call my_coll_init_uca cmp al, 0 jz short loc_A9C77 mov [rbp+var_1], 1 jmp short loc_A9C9F loc_A9C77: mov rdi, [rbp+var_10] call my_uca_collation_can_optimize_no_contractions cmp al, 0 jz short loc_A9C9B mov rdi, [rbp+var_10] lea rsi, my_uca_package_utf8mb4 lea rdx, my_uca_package_no_contractions_utf8mb4 call my_uca_handler_map loc_A9C9B: mov [rbp+var_1], 0 loc_A9C9F: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_uca_coll_init_utf8mb4(long long a1, long long a2) { if ( (unsigned __int8)my_coll_init_uca(a1, a2) ) return 1; if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) ) my_uca_handler_map(a1, my_uca_package_utf8mb4, my_uca_package_no_contractions_utf8mb4); return 0; }
my_uca_coll_init_utf8mb4: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001a7400 CMP AL,0x0 JZ 0x001a9c77 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001a9c9f LAB_001a9c77: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001b33f0 CMP AL,0x0 JZ 0x001a9c9b MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x42b5c0] LEA RDX,[0x42b5e0] CALL 0x001b3450 LAB_001a9c9b: MOV byte ptr [RBP + -0x1],0x0 LAB_001a9c9f: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 my_uca_coll_init_utf8mb4(int8 param_1,int8 param_2) { char cVar1; int1 local_9; cVar1 = my_coll_init_uca(param_1,param_2); if (cVar1 == '\0') { cVar1 = my_uca_collation_can_optimize_no_contractions(param_1); if (cVar1 != '\0') { my_uca_handler_map(param_1,my_uca_package_utf8mb4,my_uca_package_no_contractions_utf8mb4); } local_9 = 0; } else { local_9 = 1; } return local_9; }
29,651
dequantize_row_q8_0
7CodeWizard[P]stablediffusion/ggml/src/ggml-quants.c
void dequantize_row_q8_0(const block_q8_0 * restrict x, float * restrict y, int k) { static const int qk = QK8_0; assert(k % qk == 0); const int nb = k / qk; for (int i = 0; i < nb; i++) { const float d = GGML_FP16_TO_FP32(x[i].d); for (int j = 0; j < qk; ++j) { y[i*qk + j] = x[i].qs[j]*d; } } }
O1
c
dequantize_row_q8_0: cmpl $0x20, %edx jl 0xb6e4b shrl $0x5, %edx leaq 0x2(%rdi), %rax xorl %ecx, %ecx leaq 0xc747c(%rip), %r8 # 0x17e280 movq %rcx, %r9 shlq $0x5, %r9 leaq (%r9,%rcx,2), %r9 movzwl (%rdi,%r9), %r9d vbroadcastss (%r8,%r9,4), %ymm0 xorl %r9d, %r9d vpmovsxbd (%rax,%r9), %ymm1 vcvtdq2ps %ymm1, %ymm1 vmulps %ymm1, %ymm0, %ymm1 vmovups %ymm1, (%rsi,%r9,4) addq $0x8, %r9 cmpq $0x20, %r9 jne 0xb6e1d incq %rcx subq $-0x80, %rsi addq $0x22, %rax cmpq %rdx, %rcx jne 0xb6e04 vzeroupper retq
dequantize_row_q8_0: cmp edx, 20h ; ' ' jl short loc_B6E4B shr edx, 5 lea rax, [rdi+2] xor ecx, ecx lea r8, ggml_table_f32_f16 loc_B6E04: mov r9, rcx shl r9, 5 lea r9, [r9+rcx*2] movzx r9d, word ptr [rdi+r9] vbroadcastss ymm0, dword ptr [r8+r9*4] xor r9d, r9d loc_B6E1D: vpmovsxbd ymm1, qword ptr [rax+r9] vcvtdq2ps ymm1, ymm1 vmulps ymm1, ymm0, ymm1 vmovups ymmword ptr [rsi+r9*4], ymm1 add r9, 8 cmp r9, 20h ; ' ' jnz short loc_B6E1D inc rcx sub rsi, 0FFFFFFFFFFFFFF80h add rax, 22h ; '"' cmp rcx, rdx jnz short loc_B6E04 loc_B6E4B: vzeroupper retn
void dequantize_row_q8_0(long long a1, long long _RSI, int a3) { long long v3; // rdx long long v5; // rcx if ( a3 >= 32 ) { v3 = (unsigned int)a3 >> 5; _RAX = a1 + 2; v5 = 0LL; _R8 = &ggml_table_f32_f16; do { _R9 = *(unsigned __int16 *)(a1 + 34 * v5); __asm { vbroadcastss ymm0, dword ptr [r8+r9*4] } for ( _R9 = 0LL; _R9 != 32; _R9 += 8LL ) { __asm { vpmovsxbd ymm1, qword ptr [rax+r9] vcvtdq2ps ymm1, ymm1 vmulps ymm1, ymm0, ymm1 vmovups ymmword ptr [rsi+r9*4], ymm1 } } ++v5; _RSI += 128LL; _RAX += 34LL; } while ( v5 != v3 ); } __asm { vzeroupper } }
29,652
dequantize_row_q8_0
7CodeWizard[P]stablediffusion/ggml/src/ggml-quants.c
void dequantize_row_q8_0(const block_q8_0 * restrict x, float * restrict y, int k) { static const int qk = QK8_0; assert(k % qk == 0); const int nb = k / qk; for (int i = 0; i < nb; i++) { const float d = GGML_FP16_TO_FP32(x[i].d); for (int j = 0; j < qk; ++j) { y[i*qk + j] = x[i].qs[j]*d; } } }
O2
c
dequantize_row_q8_0: movl %edx, %eax pushq $0x20 popq %rcx cltd idivl %ecx xorl %ecx, %ecx testl %eax, %eax cmovlel %ecx, %eax leaq 0x2(%rdi), %rdx leaq 0xca4c3(%rip), %r8 # 0x15d290 cmpq %rax, %rcx je 0x92e10 imulq $0x22, %rcx, %r9 movzwl (%rdi,%r9), %r9d vmovss (%r8,%r9,4), %xmm0 xorl %r9d, %r9d cmpq $0x20, %r9 je 0x92e03 movsbl (%rdx,%r9), %r10d vcvtsi2ss %r10d, %xmm2, %xmm1 vmulss %xmm1, %xmm0, %xmm1 vmovss %xmm1, (%rsi,%r9,4) incq %r9 jmp 0x92de4 incq %rcx subq $-0x80, %rsi addq $0x22, %rdx jmp 0x92dcd retq
dequantize_row_q8_0: mov eax, edx push 20h ; ' ' pop rcx cdq idiv ecx xor ecx, ecx test eax, eax cmovle eax, ecx lea rdx, [rdi+2] lea r8, ggml_table_f32_f16 loc_92DCD: cmp rcx, rax jz short locret_92E10 imul r9, rcx, 22h ; '"' movzx r9d, word ptr [rdi+r9] vmovss xmm0, dword ptr [r8+r9*4] xor r9d, r9d loc_92DE4: cmp r9, 20h ; ' ' jz short loc_92E03 movsx r10d, byte ptr [rdx+r9] vcvtsi2ss xmm1, xmm2, r10d vmulss xmm1, xmm0, xmm1 vmovss dword ptr [rsi+r9*4], xmm1 inc r9 jmp short loc_92DE4 loc_92E03: inc rcx sub rsi, 0FFFFFFFFFFFFFF80h add rdx, 22h ; '"' jmp short loc_92DCD locret_92E10: retn
long long dequantize_row_q8_0(long long a1, long long _RSI, int a3, double a4, double a5, __m128 _XMM2) { long long result; // rax long long v7; // rcx long long v8; // rdx result = (unsigned int)(a3 / 32); v7 = 0LL; if ( (int)result <= 0 ) result = 0LL; v8 = a1 + 2; _R8 = &ggml_table_f32_f16; while ( v7 != result ) { _R9 = *(unsigned __int16 *)(a1 + 34 * v7); __asm { vmovss xmm0, dword ptr [r8+r9*4] } for ( _R9 = 0LL; _R9 != 32; ++_R9 ) { __asm { vcvtsi2ss xmm1, xmm2, r10d vmulss xmm1, xmm0, xmm1 vmovss dword ptr [rsi+r9*4], xmm1 } } ++v7; _RSI += 128LL; v8 += 34LL; } return result; }
dequantize_row_q8_0: MOV EAX,EDX PUSH 0x20 POP RCX CDQ IDIV ECX XOR ECX,ECX TEST EAX,EAX CMOVLE EAX,ECX LEA RDX,[RDI + 0x2] LEA R8,[0x25d290] LAB_00192dcd: CMP RCX,RAX JZ 0x00192e10 IMUL R9,RCX,0x22 MOVZX R9D,word ptr [RDI + R9*0x1] VMOVSS XMM0,dword ptr [R8 + R9*0x4] XOR R9D,R9D LAB_00192de4: CMP R9,0x20 JZ 0x00192e03 MOVSX R10D,byte ptr [RDX + R9*0x1] VCVTSI2SS XMM1,XMM2,R10D VMULSS XMM1,XMM0,XMM1 VMOVSS dword ptr [RSI + R9*0x4],XMM1 INC R9 JMP 0x00192de4 LAB_00192e03: INC RCX SUB RSI,-0x80 ADD RDX,0x22 JMP 0x00192dcd LAB_00192e10: RET
void dequantize_row_q8_0(long param_1,long param_2,int param_3) { float fVar1; ulong uVar2; ulong uVar3; long lVar4; long lVar5; uVar2 = (long)param_3 / 0x20 & 0xffffffff; uVar3 = 0; if ((int)((long)param_3 / 0x20) < 1) { uVar2 = 0; } lVar4 = param_1 + 2; for (; uVar3 != uVar2; uVar3 = uVar3 + 1) { fVar1 = (float)(&ggml_table_f32_f16)[*(ushort *)(param_1 + uVar3 * 0x22)]; for (lVar5 = 0; lVar5 != 0x20; lVar5 = lVar5 + 1) { *(float *)(param_2 + lVar5 * 4) = fVar1 * (float)(int)*(char *)(lVar4 + lVar5); } param_2 = param_2 + 0x80; lVar4 = lVar4 + 0x22; } return; }
29,653
b2d
eloqsql/strings/dtoa.c
static double b2d(Bigint *a, int *e) { ULong *xa, *xa0, w, y, z; int k; U d; #define d0 word0(&d) #define d1 word1(&d) xa0= a->p.x; xa= xa0 + a->wds; y= *--xa; k= hi0bits(y); *e= 32 - k; if (k < Ebits) { d0= Exp_1 | y >> (Ebits - k); w= xa > xa0 ? *--xa : 0; d1= y << ((32-Ebits) + k) | w >> (Ebits - k); goto ret_d; } z= xa > xa0 ? *--xa : 0; if (k-= Ebits) { d0= Exp_1 | y << k | z >> (32 - k); y= xa > xa0 ? *--xa : 0; d1= z << k | y >> (32 - k); } else { d0= Exp_1 | y; d1= z; } ret_d: #undef d0 #undef d1 return dval(&d); }
O0
c
b2d: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx movslq 0x14(%rcx), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x28(%rbp) movl -0x28(%rbp), %edi callq 0xc21a0 movl %eax, -0x30(%rbp) movl $0x20, %ecx subl -0x30(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) cmpl $0xb, -0x30(%rbp) jge 0xc233d movl -0x28(%rbp), %eax movl $0xb, %ecx subl -0x30(%rbp), %ecx shrl %cl, %eax orl $0x3ff00000, %eax # imm = 0x3FF00000 movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xc230c movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x3c(%rbp) jmp 0xc2313 xorl %eax, %eax movl %eax, -0x3c(%rbp) jmp 0xc2313 movl -0x3c(%rbp), %eax movl %eax, -0x24(%rbp) movl -0x28(%rbp), %eax movl -0x30(%rbp), %ecx addl $0x15, %ecx shll %cl, %eax movl -0x24(%rbp), %edx movl $0xb, %ecx subl -0x30(%rbp), %ecx shrl %cl, %edx movl %edx, %ecx orl %ecx, %eax movl %eax, -0x38(%rbp) jmp 0xc23f9 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xc235e movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x40(%rbp) jmp 0xc2365 xorl %eax, %eax movl %eax, -0x40(%rbp) jmp 0xc2365 movl -0x40(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x30(%rbp), %eax subl $0xb, %eax movl %eax, -0x30(%rbp) cmpl $0x0, %eax je 0xc23e6 movl -0x28(%rbp), %eax movl -0x30(%rbp), %ecx shll %cl, %eax orl $0x3ff00000, %eax # imm = 0x3FF00000 movl -0x2c(%rbp), %edx movl $0x20, %ecx subl -0x30(%rbp), %ecx shrl %cl, %edx movl %edx, %ecx orl %ecx, %eax movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xc23bb movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x44(%rbp) jmp 0xc23c2 xorl %eax, %eax movl %eax, -0x44(%rbp) jmp 0xc23c2 movl -0x44(%rbp), %eax movl %eax, -0x28(%rbp) movl -0x2c(%rbp), %eax movl -0x30(%rbp), %ecx shll %cl, %eax movl -0x28(%rbp), %edx movl $0x20, %ecx subl -0x30(%rbp), %ecx shrl %cl, %edx movl %edx, %ecx orl %ecx, %eax movl %eax, -0x38(%rbp) jmp 0xc23f7 movl -0x28(%rbp), %eax orl $0x3ff00000, %eax # imm = 0x3FF00000 movl %eax, -0x34(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x38(%rbp) jmp 0xc23f9 movsd -0x38(%rbp), %xmm0 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
b2d: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx+14h] shl rcx, 2 add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_28], eax mov edi, [rbp+var_28] call hi0bits_0 mov [rbp+var_30], eax mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax], ecx cmp [rbp+var_30], 0Bh jge short loc_C233D mov eax, [rbp+var_28] mov ecx, 0Bh sub ecx, [rbp+var_30] shr eax, cl or eax, 3FF00000h mov dword ptr [rbp+var_38+4], eax mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jbe short loc_C230C mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_3C], eax jmp short loc_C2313 loc_C230C: xor eax, eax mov [rbp+var_3C], eax jmp short $+2 loc_C2313: mov eax, [rbp+var_3C] mov [rbp+var_24], eax mov eax, [rbp+var_28] mov ecx, [rbp+var_30] add ecx, 15h shl eax, cl mov edx, [rbp+var_24] mov ecx, 0Bh sub ecx, [rbp+var_30] shr edx, cl mov ecx, edx or eax, ecx mov dword ptr [rbp+var_38], eax jmp loc_C23F9 loc_C233D: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jbe short loc_C235E mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_40], eax jmp short loc_C2365 loc_C235E: xor eax, eax mov [rbp+var_40], eax jmp short $+2 loc_C2365: mov eax, [rbp+var_40] mov [rbp+var_2C], eax mov eax, [rbp+var_30] sub eax, 0Bh mov [rbp+var_30], eax cmp eax, 0 jz short loc_C23E6 mov eax, [rbp+var_28] mov ecx, [rbp+var_30] shl eax, cl or eax, 3FF00000h mov edx, [rbp+var_2C] mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] shr edx, cl mov ecx, edx or eax, ecx mov dword ptr [rbp+var_38+4], eax mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jbe short loc_C23BB mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_44], eax jmp short loc_C23C2 loc_C23BB: xor eax, eax mov [rbp+var_44], eax jmp short $+2 loc_C23C2: mov eax, [rbp+var_44] mov [rbp+var_28], eax mov eax, [rbp+var_2C] mov ecx, [rbp+var_30] shl eax, cl mov edx, [rbp+var_28] mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] shr edx, cl mov ecx, edx or eax, ecx mov dword ptr [rbp+var_38], eax jmp short loc_C23F7 loc_C23E6: mov eax, [rbp+var_28] or eax, 3FF00000h mov dword ptr [rbp+var_38+4], eax mov eax, [rbp+var_2C] mov dword ptr [rbp+var_38], eax loc_C23F7: jmp short $+2 loc_C23F9: movsd xmm0, [rbp+var_38] add rsp, 50h pop rbp retn
double b2d(long long a1, _DWORD *a2) { int *v2; // rax unsigned int v4; // [rsp+Ch] [rbp-44h] unsigned int v5; // [rsp+10h] [rbp-40h] unsigned int v6; // [rsp+14h] [rbp-3Ch] long long v7; // [rsp+18h] [rbp-38h] int v8; // [rsp+20h] [rbp-30h] int v9; // [rsp+20h] [rbp-30h] long long v10; // [rsp+24h] [rbp-2Ch] unsigned long long v11; // [rsp+30h] [rbp-20h] int *v12; // [rsp+38h] [rbp-18h] v11 = *(_QWORD *)a1; v12 = (int *)(4LL * *(int *)(a1 + 20) + *(_QWORD *)a1 - 4); HIDWORD(v10) = *v12; v8 = hi0bits_0(*v12); *a2 = 32 - v8; if ( v8 >= 11 ) { if ( (unsigned long long)v12 <= v11 ) { v5 = 0; } else { v2 = v12--; v5 = *(v2 - 1); } LODWORD(v10) = v5; v9 = v8 - 11; if ( v9 ) { HIDWORD(v7) = (v5 >> (32 - v9)) | (HIDWORD(v10) << v9) | 0x3FF00000; if ( (unsigned long long)v12 <= v11 ) v4 = 0; else v4 = *(v12 - 1); LODWORD(v7) = (v4 >> (32 - v9)) | (v5 << v9); } else { v7 = v10 | 0x3FF0000000000000LL; } } else { HIDWORD(v7) = (HIDWORD(v10) >> (11 - v8)) | 0x3FF00000; if ( (unsigned long long)v12 <= v11 ) v6 = 0; else v6 = *(v12 - 1); LODWORD(v7) = (v6 >> (11 - v8)) | (HIDWORD(v10) << (v8 + 21)); } return *(double *)&v7; }
b2d: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RCX + 0x14] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x28],EAX MOV EDI,dword ptr [RBP + -0x28] CALL 0x001c21a0 MOV dword ptr [RBP + -0x30],EAX MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX CMP dword ptr [RBP + -0x30],0xb JGE 0x001c233d MOV EAX,dword ptr [RBP + -0x28] MOV ECX,0xb SUB ECX,dword ptr [RBP + -0x30] SHR EAX,CL OR EAX,0x3ff00000 MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001c230c MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x3c],EAX JMP 0x001c2313 LAB_001c230c: XOR EAX,EAX MOV dword ptr [RBP + -0x3c],EAX JMP 0x001c2313 LAB_001c2313: MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x30] ADD ECX,0x15 SHL EAX,CL MOV EDX,dword ptr [RBP + -0x24] MOV ECX,0xb SUB ECX,dword ptr [RBP + -0x30] SHR EDX,CL MOV ECX,EDX OR EAX,ECX MOV dword ptr [RBP + -0x38],EAX JMP 0x001c23f9 LAB_001c233d: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001c235e MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x40],EAX JMP 0x001c2365 LAB_001c235e: XOR EAX,EAX MOV dword ptr [RBP + -0x40],EAX JMP 0x001c2365 LAB_001c2365: MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x30] SUB EAX,0xb MOV dword ptr [RBP + -0x30],EAX CMP EAX,0x0 JZ 0x001c23e6 MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x30] SHL EAX,CL OR EAX,0x3ff00000 MOV EDX,dword ptr [RBP + -0x2c] MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] SHR EDX,CL MOV ECX,EDX OR EAX,ECX MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001c23bb MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x44],EAX JMP 0x001c23c2 LAB_001c23bb: XOR EAX,EAX MOV dword ptr [RBP + -0x44],EAX JMP 0x001c23c2 LAB_001c23c2: MOV EAX,dword ptr [RBP + -0x44] MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,dword ptr [RBP + -0x30] SHL EAX,CL MOV EDX,dword ptr [RBP + -0x28] MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] SHR EDX,CL MOV ECX,EDX OR EAX,ECX MOV dword ptr [RBP + -0x38],EAX JMP 0x001c23f7 LAB_001c23e6: MOV EAX,dword ptr [RBP + -0x28] OR EAX,0x3ff00000 MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x38],EAX LAB_001c23f7: JMP 0x001c23f9 LAB_001c23f9: MOVSD XMM0,qword ptr [RBP + -0x38] ADD RSP,0x50 POP RBP RET
int8 b2d(ulong *param_1,int *param_2) { uint uVar1; ulong uVar2; char cVar3; int iVar4; long lVar5; byte bVar6; int4 local_4c; int4 local_48; int4 local_44; int4 local_40; int4 uStack_3c; int8 local_20; uVar2 = *param_1; lVar5 = uVar2 + (long)*(int *)((long)param_1 + 0x14) * 4; local_20 = lVar5 - 4; uVar1 = *(uint *)(lVar5 + -4); iVar4 = hi0bits(uVar1); *param_2 = 0x20 - iVar4; if (iVar4 < 0xb) { cVar3 = (char)iVar4; uStack_3c = uVar1 >> (0xbU - cVar3 & 0x1f) | 0x3ff00000; if (uVar2 < local_20) { local_44 = *(uint *)(lVar5 + -8); } else { local_44 = 0; } local_40 = uVar1 << (cVar3 + 0x15U & 0x1f) | local_44 >> (0xbU - cVar3 & 0x1f); } else { if (uVar2 < local_20) { local_20 = lVar5 - 8; local_48 = *(uint *)(lVar5 + -8); } else { local_48 = 0; } if (iVar4 + -0xb == 0) { uStack_3c = uVar1 | 0x3ff00000; local_40 = local_48; } else { bVar6 = (byte)(iVar4 + -0xb); uStack_3c = uVar1 << (bVar6 & 0x1f) | 0x3ff00000 | local_48 >> (0x20 - bVar6 & 0x1f); if (uVar2 < local_20) { local_4c = *(uint *)(local_20 - 4); } else { local_4c = 0; } local_40 = local_48 << (bVar6 & 0x1f) | local_4c >> (0x20 - bVar6 & 0x1f); } } return CONCAT44(uStack_3c,local_40); }
29,654
PFS_table_lock_stat_visitor::visit_table(PFS_table*)
eloqsql/storage/perfschema/pfs_visitor.cc
void PFS_table_lock_stat_visitor::visit_table(PFS_table *pfs) { m_stat.aggregate(& pfs->m_table_stat.m_lock_stat); }
O3
cpp
PFS_table_lock_stat_visitor::visit_table(PFS_table*): pushq %rbp movq %rsp, %rbp movq $-0x20, %rax movq 0x22d8(%rsi,%rax), %rcx testq %rcx, %rcx je 0xb0b71e addq %rcx, 0x28(%rdi,%rax) movq 0x22e0(%rsi,%rax), %rcx addq %rcx, 0x30(%rdi,%rax) movq 0x22e8(%rsi,%rax), %rcx cmpq %rcx, 0x38(%rdi,%rax) ja 0xb0b72c movq 0x22f0(%rsi,%rax), %rcx cmpq %rcx, 0x40(%rdi,%rax) jb 0xb0b733 addq $0x20, %rax cmpq $0x140, %rax # imm = 0x140 jb 0xb0b6e1 jmp 0xb0b73a movq %rcx, 0x38(%rdi,%rax) jmp 0xb0b70f movq %rcx, 0x40(%rdi,%rax) jmp 0xb0b71e popq %rbp retq
_ZN27PFS_table_lock_stat_visitor11visit_tableEP9PFS_table: push rbp mov rbp, rsp mov rax, 0FFFFFFFFFFFFFFE0h loc_B0B6E1: mov rcx, [rsi+rax+22D8h] test rcx, rcx jz short loc_B0B71E add [rdi+rax+28h], rcx mov rcx, [rsi+rax+22E0h] add [rdi+rax+30h], rcx mov rcx, [rsi+rax+22E8h] cmp [rdi+rax+38h], rcx ja short loc_B0B72C loc_B0B70F: mov rcx, [rsi+rax+22F0h] cmp [rdi+rax+40h], rcx jb short loc_B0B733 loc_B0B71E: add rax, 20h ; ' ' cmp rax, 140h jb short loc_B0B6E1 jmp short loc_B0B73A loc_B0B72C: mov [rdi+rax+38h], rcx jmp short loc_B0B70F loc_B0B733: mov [rdi+rax+40h], rcx jmp short loc_B0B71E loc_B0B73A: pop rbp retn
unsigned long long PFS_table_lock_stat_visitor::visit_table(PFS_table_lock_stat_visitor *this, PFS_table *a2) { unsigned long long result; // rax long long v3; // rcx unsigned long long v4; // rcx unsigned long long v5; // rcx result = -32LL; do { v3 = *(_QWORD *)((char *)a2 + result + 8920); if ( v3 ) { *(_QWORD *)((char *)this + result + 40) += v3; *(_QWORD *)((char *)this + result + 48) += *(_QWORD *)((char *)a2 + result + 8928); v4 = *(_QWORD *)((char *)a2 + result + 8936); if ( *(_QWORD *)((char *)this + result + 56) > v4 ) *(_QWORD *)((char *)this + result + 56) = v4; v5 = *(_QWORD *)((char *)a2 + result + 8944); if ( *(_QWORD *)((char *)this + result + 64) < v5 ) *(_QWORD *)((char *)this + result + 64) = v5; } result += 32LL; } while ( result < 0x140 ); return result; }
fix_length_and_dec: PUSH RBP MOV RBP,RSP LEA RAX,[0x16a6048] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x9c] SHL EAX,0x9 MOV dword ptr [RDI + 0x8],EAX MOV byte ptr [RDI + 0x64],0x0 AND byte ptr [RDI + 0x60],0xfe XOR EAX,EAX POP RBP RET
/* Item_func_sqlerrm::fix_length_and_dec() */ int8 __thiscall Item_func_sqlerrm::fix_length_and_dec(Item_func_sqlerrm *this) { *(int *)(this + 8) = *(int *)(system_charset_info + 0x9c) << 9; this[100] = (Item_func_sqlerrm)0x0; this[0x60] = (Item_func_sqlerrm)((byte)this[0x60] & 0xfe); return 0; }
29,655
composition_source_over
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
static void composition_source_over(uint32_t* dest, int length, const uint32_t* src, uint32_t const_alpha) { if(const_alpha == 255) { for(int i = 0; i < length; i++) { uint32_t s = src[i]; if(s >= 0xff000000) { dest[i] = s; } else if (s != 0) { dest[i] = s + BYTE_MUL(dest[i], plutovg_alpha(~s)); } } } else { for(int i = 0; i < length; i++) { uint32_t s = BYTE_MUL(src[i], const_alpha); dest[i] = s + BYTE_MUL(dest[i], plutovg_alpha(~s)); } } }
O0
c
composition_source_over: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) cmpl $0xff, -0x1c(%rbp) jne 0x38205 movl $0x0, -0x20(%rbp) movl -0x20(%rbp), %eax cmpl -0xc(%rbp), %eax jge 0x38203 movq -0x18(%rbp), %rax movslq -0x20(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -0x24(%rbp) cmpl $0xff000000, -0x24(%rbp) # imm = 0xFF000000 jb 0x381b9 movl -0x24(%rbp), %edx movq -0x8(%rbp), %rax movslq -0x20(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp 0x381f6 cmpl $0x0, -0x24(%rbp) je 0x381f4 movl -0x24(%rbp), %eax movl %eax, -0x30(%rbp) movq -0x8(%rbp), %rax movslq -0x20(%rbp), %rcx movl (%rax,%rcx,4), %edi movl -0x24(%rbp), %esi xorl $-0x1, %esi shrl $0x18, %esi andl $0xff, %esi callq 0x37670 movl -0x30(%rbp), %edx addl %eax, %edx movq -0x8(%rbp), %rax movslq -0x20(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp 0x381f6 jmp 0x381f8 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0x3818a jmp 0x3826c movl $0x0, -0x28(%rbp) movl -0x28(%rbp), %eax cmpl -0xc(%rbp), %eax jge 0x3826a movq -0x18(%rbp), %rax movslq -0x28(%rbp), %rcx movl (%rax,%rcx,4), %edi movl -0x1c(%rbp), %esi callq 0x37670 movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x34(%rbp) movq -0x8(%rbp), %rax movslq -0x28(%rbp), %rcx movl (%rax,%rcx,4), %edi movl -0x2c(%rbp), %esi xorl $-0x1, %esi shrl $0x18, %esi andl $0xff, %esi callq 0x37670 movl -0x34(%rbp), %edx addl %eax, %edx movq -0x8(%rbp), %rax movslq -0x28(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x3820c jmp 0x3826c addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
composition_source_over: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx cmp [rbp+var_1C], 0FFh jnz loc_38205 mov [rbp+var_20], 0 loc_3818A: mov eax, [rbp+var_20] cmp eax, [rbp+var_C] jge short loc_38203 mov rax, [rbp+var_18] movsxd rcx, [rbp+var_20] mov eax, [rax+rcx*4] mov [rbp+var_24], eax cmp [rbp+var_24], 0FF000000h jb short loc_381B9 mov edx, [rbp+var_24] mov rax, [rbp+var_8] movsxd rcx, [rbp+var_20] mov [rax+rcx*4], edx jmp short loc_381F6 loc_381B9: cmp [rbp+var_24], 0 jz short loc_381F4 mov eax, [rbp+var_24] mov [rbp+var_30], eax mov rax, [rbp+var_8] movsxd rcx, [rbp+var_20] mov edi, [rax+rcx*4] mov esi, [rbp+var_24] xor esi, 0FFFFFFFFh shr esi, 18h and esi, 0FFh call BYTE_MUL mov edx, [rbp+var_30] add edx, eax mov rax, [rbp+var_8] movsxd rcx, [rbp+var_20] mov [rax+rcx*4], edx loc_381F4: jmp short $+2 loc_381F6: jmp short $+2 loc_381F8: mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax jmp short loc_3818A loc_38203: jmp short loc_3826C loc_38205: mov [rbp+var_28], 0 loc_3820C: mov eax, [rbp+var_28] cmp eax, [rbp+var_C] jge short loc_3826A mov rax, [rbp+var_18] movsxd rcx, [rbp+var_28] mov edi, [rax+rcx*4] mov esi, [rbp+var_1C] call BYTE_MUL mov [rbp+var_2C], eax mov eax, [rbp+var_2C] mov [rbp+var_34], eax mov rax, [rbp+var_8] movsxd rcx, [rbp+var_28] mov edi, [rax+rcx*4] mov esi, [rbp+var_2C] xor esi, 0FFFFFFFFh shr esi, 18h and esi, 0FFh call BYTE_MUL mov edx, [rbp+var_34] add edx, eax mov rax, [rbp+var_8] movsxd rcx, [rbp+var_28] mov [rax+rcx*4], edx mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax jmp short loc_3820C loc_3826A: jmp short $+2 loc_3826C: add rsp, 40h pop rbp retn
long long composition_source_over(long long a1, int a2, long long a3, int a4) { long long result; // rax int v5; // [rsp+Ch] [rbp-34h] unsigned int j; // [rsp+18h] [rbp-28h] unsigned int v7; // [rsp+1Ch] [rbp-24h] unsigned int i; // [rsp+20h] [rbp-20h] if ( a4 == 255 ) { for ( i = 0; ; ++i ) { result = i; if ( (int)i >= a2 ) break; v7 = *(_DWORD *)(a3 + 4LL * (int)i); if ( v7 < 0xFF000000 ) { if ( v7 ) *(_DWORD *)(a1 + 4LL * (int)i) = BYTE_MUL(*(_DWORD *)(a1 + 4LL * (int)i), ~v7 >> 24) + v7; } else { *(_DWORD *)(a1 + 4LL * (int)i) = v7; } } } else { for ( j = 0; ; ++j ) { result = j; if ( (int)j >= a2 ) break; v5 = BYTE_MUL(*(_DWORD *)(a3 + 4LL * (int)j), a4); *(_DWORD *)(a1 + 4LL * (int)j) = BYTE_MUL(*(_DWORD *)(a1 + 4LL * (int)j), (unsigned int)~v5 >> 24) + v5; } } return result; }
composition_source_over: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX CMP dword ptr [RBP + -0x1c],0xff JNZ 0x00138205 MOV dword ptr [RBP + -0x20],0x0 LAB_0013818a: MOV EAX,dword ptr [RBP + -0x20] CMP EAX,dword ptr [RBP + -0xc] JGE 0x00138203 MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0xff000000 JC 0x001381b9 MOV EDX,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x20] MOV dword ptr [RAX + RCX*0x4],EDX JMP 0x001381f6 LAB_001381b9: CMP dword ptr [RBP + -0x24],0x0 JZ 0x001381f4 MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x20] MOV EDI,dword ptr [RAX + RCX*0x4] MOV ESI,dword ptr [RBP + -0x24] XOR ESI,0xffffffff SHR ESI,0x18 AND ESI,0xff CALL 0x00137670 MOV EDX,dword ptr [RBP + -0x30] ADD EDX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x20] MOV dword ptr [RAX + RCX*0x4],EDX LAB_001381f4: JMP 0x001381f6 LAB_001381f6: JMP 0x001381f8 LAB_001381f8: MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX JMP 0x0013818a LAB_00138203: JMP 0x0013826c LAB_00138205: MOV dword ptr [RBP + -0x28],0x0 LAB_0013820c: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0xc] JGE 0x0013826a MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RBP + -0x28] MOV EDI,dword ptr [RAX + RCX*0x4] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x00137670 MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x28] MOV EDI,dword ptr [RAX + RCX*0x4] MOV ESI,dword ptr [RBP + -0x2c] XOR ESI,0xffffffff SHR ESI,0x18 AND ESI,0xff CALL 0x00137670 MOV EDX,dword ptr [RBP + -0x34] ADD EDX,EAX MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x28] MOV dword ptr [RAX + RCX*0x4],EDX MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x0013820c LAB_0013826a: JMP 0x0013826c LAB_0013826c: ADD RSP,0x40 POP RBP RET
void composition_source_over(long param_1,int param_2,long param_3,int param_4) { int iVar1; uint uVar2; int4 local_30; int4 local_28; if (param_4 == 0xff) { for (local_28 = 0; local_28 < param_2; local_28 = local_28 + 1) { uVar2 = *(uint *)(param_3 + (long)local_28 * 4); if (uVar2 < 0xff000000) { if (uVar2 != 0) { iVar1 = BYTE_MUL(*(int4 *)(param_1 + (long)local_28 * 4), (uVar2 ^ 0xffffffff) >> 0x18); *(uint *)(param_1 + (long)local_28 * 4) = uVar2 + iVar1; } } else { *(uint *)(param_1 + (long)local_28 * 4) = uVar2; } } } else { for (local_30 = 0; local_30 < param_2; local_30 = local_30 + 1) { uVar2 = BYTE_MUL(*(int4 *)(param_3 + (long)local_30 * 4),param_4); iVar1 = BYTE_MUL(*(int4 *)(param_1 + (long)local_30 * 4),(uVar2 ^ 0xffffffff) >> 0x18); *(uint *)(param_1 + (long)local_30 * 4) = uVar2 + iVar1; } } return; }
29,656
ma_base_info_read
eloqsql/storage/maria/ma_backup.c
uchar *_ma_base_info_read(uchar *ptr, MARIA_BASE_INFO *base) { bmove(base->uuid, ptr, MY_UUID_SIZE); ptr+= MY_UUID_SIZE; base->keystart= mi_sizekorr(ptr); ptr+= 8; base->max_data_file_length= mi_sizekorr(ptr); ptr+= 8; base->max_key_file_length= mi_sizekorr(ptr); ptr+= 8; base->records= (ha_rows) mi_sizekorr(ptr); ptr+= 8; base->reloc= (ha_rows) mi_sizekorr(ptr); ptr+= 8; base->mean_row_length= mi_uint4korr(ptr); ptr+= 4; base->reclength= mi_uint4korr(ptr); ptr+= 4; base->pack_reclength= mi_uint4korr(ptr); ptr+= 4; base->min_pack_length= mi_uint4korr(ptr); ptr+= 4; base->max_pack_length= mi_uint4korr(ptr); ptr+= 4; base->min_block_length= mi_uint4korr(ptr); ptr+= 4; base->fields= mi_uint2korr(ptr); ptr+= 2; base->fixed_not_null_fields= mi_uint2korr(ptr); ptr+= 2; base->fixed_not_null_fields_length= mi_uint2korr(ptr);ptr+= 2; base->max_field_lengths= mi_uint2korr(ptr); ptr+= 2; base->pack_fields= mi_uint2korr(ptr); ptr+= 2; base->extra_options= mi_uint2korr(ptr); ptr+= 2; base->null_bytes= mi_uint2korr(ptr); ptr+= 2; base->original_null_bytes= mi_uint2korr(ptr); ptr+= 2; base->field_offsets= mi_uint2korr(ptr); ptr+= 2; base->language= mi_uint2korr(ptr); ptr+= 2; base->block_size= mi_uint2korr(ptr); ptr+= 2; base->rec_reflength= *ptr++; base->key_reflength= *ptr++; base->keys= *ptr++; base->auto_key= *ptr++; base->born_transactional= *ptr++; base->compression_algorithm= *ptr++; base->pack_bytes= mi_uint2korr(ptr); ptr+= 2; base->blobs= mi_uint2korr(ptr); ptr+= 2; base->max_key_block_length= mi_uint2korr(ptr); ptr+= 2; base->max_key_length= mi_uint2korr(ptr); ptr+= 2; base->extra_alloc_bytes= mi_uint2korr(ptr); ptr+= 2; base->extra_alloc_procent= *ptr++; base->s3_block_size= mi_uint3korr(ptr); ptr+= 3; ptr+= 13; return ptr; }
O3
c
ma_base_info_read: pushq %rbp movq %rsp, %rbp movups (%rdi), %xmm0 movups %xmm0, 0xdc(%rsi) movq 0x10(%rdi), %rax bswapq %rax movq %rax, (%rsi) movq 0x18(%rdi), %rax bswapq %rax movq %rax, 0x8(%rsi) movq 0x20(%rdi), %rax bswapq %rax movq %rax, 0x10(%rsi) movq 0x28(%rdi), %rax bswapq %rax movq %rax, 0x20(%rsi) movq 0x30(%rdi), %rax bswapq %rax movq %rax, 0x28(%rsi) movl 0x38(%rdi), %eax bswapl %eax movq %rax, 0x30(%rsi) movl 0x3c(%rdi), %eax bswapl %eax movq %rax, 0x38(%rsi) movl 0x40(%rdi), %eax bswapl %eax movq %rax, 0x40(%rsi) movl 0x44(%rdi), %eax bswapl %eax movq %rax, 0x48(%rsi) movl 0x48(%rdi), %eax bswapl %eax movq %rax, 0x50(%rsi) movl 0x4c(%rdi), %eax bswapl %eax movq %rax, 0x58(%rsi) movzwl 0x50(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x68(%rsi) movzwl 0x52(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x6c(%rsi) movzwl 0x54(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x70(%rsi) movzwl 0x56(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x74(%rsi) movzwl 0x58(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x78(%rsi) movzwl 0x5a(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xc8(%rsi) movzwl 0x5c(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x9c(%rsi) movzwl 0x5e(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x98(%rsi) movzwl 0x60(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xa0(%rsi) movzwl 0x62(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xcc(%rsi) movzwl 0x64(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xbc(%rsi) movzbl 0x66(%rdi), %eax movl %eax, 0x80(%rsi) movzbl 0x67(%rdi), %eax movl %eax, 0x84(%rsi) movzbl 0x68(%rdi), %eax movl %eax, 0x88(%rsi) movzbl 0x69(%rdi), %eax movl %eax, 0x8c(%rsi) movb 0x6a(%rdi), %al movb %al, 0xec(%rsi) movzbl 0x6b(%rdi), %eax movl %eax, 0xd0(%rsi) movzwl 0x6c(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x94(%rsi) movzwl 0x6e(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x90(%rsi) movzwl 0x70(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xa4(%rsi) movzwl 0x72(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xa8(%rsi) movzwl 0x74(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0xac(%rsi) movzbl 0x76(%rdi), %eax movl %eax, 0xb0(%rsi) movzwl 0x78(%rdi), %eax rolw $0x8, %ax movzwl %ax, %eax movzbl 0x77(%rdi), %ecx shll $0x10, %ecx orq %rax, %rcx movq %rcx, 0x60(%rsi) leaq 0x87(%rdi), %rax popq %rbp retq
_ma_base_info_read: push rbp mov rbp, rsp movups xmm0, xmmword ptr [rdi] movups xmmword ptr [rsi+0DCh], xmm0 mov rax, [rdi+10h] bswap rax mov [rsi], rax mov rax, [rdi+18h] bswap rax mov [rsi+8], rax mov rax, [rdi+20h] bswap rax mov [rsi+10h], rax mov rax, [rdi+28h] bswap rax mov [rsi+20h], rax mov rax, [rdi+30h] bswap rax mov [rsi+28h], rax mov eax, [rdi+38h] bswap eax mov [rsi+30h], rax mov eax, [rdi+3Ch] bswap eax mov [rsi+38h], rax mov eax, [rdi+40h] bswap eax mov [rsi+40h], rax mov eax, [rdi+44h] bswap eax mov [rsi+48h], rax mov eax, [rdi+48h] bswap eax mov [rsi+50h], rax mov eax, [rdi+4Ch] bswap eax mov [rsi+58h], rax movzx eax, word ptr [rdi+50h] rol ax, 8 movzx eax, ax mov [rsi+68h], eax movzx eax, word ptr [rdi+52h] rol ax, 8 movzx eax, ax mov [rsi+6Ch], eax movzx eax, word ptr [rdi+54h] rol ax, 8 movzx eax, ax mov [rsi+70h], eax movzx eax, word ptr [rdi+56h] rol ax, 8 movzx eax, ax mov [rsi+74h], eax movzx eax, word ptr [rdi+58h] rol ax, 8 movzx eax, ax mov [rsi+78h], eax movzx eax, word ptr [rdi+5Ah] rol ax, 8 movzx eax, ax mov [rsi+0C8h], eax movzx eax, word ptr [rdi+5Ch] rol ax, 8 movzx eax, ax mov [rsi+9Ch], eax movzx eax, word ptr [rdi+5Eh] rol ax, 8 movzx eax, ax mov [rsi+98h], eax movzx eax, word ptr [rdi+60h] rol ax, 8 movzx eax, ax mov [rsi+0A0h], eax movzx eax, word ptr [rdi+62h] rol ax, 8 movzx eax, ax mov [rsi+0CCh], eax movzx eax, word ptr [rdi+64h] rol ax, 8 movzx eax, ax mov [rsi+0BCh], eax movzx eax, byte ptr [rdi+66h] mov [rsi+80h], eax movzx eax, byte ptr [rdi+67h] mov [rsi+84h], eax movzx eax, byte ptr [rdi+68h] mov [rsi+88h], eax movzx eax, byte ptr [rdi+69h] mov [rsi+8Ch], eax mov al, [rdi+6Ah] mov [rsi+0ECh], al movzx eax, byte ptr [rdi+6Bh] mov [rsi+0D0h], eax movzx eax, word ptr [rdi+6Ch] rol ax, 8 movzx eax, ax mov [rsi+94h], eax movzx eax, word ptr [rdi+6Eh] rol ax, 8 movzx eax, ax mov [rsi+90h], eax movzx eax, word ptr [rdi+70h] rol ax, 8 movzx eax, ax mov [rsi+0A4h], eax movzx eax, word ptr [rdi+72h] rol ax, 8 movzx eax, ax mov [rsi+0A8h], eax movzx eax, word ptr [rdi+74h] rol ax, 8 movzx eax, ax mov [rsi+0ACh], eax movzx eax, byte ptr [rdi+76h] mov [rsi+0B0h], eax movzx eax, word ptr [rdi+78h] rol ax, 8 movzx eax, ax movzx ecx, byte ptr [rdi+77h] shl ecx, 10h or rcx, rax mov [rsi+60h], rcx lea rax, [rdi+87h] pop rbp retn
long long ma_base_info_read(long long a1, long long a2) { *(_OWORD *)(a2 + 220) = *(_OWORD *)a1; *(_QWORD *)a2 = _byteswap_uint64(*(_QWORD *)(a1 + 16)); *(_QWORD *)(a2 + 8) = _byteswap_uint64(*(_QWORD *)(a1 + 24)); *(_QWORD *)(a2 + 16) = _byteswap_uint64(*(_QWORD *)(a1 + 32)); *(_QWORD *)(a2 + 32) = _byteswap_uint64(*(_QWORD *)(a1 + 40)); *(_QWORD *)(a2 + 40) = _byteswap_uint64(*(_QWORD *)(a1 + 48)); *(_QWORD *)(a2 + 48) = _byteswap_ulong(*(_DWORD *)(a1 + 56)); *(_QWORD *)(a2 + 56) = _byteswap_ulong(*(_DWORD *)(a1 + 60)); *(_QWORD *)(a2 + 64) = _byteswap_ulong(*(_DWORD *)(a1 + 64)); *(_QWORD *)(a2 + 72) = _byteswap_ulong(*(_DWORD *)(a1 + 68)); *(_QWORD *)(a2 + 80) = _byteswap_ulong(*(_DWORD *)(a1 + 72)); *(_QWORD *)(a2 + 88) = _byteswap_ulong(*(_DWORD *)(a1 + 76)); *(_DWORD *)(a2 + 104) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 80), 8); *(_DWORD *)(a2 + 108) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 82), 8); *(_DWORD *)(a2 + 112) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 84), 8); *(_DWORD *)(a2 + 116) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 86), 8); *(_DWORD *)(a2 + 120) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 88), 8); *(_DWORD *)(a2 + 200) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 90), 8); *(_DWORD *)(a2 + 156) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 92), 8); *(_DWORD *)(a2 + 152) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 94), 8); *(_DWORD *)(a2 + 160) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 96), 8); *(_DWORD *)(a2 + 204) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 98), 8); *(_DWORD *)(a2 + 188) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 100), 8); *(_DWORD *)(a2 + 128) = *(unsigned __int8 *)(a1 + 102); *(_DWORD *)(a2 + 132) = *(unsigned __int8 *)(a1 + 103); *(_DWORD *)(a2 + 136) = *(unsigned __int8 *)(a1 + 104); *(_DWORD *)(a2 + 140) = *(unsigned __int8 *)(a1 + 105); *(_BYTE *)(a2 + 236) = *(_BYTE *)(a1 + 106); *(_DWORD *)(a2 + 208) = *(unsigned __int8 *)(a1 + 107); *(_DWORD *)(a2 + 148) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 108), 8); *(_DWORD *)(a2 + 144) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 110), 8); *(_DWORD *)(a2 + 164) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 112), 8); *(_DWORD *)(a2 + 168) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 114), 8); *(_DWORD *)(a2 + 172) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 116), 8); *(_DWORD *)(a2 + 176) = *(unsigned __int8 *)(a1 + 118); *(_QWORD *)(a2 + 96) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 120), 8) | (unsigned long long)(*(unsigned __int8 *)(a1 + 119) << 16); return a1 + 135; }
_ma_base_info_read: PUSH RBP MOV RBP,RSP MOVUPS XMM0,xmmword ptr [RDI] MOVUPS xmmword ptr [RSI + 0xdc],XMM0 MOV RAX,qword ptr [RDI + 0x10] BSWAP RAX MOV qword ptr [RSI],RAX MOV RAX,qword ptr [RDI + 0x18] BSWAP RAX MOV qword ptr [RSI + 0x8],RAX MOV RAX,qword ptr [RDI + 0x20] BSWAP RAX MOV qword ptr [RSI + 0x10],RAX MOV RAX,qword ptr [RDI + 0x28] BSWAP RAX MOV qword ptr [RSI + 0x20],RAX MOV RAX,qword ptr [RDI + 0x30] BSWAP RAX MOV qword ptr [RSI + 0x28],RAX MOV EAX,dword ptr [RDI + 0x38] BSWAP EAX MOV qword ptr [RSI + 0x30],RAX MOV EAX,dword ptr [RDI + 0x3c] BSWAP EAX MOV qword ptr [RSI + 0x38],RAX MOV EAX,dword ptr [RDI + 0x40] BSWAP EAX MOV qword ptr [RSI + 0x40],RAX MOV EAX,dword ptr [RDI + 0x44] BSWAP EAX MOV qword ptr [RSI + 0x48],RAX MOV EAX,dword ptr [RDI + 0x48] BSWAP EAX MOV qword ptr [RSI + 0x50],RAX MOV EAX,dword ptr [RDI + 0x4c] BSWAP EAX MOV qword ptr [RSI + 0x58],RAX MOVZX EAX,word ptr [RDI + 0x50] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x68],EAX MOVZX EAX,word ptr [RDI + 0x52] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x6c],EAX MOVZX EAX,word ptr [RDI + 0x54] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x70],EAX MOVZX EAX,word ptr [RDI + 0x56] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x74],EAX MOVZX EAX,word ptr [RDI + 0x58] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x78],EAX MOVZX EAX,word ptr [RDI + 0x5a] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xc8],EAX MOVZX EAX,word ptr [RDI + 0x5c] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x9c],EAX MOVZX EAX,word ptr [RDI + 0x5e] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x98],EAX MOVZX EAX,word ptr [RDI + 0x60] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xa0],EAX MOVZX EAX,word ptr [RDI + 0x62] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xcc],EAX MOVZX EAX,word ptr [RDI + 0x64] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xbc],EAX MOVZX EAX,byte ptr [RDI + 0x66] MOV dword ptr [RSI + 0x80],EAX MOVZX EAX,byte ptr [RDI + 0x67] MOV dword ptr [RSI + 0x84],EAX MOVZX EAX,byte ptr [RDI + 0x68] MOV dword ptr [RSI + 0x88],EAX MOVZX EAX,byte ptr [RDI + 0x69] MOV dword ptr [RSI + 0x8c],EAX MOV AL,byte ptr [RDI + 0x6a] MOV byte ptr [RSI + 0xec],AL MOVZX EAX,byte ptr [RDI + 0x6b] MOV dword ptr [RSI + 0xd0],EAX MOVZX EAX,word ptr [RDI + 0x6c] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x94],EAX MOVZX EAX,word ptr [RDI + 0x6e] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0x90],EAX MOVZX EAX,word ptr [RDI + 0x70] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xa4],EAX MOVZX EAX,word ptr [RDI + 0x72] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xa8],EAX MOVZX EAX,word ptr [RDI + 0x74] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RSI + 0xac],EAX MOVZX EAX,byte ptr [RDI + 0x76] MOV dword ptr [RSI + 0xb0],EAX MOVZX EAX,word ptr [RDI + 0x78] ROL AX,0x8 MOVZX EAX,AX MOVZX ECX,byte ptr [RDI + 0x77] SHL ECX,0x10 OR RCX,RAX MOV qword ptr [RSI + 0x60],RCX LEA RAX,[RDI + 0x87] POP RBP RET
long _ma_base_info_read(int8 *param_1,ulong *param_2) { uint uVar1; ulong uVar2; int8 uVar3; uVar3 = param_1[1]; *(int8 *)((long)param_2 + 0xdc) = *param_1; *(int8 *)((long)param_2 + 0xe4) = uVar3; uVar2 = param_1[2]; *param_2 = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[3]; param_2[1] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[4]; param_2[2] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[5]; param_2[4] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar2 = param_1[6]; param_2[5] = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; uVar1 = *(uint *)(param_1 + 7); param_2[6] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x3c); param_2[7] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)(param_1 + 8); param_2[8] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x44); param_2[9] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)(param_1 + 9); param_2[10] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar1 = *(uint *)((long)param_1 + 0x4c); param_2[0xb] = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); *(uint *)(param_2 + 0xd) = (uint)(ushort)(*(ushort *)(param_1 + 10) << 8 | *(ushort *)(param_1 + 10) >> 8); *(uint *)((long)param_2 + 0x6c) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x52) << 8 | *(ushort *)((long)param_1 + 0x52) >> 8); *(uint *)(param_2 + 0xe) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x54) << 8 | *(ushort *)((long)param_1 + 0x54) >> 8); *(uint *)((long)param_2 + 0x74) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x56) << 8 | *(ushort *)((long)param_1 + 0x56) >> 8); *(uint *)(param_2 + 0xf) = (uint)(ushort)(*(ushort *)(param_1 + 0xb) << 8 | *(ushort *)(param_1 + 0xb) >> 8); *(uint *)(param_2 + 0x19) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x5a) << 8 | *(ushort *)((long)param_1 + 0x5a) >> 8); *(uint *)((long)param_2 + 0x9c) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x5c) << 8 | *(ushort *)((long)param_1 + 0x5c) >> 8); *(uint *)(param_2 + 0x13) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x5e) << 8 | *(ushort *)((long)param_1 + 0x5e) >> 8); *(uint *)(param_2 + 0x14) = (uint)(ushort)(*(ushort *)(param_1 + 0xc) << 8 | *(ushort *)(param_1 + 0xc) >> 8); *(uint *)((long)param_2 + 0xcc) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x62) << 8 | *(ushort *)((long)param_1 + 0x62) >> 8); *(uint *)((long)param_2 + 0xbc) = (uint)(ushort)(*(ushort *)((long)param_1 + 100) << 8 | *(ushort *)((long)param_1 + 100) >> 8) ; *(uint *)(param_2 + 0x10) = (uint)*(byte *)((long)param_1 + 0x66); *(uint *)((long)param_2 + 0x84) = (uint)*(byte *)((long)param_1 + 0x67); *(uint *)(param_2 + 0x11) = (uint)*(byte *)(param_1 + 0xd); *(uint *)((long)param_2 + 0x8c) = (uint)*(byte *)((long)param_1 + 0x69); *(int1 *)((long)param_2 + 0xec) = *(int1 *)((long)param_1 + 0x6a); *(uint *)(param_2 + 0x1a) = (uint)*(byte *)((long)param_1 + 0x6b); *(uint *)((long)param_2 + 0x94) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x6c) << 8 | *(ushort *)((long)param_1 + 0x6c) >> 8); *(uint *)(param_2 + 0x12) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x6e) << 8 | *(ushort *)((long)param_1 + 0x6e) >> 8); *(uint *)((long)param_2 + 0xa4) = (uint)(ushort)(*(ushort *)(param_1 + 0xe) << 8 | *(ushort *)(param_1 + 0xe) >> 8); *(uint *)(param_2 + 0x15) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x72) << 8 | *(ushort *)((long)param_1 + 0x72) >> 8); *(uint *)((long)param_2 + 0xac) = (uint)(ushort)(*(ushort *)((long)param_1 + 0x74) << 8 | *(ushort *)((long)param_1 + 0x74) >> 8); *(uint *)(param_2 + 0x16) = (uint)*(byte *)((long)param_1 + 0x76); param_2[0xc] = (ulong)CONCAT12(*(int1 *)((long)param_1 + 0x77), *(ushort *)(param_1 + 0xf) << 8 | *(ushort *)(param_1 + 0xf) >> 8); return (long)param_1 + 0x87; }
29,657
get_collation_name_alias
eloqsql/mysys/charset.c
static const char* get_collation_name_alias(const char *name, char *buf, size_t bufsize, myf flags) { if (!strncasecmp(name, "utf8_", 5)) { my_snprintf(buf, bufsize, "utf8mb%c_%s", flags & MY_UTF8_IS_UTF8MB3 ? '3' : '4', name + 5); return buf; } return NULL; }
O0
c
get_collation_name_alias: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi leaq 0x6f6d1(%rip), %rsi # 0xd9794 movl $0x5, %edx callq 0x28470 cmpl $0x0, %eax jne 0x6a116 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx andq $0x400, %rdx # imm = 0x400 movl $0x34, %ecx movl $0x33, %eax cmpq $0x0, %rdx cmovnel %eax, %ecx movq -0x10(%rbp), %r8 addq $0x5, %r8 leaq 0x6f695(%rip), %rdx # 0xd979a movb $0x0, %al callq 0xd55c0 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x6a11e movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
get_collation_name_alias: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_10] lea rsi, aUtf8_0; "utf8_" mov edx, 5 call _strncasecmp cmp eax, 0 jnz short loc_6A116 mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] and rdx, 400h mov ecx, 34h ; '4' mov eax, 33h ; '3' cmp rdx, 0 cmovnz ecx, eax mov r8, [rbp+var_10] add r8, 5 lea rdx, aUtf8mbCS; "utf8mb%c_%s" mov al, 0 call my_snprintf mov rax, [rbp+var_18] mov [rbp+var_8], rax jmp short loc_6A11E loc_6A116: mov [rbp+var_8], 0 loc_6A11E: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long get_collation_name_alias(long long a1, long long a2, int a3, __int16 a4) { int v4; // r9d int v5; // ecx if ( (unsigned int)strncasecmp(a1, "utf8_", 5LL) ) return 0LL; v5 = 52; if ( (a4 & 0x400) != 0 ) v5 = 51; my_snprintf(a2, a3, (unsigned int)"utf8mb%c_%s", v5, a1 + 5, v4); return a2; }
get_collation_name_alias: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x1d9794] MOV EDX,0x5 CALL 0x00128470 CMP EAX,0x0 JNZ 0x0016a116 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] AND RDX,0x400 MOV ECX,0x34 MOV EAX,0x33 CMP RDX,0x0 CMOVNZ ECX,EAX MOV R8,qword ptr [RBP + -0x10] ADD R8,0x5 LEA RDX,[0x1d979a] MOV AL,0x0 CALL 0x001d55c0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX JMP 0x0016a11e LAB_0016a116: MOV qword ptr [RBP + -0x8],0x0 LAB_0016a11e: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
int8 get_collation_name_alias(char *param_1,int8 param_2,int8 param_3,ulong param_4) { int iVar1; int8 uVar2; int8 local_10; iVar1 = strncasecmp(param_1,"utf8_",5); if (iVar1 == 0) { uVar2 = 0x34; if ((param_4 & 0x400) != 0) { uVar2 = 0x33; } my_snprintf(param_2,param_3,"utf8mb%c_%s",uVar2,param_1 + 5); local_10 = param_2; } else { local_10 = 0; } return local_10; }
29,658
bitmap_is_clear_all
eloqsql/mysys/my_bitmap.c
my_bool bitmap_is_clear_all(const MY_BITMAP *map) { my_bitmap_map *data_ptr= map->bitmap; my_bitmap_map *end= map->last_word_ptr; DBUG_ASSERT(map->n_bits > 0); for (; data_ptr < end; data_ptr++) if (*data_ptr) return FALSE; return (*data_ptr & ~map->last_word_mask) == 0; }
O0
c
bitmap_is_clear_all: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x20(%rbp) jmp 0xedd61 jmp 0xedd63 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xedd8c movq -0x18(%rbp), %rax cmpl $0x0, (%rax) je 0xedd7c movb $0x0, -0x1(%rbp) jmp 0xeddac jmp 0xedd7e movq -0x18(%rbp), %rax addq $0x4, %rax movq %rax, -0x18(%rbp) jmp 0xedd63 movq -0x18(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx xorl $-0x1, %ecx andl %ecx, %eax cmpl $0x0, %eax sete %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nopw %cs:(%rax,%rax)
bitmap_is_clear_all: 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_10] mov rax, [rax+8] mov [rbp+var_20], rax jmp short $+2 loc_EDD61: jmp short $+2 loc_EDD63: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_EDD8C mov rax, [rbp+var_18] cmp dword ptr [rax], 0 jz short loc_EDD7C mov [rbp+var_1], 0 jmp short loc_EDDAC loc_EDD7C: jmp short $+2 loc_EDD7E: mov rax, [rbp+var_18] add rax, 4 mov [rbp+var_18], rax jmp short loc_EDD63 loc_EDD8C: mov rax, [rbp+var_18] mov eax, [rax] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] xor ecx, 0FFFFFFFFh and eax, ecx cmp eax, 0 setz al and al, 1 movzx eax, al mov [rbp+var_1], al loc_EDDAC: mov al, [rbp+var_1] pop rbp retn
bool bitmap_is_clear_all(long long a1) { _DWORD *i; // [rsp+8h] [rbp-18h] for ( i = *(_DWORD **)a1; (unsigned long long)i < *(_QWORD *)(a1 + 8); ++i ) { if ( *i ) return 0; } return (~*(_DWORD *)(a1 + 24) & *i) == 0; }
bitmap_is_clear_all: 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 + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x20],RAX JMP 0x001edd61 LAB_001edd61: JMP 0x001edd63 LAB_001edd63: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001edd8c MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX],0x0 JZ 0x001edd7c MOV byte ptr [RBP + -0x1],0x0 JMP 0x001eddac LAB_001edd7c: JMP 0x001edd7e LAB_001edd7e: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x4 MOV qword ptr [RBP + -0x18],RAX JMP 0x001edd63 LAB_001edd8c: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] XOR ECX,0xffffffff AND EAX,ECX CMP EAX,0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL LAB_001eddac: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
int8 bitmap_is_clear_all(int8 *param_1) { uint *local_20; bool local_9; local_20 = (uint *)*param_1; do { if ((uint *)param_1[1] <= local_20) { local_9 = (*local_20 & (*(uint *)(param_1 + 3) ^ 0xffffffff)) == 0; local_20 = (uint *)0x0; LAB_001eddac: return CONCAT71((int7)((ulong)local_20 >> 8),local_9); } if (*local_20 != 0) { local_9 = false; goto LAB_001eddac; } local_20 = local_20 + 1; } while( true ); }
29,659
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, int, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, int&)
monkey531[P]llama/common/json.hpp
inline void from_json(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::boolean: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O2
cpp
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, int, 0>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, int&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax addl $-0x4, %eax cmpl $0x3, %eax ja 0x6ff09 leaq 0x47b9a(%rip), %rcx # 0xb7a7c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl 0x8(%r14), %eax jmp 0x6fefe movzbl 0x8(%r14), %eax jmp 0x6fefe cvttsd2si 0x8(%r14), %eax movl %eax, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x24470 movq %rax, %rbx movq %r14, %rdi callq 0x537d6 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x48e8d(%rip), %rsi # 0xb8db8 leaq 0x10(%rsp), %rdi callq 0x67e01 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x67d14 xorl %ebp, %ebp leaq 0x9226a(%rip), %rsi # 0x1021c0 leaq -0x1fbc7(%rip), %rdx # 0x50396 movq %rbx, %rdi callq 0x24f50 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x25258 testb %bpl, %bpl jne 0x6ff7c jmp 0x6ff84 movq %rax, %r14 movq %rbx, %rdi callq 0x246b0 movq %r14, %rdi callq 0x24fe0
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] add eax, 0FFFFFFFCh; switch 4 cases cmp eax, 3 ja short def_6FEE9; jumptable 000000000006FEE9 default case lea rcx, jpt_6FEE9 movsxd rax, ds:(jpt_6FEE9 - 0B7A7Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6FEEB: mov eax, [r14+8]; jumptable 000000000006FEE9 cases 5,6 jmp short loc_6FEFE loc_6FEF1: movzx eax, byte ptr [r14+8]; jumptable 000000000006FEE9 case 4 jmp short loc_6FEFE loc_6FEF8: cvttsd2si eax, qword ptr [r14+8]; jumptable 000000000006FEE9 case 7 loc_6FEFE: mov [rsi], eax add rsp, 30h pop rbx pop r14 pop rbp retn def_6FEE9: push 20h ; ' '; jumptable 000000000006FEE9 default case pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_6FF7C jmp short loc_6FF84 mov r14, rax loc_6FF7C: mov rdi, rbx; void * call ___cxa_free_exception loc_6FF84: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( unsigned __int8 *a1, _DWORD *a2) { long long result; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx const char *v4; // [rsp+8h] [rbp-40h] BYREF _BYTE v5[56]; // [rsp+10h] [rbp-38h] BYREF switch ( *a1 ) { case 4u: result = a1[8]; break; case 5u: case 6u: result = *((unsigned int *)a1 + 2); break; case 7u: result = (unsigned int)(int)*((double *)a1 + 1); break; default: exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v5, (long long)"type must be number, but is ", &v4); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, (long long)v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *a2 = result; return result; }
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOVZX EAX,byte ptr [RDI] ADD EAX,-0x4 CMP EAX,0x3 JA 0x0016ff09 LEA RCX,[0x1b7a7c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_5: MOV EAX,dword ptr [R14 + 0x8] JMP 0x0016fefe caseD_4: MOVZX EAX,byte ptr [R14 + 0x8] JMP 0x0016fefe caseD_7: CVTTSD2SI EAX,qword ptr [R14 + 0x8] LAB_0016fefe: MOV dword ptr [RSI],EAX ADD RSP,0x30 POP RBX POP R14 POP RBP RET default: PUSH 0x20 POP RDI CALL 0x00124470 MOV RBX,RAX MOV RDI,R14 CALL 0x001537d6 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0016ff24: LEA RSI,[0x1b8db8] LEA RDI,[RSP + 0x10] CALL 0x00167e01 MOV BPL,0x1 LAB_0016ff38: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x00167d14 XOR EBP,EBP LEA RSI,[0x2021c0] LEA RDX,[0x150396] MOV RDI,RBX CALL 0x00124f50
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,uint *param_2) { uint uVar1; int8 uVar2; char *local_40; detail local_38 [32]; switch(*param_1) { case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x4: uVar1 = (uint)(byte)param_1[8]; break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6: uVar1 = *(uint *)(param_1 + 8); break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7: uVar1 = (uint)*(double *)(param_1 + 8); break; default: uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 0016ff24 to 0016ff34 has its CatchHandler @ 0016ff79 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be number, but is ",&local_40); /* try { // try from 0016ff38 to 0016ff64 has its CatchHandler @ 0016ff65 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *param_2 = uVar1; return; }
29,660
WindowDropCallback
csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/platforms/rcore_desktop_glfw.c
static void WindowDropCallback(GLFWwindow *window, int count, const char **paths) { if (count > 0) { // In case previous dropped filepaths have not been freed, we free them if (CORE.Window.dropFileCount > 0) { for (unsigned int i = 0; i < CORE.Window.dropFileCount; i++) RL_FREE(CORE.Window.dropFilepaths[i]); RL_FREE(CORE.Window.dropFilepaths); CORE.Window.dropFileCount = 0; CORE.Window.dropFilepaths = NULL; } // WARNING: Paths are freed by GLFW when the callback returns, we must keep an internal copy CORE.Window.dropFileCount = count; CORE.Window.dropFilepaths = (char **)RL_CALLOC(CORE.Window.dropFileCount, sizeof(char *)); for (unsigned int i = 0; i < CORE.Window.dropFileCount; i++) { CORE.Window.dropFilepaths[i] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char)); strcpy(CORE.Window.dropFilepaths[i], paths[i]); } } }
O3
c
WindowDropCallback: testl %esi, %esi jle 0x7174a pushq %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movl %esi, %ebp cmpl $0x0, 0xca5b1(%rip) # 0x13bc70 je 0x716ee xorl %r14d, %r14d movq 0xca59d(%rip), %rax # 0x13bc68 movq (%rax,%r14,8), %rdi callq 0xa650 incq %r14 movl 0xca593(%rip), %eax # 0x13bc70 cmpq %rax, %r14 jb 0x716c4 movq 0xca57f(%rip), %rdi # 0x13bc68 callq 0xa650 movl %ebp, 0xca57c(%rip) # 0x13bc70 movl %ebp, %edi movl $0x8, %esi callq 0xa330 movq %rax, 0xca561(%rip) # 0x13bc68 xorl %r14d, %r14d movl $0x1000, %edi # imm = 0x1000 movl $0x1, %esi callq 0xa330 movq 0xca548(%rip), %rcx # 0x13bc68 movq %rax, (%rcx,%r14,8) movq 0xca53d(%rip), %rax # 0x13bc68 movq (%rax,%r14,8), %rdi movq (%rbx,%r14,8), %rsi callq 0xa4b0 incq %r14 movl 0xca52f(%rip), %eax # 0x13bc70 cmpq %rax, %r14 jb 0x7170a popq %rbx popq %r14 popq %rbp retq
WindowDropCallback: test esi, esi jle locret_7174A push rbp push r14 push rbx mov rbx, rdx mov ebp, esi cmp cs:dword_13BC70, 0 jz short loc_716EE xor r14d, r14d loc_716C4: mov rax, cs:qword_13BC68 mov rdi, [rax+r14*8] call _free inc r14 mov eax, cs:dword_13BC70 cmp r14, rax jb short loc_716C4 mov rdi, cs:qword_13BC68 call _free loc_716EE: mov cs:dword_13BC70, ebp mov edi, ebp mov esi, 8 call _calloc mov cs:qword_13BC68, rax xor r14d, r14d loc_7170A: mov edi, 1000h mov esi, 1 call _calloc mov rcx, cs:qword_13BC68 mov [rcx+r14*8], rax mov rax, cs:qword_13BC68 mov rdi, [rax+r14*8] mov rsi, [rbx+r14*8] call _strcpy inc r14 mov eax, cs:dword_13BC70 cmp r14, rax jb short loc_7170A pop rbx pop r14 pop rbp locret_7174A: retn
void WindowDropCallback(long long a1, int a2, long long a3) { unsigned long long v4; // r14 unsigned long long v5; // r14 if ( a2 > 0 ) { if ( dword_13BC70 ) { v4 = 0LL; do free(*(_QWORD *)(qword_13BC68 + 8 * v4++)); while ( v4 < (unsigned int)dword_13BC70 ); free(qword_13BC68); } dword_13BC70 = a2; qword_13BC68 = calloc((unsigned int)a2, 8LL); v5 = 0LL; do { *(_QWORD *)(qword_13BC68 + 8 * v5) = calloc(4096LL, 1LL); strcpy(*(_QWORD *)(qword_13BC68 + 8 * v5), *(_QWORD *)(a3 + 8 * v5)); ++v5; } while ( v5 < (unsigned int)dword_13BC70 ); } }
WindowDropCallback: TEST ESI,ESI JLE 0x0017174a PUSH RBP PUSH R14 PUSH RBX MOV RBX,RDX MOV EBP,ESI CMP dword ptr [0x0023bc70],0x0 JZ 0x001716ee XOR R14D,R14D LAB_001716c4: MOV RAX,qword ptr [0x0023bc68] MOV RDI,qword ptr [RAX + R14*0x8] CALL 0x0010a650 INC R14 MOV EAX,dword ptr [0x0023bc70] CMP R14,RAX JC 0x001716c4 MOV RDI,qword ptr [0x0023bc68] CALL 0x0010a650 LAB_001716ee: MOV dword ptr [0x0023bc70],EBP MOV EDI,EBP MOV ESI,0x8 CALL 0x0010a330 MOV qword ptr [0x0023bc68],RAX XOR R14D,R14D LAB_0017170a: MOV EDI,0x1000 MOV ESI,0x1 CALL 0x0010a330 MOV RCX,qword ptr [0x0023bc68] MOV qword ptr [RCX + R14*0x8],RAX MOV RAX,qword ptr [0x0023bc68] MOV RDI,qword ptr [RAX + R14*0x8] MOV RSI,qword ptr [RBX + R14*0x8] CALL 0x0010a4b0 INC R14 MOV EAX,dword ptr [0x0023bc70] CMP R14,RAX JC 0x0017170a POP RBX POP R14 POP RBP LAB_0017174a: RET
void WindowDropCallback(int8 param_1,uint param_2,long param_3) { void *pvVar1; ulong uVar2; if (0 < (int)param_2) { if (DAT_0023bc70 != 0) { uVar2 = 0; do { free(*(void **)((long)DAT_0023bc68 + uVar2 * 8)); uVar2 = uVar2 + 1; } while (uVar2 < DAT_0023bc70); free(DAT_0023bc68); } DAT_0023bc70 = param_2; DAT_0023bc68 = calloc((ulong)param_2,8); uVar2 = 0; do { pvVar1 = calloc(0x1000,1); *(void **)((long)DAT_0023bc68 + uVar2 * 8) = pvVar1; strcpy(*(char **)((long)DAT_0023bc68 + uVar2 * 8),*(char **)(param_3 + uVar2 * 8)); uVar2 = uVar2 + 1; } while (uVar2 < DAT_0023bc70); } return; }
29,661
net_get_error
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void net_get_error(char *buf, size_t buf_len, char *error, size_t error_len, unsigned int *error_no, char *sqlstate) { char *p= buf; size_t error_msg_len= 0; if (buf_len > 2) { *error_no= uint2korr(p); p+= 2; /* since 4.1 sqlstate is following */ if (*p == '#') { memcpy(sqlstate, ++p, SQLSTATE_LENGTH); p+= SQLSTATE_LENGTH; } error_msg_len= buf_len - (p - buf); error_msg_len= MIN(error_msg_len, error_len - 1); memcpy(error, p, error_msg_len); } else { *error_no= CR_UNKNOWN_ERROR; memcpy(sqlstate, SQLSTATE_UNKNOWN, SQLSTATE_LENGTH); } }
O3
c
net_get_error: pushq %rbp movq %rsp, %rbp cmpq $0x3, %rsi jb 0x1c249 movzwl (%rdi), %eax movl %eax, (%r8) cmpb $0x23, 0x2(%rdi) jne 0x1c268 movb 0x7(%rdi), %al movb %al, 0x4(%r9) movl 0x3(%rdi), %eax movl %eax, (%r9) leaq 0x8(%rdi), %rax jmp 0x1c26c movl $0x7d0, (%r8) # imm = 0x7D0 leaq 0x35fb9(%rip), %rax # 0x52210 movq (%rax), %rax movb 0x4(%rax), %cl movb %cl, 0x4(%r9) movl (%rax), %eax movl %eax, (%r9) popq %rbp retq leaq 0x2(%rdi), %rax addq %rsi, %rdi subq %rax, %rdi decq %rcx cmpq %rcx, %rdi cmovbq %rdi, %rcx movq %rdx, %rdi movq %rax, %rsi movq %rcx, %rdx popq %rbp jmp 0x133a0
net_get_error: push rbp mov rbp, rsp cmp rsi, 3 jb short loc_1C249 movzx eax, word ptr [rdi] mov [r8], eax cmp byte ptr [rdi+2], 23h ; '#' jnz short loc_1C268 mov al, [rdi+7] mov [r9+4], al mov eax, [rdi+3] mov [r9], eax lea rax, [rdi+8] jmp short loc_1C26C loc_1C249: mov dword ptr [r8], 7D0h lea rax, SQLSTATE_UNKNOWN mov rax, [rax] mov cl, [rax+4] mov [r9+4], cl mov eax, [rax] mov [r9], eax pop rbp retn loc_1C268: lea rax, [rdi+2] loc_1C26C: add rdi, rsi sub rdi, rax dec rcx cmp rdi, rcx cmovb rcx, rdi mov rdi, rdx mov rsi, rax mov rdx, rcx pop rbp jmp _memcpy
long long net_get_error( unsigned __int16 *a1, unsigned long long a2, long long a3, long long a4, _DWORD *a5, long long a6) { unsigned __int16 *v6; // rax char *v7; // rax long long result; // rax char *v9; // rdi char *v10; // rcx if ( a2 < 3 ) { *a5 = 2000; v7 = SQLSTATE_UNKNOWN; *(_BYTE *)(a6 + 4) = SQLSTATE_UNKNOWN[4]; result = *(unsigned int *)v7; *(_DWORD *)a6 = result; } else { *a5 = *a1; if ( *((_BYTE *)a1 + 2) == 35 ) { *(_BYTE *)(a6 + 4) = *((_BYTE *)a1 + 7); *(_DWORD *)a6 = *(_DWORD *)((char *)a1 + 3); v6 = a1 + 4; } else { v6 = a1 + 1; } v9 = (char *)((char *)a1 + a2 - (char *)v6); v10 = (char *)(a4 - 1); if ( v9 < v10 ) v10 = v9; return memcpy(a3, v6, v10); } return result; }
net_get_error: PUSH RBP MOV RBP,RSP CMP RSI,0x3 JC 0x0011c249 MOVZX EAX,word ptr [RDI] MOV dword ptr [R8],EAX CMP byte ptr [RDI + 0x2],0x23 JNZ 0x0011c268 MOV AL,byte ptr [RDI + 0x7] MOV byte ptr [R9 + 0x4],AL MOV EAX,dword ptr [RDI + 0x3] MOV dword ptr [R9],EAX LEA RAX,[RDI + 0x8] JMP 0x0011c26c LAB_0011c249: MOV dword ptr [R8],0x7d0 LEA RAX,[0x152210] MOV RAX,qword ptr [RAX] MOV CL,byte ptr [RAX + 0x4] MOV byte ptr [R9 + 0x4],CL MOV EAX,dword ptr [RAX] MOV dword ptr [R9],EAX POP RBP RET LAB_0011c268: LEA RAX,[RDI + 0x2] LAB_0011c26c: ADD RDI,RSI SUB RDI,RAX DEC RCX CMP RDI,RCX CMOVC RCX,RDI MOV RDI,RDX MOV RSI,RAX MOV RDX,RCX POP RBP JMP 0x001133a0
void net_get_error(ushort *param_1,ulong param_2,void *param_3,long param_4,uint *param_5, int4 *param_6) { int *puVar1; ushort *__src; ulong __n; ulong uVar2; if (2 < param_2) { *param_5 = (uint)*param_1; if ((char)param_1[1] == '#') { *(int1 *)(param_6 + 1) = *(int1 *)((long)param_1 + 7); *param_6 = *(int4 *)((long)param_1 + 3); __src = param_1 + 4; } else { __src = param_1 + 1; } uVar2 = (long)param_1 + (param_2 - (long)__src); __n = param_4 - 1U; if (uVar2 < param_4 - 1U) { __n = uVar2; } memcpy(param_3,__src,__n); return; } *param_5 = 2000; puVar1 = SQLSTATE_UNKNOWN; *(int *)(param_6 + 1) = SQLSTATE_UNKNOWN[4]; *param_6 = *(int4 *)puVar1; return; }
29,662
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [5], 0>(char const (&) [5]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
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> 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>::at<char const (&) [5], 0>(char const (&) [5]) const: subq $0xc8, %rsp movq %rdi, 0xc0(%rsp) movq %rsi, 0xb8(%rsp) movq 0xc0(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0xdf7e0 xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x1501e8 jmp 0x1502c4 movb $0x1, 0x83(%rsp) movl $0x20, %edi callq 0x565c0 movq 0x20(%rsp), %rdi movq %rax, 0x18(%rsp) callq 0xdd300 movq %rax, 0x90(%rsp) leaq 0x99b62(%rip), %rsi # 0x1e9d7a leaq 0x98(%rsp), %rdi leaq 0x90(%rsp), %rdx callq 0x14c960 jmp 0x15022f movq 0x20(%rsp), %rcx movq 0x18(%rsp), %rdi movl $0x130, %esi # imm = 0x130 leaq 0x98(%rsp), %rdx callq 0xdd0a0 jmp 0x15024d movq 0x18(%rsp), %rdi movb $0x0, 0x83(%rsp) leaq 0x11cea7(%rip), %rsi # 0x26d108 leaq -0x72eb8(%rip), %rdx # 0xdd3b0 callq 0x569b0 jmp 0x150441 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) jmp 0x1502a9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) leaq 0x98(%rsp), %rdi callq 0x572d0 testb $0x1, 0x83(%rsp) jne 0x1502b5 jmp 0x1502bf movq 0x18(%rsp), %rdi callq 0x56dd0 jmp 0x150434 movq 0x20(%rsp), %rax movq 0x8(%rax), %rdi movq 0xb8(%rsp), %rsi callq 0x14dab0 movq %rax, %rcx movq 0x20(%rsp), %rax movq %rcx, 0x78(%rsp) movq 0x8(%rax), %rdi callq 0xdf620 movq %rax, 0x70(%rsp) leaq 0x78(%rsp), %rdi leaq 0x70(%rsp), %rsi callq 0xf5f40 testb $0x1, %al jne 0x15030d jmp 0x15041e movb $0x1, 0x2e(%rsp) movl $0x20, %edi callq 0x565c0 movq %rax, (%rsp) movq 0xb8(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x2f(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x56f00 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x30(%rsp), %rdi callq 0x66600 jmp 0x150352 leaq 0x99a51(%rip), %rsi # 0x1e9daa leaq 0x99a50(%rip), %rcx # 0x1e9db0 leaq 0x50(%rsp), %rdi leaq 0x30(%rsp), %rdx callq 0x14db80 jmp 0x150371 movq 0x20(%rsp), %rcx movq (%rsp), %rdi movl $0x193, %esi # imm = 0x193 leaq 0x50(%rsp), %rdx callq 0x14ea70 jmp 0x15038b movq (%rsp), %rdi movb $0x0, 0x2e(%rsp) leaq 0x11ce55(%rip), %rsi # 0x26d1f0 leaq -0x5cbd2(%rip), %rdx # 0xf37d0 callq 0x569b0 jmp 0x150441 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) jmp 0x150400 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) jmp 0x1503f6 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) leaq 0x50(%rsp), %rdi callq 0x572d0 leaq 0x30(%rsp), %rdi callq 0x572d0 leaq 0x2f(%rsp), %rdi callq 0x572b0 testb $0x1, 0x2e(%rsp) jne 0x150413 jmp 0x15041c movq (%rsp), %rdi callq 0x56dd0 jmp 0x150434 leaq 0x78(%rsp), %rdi callq 0xf6140 addq $0x20, %rax addq $0xc8, %rsp retq movq 0x88(%rsp), %rdi callq 0x56a10 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: sub rsp, 0C8h mov [rsp+0C8h+var_8], rdi mov qword ptr [rsp+0C8h+var_10], rsi mov rdi, [rsp+0C8h+var_8] mov [rsp+0C8h+var_A8], rdi; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; 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>::is_object(void) xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_1501E8 jmp loc_1502C4 loc_1501E8: mov [rsp+0C8h+var_45], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, [rsp+0C8h+var_A8] mov [rsp+0C8h+var_B0], rax; char call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+0C8h+var_38], rax; char lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+0C8h+var_30]; int lea rdx, [rsp+0C8h+var_38]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) jmp short $+2 loc_15022F: mov rcx, [rsp+0C8h+var_A8] mov rdi, [rsp+0C8h+var_B0]; int mov esi, 130h lea rdx, [rsp+0C8h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_15024D: mov rdi, [rsp+0C8h+var_B0]; void * mov [rsp+0C8h+var_45], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp loc_150441 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax jmp short loc_1502A9 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1502A9: test [rsp+arg_7B], 1 jnz short loc_1502B5 jmp short loc_1502BF loc_1502B5: mov rdi, [rsp+arg_10]; void * call ___cxa_free_exception loc_1502BF: jmp loc_150434 loc_1502C4: mov rax, [rsp+0C8h+var_A8] mov rdi, [rax+8] mov rsi, qword ptr [rsp+0C8h+var_10] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, rax mov rax, [rsp+0C8h+var_A8] mov qword ptr [rsp+0C8h+var_50], rcx; int mov rdi, [rax+8] 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 qword ptr [rsp+0C8h+var_58], rax; char lea rdi, [rsp+0C8h+var_50] lea rsi, [rsp+0C8h+var_58] 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_15030D jmp loc_15041E loc_15030D: mov [rsp+0C8h+var_9A], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+0C8h+var_C8], rax; int mov rax, qword ptr [rsp+0C8h+var_10] mov qword ptr [rsp+0C8h+var_C0], rax; int lea rdi, [rsp+0C8h+var_99] mov qword ptr [rsp+0C8h+var_B8], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, qword ptr [rsp+0C8h+var_C0] mov rdx, qword ptr [rsp+0C8h+var_B8] lea rdi, [rsp+0C8h+var_99+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_150352: lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+0C8h+var_78]; int lea rdx, [rsp+0C8h+var_99+1]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) jmp short $+2 loc_150371: mov rcx, [rsp+0C8h+var_A8] mov rdi, [rsp+0C8h+var_C8]; int mov esi, 193h lea rdx, [rsp+0C8h+var_78] call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_15038B: mov rdi, [rsp+0C8h+var_C8]; void * mov [rsp+0C8h+var_9A], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *) call ___cxa_throw jmp loc_150441 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax jmp short loc_150400 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax jmp short loc_1503F6 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1503F6: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_150400: lea rdi, [rsp+arg_27] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_26], 1 jnz short loc_150413 jmp short loc_15041C loc_150413: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_15041C: jmp short loc_150434 loc_15041E: lea rdi, [rsp+0C8h+var_50] 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) add rax, 20h ; ' ' add rsp, 0C8h retn loc_150434: mov rdi, [rsp+arg_80] call __Unwind_Resume loc_150441: nop word ptr [rax+rax+00000000h] nop dword ptr [rax+rax+00h]
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, long long a2) { nlohmann::json_abi_v3_11_3::detail::out_of_range *v3; // [rsp+0h] [rbp-C8h] long long v4; // [rsp+8h] [rbp-C0h] void *exception; // [rsp+18h] [rbp-B0h] int v6[8]; // [rsp+2Fh] [rbp-99h] BYREF int v7[8]; // [rsp+50h] [rbp-78h] BYREF char v8[8]; // [rsp+70h] [rbp-58h] BYREF int v9[2]; // [rsp+78h] [rbp-50h] BYREF char v10; // [rsp+83h] [rbp-45h] char v11[8]; // [rsp+90h] [rbp-38h] BYREF int v12[8]; // [rsp+98h] [rbp-30h] BYREF int v13[2]; // [rsp+B8h] [rbp-10h] long long v14; // [rsp+C0h] [rbp-8h] v14 = a1; *(_QWORD *)v13 = a2; if ( !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>::is_object((_BYTE *)a1) ) { exception = __cxa_allocate_exception(0x20uLL); *(_QWORD *)v11 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((_BYTE *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v12, (long long)"cannot use at() with ", (nlohmann::json_abi_v3_11_3::detail **)v11); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( (long long)exception, 304, (long long)v12, a1); v10 = 0; __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } *(_QWORD *)v9 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( *(_QWORD *)(a1 + 8), *(long long *)v13); *(_QWORD *)v8 = 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(*(_QWORD *)(a1 + 8)); 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)v9, (long long)v8) ) { v3 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); v4 = *(_QWORD *)v13; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v6 + 1, v4, (long long)v6); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v7, (long long)"key '", (long long)v6 + 1, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v3, 403, (long long)v7, a1); __cxa_throw( v3, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::out_of_range::~out_of_range); } return __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) + 32; }
29,663
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [5], 0>(char const (&) [5]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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>::at<char const (&) [5], 0>(char const (&) [5]) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0x7b5f0 movq %rsi, %r15 movq 0x8(%r14), %r12 movq (%r12), %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx je 0x7b5d5 movq %rbx, %rdi movq %r15, %rsi callq 0x1a1b0 testl %eax, %eax je 0x7b5d2 addq $0x30, %rbx jmp 0x7b5b3 movq %rbx, %rax movq 0x8(%r14), %rcx cmpq 0x8(%rcx), %rax je 0x7b64c addq $0x20, %rax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1a3b0 movq %rax, %rbx movq %r14, %rdi callq 0x52ede leaq 0x20(%rsp), %rdx movq %rax, (%rdx) leaq 0x45c5e(%rip), %rsi # 0xc1272 movq %rsp, %rdi callq 0x81127 movb $0x1, %bpl movq %rsp, %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x52c86 xorl %ebp, %ebp leaq 0x77c8d(%rip), %rsi # 0xf32c8 leaq -0x1a5b0(%rip), %rdx # 0x61092 movq %rbx, %rdi callq 0x1ad60 jmp 0x7b6c5 movl $0x20, %edi callq 0x1a3b0 movq %rax, %rbx leaq 0x30(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1a350 leaq (%rax,%r15), %rdx leaq 0x20(%rsp), %rdi movq %r15, %rsi callq 0x26294 leaq 0x45c1f(%rip), %rsi # 0xc12a2 leaq 0x45c1e(%rip), %rcx # 0xc12a8 movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x81730 movb $0x1, %bpl movq %rsp, %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x81aaa xorl %ebp, %ebp leaq 0x77cfa(%rip), %rsi # 0xf33b0 leaq -0x1a62b(%rip), %rdx # 0x61092 movq %rbx, %rdi callq 0x1ad60 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7b6eb movq 0x10(%rsp), %rsi incq %rsi callq 0x1a7f0 jmp 0x7b6eb movq %rax, %r14 movb $0x1, %bpl movq 0x20(%rsp), %rdi cmpq %r12, %rdi je 0x7b724 movq 0x30(%rsp), %rsi jmp 0x7b714 jmp 0x7b71e movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7b724 movq 0x10(%rsp), %rsi incq %rsi callq 0x1a7f0 jmp 0x7b724 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x7b731 movq %rbx, %rdi callq 0x1a5a0 movq %r14, %rdi callq 0x1adc0 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push r12; int push rbx; char sub rsp, 40h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_7B5F0 mov r15, rsi mov r12, [r14+8] mov rbx, [r12] loc_7B5B3: mov rax, [r12+8] cmp rbx, rax jz short loc_7B5D5 mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_7B5D2 add rbx, 30h ; '0' jmp short loc_7B5B3 loc_7B5D2: mov rax, rbx loc_7B5D5: mov rcx, [r14+8] cmp rax, [rcx+8] jz short loc_7B64C add rax, 20h ; ' ' add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_7B5F0: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_48] mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 mov rdx, rsp mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_7B6C5 loc_7B64C: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r12, [rsp+68h+var_38] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rax+r15] lea rdi, [rsp+68h+var_48] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" mov rdi, rsp lea rdx, [rsp+68h+var_48] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 mov rdx, rsp mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_7B6C5: mov r14, rax lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7B6EB mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7B6EB mov r14, rax mov bpl, 1 loc_7B6EB: mov rdi, [rsp+68h+var_48] cmp rdi, r12 jz short loc_7B724 mov rsi, [rsp+68h+var_38] jmp short loc_7B714 jmp short loc_7B71E mov r14, rax lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7B724 mov rsi, [rsp+68h+var_58] loc_7B714: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7B724 loc_7B71E: mov r14, rax mov bpl, 1 loc_7B724: test bpl, bpl jz short loc_7B731 mov rdi, rbx; void * call ___cxa_free_exception loc_7B731: mov rdi, r14 call __Unwind_Resume
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x0017b5f0 MOV R15,RSI MOV R12,qword ptr [R14 + 0x8] MOV RBX,qword ptr [R12] LAB_0017b5b3: MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JZ 0x0017b5d5 MOV RDI,RBX MOV RSI,R15 CALL 0x0011a1b0 TEST EAX,EAX JZ 0x0017b5d2 ADD RBX,0x30 JMP 0x0017b5b3 LAB_0017b5d2: MOV RAX,RBX LAB_0017b5d5: MOV RCX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x0017b64c ADD RAX,0x20 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0017b5f0: MOV EDI,0x20 CALL 0x0011a3b0 MOV RBX,RAX MOV RDI,R14 CALL 0x00152ede LEA RDX,[RSP + 0x20] MOV qword ptr [RDX],RAX LAB_0017b60d: LEA RSI,[0x1c1272] MOV RDI,RSP CALL 0x00181127 MOV BPL,0x1 LAB_0017b61f: MOV RDX,RSP MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x00152c86 XOR EBP,EBP LEA RSI,[0x1f32c8] LEA RDX,[0x161092] MOV RDI,RBX CALL 0x0011ad60 LAB_0017b64c: MOV EDI,0x20 CALL 0x0011a3b0 MOV RBX,RAX LEA R12,[RSP + 0x30] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011a350 LEA RDX,[RAX + R15*0x1] LAB_0017b66f: LEA RDI,[RSP + 0x20] MOV RSI,R15 CALL 0x00126294 LAB_0017b67c: LEA RSI,[0x1c12a2] LEA RCX,[0x1c12a8] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x00181730 MOV BPL,0x1 LAB_0017b69a: MOV RDX,RSP MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x00181aaa XOR EBP,EBP LEA RSI,[0x1f33b0] LEA RDX,[0x161092] MOV RDI,RBX CALL 0x0011ad60
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { int8 *puVar1; int iVar2; char *pcVar3; int8 uVar4; size_t sVar5; char *pcVar6; detail adStack_68 [32]; char *local_48 [2]; char local_38 [16]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar4 = __cxa_allocate_exception(0x20); local_48[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 0017b60d to 0017b61b has its CatchHandler @ 0017b71e */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (adStack_68,"cannot use at() with ",local_48); /* try { // try from 0017b61f to 0017b649 has its CatchHandler @ 0017b6fe */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x130,adStack_68,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } puVar1 = *(int8 **)(param_1 + 8); pcVar6 = (char *)*puVar1; while ((pcVar3 = (char *)puVar1[1], pcVar6 != pcVar3 && (iVar2 = std::__cxx11::string::compare(pcVar6), pcVar3 = pcVar6, iVar2 != 0))) { pcVar6 = pcVar6 + 0x30; } if (pcVar3 == *(char **)(*(long *)(param_1 + 8) + 8)) { uVar4 = __cxa_allocate_exception(0x20); local_48[0] = local_38; sVar5 = strlen(param_2); /* try { // try from 0017b66f to 0017b67b has its CatchHandler @ 0017b6fc */ std::__cxx11::string::_M_construct<char_const*>(local_48,param_2,param_2 + sVar5); /* try { // try from 0017b67c to 0017b696 has its CatchHandler @ 0017b6e5 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (adStack_68,"key \'",(string *)local_48,"\' not found"); /* try { // try from 0017b69a to 0017b6c4 has its CatchHandler @ 0017b6c5 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x193,adStack_68,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return pcVar3 + 0x20; }
29,664
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [5], 0>(char const (&) [5]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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>::at<char const (&) [5], 0>(char const (&) [5]) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0x71805 movq %rsi, %r15 movq 0x8(%r14), %rdi callq 0x70c52 movq 0x8(%r14), %rcx cmpq 0x8(%rcx), %rax je 0x71863 addq $0x20, %rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x223e0 movq %rax, %rbx movq %r14, %rdi callq 0x4df64 leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0x2ea1a(%rip), %rsi # 0xa0241 leaq 0x8(%rsp), %rdi callq 0x7067d movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x4de18 xorl %ebp, %ebp leaq 0x6fa76(%rip), %rsi # 0xe12c8 leaq -0x189d5(%rip), %rdx # 0x58e84 movq %rbx, %rdi callq 0x22d40 jmp 0x718cd pushq $0x20 popq %rdi callq 0x223e0 movq %rax, %rbx leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %r15, %rsi callq 0x29014 leaq 0x2e9ea(%rip), %rsi # 0xa0271 leaq 0x2e9e9(%rip), %rcx # 0xa0277 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x70c87 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x710f2 xorl %ebp, %ebp leaq 0x6faf2(%rip), %rsi # 0xe13b0 leaq -0x18a41(%rip), %rdx # 0x58e84 movq %rbx, %rdi callq 0x22d40 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x22f98 jmp 0x718e2 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi jmp 0x718f3 jmp 0x718ff movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x22f98 testb %bpl, %bpl jne 0x71902 jmp 0x7190a movq %rax, %r14 movq %rbx, %rdi callq 0x225c0 movq %r14, %rdi callq 0x22da0
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_71805 mov r15, rsi mov rdi, [r14+8] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, [r14+8] cmp rax, [rcx+8] jz short loc_71863 add rax, 20h ; ' ' add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_71805: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_40] mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_718CD loc_71863: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_61] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_718CD: mov r14, rax lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_718E2 mov r14, rax mov bpl, 1 loc_718E2: lea rdi, [rsp+68h+var_40] jmp short loc_718F3 jmp short loc_718FF mov r14, rax lea rdi, [rsp+68h+var_60]; void * loc_718F3: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_71902 jmp short loc_7190A loc_718FF: mov r14, rax loc_71902: mov rdi, rbx; void * call ___cxa_free_exception loc_7190A: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx _BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF _QWORD v7[8]; // [rsp+28h] [rbp-40h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v7[0] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v6, (long long)"cannot use at() with ", v7); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 0x130u, (long long)v6, a1); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(long long **)(a1 + 8)); if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) ) { v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::string::basic_string<std::allocator<char>>(v7, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v6, (long long)"key '", (long long)v7, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v5, 403, (long long)v6); __cxa_throw( v5, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v2 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x00171805 MOV R15,RSI MOV RDI,qword ptr [R14 + 0x8] CALL 0x00170c52 MOV RCX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x00171863 ADD RAX,0x20 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_00171805: PUSH 0x20 POP RDI CALL 0x001223e0 MOV RBX,RAX MOV RDI,R14 CALL 0x0014df64 LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LAB_00171820: LEA RSI,[0x1a0241] LEA RDI,[RSP + 0x8] CALL 0x0017067d MOV BPL,0x1 LAB_00171834: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x0014de18 XOR EBP,EBP LEA RSI,[0x1e12c8] LEA RDX,[0x158e84] MOV RDI,RBX CALL 0x00122d40 LAB_00171863: PUSH 0x20 POP RDI CALL 0x001223e0 MOV RBX,RAX LAB_0017186e: LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] MOV RSI,R15 CALL 0x00129014 LAB_00171880: LEA RSI,[0x1a0271] LEA RCX,[0x1a0277] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x00170c87 MOV BPL,0x1 LAB_001718a0: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x001710f2 XOR EBP,EBP LEA RSI,[0x1e13b0] LEA RDX,[0x158e84] MOV RDI,RBX CALL 0x00122d40
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long lVar1; int8 uVar2; allocator local_61; detail local_60 [32]; char *local_40 [4]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar2 = __cxa_allocate_exception(0x20); local_40[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 00171820 to 00171830 has its CatchHandler @ 001718ff */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_60,"cannot use at() with ",local_40); /* try { // try from 00171834 to 00171860 has its CatchHandler @ 001718eb */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x130,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA8_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (*(int8 *)(param_1 + 8)); if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) { return lVar1 + 0x20; } uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 0017186e to 0017187f has its CatchHandler @ 001718e9 */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61); /* try { // try from 00171880 to 0017189c has its CatchHandler @ 001718dc */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_60,"key \'",(string *)local_40,"\' not found"); /* try { // try from 001718a0 to 001718cc has its CatchHandler @ 001718cd */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x193,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
29,665
inline_mysql_file_delete
eloqsql/include/mysql/psi/mysql_file.h
static inline int inline_mysql_file_delete( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *name, myf flags) { int result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_DELETE, name, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line); result= my_delete(name, flags); PSI_FILE_CALL(end_file_close_wait)(locker, result); return result; } #endif result= my_delete(name, flags); return result; }
O0
c
inline_mysql_file_delete: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) leaq 0x1efd0c(%rip), %rax # 0x2cb4e0 movq (%rax), %rax movq 0x148(%rax), %rax movl -0x8(%rbp), %esi movq -0x20(%rbp), %rcx leaq -0x80(%rbp), %rdi movl $0xe, %edx leaq -0x38(%rbp), %r8 callq *%rax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xdb868 leaq 0x1efcc1(%rip), %rax # 0x2cb4e0 movq (%rax), %rax movq 0x220(%rax), %rax movq -0x38(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq *%rax movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0xf3b60 movl %eax, -0x2c(%rbp) leaq 0x1efc93(%rip), %rax # 0x2cb4e0 movq (%rax), %rax movq 0x228(%rax), %rax movq -0x38(%rbp), %rdi movl -0x2c(%rbp), %esi callq *%rax movl -0x2c(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xdb87e movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0xf3b60 movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x80, %rsp popq %rbp retq nopw (%rax,%rax)
inline_mysql_file_delete_1: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_8] mov rcx, [rbp+var_20] lea rdi, [rbp+var_80] mov edx, 0Eh lea r8, [rbp+var_38] call rax mov [rbp+var_38], rax cmp [rbp+var_38], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_DB868 lea rax, PSI_server mov rax, [rax] mov rax, [rax+220h] mov rdi, [rbp+var_38] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call rax mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] call my_delete mov [rbp+var_2C], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+228h] mov rdi, [rbp+var_38] mov esi, [rbp+var_2C] call rax mov eax, [rbp+var_2C] mov [rbp+var_4], eax jmp short loc_DB87E loc_DB868: mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] call my_delete mov [rbp+var_2C], eax mov eax, [rbp+var_2C] mov [rbp+var_4], eax loc_DB87E: mov eax, [rbp+var_4] add rsp, 80h pop rbp retn
long long inline_mysql_file_delete_1(unsigned int a1, long long a2, unsigned int a3, long long a4, long long a5) { _BYTE v6[72]; // [rsp+0h] [rbp-80h] BYREF long long v7; // [rsp+48h] [rbp-38h] BYREF unsigned int v8; // [rsp+54h] [rbp-2Ch] long long v9; // [rsp+58h] [rbp-28h] long long v10; // [rsp+60h] [rbp-20h] unsigned int v11; // [rsp+6Ch] [rbp-14h] long long v12; // [rsp+70h] [rbp-10h] unsigned int v13; // [rsp+78h] [rbp-8h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; v9 = a5; v7 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v6, a1, 14LL, a4, &v7); if ( v7 ) { ((void ( *)(long long, long long, _QWORD))PSI_server[68])(v7, v12, v11); v8 = my_delete(v10, v9); ((void ( *)(long long, _QWORD))PSI_server[69])(v7, v8); } else { return (unsigned int)my_delete(v10, v9); } return v8; }
inline_mysql_file_delete: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 LEA RAX,[0x3cb4e0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x20] LEA RDI,[RBP + -0x80] MOV EDX,0xe LEA R8,[RBP + -0x38] CALL RAX MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001db868 LEA RAX,[0x3cb4e0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x220] MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL RAX MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] CALL 0x001f3b60 MOV dword ptr [RBP + -0x2c],EAX LEA RAX,[0x3cb4e0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x228] MOV RDI,qword ptr [RBP + -0x38] MOV ESI,dword ptr [RBP + -0x2c] CALL RAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x4],EAX JMP 0x001db87e LAB_001db868: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] CALL 0x001f3b60 MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x4],EAX LAB_001db87e: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x80 POP RBP RET
int4 inline_mysql_file_delete (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int8 param_5) { int1 local_88 [72]; long local_40; int4 local_34; int8 local_30; int8 local_28; int4 local_1c; int8 local_18; int4 local_10; int4 local_c; local_30 = param_5; local_28 = param_4; local_1c = param_3; local_18 = param_2; local_10 = param_1; local_40 = (**(code **)(PSI_server + 0x148))(local_88,param_1,0xe,param_4,&local_40); if (local_40 == 0) { local_c = my_delete(local_28,local_30); } else { (**(code **)(PSI_server + 0x220))(local_40,local_18,local_1c); local_34 = my_delete(local_28,local_30); (**(code **)(PSI_server + 0x228))(local_40,local_34); local_c = local_34; } return local_c; }
29,666
ma_bitmap_create_missing_into_pagecache
eloqsql/storage/maria/ma_bitmap.c
static my_bool _ma_bitmap_create_missing_into_pagecache(MARIA_SHARE *share, MARIA_FILE_BITMAP *bitmap, pgcache_page_no_t from, pgcache_page_no_t to, uchar *zeroes) { pgcache_page_no_t i; /* We do not use my_chsize() because there can be a race between when it reads the physical size and when it writes (assume data_file_length is 10, physical length is 8 and two data pages are in cache, and here we do a my_chsize: my_chsize sees physical length is 8, then the two data pages go to disk then my_chsize writes from page 8 and so overwrites the two data pages, wrongly). We instead rely on the filesystem filling gaps with zeroes. */ for (i= from; i <= to; i+= bitmap->pages_covered) { /** No need to keep them pinned, they are new so flushable. @todo but we may want to keep them pinned, as an optimization: if they are not pinned they may go to disk before the data pages go (so, the physical pages would be in non-ascending "sparse" order on disk), or the filesystem may fill gaps with zeroes physically which is a waste of time. */ if (pagecache_write(share->pagecache, &bitmap->file, i, 0, zeroes, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_LEFT_UNLOCKED, PAGECACHE_PIN_LEFT_UNPINNED, PAGECACHE_WRITE_DELAY, 0, LSN_IMPOSSIBLE)) goto err; } /* Data pages after data_file_length are full of zeroes but that is allowed as they are marked empty in the bitmap. */ return FALSE; err: _ma_set_fatal_error_with_share(share, my_errno); return TRUE; }
O0
c
ma_bitmap_create_missing_into_pagecache: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax cmpq -0x28(%rbp), %rax ja 0x64fb6 movq -0x10(%rbp), %rax movq 0x600(%rax), %rdi movq -0x18(%rbp), %rsi addq $0x40, %rsi movq -0x38(%rbp), %rdx movq -0x30(%rbp), %r8 movq -0x10(%rbp), %rax movq 0x600(%rax), %rax movl 0x80(%rax), %eax xorl %ecx, %ecx movl $0x1, %r9d xorl %r10d, %r10d movl $0x0, (%rsp) movl $0x1, 0x8(%rsp) movl $0x0, 0x10(%rsp) movq $0x0, 0x18(%rsp) movq $0x0, 0x20(%rsp) movl $0x0, 0x28(%rsp) movl %eax, 0x30(%rsp) callq 0x3e700 cmpb $0x0, %al je 0x64f9c jmp 0x64fbc jmp 0x64f9e movq -0x18(%rbp), %rax movq 0x138(%rax), %rax addq -0x38(%rbp), %rax movq %rax, -0x38(%rbp) jmp 0x64f17 movb $0x0, -0x1(%rbp) jmp 0x64fd8 movq -0x10(%rbp), %rax movq %rax, -0x40(%rbp) callq 0xf6080 movq -0x40(%rbp), %rdi movl (%rax), %esi callq 0x43e20 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x80, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_bitmap_create_missing_into_pagecache: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov rax, [rbp+var_20] mov [rbp+var_38], rax loc_64F17: mov rax, [rbp+var_38] cmp rax, [rbp+var_28] ja loc_64FB6 mov rax, [rbp+var_10] mov rdi, [rax+600h] mov rsi, [rbp+var_18] add rsi, 40h ; '@' mov rdx, [rbp+var_38] mov r8, [rbp+var_30] mov rax, [rbp+var_10] mov rax, [rax+600h] mov eax, [rax+80h] xor ecx, ecx mov r9d, 1 xor r10d, r10d mov [rsp+80h+var_80], 0 mov [rsp+80h+var_78], 1 mov [rsp+80h+var_70], 0 mov [rsp+80h+var_68], 0 mov [rsp+80h+var_60], 0 mov [rsp+80h+var_58], 0 mov [rsp+80h+var_50], eax call pagecache_write_part cmp al, 0 jz short loc_64F9C jmp short loc_64FBC loc_64F9C: jmp short $+2 loc_64F9E: mov rax, [rbp+var_18] mov rax, [rax+138h] add rax, [rbp+var_38] mov [rbp+var_38], rax jmp loc_64F17 loc_64FB6: mov [rbp+var_1], 0 jmp short loc_64FD8 loc_64FBC: mov rax, [rbp+var_10] mov [rbp+var_40], rax call _my_thread_var mov rdi, [rbp+var_40] mov esi, [rax] call _ma_set_fatal_error_with_share mov [rbp+var_1], 1 loc_64FD8: mov al, [rbp+var_1] add rsp, 80h pop rbp retn
char ma_bitmap_create_missing_into_pagecache( long long a1, long long a2, unsigned long long a3, unsigned long long a4, long long a5) { int *v5; // rax long long v6; // rdx long long v7; // rcx long long v8; // r8 int v9; // r9d while ( 1 ) { if ( a3 > a4 ) return 0; if ( pagecache_write_part( *(_QWORD **)(a1 + 1536), a2 + 64, a3, 0, a5, 1u, 0, 1u, 0, 0LL, 0LL, 0, *(_DWORD *)(*(_QWORD *)(a1 + 1536) + 128LL)) ) { break; } a3 += *(_QWORD *)(a2 + 312); } v5 = (int *)my_thread_var(); ma_set_fatal_error_with_share(a1, *v5, v6, v7, v8, v9); return 1; }
_ma_bitmap_create_missing_into_pagecache: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX LAB_00164f17: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x28] JA 0x00164fb6 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x18] ADD RSI,0x40 MOV RDX,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x600] MOV EAX,dword ptr [RAX + 0x80] XOR ECX,ECX MOV R9D,0x1 XOR R10D,R10D MOV dword ptr [RSP],0x0 MOV dword ptr [RSP + 0x8],0x1 MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x0 MOV dword ptr [RSP + 0x28],0x0 MOV dword ptr [RSP + 0x30],EAX CALL 0x0013e700 CMP AL,0x0 JZ 0x00164f9c JMP 0x00164fbc LAB_00164f9c: JMP 0x00164f9e LAB_00164f9e: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x138] ADD RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x38],RAX JMP 0x00164f17 LAB_00164fb6: MOV byte ptr [RBP + -0x1],0x0 JMP 0x00164fd8 LAB_00164fbc: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x40],RAX CALL 0x001f6080 MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RAX] CALL 0x00143e20 MOV byte ptr [RBP + -0x1],0x1 LAB_00164fd8: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x80 POP RBP RET
int1 _ma_bitmap_create_missing_into_pagecache (long param_1,long param_2,ulong param_3,ulong param_4,int8 param_5) { char cVar1; int4 *puVar2; ulong local_40; local_40 = param_3; while( true ) { if (param_4 < local_40) { return 0; } cVar1 = pagecache_write_part (*(int8 *)(param_1 + 0x600),param_2 + 0x40,local_40,0,param_5,1,0,1,0,0, 0,0,*(int4 *)(*(long *)(param_1 + 0x600) + 0x80)); if (cVar1 != '\0') break; local_40 = *(long *)(param_2 + 0x138) + local_40; } puVar2 = (int4 *)_my_thread_var(); _ma_set_fatal_error_with_share(param_1,*puVar2); return 1; }
29,667
my_mb_wc_utf16_quick
eloqsql/strings/ctype-utf16.h
static inline int my_mb_wc_utf16_quick(my_wc_t *pwc, const uchar *s, const uchar *e) { if (s + 2 > e) return MY_CS_TOOSMALL2; /* High bytes: 0xD[89AB] = B'110110??' Low bytes: 0xD[CDEF] = B'110111??' Surrogate mask: 0xFC = B'11111100' */ if (MY_UTF16_HIGH_HEAD(*s)) /* Surrogate head */ { if (s + 4 > e) return MY_CS_TOOSMALL4; if (!MY_UTF16_LOW_HEAD(s[2])) /* Broken surrigate pair */ return MY_CS_ILSEQ; *pwc= MY_UTF16_WC4(s[0], s[1], s[2], s[3]); return 4; } if (MY_UTF16_LOW_HEAD(*s)) /* Low surrogate part without high part */ return MY_CS_ILSEQ; *pwc= MY_UTF16_WC2(s[0], s[1]); return 2; }
O0
c
my_mb_wc_utf16_quick: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax addq $0x2, %rax cmpq -0x20(%rbp), %rax jbe 0xb6e5a movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0xb6f38 movq -0x18(%rbp), %rax movzbl (%rax), %eax andl $0xfc, %eax cmpl $0xd8, %eax jne 0xb6ef7 movq -0x18(%rbp), %rax addq $0x4, %rax cmpq -0x20(%rbp), %rax jbe 0xb6e8b movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98 jmp 0xb6f38 movq -0x18(%rbp), %rax movzbl 0x2(%rax), %eax andl $0xfc, %eax cmpl $0xdc, %eax je 0xb6eab movl $0x0, -0x4(%rbp) jmp 0xb6f38 movq -0x18(%rbp), %rax movzbl (%rax), %eax andl $0x3, %eax shll $0x12, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0xa, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx andl $0x3, %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx addl %ecx, %eax addl $0x10000, %eax # imm = 0x10000 movslq %eax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x4, -0x4(%rbp) jmp 0xb6f38 movq -0x18(%rbp), %rax movzbl (%rax), %eax andl $0xfc, %eax cmpl $0xdc, %eax jne 0xb6f13 movl $0x0, -0x4(%rbp) jmp 0xb6f38 movq -0x18(%rbp), %rax movzbl (%rax), %eax shll $0x8, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx addl %ecx, %eax movslq %eax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
my_mb_wc_utf16_quick: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] add rax, 2 cmp rax, [rbp+var_20] jbe short loc_B6E5A mov [rbp+var_4], 0FFFFFF9Ah jmp loc_B6F38 loc_B6E5A: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] and eax, 0FCh cmp eax, 0D8h jnz loc_B6EF7 mov rax, [rbp+var_18] add rax, 4 cmp rax, [rbp+var_20] jbe short loc_B6E8B mov [rbp+var_4], 0FFFFFF98h jmp loc_B6F38 loc_B6E8B: mov rax, [rbp+var_18] movzx eax, byte ptr [rax+2] and eax, 0FCh cmp eax, 0DCh jz short loc_B6EAB mov [rbp+var_4], 0 jmp loc_B6F38 loc_B6EAB: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] and eax, 3 shl eax, 12h mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 0Ah add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] and ecx, 3 shl ecx, 8 add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] add eax, ecx add eax, 10000h movsxd rcx, eax mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_4], 4 jmp short loc_B6F38 loc_B6EF7: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] and eax, 0FCh cmp eax, 0DCh jnz short loc_B6F13 mov [rbp+var_4], 0 jmp short loc_B6F38 loc_B6F13: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] shl eax, 8 mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] add eax, ecx movsxd rcx, eax mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_4], 2 loc_B6F38: mov eax, [rbp+var_4] pop rbp retn
long long my_mb_wc_utf16_quick(_QWORD *a1, unsigned __int8 *a2, unsigned long long a3) { if ( (unsigned long long)(a2 + 2) <= a3 ) { if ( (*a2 & 0xFC) == 0xD8 ) { if ( (unsigned long long)(a2 + 4) <= a3 ) { if ( (a2[2] & 0xFC) == 0xDC ) { *a1 = a2[3] + ((a2[2] & 3) << 8) + (a2[1] << 10) + ((*a2 & 3) << 18) + 0x10000; return 4; } else { return 0; } } else { return (unsigned int)-104; } } else if ( (*a2 & 0xFC) == 0xDC ) { return 0; } else { *a1 = a2[1] + (*a2 << 8); return 2; } } else { return (unsigned int)-102; } }
my_mb_wc_utf16_quick: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x20] JBE 0x001b6e5a MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x001b6f38 LAB_001b6e5a: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] AND EAX,0xfc CMP EAX,0xd8 JNZ 0x001b6ef7 MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x4 CMP RAX,qword ptr [RBP + -0x20] JBE 0x001b6e8b MOV dword ptr [RBP + -0x4],0xffffff98 JMP 0x001b6f38 LAB_001b6e8b: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x2] AND EAX,0xfc CMP EAX,0xdc JZ 0x001b6eab MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b6f38 LAB_001b6eab: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] AND EAX,0x3 SHL EAX,0x12 MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0xa ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] AND ECX,0x3 SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] ADD EAX,ECX ADD EAX,0x10000 MOVSXD RCX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x4 JMP 0x001b6f38 LAB_001b6ef7: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] AND EAX,0xfc CMP EAX,0xdc JNZ 0x001b6f13 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b6f38 LAB_001b6f13: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] ADD EAX,ECX MOVSXD RCX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x2 LAB_001b6f38: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_mb_wc_utf16_quick(long *param_1,byte *param_2,byte *param_3) { int4 local_c; if (param_3 < param_2 + 2) { local_c = 0xffffff9a; } else if ((*param_2 & 0xfc) == 0xd8) { if (param_3 < param_2 + 4) { local_c = 0xffffff98; } else if ((param_2[2] & 0xfc) == 0xdc) { *param_1 = (long)(int)((*param_2 & 3) * 0x40000 + (uint)param_2[1] * 0x400 + (param_2[2] & 3) * 0x100 + (uint)param_2[3] + 0x10000); local_c = 4; } else { local_c = 0; } } else if ((*param_2 & 0xfc) == 0xdc) { local_c = 0; } else { *param_1 = (long)(int)((uint)*param_2 * 0x100 + (uint)param_2[1]); local_c = 2; } return local_c; }
29,668
get_default_configuration_dirs
eloqsql/libmariadb/libmariadb/ma_default.c
char **get_default_configuration_dirs() { #ifdef _WIN32 char dirname[FN_REFLEN]; #endif char *env; configuration_dirs= (char **)calloc(1, (MAX_CONFIG_DIRS + 1) * sizeof(char *)); if (!configuration_dirs) goto end; #ifdef _WIN32 /* On Windows operating systems configuration files are stored in 1. System Windows directory 2. System directory 3. Windows directory 4. C:\ */ if (!GetSystemWindowsDirectory(dirname, FN_REFLEN) || add_cfg_dir(configuration_dirs, dirname)) goto error; if (!GetWindowsDirectory(dirname, FN_REFLEN) || add_cfg_dir(configuration_dirs, dirname)) goto error; if (add_cfg_dir(configuration_dirs, "C:")) goto error; if (GetModuleFileName(NULL, dirname, FN_REFLEN)) { PathRemoveFileSpec(dirname); if (add_cfg_dir(configuration_dirs, dirname)) goto error; } #else /* on *nix platforms configuration files are stored in 1. SYSCONFDIR (if build happens inside server package, or -DDEFAULT_SYSCONFDIR was specified 2. /etc 3. /etc/mysql */ #ifdef DEFAULT_SYSCONFDIR if (add_cfg_dir(configuration_dirs, DEFAULT_SYSCONFDIR)) goto error; #else if (add_cfg_dir(configuration_dirs, "/etc")) goto error; if (add_cfg_dir(configuration_dirs, "/etc/mysql")) goto error; #endif #endif /* CONC-537: Read configuration files from MYSQL_HOME directory only if MARIADB_HOME was not set */ if (!(env= getenv("MARIADB_HOME"))) env= getenv("MYSQL_HOME"); if (env && add_cfg_dir(configuration_dirs, env)) goto error; end: return configuration_dirs; error: return NULL; }
O3
c
get_default_configuration_dirs: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movl $0x1, %edi movl $0x38, %esi callq 0x132f0 movq %rax, %rbx leaq 0x1b8f7(%rip), %rax # 0x51e90 movq %rbx, (%rax) testq %rbx, %rbx je 0x365fa leaq 0x72db(%rip), %rsi # 0x3d883 movq %rbx, %rdi callq 0x36604 testl %eax, %eax jne 0x365f8 leaq 0x72cd(%rip), %rsi # 0x3d888 movq %rbx, %rdi callq 0x36604 testl %eax, %eax jne 0x365f8 leaq 0x72c5(%rip), %rdi # 0x3d893 callq 0x135b0 testq %rax, %rax jne 0x365e9 leaq 0x72c1(%rip), %rdi # 0x3d8a0 callq 0x135b0 testq %rax, %rax je 0x365fa movq %rbx, %rdi movq %rax, %rsi callq 0x36604 testl %eax, %eax je 0x365fa xorl %ebx, %ebx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %rbp retq
get_default_configuration_dirs: push rbp mov rbp, rsp push rbx push rax mov edi, 1 mov esi, 38h ; '8' call _calloc mov rbx, rax lea rax, configuration_dirs mov [rax], rbx test rbx, rbx jz short loc_365FA lea rsi, aEtc; "/etc" mov rdi, rbx call add_cfg_dir test eax, eax jnz short loc_365F8 lea rsi, aEtcMysql; "/etc/mysql" mov rdi, rbx call add_cfg_dir test eax, eax jnz short loc_365F8 lea rdi, aMariadbHome; "MARIADB_HOME" call _getenv test rax, rax jnz short loc_365E9 lea rdi, aMysqlHome; "MYSQL_HOME" call _getenv test rax, rax jz short loc_365FA loc_365E9: mov rdi, rbx mov rsi, rax call add_cfg_dir test eax, eax jz short loc_365FA loc_365F8: xor ebx, ebx loc_365FA: mov rax, rbx add rsp, 8 pop rbx pop rbp retn
long long get_default_configuration_dirs() { long long v0; // rbx long long v1; // rax v0 = calloc(1LL, 56LL); configuration_dirs = v0; if ( v0 ) { if ( (unsigned int)add_cfg_dir(v0, "/etc") || (unsigned int)add_cfg_dir(v0, "/etc/mysql") ) return 0LL; v1 = getenv("MARIADB_HOME"); if ( v1 || (v1 = getenv("MYSQL_HOME")) != 0 ) { if ( (unsigned int)add_cfg_dir(v0, v1) ) return 0LL; } } return v0; }
get_default_configuration_dirs: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV EDI,0x1 MOV ESI,0x38 CALL 0x001132f0 MOV RBX,RAX LEA RAX,[0x151e90] MOV qword ptr [RAX],RBX TEST RBX,RBX JZ 0x001365fa LEA RSI,[0x13d883] MOV RDI,RBX CALL 0x00136604 TEST EAX,EAX JNZ 0x001365f8 LEA RSI,[0x13d888] MOV RDI,RBX CALL 0x00136604 TEST EAX,EAX JNZ 0x001365f8 LEA RDI,[0x13d893] CALL 0x001135b0 TEST RAX,RAX JNZ 0x001365e9 LEA RDI,[0x13d8a0] CALL 0x001135b0 TEST RAX,RAX JZ 0x001365fa LAB_001365e9: MOV RDI,RBX MOV RSI,RAX CALL 0x00136604 TEST EAX,EAX JZ 0x001365fa LAB_001365f8: XOR EBX,EBX LAB_001365fa: MOV RAX,RBX ADD RSP,0x8 POP RBX POP RBP RET
void * get_default_configuration_dirs(void) { int iVar1; void *pvVar2; char *pcVar3; pvVar2 = calloc(1,0x38); configuration_dirs = pvVar2; if (pvVar2 != (void *)0x0) { iVar1 = add_cfg_dir(pvVar2,&DAT_0013d883); if ((iVar1 == 0) && (iVar1 = add_cfg_dir(pvVar2,"/etc/mysql"), iVar1 == 0)) { pcVar3 = getenv("MARIADB_HOME"); if ((pcVar3 == (char *)0x0) && (pcVar3 = getenv("MYSQL_HOME"), pcVar3 == (char *)0x0)) { return pvVar2; } iVar1 = add_cfg_dir(pvVar2,pcVar3); if (iVar1 == 0) { return pvVar2; } } pvVar2 = (void *)0x0; } return pvVar2; }
29,669
mi_unique_hash
eloqsql/storage/myisam/mi_unique.c
ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const uchar *record) { const uchar *pos, *end; ha_checksum crc= 0; ulong seed1=0, seed2= 4; HA_KEYSEG *keyseg; for (keyseg=def->seg ; keyseg < def->end ; keyseg++) { enum ha_base_keytype type=(enum ha_base_keytype) keyseg->type; uint length=keyseg->length; if (keyseg->null_bit) { if (record[keyseg->null_pos] & keyseg->null_bit) { /* Change crc in a way different from an empty string or 0. (This is an optimisation; The code will work even if this isn't done) */ crc=((crc << 8) + 511+ (crc >> (8*sizeof(ha_checksum)-8))); continue; } } pos= record+keyseg->start; if (keyseg->flag & HA_VAR_LENGTH_PART) { uint pack_length= keyseg->bit_start; uint tmp_length= (pack_length == 1 ? (uint) *(uchar*) pos : uint2korr(pos)); pos+= pack_length; /* Skip VARCHAR length */ set_if_smaller(length,tmp_length); } else if (keyseg->flag & HA_BLOB_PART) { uint tmp_length=_mi_calc_blob_length(keyseg->bit_start,pos); memcpy((char**) &pos, pos+keyseg->bit_start, sizeof(char*)); if (!length || length > tmp_length) length=tmp_length; /* The whole blob */ } end= pos+length; if (type == HA_KEYTYPE_TEXT || type == HA_KEYTYPE_VARTEXT1 || type == HA_KEYTYPE_VARTEXT2) { my_ci_hash_sort(keyseg->charset, (const uchar*) pos, length, &seed1, &seed2); crc^= seed1; } else while (pos != end) crc=((crc << 8) + (((uchar) *(uchar*) pos++))) + (crc >> (8*sizeof(ha_checksum)-8)); } return crc; }
O0
c
mi_unique_hash: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl $0x0, -0x24(%rbp) movq $0x0, -0x30(%rbp) movq $0x4, -0x38(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax jae 0xc7ce8 movq -0x40(%rbp), %rax movzbl 0x18(%rax), %eax movl %eax, -0x44(%rbp) movq -0x40(%rbp), %rax movzwl 0x14(%rax), %eax movl %eax, -0x48(%rbp) movq -0x40(%rbp), %rax cmpb $0x0, 0x19(%rax) je 0xc7b90 movq -0x10(%rbp), %rax movq -0x40(%rbp), %rcx movl 0xc(%rcx), %ecx movzbl (%rax,%rcx), %eax movq -0x40(%rbp), %rcx movzbl 0x19(%rcx), %ecx andl %ecx, %eax cmpl $0x0, %eax je 0xc7b8e movl -0x24(%rbp), %eax shll $0x8, %eax addl $0x1ff, %eax # imm = 0x1FF movl -0x24(%rbp), %ecx shrl $0x18, %ecx addl %ecx, %eax movl %eax, -0x24(%rbp) jmp 0xc7cd7 jmp 0xc7b90 movq -0x10(%rbp), %rax movq -0x40(%rbp), %rcx movl 0x8(%rcx), %ecx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x40(%rbp), %rax movzwl 0x12(%rax), %eax andl $0x8, %eax cmpl $0x0, %eax je 0xc7c01 movq -0x40(%rbp), %rax movzbl 0x1a(%rax), %eax movl %eax, -0x4c(%rbp) cmpl $0x1, -0x4c(%rbp) jne 0xc7bcf movq -0x18(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x58(%rbp) jmp 0xc7bd9 movq -0x18(%rbp), %rax movzwl (%rax), %eax movl %eax, -0x58(%rbp) movl -0x58(%rbp), %eax movl %eax, -0x50(%rbp) movl -0x4c(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x18(%rbp) movl -0x48(%rbp), %eax cmpl -0x50(%rbp), %eax jbe 0xc7bfd movl -0x50(%rbp), %eax movl %eax, -0x48(%rbp) jmp 0xc7bff jmp 0xc7c54 movq -0x40(%rbp), %rax movzwl 0x12(%rax), %eax andl $0x20, %eax cmpl $0x0, %eax je 0xc7c52 movq -0x40(%rbp), %rax movzbl 0x1a(%rax), %edi movq -0x18(%rbp), %rsi callq 0xadfa0 movl %eax, -0x54(%rbp) movq -0x18(%rbp), %rax movq -0x40(%rbp), %rcx movzbl 0x1a(%rcx), %ecx movslq %ecx, %rcx movq (%rax,%rcx), %rax movq %rax, -0x18(%rbp) cmpl $0x0, -0x48(%rbp) je 0xc7c4a movl -0x48(%rbp), %eax cmpl -0x54(%rbp), %eax jbe 0xc7c50 movl -0x54(%rbp), %eax movl %eax, -0x48(%rbp) jmp 0xc7c52 jmp 0xc7c54 movq -0x18(%rbp), %rax movl -0x48(%rbp), %ecx addq %rcx, %rax movq %rax, -0x20(%rbp) cmpl $0x1, -0x44(%rbp) je 0xc7c74 cmpl $0xf, -0x44(%rbp) je 0xc7c74 cmpl $0x11, -0x44(%rbp) jne 0xc7ca0 movq -0x40(%rbp), %rax movq (%rax), %rdi movq -0x18(%rbp), %rsi movl -0x48(%rbp), %eax movl %eax, %edx leaq -0x30(%rbp), %rcx leaq -0x38(%rbp), %r8 callq 0xc7d00 movq -0x30(%rbp), %rcx movl -0x24(%rbp), %eax xorq %rcx, %rax movl %eax, -0x24(%rbp) jmp 0xc7cd5 jmp 0xc7ca2 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax je 0xc7cd3 movl -0x24(%rbp), %eax shll $0x8, %eax movq -0x18(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x18(%rbp) movzbl (%rcx), %ecx addl %ecx, %eax movl -0x24(%rbp), %ecx shrl $0x18, %ecx addl %ecx, %eax movl %eax, -0x24(%rbp) jmp 0xc7ca2 jmp 0xc7cd5 jmp 0xc7cd7 movq -0x40(%rbp), %rax addq $0x20, %rax movq %rax, -0x40(%rbp) jmp 0xc7b23 movl -0x24(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mi_unique_hash: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_24], 0 mov [rbp+var_30], 0 mov [rbp+var_38], 4 mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_40], rax loc_C7B23: mov rax, [rbp+var_40] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jnb loc_C7CE8 mov rax, [rbp+var_40] movzx eax, byte ptr [rax+18h] mov [rbp+var_44], eax mov rax, [rbp+var_40] movzx eax, word ptr [rax+14h] mov [rbp+var_48], eax mov rax, [rbp+var_40] cmp byte ptr [rax+19h], 0 jz short loc_C7B90 mov rax, [rbp+var_10] mov rcx, [rbp+var_40] mov ecx, [rcx+0Ch] movzx eax, byte ptr [rax+rcx] mov rcx, [rbp+var_40] movzx ecx, byte ptr [rcx+19h] and eax, ecx cmp eax, 0 jz short loc_C7B8E mov eax, [rbp+var_24] shl eax, 8 add eax, 1FFh mov ecx, [rbp+var_24] shr ecx, 18h add eax, ecx mov [rbp+var_24], eax jmp loc_C7CD7 loc_C7B8E: jmp short $+2 loc_C7B90: mov rax, [rbp+var_10] mov rcx, [rbp+var_40] mov ecx, [rcx+8] add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_40] movzx eax, word ptr [rax+12h] and eax, 8 cmp eax, 0 jz short loc_C7C01 mov rax, [rbp+var_40] movzx eax, byte ptr [rax+1Ah] mov [rbp+var_4C], eax cmp [rbp+var_4C], 1 jnz short loc_C7BCF mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov [rbp+var_58], eax jmp short loc_C7BD9 loc_C7BCF: mov rax, [rbp+var_18] movzx eax, word ptr [rax] mov [rbp+var_58], eax loc_C7BD9: mov eax, [rbp+var_58] mov [rbp+var_50], eax mov ecx, [rbp+var_4C] mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx mov [rbp+var_18], rax mov eax, [rbp+var_48] cmp eax, [rbp+var_50] jbe short loc_C7BFD mov eax, [rbp+var_50] mov [rbp+var_48], eax loc_C7BFD: jmp short $+2 loc_C7BFF: jmp short loc_C7C54 loc_C7C01: mov rax, [rbp+var_40] movzx eax, word ptr [rax+12h] and eax, 20h cmp eax, 0 jz short loc_C7C52 mov rax, [rbp+var_40] movzx edi, byte ptr [rax+1Ah] mov rsi, [rbp+var_18] call _mi_calc_blob_length mov [rbp+var_54], eax mov rax, [rbp+var_18] mov rcx, [rbp+var_40] movzx ecx, byte ptr [rcx+1Ah] movsxd rcx, ecx mov rax, [rax+rcx] mov [rbp+var_18], rax cmp [rbp+var_48], 0 jz short loc_C7C4A mov eax, [rbp+var_48] cmp eax, [rbp+var_54] jbe short loc_C7C50 loc_C7C4A: mov eax, [rbp+var_54] mov [rbp+var_48], eax loc_C7C50: jmp short $+2 loc_C7C52: jmp short $+2 loc_C7C54: mov rax, [rbp+var_18] mov ecx, [rbp+var_48] add rax, rcx mov [rbp+var_20], rax cmp [rbp+var_44], 1 jz short loc_C7C74 cmp [rbp+var_44], 0Fh jz short loc_C7C74 cmp [rbp+var_44], 11h jnz short loc_C7CA0 loc_C7C74: mov rax, [rbp+var_40] mov rdi, [rax] mov rsi, [rbp+var_18] mov eax, [rbp+var_48] mov edx, eax lea rcx, [rbp+var_30] lea r8, [rbp+var_38] call my_ci_hash_sort_0 mov rcx, [rbp+var_30] mov eax, [rbp+var_24] xor rax, rcx mov [rbp+var_24], eax jmp short loc_C7CD5 loc_C7CA0: jmp short $+2 loc_C7CA2: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jz short loc_C7CD3 mov eax, [rbp+var_24] shl eax, 8 mov rcx, [rbp+var_18] mov rdx, rcx add rdx, 1 mov [rbp+var_18], rdx movzx ecx, byte ptr [rcx] add eax, ecx mov ecx, [rbp+var_24] shr ecx, 18h add eax, ecx mov [rbp+var_24], eax jmp short loc_C7CA2 loc_C7CD3: jmp short $+2 loc_C7CD5: jmp short $+2 loc_C7CD7: mov rax, [rbp+var_40] add rax, 20h ; ' ' mov [rbp+var_40], rax jmp loc_C7B23 loc_C7CE8: mov eax, [rbp+var_24] add rsp, 60h pop rbp retn
long long mi_unique_hash(long long a1, long long a2) { unsigned __int8 *v2; // rcx unsigned int v4; // [rsp+8h] [rbp-58h] unsigned int v5; // [rsp+Ch] [rbp-54h] unsigned int v6; // [rsp+18h] [rbp-48h] int v7; // [rsp+1Ch] [rbp-44h] unsigned long long i; // [rsp+20h] [rbp-40h] long long v9; // [rsp+28h] [rbp-38h] BYREF long long v10; // [rsp+30h] [rbp-30h] BYREF unsigned int v11; // [rsp+3Ch] [rbp-24h] unsigned __int8 *v12; // [rsp+40h] [rbp-20h] unsigned __int8 *v13; // [rsp+48h] [rbp-18h] long long v14; // [rsp+50h] [rbp-10h] long long v15; // [rsp+58h] [rbp-8h] v15 = a1; v14 = a2; v11 = 0; v10 = 0LL; v9 = 4LL; for ( i = *(_QWORD *)(a1 + 8); i < *(_QWORD *)(v15 + 16); i += 32LL ) { v7 = *(unsigned __int8 *)(i + 24); v6 = *(unsigned __int16 *)(i + 20); if ( *(_BYTE *)(i + 25) && (*(_BYTE *)(i + 25) & *(_BYTE *)(v14 + *(unsigned int *)(i + 12))) != 0 ) { v11 = HIBYTE(v11) + (v11 << 8) + 511; } else { v13 = (unsigned __int8 *)(*(unsigned int *)(i + 8) + v14); if ( (*(_WORD *)(i + 18) & 8) != 0 ) { if ( *(_BYTE *)(i + 26) == 1 ) v4 = *v13; else v4 = *(unsigned __int16 *)v13; v13 += *(unsigned __int8 *)(i + 26); if ( v6 > v4 ) v6 = v4; } else if ( (*(_WORD *)(i + 18) & 0x20) != 0 ) { v5 = mi_calc_blob_length(*(unsigned __int8 *)(i + 26), v13); v13 = *(unsigned __int8 **)&v13[*(unsigned __int8 *)(i + 26)]; if ( !v6 || v6 > v5 ) v6 = v5; } v12 = &v13[v6]; if ( v7 == 1 || v7 == 15 || v7 == 17 ) { my_ci_hash_sort_0(*(_QWORD *)i, v13, v6, &v10, &v9); v11 ^= v10; } else { while ( v13 != v12 ) { v2 = v13++; v11 = HIBYTE(v11) + *v2 + (v11 << 8); } } } } return v11; }
mi_unique_hash: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x24],0x0 MOV qword ptr [RBP + -0x30],0x0 MOV qword ptr [RBP + -0x38],0x4 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x40],RAX LAB_001c7b23: MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JNC 0x001c7ce8 MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x18] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [RAX + 0x14] MOV dword ptr [RBP + -0x48],EAX MOV RAX,qword ptr [RBP + -0x40] CMP byte ptr [RAX + 0x19],0x0 JZ 0x001c7b90 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RCX + 0xc] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV RCX,qword ptr [RBP + -0x40] MOVZX ECX,byte ptr [RCX + 0x19] AND EAX,ECX CMP EAX,0x0 JZ 0x001c7b8e MOV EAX,dword ptr [RBP + -0x24] SHL EAX,0x8 ADD EAX,0x1ff MOV ECX,dword ptr [RBP + -0x24] SHR ECX,0x18 ADD EAX,ECX MOV dword ptr [RBP + -0x24],EAX JMP 0x001c7cd7 LAB_001c7b8e: JMP 0x001c7b90 LAB_001c7b90: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RCX + 0x8] ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [RAX + 0x12] AND EAX,0x8 CMP EAX,0x0 JZ 0x001c7c01 MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x1a] MOV dword ptr [RBP + -0x4c],EAX CMP dword ptr [RBP + -0x4c],0x1 JNZ 0x001c7bcf MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x58],EAX JMP 0x001c7bd9 LAB_001c7bcf: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX] MOV dword ptr [RBP + -0x58],EAX LAB_001c7bd9: MOV EAX,dword ptr [RBP + -0x58] MOV dword ptr [RBP + -0x50],EAX MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x50] JBE 0x001c7bfd MOV EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x48],EAX LAB_001c7bfd: JMP 0x001c7bff LAB_001c7bff: JMP 0x001c7c54 LAB_001c7c01: MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [RAX + 0x12] AND EAX,0x20 CMP EAX,0x0 JZ 0x001c7c52 MOV RAX,qword ptr [RBP + -0x40] MOVZX EDI,byte ptr [RAX + 0x1a] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001adfa0 MOV dword ptr [RBP + -0x54],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x40] MOVZX ECX,byte ptr [RCX + 0x1a] MOVSXD RCX,ECX MOV RAX,qword ptr [RAX + RCX*0x1] MOV qword ptr [RBP + -0x18],RAX CMP dword ptr [RBP + -0x48],0x0 JZ 0x001c7c4a MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x54] JBE 0x001c7c50 LAB_001c7c4a: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x48],EAX LAB_001c7c50: JMP 0x001c7c52 LAB_001c7c52: JMP 0x001c7c54 LAB_001c7c54: MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x48] ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX CMP dword ptr [RBP + -0x44],0x1 JZ 0x001c7c74 CMP dword ptr [RBP + -0x44],0xf JZ 0x001c7c74 CMP dword ptr [RBP + -0x44],0x11 JNZ 0x001c7ca0 LAB_001c7c74: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x48] MOV EDX,EAX LEA RCX,[RBP + -0x30] LEA R8,[RBP + -0x38] CALL 0x001c7d00 MOV RCX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x24] XOR RAX,RCX MOV dword ptr [RBP + -0x24],EAX JMP 0x001c7cd5 LAB_001c7ca0: JMP 0x001c7ca2 LAB_001c7ca2: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JZ 0x001c7cd3 MOV EAX,dword ptr [RBP + -0x24] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x18] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x18],RDX MOVZX ECX,byte ptr [RCX] ADD EAX,ECX MOV ECX,dword ptr [RBP + -0x24] SHR ECX,0x18 ADD EAX,ECX MOV dword ptr [RBP + -0x24],EAX JMP 0x001c7ca2 LAB_001c7cd3: JMP 0x001c7cd5 LAB_001c7cd5: JMP 0x001c7cd7 LAB_001c7cd7: MOV RAX,qword ptr [RBP + -0x40] ADD RAX,0x20 MOV qword ptr [RBP + -0x40],RAX JMP 0x001c7b23 LAB_001c7ce8: MOV EAX,dword ptr [RBP + -0x24] ADD RSP,0x60 POP RBP RET
uint mi_unique_hash(long param_1,long param_2) { char cVar1; uint uVar2; uint local_60; uint local_50; int8 *local_48; int8 local_40; int8 local_38; uint local_2c; ushort *local_28; ushort *local_20; long local_18; long local_10; local_2c = 0; local_38 = 0; local_40 = 4; local_18 = param_2; local_10 = param_1; for (local_48 = *(int8 **)(param_1 + 8); local_48 < *(int8 **)(local_10 + 0x10); local_48 = local_48 + 4) { cVar1 = *(char *)(local_48 + 3); local_50 = (uint)*(ushort *)((long)local_48 + 0x14); if ((*(char *)((long)local_48 + 0x19) == '\0') || ((*(byte *)(local_18 + (ulong)*(uint *)((long)local_48 + 0xc)) & *(byte *)((long)local_48 + 0x19)) == 0)) { local_20 = (ushort *)(local_18 + (ulong)*(uint *)(local_48 + 1)); if ((*(ushort *)((long)local_48 + 0x12) & 8) == 0) { if ((*(ushort *)((long)local_48 + 0x12) & 0x20) != 0) { uVar2 = _mi_calc_blob_length(*(int1 *)((long)local_48 + 0x1a),local_20); local_20 = *(ushort **) ((long)local_20 + (long)(int)(uint)*(byte *)((long)local_48 + 0x1a)); if ((local_50 == 0) || (uVar2 < local_50)) { local_50 = uVar2; } } } else { if (*(byte *)((long)local_48 + 0x1a) == 1) { local_60 = (uint)(byte)*local_20; } else { local_60 = (uint)*local_20; } local_20 = (ushort *)((long)local_20 + (ulong)(uint)*(byte *)((long)local_48 + 0x1a)); if (local_60 < local_50) { local_50 = local_60; } } local_28 = (ushort *)((long)local_20 + (ulong)local_50); if (((cVar1 == '\x01') || (cVar1 == '\x0f')) || (cVar1 == '\x11')) { my_ci_hash_sort(*local_48,local_20,local_50,&local_38,&local_40); local_2c = local_2c ^ (uint)local_38; } else { for (; local_20 != local_28; local_20 = (ushort *)((long)local_20 + 1)) { local_2c = local_2c * 0x100 + (uint)(byte)*local_20 + (local_2c >> 0x18); } } } else { local_2c = local_2c * 0x100 + 0x1ff + (local_2c >> 0x18); } } return local_2c; }
29,670
d2b
eloqsql/strings/dtoa.c
static Bigint *d2b(U *d, int *e, int *bits, Stack_alloc *alloc) { Bigint *b; int de, k; ULong *x, y, z; int i; #define d0 word0(d) #define d1 word1(d) b= Balloc(1, alloc); x= b->p.x; z= d0 & Frac_mask; d0 &= 0x7fffffff; /* clear sign bit, which we ignore */ if ((de= (int)(d0 >> Exp_shift))) z|= Exp_msk1; if ((y= d1)) { if ((k= lo0bits(&y))) { x[0]= y | z << (32 - k); z>>= k; } else x[0]= y; i= b->wds= (x[1]= z) ? 2 : 1; } else { k= lo0bits(&z); x[0]= z; i= b->wds= 1; k+= 32; } if (de) { *e= de - Bias - (P-1) + k; *bits= P - k; } else { *e= de - Bias - (P-1) + 1 + k; *bits= 32*i - hi0bits(x[i-1]); } return b; #undef d0 #undef d1 }
O0
c
d2b: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x20(%rbp), %rsi movl $0x1, %edi callq 0x74d60 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x8(%rbp), %rax movl 0x4(%rax), %eax andl $0xfffff, %eax # imm = 0xFFFFF movl %eax, -0x40(%rbp) movq -0x8(%rbp), %rax movl 0x4(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF movl %ecx, 0x4(%rax) movq -0x8(%rbp), %rax movl 0x4(%rax), %eax shrl $0x14, %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x74ee1 movl -0x40(%rbp), %eax orl $0x100000, %eax # imm = 0x100000 movl %eax, -0x40(%rbp) movq -0x8(%rbp), %rax movl (%rax), %eax movl %eax, -0x3c(%rbp) cmpl $0x0, %eax je 0x74f5a leaq -0x3c(%rbp), %rdi callq 0x75b20 movl %eax, -0x30(%rbp) cmpl $0x0, %eax je 0x74f2b movl -0x3c(%rbp), %eax movl %eax, -0x48(%rbp) movl -0x40(%rbp), %eax movl $0x20, %ecx subl -0x30(%rbp), %ecx shll %cl, %eax movl -0x48(%rbp), %ecx orl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movl -0x30(%rbp), %ecx movl -0x40(%rbp), %eax shrl %cl, %eax movl %eax, -0x40(%rbp) jmp 0x74f34 movl -0x3c(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movl -0x40(%rbp), %edx movq -0x38(%rbp), %rax movl %edx, 0x4(%rax) movl $0x1, %eax movl $0x2, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movq -0x28(%rbp), %rcx movl %eax, 0x14(%rcx) movl %eax, -0x44(%rbp) jmp 0x74f8a leaq -0x40(%rbp), %rdi callq 0x75b20 movl %eax, -0x30(%rbp) movl -0x40(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, (%rax) movq -0x28(%rbp), %rax movl $0x1, 0x14(%rax) movl $0x1, -0x44(%rbp) movl -0x30(%rbp), %eax addl $0x20, %eax movl %eax, -0x30(%rbp) cmpl $0x0, -0x2c(%rbp) je 0x74fb5 movl -0x2c(%rbp), %ecx subl $0x3ff, %ecx # imm = 0x3FF subl $0x34, %ecx addl -0x30(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movl $0x35, %ecx subl -0x30(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, (%rax) jmp 0x74ff6 movl -0x2c(%rbp), %ecx subl $0x3ff, %ecx # imm = 0x3FF subl $0x34, %ecx addl $0x1, %ecx addl -0x30(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movl -0x44(%rbp), %eax shll $0x5, %eax movl %eax, -0x4c(%rbp) movq -0x38(%rbp), %rax movl -0x44(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edi callq 0x75c50 movl -0x4c(%rbp), %ecx subl %eax, %ecx movq -0x18(%rbp), %rax movl %ecx, (%rax) movq -0x28(%rbp), %rax addq $0x50, %rsp popq %rbp retq
d2b: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rsi, [rbp+var_20] mov edi, 1 call Balloc mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_8] mov eax, [rax+4] and eax, 0FFFFFh mov [rbp+var_40], eax mov rax, [rbp+var_8] mov ecx, [rax+4] and ecx, 7FFFFFFFh mov [rax+4], ecx mov rax, [rbp+var_8] mov eax, [rax+4] shr eax, 14h mov [rbp+var_2C], eax cmp eax, 0 jz short loc_74EE1 mov eax, [rbp+var_40] or eax, 100000h mov [rbp+var_40], eax loc_74EE1: mov rax, [rbp+var_8] mov eax, [rax] mov [rbp+var_3C], eax cmp eax, 0 jz short loc_74F5A lea rdi, [rbp+var_3C] call lo0bits mov [rbp+var_30], eax cmp eax, 0 jz short loc_74F2B mov eax, [rbp+var_3C] mov [rbp+var_48], eax mov eax, [rbp+var_40] mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] shl eax, cl mov ecx, [rbp+var_48] or ecx, eax mov rax, [rbp+var_38] mov [rax], ecx mov ecx, [rbp+var_30] mov eax, [rbp+var_40] shr eax, cl mov [rbp+var_40], eax jmp short loc_74F34 loc_74F2B: mov ecx, [rbp+var_3C] mov rax, [rbp+var_38] mov [rax], ecx loc_74F34: mov edx, [rbp+var_40] mov rax, [rbp+var_38] mov [rax+4], edx mov eax, 1 mov ecx, 2 cmp edx, 0 cmovnz eax, ecx mov rcx, [rbp+var_28] mov [rcx+14h], eax mov [rbp+var_44], eax jmp short loc_74F8A loc_74F5A: lea rdi, [rbp+var_40] call lo0bits mov [rbp+var_30], eax mov ecx, [rbp+var_40] mov rax, [rbp+var_38] mov [rax], ecx mov rax, [rbp+var_28] mov dword ptr [rax+14h], 1 mov [rbp+var_44], 1 mov eax, [rbp+var_30] add eax, 20h ; ' ' mov [rbp+var_30], eax loc_74F8A: cmp [rbp+var_2C], 0 jz short loc_74FB5 mov ecx, [rbp+var_2C] sub ecx, 3FFh sub ecx, 34h ; '4' add ecx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax], ecx mov ecx, 35h ; '5' sub ecx, [rbp+var_30] mov rax, [rbp+var_18] mov [rax], ecx jmp short loc_74FF6 loc_74FB5: mov ecx, [rbp+var_2C] sub ecx, 3FFh sub ecx, 34h ; '4' add ecx, 1 add ecx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax], ecx mov eax, [rbp+var_44] shl eax, 5 mov [rbp+var_4C], eax mov rax, [rbp+var_38] mov ecx, [rbp+var_44] sub ecx, 1 movsxd rcx, ecx mov edi, [rax+rcx*4] call hi0bits mov ecx, [rbp+var_4C] sub ecx, eax mov rax, [rbp+var_18] mov [rax], ecx loc_74FF6: mov rax, [rbp+var_28] add rsp, 50h pop rbp retn
long long d2b(unsigned int *a1, _DWORD *a2, _DWORD *a3, long long a4) { unsigned int v4; // edx int v5; // eax int v7; // [rsp+Ch] [rbp-44h] unsigned int v8; // [rsp+10h] [rbp-40h] BYREF unsigned int v9; // [rsp+14h] [rbp-3Ch] BYREF unsigned int *v10; // [rsp+18h] [rbp-38h] int v11; // [rsp+20h] [rbp-30h] unsigned int v12; // [rsp+24h] [rbp-2Ch] long long v13; // [rsp+28h] [rbp-28h] long long v14; // [rsp+30h] [rbp-20h] _DWORD *v15; // [rsp+38h] [rbp-18h] _DWORD *v16; // [rsp+40h] [rbp-10h] unsigned int *v17; // [rsp+48h] [rbp-8h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = Balloc(1, a4); v10 = *(unsigned int **)v13; v8 = a1[1] & 0xFFFFF; a1[1] &= ~0x80000000; v12 = v17[1] >> 20; if ( v12 ) v8 |= 0x100000u; v9 = *v17; if ( v9 ) { v11 = lo0bits(&v9); if ( v11 ) { *v10 = (v8 << (32 - v11)) | v9; v8 >>= v11; } else { *v10 = v9; } v4 = v8; v10[1] = v8; v5 = 1; if ( v4 ) v5 = 2; *(_DWORD *)(v13 + 20) = v5; v7 = v5; } else { v11 = lo0bits(&v8); *v10 = v8; *(_DWORD *)(v13 + 20) = 1; v7 = 1; v11 += 32; } if ( v12 ) { *v16 = v11 + v12 - 1075; *v15 = 53 - v11; } else { *v16 = v11 - 1074; *v15 = 32 * v7 - hi0bits(v10[v7 - 1]); } return v13; }
d2b: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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 RSI,qword ptr [RBP + -0x20] MOV EDI,0x1 CALL 0x00174d60 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] AND EAX,0xfffff MOV dword ptr [RBP + -0x40],EAX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x4] AND ECX,0x7fffffff MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] SHR EAX,0x14 MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JZ 0x00174ee1 MOV EAX,dword ptr [RBP + -0x40] OR EAX,0x100000 MOV dword ptr [RBP + -0x40],EAX LAB_00174ee1: MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x3c],EAX CMP EAX,0x0 JZ 0x00174f5a LEA RDI,[RBP + -0x3c] CALL 0x00175b20 MOV dword ptr [RBP + -0x30],EAX CMP EAX,0x0 JZ 0x00174f2b MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x40] MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] SHL EAX,CL MOV ECX,dword ptr [RBP + -0x48] OR ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV ECX,dword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x40] SHR EAX,CL MOV dword ptr [RBP + -0x40],EAX JMP 0x00174f34 LAB_00174f2b: MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX LAB_00174f34: MOV EDX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],EDX MOV EAX,0x1 MOV ECX,0x2 CMP EDX,0x0 CMOVNZ EAX,ECX MOV RCX,qword ptr [RBP + -0x28] MOV dword ptr [RCX + 0x14],EAX MOV dword ptr [RBP + -0x44],EAX JMP 0x00174f8a LAB_00174f5a: LEA RDI,[RBP + -0x40] CALL 0x00175b20 MOV dword ptr [RBP + -0x30],EAX MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x14],0x1 MOV dword ptr [RBP + -0x44],0x1 MOV EAX,dword ptr [RBP + -0x30] ADD EAX,0x20 MOV dword ptr [RBP + -0x30],EAX LAB_00174f8a: CMP dword ptr [RBP + -0x2c],0x0 JZ 0x00174fb5 MOV ECX,dword ptr [RBP + -0x2c] SUB ECX,0x3ff SUB ECX,0x34 ADD ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX MOV ECX,0x35 SUB ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],ECX JMP 0x00174ff6 LAB_00174fb5: MOV ECX,dword ptr [RBP + -0x2c] SUB ECX,0x3ff SUB ECX,0x34 ADD ECX,0x1 ADD ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RBP + -0x44] SHL EAX,0x5 MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x44] SUB ECX,0x1 MOVSXD RCX,ECX MOV EDI,dword ptr [RAX + RCX*0x4] CALL 0x00175c50 MOV ECX,dword ptr [RBP + -0x4c] SUB ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],ECX LAB_00174ff6: MOV RAX,qword ptr [RBP + -0x28] ADD RSP,0x50 POP RBP RET
int8 * d2b(uint *param_1,int *param_2,int *param_3,int8 param_4) { int iVar1; int local_4c; uint local_48; uint local_44; uint *local_40; int local_38; uint local_34; int8 *local_30; int8 local_28; int *local_20; int *local_18; uint *local_10; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; local_30 = (int8 *)Balloc(1,param_4); local_40 = (uint *)*local_30; local_48 = local_10[1] & 0xfffff; local_10[1] = local_10[1] & 0x7fffffff; local_34 = local_10[1] >> 0x14; if (local_34 != 0) { local_48 = local_48 | 0x100000; } local_44 = *local_10; if (local_44 == 0) { local_38 = lo0bits(&local_48); *local_40 = local_48; *(int4 *)((long)local_30 + 0x14) = 1; local_4c = 1; local_38 = local_38 + 0x20; } else { local_38 = lo0bits(&local_44); if (local_38 == 0) { *local_40 = local_44; } else { *local_40 = local_44 | local_48 << (0x20 - (byte)local_38 & 0x1f); local_48 = local_48 >> ((byte)local_38 & 0x1f); } local_40[1] = local_48; local_4c = 1; if (local_48 != 0) { local_4c = 2; } *(int *)((long)local_30 + 0x14) = local_4c; } if (local_34 == 0) { *local_18 = local_38 + -0x432; iVar1 = hi0bits(local_40[local_4c + -1]); *local_20 = local_4c * 0x20 - iVar1; } else { *local_18 = (local_34 - 0x433) + local_38; *local_20 = 0x35 - local_38; } return local_30; }
29,671
ma_feof
eloqsql/libmariadb/libmariadb/ma_io.c
int ma_feof(MA_FILE *file) { if (!file) return -1; switch (file->type) { case MA_FILE_LOCAL: return feof((FILE *)file->ptr); break; #ifdef HAVE_REMOTEIO case MA_FILE_REMOTE: return rio_plugin->methods->mfeof(file); break; #endif default: return -1; } }
O0
c
ma_feof: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x591cc movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x5921c movq -0x10(%rbp), %rax movl (%rax), %eax movl %eax, -0x14(%rbp) subl $0x1, %eax je 0x591e6 jmp 0x591dc movl -0x14(%rbp), %eax subl $0x2, %eax je 0x591f8 jmp 0x59215 movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi callq 0x36050 movl %eax, -0x4(%rbp) jmp 0x5921c leaq 0x391511(%rip), %rax # 0x3ea710 movq (%rax), %rax movq 0x58(%rax), %rax movq 0x10(%rax), %rax movq -0x10(%rbp), %rdi callq *%rax movl %eax, -0x4(%rbp) jmp 0x5921c movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_feof: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi cmp [rbp+var_10], 0 jnz short loc_591CC mov [rbp+var_4], 0FFFFFFFFh jmp short loc_5921C loc_591CC: mov rax, [rbp+var_10] mov eax, [rax] mov [rbp+var_14], eax sub eax, 1 jz short loc_591E6 jmp short $+2 loc_591DC: mov eax, [rbp+var_14] sub eax, 2 jz short loc_591F8 jmp short loc_59215 loc_591E6: mov rax, [rbp+var_10] mov rdi, [rax+8] call _feof mov [rbp+var_4], eax jmp short loc_5921C loc_591F8: lea rax, rio_plugin mov rax, [rax] mov rax, [rax+58h] mov rax, [rax+10h] mov rdi, [rbp+var_10] call rax mov [rbp+var_4], eax jmp short loc_5921C loc_59215: mov [rbp+var_4], 0FFFFFFFFh loc_5921C: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long ma_feof(long long a1) { if ( a1 ) { if ( *(_DWORD *)a1 == 1 ) { return (unsigned int)feof(*(_QWORD *)(a1 + 8)); } else if ( *(_DWORD *)a1 == 2 ) { return (unsigned int)(*(long long ( **)(long long))(*(_QWORD *)(rio_plugin + 88LL) + 16LL))(a1); } else { return (unsigned int)-1; } } else { return (unsigned int)-1; } }
ma_feof: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x0 JNZ 0x001591cc MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0015921c LAB_001591cc: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x14],EAX SUB EAX,0x1 JZ 0x001591e6 JMP 0x001591dc LAB_001591dc: MOV EAX,dword ptr [RBP + -0x14] SUB EAX,0x2 JZ 0x001591f8 JMP 0x00159215 LAB_001591e6: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00136050 MOV dword ptr [RBP + -0x4],EAX JMP 0x0015921c LAB_001591f8: LEA RAX,[0x4ea710] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x58] MOV RAX,qword ptr [RAX + 0x10] MOV RDI,qword ptr [RBP + -0x10] CALL RAX MOV dword ptr [RBP + -0x4],EAX JMP 0x0015921c LAB_00159215: MOV dword ptr [RBP + -0x4],0xffffffff LAB_0015921c: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int ma_feof(int *param_1) { int local_c; if (param_1 == (int *)0x0) { local_c = -1; } else if (*param_1 == 1) { local_c = feof(*(FILE **)(param_1 + 2)); } else if (*param_1 == 2) { local_c = (**(code **)(*(long *)(rio_plugin + 0x58) + 0x10))(param_1); } else { local_c = -1; } return local_c; }
29,672
_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>>>>> 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>>>>::find<char const (&) [11], 0>(char const (&) [11])
monkey531[P]llama/common/json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O2
cpp
_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>>>>> 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>>>>::find<char const (&) [11], 0>(char const (&) [11]): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %r14 movq 0x8(%r15), %rax cmpq %rax, %r14 je 0x9417b movq %r14, %rdi movq %rbx, %rsi callq 0x395d2 testb %al, %al jne 0x94178 addq $0x30, %r14 jmp 0x9415a movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: push r15 push r14 push rbx mov rbx, rsi mov r15, rdi mov r14, [rdi] loc_9415A: mov rax, [r15+8] cmp r14, rax jz short loc_9417B mov rdi, r14 mov rsi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_94178 add r14, 30h ; '0' jmp short loc_9415A loc_94178: mov rax, r14 loc_9417B: pop rbx pop r14 pop r15 retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long *a1) { long long i; // r14 long long result; // rax for ( i = *a1; ; i += 48LL ) { result = a1[1]; if ( i == result ) break; if ( std::operator==<char>(i) ) return i; } return result; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R15,RDI MOV R14,qword ptr [RDI] LAB_0019415a: MOV RAX,qword ptr [R15 + 0x8] CMP R14,RAX JZ 0x0019417b MOV RDI,R14 MOV RSI,RBX CALL 0x001395d2 TEST AL,AL JNZ 0x00194178 ADD R14,0x30 JMP 0x0019415a LAB_00194178: MOV RAX,R14 LAB_0019417b: POP RBX POP R14 POP R15 RET
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA12_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (int8 *param_1,char *param_2) { bool bVar1; string *psVar2; string *psVar3; psVar3 = (string *)*param_1; while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] && (bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) { psVar3 = psVar3 + 0x30; } return psVar2; }
29,673
google::protobuf::OneofDescriptorProto::Clear()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void OneofDescriptorProto::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); }
O0
cpp
google::protobuf::OneofDescriptorProto::Clear(): subq $0xb8, %rsp movq %rdi, 0x80(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x20(%rsp) movl $0x0, 0x7c(%rsp) addq $0x10, %rax movq %rax, 0xa0(%rsp) movl $0x0, 0x9c(%rsp) movq 0xa0(%rsp), %rax movslq 0x9c(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x7c(%rsp) movl 0x7c(%rsp), %eax andl $0x3, %eax cmpl $0x0, %eax je 0x2be511 movl 0x7c(%rsp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x2be440 movq 0x20(%rsp), %rdi addq $0x10, %rdi addq $0x8, %rdi callq 0x2de2a0 movl 0x7c(%rsp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x2be50f jmp 0x2be452 xorl %eax, %eax testb $0x1, %al jne 0x2be45d jmp 0x2be501 movq 0x20(%rsp), %rax movq 0x20(%rax), %rax movb $0x0, 0x3f(%rsp) cmpq $0x0, %rax je 0x2be473 jmp 0x2be4c3 leaq 0x130e1e(%rip), %rdx # 0x3ef298 leaq 0x40(%rsp), %rdi movq %rdi, 0x10(%rsp) movl $0x3, %esi movl $0x10b7, %ecx # imm = 0x10B7 callq 0x19a670 movq 0x10(%rsp), %rdi movb $0x1, 0x3f(%rsp) leaq 0x130e5e(%rip), %rsi # 0x3ef302 callq 0x199f30 movq %rax, 0x18(%rsp) jmp 0x2be4b0 movq 0x18(%rsp), %rsi leaq 0x2b(%rsp), %rdi callq 0x19a0e0 jmp 0x2be4c1 jmp 0x2be4c3 testb $0x1, 0x3f(%rsp) jne 0x2be4cc jmp 0x2be4d6 leaq 0x40(%rsp), %rdi callq 0x19a6b0 jmp 0x2be452 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) testb $0x1, 0x3f(%rsp) jne 0x2be4f2 jmp 0x2be4fc leaq 0x40(%rsp), %rdi callq 0x19a6b0 jmp 0x2be593 movq 0x20(%rsp), %rax movq 0x20(%rax), %rdi callq 0x2be5a0 jmp 0x2be511 movq 0x20(%rsp), %rax addq $0x10, %rax movq %rax, 0xa8(%rsp) movq 0xa8(%rsp), %rdi xorl %esi, %esi movl $0x4, %edx callq 0x8db70 movq 0x20(%rsp), %rax addq $0x8, %rax movq %rax, 0x88(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x8(%rsp) movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rax movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0x2be58b movq 0x8(%rsp), %rdi callq 0x155740 addq $0xb8, %rsp retq movq 0x30(%rsp), %rdi callq 0x90db0 nopl (%rax)
_ZN6google8protobuf20OneofDescriptorProto5ClearEv: sub rsp, 0B8h mov [rsp+0B8h+var_38], rdi mov rax, [rsp+0B8h+var_38] mov [rsp+0B8h+var_98], rax mov [rsp+0B8h+var_3C], 0 add rax, 10h mov [rsp+0B8h+var_18], rax mov [rsp+0B8h+var_1C], 0 mov rax, [rsp+0B8h+var_18] movsxd rcx, [rsp+0B8h+var_1C] mov eax, [rax+rcx*4] mov [rsp+0B8h+var_3C], eax mov eax, [rsp+0B8h+var_3C] and eax, 3 cmp eax, 0 jz loc_2BE511 mov eax, [rsp+0B8h+var_3C] and eax, 1 cmp eax, 0 jz short loc_2BE440 mov rdi, [rsp+0B8h+var_98] add rdi, 10h add rdi, 8; this call _ZN6google8protobuf8internal14ArenaStringPtr22ClearNonDefaultToEmptyEv; google::protobuf::internal::ArenaStringPtr::ClearNonDefaultToEmpty(void) loc_2BE440: mov eax, [rsp+0B8h+var_3C] and eax, 2 cmp eax, 0 jz loc_2BE50F jmp short $+2 loc_2BE452: xor eax, eax test al, 1 jnz short loc_2BE45D jmp loc_2BE501 loc_2BE45D: mov rax, [rsp+0B8h+var_98] mov rax, [rax+20h] mov [rsp+0B8h+var_79], 0 cmp rax, 0 jz short loc_2BE473 jmp short loc_2BE4C3 loc_2BE473: lea rdx, aWorkspaceLlm4b_56; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0B8h+var_78] mov [rsp+0B8h+var_A8], rdi mov esi, 3 mov ecx, 10B7h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+0B8h+var_A8] mov [rsp+0B8h+var_79], 1 lea rsi, aCheckFailedImp; "CHECK failed: _impl_.options_ != nullpt"... call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0B8h+var_A0], rax jmp short $+2 loc_2BE4B0: mov rsi, [rsp+0B8h+var_A0] lea rdi, [rsp+0B8h+var_8D] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_2BE4C1: jmp short $+2 loc_2BE4C3: test [rsp+0B8h+var_79], 1 jnz short loc_2BE4CC jmp short loc_2BE4D6 loc_2BE4CC: lea rdi, [rsp+0B8h+var_78]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2BE4D6: jmp loc_2BE452 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax test [rsp+arg_37], 1 jnz short loc_2BE4F2 jmp short loc_2BE4FC loc_2BE4F2: lea rdi, [rsp+arg_38]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2BE4FC: jmp loc_2BE593 loc_2BE501: mov rax, [rsp+0B8h+var_98] mov rdi, [rax+20h]; this call _ZN6google8protobuf12OneofOptions5ClearEv; google::protobuf::OneofOptions::Clear(void) loc_2BE50F: jmp short $+2 loc_2BE511: mov rax, [rsp+0B8h+var_98] add rax, 10h mov [rsp+0B8h+var_10], rax mov rdi, [rsp+0B8h+var_10] xor esi, esi mov edx, 4 call _memset mov rax, [rsp+0B8h+var_98] add rax, 8 mov [rsp+0B8h+var_30], rax mov rax, [rsp+0B8h+var_30] mov [rsp+0B8h+var_B0], rax mov [rsp+0B8h+var_28], rax mov rax, [rsp+0B8h+var_28] mov [rsp+0B8h+var_8], rax mov rax, [rsp+0B8h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_2BE58B mov rdi, [rsp+0B8h+var_B0]; void * call _ZN6google8protobuf8internal16InternalMetadata7DoClearINS0_15UnknownFieldSetEEEvv; google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>(void) loc_2BE58B: add rsp, 0B8h retn loc_2BE593: mov rdi, [rsp+arg_28] call __Unwind_Resume
long long google::protobuf::OneofDescriptorProto::Clear(google::protobuf::OneofDescriptorProto *this) { long long result; // rax int v2; // [rsp+7Ch] [rbp-3Ch] v2 = *((_DWORD *)this + 4); if ( (v2 & 3) != 0 ) { if ( (v2 & 1) != 0 ) google::protobuf::internal::ArenaStringPtr::ClearNonDefaultToEmpty((google::protobuf::OneofDescriptorProto *)((char *)this + 24)); if ( (v2 & 2) != 0 ) google::protobuf::OneofOptions::Clear(*((google::protobuf::OneofOptions **)this + 4)); } memset((char *)this + 16, 0LL, 4LL); result = *((_QWORD *)this + 1) & 1LL; if ( result ) return google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>((char *)this + 8); return result; }
29,674
google::protobuf::OneofDescriptorProto::Clear()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void OneofDescriptorProto::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); }
O3
cpp
google::protobuf::OneofDescriptorProto::Clear(): pushq %rbx movq %rdi, %rbx movl 0x10(%rdi), %eax testb $0x3, %al je 0xef352 testb $0x1, %al je 0xef345 movq 0x18(%rbx), %rcx andq $-0x4, %rcx movq $0x0, 0x8(%rcx) movq (%rcx), %rcx movb $0x0, (%rcx) testb $0x2, %al je 0xef352 movq 0x20(%rbx), %rdi callq 0xef36e movl $0x0, 0x10(%rbx) testb $0x1, 0x8(%rbx) jne 0xef361 popq %rbx retq addq $0x8, %rbx movq %rbx, %rdi popq %rbx jmp 0x73576
_ZN6google8protobuf20OneofDescriptorProto5ClearEv: push rbx mov rbx, rdi mov eax, [rdi+10h] test al, 3 jz short loc_EF352 test al, 1 jz short loc_EF345 mov rcx, [rbx+18h] and rcx, 0FFFFFFFFFFFFFFFCh mov qword ptr [rcx+8], 0 mov rcx, [rcx] mov byte ptr [rcx], 0 loc_EF345: test al, 2 jz short loc_EF352 mov rdi, [rbx+20h]; this call _ZN6google8protobuf12OneofOptions5ClearEv; google::protobuf::OneofOptions::Clear(void) loc_EF352: mov dword ptr [rbx+10h], 0 test byte ptr [rbx+8], 1 jnz short loc_EF361 pop rbx retn loc_EF361: add rbx, 8 mov rdi, rbx pop rbx jmp _ZN6google8protobuf8internal16InternalMetadata7DoClearINS0_15UnknownFieldSetEEEvv; google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>(void)
long long google::protobuf::OneofDescriptorProto::Clear(google::protobuf::OneofDescriptorProto *this) { long long result; // rax unsigned long long v2; // rcx result = *((unsigned int *)this + 4); if ( (result & 3) != 0 ) { if ( (result & 1) != 0 ) { v2 = *((_QWORD *)this + 3) & 0xFFFFFFFFFFFFFFFCLL; *(_QWORD *)(v2 + 8) = 0LL; **(_BYTE **)v2 = 0; } if ( (result & 2) != 0 ) result = google::protobuf::OneofOptions::Clear(*((google::protobuf::OneofOptions **)this + 4)); } *((_DWORD *)this + 4) = 0; if ( (*((_BYTE *)this + 8) & 1) != 0 ) return google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>((long long *)this + 1); return result; }
Clear: PUSH RBX MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x10] TEST AL,0x3 JZ 0x001ef352 TEST AL,0x1 JZ 0x001ef345 MOV RCX,qword ptr [RBX + 0x18] AND RCX,-0x4 MOV qword ptr [RCX + 0x8],0x0 MOV RCX,qword ptr [RCX] MOV byte ptr [RCX],0x0 LAB_001ef345: TEST AL,0x2 JZ 0x001ef352 MOV RDI,qword ptr [RBX + 0x20] CALL 0x001ef36e LAB_001ef352: MOV dword ptr [RBX + 0x10],0x0 TEST byte ptr [RBX + 0x8],0x1 JNZ 0x001ef361 POP RBX RET LAB_001ef361: ADD RBX,0x8 MOV RDI,RBX POP RBX JMP 0x00173576
/* google::protobuf::OneofDescriptorProto::Clear() */ void __thiscall google::protobuf::OneofDescriptorProto::Clear(OneofDescriptorProto *this) { uint uVar1; ulong uVar2; uVar1 = *(uint *)(this + 0x10); if ((uVar1 & 3) != 0) { if ((uVar1 & 1) != 0) { uVar2 = *(ulong *)(this + 0x18); ((int8 *)(uVar2 & 0xfffffffffffffffc))[1] = 0; **(int1 **)(uVar2 & 0xfffffffffffffffc) = 0; } if ((uVar1 & 2) != 0) { OneofOptions::Clear(*(OneofOptions **)(this + 0x20)); } } *(int4 *)(this + 0x10) = 0; if (((byte)this[8] & 1) == 0) { return; } internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8)); return; }
29,675
my_strnncoll_latin1_de
eloqsql/strings/ctype-latin1.c
static int my_strnncoll_latin1_de(CHARSET_INFO *cs __attribute__((unused)), const uchar *a, size_t a_length, const uchar *b, size_t b_length, my_bool b_is_prefix) { const uchar *a_end= a + a_length; const uchar *b_end= b + b_length; uchar a_char, a_extend= 0, b_char, b_extend= 0; while ((a < a_end || a_extend) && (b < b_end || b_extend)) { if (a_extend) { a_char=a_extend; a_extend=0; } else { a_extend=combo2map[*a]; a_char=combo1map[*a++]; } if (b_extend) { b_char=b_extend; b_extend=0; } else { b_extend=combo2map[*b]; b_char=combo1map[*b++]; } if (a_char != b_char) return (int) a_char - (int) b_char; } /* A simple test of string lengths won't work -- we test to see which string ran out first */ return ((a < a_end || a_extend) ? (b_is_prefix ? 0 : 1) : (b < b_end || b_extend) ? -1 : 0); }
O0
c
my_strnncoll_latin1_de: pushq %rbp movq %rsp, %rbp movb %r9b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movb %al, -0x31(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x48(%rbp) movb $0x0, -0x4a(%rbp) movb $0x0, -0x4c(%rbp) movq -0x18(%rbp), %rax cmpq -0x40(%rbp), %rax jb 0x54016 movzbl -0x4a(%rbp), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x4d(%rbp) je 0x54038 movq -0x28(%rbp), %rcx movb $0x1, %al cmpq -0x48(%rbp), %rcx movb %al, -0x4e(%rbp) jb 0x54032 movzbl -0x4c(%rbp), %eax cmpl $0x0, %eax setne %al movb %al, -0x4e(%rbp) movb -0x4e(%rbp), %al movb %al, -0x4d(%rbp) movb -0x4d(%rbp), %al testb $0x1, %al jne 0x54044 jmp 0x540f6 cmpb $0x0, -0x4a(%rbp) je 0x54056 movb -0x4a(%rbp), %al movb %al, -0x49(%rbp) movb $0x0, -0x4a(%rbp) jmp 0x5408d movq -0x18(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x10350a(%rip), %rax # 0x157570 movb (%rax,%rcx), %al movb %al, -0x4a(%rbp) movq -0x18(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x18(%rbp) movzbl (%rax), %eax movl %eax, %ecx leaq 0x1033e9(%rip), %rax # 0x157470 movb (%rax,%rcx), %al movb %al, -0x49(%rbp) cmpb $0x0, -0x4c(%rbp) je 0x5409f movb -0x4c(%rbp), %al movb %al, -0x4b(%rbp) movb $0x0, -0x4c(%rbp) jmp 0x540d6 movq -0x28(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x1034c1(%rip), %rax # 0x157570 movb (%rax,%rcx), %al movb %al, -0x4c(%rbp) movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) movzbl (%rax), %eax movl %eax, %ecx leaq 0x1033a0(%rip), %rax # 0x157470 movb (%rax,%rcx), %al movb %al, -0x4b(%rbp) movzbl -0x49(%rbp), %eax movzbl -0x4b(%rbp), %ecx cmpl %ecx, %eax je 0x540f1 movzbl -0x49(%rbp), %eax movzbl -0x4b(%rbp), %ecx subl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0x54154 jmp 0x53ffe movq -0x18(%rbp), %rax cmpq -0x40(%rbp), %rax jb 0x54109 movzbl -0x4a(%rbp), %eax cmpl $0x0, %eax je 0x5411f movsbl -0x31(%rbp), %edx movl $0x1, %eax xorl %ecx, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movl %eax, -0x54(%rbp) jmp 0x5414e movq -0x28(%rbp), %rcx movb $0x1, %al cmpq -0x48(%rbp), %rcx movb %al, -0x55(%rbp) jb 0x5413b movzbl -0x4c(%rbp), %eax cmpl $0x0, %eax setne %al movb %al, -0x55(%rbp) movb -0x55(%rbp), %dl xorl %eax, %eax movl $0xffffffff, %ecx # imm = 0xFFFFFFFF testb $0x1, %dl cmovnel %ecx, %eax movl %eax, -0x54(%rbp) movl -0x54(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
my_strnncoll_latin1_de: push rbp mov rbp, rsp mov al, r9b mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_31], al mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_40], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_48], rax mov [rbp+var_4A], 0 mov [rbp+var_4C], 0 loc_53FFE: mov rax, [rbp+var_18] cmp rax, [rbp+var_40] jb short loc_54016 movzx ecx, [rbp+var_4A] xor eax, eax cmp ecx, 0 mov [rbp+var_4D], al jz short loc_54038 loc_54016: mov rcx, [rbp+var_28] mov al, 1 cmp rcx, [rbp+var_48] mov [rbp+var_4E], al jb short loc_54032 movzx eax, [rbp+var_4C] cmp eax, 0 setnz al mov [rbp+var_4E], al loc_54032: mov al, [rbp+var_4E] mov [rbp+var_4D], al loc_54038: mov al, [rbp+var_4D] test al, 1 jnz short loc_54044 jmp loc_540F6 loc_54044: cmp [rbp+var_4A], 0 jz short loc_54056 mov al, [rbp+var_4A] mov [rbp+var_49], al mov [rbp+var_4A], 0 jmp short loc_5408D loc_54056: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov ecx, eax lea rax, combo2map mov al, [rax+rcx] mov [rbp+var_4A], al mov rax, [rbp+var_18] mov rcx, rax add rcx, 1 mov [rbp+var_18], rcx movzx eax, byte ptr [rax] mov ecx, eax lea rax, combo1map mov al, [rax+rcx] mov [rbp+var_49], al loc_5408D: cmp [rbp+var_4C], 0 jz short loc_5409F mov al, [rbp+var_4C] mov [rbp+var_4B], al mov [rbp+var_4C], 0 jmp short loc_540D6 loc_5409F: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] mov ecx, eax lea rax, combo2map mov al, [rax+rcx] mov [rbp+var_4C], al mov rax, [rbp+var_28] mov rcx, rax add rcx, 1 mov [rbp+var_28], rcx movzx eax, byte ptr [rax] mov ecx, eax lea rax, combo1map mov al, [rax+rcx] mov [rbp+var_4B], al loc_540D6: movzx eax, [rbp+var_49] movzx ecx, [rbp+var_4B] cmp eax, ecx jz short loc_540F1 movzx eax, [rbp+var_49] movzx ecx, [rbp+var_4B] sub eax, ecx mov [rbp+var_4], eax jmp short loc_54154 loc_540F1: jmp loc_53FFE loc_540F6: mov rax, [rbp+var_18] cmp rax, [rbp+var_40] jb short loc_54109 movzx eax, [rbp+var_4A] cmp eax, 0 jz short loc_5411F loc_54109: movsx edx, [rbp+var_31] mov eax, 1 xor ecx, ecx cmp edx, 0 cmovnz eax, ecx mov [rbp+var_54], eax jmp short loc_5414E loc_5411F: mov rcx, [rbp+var_28] mov al, 1 cmp rcx, [rbp+var_48] mov [rbp+var_55], al jb short loc_5413B movzx eax, [rbp+var_4C] cmp eax, 0 setnz al mov [rbp+var_55], al loc_5413B: mov dl, [rbp+var_55] xor eax, eax mov ecx, 0FFFFFFFFh test dl, 1 cmovnz eax, ecx mov [rbp+var_54], eax loc_5414E: mov eax, [rbp+var_54] mov [rbp+var_4], eax loc_54154: mov eax, [rbp+var_4] pop rbp retn
long long my_strnncoll_latin1_de( long long a1, unsigned __int8 *a2, long long a3, unsigned __int8 *a4, long long a5, char a6) { unsigned __int8 *v6; // rax unsigned __int8 *v7; // rax unsigned int v8; // eax bool v10; // [rsp+1h] [rbp-55h] bool v12; // [rsp+8h] [rbp-4Eh] bool v13; // [rsp+9h] [rbp-4Dh] unsigned __int8 v14; // [rsp+Ah] [rbp-4Ch] unsigned __int8 v15; // [rsp+Bh] [rbp-4Bh] unsigned __int8 v16; // [rsp+Ch] [rbp-4Ah] unsigned __int8 v17; // [rsp+Dh] [rbp-49h] unsigned long long v18; // [rsp+Eh] [rbp-48h] unsigned long long v19; // [rsp+16h] [rbp-40h] unsigned __int8 *v20; // [rsp+2Eh] [rbp-28h] unsigned __int8 *v21; // [rsp+3Eh] [rbp-18h] v21 = a2; v20 = a4; v19 = (unsigned long long)&a2[a3]; v18 = (unsigned long long)&a4[a5]; v16 = 0; v14 = 0; while ( 1 ) { if ( (unsigned long long)v21 < v19 || (v13 = 0, v16) ) { v12 = 1; if ( (unsigned long long)v20 >= v18 ) v12 = v14 != 0; v13 = v12; } if ( !v13 ) break; if ( v16 ) { v17 = v16; v16 = 0; } else { v16 = combo2map[*v21]; v6 = v21++; v17 = combo1map[*v6]; } if ( v14 ) { v15 = v14; v14 = 0; } else { v14 = combo2map[*v20]; v7 = v20++; v15 = combo1map[*v7]; } if ( v17 != v15 ) return (unsigned int)(v17 - v15); } if ( (unsigned long long)v21 < v19 || v16 ) { return a6 == 0; } else { v10 = 1; if ( (unsigned long long)v20 >= v18 ) v10 = v14 != 0; v8 = 0; if ( v10 ) v8 = -1; return v8; } }
my_strnncoll_latin1_de: PUSH RBP MOV RBP,RSP MOV AL,R9B MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV byte ptr [RBP + -0x31],AL MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x48],RAX MOV byte ptr [RBP + -0x4a],0x0 MOV byte ptr [RBP + -0x4c],0x0 LAB_00153ffe: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x40] JC 0x00154016 MOVZX ECX,byte ptr [RBP + -0x4a] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x4d],AL JZ 0x00154038 LAB_00154016: MOV RCX,qword ptr [RBP + -0x28] MOV AL,0x1 CMP RCX,qword ptr [RBP + -0x48] MOV byte ptr [RBP + -0x4e],AL JC 0x00154032 MOVZX EAX,byte ptr [RBP + -0x4c] CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x4e],AL LAB_00154032: MOV AL,byte ptr [RBP + -0x4e] MOV byte ptr [RBP + -0x4d],AL LAB_00154038: MOV AL,byte ptr [RBP + -0x4d] TEST AL,0x1 JNZ 0x00154044 JMP 0x001540f6 LAB_00154044: CMP byte ptr [RBP + -0x4a],0x0 JZ 0x00154056 MOV AL,byte ptr [RBP + -0x4a] MOV byte ptr [RBP + -0x49],AL MOV byte ptr [RBP + -0x4a],0x0 JMP 0x0015408d LAB_00154056: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x257570] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x4a],AL MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x18],RCX MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x257470] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x49],AL LAB_0015408d: CMP byte ptr [RBP + -0x4c],0x0 JZ 0x0015409f MOV AL,byte ptr [RBP + -0x4c] MOV byte ptr [RBP + -0x4b],AL MOV byte ptr [RBP + -0x4c],0x0 JMP 0x001540d6 LAB_0015409f: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x257570] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x4c],AL MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x257470] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x4b],AL LAB_001540d6: MOVZX EAX,byte ptr [RBP + -0x49] MOVZX ECX,byte ptr [RBP + -0x4b] CMP EAX,ECX JZ 0x001540f1 MOVZX EAX,byte ptr [RBP + -0x49] MOVZX ECX,byte ptr [RBP + -0x4b] SUB EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x00154154 LAB_001540f1: JMP 0x00153ffe LAB_001540f6: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x40] JC 0x00154109 MOVZX EAX,byte ptr [RBP + -0x4a] CMP EAX,0x0 JZ 0x0015411f LAB_00154109: MOVSX EDX,byte ptr [RBP + -0x31] MOV EAX,0x1 XOR ECX,ECX CMP EDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x54],EAX JMP 0x0015414e LAB_0015411f: MOV RCX,qword ptr [RBP + -0x28] MOV AL,0x1 CMP RCX,qword ptr [RBP + -0x48] MOV byte ptr [RBP + -0x55],AL JC 0x0015413b MOVZX EAX,byte ptr [RBP + -0x4c] CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x55],AL LAB_0015413b: MOV DL,byte ptr [RBP + -0x55] XOR EAX,EAX MOV ECX,0xffffffff TEST DL,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x54],EAX LAB_0015414e: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x4],EAX LAB_00154154: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint my_strnncoll_latin1_de (int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5, char param_6) { uint local_5c; bool local_56; byte local_54; byte local_53; byte local_52; byte local_51; byte *local_30; byte *local_20; local_52 = 0; local_54 = 0; local_30 = param_4; local_20 = param_2; do { if ((local_20 < param_2 + param_3) || (local_56 = false, local_52 != 0)) { local_56 = local_30 < param_4 + param_5 || local_54 != 0; } if (!local_56) { if ((local_20 < param_2 + param_3) || (local_52 != 0)) { local_5c = (uint)(param_6 == '\0'); } else { local_5c = 0; if (local_30 < param_4 + param_5 || local_54 != 0) { local_5c = 0xffffffff; } } return local_5c; } if (local_52 == 0) { local_52 = combo2map[*local_20]; local_51 = combo1map[*local_20]; local_20 = local_20 + 1; } else { local_51 = local_52; local_52 = 0; } if (local_54 == 0) { local_54 = combo2map[*local_30]; local_53 = combo1map[*local_30]; local_30 = local_30 + 1; } else { local_53 = local_54; local_54 = 0; } } while (local_51 == local_53); return (uint)local_51 - (uint)local_53; }
29,676
JS_SetPropertyFunctionList
bluesky950520[P]quickjs/quickjs.c
void JS_SetPropertyFunctionList(JSContext *ctx, JSValue obj, const JSCFunctionListEntry *tab, int len) { int i; for (i = 0; i < len; i++) { const JSCFunctionListEntry *e = &tab[i]; JSAtom atom = find_atom(ctx, e->name); JS_InstantiateFunctionListItem(ctx, obj, atom, e); JS_FreeAtom(ctx, atom); } }
O1
c
JS_SetPropertyFunctionList: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, 0x28(%rsp) movq %rsi, 0x20(%rsp) testl %r8d, %r8d jle 0x32377 movq %rcx, %rbx movq %rdi, %r12 leaq 0x48(%rdi), %rax movq %rax, 0x38(%rsp) movl %r8d, %r14d movq (%rbx), %rsi movq %r12, %rdi callq 0x3238e movl %eax, %r13d movzbl 0x9(%rbx), %eax cmpq $0x9, %rax ja 0x32389 movzbl 0x8(%rbx), %edx leaq 0x690ac(%rip), %rcx # 0x9b15c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax cmpq $0x0, 0x10(%rbx) movl %edx, 0x1c(%rsp) je 0x321f4 movq (%rbx), %rcx movl $0x40, %esi leaq 0x50(%rsp), %r15 movq %r15, %rdi leaq 0x6c294(%rip), %rdx # 0x9e373 xorl %eax, %eax callq 0xe2d0 xorl %eax, %eax cmpb $0x2, 0x9(%rbx) movq 0x10(%rbx), %rsi sete %al leal 0x8(,%rax,2), %r8d movswl 0xa(%rbx), %r9d movq 0x38(%rsp), %rax movups (%rax), %xmm0 movups %xmm0, (%rsp) movq %r12, %rdi movq %r15, %rdx xorl %ecx, %ecx callq 0x203f2 movq %rax, %r15 movq %rdx, %rbp movl 0x1c(%rsp), %edx jmp 0x321fc cmpl $0xd3, %r13d je 0x322a4 cmpl $0xdc, %r13d jne 0x322a9 xorl %edx, %edx jmp 0x322a9 movl %edx, 0x1c(%rsp) movq 0x10(%rbx), %rsi movq %r12, %rdi callq 0x3238e movl 0x18(%rbx), %ecx cmpl $0x1, %ecx movl %eax, 0x34(%rsp) je 0x322e1 testl %ecx, %ecx je 0x322cf cmpl $-0x1, %ecx jne 0x32389 movl $0x0, 0x8(%rsp) movq $0x0, (%rsp) movq %r12, %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx jmp 0x32301 movq 0x10(%rbx), %rbp movl $0x7, %r15d jmp 0x32341 movl 0x10(%rbx), %ebp xorl %r15d, %r15d jmp 0x32341 movq 0x10(%rbx), %rax movslq %eax, %rcx cmpq %rax, %rcx xorps %xmm0, %xmm0 cvtsi2sd %rax, %xmm0 movl %ecx, %eax movq %xmm0, %rbp cmoveq %rax, %rbp movl $0x7, %r15d movl $0x0, %eax cmoveq %rax, %r15 jmp 0x32341 movl $0x3, %r15d xorl %ebp, %ebp jmp 0x32341 movl $0x3, %ebp xorl %r15d, %r15d movl $0x0, 0x40(%rsp) movq $0x3, 0x48(%rsp) cmpq $0x0, 0x18(%rbx) je 0x32275 movq (%rbx), %rcx movl $0x40, %esi leaq 0x50(%rsp), %rdi leaq 0x6c152(%rip), %rdx # 0x9e37a xorl %eax, %eax callq 0xe2d0 xorl %eax, %eax cmpb $0x2, 0x9(%rbx) movq 0x18(%rbx), %rsi sete %al leal 0x9(,%rax,2), %r8d movswl 0xa(%rbx), %r9d movq 0x38(%rsp), %rax movups (%rax), %xmm0 movups %xmm0, (%rsp) movq %r12, %rdi leaq 0x50(%rsp), %rdx movl $0x1, %ecx callq 0x203f2 movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movl 0x1c(%rsp), %edx movupd 0x40(%rsp), %xmm0 movupd %xmm0, (%rsp) movl %edx, 0x10(%rsp) movq %r12, %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movl %r13d, %ecx movq %r15, %r8 movq %rbp, %r9 callq 0x260b5 jmp 0x3235f movl $0x1, %edx movl %edx, (%rsp) movq %r12, %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movl %r13d, %ecx movl $0x2, %r8d movq %rbx, %r9 callq 0x40903 jmp 0x3235f movq 0x1a0(%r12), %rsi movq 0x1a8(%r12), %rdx jmp 0x322ee movq 0x40(%r12), %rcx movq 0x20(%rcx), %rsi movq 0x28(%rcx), %rdx movl $0x0, 0x8(%rsp) movq $0x0, (%rsp) movq %r12, %rdi movl %eax, %ecx movq %rsi, %r8 movq %rdx, %r9 callq 0x2238f movq %rax, %rbp movq %rdx, %r15 movq %r12, %rdi movl 0x34(%rsp), %esi callq 0x1fbc4 cmpl $0xd3, %r13d je 0x32336 cmpl $0xdc, %r13d jne 0x3233d xorl %edx, %edx jmp 0x32341 movl $0x1, %edx jmp 0x32341 movl 0x1c(%rsp), %edx movl %edx, (%rsp) movq %r12, %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movl %r13d, %ecx movq %rbp, %r8 movq %r15, %r9 callq 0x25ea7 movq %r12, %rdi movl %r13d, %esi callq 0x1fbc4 addq $0x20, %rbx decq %r14 jne 0x32089 addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xe090
JS_SetPropertyFunctionList: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov [rsp+0C8h+var_A0], rdx mov [rsp+0C8h+var_A8], rsi test r8d, r8d jle loc_32377 mov rbx, rcx mov r12, rdi lea rax, [rdi+48h] mov [rsp+0C8h+var_90], rax mov r14d, r8d loc_32089: mov rsi, [rbx] mov rdi, r12 call find_atom mov r13d, eax movzx eax, byte ptr [rbx+9] cmp rax, 9; switch 10 cases ja def_320B7; jumptable 00000000000320B7 default case movzx edx, byte ptr [rbx+8] lea rcx, jpt_320B7 movsxd rax, ds:(jpt_320B7 - 9B15Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_320B9: cmp qword ptr [rbx+10h], 0; jumptable 00000000000320B7 cases 1,2 mov [rsp+0C8h+var_AC], edx jz loc_321F4 mov rcx, [rbx] mov esi, 40h ; '@' lea r15, [rsp+0C8h+var_78] mov rdi, r15 lea rdx, aGetS; "get %s" xor eax, eax call _snprintf xor eax, eax cmp byte ptr [rbx+9], 2 mov rsi, [rbx+10h] setz al lea r8d, ds:8[rax*2] movsx r9d, word ptr [rbx+0Ah] mov rax, [rsp+0C8h+var_90] movups xmm0, xmmword ptr [rax] movups [rsp+0C8h+var_C8], xmm0 mov rdi, r12 mov rdx, r15 xor ecx, ecx call JS_NewCFunction3 mov r15, rax mov rbp, rdx mov edx, [rsp+0C8h+var_AC] jmp loc_321FC loc_32128: cmp r13d, 0D3h; jumptable 00000000000320B7 case 0 jz loc_322A4 cmp r13d, 0DCh jnz loc_322A9; jumptable 00000000000320B7 cases 3,8 xor edx, edx jmp loc_322A9; jumptable 00000000000320B7 cases 3,8 loc_32149: mov [rsp+0C8h+var_AC], edx; jumptable 00000000000320B7 case 9 mov rsi, [rbx+10h] mov rdi, r12 call find_atom mov ecx, [rbx+18h] cmp ecx, 1 mov [rsp+0C8h+var_94], eax jz loc_322E1 test ecx, ecx jz loc_322CF cmp ecx, 0FFFFFFFFh jnz def_320B7; jumptable 00000000000320B7 default case mov dword ptr [rsp+0C8h+var_C8+8], 0 mov qword ptr [rsp+0C8h+var_C8], 0 mov rdi, r12 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] jmp loc_32301 loc_3219C: mov rbp, [rbx+10h]; jumptable 00000000000320B7 case 6 mov r15d, 7 jmp loc_32341 loc_321AB: mov ebp, [rbx+10h]; jumptable 00000000000320B7 case 4 xor r15d, r15d jmp loc_32341 loc_321B6: mov rax, [rbx+10h]; jumptable 00000000000320B7 case 5 movsxd rcx, eax cmp rcx, rax xorps xmm0, xmm0 cvtsi2sd xmm0, rax mov eax, ecx movq rbp, xmm0 cmovz rbp, rax mov r15d, 7 mov eax, 0 cmovz r15, rax jmp loc_32341 loc_321E7: mov r15d, 3; jumptable 00000000000320B7 case 7 xor ebp, ebp jmp loc_32341 loc_321F4: mov ebp, 3 xor r15d, r15d loc_321FC: mov dword ptr [rsp+0C8h+var_88], 0 mov qword ptr [rsp+0C8h+var_88+8], 3 cmp qword ptr [rbx+18h], 0 jz short loc_32275 mov rcx, [rbx] mov esi, 40h ; '@' lea rdi, [rsp+0C8h+var_78] lea rdx, aSetS; "set %s" xor eax, eax call _snprintf xor eax, eax cmp byte ptr [rbx+9], 2 mov rsi, [rbx+18h] setz al lea r8d, ds:9[rax*2] movsx r9d, word ptr [rbx+0Ah] mov rax, [rsp+0C8h+var_90] movups xmm0, xmmword ptr [rax] movups [rsp+0C8h+var_C8], xmm0 mov rdi, r12 lea rdx, [rsp+0C8h+var_78] mov ecx, 1 call JS_NewCFunction3 mov qword ptr [rsp+0C8h+var_88], rax mov qword ptr [rsp+0C8h+var_88+8], rdx mov edx, [rsp+0C8h+var_AC] loc_32275: movupd xmm0, [rsp+0C8h+var_88] movupd [rsp+0C8h+var_C8], xmm0 mov [rsp+0C8h+var_B8], edx mov rdi, r12 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] mov ecx, r13d mov r8, r15 mov r9, rbp call JS_DefinePropertyGetSet jmp loc_3235F loc_322A4: mov edx, 1 loc_322A9: mov dword ptr [rsp+0C8h+var_C8], edx; jumptable 00000000000320B7 cases 3,8 mov rdi, r12 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] mov ecx, r13d mov r8d, 2 mov r9, rbx call JS_DefineAutoInitProperty jmp loc_3235F loc_322CF: mov rsi, [r12+1A0h] mov rdx, [r12+1A8h] jmp short loc_322EE loc_322E1: mov rcx, [r12+40h] mov rsi, [rcx+20h] mov rdx, [rcx+28h] loc_322EE: mov dword ptr [rsp+0C8h+var_C8+8], 0 mov qword ptr [rsp+0C8h+var_C8], 0 mov rdi, r12 loc_32301: mov ecx, eax mov r8, rsi mov r9, rdx call JS_GetPropertyInternal2 mov rbp, rax mov r15, rdx mov rdi, r12 mov esi, [rsp+0C8h+var_94] call JS_FreeAtom cmp r13d, 0D3h jz short loc_32336 cmp r13d, 0DCh jnz short loc_3233D xor edx, edx jmp short loc_32341 loc_32336: mov edx, 1 jmp short loc_32341 loc_3233D: mov edx, [rsp+0C8h+var_AC] loc_32341: mov dword ptr [rsp+0C8h+var_C8], edx mov rdi, r12 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] mov ecx, r13d mov r8, rbp mov r9, r15 call JS_DefinePropertyValue loc_3235F: mov rdi, r12 mov esi, r13d call JS_FreeAtom add rbx, 20h ; ' ' dec r14 jnz loc_32089 loc_32377: add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn def_320B7: call _abort; jumptable 00000000000320B7 default case
void JS_SetPropertyFunctionList( long long a1, unsigned long long a2, long long a3, const char **a4, int a5, double a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { long long v15; // r14 const char *v16; // rsi const char *v17; // rdi unsigned int atom; // r13d __m128 v19; // xmm4 __m128 v20; // xmm5 __int128 v21; // rax _DWORD *v22; // r15 long long v23; // rbp int v24; // ecx unsigned long long PropertyInternal2; // rax long long v26; // rdx double v27; // rbp long long v28; // r15 const char *v29; // rax long long v30; // rsi long long v31; // rcx int v32; // [rsp+1Ch] [rbp-ACh] int v33; // [rsp+1Ch] [rbp-ACh] int v36; // [rsp+34h] [rbp-94h] long long *v37; // [rsp+38h] [rbp-90h] __int128 v38; // [rsp+40h] [rbp-88h] unsigned __int8 v39[120]; // [rsp+50h] [rbp-78h] BYREF if ( a5 > 0 ) { v37 = (long long *)(a1 + 72); v15 = (unsigned int)a5; while ( 1 ) { v16 = *a4; v17 = (const char *)a1; atom = find_atom(a1, *a4); *((_QWORD *)&v21 + 1) = *((unsigned __int8 *)a4 + 8); switch ( *((_BYTE *)a4 + 9) ) { case 0: if ( atom == 211 ) { DWORD2(v21) = 1; } else if ( atom == 220 ) { DWORD2(v21) = 0; } goto LABEL_26; case 1: case 2: v32 = *((unsigned __int8 *)a4 + 8); if ( a4[2] ) { snprintf(v39, 64LL, "get %s", *a4); v22 = (_DWORD *)JS_NewCFunction3( (_DWORD *)a1, (long long)a4[2], v39, 0, 2 * (unsigned int)(*((_BYTE *)a4 + 9) == 2) + 8, *((_WORD *)a4 + 5), *v37, v37[1]); v23 = *((_QWORD *)&v21 + 1); DWORD2(v21) = v32; } else { v23 = 3LL; v22 = 0LL; } LODWORD(v38) = 0; *((_QWORD *)&v38 + 1) = 3LL; if ( a4[3] ) { snprintf(v39, 64LL, "set %s", *a4); *(_QWORD *)&v21 = JS_NewCFunction3( (_DWORD *)a1, (long long)a4[3], v39, 1u, 2 * (unsigned int)(*((_BYTE *)a4 + 9) == 2) + 9, *((_WORD *)a4 + 5), *v37, v37[1]); v38 = v21; DWORD2(v21) = v32; } a6 = *(double *)&v38; JS_DefinePropertyGetSet( a1, a2, a3, atom, v22, v23, *(double *)&v38, a7, a8, a9, v19, v20, a12, a13, v38, SDWORD2(v21)); goto LABEL_36; case 3: case 8: LABEL_26: JS_DefineAutoInitProperty(a1, a2, a3, atom, 2, (_DWORD)a4, DWORD2(v21)); goto LABEL_36; case 4: *(_QWORD *)&v27 = *((unsigned int *)a4 + 4); v28 = 0LL; goto LABEL_35; case 5: v29 = a4[2]; a6 = (double)(int)v29; v27 = (double)(int)v29; if ( (const char *)(int)v29 == v29 ) *(_QWORD *)&v27 = (unsigned int)v29; v28 = 7LL; if ( (const char *)(int)v29 == v29 ) v28 = 0LL; goto LABEL_35; case 6: v27 = *((double *)a4 + 2); v28 = 7LL; goto LABEL_35; case 7: v28 = 3LL; v27 = 0.0; goto LABEL_35; case 9: v33 = *((unsigned __int8 *)a4 + 8); v16 = a4[2]; v17 = (const char *)a1; LODWORD(v21) = find_atom(a1, v16); v24 = *((_DWORD *)a4 + 6); v36 = v21; if ( v24 == 1 ) { v31 = *(_QWORD *)(a1 + 64); v30 = *(_QWORD *)(v31 + 32); *((_QWORD *)&v21 + 1) = *(_QWORD *)(v31 + 40); goto LABEL_29; } if ( !v24 ) { v30 = *(_QWORD *)(a1 + 416); *((_QWORD *)&v21 + 1) = *(_QWORD *)(a1 + 424); LABEL_29: PropertyInternal2 = JS_GetPropertyInternal2( a1, v30, *((long long *)&v21 + 1), v21, v30, *((long long *)&v21 + 1), 0LL, 0); goto LABEL_30; } if ( v24 != -1 ) LABEL_38: abort(v17, v16, *((_QWORD *)&v21 + 1)); PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, v21, a2, a3, 0LL, 0); LABEL_30: v27 = *(double *)&PropertyInternal2; v28 = v26; JS_FreeAtom(a1, v36); if ( atom == 211 ) { DWORD2(v21) = 1; } else if ( atom == 220 ) { DWORD2(v21) = 0; } else { DWORD2(v21) = v33; } LABEL_35: JS_DefinePropertyValue( a1, a2, a3, atom, *(_DWORD **)&v27, v28, a6, a7, a8, a9, v19, v20, a12, a13, SDWORD2(v21)); LABEL_36: JS_FreeAtom(a1, atom); a4 += 4; if ( !--v15 ) return; break; default: goto LABEL_38; } } } }
JS_SetPropertyFunctionList: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV qword ptr [RSP + 0x28],RDX MOV qword ptr [RSP + 0x20],RSI TEST R8D,R8D JLE 0x00132377 MOV RBX,RCX MOV R12,RDI LEA RAX,[RDI + 0x48] MOV qword ptr [RSP + 0x38],RAX MOV R14D,R8D LAB_00132089: MOV RSI,qword ptr [RBX] MOV RDI,R12 CALL 0x0013238e MOV R13D,EAX MOVZX EAX,byte ptr [RBX + 0x9] CMP RAX,0x9 JA 0x00132389 MOVZX EDX,byte ptr [RBX + 0x8] LEA RCX,[0x19b15c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: CMP qword ptr [RBX + 0x10],0x0 MOV dword ptr [RSP + 0x1c],EDX JZ 0x001321f4 MOV RCX,qword ptr [RBX] MOV ESI,0x40 LEA R15,[RSP + 0x50] MOV RDI,R15 LEA RDX,[0x19e373] XOR EAX,EAX CALL 0x0010e2d0 XOR EAX,EAX CMP byte ptr [RBX + 0x9],0x2 MOV RSI,qword ptr [RBX + 0x10] SETZ AL LEA R8D,[0x8 + RAX*0x2] MOVSX R9D,word ptr [RBX + 0xa] MOV RAX,qword ptr [RSP + 0x38] MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R12 MOV RDX,R15 XOR ECX,ECX CALL 0x001203f2 MOV R15,RAX MOV RBP,RDX MOV EDX,dword ptr [RSP + 0x1c] JMP 0x001321fc caseD_0: CMP R13D,0xd3 JZ 0x001322a4 CMP R13D,0xdc JNZ 0x001322a9 XOR EDX,EDX JMP 0x001322a9 caseD_9: MOV dword ptr [RSP + 0x1c],EDX MOV RSI,qword ptr [RBX + 0x10] MOV RDI,R12 CALL 0x0013238e MOV ECX,dword ptr [RBX + 0x18] CMP ECX,0x1 MOV dword ptr [RSP + 0x34],EAX JZ 0x001322e1 TEST ECX,ECX JZ 0x001322cf CMP ECX,-0x1 JNZ 0x00132389 MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP],0x0 MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] JMP 0x00132301 caseD_6: MOV RBP,qword ptr [RBX + 0x10] MOV R15D,0x7 JMP 0x00132341 caseD_4: MOV EBP,dword ptr [RBX + 0x10] XOR R15D,R15D JMP 0x00132341 caseD_5: MOV RAX,qword ptr [RBX + 0x10] MOVSXD RCX,EAX CMP RCX,RAX XORPS XMM0,XMM0 CVTSI2SD XMM0,RAX MOV EAX,ECX MOVQ RBP,XMM0 CMOVZ RBP,RAX MOV R15D,0x7 MOV EAX,0x0 CMOVZ R15,RAX JMP 0x00132341 caseD_7: MOV R15D,0x3 XOR EBP,EBP JMP 0x00132341 LAB_001321f4: MOV EBP,0x3 XOR R15D,R15D LAB_001321fc: MOV dword ptr [RSP + 0x40],0x0 MOV qword ptr [RSP + 0x48],0x3 CMP qword ptr [RBX + 0x18],0x0 JZ 0x00132275 MOV RCX,qword ptr [RBX] MOV ESI,0x40 LEA RDI,[RSP + 0x50] LEA RDX,[0x19e37a] XOR EAX,EAX CALL 0x0010e2d0 XOR EAX,EAX CMP byte ptr [RBX + 0x9],0x2 MOV RSI,qword ptr [RBX + 0x18] SETZ AL LEA R8D,[0x9 + RAX*0x2] MOVSX R9D,word ptr [RBX + 0xa] MOV RAX,qword ptr [RSP + 0x38] MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R12 LEA RDX,[RSP + 0x50] MOV ECX,0x1 CALL 0x001203f2 MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV EDX,dword ptr [RSP + 0x1c] LAB_00132275: MOVUPD XMM0,xmmword ptr [RSP + 0x40] MOVUPD xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x10],EDX MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV ECX,R13D MOV R8,R15 MOV R9,RBP CALL 0x001260b5 JMP 0x0013235f LAB_001322a4: MOV EDX,0x1 caseD_3: MOV dword ptr [RSP],EDX MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV ECX,R13D MOV R8D,0x2 MOV R9,RBX CALL 0x00140903 JMP 0x0013235f LAB_001322cf: MOV RSI,qword ptr [R12 + 0x1a0] MOV RDX,qword ptr [R12 + 0x1a8] JMP 0x001322ee LAB_001322e1: MOV RCX,qword ptr [R12 + 0x40] MOV RSI,qword ptr [RCX + 0x20] MOV RDX,qword ptr [RCX + 0x28] LAB_001322ee: MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP],0x0 MOV RDI,R12 LAB_00132301: MOV ECX,EAX MOV R8,RSI MOV R9,RDX CALL 0x0012238f MOV RBP,RAX MOV R15,RDX MOV RDI,R12 MOV ESI,dword ptr [RSP + 0x34] CALL 0x0011fbc4 CMP R13D,0xd3 JZ 0x00132336 CMP R13D,0xdc JNZ 0x0013233d XOR EDX,EDX JMP 0x00132341 LAB_00132336: MOV EDX,0x1 JMP 0x00132341 LAB_0013233d: MOV EDX,dword ptr [RSP + 0x1c] LAB_00132341: MOV dword ptr [RSP],EDX MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV ECX,R13D MOV R8,RBP MOV R9,R15 CALL 0x00125ea7 LAB_0013235f: MOV RDI,R12 MOV ESI,R13D CALL 0x0011fbc4 ADD RBX,0x20 DEC R14 JNZ 0x00132089 LAB_00132377: ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00132389: CALL 0x0010e090
void JS_SetPropertyFunctionList (long param_1,int8 param_2,int8 param_3,int8 *param_4,uint param_5) { byte bVar1; int iVar2; ulong uVar3; int iVar4; int4 uVar5; uint uVar6; int8 uVar8; double dVar9; int8 uVar10; ulong uVar11; bool bVar12; int1 auVar13 [12]; int1 auVar14 [16]; ulong in_stack_ffffffffffffff38; int4 uVar15; ulong local_88; char local_78 [72]; uint uVar7; if (0 < (int)param_5) { uVar11 = (ulong)param_5; do { uVar15 = (int4)(in_stack_ffffffffffffff38 >> 0x20); iVar4 = find_atom(param_1,*param_4); if (9 < *(byte *)((long)param_4 + 9)) { LAB_00132389: /* WARNING: Subroutine does not return */ abort(); } bVar1 = *(byte *)(param_4 + 1); uVar7 = (uint)bVar1; uVar6 = (uint)bVar1; switch(*(byte *)((long)param_4 + 9)) { case 0: if (iVar4 == 0xd3) { uVar6 = 1; } else if (iVar4 == 0xdc) { uVar6 = 0; } case 3: case 8: in_stack_ffffffffffffff38 = CONCAT44(uVar15,uVar6); JS_DefineAutoInitProperty(param_1,param_2,param_3,iVar4,2,param_4,in_stack_ffffffffffffff38) ; goto LAB_0013235f; default: if (param_4[2] == 0) { auVar14 = ZEXT816(3) << 0x40; } else { snprintf(local_78,0x40,"get %s",*param_4); auVar14 = JS_NewCFunction3(param_1,param_4[2],local_78,0, (*(char *)((long)param_4 + 9) == '\x02') * '\x02' + '\b', (int)*(short *)((long)param_4 + 10), *(int8 *)(param_1 + 0x48),*(int4 *)(param_1 + 0x50) ); } local_88 = local_88 & 0xffffffff00000000; auVar13._8_4_ = 3; auVar13._0_8_ = local_88; if (param_4[3] != 0) { snprintf(local_78,0x40,"set %s",*param_4); auVar13 = JS_NewCFunction3(param_1,param_4[3],local_78,1, (*(char *)((long)param_4 + 9) == '\x02') * '\x02' + '\t', (int)*(short *)((long)param_4 + 10), *(int8 *)(param_1 + 0x48),*(int4 *)(param_1 + 0x50) ); } local_88 = auVar13._0_8_; in_stack_ffffffffffffff38 = local_88; JS_DefinePropertyGetSet (param_1,param_2,param_3,iVar4,auVar14._0_8_,auVar14._8_8_,auVar13,bVar1); goto LAB_0013235f; case 4: auVar14 = ZEXT416(*(uint *)(param_4 + 2)); break; case 5: uVar3 = param_4[2]; bVar12 = (long)(int)uVar3 == uVar3; dVar9 = (double)(long)uVar3; if (bVar12) { dVar9 = (double)(uVar3 & 0xffffffff); } auVar14._8_8_ = 7; auVar14._0_8_ = dVar9; if (bVar12) { auVar14._8_8_ = 0; } break; case 6: auVar14._8_8_ = 7; auVar14._0_8_ = param_4[2]; break; case 7: auVar14 = ZEXT816(3) << 0x40; break; case 9: uVar5 = find_atom(param_1,param_4[2]); iVar2 = *(int *)(param_4 + 3); if (iVar2 == 1) { uVar8 = *(int8 *)(*(long *)(param_1 + 0x40) + 0x28); uVar10 = *(int8 *)(*(long *)(param_1 + 0x40) + 0x20); } else if (iVar2 == 0) { uVar8 = *(int8 *)(param_1 + 0x1a8); uVar10 = *(int8 *)(param_1 + 0x1a0); } else { uVar8 = param_3; uVar10 = param_2; if (iVar2 != -1) goto LAB_00132389; } uVar15 = 0; auVar14 = JS_GetPropertyInternal2(param_1,uVar10,uVar8,uVar5,uVar10,uVar8,0,0); JS_FreeAtom(param_1,uVar5); if (iVar4 == 0xd3) { uVar7 = 1; } else { uVar7 = (uint)bVar1; if (iVar4 == 0xdc) { uVar7 = 0; } } } in_stack_ffffffffffffff38 = CONCAT44(uVar15,uVar7); JS_DefinePropertyValue (param_1,param_2,param_3,iVar4,auVar14._0_8_,auVar14._8_8_,in_stack_ffffffffffffff38 ); LAB_0013235f: JS_FreeAtom(param_1,iVar4); param_4 = param_4 + 4; uVar11 = uVar11 - 1; } while (uVar11 != 0); } return; }
29,677
JS_SetPropertyFunctionList
bluesky950520[P]quickjs/quickjs.c
void JS_SetPropertyFunctionList(JSContext *ctx, JSValue obj, const JSCFunctionListEntry *tab, int len) { int i; for (i = 0; i < len; i++) { const JSCFunctionListEntry *e = &tab[i]; JSAtom atom = find_atom(ctx, e->name); JS_InstantiateFunctionListItem(ctx, obj, atom, e); JS_FreeAtom(ctx, atom); } }
O3
c
JS_SetPropertyFunctionList: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, 0x30(%rsp) movq %rsi, 0x28(%rsp) testl %r8d, %r8d jle 0x33343 movq %rcx, %rbx movq %rdi, %r12 movl %r8d, %r15d movq (%rbx), %rsi movq %r12, %rdi callq 0x3335a movl %eax, %r13d movzbl 0x9(%rbx), %eax cmpq $0x9, %rax ja 0x33355 movzbl 0x8(%rbx), %edx leaq 0x6b0ac(%rip), %rcx # 0x9e12c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax cmpq $0x0, 0x10(%rbx) movl %edx, 0x24(%rsp) je 0x331c2 movq (%rbx), %rcx movl $0x40, %esi leaq 0x50(%rsp), %r14 movq %r14, %rdi leaq 0x6e294(%rip), %rdx # 0xa1343 xorl %eax, %eax callq 0xe2d0 movq 0x10(%rbx), %rsi xorl %eax, %eax cmpb $0x2, 0x9(%rbx) sete %al leal 0x8(,%rax,2), %r8d movswl 0xa(%rbx), %r9d movups 0x48(%r12), %xmm0 movups %xmm0, (%rsp) movq %r12, %rdi movq %r14, %rdx xorl %ecx, %ecx callq 0x20afb movq %rax, %r14 movq %rdx, %rbp movl 0x24(%rsp), %edx jmp 0x331ca cmpl $0xd3, %r13d je 0x33270 cmpl $0xdc, %r13d jne 0x33275 xorl %edx, %edx jmp 0x33275 movl %edx, 0x24(%rsp) movq 0x10(%rbx), %rsi movq %r12, %rdi callq 0x3335a movl 0x18(%rbx), %ecx cmpl $0x1, %ecx movl %eax, 0x3c(%rsp) je 0x332ad testl %ecx, %ecx je 0x3329b cmpl $-0x1, %ecx jne 0x33355 movl $0x0, 0x8(%rsp) movq $0x0, (%rsp) movq %r12, %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx jmp 0x332cd movq 0x10(%rbx), %rbp movl $0x7, %r14d jmp 0x3330d movl 0x10(%rbx), %ebp xorl %r14d, %r14d jmp 0x3330d movq 0x10(%rbx), %rax movslq %eax, %rcx cmpq %rax, %rcx xorps %xmm0, %xmm0 cvtsi2sd %rax, %xmm0 movl %ecx, %eax movq %xmm0, %rbp cmoveq %rax, %rbp movl $0x7, %r14d movl $0x0, %eax cmoveq %rax, %r14 jmp 0x3330d movl $0x3, %r14d xorl %ebp, %ebp jmp 0x3330d movl $0x3, %ebp xorl %r14d, %r14d movl $0x0, 0x40(%rsp) movq $0x3, 0x48(%rsp) cmpq $0x0, 0x18(%rbx) je 0x33241 movq (%rbx), %rcx movl $0x40, %esi leaq 0x50(%rsp), %rdi leaq 0x6e154(%rip), %rdx # 0xa134a xorl %eax, %eax callq 0xe2d0 movq 0x18(%rbx), %rsi xorl %eax, %eax cmpb $0x2, 0x9(%rbx) sete %al leal 0x9(,%rax,2), %r8d movswl 0xa(%rbx), %r9d movups 0x48(%r12), %xmm0 movups %xmm0, (%rsp) movq %r12, %rdi leaq 0x50(%rsp), %rdx movl $0x1, %ecx callq 0x20afb movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movl 0x24(%rsp), %edx movupd 0x40(%rsp), %xmm0 movupd %xmm0, (%rsp) movl %edx, 0x10(%rsp) movq %r12, %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movl %r13d, %ecx movq %r14, %r8 movq %rbp, %r9 callq 0x2678c jmp 0x3332b movl $0x1, %edx movl %edx, (%rsp) movq %r12, %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movl %r13d, %ecx movl $0x2, %r8d movq %rbx, %r9 callq 0x422ab jmp 0x3332b movq 0x1a0(%r12), %rsi movq 0x1a8(%r12), %rdx jmp 0x332ba movq 0x40(%r12), %rcx movq 0x20(%rcx), %rsi movq 0x28(%rcx), %rdx movl $0x0, 0x8(%rsp) movq $0x0, (%rsp) movq %r12, %rdi movl %eax, %ecx movq %rsi, %r8 movq %rdx, %r9 callq 0x22c0f movq %rax, %rbp movq %rdx, %r14 movq %r12, %rdi movl 0x3c(%rsp), %esi callq 0x202f5 cmpl $0xd3, %r13d je 0x33302 cmpl $0xdc, %r13d jne 0x33309 xorl %edx, %edx jmp 0x3330d movl $0x1, %edx jmp 0x3330d movl 0x24(%rsp), %edx movl %edx, (%rsp) movq %r12, %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movl %r13d, %ecx movq %rbp, %r8 movq %r14, %r9 callq 0x26541 movq %r12, %rdi movl %r13d, %esi callq 0x202f5 addq $0x20, %rbx decq %r15 jne 0x33059 addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xe090
JS_SetPropertyFunctionList: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov [rsp+0C8h+var_98], rdx mov [rsp+0C8h+var_A0], rsi test r8d, r8d jle loc_33343 mov rbx, rcx mov r12, rdi mov r15d, r8d loc_33059: mov rsi, [rbx] mov rdi, r12 call find_atom mov r13d, eax movzx eax, byte ptr [rbx+9] cmp rax, 9; switch 10 cases ja def_33087; jumptable 0000000000033087 default case movzx edx, byte ptr [rbx+8] lea rcx, jpt_33087 movsxd rax, ds:(jpt_33087 - 9E12Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_33089: cmp qword ptr [rbx+10h], 0; jumptable 0000000000033087 cases 1,2 mov [rsp+0C8h+var_A4], edx jz loc_331C2 mov rcx, [rbx] mov esi, 40h ; '@' lea r14, [rsp+0C8h+var_78] mov rdi, r14 lea rdx, aGetS; "get %s" xor eax, eax call _snprintf mov rsi, [rbx+10h] xor eax, eax cmp byte ptr [rbx+9], 2 setz al lea r8d, ds:8[rax*2] movsx r9d, word ptr [rbx+0Ah] movups xmm0, xmmword ptr [r12+48h] movups [rsp+0C8h+var_C8], xmm0 mov rdi, r12 mov rdx, r14 xor ecx, ecx call JS_NewCFunction3 mov r14, rax mov rbp, rdx mov edx, [rsp+0C8h+var_A4] jmp loc_331CA loc_330F6: cmp r13d, 0D3h; jumptable 0000000000033087 case 0 jz loc_33270 cmp r13d, 0DCh jnz loc_33275; jumptable 0000000000033087 cases 3,8 xor edx, edx jmp loc_33275; jumptable 0000000000033087 cases 3,8 loc_33117: mov [rsp+0C8h+var_A4], edx; jumptable 0000000000033087 case 9 mov rsi, [rbx+10h] mov rdi, r12 call find_atom mov ecx, [rbx+18h] cmp ecx, 1 mov [rsp+0C8h+var_8C], eax jz loc_332AD test ecx, ecx jz loc_3329B cmp ecx, 0FFFFFFFFh jnz def_33087; jumptable 0000000000033087 default case mov dword ptr [rsp+0C8h+var_C8+8], 0 mov qword ptr [rsp+0C8h+var_C8], 0 mov rdi, r12 mov rsi, [rsp+0C8h+var_A0] mov rdx, [rsp+0C8h+var_98] jmp loc_332CD loc_3316A: mov rbp, [rbx+10h]; jumptable 0000000000033087 case 6 mov r14d, 7 jmp loc_3330D loc_33179: mov ebp, [rbx+10h]; jumptable 0000000000033087 case 4 xor r14d, r14d jmp loc_3330D loc_33184: mov rax, [rbx+10h]; jumptable 0000000000033087 case 5 movsxd rcx, eax cmp rcx, rax xorps xmm0, xmm0 cvtsi2sd xmm0, rax mov eax, ecx movq rbp, xmm0 cmovz rbp, rax mov r14d, 7 mov eax, 0 cmovz r14, rax jmp loc_3330D loc_331B5: mov r14d, 3; jumptable 0000000000033087 case 7 xor ebp, ebp jmp loc_3330D loc_331C2: mov ebp, 3 xor r14d, r14d loc_331CA: mov dword ptr [rsp+0C8h+var_88], 0 mov qword ptr [rsp+0C8h+var_88+8], 3 cmp qword ptr [rbx+18h], 0 jz short loc_33241 mov rcx, [rbx] mov esi, 40h ; '@' lea rdi, [rsp+0C8h+var_78] lea rdx, aSetS; "set %s" xor eax, eax call _snprintf mov rsi, [rbx+18h] xor eax, eax cmp byte ptr [rbx+9], 2 setz al lea r8d, ds:9[rax*2] movsx r9d, word ptr [rbx+0Ah] movups xmm0, xmmword ptr [r12+48h] movups [rsp+0C8h+var_C8], xmm0 mov rdi, r12 lea rdx, [rsp+0C8h+var_78] mov ecx, 1 call JS_NewCFunction3 mov qword ptr [rsp+0C8h+var_88], rax mov qword ptr [rsp+0C8h+var_88+8], rdx mov edx, [rsp+0C8h+var_A4] loc_33241: movupd xmm0, [rsp+0C8h+var_88] movupd [rsp+0C8h+var_C8], xmm0 mov [rsp+0C8h+var_B8], edx mov rdi, r12 mov rsi, [rsp+0C8h+var_A0] mov rdx, [rsp+0C8h+var_98] mov ecx, r13d mov r8, r14 mov r9, rbp call JS_DefinePropertyGetSet jmp loc_3332B loc_33270: mov edx, 1 loc_33275: mov dword ptr [rsp+0C8h+var_C8], edx; jumptable 0000000000033087 cases 3,8 mov rdi, r12 mov rsi, [rsp+0C8h+var_A0] mov rdx, [rsp+0C8h+var_98] mov ecx, r13d mov r8d, 2 mov r9, rbx call JS_DefineAutoInitProperty jmp loc_3332B loc_3329B: mov rsi, [r12+1A0h] mov rdx, [r12+1A8h] jmp short loc_332BA loc_332AD: mov rcx, [r12+40h] mov rsi, [rcx+20h] mov rdx, [rcx+28h] loc_332BA: mov dword ptr [rsp+0C8h+var_C8+8], 0 mov qword ptr [rsp+0C8h+var_C8], 0 mov rdi, r12 loc_332CD: mov ecx, eax mov r8, rsi mov r9, rdx call JS_GetPropertyInternal2 mov rbp, rax mov r14, rdx mov rdi, r12 mov esi, [rsp+0C8h+var_8C] call JS_FreeAtom cmp r13d, 0D3h jz short loc_33302 cmp r13d, 0DCh jnz short loc_33309 xor edx, edx jmp short loc_3330D loc_33302: mov edx, 1 jmp short loc_3330D loc_33309: mov edx, [rsp+0C8h+var_A4] loc_3330D: mov dword ptr [rsp+0C8h+var_C8], edx mov rdi, r12 mov rsi, [rsp+0C8h+var_A0] mov rdx, [rsp+0C8h+var_98] mov ecx, r13d mov r8, rbp mov r9, r14 call JS_DefinePropertyValue loc_3332B: mov rdi, r12 mov esi, r13d call JS_FreeAtom add rbx, 20h ; ' ' dec r15 jnz loc_33059 loc_33343: add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn def_33087: call _abort; jumptable 0000000000033087 default case
void JS_SetPropertyFunctionList( long long a1, long long a2, long long a3, const char **a4, int a5, double a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { long long v15; // r15 const char *v16; // rsi const char *v17; // rdi unsigned int atom; // r13d __m128 v19; // xmm4 __m128 v20; // xmm5 __int128 v21; // rax unsigned long long v22; // r14 long long v23; // rbp int v24; // ecx unsigned long long PropertyInternal2; // rax long long v26; // rdx double v27; // rbp long long v28; // r14 const char *v29; // rax long long v30; // rsi long long v31; // rcx int v32; // [rsp+24h] [rbp-A4h] int v33; // [rsp+24h] [rbp-A4h] int v36; // [rsp+3Ch] [rbp-8Ch] __int128 v37; // [rsp+40h] [rbp-88h] unsigned __int8 v38[120]; // [rsp+50h] [rbp-78h] BYREF if ( a5 > 0 ) { v15 = (unsigned int)a5; while ( 1 ) { v16 = *a4; v17 = (const char *)a1; atom = find_atom(a1, *a4); *((_QWORD *)&v21 + 1) = *((unsigned __int8 *)a4 + 8); switch ( *((_BYTE *)a4 + 9) ) { case 0: if ( atom == 211 ) { DWORD2(v21) = 1; } else if ( atom == 220 ) { DWORD2(v21) = 0; } goto LABEL_26; case 1: case 2: v32 = *((unsigned __int8 *)a4 + 8); if ( a4[2] ) { snprintf(v38, 64LL, "get %s", *a4); v22 = JS_NewCFunction3( (_DWORD *)a1, (long long)a4[2], v38, 0, 2 * (unsigned int)(*((_BYTE *)a4 + 9) == 2) + 8, *((_WORD *)a4 + 5), *(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 80)); v23 = *((_QWORD *)&v21 + 1); DWORD2(v21) = v32; } else { v23 = 3LL; v22 = 0LL; } LODWORD(v37) = 0; *((_QWORD *)&v37 + 1) = 3LL; if ( a4[3] ) { snprintf(v38, 64LL, "set %s", *a4); *(_QWORD *)&v21 = JS_NewCFunction3( (_DWORD *)a1, (long long)a4[3], v38, 1u, 2 * (unsigned int)(*((_BYTE *)a4 + 9) == 2) + 9, *((_WORD *)a4 + 5), *(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 80)); v37 = v21; DWORD2(v21) = v32; } a6 = *(double *)&v37; JS_DefinePropertyGetSet( a1, a2, a3, atom, v22, v23, *(double *)&v37, a7, a8, a9, v19, v20, a12, a13, (_QWORD *)v37, *((long long *)&v37 + 1), SDWORD2(v21)); goto LABEL_36; case 3: case 8: LABEL_26: JS_DefineAutoInitProperty(a1, a2, a3, atom, 2, (_DWORD)a4, DWORD2(v21)); goto LABEL_36; case 4: *(_QWORD *)&v27 = *((unsigned int *)a4 + 4); v28 = 0LL; goto LABEL_35; case 5: v29 = a4[2]; a6 = (double)(int)v29; v27 = (double)(int)v29; if ( (const char *)(int)v29 == v29 ) *(_QWORD *)&v27 = (unsigned int)v29; v28 = 7LL; if ( (const char *)(int)v29 == v29 ) v28 = 0LL; goto LABEL_35; case 6: v27 = *((double *)a4 + 2); v28 = 7LL; goto LABEL_35; case 7: v28 = 3LL; v27 = 0.0; goto LABEL_35; case 9: v33 = *((unsigned __int8 *)a4 + 8); v16 = a4[2]; v17 = (const char *)a1; LODWORD(v21) = find_atom(a1, v16); v24 = *((_DWORD *)a4 + 6); v36 = v21; if ( v24 == 1 ) { v31 = *(_QWORD *)(a1 + 64); v30 = *(_QWORD *)(v31 + 32); *((_QWORD *)&v21 + 1) = *(_QWORD *)(v31 + 40); goto LABEL_29; } if ( !v24 ) { v30 = *(_QWORD *)(a1 + 416); *((_QWORD *)&v21 + 1) = *(_QWORD *)(a1 + 424); LABEL_29: PropertyInternal2 = JS_GetPropertyInternal2(a1, v30, SDWORD2(v21), v21, v30, *((long long *)&v21 + 1), 0LL, 0); goto LABEL_30; } if ( v24 != -1 ) LABEL_38: abort(v17, v16, *((_QWORD *)&v21 + 1)); PropertyInternal2 = JS_GetPropertyInternal2(a1, a2, a3, v21, a2, a3, 0LL, 0); LABEL_30: v27 = *(double *)&PropertyInternal2; v28 = v26; JS_FreeAtom(a1, v36); if ( atom == 211 ) { DWORD2(v21) = 1; } else if ( atom == 220 ) { DWORD2(v21) = 0; } else { DWORD2(v21) = v33; } LABEL_35: JS_DefinePropertyValue(a1, a2, a3, atom, *(int **)&v27, v28, a6, a7, a8, a9, v19, v20, a12, a13, SDWORD2(v21)); LABEL_36: JS_FreeAtom(a1, atom); a4 += 4; if ( !--v15 ) return; break; default: goto LABEL_38; } } } }
JS_SetPropertyFunctionList: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x28],RSI TEST R8D,R8D JLE 0x00133343 MOV RBX,RCX MOV R12,RDI MOV R15D,R8D LAB_00133059: MOV RSI,qword ptr [RBX] MOV RDI,R12 CALL 0x0013335a MOV R13D,EAX MOVZX EAX,byte ptr [RBX + 0x9] CMP RAX,0x9 JA 0x00133355 MOVZX EDX,byte ptr [RBX + 0x8] LEA RCX,[0x19e12c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: CMP qword ptr [RBX + 0x10],0x0 MOV dword ptr [RSP + 0x24],EDX JZ 0x001331c2 MOV RCX,qword ptr [RBX] MOV ESI,0x40 LEA R14,[RSP + 0x50] MOV RDI,R14 LEA RDX,[0x1a1343] XOR EAX,EAX CALL 0x0010e2d0 MOV RSI,qword ptr [RBX + 0x10] XOR EAX,EAX CMP byte ptr [RBX + 0x9],0x2 SETZ AL LEA R8D,[0x8 + RAX*0x2] MOVSX R9D,word ptr [RBX + 0xa] MOVUPS XMM0,xmmword ptr [R12 + 0x48] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R12 MOV RDX,R14 XOR ECX,ECX CALL 0x00120afb MOV R14,RAX MOV RBP,RDX MOV EDX,dword ptr [RSP + 0x24] JMP 0x001331ca caseD_0: CMP R13D,0xd3 JZ 0x00133270 CMP R13D,0xdc JNZ 0x00133275 XOR EDX,EDX JMP 0x00133275 caseD_9: MOV dword ptr [RSP + 0x24],EDX MOV RSI,qword ptr [RBX + 0x10] MOV RDI,R12 CALL 0x0013335a MOV ECX,dword ptr [RBX + 0x18] CMP ECX,0x1 MOV dword ptr [RSP + 0x3c],EAX JZ 0x001332ad TEST ECX,ECX JZ 0x0013329b CMP ECX,-0x1 JNZ 0x00133355 MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP],0x0 MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] JMP 0x001332cd caseD_6: MOV RBP,qword ptr [RBX + 0x10] MOV R14D,0x7 JMP 0x0013330d caseD_4: MOV EBP,dword ptr [RBX + 0x10] XOR R14D,R14D JMP 0x0013330d caseD_5: MOV RAX,qword ptr [RBX + 0x10] MOVSXD RCX,EAX CMP RCX,RAX XORPS XMM0,XMM0 CVTSI2SD XMM0,RAX MOV EAX,ECX MOVQ RBP,XMM0 CMOVZ RBP,RAX MOV R14D,0x7 MOV EAX,0x0 CMOVZ R14,RAX JMP 0x0013330d caseD_7: MOV R14D,0x3 XOR EBP,EBP JMP 0x0013330d LAB_001331c2: MOV EBP,0x3 XOR R14D,R14D LAB_001331ca: MOV dword ptr [RSP + 0x40],0x0 MOV qword ptr [RSP + 0x48],0x3 CMP qword ptr [RBX + 0x18],0x0 JZ 0x00133241 MOV RCX,qword ptr [RBX] MOV ESI,0x40 LEA RDI,[RSP + 0x50] LEA RDX,[0x1a134a] XOR EAX,EAX CALL 0x0010e2d0 MOV RSI,qword ptr [RBX + 0x18] XOR EAX,EAX CMP byte ptr [RBX + 0x9],0x2 SETZ AL LEA R8D,[0x9 + RAX*0x2] MOVSX R9D,word ptr [RBX + 0xa] MOVUPS XMM0,xmmword ptr [R12 + 0x48] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R12 LEA RDX,[RSP + 0x50] MOV ECX,0x1 CALL 0x00120afb MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV EDX,dword ptr [RSP + 0x24] LAB_00133241: MOVUPD XMM0,xmmword ptr [RSP + 0x40] MOVUPD xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x10],EDX MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] MOV ECX,R13D MOV R8,R14 MOV R9,RBP CALL 0x0012678c JMP 0x0013332b LAB_00133270: MOV EDX,0x1 caseD_3: MOV dword ptr [RSP],EDX MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] MOV ECX,R13D MOV R8D,0x2 MOV R9,RBX CALL 0x001422ab JMP 0x0013332b LAB_0013329b: MOV RSI,qword ptr [R12 + 0x1a0] MOV RDX,qword ptr [R12 + 0x1a8] JMP 0x001332ba LAB_001332ad: MOV RCX,qword ptr [R12 + 0x40] MOV RSI,qword ptr [RCX + 0x20] MOV RDX,qword ptr [RCX + 0x28] LAB_001332ba: MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP],0x0 MOV RDI,R12 LAB_001332cd: MOV ECX,EAX MOV R8,RSI MOV R9,RDX CALL 0x00122c0f MOV RBP,RAX MOV R14,RDX MOV RDI,R12 MOV ESI,dword ptr [RSP + 0x3c] CALL 0x001202f5 CMP R13D,0xd3 JZ 0x00133302 CMP R13D,0xdc JNZ 0x00133309 XOR EDX,EDX JMP 0x0013330d LAB_00133302: MOV EDX,0x1 JMP 0x0013330d LAB_00133309: MOV EDX,dword ptr [RSP + 0x24] LAB_0013330d: MOV dword ptr [RSP],EDX MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] MOV ECX,R13D MOV R8,RBP MOV R9,R14 CALL 0x00126541 LAB_0013332b: MOV RDI,R12 MOV ESI,R13D CALL 0x001202f5 ADD RBX,0x20 DEC R15 JNZ 0x00133059 LAB_00133343: ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00133355: CALL 0x0010e090
void JS_SetPropertyFunctionList (long param_1,int8 param_2,int8 param_3,int8 *param_4,uint param_5) { byte bVar1; int iVar2; ulong uVar3; int iVar4; int4 uVar5; uint uVar6; int8 uVar8; double dVar9; int8 uVar10; ulong uVar11; bool bVar12; int1 auVar13 [12]; int1 auVar14 [16]; ulong in_stack_ffffffffffffff38; int4 uVar15; ulong local_88; char local_78 [72]; uint uVar7; if (0 < (int)param_5) { uVar11 = (ulong)param_5; do { uVar15 = (int4)(in_stack_ffffffffffffff38 >> 0x20); iVar4 = find_atom(param_1,*param_4); if (9 < *(byte *)((long)param_4 + 9)) { LAB_00133355: /* WARNING: Subroutine does not return */ abort(); } bVar1 = *(byte *)(param_4 + 1); uVar7 = (uint)bVar1; uVar6 = (uint)bVar1; switch(*(byte *)((long)param_4 + 9)) { case 0: if (iVar4 == 0xd3) { uVar6 = 1; } else if (iVar4 == 0xdc) { uVar6 = 0; } case 3: case 8: in_stack_ffffffffffffff38 = CONCAT44(uVar15,uVar6); JS_DefineAutoInitProperty(param_1,param_2,param_3,iVar4,2,param_4,in_stack_ffffffffffffff38) ; goto LAB_0013332b; default: if (param_4[2] == 0) { auVar14 = ZEXT816(3) << 0x40; } else { snprintf(local_78,0x40,"get %s",*param_4); auVar14 = JS_NewCFunction3(param_1,param_4[2],local_78,0, (*(char *)((long)param_4 + 9) == '\x02') * '\x02' + '\b', (int)*(short *)((long)param_4 + 10), *(int8 *)(param_1 + 0x48),*(int4 *)(param_1 + 0x50) ); } local_88 = local_88 & 0xffffffff00000000; auVar13._8_4_ = 3; auVar13._0_8_ = local_88; if (param_4[3] != 0) { snprintf(local_78,0x40,"set %s",*param_4); auVar13 = JS_NewCFunction3(param_1,param_4[3],local_78,1, (*(char *)((long)param_4 + 9) == '\x02') * '\x02' + '\t', (int)*(short *)((long)param_4 + 10), *(int8 *)(param_1 + 0x48),*(int4 *)(param_1 + 0x50) ); } local_88 = auVar13._0_8_; in_stack_ffffffffffffff38 = local_88; JS_DefinePropertyGetSet (param_1,param_2,param_3,iVar4,auVar14._0_8_,auVar14._8_8_,auVar13,bVar1); goto LAB_0013332b; case 4: auVar14 = ZEXT416(*(uint *)(param_4 + 2)); break; case 5: uVar3 = param_4[2]; bVar12 = (long)(int)uVar3 == uVar3; dVar9 = (double)(long)uVar3; if (bVar12) { dVar9 = (double)(uVar3 & 0xffffffff); } auVar14._8_8_ = 7; auVar14._0_8_ = dVar9; if (bVar12) { auVar14._8_8_ = 0; } break; case 6: auVar14._8_8_ = 7; auVar14._0_8_ = param_4[2]; break; case 7: auVar14 = ZEXT816(3) << 0x40; break; case 9: uVar5 = find_atom(param_1,param_4[2]); iVar2 = *(int *)(param_4 + 3); if (iVar2 == 1) { uVar8 = *(int8 *)(*(long *)(param_1 + 0x40) + 0x28); uVar10 = *(int8 *)(*(long *)(param_1 + 0x40) + 0x20); } else if (iVar2 == 0) { uVar8 = *(int8 *)(param_1 + 0x1a8); uVar10 = *(int8 *)(param_1 + 0x1a0); } else { uVar8 = param_3; uVar10 = param_2; if (iVar2 != -1) goto LAB_00133355; } uVar15 = 0; auVar14 = JS_GetPropertyInternal2(param_1,uVar10,uVar8,uVar5,uVar10,uVar8,0,0); JS_FreeAtom(param_1,uVar5); if (iVar4 == 0xd3) { uVar7 = 1; } else { uVar7 = (uint)bVar1; if (iVar4 == 0xdc) { uVar7 = 0; } } } in_stack_ffffffffffffff38 = CONCAT44(uVar15,uVar7); JS_DefinePropertyValue (param_1,param_2,param_3,iVar4,auVar14._0_8_,auVar14._8_8_,in_stack_ffffffffffffff38 ); LAB_0013332b: JS_FreeAtom(param_1,iVar4); param_4 = param_4 + 4; uVar11 = uVar11 - 1; } while (uVar11 != 0); } return; }
29,678
wait_for_readers
eloqsql/mysys/mf_keycache.c
static void wait_for_readers(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block) { struct st_my_thread_var *thread= my_thread_var; DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE)); DBUG_ASSERT(!(block->status & (BLOCK_IN_FLUSH | BLOCK_CHANGED))); DBUG_ASSERT(block->hash_link); DBUG_ASSERT(block->hash_link->block == block); /* Linked in file_blocks or changed_blocks hash. */ DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); /* Not linked in LRU ring. */ DBUG_ASSERT(!block->next_used); DBUG_ASSERT(!block->prev_used); while (block->hash_link->requests) { KEYCACHE_DBUG_PRINT("wait_for_readers: wait", ("suspend thread %ld block %u", (ulong) thread->id, BLOCK_NUMBER(block))); /* There must be no other waiter. We have no queue here. */ DBUG_ASSERT(!block->condvar); block->condvar= &thread->suspend; keycache_pthread_cond_wait(&thread->suspend, &keycache->cache_lock); block->condvar= NULL; } }
O3
c
wait_for_readers: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 callq 0x5c086 movq %rax, %r15 movq 0x20(%rbx), %rax cmpl $0x0, 0x28(%rax) je 0x53e21 movq %r15, %r12 addq $0x8, %r12 addq $0xc0, %r14 leaq 0x3ec49(%rip), %r13 # 0x92a2b movq %r12, 0x68(%rbx) cmpq $0x0, 0x38(%r15) jne 0x53e0c movq %r12, %rdi movq %r14, %rsi callq 0x285b0 movq $0x0, 0x68(%rbx) movq 0x20(%rbx), %rax cmpl $0x0, 0x28(%rax) jne 0x53de2 jmp 0x53e21 movq %r12, %rdi movq %r14, %rsi movq %r13, %rdx movl $0x68f, %ecx # imm = 0x68F callq 0x2a19d jmp 0x53df8 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
wait_for_readers: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r14, rdi call _my_thread_var mov r15, rax mov rax, [rbx+20h] cmp dword ptr [rax+28h], 0 jz short loc_53E21 mov r12, r15 add r12, 8 add r14, 0C0h lea r13, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"... loc_53DE2: mov [rbx+68h], r12 cmp qword ptr [r15+38h], 0 jnz short loc_53E0C mov rdi, r12 mov rsi, r14 call _pthread_cond_wait loc_53DF8: mov qword ptr [rbx+68h], 0 mov rax, [rbx+20h] cmp dword ptr [rax+28h], 0 jnz short loc_53DE2 jmp short loc_53E21 loc_53E0C: mov rdi, r12 mov rsi, r14 mov rdx, r13 mov ecx, 68Fh call psi_cond_wait jmp short loc_53DF8 loc_53E21: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long wait_for_readers(long long a1, long long a2) { long long v2; // r15 long long result; // rax long long v4; // r14 v2 = my_thread_var(a1, (const char *)a2); result = *(_QWORD *)(a2 + 32); if ( *(_DWORD *)(result + 40) ) { v4 = a1 + 192; do { *(_QWORD *)(a2 + 104) = v2 + 8; if ( *(_QWORD *)(v2 + 56) ) psi_cond_wait(v2 + 8, v4, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x68Fu); else pthread_cond_wait(v2 + 8, v4); *(_QWORD *)(a2 + 104) = 0LL; result = *(_QWORD *)(a2 + 32); } while ( *(_DWORD *)(result + 40) ); } return result; }
wait_for_readers: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI CALL 0x0015c086 MOV R15,RAX MOV RAX,qword ptr [RBX + 0x20] CMP dword ptr [RAX + 0x28],0x0 JZ 0x00153e21 MOV R12,R15 ADD R12,0x8 ADD R14,0xc0 LEA R13,[0x192a2b] LAB_00153de2: MOV qword ptr [RBX + 0x68],R12 CMP qword ptr [R15 + 0x38],0x0 JNZ 0x00153e0c MOV RDI,R12 MOV RSI,R14 CALL 0x001285b0 LAB_00153df8: MOV qword ptr [RBX + 0x68],0x0 MOV RAX,qword ptr [RBX + 0x20] CMP dword ptr [RAX + 0x28],0x0 JNZ 0x00153de2 JMP 0x00153e21 LAB_00153e0c: MOV RDI,R12 MOV RSI,R14 MOV RDX,R13 MOV ECX,0x68f CALL 0x0012a19d JMP 0x00153df8 LAB_00153e21: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void wait_for_readers(long param_1,long param_2) { long lVar1; pthread_cond_t *__cond; lVar1 = _my_thread_var(); if (*(int *)(*(long *)(param_2 + 0x20) + 0x28) != 0) { __cond = (pthread_cond_t *)(lVar1 + 8); do { *(pthread_cond_t **)(param_2 + 0x68) = __cond; if (*(long *)(lVar1 + 0x38) == 0) { pthread_cond_wait(__cond,(pthread_mutex_t *)(param_1 + 0xc0)); } else { psi_cond_wait(__cond,(pthread_mutex_t *)(param_1 + 0xc0), "/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x68f); } *(int8 *)(param_2 + 0x68) = 0; } while (*(int *)(*(long *)(param_2 + 0x20) + 0x28) != 0); } return; }
29,679
get_charset_name
eloqsql/mysys/charset.c
const char *get_charset_name(uint charset_number) { my_pthread_once(&charsets_initialized, init_available_charsets); if (charset_number < array_elements(all_charsets)) { CHARSET_INFO *cs= all_charsets[charset_number]; if (cs && (cs->number == charset_number) && cs->coll_name.str) return cs->coll_name.str; } return "?"; /* this mimics find_type() */ }
O3
c
get_charset_name: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movl %edi, %ebx leaq 0x35067a(%rip), %rdi # 0x378f90 leaq -0x302(%rip), %rsi # 0x2861b callq 0x24310 leaq 0x3ba6e(%rip), %rcx # 0x64397 cmpl $0x7ff, %ebx # imm = 0x7FF ja 0x28950 movl %ebx, %eax leaq 0x3485e6(%rip), %rdx # 0x370f20 movq (%rdx,%rax,8), %rax testq %rax, %rax je 0x28950 cmpl %ebx, (%rax) jne 0x28950 movq 0x20(%rax), %rax testq %rax, %rax jne 0x28953 movq %rcx, %rax addq $0x8, %rsp popq %rbx popq %rbp retq
get_charset_name: push rbp mov rbp, rsp push rbx push rax mov ebx, edi lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once lea rcx, asc_64397; "?" cmp ebx, 7FFh ja short loc_28950 mov eax, ebx lea rdx, all_charsets mov rax, [rdx+rax*8] test rax, rax jz short loc_28950 cmp [rax], ebx jnz short loc_28950 mov rax, [rax+20h] test rax, rax jnz short loc_28953 loc_28950: mov rax, rcx loc_28953: add rsp, 8 pop rbx pop rbp retn
const char * get_charset_name(unsigned int a1) { long long v1; // rax const char *result; // rax pthread_once(&charsets_initialized, init_available_charsets); if ( a1 > 0x7FF ) return "?"; v1 = all_charsets[a1]; if ( !v1 ) return "?"; if ( *(_DWORD *)v1 != a1 ) return "?"; result = *(const char **)(v1 + 32); if ( !result ) return "?"; return result; }
get_charset_name: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV EBX,EDI LEA RDI,[0x478f90] LEA RSI,[0x12861b] CALL 0x00124310 LEA RCX,[0x164397] CMP EBX,0x7ff JA 0x00128950 MOV EAX,EBX LEA RDX,[0x470f20] MOV RAX,qword ptr [RDX + RAX*0x8] TEST RAX,RAX JZ 0x00128950 CMP dword ptr [RAX],EBX JNZ 0x00128950 MOV RAX,qword ptr [RAX + 0x20] TEST RAX,RAX JNZ 0x00128953 LAB_00128950: MOV RAX,RCX LAB_00128953: ADD RSP,0x8 POP RBX POP RBP RET
int * get_charset_name(uint param_1) { uint *puVar1; int *puVar2; pthread_once(&charsets_initialized,init_available_charsets); if ((((0x7ff < param_1) || (puVar1 = (uint *)(&all_charsets)[param_1], puVar1 == (uint *)0x0)) || (*puVar1 != param_1)) || (puVar2 = *(int **)(puVar1 + 8), puVar2 == (int *)0x0)) { puVar2 = &DAT_00164397; } return puVar2; }
29,680
ma_state_info_read
eloqsql/storage/maria/ma_open.c
static uchar *_ma_state_info_read(uchar *ptr, MARIA_STATE_INFO *state, myf flag) { uint i,keys,key_parts; DBUG_ENTER("_ma_state_info_read"); memcpy(&state->header,ptr, sizeof(state->header)); ptr+= sizeof(state->header); keys= (uint) state->header.keys; key_parts= mi_uint2korr(state->header.key_parts); /* Allocate memory for key parts if not already done */ if (!state->rec_per_key_part && !my_multi_malloc(PSI_INSTRUMENT_ME, MYF(MY_WME | flag), &state->rec_per_key_part, sizeof(*state->rec_per_key_part) * key_parts, &state->nulls_per_key_part, sizeof(*state->nulls_per_key_part) * key_parts, NullS)) DBUG_RETURN(0); state->open_count = mi_uint2korr(ptr); ptr+= 2; state->changed= mi_uint2korr(ptr); ptr+= 2; state->create_rename_lsn= lsn_korr(ptr); ptr+= LSN_STORE_SIZE; state->is_of_horizon= lsn_korr(ptr); ptr+= LSN_STORE_SIZE; state->skip_redo_lsn= lsn_korr(ptr); ptr+= LSN_STORE_SIZE; state->state.records= mi_rowkorr(ptr); ptr+= 8; state->state.del = mi_rowkorr(ptr); ptr+= 8; state->split = mi_rowkorr(ptr); ptr+= 8; state->dellink= mi_sizekorr(ptr); ptr+= 8; state->first_bitmap_with_space= mi_sizekorr(ptr); ptr+= 8; state->state.key_file_length = mi_sizekorr(ptr); ptr+= 8; state->state.data_file_length= mi_sizekorr(ptr); ptr+= 8; state->state.empty = mi_sizekorr(ptr); ptr+= 8; state->state.key_empty= mi_sizekorr(ptr); ptr+= 8; state->auto_increment=mi_uint8korr(ptr); ptr+= 8; state->state.checksum=(ha_checksum) mi_uint8korr(ptr);ptr+= 8; state->create_trid= mi_uint8korr(ptr); ptr+= 8; state->status = mi_uint4korr(ptr); ptr+= 4; state->update_count=mi_uint4korr(ptr); ptr+= 4; state->sortkey= (uint) *ptr++; ptr++; /* reserved */ ptr+= state->state_diff_length; for (i=0; i < keys; i++) { state->key_root[i]= mi_sizekorr(ptr); ptr+= 8; } state->key_del= mi_sizekorr(ptr); ptr+= 8; state->sec_index_changed = mi_uint4korr(ptr); ptr+= 4; state->sec_index_used = mi_uint4korr(ptr); ptr+= 4; state->version = mi_uint4korr(ptr); ptr+= 4; state->key_map = mi_uint8korr(ptr); ptr+= 8; state->create_time = (time_t) mi_sizekorr(ptr); ptr+= 8; state->recover_time =(time_t) mi_sizekorr(ptr); ptr+= 8; state->check_time = (time_t) mi_sizekorr(ptr); ptr+= 8; state->records_at_analyze= mi_sizekorr(ptr); ptr+= 8; ptr+= keys * 4; /* Skip reserved bytes */ for (i=0 ; i < key_parts ; i++) { float8get(state->rec_per_key_part[i], ptr); ptr+= 8; state->nulls_per_key_part[i]= mi_uint4korr(ptr); ptr+= 4; } DBUG_PRINT("info", ("Records: %lld", state->state.records)); DBUG_RETURN(ptr); }
O3
c
ma_state_info_read: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0x10(%rdi), %rax movq %rax, 0x10(%rsi) movups (%rdi), %xmm0 movups %xmm0, (%rsi) movzbl 0x12(%rsi), %r9d movzbl 0xf(%rsi), %r8d movzbl 0xe(%rsi), %r12d shll $0x8, %r12d leal (%r12,%r8), %r13d cmpq $0x0, 0x100(%rsi) jne 0x341e9 leaq 0x100(%rbx), %rax orq $0x10, %rdx leal (,%r13,8), %ecx movq %r8, -0x38(%rbp) leaq 0x108(%rbx), %r8 movq $0x0, (%rsp) xorl %r15d, %r15d xorl %edi, %edi movq %rdx, %rsi movq %rax, %rdx movq %r9, -0x30(%rbp) movq %rcx, %r9 xorl %eax, %eax callq 0x9de34 movq -0x30(%rbp), %r9 movq -0x38(%rbp), %r8 testq %rax, %rax je 0x3442b movzwl 0x18(%r14), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x16c(%rbx) movzwl 0x1a(%r14), %eax rolw $0x8, %ax movzwl %ax, %eax movl %eax, 0x170(%rbx) movzwl 0x1c(%r14), %eax shlq $0x20, %rax movzbl 0x1e(%r14), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x1f(%r14), %eax orq %rcx, %rax movq %rax, 0x178(%rbx) movzwl 0x23(%r14), %eax shlq $0x20, %rax movzbl 0x25(%r14), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x26(%r14), %eax orq %rcx, %rax movq %rax, 0x180(%rbx) movzwl 0x2a(%r14), %eax shlq $0x20, %rax movzbl 0x2c(%r14), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x2d(%r14), %eax orq %rcx, %rax movq %rax, 0x188(%rbx) movq 0x31(%r14), %rax bswapq %rax movq %rax, 0x18(%rbx) movq 0x39(%r14), %rax bswapq %rax movq %rax, 0x20(%rbx) movq 0x41(%r14), %rax bswapq %rax movq %rax, 0xc0(%rbx) movq 0x49(%r14), %rax bswapq %rax movq %rax, 0xc8(%rbx) movq 0x51(%r14), %rax bswapq %rax movq %rax, 0xd0(%rbx) movq 0x59(%r14), %rax bswapq %rax movq %rax, 0x38(%rbx) movq 0x61(%r14), %rax bswapq %rax movq %rax, 0x40(%rbx) movq 0x69(%r14), %rax bswapq %rax movq %rax, 0x28(%rbx) movq 0x71(%r14), %rax bswapq %rax movq %rax, 0x30(%rbx) movq 0x79(%r14), %rax bswapq %rax movq %rax, 0xd8(%rbx) movl 0x85(%r14), %eax bswapl %eax movl %eax, 0x48(%rbx) movq 0x89(%r14), %rax bswapq %rax movq %rax, 0xe0(%rbx) movl 0x91(%r14), %eax bswapl %eax movq %rax, 0xf8(%rbx) movl 0x95(%r14), %eax bswapl %eax movq %rax, 0xf0(%rbx) movzbl 0x99(%r14), %eax movl %eax, 0x168(%rbx) movl 0x19c(%rbx), %eax addq %r14, %rax addq $0x9b, %rax testq %r9, %r9 je 0x34377 leal (,%r9,8), %edx xorl %ecx, %ecx movq (%rax,%rcx), %rsi bswapq %rsi movq 0x118(%rbx), %rdi movq %rsi, (%rdi,%rcx) addq $0x8, %rcx cmpq %rcx, %rdx jne 0x34359 addq %rcx, %rax movq (%rax), %rcx bswapq %rcx movq %rcx, 0x120(%rbx) movl 0x8(%rax), %ecx bswapl %ecx movq %rcx, 0x130(%rbx) movl 0xc(%rax), %ecx bswapl %ecx movq %rcx, 0x138(%rbx) movl 0x10(%rax), %ecx bswapl %ecx movq %rcx, 0x148(%rbx) movq 0x14(%rax), %rcx bswapq %rcx movq %rcx, 0x140(%rbx) movq 0x1c(%rax), %rcx bswapq %rcx movq %rcx, 0x150(%rbx) movq 0x24(%rax), %rcx bswapq %rcx movq %rcx, 0x158(%rbx) movq 0x2c(%rax), %rcx bswapq %rcx movq %rcx, 0x160(%rbx) movq 0x34(%rax), %rcx bswapq %rcx movq %rcx, 0x128(%rbx) leaq (%rax,%r9,4), %r15 addq $0x3c, %r15 testl %r13d, %r13d je 0x3442b addl %r8d, %r12d xorl %eax, %eax movq 0x100(%rbx), %rcx movq (%r15), %rdx movq %rdx, (%rcx,%rax,8) movl 0x8(%r15), %ecx bswapl %ecx movq 0x108(%rbx), %rdx movq %rcx, (%rdx,%rax,8) addq $0xc, %r15 incq %rax cmpq %rax, %r12 jne 0x34400 movq %r15, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ma_state_info_read: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rsi mov r14, rdi mov rax, [rdi+10h] mov [rsi+10h], rax movups xmm0, xmmword ptr [rdi] movups xmmword ptr [rsi], xmm0 movzx r9d, byte ptr [rsi+12h] movzx r8d, byte ptr [rsi+0Fh] movzx r12d, byte ptr [rsi+0Eh] shl r12d, 8 lea r13d, [r12+r8] cmp qword ptr [rsi+100h], 0 jnz short loc_341E9 lea rax, [rbx+100h] or rdx, 10h lea ecx, ds:0[r13*8] mov [rbp+var_38], r8 lea r8, [rbx+108h] mov [rsp+40h+var_40], 0 xor r15d, r15d xor edi, edi mov rsi, rdx mov rdx, rax mov [rbp+var_30], r9 mov r9, rcx xor eax, eax call my_multi_malloc mov r9, [rbp+var_30] mov r8, [rbp+var_38] test rax, rax jz loc_3442B loc_341E9: movzx eax, word ptr [r14+18h] rol ax, 8 movzx eax, ax mov [rbx+16Ch], eax movzx eax, word ptr [r14+1Ah] rol ax, 8 movzx eax, ax mov [rbx+170h], eax movzx eax, word ptr [r14+1Ch] shl rax, 20h movzx ecx, byte ptr [r14+1Eh] shl rcx, 30h or rcx, rax mov eax, [r14+1Fh] or rax, rcx mov [rbx+178h], rax movzx eax, word ptr [r14+23h] shl rax, 20h movzx ecx, byte ptr [r14+25h] shl rcx, 30h or rcx, rax mov eax, [r14+26h] or rax, rcx mov [rbx+180h], rax movzx eax, word ptr [r14+2Ah] shl rax, 20h movzx ecx, byte ptr [r14+2Ch] shl rcx, 30h or rcx, rax mov eax, [r14+2Dh] or rax, rcx mov [rbx+188h], rax mov rax, [r14+31h] bswap rax mov [rbx+18h], rax mov rax, [r14+39h] bswap rax mov [rbx+20h], rax mov rax, [r14+41h] bswap rax mov [rbx+0C0h], rax mov rax, [r14+49h] bswap rax mov [rbx+0C8h], rax mov rax, [r14+51h] bswap rax mov [rbx+0D0h], rax mov rax, [r14+59h] bswap rax mov [rbx+38h], rax mov rax, [r14+61h] bswap rax mov [rbx+40h], rax mov rax, [r14+69h] bswap rax mov [rbx+28h], rax mov rax, [r14+71h] bswap rax mov [rbx+30h], rax mov rax, [r14+79h] bswap rax mov [rbx+0D8h], rax mov eax, [r14+85h] bswap eax mov [rbx+48h], eax mov rax, [r14+89h] bswap rax mov [rbx+0E0h], rax mov eax, [r14+91h] bswap eax mov [rbx+0F8h], rax mov eax, [r14+95h] bswap eax mov [rbx+0F0h], rax movzx eax, byte ptr [r14+99h] mov [rbx+168h], eax mov eax, [rbx+19Ch] add rax, r14 add rax, 9Bh test r9, r9 jz short loc_34377 lea edx, ds:0[r9*8] xor ecx, ecx loc_34359: mov rsi, [rax+rcx] bswap rsi mov rdi, [rbx+118h] mov [rdi+rcx], rsi add rcx, 8 cmp rdx, rcx jnz short loc_34359 add rax, rcx loc_34377: mov rcx, [rax] bswap rcx mov [rbx+120h], rcx mov ecx, [rax+8] bswap ecx mov [rbx+130h], rcx mov ecx, [rax+0Ch] bswap ecx mov [rbx+138h], rcx mov ecx, [rax+10h] bswap ecx mov [rbx+148h], rcx mov rcx, [rax+14h] bswap rcx mov [rbx+140h], rcx mov rcx, [rax+1Ch] bswap rcx mov [rbx+150h], rcx mov rcx, [rax+24h] bswap rcx mov [rbx+158h], rcx mov rcx, [rax+2Ch] bswap rcx mov [rbx+160h], rcx mov rcx, [rax+34h] bswap rcx mov [rbx+128h], rcx lea r15, [rax+r9*4] add r15, 3Ch ; '<' test r13d, r13d jz short loc_3442B add r12d, r8d xor eax, eax loc_34400: mov rcx, [rbx+100h] mov rdx, [r15] mov [rcx+rax*8], rdx mov ecx, [r15+8] bswap ecx mov rdx, [rbx+108h] mov [rdx+rax*8], rcx add r15, 0Ch inc rax cmp r12, rax jnz short loc_34400 loc_3442B: mov rax, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_state_info_read(long long a1, long long a2, int a3) { long long v3; // r9 int v4; // r8d int v5; // r12d int v6; // r13d long long v7; // r15 long long v8; // rax long long v9; // rax long long v10; // rcx long long v11; // r12 long long v12; // rax int v14; // [rsp+8h] [rbp-38h] long long v15; // [rsp+10h] [rbp-30h] *(_QWORD *)(a2 + 16) = *(_QWORD *)(a1 + 16); *(_OWORD *)a2 = *(_OWORD *)a1; v3 = *(unsigned __int8 *)(a2 + 18); v4 = *(unsigned __int8 *)(a2 + 15); v5 = *(unsigned __int8 *)(a2 + 14) << 8; v6 = v5 + v4; if ( *(_QWORD *)(a2 + 256) || (v14 = *(unsigned __int8 *)(a2 + 15), v7 = 0LL, v15 = *(unsigned __int8 *)(a2 + 18), v8 = my_multi_malloc(0, a3 | 0x10u, (int)a2 + 256, 8 * v6, (int)a2 + 264, 8 * v6, 0LL), v3 = v15, v4 = v14, v8) ) { *(_DWORD *)(a2 + 364) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 24), 8); *(_DWORD *)(a2 + 368) = (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 26), 8); *(_QWORD *)(a2 + 376) = ((unsigned long long)*(unsigned __int16 *)(a1 + 28) << 32) | ((unsigned long long)*(unsigned __int8 *)(a1 + 30) << 48) | *(unsigned int *)(a1 + 31); *(_QWORD *)(a2 + 384) = ((unsigned long long)*(unsigned __int16 *)(a1 + 35) << 32) | ((unsigned long long)*(unsigned __int8 *)(a1 + 37) << 48) | *(unsigned int *)(a1 + 38); *(_QWORD *)(a2 + 392) = ((unsigned long long)*(unsigned __int16 *)(a1 + 42) << 32) | ((unsigned long long)*(unsigned __int8 *)(a1 + 44) << 48) | *(unsigned int *)(a1 + 45); *(_QWORD *)(a2 + 24) = _byteswap_uint64(*(_QWORD *)(a1 + 49)); *(_QWORD *)(a2 + 32) = _byteswap_uint64(*(_QWORD *)(a1 + 57)); *(_QWORD *)(a2 + 192) = _byteswap_uint64(*(_QWORD *)(a1 + 65)); *(_QWORD *)(a2 + 200) = _byteswap_uint64(*(_QWORD *)(a1 + 73)); *(_QWORD *)(a2 + 208) = _byteswap_uint64(*(_QWORD *)(a1 + 81)); *(_QWORD *)(a2 + 56) = _byteswap_uint64(*(_QWORD *)(a1 + 89)); *(_QWORD *)(a2 + 64) = _byteswap_uint64(*(_QWORD *)(a1 + 97)); *(_QWORD *)(a2 + 40) = _byteswap_uint64(*(_QWORD *)(a1 + 105)); *(_QWORD *)(a2 + 48) = _byteswap_uint64(*(_QWORD *)(a1 + 113)); *(_QWORD *)(a2 + 216) = _byteswap_uint64(*(_QWORD *)(a1 + 121)); *(_DWORD *)(a2 + 72) = _byteswap_ulong(*(_DWORD *)(a1 + 133)); *(_QWORD *)(a2 + 224) = _byteswap_uint64(*(_QWORD *)(a1 + 137)); *(_QWORD *)(a2 + 248) = _byteswap_ulong(*(_DWORD *)(a1 + 145)); *(_QWORD *)(a2 + 240) = _byteswap_ulong(*(_DWORD *)(a1 + 149)); *(_DWORD *)(a2 + 360) = *(unsigned __int8 *)(a1 + 153); v9 = a1 + *(unsigned int *)(a2 + 412) + 155; if ( v3 ) { v10 = 0LL; do { *(_QWORD *)(*(_QWORD *)(a2 + 280) + v10) = _byteswap_uint64(*(_QWORD *)(v9 + v10)); v10 += 8LL; } while ( 8 * (_DWORD)v3 != v10 ); v9 += v10; } *(_QWORD *)(a2 + 288) = _byteswap_uint64(*(_QWORD *)v9); *(_QWORD *)(a2 + 304) = _byteswap_ulong(*(_DWORD *)(v9 + 8)); *(_QWORD *)(a2 + 312) = _byteswap_ulong(*(_DWORD *)(v9 + 12)); *(_QWORD *)(a2 + 328) = _byteswap_ulong(*(_DWORD *)(v9 + 16)); *(_QWORD *)(a2 + 320) = _byteswap_uint64(*(_QWORD *)(v9 + 20)); *(_QWORD *)(a2 + 336) = _byteswap_uint64(*(_QWORD *)(v9 + 28)); *(_QWORD *)(a2 + 344) = _byteswap_uint64(*(_QWORD *)(v9 + 36)); *(_QWORD *)(a2 + 352) = _byteswap_uint64(*(_QWORD *)(v9 + 44)); *(_QWORD *)(a2 + 296) = _byteswap_uint64(*(_QWORD *)(v9 + 52)); v7 = v9 + 4 * v3 + 60; if ( v6 ) { v11 = (unsigned int)(v4 + v5); v12 = 0LL; do { *(_QWORD *)(*(_QWORD *)(a2 + 256) + 8 * v12) = *(_QWORD *)v7; *(_QWORD *)(*(_QWORD *)(a2 + 264) + 8 * v12) = _byteswap_ulong(*(_DWORD *)(v7 + 8)); v7 += 12LL; ++v12; } while ( v11 != v12 ); } } return v7; }
_ma_state_info_read: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0x10] MOV qword ptr [RSI + 0x10],RAX MOVUPS XMM0,xmmword ptr [RDI] MOVUPS xmmword ptr [RSI],XMM0 MOVZX R9D,byte ptr [RSI + 0x12] MOVZX R8D,byte ptr [RSI + 0xf] MOVZX R12D,byte ptr [RSI + 0xe] SHL R12D,0x8 LEA R13D,[R12 + R8*0x1] CMP qword ptr [RSI + 0x100],0x0 JNZ 0x001341e9 LEA RAX,[RBX + 0x100] OR RDX,0x10 LEA ECX,[R13*0x8] MOV qword ptr [RBP + -0x38],R8 LEA R8,[RBX + 0x108] MOV qword ptr [RSP],0x0 XOR R15D,R15D XOR EDI,EDI MOV RSI,RDX MOV RDX,RAX MOV qword ptr [RBP + -0x30],R9 MOV R9,RCX XOR EAX,EAX CALL 0x0019de34 MOV R9,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + -0x38] TEST RAX,RAX JZ 0x0013442b LAB_001341e9: MOVZX EAX,word ptr [R14 + 0x18] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RBX + 0x16c],EAX MOVZX EAX,word ptr [R14 + 0x1a] ROL AX,0x8 MOVZX EAX,AX MOV dword ptr [RBX + 0x170],EAX MOVZX EAX,word ptr [R14 + 0x1c] SHL RAX,0x20 MOVZX ECX,byte ptr [R14 + 0x1e] SHL RCX,0x30 OR RCX,RAX MOV EAX,dword ptr [R14 + 0x1f] OR RAX,RCX MOV qword ptr [RBX + 0x178],RAX MOVZX EAX,word ptr [R14 + 0x23] SHL RAX,0x20 MOVZX ECX,byte ptr [R14 + 0x25] SHL RCX,0x30 OR RCX,RAX MOV EAX,dword ptr [R14 + 0x26] OR RAX,RCX MOV qword ptr [RBX + 0x180],RAX MOVZX EAX,word ptr [R14 + 0x2a] SHL RAX,0x20 MOVZX ECX,byte ptr [R14 + 0x2c] SHL RCX,0x30 OR RCX,RAX MOV EAX,dword ptr [R14 + 0x2d] OR RAX,RCX MOV qword ptr [RBX + 0x188],RAX MOV RAX,qword ptr [R14 + 0x31] BSWAP RAX MOV qword ptr [RBX + 0x18],RAX MOV RAX,qword ptr [R14 + 0x39] BSWAP RAX MOV qword ptr [RBX + 0x20],RAX MOV RAX,qword ptr [R14 + 0x41] BSWAP RAX MOV qword ptr [RBX + 0xc0],RAX MOV RAX,qword ptr [R14 + 0x49] BSWAP RAX MOV qword ptr [RBX + 0xc8],RAX MOV RAX,qword ptr [R14 + 0x51] BSWAP RAX MOV qword ptr [RBX + 0xd0],RAX MOV RAX,qword ptr [R14 + 0x59] BSWAP RAX MOV qword ptr [RBX + 0x38],RAX MOV RAX,qword ptr [R14 + 0x61] BSWAP RAX MOV qword ptr [RBX + 0x40],RAX MOV RAX,qword ptr [R14 + 0x69] BSWAP RAX MOV qword ptr [RBX + 0x28],RAX MOV RAX,qword ptr [R14 + 0x71] BSWAP RAX MOV qword ptr [RBX + 0x30],RAX MOV RAX,qword ptr [R14 + 0x79] BSWAP RAX MOV qword ptr [RBX + 0xd8],RAX MOV EAX,dword ptr [R14 + 0x85] BSWAP EAX MOV dword ptr [RBX + 0x48],EAX MOV RAX,qword ptr [R14 + 0x89] BSWAP RAX MOV qword ptr [RBX + 0xe0],RAX MOV EAX,dword ptr [R14 + 0x91] BSWAP EAX MOV qword ptr [RBX + 0xf8],RAX MOV EAX,dword ptr [R14 + 0x95] BSWAP EAX MOV qword ptr [RBX + 0xf0],RAX MOVZX EAX,byte ptr [R14 + 0x99] MOV dword ptr [RBX + 0x168],EAX MOV EAX,dword ptr [RBX + 0x19c] ADD RAX,R14 ADD RAX,0x9b TEST R9,R9 JZ 0x00134377 LEA EDX,[R9*0x8] XOR ECX,ECX LAB_00134359: MOV RSI,qword ptr [RAX + RCX*0x1] BSWAP RSI MOV RDI,qword ptr [RBX + 0x118] MOV qword ptr [RDI + RCX*0x1],RSI ADD RCX,0x8 CMP RDX,RCX JNZ 0x00134359 ADD RAX,RCX LAB_00134377: MOV RCX,qword ptr [RAX] BSWAP RCX MOV qword ptr [RBX + 0x120],RCX MOV ECX,dword ptr [RAX + 0x8] BSWAP ECX MOV qword ptr [RBX + 0x130],RCX MOV ECX,dword ptr [RAX + 0xc] BSWAP ECX MOV qword ptr [RBX + 0x138],RCX MOV ECX,dword ptr [RAX + 0x10] BSWAP ECX MOV qword ptr [RBX + 0x148],RCX MOV RCX,qword ptr [RAX + 0x14] BSWAP RCX MOV qword ptr [RBX + 0x140],RCX MOV RCX,qword ptr [RAX + 0x1c] BSWAP RCX MOV qword ptr [RBX + 0x150],RCX MOV RCX,qword ptr [RAX + 0x24] BSWAP RCX MOV qword ptr [RBX + 0x158],RCX MOV RCX,qword ptr [RAX + 0x2c] BSWAP RCX MOV qword ptr [RBX + 0x160],RCX MOV RCX,qword ptr [RAX + 0x34] BSWAP RCX MOV qword ptr [RBX + 0x128],RCX LEA R15,[RAX + R9*0x4] ADD R15,0x3c TEST R13D,R13D JZ 0x0013442b ADD R12D,R8D XOR EAX,EAX LAB_00134400: MOV RCX,qword ptr [RBX + 0x100] MOV RDX,qword ptr [R15] MOV qword ptr [RCX + RAX*0x8],RDX MOV ECX,dword ptr [R15 + 0x8] BSWAP ECX MOV RDX,qword ptr [RBX + 0x108] MOV qword ptr [RDX + RAX*0x8],RCX ADD R15,0xc INC RAX CMP R12,RAX JNZ 0x00134400 LAB_0013442b: MOV RAX,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 * _ma_state_info_read(int4 *param_1,int4 *param_2,ulong param_3) { int iVar1; byte bVar2; byte bVar3; byte bVar4; uint uVar5; ulong uVar6; int4 uVar7; int4 uVar8; int4 uVar9; long lVar10; ulong *puVar11; ulong uVar12; int iVar13; int8 *puVar14; *(int8 *)(param_2 + 4) = *(int8 *)(param_1 + 4); uVar7 = param_1[1]; uVar8 = param_1[2]; uVar9 = param_1[3]; *param_2 = *param_1; param_2[1] = uVar7; param_2[2] = uVar8; param_2[3] = uVar9; bVar2 = *(byte *)((long)param_2 + 0x12); bVar3 = *(byte *)((long)param_2 + 0xf); bVar4 = *(byte *)((long)param_2 + 0xe); iVar13 = (uint)bVar4 * 0x100 + (uint)bVar3; if ((*(long *)(param_2 + 0x40) == 0) && (iVar1 = iVar13 * 8, lVar10 = my_multi_malloc(0,param_3 | 0x10,param_2 + 0x40,iVar1,param_2 + 0x42,iVar1,0), lVar10 == 0)) { return (int8 *)0x0; } param_2[0x5b] = (uint)(ushort)(*(ushort *)(param_1 + 6) << 8 | *(ushort *)(param_1 + 6) >> 8); param_2[0x5c] = (uint)(ushort)(*(ushort *)((long)param_1 + 0x1a) << 8 | *(ushort *)((long)param_1 + 0x1a) >> 8); *(ulong *)(param_2 + 0x5e) = (ulong)*(uint *)((long)param_1 + 0x1f) | (ulong)*(byte *)((long)param_1 + 0x1e) << 0x30 | (ulong)*(ushort *)(param_1 + 7) << 0x20; *(ulong *)(param_2 + 0x60) = (ulong)*(uint *)((long)param_1 + 0x26) | (ulong)*(byte *)((long)param_1 + 0x25) << 0x30 | (ulong)*(ushort *)((long)param_1 + 0x23) << 0x20; *(ulong *)(param_2 + 0x62) = (ulong)*(uint *)((long)param_1 + 0x2d) | (ulong)*(byte *)(param_1 + 0xb) << 0x30 | (ulong)*(ushort *)((long)param_1 + 0x2a) << 0x20; uVar12 = *(ulong *)((long)param_1 + 0x31); *(ulong *)(param_2 + 6) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x39); *(ulong *)(param_2 + 8) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x41); *(ulong *)(param_2 + 0x30) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x49); *(ulong *)(param_2 + 0x32) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x51); *(ulong *)(param_2 + 0x34) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x59); *(ulong *)(param_2 + 0xe) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x61); *(ulong *)(param_2 + 0x10) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x69); *(ulong *)(param_2 + 10) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x71); *(ulong *)(param_2 + 0xc) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)param_1 + 0x79); *(ulong *)(param_2 + 0x36) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar5 = *(uint *)((long)param_1 + 0x85); param_2[0x12] = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18; uVar12 = *(ulong *)((long)param_1 + 0x89); *(ulong *)(param_2 + 0x38) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar5 = *(uint *)((long)param_1 + 0x91); *(ulong *)(param_2 + 0x3e) = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18); uVar5 = *(uint *)((long)param_1 + 0x95); *(ulong *)(param_2 + 0x3c) = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18); param_2[0x5a] = (uint)*(byte *)((long)param_1 + 0x99); puVar11 = (ulong *)((long)param_1 + (ulong)(uint)param_2[0x67] + 0x9b); if ((ulong)bVar2 != 0) { uVar12 = 0; do { uVar6 = *(ulong *)((long)puVar11 + uVar12); *(ulong *)(*(long *)(param_2 + 0x46) + uVar12) = uVar6 >> 0x38 | (uVar6 & 0xff000000000000) >> 0x28 | (uVar6 & 0xff0000000000) >> 0x18 | (uVar6 & 0xff00000000) >> 8 | (uVar6 & 0xff000000) << 8 | (uVar6 & 0xff0000) << 0x18 | (uVar6 & 0xff00) << 0x28 | uVar6 << 0x38; uVar12 = uVar12 + 8; } while ((uint)bVar2 * 8 != uVar12); puVar11 = (ulong *)((long)puVar11 + uVar12); } uVar12 = *puVar11; *(ulong *)(param_2 + 0x48) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar5 = (uint)puVar11[1]; *(ulong *)(param_2 + 0x4c) = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18); uVar5 = *(uint *)((long)puVar11 + 0xc); *(ulong *)(param_2 + 0x4e) = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18); uVar5 = (uint)puVar11[2]; *(ulong *)(param_2 + 0x52) = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18); uVar12 = *(ulong *)((long)puVar11 + 0x14); *(ulong *)(param_2 + 0x50) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)puVar11 + 0x1c); *(ulong *)(param_2 + 0x54) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)puVar11 + 0x24); *(ulong *)(param_2 + 0x56) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)puVar11 + 0x2c); *(ulong *)(param_2 + 0x58) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; uVar12 = *(ulong *)((long)puVar11 + 0x34); *(ulong *)(param_2 + 0x4a) = uVar12 >> 0x38 | (uVar12 & 0xff000000000000) >> 0x28 | (uVar12 & 0xff0000000000) >> 0x18 | (uVar12 & 0xff00000000) >> 8 | (uVar12 & 0xff000000) << 8 | (uVar12 & 0xff0000) << 0x18 | (uVar12 & 0xff00) << 0x28 | uVar12 << 0x38; puVar14 = (int8 *)((long)puVar11 + (ulong)bVar2 * 4 + 0x3c); if (iVar13 != 0) { uVar12 = 0; do { *(int8 *)(*(long *)(param_2 + 0x40) + uVar12 * 8) = *puVar14; uVar5 = *(uint *)(puVar14 + 1); *(ulong *)(*(long *)(param_2 + 0x42) + uVar12 * 8) = (ulong)(uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18); puVar14 = (int8 *)((long)puVar14 + 0xc); uVar12 = uVar12 + 1; } while (CONCAT11(bVar4,bVar3) != uVar12); } return puVar14; }
29,681
string_format[abi:cxx11](char const*, ...)
llama.cpp/common/common.cpp
std::string string_format(const char * fmt, ...) { va_list ap; va_list ap2; va_start(ap, fmt); va_copy(ap2, ap); int size = vsnprintf(NULL, 0, fmt, ap); GGML_ASSERT(size >= 0 && size < INT_MAX); // NOLINT std::vector<char> buf(size + 1); int size2 = vsnprintf(buf.data(), size + 1, fmt, ap2); GGML_ASSERT(size2 == size); va_end(ap2); va_end(ap); return std::string(buf.data(), size); }
O3
cpp
string_format[abi:cxx11](char const*, ...): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x110, %rsp # imm = 0x110 movq %rsi, %r14 movq %rdi, %rbx leaq 0x60(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0xf6ce2 movaps %xmm0, 0x90(%rsp) movaps %xmm1, 0xa0(%rsp) movaps %xmm2, 0xb0(%rsp) movaps %xmm3, 0xc0(%rsp) movaps %xmm4, 0xd0(%rsp) movaps %xmm5, 0xe0(%rsp) movaps %xmm6, 0xf0(%rsp) movaps %xmm7, 0x100(%rsp) movabsq $0x3000000010, %rax # imm = 0x3000000010 leaq 0x40(%rsp), %rcx movq %rax, (%rcx) leaq 0x140(%rsp), %rax movq %rax, 0x8(%rcx) movq %rsi, 0x10(%rcx) movq %rsi, 0x30(%rsp) movq (%rcx), %rax movq %rax, 0x20(%rsp) movq 0x8(%rcx), %rax movq %rax, 0x28(%rsp) xorl %edi, %edi xorl %esi, %esi movq %r14, %rdx callq 0x21508 cmpl $0x7fffffff, %eax # imm = 0x7FFFFFFF jae 0xf6da2 movl %eax, %r15d leal 0x1(%r15), %r12d leaq 0x8(%rsp), %r13 leaq 0x7(%rsp), %rdx movq %r13, %rdi movq %r12, %rsi callq 0xcf0ca movq (%r13), %rdi leaq 0x20(%rsp), %rcx movq %r12, %rsi movq %r14, %rdx callq 0x21508 cmpl %r15d, %eax jne 0xf6dc3 movq 0x8(%rsp), %rsi movl %r15d, %edx leaq 0x7(%rsp), %rcx movq %rbx, %rdi callq 0x20e80 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xf6d8e movq 0x18(%rsp), %rsi subq %rdi, %rsi callq 0x20180 movq %rbx, %rax addq $0x110, %rsp # imm = 0x110 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0x2dc7c(%rip), %rdi # 0x124a25 leaq 0x23123(%rip), %rdx # 0x119ed3 leaq 0x2dcab(%rip), %rcx # 0x124a62 movl $0x188, %esi # imm = 0x188 xorl %eax, %eax callq 0x20e70 leaq 0x2dc5b(%rip), %rdi # 0x124a25 leaq 0x23102(%rip), %rdx # 0x119ed3 leaq 0x2dca6(%rip), %rcx # 0x124a7e movl $0x18b, %esi # imm = 0x18B xorl %eax, %eax callq 0x20e70 jmp 0xf6de6 movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xf6e00 movq 0x18(%rsp), %rsi subq %rdi, %rsi callq 0x20180 movq %rbx, %rdi callq 0x20af0
_Z13string_formatB5cxx11PKcz: push r15 push r14 push r13 push r12 push rbx sub rsp, 110h mov r14, rsi mov rbx, rdi lea rsi, [rsp+138h+var_D8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_F6CE2 movaps [rsp+138h+var_A8], xmm0 movaps [rsp+138h+var_98], xmm1 movaps [rsp+138h+var_88], xmm2 movaps [rsp+138h+var_78], xmm3 movaps [rsp+138h+var_68], xmm4 movaps [rsp+138h+var_58], xmm5 movaps [rsp+138h+var_48], xmm6 movaps [rsp+138h+var_38], xmm7 loc_F6CE2: mov rax, 3000000010h lea rcx, [rsp+138h+var_F8] mov [rcx], rax lea rax, [rsp+138h+arg_0] mov [rcx+8], rax mov [rcx+10h], rsi mov [rsp+138h+var_108], rsi mov rax, [rcx] mov [rsp+138h+var_118], rax mov rax, [rcx+8] mov [rsp+138h+var_110], rax xor edi, edi xor esi, esi mov rdx, r14 call vsnprintf cmp eax, 7FFFFFFFh jnb short loc_F6DA2 mov r15d, eax lea r12d, [r15+1] lea r13, [rsp+138h+var_130] lea rdx, [rsp+138h+var_131] mov rdi, r13 mov rsi, r12 call _ZNSt6vectorIcSaIcEEC2EmRKS0_; std::vector<char>::vector(ulong,std::allocator<char> const&) mov rdi, [r13+0] lea rcx, [rsp+138h+var_118] mov rsi, r12 mov rdx, r14 call vsnprintf cmp eax, r15d jnz short loc_F6DC3 mov rsi, [rsp+138h+var_130] mov edx, r15d lea rcx, [rsp+138h+var_131] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_; std::string::basic_string(char const*,ulong,std::allocator<char> const&) mov rdi, [rsp+138h+var_130]; void * test rdi, rdi jz short loc_F6D8E mov rsi, [rsp+138h+var_120] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F6D8E: mov rax, rbx add rsp, 110h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_F6DA2: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSize0SizeIntMa; "size >= 0 && size < INT_MAX" mov esi, 188h xor eax, eax call _ggml_abort loc_F6DC3: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSize2Size; "size2 == size" mov esi, 18Bh xor eax, eax call _ggml_abort jmp short $+2 loc_F6DE6: mov rbx, rax mov rdi, [rsp+138h+var_130]; void * test rdi, rdi jz short loc_F6E00 mov rsi, [rsp+138h+var_120] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F6E00: mov rdi, rbx call __Unwind_Resume
long long string_format[abi:cxx11]( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { unsigned int v15; // eax unsigned int v16; // r15d signed long long v17; // r12 long long v19; // rax long long v20; // rbx char v21; // [rsp+7h] [rbp-131h] BYREF void *v22; // [rsp+8h] [rbp-130h] BYREF long long v23; // [rsp+18h] [rbp-120h] _QWORD v24[4]; // [rsp+20h] [rbp-118h] BYREF _QWORD v25[4]; // [rsp+40h] [rbp-F8h] BYREF _BYTE v26[16]; // [rsp+60h] [rbp-D8h] BYREF long long v27; // [rsp+70h] [rbp-C8h] long long v28; // [rsp+78h] [rbp-C0h] long long v29; // [rsp+80h] [rbp-B8h] long long v30; // [rsp+88h] [rbp-B0h] __m128 v31; // [rsp+90h] [rbp-A8h] __m128 v32; // [rsp+A0h] [rbp-98h] __m128 v33; // [rsp+B0h] [rbp-88h] __m128 v34; // [rsp+C0h] [rbp-78h] __m128 v35; // [rsp+D0h] [rbp-68h] __m128 v36; // [rsp+E0h] [rbp-58h] __m128 v37; // [rsp+F0h] [rbp-48h] __m128 v38; // [rsp+100h] [rbp-38h] v31 = a7; v32 = a8; v33 = a9; v34 = a10; v35 = a11; v36 = a12; v37 = a13; v38 = a14; v27 = a3; v28 = a4; v29 = a5; v30 = a6; v25[0] = 0x3000000010LL; v25[1] = &a15; v25[2] = v26; v24[2] = v26; v24[0] = 0x3000000010LL; v24[1] = &a15; v15 = vsnprintf(0LL, 0LL, a2, v25); if ( v15 >= 0x7FFFFFFF ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 392LL, "GGML_ASSERT(%s) failed", "size >= 0 && size < INT_MAX"); LABEL_7: ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 395LL, "GGML_ASSERT(%s) failed", "size2 == size"); v20 = v19; if ( v22 ) operator delete(v22, v23 - (_QWORD)v22); _Unwind_Resume(v20); } v16 = v15; v17 = v15 + 1; std::vector<char>::vector(&v22, v17); if ( (unsigned int)vsnprintf(v22, v17, a2, v24) != v16 ) goto LABEL_7; std::string::basic_string(a1, v22, v16, &v21); if ( v22 ) operator delete(v22, v23 - (_QWORD)v22); return a1; }
string_format[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x110 MOV R14,RSI MOV RBX,RDI LEA RSI,[RSP + 0x60] 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 0x001f6ce2 MOVAPS xmmword ptr [RSP + 0x90],XMM0 MOVAPS xmmword ptr [RSP + 0xa0],XMM1 MOVAPS xmmword ptr [RSP + 0xb0],XMM2 MOVAPS xmmword ptr [RSP + 0xc0],XMM3 MOVAPS xmmword ptr [RSP + 0xd0],XMM4 MOVAPS xmmword ptr [RSP + 0xe0],XMM5 MOVAPS xmmword ptr [RSP + 0xf0],XMM6 MOVAPS xmmword ptr [RSP + 0x100],XMM7 LAB_001f6ce2: MOV RAX,0x3000000010 LEA RCX,[RSP + 0x40] MOV qword ptr [RCX],RAX LEA RAX,[RSP + 0x140] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RCX + 0x10],RSI MOV qword ptr [RSP + 0x30],RSI MOV RAX,qword ptr [RCX] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RCX + 0x8] MOV qword ptr [RSP + 0x28],RAX XOR EDI,EDI XOR ESI,ESI MOV RDX,R14 CALL 0x00121508 CMP EAX,0x7fffffff JNC 0x001f6da2 MOV R15D,EAX LEA R12D,[R15 + 0x1] LEA R13,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R13 MOV RSI,R12 CALL 0x001cf0ca MOV RDI,qword ptr [R13] LEA RCX,[RSP + 0x20] MOV RSI,R12 MOV RDX,R14 CALL 0x00121508 CMP EAX,R15D JNZ 0x001f6dc3 MOV RSI,qword ptr [RSP + 0x8] MOV EDX,R15D LAB_001f6d6a: LEA RCX,[RSP + 0x7] MOV RDI,RBX CALL 0x00120e80 LAB_001f6d77: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x001f6d8e MOV RSI,qword ptr [RSP + 0x18] SUB RSI,RDI CALL 0x00120180 LAB_001f6d8e: MOV RAX,RBX ADD RSP,0x110 POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_001f6da2: LEA RDI,[0x224a25] LEA RDX,[0x219ed3] LEA RCX,[0x224a62] MOV ESI,0x188 XOR EAX,EAX CALL 0x00120e70 LAB_001f6dc3: LEA RDI,[0x224a25] LEA RDX,[0x219ed3] LEA RCX,[0x224a7e] MOV ESI,0x18b XOR EAX,EAX CALL 0x00120e70
/* string_format[abi:cxx11](char const*, ...) */ char * string_format_abi_cxx11_(char *param_1,...) { char in_AL; uint uVar1; uint uVar2; int8 in_RCX; int8 in_RDX; char *in_RSI; 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; allocator local_131; char *local_130 [2]; long local_120; int8 local_118; int1 *local_110; int1 *local_108; 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_108 = 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_f8 = 0x3000000010; local_110 = &stack0x00000008; local_118 = 0x3000000010; local_f0 = local_110; local_e8 = local_108; local_c8 = in_RDX; local_c0 = in_RCX; local_b8 = in_R8; local_b0 = in_R9; uVar1 = vsnprintf((char *)0x0,0,in_RSI,&local_f8); if (uVar1 < 0x7fffffff) { std::vector<char,std::allocator<char>>::vector((ulong)local_130,(allocator *)(ulong)(uVar1 + 1)) ; uVar2 = vsnprintf(local_130[0],(size_t)(ulong)(uVar1 + 1),in_RSI,&local_118); if (uVar2 == uVar1) { /* try { // try from 001f6d6a to 001f6d76 has its CatchHandler @ 001f6de4 */ std::__cxx11::string::string((string *)param_1,local_130[0],(ulong)uVar1,&local_131); if (local_130[0] != (char *)0x0) { operator_delete(local_130[0],local_120 - (long)local_130[0]); } return param_1; } /* try { // try from 001f6dc3 to 001f6de3 has its CatchHandler @ 001f6de6 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",0x18b, "GGML_ASSERT(%s) failed","size2 == size"); } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",0x188, "GGML_ASSERT(%s) failed","size >= 0 && size < INT_MAX"); }
29,682
wsrep_create_threadvars()
eloqsql/sql/wsrep_thd.cc
int wsrep_create_threadvars() { int ret= 0; if (thread_handling == SCHEDULER_TYPES_COUNT) { /* Caller should have called wsrep_reset_threadvars() before this method. */ DBUG_ASSERT(!pthread_getspecific(THR_KEY_mysys)); pthread_setspecific(THR_KEY_mysys, 0); ret= my_thread_init(); } return ret; }
O0
cpp
wsrep_create_threadvars(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl $0x0, -0x4(%rbp) leaq 0xd489fa(%rip), %rax # 0x1cc9440 cmpq $0x2, (%rax) jne 0xf80a6d jmp 0xf80a4e jmp 0xf80a50 leaq 0x16208bd(%rip), %rax # 0x25a1314 movl (%rax), %edi xorl %eax, %eax movl %eax, %esi callq 0x7585e0 callq 0x12ca170 movsbl %al, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z23wsrep_create_threadvarsv: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], 0 lea rax, thread_handling cmp qword ptr [rax], 2 jnz short loc_F80A6D jmp short $+2 loc_F80A4E: jmp short $+2 loc_F80A50: lea rax, THR_KEY_mysys mov edi, [rax] xor eax, eax mov esi, eax call _pthread_setspecific call my_thread_init movsx eax, al mov [rbp+var_4], eax loc_F80A6D: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
long long wsrep_create_threadvars(void) { unsigned int v1; // [rsp+Ch] [rbp-4h] v1 = 0; if ( thread_handling == 2 ) { pthread_setspecific(THR_KEY_mysys, 0LL); return (unsigned int)(char)my_thread_init(); } return v1; }
_ma_calc_bin_pack_key_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] ADD ECX,dword ptr [RAX + 0x14] ADD ECX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x40],ECX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x30],ECX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x8],RCX CMP qword ptr [RBP + -0x30],0x0 JZ 0x00f80b28 MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x40] ADD RAX,RCX MOV qword ptr [RBP + -0x58],RAX LAB_00f80aa1: MOV RAX,qword ptr [RBP + -0x50] MOVZX ECX,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x30] MOVZX EDX,byte ptr [RAX] XOR EAX,EAX CMP ECX,EDX MOV byte ptr [RBP + -0x69],AL JNZ 0x00f80ac6 MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x58] SETC AL MOV byte ptr [RBP + -0x69],AL LAB_00f80ac6: MOV AL,byte ptr [RBP + -0x69] TEST AL,0x1 JNZ 0x00f80acf JMP 0x00f80aeb LAB_00f80acf: JMP 0x00f80ad1 LAB_00f80ad1: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x00f80aa1 LAB_00f80aeb: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX] SUB RAX,RCX MOV ECX,EAX MOV dword ptr [RBP + -0x44],ECX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x20],ECX MOV EAX,dword ptr [RBP + -0x40] SUB EAX,dword ptr [RBP + -0x44] MOV ESI,dword ptr [RBP + -0x44] MOV ECX,0x1 MOV EDX,0x3 CMP ESI,0xff CMOVNC ECX,EDX ADD EAX,ECX MOV dword ptr [RBP + -0x3c],EAX JMP 0x00f80b43 LAB_00f80b28: MOV dword ptr [RBP + -0x44],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x20],0x0 MOV EAX,dword ptr [RBP + -0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX LAB_00f80b43: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RCX + 0x10],RAX CMP RAX,0x0 JZ 0x00f80d62 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0xff JZ 0x00f80b85 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x20],RCX MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x5c],EAX MOV dword ptr [RBP + -0x60],0x1 JMP 0x00f80bb9 LAB_00f80b85: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RCX + 0x1] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x3 MOV qword ptr [RBP + -0x20],RAX MOV dword ptr [RBP + -0x60],0x3 LAB_00f80bb9: CMP qword ptr [RBP + -0x30],0x0 JNZ 0x00f80c45 CMP qword ptr [RBP + -0x28],0x0 JZ 0x00f80c45 CMP dword ptr [RBP + -0x5c],0x0 JZ 0x00f80c45 MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x5c] ADD RAX,RCX MOV qword ptr [RBP + -0x68],RAX LAB_00f80bea: MOV RAX,qword ptr [RBP + -0x50] MOVZX ECX,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOVZX EDX,byte ptr [RAX] XOR EAX,EAX CMP ECX,EDX MOV byte ptr [RBP + -0x6a],AL JNZ 0x00f80c0f MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x68] SETC AL MOV byte ptr [RBP + -0x6a],AL LAB_00f80c0f: MOV AL,byte ptr [RBP + -0x6a] TEST AL,0x1 JNZ 0x00f80c18 JMP 0x00f80c34 LAB_00f80c18: JMP 0x00f80c1a LAB_00f80c1a: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00f80bea LAB_00f80c34: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX] SUB RAX,RCX MOV dword ptr [RBP + -0x44],EAX LAB_00f80c45: MOV EAX,dword ptr [RBP + -0x5c] CMP EAX,dword ptr [RBP + -0x44] JBE 0x00f80cac MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x28],ECX MOV ECX,dword ptr [RBP + -0x5c] SUB ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x38],ECX MOV EDX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x8] MOV EDX,EDX ADD RCX,RDX MOV qword ptr [RAX + 0x8],RCX MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x38] ADD EAX,dword ptr [RCX + 0x38] SUB EAX,dword ptr [RBP + -0x60] MOV ESI,dword ptr [RBP + -0x44] MOV ECX,0x1 MOV EDX,0x3 CMP ESI,0xff CMOVNC ECX,EDX ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00f80d6f LAB_00f80cac: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x5c] ADD RAX,RCX MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x38],0x0 LAB_00f80cc8: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x50],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x20] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JNZ 0x00f80cf2 JMP 0x00f80cc8 LAB_00f80cf2: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX] SUB RAX,RCX SUB EAX,0x1 MOV dword ptr [RBP + -0x44],EAX CMP EAX,dword ptr [RBP + -0x5c] JNZ 0x00f80d26 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x10],0x0 MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00f80d6f LAB_00f80d26: MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x28],ECX MOV EAX,dword ptr [RBP + -0x3c] MOV ECX,dword ptr [RBP + -0x44] SUB ECX,dword ptr [RBP + -0x5c] SUB EAX,ECX SUB EAX,dword ptr [RBP + -0x60] MOV ESI,dword ptr [RBP + -0x44] MOV ECX,0x1 MOV EDX,0x3 CMP ESI,0xff CMOVNC ECX,EDX ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00f80d6f LAB_00f80d62: MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x38] MOV dword ptr [RCX + 0x44],EAX MOV dword ptr [RBP + -0x4],EAX LAB_00f80d6f: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int _ma_calc_bin_pack_key_length (int8 *param_1,int param_2,byte *param_3,char *param_4,char *param_5, long *param_6) { byte bVar1; byte bVar2; char *pcVar3; uint uVar4; byte *pbVar5; int local_68; uint local_64; byte *local_58; uint local_4c; int local_44; char *local_38; char *local_30; byte *local_28; int local_c; local_58 = (byte *)*param_1; uVar4 = *(int *)(param_1 + 2) + *(int *)((long)param_1 + 0x14) + param_2; *(uint *)(param_6 + 6) = uVar4; *param_6 = (long)local_58; param_6[1] = (long)param_4; local_38 = param_5; if (param_5 == (char *)0x0) { local_4c = 0; *(int4 *)(param_6 + 4) = 0; local_44 = uVar4 + 1; } else { pcVar3 = (char *)local_58 + uVar4; for (; *local_58 == *local_38 && local_58 < pcVar3; local_58 = local_58 + 1) { local_38 = local_38 + 1; } local_4c = (int)local_58 - (int)*param_6; *(uint *)(param_6 + 4) = local_4c; local_44 = 1; if (0xfe < local_4c) { local_44 = 3; } local_44 = (uVar4 - local_4c) + local_44; } param_6[2] = (long)param_3; if (param_3 == (byte *)0x0) { *(int *)((long)param_6 + 0x44) = local_44; local_c = local_44; } else { if (*param_3 == 0xff) { local_64 = (uint)CONCAT11(param_3[1],param_3[2]); local_28 = param_3 + 3; local_68 = 3; } else { local_28 = param_3 + 1; local_64 = (uint)*param_3; local_68 = 1; } if (((local_38 == (char *)0x0) && (param_4 != (char *)0x0)) && (local_64 != 0)) { local_58 = (byte *)*param_6; pcVar3 = (char *)local_58 + local_64; local_30 = param_4; for (; *local_58 == *local_30 && local_58 < pcVar3; local_58 = local_58 + 1) { local_30 = local_30 + 1; } local_4c = (int)local_58 - (int)*param_6; } if (local_4c < local_64) { *(uint *)(param_6 + 5) = local_4c; *(uint *)(param_6 + 7) = local_64 - local_4c; param_6[1] = param_6[1] + (ulong)local_4c; local_c = 1; if (0xfe < local_4c) { local_c = 3; } local_c = ((local_44 + (int)param_6[7]) - local_68) + local_c; *(int *)((long)param_6 + 0x44) = local_c; } else { *(int4 *)(param_6 + 7) = 0; local_58 = (byte *)(*param_6 + (ulong)local_64); do { pbVar5 = local_58 + 1; bVar1 = *local_58; bVar2 = *local_28; local_58 = pbVar5; local_28 = local_28 + 1; } while (bVar1 == bVar2); uVar4 = ((int)pbVar5 - (int)*param_6) - 1; if (uVar4 == local_64) { param_6[2] = 0; *(int *)((long)param_6 + 0x44) = local_44; local_c = local_44; } else { *(uint *)(param_6 + 5) = uVar4; local_c = 1; if (0xfe < uVar4) { local_c = 3; } local_c = ((local_44 - (uVar4 - local_64)) - local_68) + local_c; *(int *)((long)param_6 + 0x44) = local_c; } } } return local_c; }
29,683
bf_add_limb
bluesky950520[P]quickjs/libbf.c
static int bf_add_limb(bf_t *a, slimb_t *ppos, limb_t v) { slimb_t pos; pos = *ppos; if (unlikely(pos < 0)) { limb_t new_size, d, *new_tab; new_size = bf_max(a->len + 1, a->len * 3 / 2); new_tab = bf_realloc(a->ctx, a->tab, sizeof(limb_t) * new_size); if (!new_tab) return -1; a->tab = new_tab; d = new_size - a->len; memmove(a->tab + d, a->tab, a->len * sizeof(limb_t)); a->len = new_size; pos += d; } a->tab[pos--] = v; *ppos = pos; return 0; }
O0
c
bf_add_limb: subq $0x48, %rsp movq %rdi, 0x38(%rsp) movq %rsi, 0x30(%rsp) movq %rdx, 0x28(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) setl %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xf60b9 movq 0x38(%rsp), %rax movq 0x18(%rax), %rdi addq $0x1, %rdi movq 0x38(%rsp), %rax imulq $0x3, 0x18(%rax), %rsi shrq %rsi callq 0xe5da0 movq %rax, 0x18(%rsp) movq 0x38(%rsp), %rax movq (%rax), %rdi movq 0x38(%rsp), %rax movq 0x20(%rax), %rsi movq 0x18(%rsp), %rdx shlq $0x3, %rdx callq 0xe4da0 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0xf604b movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF jmp 0xf60f1 movq 0x8(%rsp), %rcx movq 0x38(%rsp), %rax movq %rcx, 0x20(%rax) movq 0x18(%rsp), %rax movq 0x38(%rsp), %rcx subq 0x18(%rcx), %rax movq %rax, 0x10(%rsp) movq 0x38(%rsp), %rax movq 0x20(%rax), %rdi movq 0x10(%rsp), %rax shlq $0x3, %rax addq %rax, %rdi movq 0x38(%rsp), %rax movq 0x20(%rax), %rsi movq 0x38(%rsp), %rax movq 0x18(%rax), %rdx shlq $0x3, %rdx callq 0xe700 movq 0x18(%rsp), %rcx movq 0x38(%rsp), %rax movq %rcx, 0x18(%rax) movq 0x10(%rsp), %rax addq 0x20(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rdx movq 0x38(%rsp), %rax movq 0x20(%rax), %rax movq 0x20(%rsp), %rcx movq %rcx, %rsi addq $-0x1, %rsi movq %rsi, 0x20(%rsp) movq %rdx, (%rax,%rcx,8) movq 0x20(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) movl $0x0, 0x44(%rsp) movl 0x44(%rsp), %eax addq $0x48, %rsp retq nopw (%rax,%rax)
bf_add_limb: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_18], rsi mov [rsp+48h+var_20], rdx mov rax, [rsp+48h+var_18] mov rax, [rax] mov [rsp+48h+var_28], rax cmp [rsp+48h+var_28], 0 setl al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_F60B9 mov rax, [rsp+48h+var_10] mov rdi, [rax+18h] add rdi, 1 mov rax, [rsp+48h+var_10] imul rsi, [rax+18h], 3 shr rsi, 1 call bf_max mov [rsp+48h+var_30], rax mov rax, [rsp+48h+var_10] mov rdi, [rax] mov rax, [rsp+48h+var_10] mov rsi, [rax+20h] mov rdx, [rsp+48h+var_30] shl rdx, 3 call bf_realloc_0 mov [rsp+48h+var_40], rax cmp [rsp+48h+var_40], 0 jnz short loc_F604B mov [rsp+48h+var_4], 0FFFFFFFFh jmp loc_F60F1 loc_F604B: mov rcx, [rsp+48h+var_40] mov rax, [rsp+48h+var_10] mov [rax+20h], rcx mov rax, [rsp+48h+var_30] mov rcx, [rsp+48h+var_10] sub rax, [rcx+18h] mov [rsp+48h+var_38], rax mov rax, [rsp+48h+var_10] mov rdi, [rax+20h] mov rax, [rsp+48h+var_38] shl rax, 3 add rdi, rax mov rax, [rsp+48h+var_10] mov rsi, [rax+20h] mov rax, [rsp+48h+var_10] mov rdx, [rax+18h] shl rdx, 3 call _memmove mov rcx, [rsp+48h+var_30] mov rax, [rsp+48h+var_10] mov [rax+18h], rcx mov rax, [rsp+48h+var_38] add rax, [rsp+48h+var_28] mov [rsp+48h+var_28], rax loc_F60B9: mov rdx, [rsp+48h+var_20] mov rax, [rsp+48h+var_10] mov rax, [rax+20h] mov rcx, [rsp+48h+var_28] mov rsi, rcx add rsi, 0FFFFFFFFFFFFFFFFh mov [rsp+48h+var_28], rsi mov [rax+rcx*8], rdx mov rcx, [rsp+48h+var_28] mov rax, [rsp+48h+var_18] mov [rax], rcx mov [rsp+48h+var_4], 0 loc_F60F1: mov eax, [rsp+48h+var_4] add rsp, 48h retn
long long bf_add_limb(long long *a1, long long *a2, long long a3) { long long v3; // rcx long long v4; // r8 long long v5; // r9 long long v7; // [rsp+8h] [rbp-40h] long long v8; // [rsp+10h] [rbp-38h] long long v9; // [rsp+18h] [rbp-30h] long long v10; // [rsp+20h] [rbp-28h] v10 = *a2; if ( *a2 >= 0 ) goto LABEL_5; v9 = bf_max(a1[3] + 1, (unsigned long long)(3 * a1[3]) >> 1); v7 = bf_realloc_0(*a1, a1[4], 8 * v9, v3, v4, v5); if ( v7 ) { a1[4] = v7; v8 = v9 - a1[3]; memmove(8 * v8 + a1[4], a1[4], 8 * a1[3]); a1[3] = v9; v10 += v8; LABEL_5: *(_QWORD *)(a1[4] + 8 * v10) = a3; *a2 = v10 - 1; return 0; } return (unsigned int)-1; }
bf_add_limb: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 SETL AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001f60b9 MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x1 MOV RAX,qword ptr [RSP + 0x38] IMUL RSI,qword ptr [RAX + 0x18],0x3 SHR RSI,0x1 CALL 0x001e5da0 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RAX + 0x20] MOV RDX,qword ptr [RSP + 0x18] SHL RDX,0x3 CALL 0x001e4da0 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JNZ 0x001f604b MOV dword ptr [RSP + 0x44],0xffffffff JMP 0x001f60f1 LAB_001f604b: MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x38] SUB RAX,qword ptr [RCX + 0x18] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x10] SHL RAX,0x3 ADD RDI,RAX MOV RAX,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RAX + 0x18] SHL RDX,0x3 CALL 0x0010e700 MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RSP + 0x10] ADD RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x20],RAX LAB_001f60b9: MOV RDX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x20] MOV RSI,RCX ADD RSI,-0x1 MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RAX + RCX*0x8],RDX MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV dword ptr [RSP + 0x44],0x0 LAB_001f60f1: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x48 RET
int4 bf_add_limb(int8 *param_1,long *param_2,int8 param_3) { long lVar1; long lVar2; long local_28; local_28 = *param_2; if (local_28 < 0) { lVar1 = bf_max(param_1[3] + 1,(ulong)(param_1[3] * 3) >> 1); lVar2 = bf_realloc(*param_1,param_1[4],lVar1 << 3); if (lVar2 == 0) { return 0xffffffff; } param_1[4] = lVar2; lVar2 = param_1[3]; memmove((void *)(param_1[4] + (lVar1 - lVar2) * 8),(void *)param_1[4],param_1[3] << 3); param_1[3] = lVar1; local_28 = (lVar1 - lVar2) + local_28; } *(int8 *)(param_1[4] + local_28 * 8) = param_3; *param_2 = local_28 + -1; return 0; }
29,684
bf_add_limb
bluesky950520[P]quickjs/libbf.c
static int bf_add_limb(bf_t *a, slimb_t *ppos, limb_t v) { slimb_t pos; pos = *ppos; if (unlikely(pos < 0)) { limb_t new_size, d, *new_tab; new_size = bf_max(a->len + 1, a->len * 3 / 2); new_tab = bf_realloc(a->ctx, a->tab, sizeof(limb_t) * new_size); if (!new_tab) return -1; a->tab = new_tab; d = new_size - a->len; memmove(a->tab + d, a->tab, a->len * sizeof(limb_t)); a->len = new_size; pos += d; } a->tab[pos--] = v; *ppos = pos; return 0; }
O1
c
bf_add_limb: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 movq (%rsi), %rsi testq %rsi, %rsi js 0x9007a movq 0x20(%r15), %rax movq %r14, (%rax,%rsi,8) decq %rsi movq %rsi, (%rbx) xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x8(%rsp), %rdx movq %r15, %rdi callq 0x1385e movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testb $0x1, %cl jne 0x90070 movq 0x8(%rsp), %rsi jmp 0x90060
bf_add_limb: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rsi mov r15, rdi mov rsi, [rsi] test rsi, rsi js short loc_9007A loc_90060: mov rax, [r15+20h] mov [rax+rsi*8], r14 dec rsi mov [rbx], rsi xor eax, eax loc_90070: add rsp, 10h pop rbx pop r14 pop r15 retn loc_9007A: lea rdx, [rsp+28h+var_20] mov rdi, r15 call bf_add_limb_cold_1 mov ecx, eax mov eax, 0FFFFFFFFh test cl, 1 jnz short loc_90070 mov rsi, [rsp+28h+var_20] jmp short loc_90060
long long bf_add_limb(_QWORD *a1, long long *a2, long long a3) { long long v5; // rsi long long result; // rax bool v7; // cl long long v8[4]; // [rsp+8h] [rbp-20h] BYREF v5 = *a2; if ( v5 >= 0 ) goto LABEL_2; v7 = bf_add_limb_cold_1(a1, v5, v8); result = 0xFFFFFFFFLL; if ( !v7 ) { v5 = v8[0]; LABEL_2: *(_QWORD *)(a1[4] + 8 * v5) = a3; *a2 = v5 - 1; return 0LL; } return result; }
bf_add_limb: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RSI MOV R15,RDI MOV RSI,qword ptr [RSI] TEST RSI,RSI JS 0x0019007a LAB_00190060: MOV RAX,qword ptr [R15 + 0x20] MOV qword ptr [RAX + RSI*0x8],R14 DEC RSI MOV qword ptr [RBX],RSI XOR EAX,EAX LAB_00190070: ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_0019007a: LEA RDX,[RSP + 0x8] MOV RDI,R15 CALL 0x0011385e MOV ECX,EAX MOV EAX,0xffffffff TEST CL,0x1 JNZ 0x00190070 MOV RSI,qword ptr [RSP + 0x8] JMP 0x00190060
int8 bf_add_limb(long param_1,long *param_2,int8 param_3) { uint uVar1; long lVar2; long local_20; lVar2 = *param_2; if ((lVar2 < 0) && (uVar1 = bf_add_limb_cold_1(param_1,lVar2,&local_20), lVar2 = local_20, (uVar1 & 1) != 0)) { return 0xffffffff; } *(int8 *)(*(long *)(param_1 + 0x20) + lVar2 * 8) = param_3; *param_2 = lVar2 + -1; return 0; }
29,685
bf_add_limb
bluesky950520[P]quickjs/libbf.c
static int bf_add_limb(bf_t *a, slimb_t *ppos, limb_t v) { slimb_t pos; pos = *ppos; if (unlikely(pos < 0)) { limb_t new_size, d, *new_tab; new_size = bf_max(a->len + 1, a->len * 3 / 2); new_tab = bf_realloc(a->ctx, a->tab, sizeof(limb_t) * new_size); if (!new_tab) return -1; a->tab = new_tab; d = new_size - a->len; memmove(a->tab + d, a->tab, a->len * sizeof(limb_t)); a->len = new_size; pos += d; } a->tab[pos--] = v; *ppos = pos; return 0; }
O3
c
bf_add_limb: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 movq (%rsi), %rsi testq %rsi, %rsi js 0x92ae5 movq 0x20(%r15), %rax movq %r14, (%rax,%rsi,8) decq %rsi movq %rsi, (%rbx) xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x8(%rsp), %rdx movq %r15, %rdi callq 0x142fc movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testb $0x1, %cl jne 0x92adb movq 0x8(%rsp), %rsi jmp 0x92acb
bf_add_limb: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rsi mov r15, rdi mov rsi, [rsi] test rsi, rsi js short loc_92AE5 loc_92ACB: mov rax, [r15+20h] mov [rax+rsi*8], r14 dec rsi mov [rbx], rsi xor eax, eax loc_92ADB: add rsp, 10h pop rbx pop r14 pop r15 retn loc_92AE5: lea rdx, [rsp+28h+var_20] mov rdi, r15 call bf_add_limb_cold_1 mov ecx, eax mov eax, 0FFFFFFFFh test cl, 1 jnz short loc_92ADB mov rsi, [rsp+28h+var_20] jmp short loc_92ACB
long long bf_add_limb(_QWORD *a1, long long *a2, long long a3) { long long v5; // rsi long long result; // rax char v7; // cl long long v8[4]; // [rsp+8h] [rbp-20h] BYREF v5 = *a2; if ( v5 >= 0 ) goto LABEL_2; v7 = bf_add_limb_cold_1(a1, v5, v8); result = 0xFFFFFFFFLL; if ( (v7 & 1) == 0 ) { v5 = v8[0]; LABEL_2: *(_QWORD *)(a1[4] + 8 * v5) = a3; *a2 = v5 - 1; return 0LL; } return result; }
bf_add_limb: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RSI MOV R15,RDI MOV RSI,qword ptr [RSI] TEST RSI,RSI JS 0x00192ae5 LAB_00192acb: MOV RAX,qword ptr [R15 + 0x20] MOV qword ptr [RAX + RSI*0x8],R14 DEC RSI MOV qword ptr [RBX],RSI XOR EAX,EAX LAB_00192adb: ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_00192ae5: LEA RDX,[RSP + 0x8] MOV RDI,R15 CALL 0x001142fc MOV ECX,EAX MOV EAX,0xffffffff TEST CL,0x1 JNZ 0x00192adb MOV RSI,qword ptr [RSP + 0x8] JMP 0x00192acb
int8 bf_add_limb(long param_1,long *param_2,int8 param_3) { uint uVar1; long lVar2; long local_20; lVar2 = *param_2; if ((lVar2 < 0) && (uVar1 = bf_add_limb_cold_1(param_1,lVar2,&local_20), lVar2 = local_20, (uVar1 & 1) != 0)) { return 0xffffffff; } *(int8 *)(*(long *)(param_1 + 0x20) + lVar2 * 8) = param_3; *param_2 = lVar2 + -1; return 0; }
29,686
my_strerror
eloqsql/strings/my_vsnprintf.c
const char* my_strerror(char *buf, size_t len, int nr) { char *msg= NULL; buf[0]= '\0'; /* failsafe */ if (nr <= 0) { strmake(buf, (nr == 0 ? "Internal error/check (Not system error)" : "Internal error < 0 (Not system error)"), len-1); return buf; } /* These (handler-) error messages are shared by perror, as required by the principle of least surprise. */ if ((nr >= HA_ERR_FIRST) && (nr <= HA_ERR_LAST)) { msg= (char *) handler_error_messages[nr - HA_ERR_FIRST]; strmake(buf, msg, len - 1); } else { /* On Windows, do things the Windows way. On a system that supports both the GNU and the XSI variant, use whichever was configured (GNU); if this choice is not advertised, use the default (POSIX/XSI). Testing for __GNUC__ is not sufficient to determine whether this choice exists. */ #if defined(_WIN32) strerror_s(buf, len, nr); #elif ((defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE >= 200112L)) || \ (defined _XOPEN_SOURCE && (_XOPEN_SOURCE >= 600))) && \ ! defined _GNU_SOURCE strerror_r(nr, buf, len); /* I can build with or without GNU */ #elif defined(__GLIBC__) && defined (_GNU_SOURCE) char *r= strerror_r(nr, buf, len); if (r != buf) /* Want to help, GNU? */ strmake(buf, r, len - 1); /* Then don't. */ #else strerror_r(nr, buf, len); #endif } /* strerror() return values are implementation-dependent, so let's be pragmatic. */ if (!buf[0]) strmake(buf, "unknown error", len - 1); return buf; }
O3
c
my_strerror: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movb $0x0, (%rdi) testl %edx, %edx jle 0xd6d92 leal -0x78(%rdx), %eax cmpl $0x4e, %eax ja 0xd6da6 movl %eax, %eax leaq 0x285133(%rip), %rcx # 0x35bebc movslq (%rcx,%rax,4), %rsi addq %rcx, %rsi jmp 0xd6dbb leaq 0x90a9(%rip), %rax # 0xdfe42 leaq 0x90ca(%rip), %rsi # 0xdfe6a cmoveq %rax, %rsi jmp 0xd6dd3 movl %edx, %edi movq %rbx, %rsi movq %r14, %rdx callq 0x29940 movq %rax, %rsi cmpq %rbx, %rax je 0xd6dc7 leaq -0x1(%r14), %rdx movq %rbx, %rdi callq 0xd71d8 cmpb $0x0, (%rbx) jne 0xd6de1 leaq 0x90bd(%rip), %rsi # 0xdfe90 decq %r14 movq %rbx, %rdi movq %r14, %rdx callq 0xd71d8 movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq
my_strerror: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi mov rbx, rdi mov byte ptr [rdi], 0 test edx, edx jle short loc_D6D92 lea eax, [rdx-78h] cmp eax, 4Eh ; 'N' ja short loc_D6DA6 mov eax, eax lea rcx, handler_error_messages_rel movsxd rsi, dword ptr [rcx+rax*4] add rsi, rcx jmp short loc_D6DBB loc_D6D92: lea rax, aInternalErrorC; "Internal error/check (Not system error)" lea rsi, aInternalError0; "Internal error < 0 (Not system error)" cmovz rsi, rax jmp short loc_D6DD3 loc_D6DA6: mov edi, edx mov rsi, rbx mov rdx, r14 call _strerror_r mov rsi, rax cmp rax, rbx jz short loc_D6DC7 loc_D6DBB: lea rdx, [r14-1] mov rdi, rbx call strmake loc_D6DC7: cmp byte ptr [rbx], 0 jnz short loc_D6DE1 lea rsi, aUnknownError; "unknown error" loc_D6DD3: dec r14 mov rdi, rbx mov rdx, r14 call strmake loc_D6DE1: mov rax, rbx pop rbx pop r14 pop rbp retn
char * my_strerror(char *a1, long long a2, int a3) { char *v4; // rsi const char *v5; // rsi *a1 = 0; if ( a3 <= 0 ) { v5 = "Internal error < 0 (Not system error)"; if ( !a3 ) v5 = "Internal error/check (Not system error)"; goto LABEL_11; } if ( (unsigned int)(a3 - 120) > 0x4E ) { v4 = (char *)strerror_r((unsigned int)a3, a1, a2); if ( v4 == a1 ) goto LABEL_9; } else { v4 = (char *)handler_error_messages_rel + handler_error_messages_rel[a3 - 120]; } strmake(a1, v4, a2 - 1); LABEL_9: if ( !*a1 ) { v5 = "unknown error"; LABEL_11: strmake(a1, v5, a2 - 1); } return a1; }
my_strerror: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI MOV byte ptr [RDI],0x0 TEST EDX,EDX JLE 0x001d6d92 LEA EAX,[RDX + -0x78] CMP EAX,0x4e JA 0x001d6da6 MOV EAX,EAX LEA RCX,[0x45bebc] MOVSXD RSI,dword ptr [RCX + RAX*0x4] ADD RSI,RCX JMP 0x001d6dbb LAB_001d6d92: LEA RAX,[0x1dfe42] LEA RSI,[0x1dfe6a] CMOVZ RSI,RAX JMP 0x001d6dd3 LAB_001d6da6: MOV EDI,EDX MOV RSI,RBX MOV RDX,R14 CALL 0x00129940 MOV RSI,RAX CMP RAX,RBX JZ 0x001d6dc7 LAB_001d6dbb: LEA RDX,[R14 + -0x1] MOV RDI,RBX CALL 0x001d71d8 LAB_001d6dc7: CMP byte ptr [RBX],0x0 JNZ 0x001d6de1 LEA RSI,[0x1dfe90] LAB_001d6dd3: DEC R14 MOV RDI,RBX MOV RDX,R14 CALL 0x001d71d8 LAB_001d6de1: MOV RAX,RBX POP RBX POP R14 POP RBP RET
char * my_strerror(char *param_1,size_t param_2,int param_3) { char *pcVar1; *param_1 = '\0'; if (param_3 < 1) { pcVar1 = "Internal error < 0 (Not system error)"; if (param_3 == 0) { pcVar1 = "Internal error/check (Not system error)"; } goto LAB_001d6dd3; } if (param_3 - 0x78U < 0x4f) { pcVar1 = handler_error_messages_rel + *(int *)(handler_error_messages_rel + (ulong)(param_3 - 0x78U) * 4); LAB_001d6dbb: strmake(param_1,pcVar1,param_2 - 1); } else { pcVar1 = strerror_r(param_3,param_1,param_2); if (pcVar1 != param_1) goto LAB_001d6dbb; } if (*param_1 != '\0') { return param_1; } pcVar1 = "unknown error"; LAB_001d6dd3: strmake(param_1,pcVar1,param_2 - 1); return param_1; }
29,687
my_seek
eloqsql/mysys/my_seek.c
my_off_t my_seek(File fd, my_off_t pos, int whence, myf MyFlags) { os_off_t newpos= -1; DBUG_ENTER("my_seek"); DBUG_PRINT("my",("fd: %d Pos: %llu Whence: %d MyFlags: %lu", fd, (ulonglong) pos, whence, MyFlags)); DBUG_ASSERT(pos != MY_FILEPOS_ERROR); /* safety check */ /* Make sure we are using a valid file descriptor! */ DBUG_ASSERT(fd != -1); #ifdef _WIN32 newpos= my_win_lseek(fd, pos, whence); #else newpos= lseek(fd, pos, whence); #endif if (newpos == (os_off_t) -1) { my_errno= errno; if (MyFlags & MY_WME) my_error(EE_CANT_SEEK, MYF(0), my_filename(fd), my_errno); DBUG_PRINT("error", ("lseek: %llu errno: %d", (ulonglong) newpos, errno)); DBUG_RETURN(MY_FILEPOS_ERROR); } if ((my_off_t) newpos != pos) { DBUG_PRINT("exit",("pos: %llu", (ulonglong) newpos)); } DBUG_RETURN((my_off_t) newpos); }
O3
c
my_seek: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rcx, %r15 movl %edi, %r14d callq 0x28300 movq %rax, %rbx cmpq $-0x1, %rax jne 0x615bc callq 0x28050 movl (%rax), %r12d callq 0x624a2 movl %r12d, (%rax) testb $0x10, %r15b je 0x615bc movl %r14d, %edi callq 0x683ec movq %rax, %r14 callq 0x624a2 movl (%rax), %ecx movl $0x21, %edi xorl %esi, %esi movq %r14, %rdx xorl %eax, %eax callq 0x5bf1f movq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_seek: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15, rcx mov r14d, edi call _lseek64 mov rbx, rax cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_615BC call ___errno_location mov r12d, [rax] call _my_thread_var mov [rax], r12d test r15b, 10h jz short loc_615BC mov edi, r14d call my_filename mov r14, rax call _my_thread_var mov ecx, [rax] mov edi, 21h ; '!' xor esi, esi mov rdx, r14 xor eax, eax call my_error loc_615BC: mov rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_seek(long long a1, long long a2, long long a3, char a4) { long long v5; // rbx int v6; // r12d long long v7; // rdx long long v8; // r14 long long v9; // rdx unsigned int *v10; // rax v5 = lseek64(); if ( v5 == -1 ) { v6 = *(_DWORD *)__errno_location(a1); *(_DWORD *)my_thread_var(a1, a2, v7) = v6; if ( (a4 & 0x10) != 0 ) { v8 = my_filename((unsigned int)a1); v10 = (unsigned int *)my_thread_var((unsigned int)a1, a2, v9); my_error(0x21u, 0LL, v8, *v10); } } return v5; }
my_seek: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15,RCX MOV R14D,EDI CALL 0x00128300 MOV RBX,RAX CMP RAX,-0x1 JNZ 0x001615bc CALL 0x00128050 MOV R12D,dword ptr [RAX] CALL 0x001624a2 MOV dword ptr [RAX],R12D TEST R15B,0x10 JZ 0x001615bc MOV EDI,R14D CALL 0x001683ec MOV R14,RAX CALL 0x001624a2 MOV ECX,dword ptr [RAX] MOV EDI,0x21 XOR ESI,ESI MOV RDX,R14 XOR EAX,EAX CALL 0x0015bf1f LAB_001615bc: MOV RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
__off64_t my_seek(int param_1,__off64_t param_2,int param_3,ulong param_4) { int iVar1; __off64_t _Var2; int *piVar3; int8 uVar4; int4 *puVar5; _Var2 = lseek64(param_1,param_2,param_3); if (_Var2 == -1) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((param_4 & 0x10) != 0) { uVar4 = my_filename(param_1); puVar5 = (int4 *)_my_thread_var(); my_error(0x21,0,uVar4,*puVar5); } } return _Var2; }
29,688
set_prealloc_root
eloqsql/mysys/my_alloc.c
void set_prealloc_root(MEM_ROOT *root, char *ptr) { USED_MEM *next; for (next=root->used; next ; next=next->next) { if ((char*) next <= ptr && (char*) next + next->size > ptr) { root->pre_alloc=next; return; } } for (next=root->free ; next ; next=next->next) { if ((char*) next <= ptr && (char*) next + next->size > ptr) { root->pre_alloc=next; return; } } }
O0
c
set_prealloc_root: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x2ad38 movq -0x18(%rbp), %rax cmpq -0x10(%rbp), %rax ja 0x2ad29 movq -0x18(%rbp), %rax movq -0x18(%rbp), %rcx addq 0x10(%rcx), %rax cmpq -0x10(%rbp), %rax jbe 0x2ad29 movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x10(%rax) jmp 0x2ad83 jmp 0x2ad2b movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) jmp 0x2acf8 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x2ad83 movq -0x18(%rbp), %rax cmpq -0x10(%rbp), %rax ja 0x2ad74 movq -0x18(%rbp), %rax movq -0x18(%rbp), %rcx addq 0x10(%rcx), %rax cmpq -0x10(%rbp), %rax jbe 0x2ad74 movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x10(%rax) jmp 0x2ad83 jmp 0x2ad76 movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) jmp 0x2ad43 popq %rbp retq nopw %cs:(%rax,%rax)
set_prealloc_root: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_18], rax loc_2ACF8: cmp [rbp+var_18], 0 jz short loc_2AD38 mov rax, [rbp+var_18] cmp rax, [rbp+var_10] ja short loc_2AD29 mov rax, [rbp+var_18] mov rcx, [rbp+var_18] add rax, [rcx+10h] cmp rax, [rbp+var_10] jbe short loc_2AD29 mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+10h], rcx jmp short loc_2AD83 loc_2AD29: jmp short $+2 loc_2AD2B: mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax jmp short loc_2ACF8 loc_2AD38: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax loc_2AD43: cmp [rbp+var_18], 0 jz short loc_2AD83 mov rax, [rbp+var_18] cmp rax, [rbp+var_10] ja short loc_2AD74 mov rax, [rbp+var_18] mov rcx, [rbp+var_18] add rax, [rcx+10h] cmp rax, [rbp+var_10] jbe short loc_2AD74 mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+10h], rcx jmp short loc_2AD83 loc_2AD74: jmp short $+2 loc_2AD76: mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax jmp short loc_2AD43 loc_2AD83: pop rbp retn
_QWORD * set_prealloc_root(_QWORD *a1, unsigned long long a2) { _QWORD *result; // rax _QWORD *i; // [rsp+0h] [rbp-18h] _QWORD *j; // [rsp+0h] [rbp-18h] for ( i = (_QWORD *)a1[1]; i; i = (_QWORD *)*i ) { if ( (unsigned long long)i <= a2 && (unsigned long long)i + i[2] > a2 ) { result = a1; a1[2] = i; return result; } } result = (_QWORD *)*a1; for ( j = (_QWORD *)*a1; j; j = (_QWORD *)*j ) { if ( (unsigned long long)j <= a2 && (unsigned long long)j + j[2] > a2 ) { result = a1; a1[2] = j; return result; } result = (_QWORD *)*j; } return result; }
set_prealloc_root: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX LAB_0012acf8: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0012ad38 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x10] JA 0x0012ad29 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RCX + 0x10] CMP RAX,qword ptr [RBP + -0x10] JBE 0x0012ad29 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],RCX JMP 0x0012ad83 LAB_0012ad29: JMP 0x0012ad2b LAB_0012ad2b: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX JMP 0x0012acf8 LAB_0012ad38: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LAB_0012ad43: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0012ad83 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x10] JA 0x0012ad74 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RCX + 0x10] CMP RAX,qword ptr [RBP + -0x10] JBE 0x0012ad74 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],RCX JMP 0x0012ad83 LAB_0012ad74: JMP 0x0012ad76 LAB_0012ad76: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX JMP 0x0012ad43 LAB_0012ad83: POP RBP RET
void set_prealloc_root(int8 *param_1,int8 *param_2) { int8 *local_20; local_20 = (int8 *)param_1[1]; while( true ) { if (local_20 == (int8 *)0x0) { local_20 = (int8 *)*param_1; while( true ) { if (local_20 == (int8 *)0x0) { return; } if ((local_20 <= param_2) && (param_2 < (int8 *)((long)local_20 + local_20[2]))) break; local_20 = (int8 *)*local_20; } param_1[2] = local_20; return; } if ((local_20 <= param_2) && (param_2 < (int8 *)((long)local_20 + local_20[2]))) break; local_20 = (int8 *)*local_20; } param_1[2] = local_20; return; }
29,689
addFlashcard(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&)
Andrewchistyakov[P]flashcards_lyc/src/flashcard.cpp
bool addFlashcard(const std::string& front, const std::string& back, const std::string& tag) { // считаем какой айди следующий int id = getNextID(FILENAME); if (id == -1) { std::cerr << "Error: Could not get next ID." << std::endl; return false; } // открываем файл в режиме добавления std::ofstream file(FILENAME, std::ios::app); if (!file.is_open()) { std::cerr << "Error: Could not open flashcards.csv for writing." << std::endl; return false; } if (id == 0) { // если файл новый, добавим заголовок file << "ID,Front,Back,Tag,Successful guesses,Failed guesses,Streak\n"; id++; } // записываем в файл карточку file << to_csv_string(id, front, back, tag, 0, 0, 0); // закрываем файл file.close(); // возвращем тру типа успешно добавили карточку return true; }
O0
cpp
addFlashcard(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&): pushq %rbp movq %rsp, %rbp subq $0x320, %rsp # imm = 0x320 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) leaq -0x49(%rbp), %rdi movq %rdi, -0x2f0(%rbp) callq 0xdaa0 movq -0x2f0(%rbp), %rdx leaq 0x6a495(%rip), %rsi # 0x9088a leaq -0x48(%rbp), %rdi callq 0x16510 jmp 0x26400 leaq -0x48(%rbp), %rdi callq 0x25f10 movl %eax, -0x2f4(%rbp) jmp 0x26411 leaq -0x48(%rbp), %rdi callq 0xdbc8 leaq -0x49(%rbp), %rdi callq 0xd620 movl -0x2f4(%rbp), %eax movl %eax, -0x24(%rbp) cmpl $-0x1, -0x24(%rbp) jne 0x2648e movq 0xb8baf(%rip), %rdi # 0xdefe8 leaq 0x6a459(%rip), %rsi # 0x90899 callq 0xd580 movq %rax, %rdi movq 0xb8ab9(%rip), %rsi # 0xdef08 callq 0xd5f0 movb $0x0, -0x1(%rbp) jmp 0x266a8 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x26480 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x48(%rbp), %rdi callq 0xdbc8 leaq -0x49(%rbp), %rdi callq 0xd620 jmp 0x266b6 leaq 0x6a3f5(%rip), %rsi # 0x9088a leaq -0x260(%rbp), %rdi movq %rdi, -0x300(%rbp) movl $0x1, %edx callq 0xd630 movq -0x300(%rbp), %rdi callq 0xd460 movb %al, -0x2f5(%rbp) jmp 0x264c1 movb -0x2f5(%rbp), %al testb $0x1, %al jne 0x26522 jmp 0x264cd movq 0xb8b14(%rip), %rdi # 0xdefe8 leaq 0x6a3dc(%rip), %rsi # 0x908b7 callq 0xd580 movq %rax, -0x308(%rbp) jmp 0x264e9 movq -0x308(%rbp), %rdi movq 0xb8a11(%rip), %rsi # 0xdef08 callq 0xd5f0 jmp 0x264fe movb $0x0, -0x1(%rbp) movl $0x1, -0x264(%rbp) jmp 0x2668c movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x2669a cmpl $0x0, -0x24(%rbp) jne 0x26546 leaq 0x6a3ba(%rip), %rsi # 0x908e9 leaq -0x260(%rbp), %rdi callq 0xd580 jmp 0x2653d movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x30c(%rbp) movq -0x10(%rbp), %rsi leaq -0x2a8(%rbp), %rdi callq 0xd200 jmp 0x26561 movq -0x18(%rbp), %rsi leaq -0x2c8(%rbp), %rdi callq 0xd200 jmp 0x26573 movq -0x20(%rbp), %rsi leaq -0x2e8(%rbp), %rdi callq 0xd200 jmp 0x26585 movl -0x30c(%rbp), %esi movq %rsp, %rax movl $0x0, 0x8(%rax) movl $0x0, (%rax) leaq -0x288(%rbp), %rdi leaq -0x2a8(%rbp), %rdx leaq -0x2c8(%rbp), %rcx leaq -0x2e8(%rbp), %r8 xorl %r9d, %r9d callq 0x25a20 jmp 0x265c1 leaq -0x260(%rbp), %rdi leaq -0x288(%rbp), %rsi callq 0xd510 jmp 0x265d6 leaq -0x288(%rbp), %rdi callq 0xdbc8 leaq -0x2e8(%rbp), %rdi callq 0xdbc8 leaq -0x2c8(%rbp), %rdi callq 0xdbc8 leaq -0x2a8(%rbp), %rdi callq 0xdbc8 leaq -0x260(%rbp), %rdi callq 0xd8b0 jmp 0x26614 movb $0x1, -0x1(%rbp) movl $0x1, -0x264(%rbp) jmp 0x2668c movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x2667e movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x26672 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) jmp 0x26666 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x58(%rbp) movl %eax, -0x5c(%rbp) leaq -0x288(%rbp), %rdi callq 0xdbc8 leaq -0x2e8(%rbp), %rdi callq 0xdbc8 leaq -0x2c8(%rbp), %rdi callq 0xdbc8 leaq -0x2a8(%rbp), %rdi callq 0xdbc8 jmp 0x2669a leaq -0x260(%rbp), %rdi callq 0xd910 jmp 0x266a8 leaq -0x260(%rbp), %rdi callq 0xd910 jmp 0x266b6 movb -0x1(%rbp), %al andb $0x1, %al addq $0x320, %rsp # imm = 0x320 popq %rbp retq movq -0x58(%rbp), %rdi callq 0xda90 nop
_Z12addFlashcardRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S6_: push rbp mov rbp, rsp sub rsp, 320h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx lea rdi, [rbp+var_49] mov [rbp+var_2F0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_2F0] lea rsi, aFlashcardsCsv; "flashcards.csv" lea rdi, [rbp+var_48] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_26400: lea rdi, [rbp+var_48] call _Z9getNextIDRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; getNextID(std::string const&) mov [rbp+var_2F4], eax jmp short $+2 loc_26411: lea rdi, [rbp+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_49] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov eax, [rbp+var_2F4] mov [rbp+var_24], eax cmp [rbp+var_24], 0FFFFFFFFh jnz short loc_2648E mov rdi, cs:_ZSt4cerr_ptr lea rsi, aErrorCouldNotG; "Error: Could not get next ID." call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &)) mov [rbp+var_1], 0 jmp loc_266A8 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp short loc_26480 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_26480: lea rdi, [rbp+var_49] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_266B6 loc_2648E: lea rsi, aFlashcardsCsv; "flashcards.csv" lea rdi, [rbp+var_260] mov [rbp+var_300], rdi mov edx, 1 call __ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode; std::ofstream::basic_ofstream(char const*,std::_Ios_Openmode) mov rdi, [rbp+var_300] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv; std::ofstream::is_open(void) mov [rbp+var_2F5], al jmp short $+2 loc_264C1: mov al, [rbp+var_2F5] test al, 1 jnz short loc_26522 jmp short $+2 loc_264CD: mov rdi, cs:_ZSt4cerr_ptr lea rsi, aErrorCouldNotO; "Error: Could not open flashcards.csv fo"... call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_308], rax jmp short $+2 loc_264E9: mov rdi, [rbp+var_308] mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &)) jmp short $+2 loc_264FE: mov [rbp+var_1], 0 mov [rbp+var_264], 1 jmp loc_2668C mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp loc_2669A loc_26522: cmp [rbp+var_24], 0 jnz short loc_26546 lea rsi, aIdFrontBackTag; "ID,Front,Back,Tag,Successful guesses,Fa"... lea rdi, [rbp+var_260] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp short $+2 loc_2653D: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax loc_26546: mov eax, [rbp+var_24] mov [rbp+var_30C], eax mov rsi, [rbp+var_10] lea rdi, [rbp+var_2A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_26561: mov rsi, [rbp+var_18] lea rdi, [rbp+var_2C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_26573: mov rsi, [rbp+var_20] lea rdi, [rbp+var_2E8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_26585: mov esi, [rbp+var_30C] mov rax, rsp mov dword ptr [rax+8], 0 mov dword ptr [rax], 0 lea rdi, [rbp+var_288] lea rdx, [rbp+var_2A8] lea rcx, [rbp+var_2C8] lea r8, [rbp+var_2E8] xor r9d, r9d call _Z13to_csv_stringiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_S4_iii; to_csv_string(int,std::string,std::string,std::string,int,int,int) jmp short $+2 loc_265C1: lea rdi, [rbp+var_260] lea rsi, [rbp+var_288] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) jmp short $+2 loc_265D6: lea rdi, [rbp+var_288]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_2E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_2C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_2A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_260] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv; std::ofstream::close(void) jmp short $+2 loc_26614: mov [rbp+var_1], 1 mov [rbp+var_264], 1 jmp short loc_2668C mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp short loc_2667E mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp short loc_26672 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax jmp short loc_26666 mov rcx, rax mov eax, edx mov [rbp+var_58], rcx mov [rbp+var_5C], eax lea rdi, [rbp+var_288]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_26666: lea rdi, [rbp+var_2E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_26672: lea rdi, [rbp+var_2C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_2667E: lea rdi, [rbp+var_2A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_2669A loc_2668C: lea rdi, [rbp+var_260] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev; std::ofstream::~ofstream() jmp short loc_266A8 loc_2669A: lea rdi, [rbp+var_260] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev; std::ofstream::~ofstream() jmp short loc_266B6 loc_266A8: mov al, [rbp+var_1] and al, 1 add rsp, 320h pop rbp retn loc_266B6: mov rdi, [rbp+var_58] call __Unwind_Resume
char addFlashcard(long long a1, long long a2, long long a3) { long long v3; // rax int v5; // [rsp+14h] [rbp-30Ch] long long v6; // [rsp+18h] [rbp-308h] int NextID; // [rsp+2Ch] [rbp-2F4h] _BYTE v8[32]; // [rsp+38h] [rbp-2E8h] BYREF _BYTE v9[32]; // [rsp+58h] [rbp-2C8h] BYREF _BYTE v10[32]; // [rsp+78h] [rbp-2A8h] BYREF _BYTE v11[36]; // [rsp+98h] [rbp-288h] BYREF int v12; // [rsp+BCh] [rbp-264h] _BYTE v13[516]; // [rsp+C0h] [rbp-260h] BYREF char v14; // [rsp+2D7h] [rbp-49h] BYREF _BYTE v15[36]; // [rsp+2D8h] [rbp-48h] BYREF int v16; // [rsp+2FCh] [rbp-24h] long long v17; // [rsp+300h] [rbp-20h] long long v18; // [rsp+308h] [rbp-18h] long long v19; // [rsp+310h] [rbp-10h] char v20; // [rsp+31Fh] [rbp-1h] v19 = a1; v18 = a2; v17 = a3; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v15, (long long)"flashcards.csv", (long long)&v14); NextID = getNextID((long long)v15); std::string::~string(v15); std::allocator<char>::~allocator(&v14); v16 = NextID; if ( NextID == -1 ) { v3 = std::operator<<<std::char_traits<char>>(&std::cerr, "Error: Could not get next ID."); std::ostream::operator<<(v3, &std::endl<char,std::char_traits<char>>); v20 = 0; } else { std::ofstream::basic_ofstream(v13, "flashcards.csv", 1LL); if ( (std::ofstream::is_open(v13) & 1) != 0 ) { if ( !v16 ) { std::operator<<<std::char_traits<char>>(v13, "ID,Front,Back,Tag,Successful guesses,Failed guesses,Streak\n"); ++v16; } v5 = v16; std::string::basic_string(v10, v19); std::string::basic_string(v9, v18); std::string::basic_string(v8, v17); to_csv_string((long long)v11, v5, (long long)v10, (long long)v9, (long long)v8, 0, 0, 0); std::operator<<<char>(v13, v11); std::string::~string(v11); std::string::~string(v8); std::string::~string(v9); std::string::~string(v10); std::ofstream::close(v13); v20 = 1; v12 = 1; } else { v6 = std::operator<<<std::char_traits<char>>(&std::cerr, "Error: Could not open flashcards.csv for writing."); std::ostream::operator<<(v6, &std::endl<char,std::char_traits<char>>); v20 = 0; v12 = 1; } std::ofstream::~ofstream(v13); } return v20 & 1; }
addFlashcard: PUSH RBP MOV RBP,RSP SUB RSP,0x320 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX LEA RDI,[RBP + -0x49] MOV qword ptr [RBP + -0x2f0],RDI CALL 0x0010daa0 MOV RDX,qword ptr [RBP + -0x2f0] LAB_001263ee: LEA RSI,[0x19088a] LEA RDI,[RBP + -0x48] CALL 0x00116510 JMP 0x00126400 LAB_00126400: LEA RDI,[RBP + -0x48] CALL 0x00125f10 LAB_00126409: MOV dword ptr [RBP + -0x2f4],EAX JMP 0x00126411 LAB_00126411: LEA RDI,[RBP + -0x48] CALL 0x0010dbc8 LEA RDI,[RBP + -0x49] CALL 0x0010d620 MOV EAX,dword ptr [RBP + -0x2f4] MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],-0x1 JNZ 0x0012648e MOV RDI,qword ptr [0x001defe8] LEA RSI,[0x190899] CALL 0x0010d580 MOV RDI,RAX MOV RSI,qword ptr [0x001def08] CALL 0x0010d5f0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x001266a8 LAB_0012648e: LEA RSI,[0x19088a] LEA RDI,[RBP + -0x260] MOV qword ptr [RBP + -0x300],RDI MOV EDX,0x1 CALL 0x0010d630 MOV RDI,qword ptr [RBP + -0x300] LAB_001264b4: CALL 0x0010d460 MOV byte ptr [RBP + -0x2f5],AL JMP 0x001264c1 LAB_001264c1: MOV AL,byte ptr [RBP + -0x2f5] TEST AL,0x1 JNZ 0x00126522 JMP 0x001264cd LAB_001264cd: MOV RDI,qword ptr [0x001defe8] LEA RSI,[0x1908b7] CALL 0x0010d580 MOV qword ptr [RBP + -0x308],RAX JMP 0x001264e9 LAB_001264e9: MOV RDI,qword ptr [RBP + -0x308] MOV RSI,qword ptr [0x001def08] CALL 0x0010d5f0 JMP 0x001264fe LAB_001264fe: MOV byte ptr [RBP + -0x1],0x0 MOV dword ptr [RBP + -0x264],0x1 JMP 0x0012668c LAB_00126522: CMP dword ptr [RBP + -0x24],0x0 JNZ 0x00126546 LEA RSI,[0x1908e9] LEA RDI,[RBP + -0x260] CALL 0x0010d580 JMP 0x0012653d LAB_0012653d: MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX LAB_00126546: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x30c],EAX MOV RSI,qword ptr [RBP + -0x10] LEA RDI,[RBP + -0x2a8] CALL 0x0010d200 JMP 0x00126561 LAB_00126561: MOV RSI,qword ptr [RBP + -0x18] LAB_00126565: LEA RDI,[RBP + -0x2c8] CALL 0x0010d200 JMP 0x00126573 LAB_00126573: MOV RSI,qword ptr [RBP + -0x20] LAB_00126577: LEA RDI,[RBP + -0x2e8] CALL 0x0010d200 JMP 0x00126585 LAB_00126585: MOV ESI,dword ptr [RBP + -0x30c] MOV RAX,RSP MOV dword ptr [RAX + 0x8],0x0 MOV dword ptr [RAX],0x0 LEA RDI,[RBP + -0x288] LEA RDX,[RBP + -0x2a8] LEA RCX,[RBP + -0x2c8] LEA R8,[RBP + -0x2e8] XOR R9D,R9D CALL 0x00125a20 JMP 0x001265c1 LAB_001265c1: LEA RDI,[RBP + -0x260] LEA RSI,[RBP + -0x288] CALL 0x0010d510 JMP 0x001265d6 LAB_001265d6: LEA RDI,[RBP + -0x288] CALL 0x0010dbc8 LEA RDI,[RBP + -0x2e8] CALL 0x0010dbc8 LEA RDI,[RBP + -0x2c8] CALL 0x0010dbc8 LEA RDI,[RBP + -0x2a8] CALL 0x0010dbc8 LAB_00126606: LEA RDI,[RBP + -0x260] CALL 0x0010d8b0 LAB_00126612: JMP 0x00126614 LAB_00126614: MOV byte ptr [RBP + -0x1],0x1 MOV dword ptr [RBP + -0x264],0x1 JMP 0x0012668c LAB_0012668c: LEA RDI,[RBP + -0x260] CALL 0x0010d910 JMP 0x001266a8 LAB_001266a8: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x320 POP RBP RET
/* addFlashcard(std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&) */ ulong addFlashcard(string *param_1,string *param_2,string *param_3) { byte bVar1; int iVar2; ostream *poVar3; int8 uVar4; string local_2f0 [32]; string local_2d0 [32]; string local_2b0 [32]; string local_290 [36]; int4 local_26c; ofstream local_268 [535]; allocator local_51; string local_50 [36]; int local_2c; string *local_28; string *local_20; string *local_18; int1 local_9; local_28 = param_3; local_20 = param_2; local_18 = param_1; std::allocator<char>::allocator(); /* try { // try from 001263ee to 001263fd has its CatchHandler @ 0012645d */ std::__cxx11::string::string<std::allocator<char>>(local_50,"flashcards.csv",&local_51); /* try { // try from 00126400 to 00126408 has its CatchHandler @ 0012646b */ iVar2 = getNextID(local_50); std::__cxx11::string::~string(local_50); std::allocator<char>::~allocator((allocator<char> *)&local_51); local_2c = iVar2; if (iVar2 == -1) { poVar3 = std::operator<<((ostream *)PTR_cerr_001defe8,"Error: Could not get next ID."); uVar4 = std::ostream::operator<< (poVar3,(_func_ostream_ptr_ostream_ptr *) PTR_endl<char,std_char_traits<char>>_001def08); local_9 = 0; } else { std::ofstream::ofstream(local_268,"flashcards.csv",1); /* try { // try from 001264b4 to 0012655e has its CatchHandler @ 00126511 */ bVar1 = std::ofstream::is_open(); if ((bVar1 & 1) == 0) { poVar3 = std::operator<<((ostream *)PTR_cerr_001defe8, "Error: Could not open flashcards.csv for writing."); std::ostream::operator<< (poVar3,(_func_ostream_ptr_ostream_ptr *) PTR_endl<char,std_char_traits<char>>_001def08); local_9 = 0; } else { if (local_2c == 0) { std::operator<<((ostream *)local_268, "ID,Front,Back,Tag,Successful guesses,Failed guesses,Streak\n"); local_2c = local_2c + 1; } iVar2 = local_2c; std::__cxx11::string::string(local_2b0,local_18); /* try { // try from 00126565 to 00126570 has its CatchHandler @ 00126624 */ std::__cxx11::string::string(local_2d0,local_20); /* try { // try from 00126577 to 00126582 has its CatchHandler @ 00126632 */ std::__cxx11::string::string(local_2f0,local_28); /* try { // try from 00126585 to 001265be has its CatchHandler @ 00126640 */ to_csv_string(local_290,iVar2,local_2b0,local_2d0,local_2f0,0,0,0); /* try { // try from 001265c1 to 001265d3 has its CatchHandler @ 0012664e */ std::operator<<((ostream *)local_268,local_290); std::__cxx11::string::~string(local_290); std::__cxx11::string::~string(local_2f0); std::__cxx11::string::~string(local_2d0); std::__cxx11::string::~string(local_2b0); /* try { // try from 00126606 to 00126611 has its CatchHandler @ 00126511 */ std::ofstream::close(); local_9 = 1; } local_26c = 1; uVar4 = std::ofstream::~ofstream(local_268); } return CONCAT71((int7)((ulong)uVar4 >> 8),local_9) & 0xffffffffffffff01; }
29,690
addFlashcard(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&)
Andrewchistyakov[P]flashcards_lyc/src/flashcard.cpp
bool addFlashcard(const std::string& front, const std::string& back, const std::string& tag) { // считаем какой айди следующий int id = getNextID(FILENAME); if (id == -1) { std::cerr << "Error: Could not get next ID." << std::endl; return false; } // открываем файл в режиме добавления std::ofstream file(FILENAME, std::ios::app); if (!file.is_open()) { std::cerr << "Error: Could not open flashcards.csv for writing." << std::endl; return false; } if (id == 0) { // если файл новый, добавим заголовок file << "ID,Front,Back,Tag,Successful guesses,Failed guesses,Streak\n"; id++; } // записываем в файл карточку file << to_csv_string(id, front, back, tag, 0, 0, 0); // закрываем файл file.close(); // возвращем тру типа успешно добавили карточку return true; }
O1
cpp
addFlashcard(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&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x288, %rsp # imm = 0x288 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 leaq 0x98(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x2659d(%rip), %rsi # 0x3d7aa leaq 0x265a4(%rip), %rdx # 0x3d7b8 leaq 0x88(%rsp), %rdi callq 0x10884 leaq 0x88(%rsp), %rdi callq 0x16ebf movl %eax, %ebp movq 0x88(%rsp), %rdi cmpq %r13, %rdi je 0x1724d movq 0x98(%rsp), %rsi incq %rsi callq 0xb400 cmpl $-0x1, %ebp je 0x173b1 leaq 0x2654d(%rip), %rsi # 0x3d7aa leaq 0x88(%rsp), %rdi movl $0x1, %edx callq 0xb450 leaq 0xf8(%rsp), %rdi callq 0xb0a0 movl %eax, %ebx testb %al, %al je 0x173f7 testl %ebp, %ebp jne 0x172a8 movl $0x1, %ebp leaq 0x26573(%rip), %rsi # 0x3d809 leaq 0x88(%rsp), %rdi movl $0x3b, %edx callq 0xb490 leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq (%r12), %rsi movq 0x8(%r12), %rdx addq %rsi, %rdx leaq 0x48(%rsp), %rdi callq 0x11e4e leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) movq (%r15), %rsi movq 0x8(%r15), %rdx addq %rsi, %rdx leaq 0x28(%rsp), %rdi callq 0x11e4e leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq (%r14), %rsi movq 0x8(%r14), %rdx addq %rsi, %rdx leaq 0x8(%rsp), %rdi callq 0x11e4e xorl %eax, %eax leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x28(%rsp), %rcx leaq 0x8(%rsp), %r8 movl %ebp, %esi xorl %r9d, %r9d pushq %rax pushq %rax callq 0x161ae addq $0x10, %rsp movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x88(%rsp), %rdi callq 0xb490 leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1735a movq 0x78(%rsp), %rsi incq %rsi callq 0xb400 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x17371 movq 0x18(%rsp), %rsi incq %rsi callq 0xb400 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x17388 movq 0x38(%rsp), %rsi incq %rsi callq 0xb400 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x1739f movq 0x58(%rsp), %rsi incq %rsi callq 0xb400 leaq 0x88(%rsp), %rdi callq 0xb5e0 jmp 0x1743d movq 0x42c38(%rip), %rbx # 0x59ff0 leaq 0x263fa(%rip), %rsi # 0x3d7b9 movl $0x1d, %edx movq %rbx, %rdi callq 0xb490 movq (%rbx), %rax movq -0x18(%rax), %rdi addq %rbx, %rdi movl $0xa, %esi callq 0xb3c0 movsbl %al, %esi movq %rbx, %rdi callq 0xb030 movq %rax, %rdi callq 0xb280 xorl %ebx, %ebx jmp 0x17475 movq 0x42bf2(%rip), %r14 # 0x59ff0 leaq 0x263d2(%rip), %rsi # 0x3d7d7 movl $0x31, %edx movq %r14, %rdi callq 0xb490 movq (%r14), %rax addq -0x18(%rax), %r14 movq %r14, %rdi movl $0xa, %esi callq 0xb3c0 movsbl %al, %esi movq 0x42bc0(%rip), %rdi # 0x59ff0 callq 0xb030 movq %rax, %rdi callq 0xb280 movq 0x42b4c(%rip), %rax # 0x59f90 movq (%rax), %rcx movq 0x18(%rax), %rax leaq 0x90(%rsp), %rdi movq %rcx, -0x8(%rdi) movq -0x18(%rcx), %rcx movq %rax, 0x88(%rsp,%rcx) callq 0xb340 leaq 0x180(%rsp), %rdi callq 0xb120 movl %ebx, %eax addq $0x288, %rsp # imm = 0x288 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x174ac movq 0x78(%rsp), %rsi incq %rsi callq 0xb400 jmp 0x174ac movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x174c8 movq 0x18(%rsp), %rsi incq %rsi callq 0xb400 jmp 0x174c8 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x174e4 movq 0x38(%rsp), %rsi incq %rsi callq 0xb400 jmp 0x174e4 movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x17529 movq 0x58(%rsp), %rsi incq %rsi callq 0xb400 jmp 0x17529 jmp 0x17526 movq %rax, %rbx movq 0x88(%rsp), %rdi cmpq %r13, %rdi je 0x17536 movq 0x98(%rsp), %rsi incq %rsi callq 0xb400 jmp 0x17536 movq %rax, %rbx jmp 0x17536 movq %rax, %rbx leaq 0x88(%rsp), %rdi callq 0xb640 movq %rbx, %rdi callq 0xb780
_Z12addFlashcardRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S6_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 288h mov r14, rdx mov r15, rsi mov r12, rdi lea r13, [rsp+2B8h+var_220] mov [r13-10h], r13 lea rsi, aFlashcardsCsv; "flashcards.csv" lea rdx, aFlashcardsCsv+0Eh; "" lea rdi, [rsp+2B8h+var_230] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+2B8h+var_230] call _Z9getNextIDRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; getNextID(std::string const&) mov ebp, eax mov rdi, [rsp+2B8h+var_230]; void * cmp rdi, r13 jz short loc_1724D mov rsi, [rsp+2B8h+var_220] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1724D: cmp ebp, 0FFFFFFFFh jz loc_173B1 lea rsi, aFlashcardsCsv; "flashcards.csv" lea rdi, [rsp+2B8h+var_230] mov edx, 1 call __ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode; std::ofstream::basic_ofstream(char const*,std::_Ios_Openmode) lea rdi, [rsp+2B8h+var_1C0] call __ZNKSt12__basic_fileIcE7is_openEv; std::__basic_file<char>::is_open(void) mov ebx, eax test al, al jz loc_173F7 test ebp, ebp jnz short loc_172A8 mov ebp, 1 lea rsi, aIdFrontBackTag; "ID,Front,Back,Tag,Successful guesses,Fa"... lea rdi, [rsp+2B8h+var_230] mov edx, 3Bh ; ';' call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_172A8: lea r13, [rsp+2B8h+var_260] mov [r13-10h], r13 mov rsi, [r12] mov rdx, [r12+8] add rdx, rsi lea rdi, [rsp+2B8h+var_270] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r12, [rsp+2B8h+var_280] mov [r12-10h], r12 mov rsi, [r15] mov rdx, [r15+8] add rdx, rsi lea rdi, [rsp+2B8h+var_290] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r15, [rsp+2B8h+var_2A0] mov [r15-10h], r15 mov rsi, [r14] mov rdx, [r14+8] add rdx, rsi lea rdi, [rsp+2B8h+var_2B0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xor eax, eax lea rdi, [rsp+2B8h+var_250]; int lea rdx, [rsp+2B8h+var_270]; int lea rcx, [rsp+2B8h+var_290]; int lea r8, [rsp+2B8h+var_2B0]; int mov esi, ebp; int xor r9d, r9d; int push rax; __int64 push rax; int call _Z13to_csv_stringiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_S4_iii; to_csv_string(int,std::string,std::string,std::string,int,int,int) add rsp, 10h mov rsi, qword ptr [rsp+2B8h+var_250] mov rdx, [rsp+2B8h+var_248] lea rdi, [rsp+2B8h+var_230] 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+2B8h+var_240] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1735A mov rsi, [rsp+2B8h+var_240] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1735A: mov rdi, [rsp+2B8h+var_2B0]; void * cmp rdi, r15 jz short loc_17371 mov rsi, [rsp+2B8h+var_2A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_17371: mov rdi, [rsp+2B8h+var_290]; void * cmp rdi, r12 jz short loc_17388 mov rsi, [rsp+2B8h+var_280] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_17388: mov rdi, [rsp+2B8h+var_270]; void * cmp rdi, r13 jz short loc_1739F mov rsi, [rsp+2B8h+var_260] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1739F: lea rdi, [rsp+2B8h+var_230] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv; std::ofstream::close(void) jmp loc_1743D loc_173B1: mov rbx, cs:_ZSt4cerr_ptr lea rsi, aErrorCouldNotG; "Error: Could not get next ID." mov edx, 1Dh 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 rax, [rbx] mov rdi, [rax-18h] add rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx esi, al; char mov rdi, rbx; this call __ZNSo3putEc; std::ostream::put(char) mov rdi, rax; this call __ZNSo5flushEv; std::ostream::flush(void) xor ebx, ebx jmp short loc_17475 loc_173F7: mov r14, cs:_ZSt4cerr_ptr lea rsi, aErrorCouldNotO; "Error: Could not open flashcards.csv fo"... mov edx, 31h ; '1' mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, [r14] add r14, [rax-18h] mov rdi, r14 mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx esi, al; char mov rdi, cs:_ZSt4cerr_ptr; this call __ZNSo3putEc; std::ostream::put(char) mov rdi, rax; this call __ZNSo5flushEv; std::ostream::flush(void) loc_1743D: mov rax, cs:_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE_ptr mov rcx, [rax] mov rax, [rax+18h] lea rdi, [rsp+2B8h+var_228] mov [rdi-8], rcx mov rcx, [rcx-18h] mov [rsp+rcx+2B8h+var_230], rax call __ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev; std::filebuf::~filebuf() lea rdi, [rsp+2B8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() loc_17475: mov eax, ebx add rsp, 288h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, [rsp+arg_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_174AC mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_174AC mov rbx, rax loc_174AC: mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_174C8 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_174C8 mov rbx, rax loc_174C8: mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_174E4 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_174E4 mov rbx, rax loc_174E4: mov rdi, [rsp+arg_40]; void * cmp rdi, r13 jz short loc_17529 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_17529 jmp short loc_17526 mov rbx, rax mov rdi, [rsp+arg_80]; void * cmp rdi, r13 jz short loc_17536 mov rsi, [rsp+arg_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_17536 mov rbx, rax jmp short loc_17536 loc_17526: mov rbx, rax loc_17529: lea rdi, [rsp+arg_80] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev; std::ofstream::~ofstream() loc_17536: mov rdi, rbx call __Unwind_Resume
long long addFlashcard(long long a1, long long a2, long long a3) { int NextID; // ebp unsigned int is_open; // ebx char v6; // al std::ostream *v7; // rax char v8; // al std::ostream *v9; // rax long long v10; // rax void *v12[2]; // [rsp+8h] [rbp-2B0h] BYREF _QWORD v13[2]; // [rsp+18h] [rbp-2A0h] BYREF void *v14[2]; // [rsp+28h] [rbp-290h] BYREF _QWORD v15[2]; // [rsp+38h] [rbp-280h] BYREF void *v16[2]; // [rsp+48h] [rbp-270h] BYREF _QWORD v17[2]; // [rsp+58h] [rbp-260h] BYREF int v18[2]; // [rsp+68h] [rbp-250h] BYREF long long v19; // [rsp+70h] [rbp-248h] long long v20; // [rsp+78h] [rbp-240h] BYREF void *v21; // [rsp+88h] [rbp-230h] BYREF _QWORD v22[12]; // [rsp+98h] [rbp-220h] BYREF _BYTE v23[136]; // [rsp+F8h] [rbp-1C0h] BYREF _BYTE v24[312]; // [rsp+180h] [rbp-138h] BYREF v21 = v22; std::string::_M_construct<char const*>(&v21, "flashcards.csv", (long long)""); NextID = getNextID(&v21); if ( v21 != v22 ) operator delete(v21, v22[0] + 1LL); if ( NextID == -1 ) { std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Error: Could not get next ID.", 29LL); v6 = std::ios::widen((char *)&std::cerr + *(_QWORD *)(std::cerr - 24LL), 10LL); v7 = (std::ostream *)std::ostream::put((std::ostream *)&std::cerr, v6); std::ostream::flush(v7); return 0; } else { std::ofstream::basic_ofstream(&v21, "flashcards.csv", 1LL); is_open = std::__basic_file<char>::is_open(v23); if ( (_BYTE)is_open ) { if ( !NextID ) { NextID = 1; std::__ostream_insert<char,std::char_traits<char>>( &v21, "ID,Front,Back,Tag,Successful guesses,Failed guesses,Streak\n", 59LL); } v16[0] = v17; std::string::_M_construct<char *>(v16, *(_BYTE **)a1, *(_QWORD *)a1 + *(_QWORD *)(a1 + 8)); v14[0] = v15; std::string::_M_construct<char *>(v14, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); v12[0] = v13; std::string::_M_construct<char *>(v12, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); to_csv_string((long long)v18, NextID, v16, v14, v12, 0, 0, 0); std::__ostream_insert<char,std::char_traits<char>>(&v21, *(_QWORD *)v18, v19); if ( *(long long **)v18 != &v20 ) operator delete(*(void **)v18, v20 + 1); if ( v12[0] != v13 ) operator delete(v12[0], v13[0] + 1LL); if ( v14[0] != v15 ) operator delete(v14[0], v15[0] + 1LL); if ( v16[0] != v17 ) operator delete(v16[0], v17[0] + 1LL); std::ofstream::close(&v21); } else { std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Error: Could not open flashcards.csv for writing.", 49LL); v8 = std::ios::widen((char *)&std::cerr + *(_QWORD *)(std::cerr - 24LL), 10LL); v9 = (std::ostream *)std::ostream::put((std::ostream *)&std::cerr, v8); std::ostream::flush(v9); } v10 = `VTT for'std::ofstream[3]; v21 = (void *)`VTT for'std::ofstream[0]; *(_QWORD *)((char *)v22 + *(_QWORD *)(`VTT for'std::ofstream[0] - 24LL)) = v10; std::filebuf::~filebuf(); std::ios_base::~ios_base((std::ios_base *)v24); } return is_open; }
addFlashcard: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x288 MOV R14,RDX MOV R15,RSI MOV R12,RDI LEA R13,[RSP + 0x98] MOV qword ptr [R13 + -0x10],R13 LAB_00117206: LEA RSI,[0x13d7aa] LEA RDX,[0x13d7b8] LEA RDI,[RSP + 0x88] CALL 0x00110884 LAB_00117221: LEA RDI,[RSP + 0x88] CALL 0x00116ebf LAB_0011722e: MOV EBP,EAX MOV RDI,qword ptr [RSP + 0x88] CMP RDI,R13 JZ 0x0011724d MOV RSI,qword ptr [RSP + 0x98] INC RSI CALL 0x0010b400 LAB_0011724d: CMP EBP,-0x1 JZ 0x001173b1 LEA RSI,[0x13d7aa] LEA RDI,[RSP + 0x88] MOV EDX,0x1 CALL 0x0010b450 LEA RDI,[RSP + 0xf8] CALL 0x0010b0a0 MOV EBX,EAX TEST AL,AL JZ 0x001173f7 TEST EBP,EBP JNZ 0x001172a8 MOV EBP,0x1 LAB_0011728f: LEA RSI,[0x13d809] LEA RDI,[RSP + 0x88] MOV EDX,0x3b CALL 0x0010b490 LAB_001172a8: LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 MOV RSI,qword ptr [R12] MOV RDX,qword ptr [R12 + 0x8] ADD RDX,RSI LAB_001172bd: LEA RDI,[RSP + 0x48] CALL 0x00111e4e LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] ADD RDX,RSI LAB_001172db: LEA RDI,[RSP + 0x28] CALL 0x00111e4e LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] ADD RDX,RSI LAB_001172f8: LEA RDI,[RSP + 0x8] CALL 0x00111e4e LAB_00117302: XOR EAX,EAX LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x28] LEA R8,[RSP + 0x8] MOV ESI,EBP XOR R9D,R9D PUSH RAX PUSH RAX CALL 0x001161ae ADD RSP,0x10 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LAB_00117332: LEA RDI,[RSP + 0x88] CALL 0x0010b490 LEA RAX,[RSP + 0x78] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0011735a MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0010b400 LAB_0011735a: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00117371 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0010b400 LAB_00117371: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x00117388 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0010b400 LAB_00117388: MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x0011739f MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0010b400 LAB_0011739f: LEA RDI,[RSP + 0x88] CALL 0x0010b5e0 LAB_001173ac: JMP 0x0011743d LAB_001173b1: MOV RBX,qword ptr [0x00159ff0] LEA RSI,[0x13d7b9] MOV EDX,0x1d MOV RDI,RBX CALL 0x0010b490 MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX + -0x18] ADD RDI,RBX MOV ESI,0xa CALL 0x0010b3c0 MOVSX ESI,AL MOV RDI,RBX CALL 0x0010b030 MOV RDI,RAX CALL 0x0010b280 XOR EBX,EBX JMP 0x00117475 LAB_001173f7: MOV R14,qword ptr [0x00159ff0] LEA RSI,[0x13d7d7] MOV EDX,0x31 MOV RDI,R14 CALL 0x0010b490 MOV RAX,qword ptr [R14] ADD R14,qword ptr [RAX + -0x18] MOV RDI,R14 MOV ESI,0xa CALL 0x0010b3c0 MOVSX ESI,AL MOV RDI,qword ptr [0x00159ff0] CALL 0x0010b030 MOV RDI,RAX CALL 0x0010b280 LAB_0011743d: MOV RAX,qword ptr [0x00159f90] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x18] LEA RDI,[RSP + 0x90] MOV qword ptr [RDI + -0x8],RCX MOV RCX,qword ptr [RCX + -0x18] MOV qword ptr [RSP + RCX*0x1 + 0x88],RAX CALL 0x0010b340 LEA RDI,[RSP + 0x180] CALL 0x0010b120 LAB_00117475: MOV EAX,EBX ADD RSP,0x288 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* addFlashcard(std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&) */ int4 addFlashcard(string *param_1,string *param_2,string *param_3) { char cVar1; int *puVar2; int iVar3; int4 uVar4; long *local_2b0 [2]; long local_2a0 [2]; long *local_290 [2]; long local_280 [2]; long *local_270 [2]; long local_260 [2]; long *local_250; long local_248; long local_240 [2]; long *local_230; filebuf local_228 [8]; long local_220 [29]; ios_base local_138 [264]; /* try { // try from 00117206 to 00117220 has its CatchHandler @ 00117521 */ local_230 = local_220; std::__cxx11::string::_M_construct<char_const*>(&local_230,"flashcards.csv",""); /* try { // try from 00117221 to 0011722d has its CatchHandler @ 001174ff */ iVar3 = getNextID((string *)&local_230); if (local_230 != local_220) { operator_delete(local_230,local_220[0] + 1); } puVar2 = PTR_cerr_00159ff0; if (iVar3 == -1) { std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159ff0,"Error: Could not get next ID.",0x1d); cVar1 = (char)puVar2; std::ios::widen((char)*(int8 *)(*(long *)puVar2 + -0x18) + cVar1); std::ostream::put(cVar1); std::ostream::flush(); uVar4 = 0; } else { std::ofstream::ofstream((ofstream *)&local_230,"flashcards.csv",1); uVar4 = std::__basic_file<char>::is_open(); puVar2 = PTR_cerr_00159ff0; if ((char)uVar4 == '\0') { /* try { // try from 001173f7 to 0011743c has its CatchHandler @ 00117526 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159ff0,"Error: Could not open flashcards.csv for writing.", 0x31); std::ios::widen((char)puVar2 + (char)*(int8 *)(*(long *)puVar2 + -0x18)); std::ostream::put((char)PTR_cerr_00159ff0); std::ostream::flush(); } else { if (iVar3 == 0) { iVar3 = 1; /* try { // try from 0011728f to 001172a7 has its CatchHandler @ 00117526 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)&local_230, "ID,Front,Back,Tag,Successful guesses,Failed guesses,Streak\n",0x3b); } /* try { // try from 001172bd to 001172c6 has its CatchHandler @ 001174fd */ local_270[0] = local_260; std::__cxx11::string::_M_construct<char*> (local_270,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 001172db to 001172e4 has its CatchHandler @ 001174e1 */ local_290[0] = local_280; std::__cxx11::string::_M_construct<char*> (local_290,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2); /* try { // try from 001172f8 to 00117301 has its CatchHandler @ 001174c5 */ local_2b0[0] = local_2a0; std::__cxx11::string::_M_construct<char*> (local_2b0,*(long *)param_3,*(long *)(param_3 + 8) + *(long *)param_3); /* try { // try from 00117302 to 00117327 has its CatchHandler @ 001174a9 */ to_csv_string(&local_250,iVar3,local_270,local_290,local_2b0,0,0,0); /* try { // try from 00117332 to 0011733e has its CatchHandler @ 00117489 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)&local_230,(char *)local_250,local_248); if (local_250 != local_240) { operator_delete(local_250,local_240[0] + 1); } if (local_2b0[0] != local_2a0) { operator_delete(local_2b0[0],local_2a0[0] + 1); } if (local_290[0] != local_280) { operator_delete(local_290[0],local_280[0] + 1); } if (local_270[0] != local_260) { operator_delete(local_270[0],local_260[0] + 1); } /* try { // try from 0011739f to 001173ab has its CatchHandler @ 00117526 */ std::ofstream::close(); } local_230 = *(long **)PTR_VTT_00159f90; *(int8 *)(local_228 + local_230[-3] + -8) = *(int8 *)(PTR_VTT_00159f90 + 0x18); std::filebuf::~filebuf(local_228); std::ios_base::~ios_base(local_138); } return uVar4; }
29,691
my_uca_generate_pages
eloqsql/strings/ctype-uca.c
static my_bool my_uca_generate_pages(MY_CHARSET_LOADER *loader, MY_UCA_WEIGHT_LEVEL *dst, const MY_UCA_WEIGHT_LEVEL *src, uint npages) { uint page; for (page= 0; page < npages; page++) { if (dst->weights[page]) { /* A page with explicit weights with no special rules */ continue; } if (!dst->lengths[page]) { /* A page with implicit weights with no special rules. Keep dst->weights[page]==NULL and dst->lengths[page]==0. Weights for this page will be generated at run time algorithmically, using my_uca_scanner_next_implicit(). */ continue; } /* Found a page with some special rules. */ if (my_uca_generate_page(loader, dst, src, page)) return TRUE; } return FALSE; }
O0
c
my_uca_generate_pages: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movl $0x0, -0x28(%rbp) movl -0x28(%rbp), %eax cmpl -0x24(%rbp), %eax jae 0x48f88 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x28(%rbp), %ecx cmpq $0x0, (%rax,%rcx,8) je 0x48f4a jmp 0x48f7d movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movl -0x28(%rbp), %ecx cmpb $0x0, (%rax,%rcx) jne 0x48f5d jmp 0x48f7d movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movl -0x28(%rbp), %ecx callq 0x492f0 cmpb $0x0, %al je 0x48f7b movb $0x1, -0x1(%rbp) jmp 0x48f8c jmp 0x48f7d movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x48f2e movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_uca_generate_pages: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_28], 0 loc_48F2E: mov eax, [rbp+var_28] cmp eax, [rbp+var_24] jnb short loc_48F88 mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_28] cmp qword ptr [rax+rcx*8], 0 jz short loc_48F4A jmp short loc_48F7D loc_48F4A: mov rax, [rbp+var_18] mov rax, [rax+8] mov ecx, [rbp+var_28] cmp byte ptr [rax+rcx], 0 jnz short loc_48F5D jmp short loc_48F7D loc_48F5D: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov ecx, [rbp+var_28] call my_uca_generate_page cmp al, 0 jz short loc_48F7B mov [rbp+var_1], 1 jmp short loc_48F8C loc_48F7B: jmp short $+2 loc_48F7D: mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax jmp short loc_48F2E loc_48F88: mov [rbp+var_1], 0 loc_48F8C: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char my_uca_generate_pages(long long a1, long long a2, long long a3, unsigned int a4) { unsigned int i; // [rsp+8h] [rbp-28h] for ( i = 0; i < a4; ++i ) { if ( !*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * i) && *(_BYTE *)(*(_QWORD *)(a2 + 8) + i) && (unsigned __int8)my_uca_generate_page(a1, a2, a3, i) ) { return 1; } } return 0; }
my_uca_generate_pages: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV dword ptr [RBP + -0x28],0x0 LAB_00148f2e: MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RBP + -0x24] JNC 0x00148f88 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x28] CMP qword ptr [RAX + RCX*0x8],0x0 JZ 0x00148f4a JMP 0x00148f7d LAB_00148f4a: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x28] CMP byte ptr [RAX + RCX*0x1],0x0 JNZ 0x00148f5d JMP 0x00148f7d LAB_00148f5d: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x28] CALL 0x001492f0 CMP AL,0x0 JZ 0x00148f7b MOV byte ptr [RBP + -0x1],0x1 JMP 0x00148f8c LAB_00148f7b: JMP 0x00148f7d LAB_00148f7d: MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x00148f2e LAB_00148f88: MOV byte ptr [RBP + -0x1],0x0 LAB_00148f8c: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 my_uca_generate_pages(int8 param_1,long param_2,int8 param_3,uint param_4) { char cVar1; uint local_30; local_30 = 0; while( true ) { if (param_4 <= local_30) { return 0; } if (((*(long *)(*(long *)(param_2 + 0x10) + (ulong)local_30 * 8) == 0) && (*(char *)(*(long *)(param_2 + 8) + (ulong)local_30) != '\0')) && (cVar1 = my_uca_generate_page(param_1,param_2,param_3,local_30), cVar1 != '\0')) break; local_30 = local_30 + 1; } return 1; }
29,692
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double)
monkey531[P]llama/common/json.hpp
void dump_float(number_float_t x) { // NaN / inf if (!std::isfinite(x)) { o->write_characters("null", 4); return; } // If number_float_t is an IEEE-754 single or double precision number, // use the Grisu2 algorithm to produce short numbers which are // guaranteed to round-trip, using strtof and strtod, resp. // // NB: The test below works if <long double> == <double>. static constexpr bool is_ieee_single_or_double = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) || (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024); dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>()); }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movsd %xmm0, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) movsd 0x18(%rsp), %xmm0 callq 0xacdc0 testb $0x1, %al jne 0x18da09 movq 0x8(%rsp), %rdi callq 0x18c320 movq %rax, %rdi movq (%rdi), %rax leaq 0x836af(%rip), %rsi # 0x2110ae movl $0x4, %edx callq *0x8(%rax) jmp 0x18da19 movq 0x8(%rsp), %rdi movsd 0x18(%rsp), %xmm0 callq 0x18e4e0 addq $0x28, %rsp retq nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd: sub rsp, 28h mov [rsp+28h+var_8], rdi movsd [rsp+28h+var_10], xmm0 mov rax, [rsp+28h+var_8] mov [rsp+28h+var_20], rax movsd xmm0, [rsp+28h+var_10]; double call _ZSt8isfinited; std::isfinite(double) test al, 1 jnz short loc_18DA09 mov rdi, [rsp+28h+var_20] call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_36detail23output_adapter_protocolIcEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax mov rax, [rdi] lea rsi, aOnNull_0+5; "null" mov edx, 4 call qword ptr [rax+8] jmp short loc_18DA19 loc_18DA09: mov rdi, [rsp+28h+var_20] movsd xmm0, [rsp+28h+var_10] call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEdSt17integral_constantIbLb1EE; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::dump_float(double,std::integral_constant<bool,true>) loc_18DA19: add rsp, 28h retn
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float( long long a1, double a2) { long long v2; // rax if ( std::isfinite(a2) ) return nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float( a1, a2); v2 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a1); return (*(long long ( **)(long long, char *, long long))(*(_QWORD *)v2 + 8LL))(v2, "null", 4LL); }
__uninit_copy<__gnu_cxx::__normal_iterator<common_sampler_type_const*,std::vector<common_sampler_type,std::allocator<common_sampler_type>>>,common_sampler_type*>: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP],RAX MOV RDX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP] CALL 0x0018da00 ADD RSP,0x28 RET
/* common_sampler_type* std::__uninitialized_copy<true>::__uninit_copy<__gnu_cxx::__normal_iterator<common_sampler_type const*, std::vector<common_sampler_type, std::allocator<common_sampler_type> > >, common_sampler_type*>(__gnu_cxx::__normal_iterator<common_sampler_type const*, std::vector<common_sampler_type, std::allocator<common_sampler_type> > >, __gnu_cxx::__normal_iterator<common_sampler_type const*, std::vector<common_sampler_type, std::allocator<common_sampler_type> > >, common_sampler_type*) */ common_sampler_type * std::__uninitialized_copy<true>:: __uninit_copy<__gnu_cxx::__normal_iterator<common_sampler_type_const*,std::vector<common_sampler_type,std::allocator<common_sampler_type>>>,common_sampler_type*> (int8 param_1,int8 param_2,int8 param_3) { common_sampler_type *pcVar1; pcVar1 = copy<__gnu_cxx::__normal_iterator<common_sampler_type_const*,std::vector<common_sampler_type,std::allocator<common_sampler_type>>>,common_sampler_type*> (param_1,param_2,param_3); return pcVar1; }
29,693
minja::Value::contains(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
bool contains(const Value & value) const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (array_) { for (const auto& item : *array_) { if (item.to_bool() && item == value) return true; } return false; } else if (object_) { if (!value.is_hashable()) throw std::runtime_error("Unashable type: " + value.dump()); return object_->find(value.primitive_) != object_->end(); } else { throw std::runtime_error("contains can only be called on arrays and objects: " + dump()); } }
O3
cpp
minja::Value::contains(minja::Value const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rsi, %rbx movq %rdi, %r15 movq 0x10(%rdi), %rax movq 0x20(%rdi), %r12 testq %r12, %r12 jne 0x54884 testq %rax, %rax jne 0x54884 cmpb $0x0, 0x40(%r15) jne 0x54884 cmpq $0x0, 0x30(%r15) je 0x54934 testq %rax, %rax je 0x548ba movq (%rax), %r14 movq 0x8(%rax), %r15 cmpq %r15, %r14 je 0x548b6 movq %r14, %rdi callq 0x3d640 testb %al, %al je 0x548b0 movq %r14, %rdi movq %rbx, %rsi callq 0x55d62 testb %al, %al jne 0x54925 addq $0x50, %r14 jmp 0x54890 xorl %eax, %eax jmp 0x54927 testq %r12, %r12 je 0x54966 cmpq $0x0, 0x10(%rbx) jne 0x549c3 cmpq $0x0, 0x20(%rbx) jne 0x549c3 cmpq $0x0, 0x30(%rbx) jne 0x549c3 movq (%r12), %r14 cmpq 0x8(%r12), %r14 je 0x5491a addq $0x40, %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x4e4d2 testb %al, %al jne 0x5490d addq $0x60, %r14 cmpq 0x8(%r12), %r14 jne 0x548f3 movq %r14, %rax movq 0x20(%r15), %rcx movq 0x8(%rcx), %r14 jmp 0x5491d movq %r14, %rax cmpq %r14, %rax setne %al jmp 0x54927 movb $0x1, %al addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x18360 movq %rax, %r14 leaq 0x5572a(%rip), %rsi # 0xaa072 movq %rax, %rdi callq 0x18270 movq 0x88691(%rip), %rsi # 0xdcfe8 movq 0x88602(%rip), %rdx # 0xdcf60 movq %r14, %rdi callq 0x18b30 movl $0x10, %edi callq 0x18360 movq %rax, %r14 movq %rsp, %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x3daf6 leaq 0x572c3(%rip), %rsi # 0xabc4f leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x24de1 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x18a80 xorl %ebp, %ebp movq 0x88636(%rip), %rsi # 0xdcfe8 movq 0x885a7(%rip), %rdx # 0xdcf60 movq %r14, %rdi callq 0x18b30 jmp 0x54a1e movl $0x10, %edi callq 0x18360 movq %rax, %r14 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x3daf6 leaq 0x56db6(%rip), %rsi # 0xab79f leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x24de1 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x18a80 xorl %ebp, %ebp movq 0x885d9(%rip), %rsi # 0xdcfe8 movq 0x8854a(%rip), %rdx # 0xdcf60 movq %r14, %rdi callq 0x18b30 jmp 0x54a22 jmp 0x54a62 movq %rax, %rbx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x54a40 movq 0x30(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x54a5b movq 0x10(%rsp), %rsi incq %rsi callq 0x186a0 testb %bpl, %bpl jne 0x54a89 jmp 0x54a91 movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x54a89 movq 0x10(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x54a89 jmp 0x54a86 jmp 0x54a86 movq %rax, %rbx movq %r14, %rdi callq 0x184f0 movq %rbx, %rdi callq 0x18b90 nop
_ZNK5minja5Value8containsERKS0_: push rbp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rsi mov r15, rdi mov rax, [rdi+10h] mov r12, [rdi+20h] test r12, r12 jnz short loc_54884 test rax, rax jnz short loc_54884 cmp byte ptr [r15+40h], 0 jnz short loc_54884 cmp qword ptr [r15+30h], 0 jz loc_54934 loc_54884: test rax, rax jz short loc_548BA mov r14, [rax] mov r15, [rax+8] loc_54890: cmp r14, r15 jz short loc_548B6 mov rdi, r14; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) test al, al jz short loc_548B0 mov rdi, r14 mov rsi, rbx call _ZNK5minja5ValueeqERKS0_; minja::Value::operator==(minja::Value const&) test al, al jnz short loc_54925 loc_548B0: add r14, 50h ; 'P' jmp short loc_54890 loc_548B6: xor eax, eax jmp short loc_54927 loc_548BA: test r12, r12 jz loc_54966 cmp qword ptr [rbx+10h], 0 jnz loc_549C3 cmp qword ptr [rbx+20h], 0 jnz loc_549C3 cmp qword ptr [rbx+30h], 0 jnz loc_549C3 mov r14, [r12] cmp r14, [r12+8] jz short loc_5491A add rbx, 40h ; '@' loc_548F3: mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jnz short loc_5490D add r14, 60h ; '`' cmp r14, [r12+8] jnz short loc_548F3 loc_5490D: mov rax, r14 mov rcx, [r15+20h] mov r14, [rcx+8] jmp short loc_5491D loc_5491A: mov rax, r14 loc_5491D: cmp rax, r14 setnz al jmp short loc_54927 loc_54925: mov al, 1 loc_54927: add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_54934: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aUndefinedValue; "Undefined value or reference" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_54966: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, r15 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aContainsCanOnl; "contains can only be called on arrays a"... lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_48] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_54A1E loc_549C3: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_48] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_54A1E: jmp short loc_54A22 jmp short loc_54A62 loc_54A22: mov rbx, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_54A40 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54A40: lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_54A5B mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54A5B: test bpl, bpl jnz short loc_54A89 jmp short loc_54A91 loc_54A62: mov rbx, rax lea rax, [rsp+68h+var_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_54A89 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_54A89 jmp short loc_54A86 jmp short $+2 loc_54A86: mov rbx, rax loc_54A89: mov rdi, r14; void * call ___cxa_free_exception loc_54A91: mov rdi, rbx call __Unwind_Resume
bool minja::Value::contains(minja::Value *this, const minja::Value *a2, __m128d a3) { minja::Value **v3; // rax unsigned __int8 **v4; // r12 minja::Value *v5; // r14 minja::Value *v6; // r15 unsigned __int8 *v8; // r14 unsigned __int8 *v9; // rax std::runtime_error *exception; // r14 void *v11; // r14 void *v12; // r14 _BYTE v13[16]; // [rsp+0h] [rbp-68h] BYREF _BYTE v14[16]; // [rsp+20h] [rbp-48h] BYREF v3 = (minja::Value **)*((_QWORD *)this + 2); v4 = (unsigned __int8 **)*((_QWORD *)this + 4); if ( !v4 && !v3 && !*((_BYTE *)this + 64) && !*((_QWORD *)this + 6) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( v3 ) { v5 = *v3; v6 = v3[1]; while ( 1 ) { if ( v5 == v6 ) return 0; if ( (unsigned __int8)minja::Value::to_bool(v5) && (unsigned __int8)minja::Value::operator==(v5, a2) ) break; v5 = (minja::Value *)((char *)v5 + 80); } return 1; } else { if ( !v4 ) { v11 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v13, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>((long long)v14, (long long)"contains can only be called on arrays and objects: ", (long long)v13); std::runtime_error::runtime_error(v11, v14); __cxa_throw( v11, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) ) { v12 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v13, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v14, (long long)"Unashable type: ", (long long)v13); std::runtime_error::runtime_error(v12, v14); __cxa_throw( v12, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v8 = *v4; if ( *v4 == v4[1] ) { v9 = *v4; } else { do { if ( (unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v8, (unsigned __int8 *)a2 + 64, a3) ) break; v8 += 96; } while ( v8 != v4[1] ); v9 = v8; v8 = *(unsigned __int8 **)(*((_QWORD *)this + 4) + 8LL); } return v9 != v8; } }
contains: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RSI MOV R15,RDI MOV RAX,qword ptr [RDI + 0x10] MOV R12,qword ptr [RDI + 0x20] TEST R12,R12 JNZ 0x00154884 TEST RAX,RAX JNZ 0x00154884 CMP byte ptr [R15 + 0x40],0x0 JNZ 0x00154884 CMP qword ptr [R15 + 0x30],0x0 JZ 0x00154934 LAB_00154884: TEST RAX,RAX JZ 0x001548ba MOV R14,qword ptr [RAX] MOV R15,qword ptr [RAX + 0x8] LAB_00154890: CMP R14,R15 JZ 0x001548b6 MOV RDI,R14 CALL 0x0013d640 TEST AL,AL JZ 0x001548b0 MOV RDI,R14 MOV RSI,RBX CALL 0x00155d62 TEST AL,AL JNZ 0x00154925 LAB_001548b0: ADD R14,0x50 JMP 0x00154890 LAB_001548b6: XOR EAX,EAX JMP 0x00154927 LAB_001548ba: TEST R12,R12 JZ 0x00154966 CMP qword ptr [RBX + 0x10],0x0 JNZ 0x001549c3 CMP qword ptr [RBX + 0x20],0x0 JNZ 0x001549c3 CMP qword ptr [RBX + 0x30],0x0 JNZ 0x001549c3 MOV R14,qword ptr [R12] CMP R14,qword ptr [R12 + 0x8] JZ 0x0015491a ADD RBX,0x40 LAB_001548f3: MOV RDI,R14 MOV RSI,RBX CALL 0x0014e4d2 TEST AL,AL JNZ 0x0015490d ADD R14,0x60 CMP R14,qword ptr [R12 + 0x8] JNZ 0x001548f3 LAB_0015490d: MOV RAX,R14 MOV RCX,qword ptr [R15 + 0x20] MOV R14,qword ptr [RCX + 0x8] JMP 0x0015491d LAB_0015491a: MOV RAX,R14 LAB_0015491d: CMP RAX,R14 SETNZ AL JMP 0x00154927 LAB_00154925: MOV AL,0x1 LAB_00154927: ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00154934: MOV EDI,0x10 CALL 0x00118360 MOV R14,RAX LAB_00154941: LEA RSI,[0x1aa072] MOV RDI,RAX CALL 0x00118270 LAB_00154950: MOV RSI,qword ptr [0x001dcfe8] MOV RDX,qword ptr [0x001dcf60] MOV RDI,R14 CALL 0x00118b30 LAB_00154966: MOV EDI,0x10 CALL 0x00118360 MOV R14,RAX LAB_00154973: MOV RDI,RSP MOV RSI,R15 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0013daf6 LAB_00154985: LEA RSI,[0x1abc4f] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00124de1 MOV BPL,0x1 LAB_0015499c: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00118a80 XOR EBP,EBP MOV RSI,qword ptr [0x001dcfe8] MOV RDX,qword ptr [0x001dcf60] MOV RDI,R14 CALL 0x00118b30 LAB_001549c3: MOV EDI,0x10 CALL 0x00118360 MOV R14,RAX LAB_001549d0: MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0013daf6 LAB_001549e2: LEA RSI,[0x1ab79f] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00124de1 MOV BPL,0x1 LAB_001549f9: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00118a80 XOR EBP,EBP MOV RSI,qword ptr [0x001dcfe8] MOV RDX,qword ptr [0x001dcf60] MOV RDI,R14 CALL 0x00118b30
/* minja::Value::contains(minja::Value const&) const */ bool __thiscall minja::Value::contains(Value *this,Value *param_1) { int8 *puVar1; long *plVar2; Value *pVVar3; char cVar4; runtime_error *prVar5; Value *this_00; basic_json *pbVar6; basic_json *pbVar7; bool bVar8; int1 auStack_68 [32]; string local_48 [32]; puVar1 = *(int8 **)(this + 0x10); plVar2 = *(long **)(this + 0x20); if ((((plVar2 == (long *)0x0) && (puVar1 == (int8 *)0x0)) && (this[0x40] == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00154941 to 0015494f has its CatchHandler @ 00154a86 */ std::runtime_error::runtime_error(prVar5,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60); } if (puVar1 == (int8 *)0x0) { if (plVar2 == (long *)0x0) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00154973 to 00154984 has its CatchHandler @ 00154a84 */ dump_abi_cxx11_((int)auStack_68,SUB81(this,0)); /* try { // try from 00154985 to 00154998 has its CatchHandler @ 00154a62 */ std::operator+((char *)local_48, (string *)"contains can only be called on arrays and objects: "); /* try { // try from 0015499c to 001549c0 has its CatchHandler @ 00154a22 */ std::runtime_error::runtime_error(prVar5,local_48); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60); } if (((*(long *)(param_1 + 0x10) != 0) || (*(long *)(param_1 + 0x20) != 0)) || (*(long *)(param_1 + 0x30) != 0)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001549d0 to 001549e1 has its CatchHandler @ 00154a82 */ dump_abi_cxx11_((int)auStack_68,SUB81(param_1,0)); /* try { // try from 001549e2 to 001549f5 has its CatchHandler @ 00154a20 */ std::operator+((char *)local_48,(string *)"Unashable type: "); /* try { // try from 001549f9 to 00154a1d has its CatchHandler @ 00154a1e */ std::runtime_error::runtime_error(prVar5,local_48); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60); } pbVar6 = (basic_json *)*plVar2; pbVar7 = pbVar6; if (pbVar6 != (basic_json *)plVar2[1]) { do { cVar4 = nlohmann::json_abi_v3_11_3::operator==(pbVar6,(basic_json *)(param_1 + 0x40)); if (cVar4 != '\0') break; pbVar6 = pbVar6 + 0x60; } while (pbVar6 != (basic_json *)plVar2[1]); pbVar7 = *(basic_json **)(*(long *)(this + 0x20) + 8); } bVar8 = pbVar6 != pbVar7; } else { pVVar3 = (Value *)puVar1[1]; for (this_00 = (Value *)*puVar1; this_00 != pVVar3; this_00 = this_00 + 0x50) { cVar4 = to_bool(this_00); if ((cVar4 != '\0') && (cVar4 = operator==(this_00,param_1), cVar4 != '\0')) { return true; } } bVar8 = false; } return bVar8; }
29,694
my_rw_unlock
eloqsql/mysys/thr_rwlock.c
int my_rw_unlock(my_rw_lock_t *rwp) { DBUG_PRINT("rw_unlock", ("state: %d waiters: %d", rwp->state, rwp->waiters)); pthread_mutex_lock(&rwp->lock); DBUG_ASSERT(rwp->state != 0); if (rwp->state == -1) /* writer releasing */ { my_rw_lock_assert_write_owner(rwp); rwp->state= 0; /* mark as available */ #ifdef SAFE_MUTEX rwp->write_thread= 0; #endif if ( rwp->waiters ) /* writers queued */ pthread_cond_signal( &rwp->writers ); else pthread_cond_broadcast( &rwp->readers ); } else { if ( --rwp->state == 0 && /* no more readers */ rwp->waiters) pthread_cond_signal( &rwp->writers ); } pthread_mutex_unlock( &rwp->lock ); return(0); }
O3
c
my_rw_unlock: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx callq 0x285a0 movl 0x88(%rbx), %eax cmpl $-0x1, %eax je 0x61750 decl %eax movl %eax, 0x88(%rbx) jne 0x61777 cmpl $0x0, 0x8c(%rbx) jne 0x61763 jmp 0x61777 movl $0x0, 0x88(%rbx) cmpl $0x0, 0x8c(%rbx) je 0x6176e leaq 0x58(%rbx), %rdi callq 0x28040 jmp 0x61777 leaq 0x28(%rbx), %rdi callq 0x28100 movq %rbx, %rdi callq 0x28280 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
my_rw_unlock: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi call _pthread_mutex_lock mov eax, [rbx+88h] cmp eax, 0FFFFFFFFh jz short loc_61750 dec eax mov [rbx+88h], eax jnz short loc_61777 cmp dword ptr [rbx+8Ch], 0 jnz short loc_61763 jmp short loc_61777 loc_61750: mov dword ptr [rbx+88h], 0 cmp dword ptr [rbx+8Ch], 0 jz short loc_6176E loc_61763: lea rdi, [rbx+58h] call _pthread_cond_signal jmp short loc_61777 loc_6176E: lea rdi, [rbx+28h] call _pthread_cond_broadcast loc_61777: mov rdi, rbx call _pthread_mutex_unlock xor eax, eax add rsp, 8 pop rbx pop rbp retn
long long my_rw_unlock(long long a1) { int v1; // eax int v2; // eax pthread_mutex_lock(a1); v1 = *(_DWORD *)(a1 + 136); if ( v1 == -1 ) { *(_DWORD *)(a1 + 136) = 0; if ( !*(_DWORD *)(a1 + 140) ) { pthread_cond_broadcast(a1 + 40); goto LABEL_8; } goto LABEL_6; } v2 = v1 - 1; *(_DWORD *)(a1 + 136) = v2; if ( !v2 && *(_DWORD *)(a1 + 140) ) LABEL_6: pthread_cond_signal(a1 + 88); LABEL_8: pthread_mutex_unlock(a1); return 0LL; }
my_rw_unlock: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x001285a0 MOV EAX,dword ptr [RBX + 0x88] CMP EAX,-0x1 JZ 0x00161750 DEC EAX MOV dword ptr [RBX + 0x88],EAX JNZ 0x00161777 CMP dword ptr [RBX + 0x8c],0x0 JNZ 0x00161763 JMP 0x00161777 LAB_00161750: MOV dword ptr [RBX + 0x88],0x0 CMP dword ptr [RBX + 0x8c],0x0 JZ 0x0016176e LAB_00161763: LEA RDI,[RBX + 0x58] CALL 0x00128040 JMP 0x00161777 LAB_0016176e: LEA RDI,[RBX + 0x28] CALL 0x00128100 LAB_00161777: MOV RDI,RBX CALL 0x00128280 XOR EAX,EAX ADD RSP,0x8 POP RBX POP RBP RET
int8 my_rw_unlock(pthread_mutex_t *param_1) { int iVar1; pthread_mutex_lock(param_1); if (*(int *)((long)param_1 + 0x88) == -1) { *(int4 *)((long)param_1 + 0x88) = 0; if (*(int *)((long)param_1 + 0x8c) == 0) { pthread_cond_broadcast((pthread_cond_t *)(param_1 + 1)); goto LAB_00161777; } } else { iVar1 = *(int *)((long)param_1 + 0x88) + -1; *(int *)((long)param_1 + 0x88) = iVar1; if ((iVar1 != 0) || (*(int *)((long)param_1 + 0x8c) == 0)) goto LAB_00161777; } pthread_cond_signal((pthread_cond_t *)((long)param_1 + 0x58)); LAB_00161777: pthread_mutex_unlock(param_1); return 0; }
29,695
string_format[abi:cxx11](char const*, ...)
llama.cpp/examples/llava/clip-impl.h
static std::string string_format(const char * fmt, ...) { va_list ap; va_list ap2; va_start(ap, fmt); va_copy(ap2, ap); int size = vsnprintf(NULL, 0, fmt, ap); GGML_ASSERT(size >= 0 && size < INT_MAX); // NOLINT std::vector<char> buf(size + 1); int size2 = vsnprintf(buf.data(), size + 1, fmt, ap2); GGML_ASSERT(size2 == size); va_end(ap2); va_end(ap); return std::string(buf.data(), buf.size()); }
O3
c
string_format[abi:cxx11](char const*, ...): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x110, %rsp # imm = 0x110 movq %rsi, %r14 movq %rdi, %rbx leaq 0x60(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x28155 movaps %xmm0, 0x90(%rsp) movaps %xmm1, 0xa0(%rsp) movaps %xmm2, 0xb0(%rsp) movaps %xmm3, 0xc0(%rsp) movaps %xmm4, 0xd0(%rsp) movaps %xmm5, 0xe0(%rsp) movaps %xmm6, 0xf0(%rsp) movaps %xmm7, 0x100(%rsp) movabsq $0x3000000010, %rax # imm = 0x3000000010 leaq 0x40(%rsp), %rcx movq %rax, (%rcx) leaq 0x140(%rsp), %rax movq %rax, 0x8(%rcx) movq %rsi, 0x10(%rcx) movq %rsi, 0x30(%rsp) movq (%rcx), %rax movq %rax, 0x20(%rsp) movq 0x8(%rcx), %rax movq %rax, 0x28(%rsp) xorl %edi, %edi xorl %esi, %esi movq %r14, %rdx callq 0x1cc80 cmpl $0x7fffffff, %eax # imm = 0x7FFFFFFF jae 0x2821a movl %eax, %r15d leal 0x1(%r15), %r12d leaq 0x8(%rsp), %r13 leaq 0x7(%rsp), %rdx movq %r13, %rdi movq %r12, %rsi callq 0x1ce10 movq (%r13), %rdi leaq 0x20(%rsp), %rcx movq %r12, %rsi movq %r14, %rdx callq 0x1cc80 cmpl %r15d, %eax jne 0x2823b movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx subq %rsi, %rdx leaq 0x7(%rsp), %rcx movq %rbx, %rdi callq 0x1d6a0 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x28206 movq 0x18(%rsp), %rsi subq %rdi, %rsi callq 0x1d4e0 movq %rbx, %rax addq $0x110, %rsp # imm = 0x110 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0x28233(%rip), %rdi # 0x50454 leaq 0x26eed(%rip), %rdx # 0x4f115 leaq 0x2826b(%rip), %rcx # 0x5049a movl $0xe9, %esi xorl %eax, %eax callq 0x1e3b0 leaq 0x28212(%rip), %rdi # 0x50454 leaq 0x26ecc(%rip), %rdx # 0x4f115 leaq 0x28266(%rip), %rcx # 0x504b6 movl $0xec, %esi xorl %eax, %eax callq 0x1e3b0 jmp 0x2825e movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x28278 movq 0x18(%rsp), %rsi subq %rdi, %rsi callq 0x1d4e0 movq %rbx, %rdi callq 0x1e5a0
_ZL13string_formatB5cxx11PKcz: push r15 push r14 push r13 push r12 push rbx sub rsp, 110h mov r14, rsi mov rbx, rdi lea rsi, [rsp+138h+var_D8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_28155 movaps [rsp+138h+var_A8], xmm0 movaps [rsp+138h+var_98], xmm1 movaps [rsp+138h+var_88], xmm2 movaps [rsp+138h+var_78], xmm3 movaps [rsp+138h+var_68], xmm4 movaps [rsp+138h+var_58], xmm5 movaps [rsp+138h+var_48], xmm6 movaps [rsp+138h+var_38], xmm7 loc_28155: mov rax, 3000000010h lea rcx, [rsp+138h+var_F8] mov [rcx], rax lea rax, [rsp+138h+arg_0] mov [rcx+8], rax mov [rcx+10h], rsi mov [rsp+138h+var_108], rsi mov rax, [rcx] mov [rsp+138h+var_118], rax mov rax, [rcx+8] mov [rsp+138h+var_110], rax xor edi, edi xor esi, esi mov rdx, r14 call _vsnprintf cmp eax, 7FFFFFFFh jnb short loc_2821A mov r15d, eax lea r12d, [r15+1] lea r13, [rsp+138h+var_130] lea rdx, [rsp+138h+var_131] mov rdi, r13 mov rsi, r12 call __ZNSt6vectorIcSaIcEEC2EmRKS0_; std::vector<char>::vector(ulong,std::allocator<char> const&) mov rdi, [r13+0] lea rcx, [rsp+138h+var_118] mov rsi, r12 mov rdx, r14 call _vsnprintf cmp eax, r15d jnz short loc_2823B mov rsi, [rsp+138h+var_130] mov rdx, [rsp+138h+var_128] sub rdx, rsi lea rcx, [rsp+138h+var_131] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_; std::string::basic_string(char const*,ulong,std::allocator<char> const&) mov rdi, [rsp+138h+var_130]; void * test rdi, rdi jz short loc_28206 mov rsi, [rsp+138h+var_120] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28206: mov rax, rbx add rsp, 110h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_2821A: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSize0SizeIntMa; "size >= 0 && size < INT_MAX" mov esi, 0E9h xor eax, eax call _ggml_abort loc_2823B: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSize2Size; "size2 == size" mov esi, 0ECh xor eax, eax call _ggml_abort jmp short $+2 loc_2825E: mov rbx, rax mov rdi, [rsp+138h+var_130]; void * test rdi, rdi jz short loc_28278 mov rsi, [rsp+138h+var_120] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28278: mov rdi, rbx call __Unwind_Resume
long long string_format[abi:cxx11]( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { unsigned int v15; // eax unsigned int v16; // r15d long long v17; // r12 long long v19; // rbx char v20; // [rsp+7h] [rbp-131h] BYREF void *v21[2]; // [rsp+8h] [rbp-130h] BYREF long long v22; // [rsp+18h] [rbp-120h] long long v23; // [rsp+20h] [rbp-118h] char *v24; // [rsp+28h] [rbp-110h] _BYTE *v25; // [rsp+30h] [rbp-108h] long long v26; // [rsp+40h] [rbp-F8h] char *v27; // [rsp+48h] [rbp-F0h] _BYTE *v28; // [rsp+50h] [rbp-E8h] _BYTE v29[16]; // [rsp+60h] [rbp-D8h] BYREF long long v30; // [rsp+70h] [rbp-C8h] long long v31; // [rsp+78h] [rbp-C0h] long long v32; // [rsp+80h] [rbp-B8h] long long v33; // [rsp+88h] [rbp-B0h] __m128 v34; // [rsp+90h] [rbp-A8h] __m128 v35; // [rsp+A0h] [rbp-98h] __m128 v36; // [rsp+B0h] [rbp-88h] __m128 v37; // [rsp+C0h] [rbp-78h] __m128 v38; // [rsp+D0h] [rbp-68h] __m128 v39; // [rsp+E0h] [rbp-58h] __m128 v40; // [rsp+F0h] [rbp-48h] __m128 v41; // [rsp+100h] [rbp-38h] v34 = a7; v35 = a8; v36 = a9; v37 = a10; v38 = a11; v39 = a12; v40 = a13; v41 = a14; v30 = a3; v31 = a4; v32 = a5; v33 = a6; v26 = 0x3000000010LL; v27 = &a15; v28 = v29; v25 = v29; v23 = 0x3000000010LL; v24 = &a15; v15 = vsnprintf(0LL, 0LL, a2); if ( v15 >= 0x7FFFFFFF ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/examples/llava/clip-impl.h", 233LL, "GGML_ASSERT(%s) failed", "size >= 0 && size < INT_MAX"); LABEL_7: v19 = ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/examples/llava/clip-impl.h", 236LL, "GGML_ASSERT(%s) failed", "size2 == size"); if ( v21[0] ) operator delete(v21[0], v22 - (unsigned long long)v21[0]); _Unwind_Resume(v19); } v16 = v15; v17 = v15 + 1; std::vector<char>::vector(v21, v17, &v20); if ( (unsigned int)vsnprintf(v21[0], v17, a2) != v16 ) goto LABEL_7; std::string::basic_string(a1, v21[0], (char *)v21[1] - (char *)v21[0], &v20); if ( v21[0] ) operator delete(v21[0], v22 - (unsigned long long)v21[0]); return a1; }
string_format[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x110 MOV R14,RSI MOV RBX,RDI LEA RSI,[RSP + 0x60] 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 0x00128155 MOVAPS xmmword ptr [RSP + 0x90],XMM0 MOVAPS xmmword ptr [RSP + 0xa0],XMM1 MOVAPS xmmword ptr [RSP + 0xb0],XMM2 MOVAPS xmmword ptr [RSP + 0xc0],XMM3 MOVAPS xmmword ptr [RSP + 0xd0],XMM4 MOVAPS xmmword ptr [RSP + 0xe0],XMM5 MOVAPS xmmword ptr [RSP + 0xf0],XMM6 MOVAPS xmmword ptr [RSP + 0x100],XMM7 LAB_00128155: MOV RAX,0x3000000010 LEA RCX,[RSP + 0x40] MOV qword ptr [RCX],RAX LEA RAX,[RSP + 0x140] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RCX + 0x10],RSI MOV qword ptr [RSP + 0x30],RSI MOV RAX,qword ptr [RCX] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RCX + 0x8] MOV qword ptr [RSP + 0x28],RAX XOR EDI,EDI XOR ESI,ESI MOV RDX,R14 CALL 0x0011cc80 CMP EAX,0x7fffffff JNC 0x0012821a MOV R15D,EAX LEA R12D,[R15 + 0x1] LEA R13,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R13 MOV RSI,R12 CALL 0x0011ce10 MOV RDI,qword ptr [R13] LEA RCX,[RSP + 0x20] MOV RSI,R12 MOV RDX,R14 CALL 0x0011cc80 CMP EAX,R15D JNZ 0x0012823b MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] SUB RDX,RSI LAB_001281e2: LEA RCX,[RSP + 0x7] MOV RDI,RBX CALL 0x0011d6a0 LAB_001281ef: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x00128206 MOV RSI,qword ptr [RSP + 0x18] SUB RSI,RDI CALL 0x0011d4e0 LAB_00128206: MOV RAX,RBX ADD RSP,0x110 POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_0012821a: LEA RDI,[0x150454] LEA RDX,[0x14f115] LEA RCX,[0x15049a] MOV ESI,0xe9 XOR EAX,EAX CALL 0x0011e3b0 LAB_0012823b: LEA RDI,[0x150454] LEA RDX,[0x14f115] LEA RCX,[0x1504b6] MOV ESI,0xec XOR EAX,EAX CALL 0x0011e3b0 LAB_0012825c: JMP 0x0012825e LAB_0012825e: MOV RBX,RAX MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x00128278 MOV RSI,qword ptr [RSP + 0x18] SUB RSI,RDI CALL 0x0011d4e0 LAB_00128278: MOV RDI,RBX CALL 0x0011e5a0
/* string_format[abi:cxx11](char const*, ...) */ char * string_format_abi_cxx11_(char *param_1,...) { char in_AL; uint uVar1; uint uVar2; int8 uVar3; int8 in_RCX; int8 in_RDX; char *in_RSI; 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; allocator local_131; char *local_130; long local_128; long local_120; int8 local_118; int1 *local_110; int1 *local_108; 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_108 = 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_f8 = 0x3000000010; local_110 = &stack0x00000008; local_118 = 0x3000000010; local_f0 = local_110; local_e8 = local_108; local_c8 = in_RDX; local_c0 = in_RCX; local_b8 = in_R8; local_b0 = in_R9; uVar1 = vsnprintf((char *)0x0,0,in_RSI,&local_f8); if (uVar1 < 0x7fffffff) { std::vector<char,std::allocator<char>>::vector ((ulong)&local_130,(allocator *)(ulong)(uVar1 + 1)); uVar2 = vsnprintf(local_130,(size_t)(ulong)(uVar1 + 1),in_RSI,&local_118); if (uVar2 == uVar1) { /* try { // try from 001281e2 to 001281ee has its CatchHandler @ 0012825c */ std::__cxx11::string::string ((string *)param_1,local_130,local_128 - (long)local_130,&local_131); if (local_130 != (char *)0x0) { operator_delete(local_130,local_120 - (long)local_130); } return param_1; } } else { ggml_abort("/workspace/llm4binary/github2025/llama.cpp/examples/llava/clip-impl.h",0xe9, "GGML_ASSERT(%s) failed","size >= 0 && size < INT_MAX"); } /* try { // try from 0012823b to 0012825b has its CatchHandler @ 0012825e */ uVar3 = ggml_abort("/workspace/llm4binary/github2025/llama.cpp/examples/llava/clip-impl.h",0xec, "GGML_ASSERT(%s) failed","size2 == size"); /* catch() { ... } // from try @ 001281e2 with catch @ 0012825c */ /* catch() { ... } // from try @ 0012823b with catch @ 0012825e */ if (local_130 != (char *)0x0) { operator_delete(local_130,local_120 - (long)local_130); } /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar3); }
29,696
my_well_formed_char_length_8bit
eloqsql/strings/ctype-simple.c
size_t my_well_formed_char_length_8bit(CHARSET_INFO *cs __attribute__((unused)), const char *start, const char *end, size_t nchars, MY_STRCOPY_STATUS *status) { size_t nbytes= (size_t) (end - start); size_t res= MY_MIN(nbytes, nchars); status->m_well_formed_error_pos= NULL; status->m_source_end_pos= start + res; return res; }
O0
c
my_well_formed_char_length_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x4db0b movq -0x30(%rbp), %rax movq %rax, -0x40(%rbp) jmp 0x4db13 movq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x10(%rbp), %rcx addq -0x38(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax popq %rbp retq nopl (%rax)
my_well_formed_char_length_8bit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] sub rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_30] cmp rax, [rbp+var_20] jnb short loc_4DB0B mov rax, [rbp+var_30] mov [rbp+var_40], rax jmp short loc_4DB13 loc_4DB0B: mov rax, [rbp+var_20] mov [rbp+var_40], rax loc_4DB13: mov rax, [rbp+var_40] mov [rbp+var_38], rax mov rax, [rbp+var_28] mov qword ptr [rax+8], 0 mov rcx, [rbp+var_10] add rcx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_38] pop rbp retn
unsigned long long my_well_formed_char_length_8bit( long long a1, long long a2, long long a3, unsigned long long a4, _QWORD *a5) { unsigned long long v6; // [rsp+0h] [rbp-40h] if ( a3 - a2 >= a4 ) v6 = a4; else v6 = a3 - a2; a5[1] = 0LL; *a5 = v6 + a2; return v6; }
my_well_formed_char_length_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JNC 0x0014db0b MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x40],RAX JMP 0x0014db13 LAB_0014db0b: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX LAB_0014db13: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x8],0x0 MOV RCX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x38] POP RBP RET
ulong my_well_formed_char_length_8bit (int8 param_1,long param_2,long param_3,ulong param_4,long *param_5) { ulong local_48; local_48 = param_4; if ((ulong)(param_3 - param_2) < param_4) { local_48 = param_3 - param_2; } param_5[1] = 0; *param_5 = param_2 + local_48; return local_48; }
29,697
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> CLI::detail::join<std::vector<CLI::App*, std::allocator<CLI::App*>>, CLI::App::_process_requirements()::'lambda'(CLI::App const*), void>(std::vector<CLI::App*, std::allocator<CLI::App*>> const&, CLI::App::_process_requirements()::'lambda'(CLI::App const*), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/StringTools.hpp
std::string join(const T &v, Callable func, std::string delim = ",") { std::ostringstream s; auto beg = std::begin(v); auto end = std::end(v); auto loc = s.tellp(); while(beg != end) { auto nloc = s.tellp(); if(nloc > loc) { s << delim; loc = nloc; } s << func(*beg++); } return s.str(); }
O0
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> CLI::detail::join<std::vector<CLI::App*, std::allocator<CLI::App*>>, CLI::App::_process_requirements()::'lambda'(CLI::App const*), void>(std::vector<CLI::App*, std::allocator<CLI::App*>> const&, CLI::App::_process_requirements()::'lambda'(CLI::App const*), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %rdx, -0x220(%rbp) movq %rdi, -0x218(%rbp) movq %rdi, %rax movq %rax, -0x210(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) leaq -0x198(%rbp), %rdi callq 0x9860 movq -0x18(%rbp), %rdi callq 0x415f0 movq %rax, -0x208(%rbp) jmp 0x3eeed movq -0x208(%rbp), %rax movq %rax, -0x1a0(%rbp) movq -0x18(%rbp), %rdi callq 0x41620 movq %rax, -0x228(%rbp) jmp 0x3ef0d movq -0x228(%rbp), %rax movq %rax, -0x1b8(%rbp) leaq -0x198(%rbp), %rdi callq 0x9500 movq %rdx, -0x238(%rbp) movq %rax, -0x230(%rbp) jmp 0x3ef37 movq -0x238(%rbp), %rax movq -0x230(%rbp), %rcx movq %rcx, -0x1c8(%rbp) movq %rax, -0x1c0(%rbp) leaq -0x1a0(%rbp), %rdi leaq -0x1b8(%rbp), %rsi callq 0x3c9d0 testb $0x1, %al jne 0x3ef6f jmp 0x3f09b leaq -0x198(%rbp), %rdi callq 0x9500 movq %rdx, -0x248(%rbp) movq %rax, -0x240(%rbp) jmp 0x3ef8b movq -0x248(%rbp), %rax movq -0x240(%rbp), %rcx movq %rcx, -0x1d8(%rbp) movq %rax, -0x1d0(%rbp) leaq -0x1d8(%rbp), %rdi callq 0x402b0 movq %rax, -0x250(%rbp) leaq -0x1c8(%rbp), %rdi callq 0x402b0 movq %rax, %rcx movq -0x250(%rbp), %rax cmpq %rcx, %rax jle 0x3f01f movq -0x220(%rbp), %rsi leaq -0x198(%rbp), %rdi callq 0x9550 jmp 0x3efea movq -0x1d8(%rbp), %rax movq %rax, -0x1c8(%rbp) movq -0x1d0(%rbp), %rax movq %rax, -0x1c0(%rbp) jmp 0x3f01f movq %rax, %rcx movl %edx, %eax movq %rcx, -0x1a8(%rbp) movl %eax, -0x1ac(%rbp) jmp 0x3f0cc leaq -0x1a0(%rbp), %rdi xorl %esi, %esi callq 0x41680 movq %rax, -0x200(%rbp) leaq -0x200(%rbp), %rdi callq 0x3ca10 movq (%rax), %rdx leaq -0x1f8(%rbp), %rdi leaq -0x9(%rbp), %rsi callq 0x41650 jmp 0x3f055 leaq -0x198(%rbp), %rdi leaq -0x1f8(%rbp), %rsi callq 0x9550 jmp 0x3f06a leaq -0x1f8(%rbp), %rdi callq 0x9b90 jmp 0x3ef53 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x1a8(%rbp) movl %eax, -0x1ac(%rbp) leaq -0x1f8(%rbp), %rdi callq 0x9b90 jmp 0x3f0cc movq -0x218(%rbp), %rdi leaq -0x198(%rbp), %rsi callq 0x9630 jmp 0x3f0b0 leaq -0x198(%rbp), %rdi callq 0x9130 movq -0x210(%rbp), %rax addq $0x250, %rsp # imm = 0x250 popq %rbp retq leaq -0x198(%rbp), %rdi callq 0x9130 movq -0x1a8(%rbp), %rdi callq 0x9a70 nopw %cs:(%rax,%rax) nop
_ZN3CLI6detail4joinISt6vectorIPNS_3AppESaIS4_EEZNS3_21_process_requirementsEvEUlPKS3_E_vEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_T0_SF_: push rbp mov rbp, rsp sub rsp, 250h mov [rbp+var_220], rdx mov [rbp+var_218], rdi mov rax, rdi mov [rbp+var_210], rax mov [rbp+var_8], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx lea rdi, [rbp+var_198] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rdi, [rbp+var_18] call _ZSt5beginISt6vectorIPN3CLI3AppESaIS3_EEEDTcldtfp_5beginEERKT_ mov [rbp+var_208], rax jmp short $+2 loc_3EEED: mov rax, [rbp+var_208] mov [rbp+var_1A0], rax mov rdi, [rbp+var_18] call _ZSt3endISt6vectorIPN3CLI3AppESaIS3_EEEDTcldtfp_3endEERKT_ mov [rbp+var_228], rax jmp short $+2 loc_3EF0D: mov rax, [rbp+var_228] mov [rbp+var_1B8], rax lea rdi, [rbp+var_198]; this call __ZNSo5tellpEv; std::ostream::tellp(void) mov [rbp+var_238], rdx mov [rbp+var_230], rax jmp short $+2 loc_3EF37: mov rax, [rbp+var_238] mov rcx, [rbp+var_230] mov [rbp+var_1C8], rcx mov [rbp+var_1C0], rax loc_3EF53: lea rdi, [rbp+var_1A0] lea rsi, [rbp+var_1B8] call _ZN9__gnu_cxxneIPKPN3CLI3AppESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator!=<CLI::App * const*,std::vector<CLI::App *>>(__gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>> const&,__gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>> const&) test al, 1 jnz short loc_3EF6F jmp loc_3F09B loc_3EF6F: lea rdi, [rbp+var_198]; this call __ZNSo5tellpEv; std::ostream::tellp(void) mov [rbp+var_248], rdx mov [rbp+var_240], rax jmp short $+2 loc_3EF8B: mov rax, [rbp+var_248] mov rcx, [rbp+var_240] mov [rbp+var_1D8], rcx mov [rbp+var_1D0], rax lea rdi, [rbp+var_1D8] call _ZNKSt4fposI11__mbstate_tEcvlEv; std::fpos<__mbstate_t>::operator long(void) mov [rbp+var_250], rax lea rdi, [rbp+var_1C8] call _ZNKSt4fposI11__mbstate_tEcvlEv; std::fpos<__mbstate_t>::operator long(void) mov rcx, rax mov rax, [rbp+var_250] cmp rax, rcx jle short loc_3F01F mov rsi, [rbp+var_220] lea rdi, [rbp+var_198] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) jmp short $+2 loc_3EFEA: mov rax, [rbp+var_1D8] mov [rbp+var_1C8], rax mov rax, [rbp+var_1D0] mov [rbp+var_1C0], rax jmp short loc_3F01F mov rcx, rax mov eax, edx mov [rbp+var_1A8], rcx mov [rbp+var_1AC], eax jmp loc_3F0CC loc_3F01F: lea rdi, [rbp+var_1A0] xor esi, esi call _ZN9__gnu_cxx17__normal_iteratorIPKPN3CLI3AppESt6vectorIS3_SaIS3_EEEppEi; __gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>::operator++(int) mov [rbp+var_200], rax lea rdi, [rbp+var_200] call _ZNK9__gnu_cxx17__normal_iteratorIPKPN3CLI3AppESt6vectorIS3_SaIS3_EEEdeEv; __gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>::operator*(void) mov rdx, [rax] lea rdi, [rbp+var_1F8] lea rsi, [rbp+var_9] call _ZZN3CLI3App21_process_requirementsEvENKUlPKS0_E_clB5cxx11ES2_; CLI::App::_process_requirements(void)::{lambda(CLI::App const*)#1}::operator()(CLI::App const*) jmp short $+2 loc_3F055: lea rdi, [rbp+var_198] lea rsi, [rbp+var_1F8] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) jmp short $+2 loc_3F06A: lea rdi, [rbp+var_1F8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_3EF53 mov rcx, rax mov eax, edx mov [rbp+var_1A8], rcx mov [rbp+var_1AC], eax lea rdi, [rbp+var_1F8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_3F0CC loc_3F09B: mov rdi, [rbp+var_218] lea rsi, [rbp+var_198] call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void) jmp short $+2 loc_3F0B0: lea rdi, [rbp+var_198] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rax, [rbp+var_210] add rsp, 250h pop rbp retn loc_3F0CC: lea rdi, [rbp+var_198] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rdi, [rbp+var_1A8] call __Unwind_Resume
long long CLI::detail::join<std::vector<CLI::App *>,CLI::App::_process_requirements(void)::{lambda(CLI::App const*)#1},void>( long long a1, long long a2, long long a3) { long long v3; // rdx long long v4; // rdx _QWORD *v5; // rax long long v7; // [rsp+0h] [rbp-250h] long long v9; // [rsp+50h] [rbp-200h] BYREF _BYTE v10[32]; // [rsp+58h] [rbp-1F8h] BYREF long long v11; // [rsp+78h] [rbp-1D8h] BYREF long long v12; // [rsp+80h] [rbp-1D0h] long long v13; // [rsp+88h] [rbp-1C8h] BYREF long long v14; // [rsp+90h] [rbp-1C0h] long long v15; // [rsp+98h] [rbp-1B8h] BYREF long long v16; // [rsp+B0h] [rbp-1A0h] BYREF _BYTE v17[376]; // [rsp+B8h] [rbp-198h] BYREF long long v18; // [rsp+230h] [rbp-20h] long long v19; // [rsp+238h] [rbp-18h] char v20; // [rsp+247h] [rbp-9h] BYREF long long v21; // [rsp+248h] [rbp-8h] v21 = a1; v19 = a2; v18 = a3; std::ostringstream::basic_ostringstream(v17); v16 = std::begin<std::vector<CLI::App *>>(v19); v15 = std::end<std::vector<CLI::App *>>(v19); v13 = std::ostream::tellp((std::ostream *)v17); v14 = v3; while ( __gnu_cxx::operator!=<CLI::App * const*,std::vector<CLI::App *>>((long long)&v16, (long long)&v15) ) { v11 = std::ostream::tellp((std::ostream *)v17); v12 = v4; v7 = std::fpos<__mbstate_t>::operator long(&v11); if ( v7 > std::fpos<__mbstate_t>::operator long(&v13) ) { std::operator<<<char>(v17, a3); v13 = v11; v14 = v12; } v9 = __gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>::operator++(&v16, 0LL); v5 = (_QWORD *)__gnu_cxx::__normal_iterator<CLI::App * const*,std::vector<CLI::App *>>::operator*((long long)&v9); CLI::App::_process_requirements(void)::{lambda(CLI::App const*)#1}::operator()[abi:cxx11](v10, &v20, *v5); std::operator<<<char>(v17, v10); std::string::~string(v10); } std::ostringstream::str(a1, v17); std::ostringstream::~ostringstream(v17); return a1; }
join<std::vector<CLI::App*,std::allocator<CLI::App*>>,CLI::App::_process_requirements()::{lambda(CLI::App_const*)#1},void>: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV qword ptr [RBP + -0x220],RDX MOV qword ptr [RBP + -0x218],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x210],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX LEA RDI,[RBP + -0x198] CALL 0x00109860 MOV RDI,qword ptr [RBP + -0x18] LAB_0013eedf: CALL 0x001415f0 MOV qword ptr [RBP + -0x208],RAX JMP 0x0013eeed LAB_0013eeed: MOV RAX,qword ptr [RBP + -0x208] MOV qword ptr [RBP + -0x1a0],RAX MOV RDI,qword ptr [RBP + -0x18] CALL 0x00141620 MOV qword ptr [RBP + -0x228],RAX JMP 0x0013ef0d LAB_0013ef0d: MOV RAX,qword ptr [RBP + -0x228] MOV qword ptr [RBP + -0x1b8],RAX LEA RDI,[RBP + -0x198] CALL 0x00109500 MOV qword ptr [RBP + -0x238],RDX MOV qword ptr [RBP + -0x230],RAX JMP 0x0013ef37 LAB_0013ef37: MOV RAX,qword ptr [RBP + -0x238] MOV RCX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x1c8],RCX MOV qword ptr [RBP + -0x1c0],RAX LAB_0013ef53: LEA RDI,[RBP + -0x1a0] LEA RSI,[RBP + -0x1b8] CALL 0x0013c9d0 TEST AL,0x1 JNZ 0x0013ef6f JMP 0x0013f09b LAB_0013ef6f: LEA RDI,[RBP + -0x198] CALL 0x00109500 MOV qword ptr [RBP + -0x248],RDX MOV qword ptr [RBP + -0x240],RAX JMP 0x0013ef8b LAB_0013ef8b: MOV RAX,qword ptr [RBP + -0x248] MOV RCX,qword ptr [RBP + -0x240] MOV qword ptr [RBP + -0x1d8],RCX MOV qword ptr [RBP + -0x1d0],RAX LEA RDI,[RBP + -0x1d8] CALL 0x001402b0 MOV qword ptr [RBP + -0x250],RAX LEA RDI,[RBP + -0x1c8] CALL 0x001402b0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x250] CMP RAX,RCX JLE 0x0013f01f MOV RSI,qword ptr [RBP + -0x220] LEA RDI,[RBP + -0x198] CALL 0x00109550 JMP 0x0013efea LAB_0013efea: MOV RAX,qword ptr [RBP + -0x1d8] MOV qword ptr [RBP + -0x1c8],RAX MOV RAX,qword ptr [RBP + -0x1d0] MOV qword ptr [RBP + -0x1c0],RAX JMP 0x0013f01f LAB_0013f01f: LEA RDI,[RBP + -0x1a0] XOR ESI,ESI CALL 0x00141680 MOV qword ptr [RBP + -0x200],RAX LEA RDI,[RBP + -0x200] CALL 0x0013ca10 MOV RDX,qword ptr [RAX] LEA RDI,[RBP + -0x1f8] LEA RSI,[RBP + -0x9] CALL 0x00141650 JMP 0x0013f055 LAB_0013f055: LEA RDI,[RBP + -0x198] LEA RSI,[RBP + -0x1f8] CALL 0x00109550 JMP 0x0013f06a LAB_0013f06a: LEA RDI,[RBP + -0x1f8] CALL 0x00109b90 JMP 0x0013ef53 LAB_0013f09b: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x198] CALL 0x00109630 LAB_0013f0ae: JMP 0x0013f0b0 LAB_0013f0b0: LEA RDI,[RBP + -0x198] CALL 0x00109130 MOV RAX,qword ptr [RBP + -0x210] ADD RSP,0x250 POP RBP RET
/* std::__cxx11::string CLI::detail::join<std::vector<CLI::App*, std::allocator<CLI::App*> >, CLI::App::_process_requirements()::{lambda(CLI::App const*)#1}, void>(std::vector<CLI::App*, std::allocator<CLI::App*> > const&, CLI::App::_process_requirements()::{lambda(CLI::App const*)#1}, std::__cxx11::string) */ int8 CLI::detail:: join<std::vector<CLI::App*,std::allocator<CLI::App*>>,CLI::App::_process_requirements()::_lambda(CLI::App_const*)_1_,void> (int8 param_1,vector *param_2,string *param_3) { bool bVar1; long lVar2; long lVar3; int8 *puVar4; int1 auVar5 [16]; int8 local_208; string local_200 [32]; int1 local_1e0 [16]; fpos local_1d0 [16]; int8 local_1c0 [3]; int8 local_1a8; ostringstream local_1a0 [376]; string *local_28; vector *local_20; int1 local_11; int8 local_10; local_28 = param_3; local_20 = param_2; local_10 = param_1; std::__cxx11::ostringstream::ostringstream(local_1a0); /* try { // try from 0013eedf to 0013f052 has its CatchHandler @ 0013f008 */ local_1a8 = std::begin<std::vector<CLI::App*,std::allocator<CLI::App*>>>(local_20); local_1c0[0] = std::end<std::vector<CLI::App*,std::allocator<CLI::App*>>>(local_20); local_1d0 = (fpos [16])std::ostream::tellp(); while( true ) { bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_1a8,(__normal_iterator *)local_1c0); if (!bVar1) break; auVar5 = std::ostream::tellp(); local_1e0 = auVar5; lVar2 = std::fpos::operator_cast_to_long((fpos *)local_1e0); lVar3 = std::fpos::operator_cast_to_long(local_1d0); if (lVar3 < lVar2) { std::operator<<((ostream *)local_1a0,param_3); local_1d0 = (fpos [16])local_1e0; } local_208 = __gnu_cxx:: __normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>> ::operator++((__normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>> *)&local_1a8,0); puVar4 = (int8 *) __gnu_cxx:: __normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>>:: operator*((__normal_iterator<CLI::App*const*,std::vector<CLI::App*,std::allocator<CLI::App*>>> *)&local_208); App::_process_requirements()::{lambda(CLI::App_const*)#1}::operator()::App_const___const (local_200,&local_11,*puVar4); /* try { // try from 0013f055 to 0013f067 has its CatchHandler @ 0013f07b */ std::operator<<((ostream *)local_1a0,local_200); std::__cxx11::string::~string(local_200); } /* try { // try from 0013f09b to 0013f0ad has its CatchHandler @ 0013f008 */ std::__cxx11::ostringstream::str(); std::__cxx11::ostringstream::~ostringstream(local_1a0); return param_1; }
29,698
stmt_buffered_fetch
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static int stmt_buffered_fetch(MYSQL_STMT *stmt, uchar **row) { if (!stmt->result_cursor) { *row= NULL; stmt->state= MYSQL_STMT_FETCH_DONE; return MYSQL_NO_DATA; } stmt->state= MYSQL_STMT_USER_FETCHING; *row= (uchar *)stmt->result_cursor->data; stmt->result_cursor= stmt->result_cursor->next; return 0; }
O3
c
stmt_buffered_fetch: movq 0xe0(%rdi), %rax testq %rax, %rax je 0x21737 pushq %rbp movq %rsp, %rbp movl $0x5, 0x50(%rdi) movq 0x8(%rax), %rax movq %rax, (%rsi) movq 0xe0(%rdi), %rax movq (%rax), %rax movq %rax, 0xe0(%rdi) xorl %eax, %eax popq %rbp retq movq $0x0, (%rsi) movl $0x6, 0x50(%rdi) movl $0x64, %eax retq
stmt_buffered_fetch: mov rax, [rdi+0E0h] test rax, rax jz short loc_21737 push rbp mov rbp, rsp mov dword ptr [rdi+50h], 5 mov rax, [rax+8] mov [rsi], rax mov rax, [rdi+0E0h] mov rax, [rax] mov [rdi+0E0h], rax xor eax, eax pop rbp retn loc_21737: mov qword ptr [rsi], 0 mov dword ptr [rdi+50h], 6 mov eax, 64h ; 'd' retn
long long stmt_buffered_fetch(long long a1, _QWORD *a2) { long long v2; // rax v2 = *(_QWORD *)(a1 + 224); if ( v2 ) { *(_DWORD *)(a1 + 80) = 5; *a2 = *(_QWORD *)(v2 + 8); *(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224); return 0LL; } else { *a2 = 0LL; *(_DWORD *)(a1 + 80) = 6; return 100LL; } }
stmt_buffered_fetch: MOV RAX,qword ptr [RDI + 0xe0] TEST RAX,RAX JZ 0x00121737 PUSH RBP MOV RBP,RSP MOV dword ptr [RDI + 0x50],0x5 MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSI],RAX MOV RAX,qword ptr [RDI + 0xe0] MOV RAX,qword ptr [RAX] MOV qword ptr [RDI + 0xe0],RAX XOR EAX,EAX POP RBP RET LAB_00121737: MOV qword ptr [RSI],0x0 MOV dword ptr [RDI + 0x50],0x6 MOV EAX,0x64 RET
int8 stmt_buffered_fetch(long param_1,int8 *param_2) { if (*(long *)(param_1 + 0xe0) != 0) { *(int4 *)(param_1 + 0x50) = 5; *param_2 = *(int8 *)(*(long *)(param_1 + 0xe0) + 8); *(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0); return 0; } *param_2 = 0; *(int4 *)(param_1 + 0x50) = 6; return 100; }
29,699
js_proxy_revoke
bluesky950520[P]quickjs/quickjs.c
static JSValue js_proxy_revoke(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int magic, JSValue *func_data) { JSProxyData *s = JS_GetOpaque(func_data[0], JS_CLASS_PROXY); if (s) { /* We do not free the handler and target in case they are referenced as constants in the C call stack */ s->is_revoked = TRUE; JS_FreeValue(ctx, func_data[0]); func_data[0] = JS_NULL; } return JS_UNDEFINED; }
O2
c
js_proxy_revoke: pushq %rbx movq 0x10(%rsp), %rbx cmpl $-0x1, 0x8(%rbx) jne 0x446ba movq (%rbx), %rax cmpw $0x30, 0x6(%rax) jne 0x446ba movq 0x30(%rax), %rax testq %rax, %rax je 0x446ba movb $0x1, 0x21(%rax) movq (%rbx), %rsi movq 0x8(%rbx), %rdx callq 0x1801e andl $0x0, (%rbx) movq $0x2, 0x8(%rbx) pushq $0x3 popq %rdx xorl %eax, %eax popq %rbx retq
js_proxy_revoke: push rbx mov rbx, [rsp+8+arg_0] cmp dword ptr [rbx+8], 0FFFFFFFFh jnz short loc_446BA mov rax, [rbx] cmp word ptr [rax+6], 30h ; '0' jnz short loc_446BA mov rax, [rax+30h] test rax, rax jz short loc_446BA mov byte ptr [rax+21h], 1 mov rsi, [rbx] mov rdx, [rbx+8] call JS_FreeValue and dword ptr [rbx], 0 mov qword ptr [rbx+8], 2 loc_446BA: push 3 pop rdx xor eax, eax pop rbx retn
long long js_proxy_revoke(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long *a7) { long long v7; // rax if ( *((_DWORD *)a7 + 2) == -1 && *(_WORD *)(*a7 + 6) == 48 ) { v7 = *(_QWORD *)(*a7 + 48); if ( v7 ) { *(_BYTE *)(v7 + 33) = 1; JS_FreeValue(a1, *a7, a7[1]); *(_DWORD *)a7 = 0; a7[1] = 2LL; } } return 0LL; }
js_proxy_revoke: PUSH RBX MOV RBX,qword ptr [RSP + 0x10] CMP dword ptr [RBX + 0x8],-0x1 JNZ 0x001446ba MOV RAX,qword ptr [RBX] CMP word ptr [RAX + 0x6],0x30 JNZ 0x001446ba MOV RAX,qword ptr [RAX + 0x30] TEST RAX,RAX JZ 0x001446ba MOV byte ptr [RAX + 0x21],0x1 MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] CALL 0x0011801e AND dword ptr [RBX],0x0 MOV qword ptr [RBX + 0x8],0x2 LAB_001446ba: PUSH 0x3 POP RDX XOR EAX,EAX POP RBX RET
int1 [16] js_proxy_revoke(int8 param_1) { long lVar1; long *in_stack_00000008; if ((((int)in_stack_00000008[1] == -1) && (*(short *)(*in_stack_00000008 + 6) == 0x30)) && (lVar1 = *(long *)(*in_stack_00000008 + 0x30), lVar1 != 0)) { *(int1 *)(lVar1 + 0x21) = 1; JS_FreeValue(param_1,*in_stack_00000008,in_stack_00000008[1]); *(int4 *)in_stack_00000008 = 0; in_stack_00000008[1] = 2; } return ZEXT816(3) << 0x40; }