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
33,300
minja::TextNode::~TextNode()
monkey531[P]llama/common/minja.hpp
TextNode(const Location & location, const std::string& t) : TemplateNode(location), text(t) {}
O3
cpp
minja::TextNode::~TextNode(): pushq %rbx movq %rdi, %rbx leaq 0x7a543(%rip), %rax # 0xdb238 addq $0x10, %rax movq %rax, (%rdi) movq 0x20(%rdi), %rdi leaq 0x30(%rbx), %rax cmpq %rax, %rdi je 0x60d14 movq (%rax), %rsi incq %rsi callq 0x186a0 leaq 0x7a2cd(%rip), %rax # 0xdafe8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x60d31 popq %rbx jmp 0x2f20e popq %rbx retq nop
_ZN5minja8TextNodeD2Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja8TextNodeE; `vtable for'minja::TextNode add rax, 10h mov [rdi], rax mov rdi, [rdi+20h]; void * lea rax, [rbx+30h] cmp rdi, rax jz short loc_60D14 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_60D14: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_60D31 pop rbx jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_60D31: pop rbx retn
void minja::TextNode::~TextNode(minja::TextNode *this) { char *v2; // rdi volatile signed __int32 *v3; // rdi *(_QWORD *)this = &`vtable for'minja::TextNode + 2; v2 = (char *)*((_QWORD *)this + 4); if ( v2 != (char *)this + 48 ) operator delete(v2, *((_QWORD *)this + 6) + 1LL); *(_QWORD *)this = &`vtable for'minja::TemplateNode + 2; v3 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); }
~TextNode: PUSH RBX MOV RBX,RDI LEA RAX,[0x1db238] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x20] LEA RAX,[RBX + 0x30] CMP RDI,RAX JZ 0x00160d14 MOV RSI,qword ptr [RAX] INC RSI CALL 0x001186a0 LAB_00160d14: LEA RAX,[0x1dafe8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x00160d31 POP RBX JMP 0x0012f20e LAB_00160d31: POP RBX RET
/* minja::TextNode::~TextNode() */ void __thiscall minja::TextNode::~TextNode(TextNode *this) { *(int ***)this = &PTR_do_render_001db248; if (*(TextNode **)(this + 0x20) != this + 0x30) { operator_delete(*(TextNode **)(this + 0x20),*(long *)(this + 0x30) + 1); } *(int ***)this = &PTR___cxa_pure_virtual_001daff8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); return; } return; }
33,301
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>>>>>::get()
llama.cpp/common/./json.hpp
char_int_type get() { ++position.chars_read_total; ++position.chars_read_current_line; if (next_unget) { // just reset the next_unget variable and work with current next_unget = false; } else { current = ia.get_character(); } if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof())) { token_string.push_back(char_traits<char_type>::to_char_type(current)); } if (current == '\n') { ++position.lines_read; position.chars_read_current_line = 0; } return current; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::get(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movdqu 0x20(%rdi), %xmm0 pcmpeqd %xmm1, %xmm1 psubq %xmm1, %xmm0 movdqu %xmm0, 0x20(%rdi) cmpb $0x1, 0x18(%rdi) jne 0x1d26f movb $0x0, 0x18(%rbx) movl 0x14(%rbx), %eax jmp 0x1d284 movq (%rbx), %rcx cmpq 0x8(%rbx), %rcx je 0x1d2b7 movzbl (%rcx), %eax incq %rcx movq %rcx, (%rbx) movl %eax, 0x14(%rbx) cmpl $-0x1, %eax je 0x1d2b3 leaq 0x38(%rbx), %rdi leaq 0xf(%rsp), %rsi movb %al, (%rsi) callq 0x2c246 movl 0x14(%rbx), %eax cmpl $0xa, %eax jne 0x1d2ad incq 0x30(%rbx) andq $0x0, 0x28(%rbx) pushq $0xa popq %rax addq $0x10, %rsp popq %rbx retq pushq $-0x1 jmp 0x1d2ac pushq $-0x1 popq %rax jmp 0x1d281
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv: push rbx sub rsp, 10h mov rbx, rdi movdqu xmm0, xmmword ptr [rdi+20h] pcmpeqd xmm1, xmm1 psubq xmm0, xmm1 movdqu xmmword ptr [rdi+20h], xmm0 cmp byte ptr [rdi+18h], 1 jnz short loc_1D26F mov byte ptr [rbx+18h], 0 mov eax, [rbx+14h] jmp short loc_1D284 loc_1D26F: mov rcx, [rbx] cmp rcx, [rbx+8] jz short loc_1D2B7 movzx eax, byte ptr [rcx] inc rcx mov [rbx], rcx loc_1D281: mov [rbx+14h], eax loc_1D284: cmp eax, 0FFFFFFFFh jz short loc_1D2B3 lea rdi, [rbx+38h] lea rsi, [rsp+18h+var_9] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) mov eax, [rbx+14h] cmp eax, 0Ah jnz short loc_1D2AD inc qword ptr [rbx+30h] and qword ptr [rbx+28h], 0 push 0Ah loc_1D2AC: pop rax loc_1D2AD: add rsp, 10h pop rbx retn loc_1D2B3: push 0FFFFFFFFFFFFFFFFh jmp short loc_1D2AC loc_1D2B7: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_1D281
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>>>::get( __m128i *a1) { int v1; // eax unsigned __int8 *v2; // rcx long long result; // rax a1[2] = _mm_sub_epi64(_mm_loadu_si128(a1 + 2), (__m128i)-1LL); if ( a1[1].m128i_i8[8] == 1 ) { a1[1].m128i_i8[8] = 0; v1 = a1[1].m128i_i32[1]; } else { v2 = (unsigned __int8 *)a1->m128i_i64[0]; if ( a1->m128i_i64[0] == a1->m128i_i64[1] ) { v1 = -1; } else { v1 = *v2; a1->m128i_i64[0] = (long long)(v2 + 1); } a1[1].m128i_i32[1] = v1; } if ( v1 == -1 ) return -1LL; std::vector<char>::emplace_back<char>(&a1[3].m128i_u64[1]); result = a1[1].m128i_u32[1]; if ( (_DWORD)result != 10 ) return result; ++a1[3].m128i_i64[0]; a1[2].m128i_i64[1] = 0LL; return 10LL; }
get: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOVDQU XMM0,xmmword ptr [RDI + 0x20] PCMPEQD XMM1,XMM1 PSUBQ XMM0,XMM1 MOVDQU xmmword ptr [RDI + 0x20],XMM0 CMP byte ptr [RDI + 0x18],0x1 JNZ 0x0011d26f MOV byte ptr [RBX + 0x18],0x0 MOV EAX,dword ptr [RBX + 0x14] JMP 0x0011d284 LAB_0011d26f: MOV RCX,qword ptr [RBX] CMP RCX,qword ptr [RBX + 0x8] JZ 0x0011d2b7 MOVZX EAX,byte ptr [RCX] INC RCX MOV qword ptr [RBX],RCX LAB_0011d281: MOV dword ptr [RBX + 0x14],EAX LAB_0011d284: CMP EAX,-0x1 JZ 0x0011d2b3 LEA RDI,[RBX + 0x38] LEA RSI,[RSP + 0xf] MOV byte ptr [RSI],AL CALL 0x0012c246 MOV EAX,dword ptr [RBX + 0x14] CMP EAX,0xa JNZ 0x0011d2ad INC qword ptr [RBX + 0x30] AND qword ptr [RBX + 0x28],0x0 PUSH 0xa LAB_0011d2ac: POP RAX LAB_0011d2ad: ADD RSP,0x10 POP RBX RET LAB_0011d2b3: PUSH -0x1 JMP 0x0011d2ac LAB_0011d2b7: PUSH -0x1 POP RAX JMP 0x0011d281
/* 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 > > >::get() */ ulong __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>>> ::get(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) { byte *pbVar1; uint uVar2; ulong uStack_20; char local_9; *(long *)(this + 0x20) = *(long *)(this + 0x20) + 1; *(long *)(this + 0x28) = *(long *)(this + 0x28) + 1; if (this[0x18] == (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>>> )0x1) { this[0x18] = (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>>> )0x0; uVar2 = *(uint *)(this + 0x14); } else { pbVar1 = *(byte **)this; if (pbVar1 == *(byte **)(this + 8)) { uVar2 = 0xffffffff; } else { uVar2 = (uint)*pbVar1; *(byte **)this = pbVar1 + 1; } *(uint *)(this + 0x14) = uVar2; } if (uVar2 == 0xffffffff) { uStack_20 = 0xffffffffffffffff; } else { local_9 = (char)uVar2; std::vector<char,std::allocator<char>>::emplace_back<char> ((vector<char,std::allocator<char>> *)(this + 0x38),&local_9); uStack_20 = (ulong)*(uint *)(this + 0x14); if (*(uint *)(this + 0x14) == 10) { *(long *)(this + 0x30) = *(long *)(this + 0x30) + 1; *(int8 *)(this + 0x28) = 0; uStack_20 = 10; } } return uStack_20; }
33,302
YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test::~YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test()
yoga-mod/tests/YGAlignBaselineTest.cpp
TEST( YogaTest, align_baseline_parent_with_padding_using_child_in_column_as_reference) { YGConfigRef config = YGConfigNew(); YGNodeRef root = createYGNode(config, YGFlexDirectionRow, 1000, 1000, true); YGNodeRef root_child0 = createYGNode(config, YGFlexDirectionColumn, 500, 600, false); YGNodeInsertChild(root, root_child0, 0); YGNodeRef root_child1 = createYGNode(config, YGFlexDirectionColumn, 500, 800, false); YGNodeStyleSetPadding(root_child1, YGEdgeLeft, 100); YGNodeStyleSetPadding(root_child1, YGEdgeRight, 100); YGNodeStyleSetPadding(root_child1, YGEdgeTop, 100); YGNodeStyleSetPadding(root_child1, YGEdgeBottom, 100); YGNodeInsertChild(root, root_child1, 1); YGNodeRef root_child1_child0 = createYGNode(config, YGFlexDirectionColumn, 500, 300, false); YGNodeInsertChild(root_child1, root_child1_child0, 0); YGNodeRef root_child1_child1 = createYGNode(config, YGFlexDirectionColumn, 500, 400, false); YGNodeSetBaselineFunc(root_child1_child1, _baselineFunc); YGNodeSetIsReferenceBaseline(root_child1_child1, true); YGNodeInsertChild(root_child1, root_child1_child1, 1); YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(500, YGNodeLayoutGetLeft(root_child1)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetLeft(root_child1_child0)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetTop(root_child1_child0)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetLeft(root_child1_child1)); ASSERT_FLOAT_EQ(400, YGNodeLayoutGetTop(root_child1_child1)); YGNodeFreeRecursive(root); YGConfigFree(config); }
O0
cpp
YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test::~YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x704850 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN83YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_TestD2Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this call _ZN7testing4TestD2Ev; testing::Test::~Test() add rsp, 10h pop rbp retn
void YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test::~YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test( YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test *this) { testing::Test::~Test(this); }
~YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00804850 ADD RSP,0x10 POP RBP RET
/* YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test::~YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test() */ void __thiscall YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test:: ~YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test (YogaTest_align_baseline_parent_with_padding_using_child_in_column_as_reference_Test *this ) { testing::Test::~Test((Test *)this); return; }
33,303
std::vector<unsigned int, std::allocator<unsigned int>> lsb_bytes_to_words<__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>>(__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>, __gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>)
msxemulator/build_O0/_deps/picotool-src/bintool/metadata.h
std::vector<uint32_t> lsb_bytes_to_words(InputIterator begin, InputIterator end) { using InputType = typename std::iterator_traits<InputIterator>::value_type; static_assert(sizeof(InputType) == 1, ""); std::vector<uint32_t> rc; size_t size = end - begin; assert(!(size & 3)); if (size) { rc.reserve(size / 4); for(auto it = begin; it < end; ) { uint32_t word = *it++; word |= (*it++) << 8; word |= (*it++) << 16; word |= (*it++) << 24; rc.push_back(word); } } return rc; }
O0
c
std::vector<unsigned int, std::allocator<unsigned int>> lsb_bytes_to_words<__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>>(__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>, __gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>): subq $0x88, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq %rdx, 0x70(%rsp) movb $0x0, 0x6f(%rsp) callq 0x5b0e0 leaq 0x70(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x94ee0 movq %rax, 0x60(%rsp) cmpq $0x0, 0x60(%rsp) je 0x94da7 movq 0x10(%rsp), %rdi movq 0x60(%rsp), %rsi shrq $0x2, %rsi callq 0x94f20 jmp 0x94ca5 movq 0x78(%rsp), %rax movq %rax, 0x48(%rsp) leaq 0x48(%rsp), %rdi leaq 0x70(%rsp), %rsi callq 0x95030 testb $0x1, %al jne 0x94cc7 jmp 0x94da5 leaq 0x48(%rsp), %rdi movq %rdi, (%rsp) xorl %esi, %esi movl %esi, 0xc(%rsp) callq 0x95070 movq %rax, 0x38(%rsp) leaq 0x38(%rsp), %rdi callq 0x950b0 movq (%rsp), %rdi movl 0xc(%rsp), %esi movzbl (%rax), %eax movl %eax, 0x44(%rsp) callq 0x95070 movq %rax, 0x30(%rsp) leaq 0x30(%rsp), %rdi callq 0x950b0 movq (%rsp), %rdi movl 0xc(%rsp), %esi movzbl (%rax), %ecx shll $0x8, %ecx movl 0x44(%rsp), %eax orl %ecx, %eax movl %eax, 0x44(%rsp) callq 0x95070 movq %rax, 0x28(%rsp) leaq 0x28(%rsp), %rdi callq 0x950b0 movq (%rsp), %rdi movl 0xc(%rsp), %esi movzbl (%rax), %ecx shll $0x10, %ecx movl 0x44(%rsp), %eax orl %ecx, %eax movl %eax, 0x44(%rsp) callq 0x95070 movq %rax, 0x20(%rsp) leaq 0x20(%rsp), %rdi callq 0x950b0 movq 0x10(%rsp), %rdi movzbl (%rax), %ecx shll $0x18, %ecx movl 0x44(%rsp), %eax orl %ecx, %eax movl %eax, 0x44(%rsp) leaq 0x44(%rsp), %rsi callq 0x63230 jmp 0x94d86 jmp 0x94caf movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x58(%rsp) movl %eax, 0x54(%rsp) callq 0x5b130 jmp 0x94dca jmp 0x94da7 movb $0x1, 0x6f(%rsp) testb $0x1, 0x6f(%rsp) jne 0x94dbd movq 0x10(%rsp), %rdi callq 0x5b130 movq 0x18(%rsp), %rax addq $0x88, %rsp retq movq 0x58(%rsp), %rdi callq 0xf9e0 nopw %cs:(%rax,%rax) nop
_Z18lsb_bytes_to_wordsIN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEES4_IjSaIjEET_SA_: sub rsp, 88h mov [rsp+88h+var_78], rdi mov rax, rdi mov [rsp+88h+var_70], rax mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_19], 0 call _ZNSt6vectorIjSaIjEEC2Ev; std::vector<uint>::vector(void) lea rdi, [rsp+88h+var_18] lea rsi, [rsp+88h+var_10] call _ZN9__gnu_cxxmiIPKhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_; __gnu_cxx::operator-<uchar const*,std::vector<uchar>>(__gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>> const&,__gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>> const&) mov [rsp+88h+var_28], rax cmp [rsp+88h+var_28], 0 jz loc_94DA7 mov rdi, [rsp+88h+var_78] mov rsi, [rsp+88h+var_28] shr rsi, 2 call _ZNSt6vectorIjSaIjEE7reserveEm; std::vector<uint>::reserve(ulong) jmp short $+2 loc_94CA5: mov rax, [rsp+88h+var_10] mov [rsp+88h+var_40], rax loc_94CAF: lea rdi, [rsp+88h+var_40] lea rsi, [rsp+88h+var_18] call _ZN9__gnu_cxxltIPKhSt6vectorIhSaIhEEEEbRKNS_17__normal_iteratorIT_T0_EESB_; __gnu_cxx::operator<<uchar const*,std::vector<uchar>>(__gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>> const&,__gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>> const&) test al, 1 jnz short loc_94CC7 jmp loc_94DA5 loc_94CC7: lea rdi, [rsp+88h+var_40] mov [rsp+88h+var_88], rdi xor esi, esi mov [rsp+88h+var_7C], esi call _ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator++(int) mov [rsp+88h+var_50], rax lea rdi, [rsp+88h+var_50] call _ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator*(void) mov rdi, [rsp+88h+var_88] mov esi, [rsp+88h+var_7C] movzx eax, byte ptr [rax] mov [rsp+88h+var_44], eax call _ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator++(int) mov [rsp+88h+var_58], rax lea rdi, [rsp+88h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator*(void) mov rdi, [rsp+88h+var_88] mov esi, [rsp+88h+var_7C] movzx ecx, byte ptr [rax] shl ecx, 8 mov eax, [rsp+88h+var_44] or eax, ecx mov [rsp+88h+var_44], eax call _ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator++(int) mov [rsp+88h+var_60], rax lea rdi, [rsp+88h+var_60] call _ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator*(void) mov rdi, [rsp+88h+var_88] mov esi, [rsp+88h+var_7C] movzx ecx, byte ptr [rax] shl ecx, 10h mov eax, [rsp+88h+var_44] or eax, ecx mov [rsp+88h+var_44], eax call _ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator++(int) mov [rsp+88h+var_68], rax lea rdi, [rsp+88h+var_68] call _ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv; __gnu_cxx::__normal_iterator<uchar const*,std::vector<uchar>>::operator*(void) mov rdi, [rsp+88h+var_78] movzx ecx, byte ptr [rax] shl ecx, 18h mov eax, [rsp+88h+var_44] or eax, ecx mov [rsp+88h+var_44], eax lea rsi, [rsp+88h+var_44] call _ZNSt6vectorIjSaIjEE9push_backERKj; std::vector<uint>::push_back(uint const&) jmp short $+2 loc_94D86: jmp loc_94CAF mov rdi, [rsp+arg_8] mov rcx, rax mov eax, edx mov [rsp+arg_50], rcx mov [rsp+arg_4C], eax call _ZNSt6vectorIjSaIjEED2Ev; std::vector<uint>::~vector() jmp short loc_94DCA loc_94DA5: jmp short $+2 loc_94DA7: mov [rsp+88h+var_19], 1 test [rsp+88h+var_19], 1 jnz short loc_94DBD mov rdi, [rsp+88h+var_78] call _ZNSt6vectorIjSaIjEED2Ev; std::vector<uint>::~vector() loc_94DBD: mov rax, [rsp+88h+var_70] add rsp, 88h retn loc_94DCA: mov rdi, [rsp+arg_50] call __Unwind_Resume
long long lsb_bytes_to_words<__gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>>( long long a1, long long a2, long long a3) { unsigned __int8 *v3; // rax unsigned __int8 *v4; // rax unsigned __int8 *v5; // rax long long v7; // [rsp+20h] [rbp-68h] BYREF long long v8; // [rsp+28h] [rbp-60h] BYREF long long v9; // [rsp+30h] [rbp-58h] BYREF long long v10; // [rsp+38h] [rbp-50h] BYREF int v11; // [rsp+44h] [rbp-44h] BYREF _QWORD v12[3]; // [rsp+48h] [rbp-40h] BYREF unsigned long long v13; // [rsp+60h] [rbp-28h] char v14; // [rsp+6Fh] [rbp-19h] long long v15; // [rsp+70h] [rbp-18h] BYREF _QWORD v16[2]; // [rsp+78h] [rbp-10h] BYREF v16[1] = a1; v16[0] = a2; v15 = a3; v14 = 0; std::vector<unsigned int>::vector(a1); v13 = __gnu_cxx::operator-<unsigned char const*,std::vector<unsigned char>>(&v15, v16); if ( v13 ) { std::vector<unsigned int>::reserve(a1, v13 >> 2); v12[0] = v16[0]; while ( (__gnu_cxx::operator<<unsigned char const*,std::vector<unsigned char>>(v12, &v15) & 1) != 0 ) { v10 = ((long long (*)(void))__gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator++)(); v11 = *(unsigned __int8 *)__gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator*(&v10); v9 = __gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator++(v12, 0LL); v3 = (unsigned __int8 *)__gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator*(&v9); v11 |= *v3 << 8; v8 = __gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator++(v12, 0LL); v4 = (unsigned __int8 *)__gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator*(&v8); v11 |= *v4 << 16; v7 = __gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator++(v12, 0LL); v5 = (unsigned __int8 *)__gnu_cxx::__normal_iterator<unsigned char const*,std::vector<unsigned char>>::operator*(&v7); v11 |= *v5 << 24; std::vector<unsigned int>::push_back(a1, (long long)&v11); } } return a1; }
lsb_bytes_to_words<__gnu_cxx::__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>>>: SUB RSP,0x88 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x70],RDX MOV byte ptr [RSP + 0x6f],0x0 CALL 0x0015b0e0 LEA RDI,[RSP + 0x70] LEA RSI,[RSP + 0x78] CALL 0x00194ee0 MOV qword ptr [RSP + 0x60],RAX CMP qword ptr [RSP + 0x60],0x0 JZ 0x00194da7 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x60] SHR RSI,0x2 LAB_00194c9e: CALL 0x00194f20 JMP 0x00194ca5 LAB_00194ca5: MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x48],RAX LAB_00194caf: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x70] CALL 0x00195030 TEST AL,0x1 JNZ 0x00194cc7 JMP 0x00194da5 LAB_00194cc7: LEA RDI,[RSP + 0x48] MOV qword ptr [RSP],RDI XOR ESI,ESI MOV dword ptr [RSP + 0xc],ESI CALL 0x00195070 MOV qword ptr [RSP + 0x38],RAX LEA RDI,[RSP + 0x38] CALL 0x001950b0 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0xc] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RSP + 0x44],EAX CALL 0x00195070 MOV qword ptr [RSP + 0x30],RAX LEA RDI,[RSP + 0x30] CALL 0x001950b0 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0xc] MOVZX ECX,byte ptr [RAX] SHL ECX,0x8 MOV EAX,dword ptr [RSP + 0x44] OR EAX,ECX MOV dword ptr [RSP + 0x44],EAX CALL 0x00195070 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x28] CALL 0x001950b0 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0xc] MOVZX ECX,byte ptr [RAX] SHL ECX,0x10 MOV EAX,dword ptr [RSP + 0x44] OR EAX,ECX MOV dword ptr [RSP + 0x44],EAX CALL 0x00195070 MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x20] CALL 0x001950b0 MOV RDI,qword ptr [RSP + 0x10] MOVZX ECX,byte ptr [RAX] SHL ECX,0x18 MOV EAX,dword ptr [RSP + 0x44] OR EAX,ECX MOV dword ptr [RSP + 0x44],EAX LEA RSI,[RSP + 0x44] CALL 0x00163230 LAB_00194d84: JMP 0x00194d86 LAB_00194d86: JMP 0x00194caf LAB_00194da5: JMP 0x00194da7 LAB_00194da7: MOV byte ptr [RSP + 0x6f],0x1 TEST byte ptr [RSP + 0x6f],0x1 JNZ 0x00194dbd MOV RDI,qword ptr [RSP + 0x10] CALL 0x0015b130 LAB_00194dbd: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x88 RET
/* WARNING: Removing unreachable block (ram,0x00194db3) */ /* std::vector<unsigned int, std::allocator<unsigned int> > lsb_bytes_to_words<__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char> > > >(__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char> > >, __gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char> > >) */ vector<unsigned_int,std::allocator<unsigned_int>> * lsb_bytes_to_words<__gnu_cxx::__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>>> (vector<unsigned_int,std::allocator<unsigned_int>> *param_1,int8 param_2, int8 param_3) { bool bVar1; byte *pbVar2; int8 local_68; int8 local_60; int8 local_58; int8 local_50; uint local_44; int8 local_40 [3]; ulong local_28; int1 local_19; int8 local_18; int8 local_10; vector<unsigned_int,std::allocator<unsigned_int>> *local_8; local_19 = 0; local_18 = param_3; local_10 = param_2; local_8 = param_1; std::vector<unsigned_int,std::allocator<unsigned_int>>::vector(param_1); local_28 = __gnu_cxx::operator-((__normal_iterator *)&local_18,(__normal_iterator *)&local_10); if (local_28 != 0) { /* try { // try from 00194c9e to 00194d83 has its CatchHandler @ 00194d8b */ std::vector<unsigned_int,std::allocator<unsigned_int>>::reserve(param_1,local_28 >> 2); local_40[0] = local_10; while (bVar1 = __gnu_cxx::operator< ((__normal_iterator *)local_40,(__normal_iterator *)&local_18), bVar1) { local_50 = __gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator++((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)local_40,0); pbVar2 = (byte *)__gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator*((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)&local_50); local_44 = (uint)*pbVar2; local_58 = __gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator++((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)local_40,0); pbVar2 = (byte *)__gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator*((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)&local_58); local_44 = local_44 | (uint)*pbVar2 << 8; local_60 = __gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator++((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)local_40,0); pbVar2 = (byte *)__gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator*((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)&local_60); local_44 = local_44 | (uint)*pbVar2 << 0x10; local_68 = __gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator++((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)local_40,0); pbVar2 = (byte *)__gnu_cxx:: __normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::operator*((__normal_iterator<unsigned_char_const*,std::vector<unsigned_char,std::allocator<unsigned_char>>> *)&local_68); local_44 = local_44 | (uint)*pbVar2 << 0x18; std::vector<unsigned_int,std::allocator<unsigned_int>>::push_back(param_1,&local_44); } } return param_1; }
33,304
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>>>>>::next_byte_in_range(std::initializer_list<int>)
monkey531[P]llama/common/json.hpp
bool next_byte_in_range(std::initializer_list<char_int_type> ranges) { JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6); add(current); for (auto range = ranges.begin(); range != ranges.end(); ++range) { get(); if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) // NOLINT(bugprone-inc-dec-in-conditions) { add(current); } else { error_message = "invalid string: ill-formed UTF-8 byte"; return false; } } return true; }
O0
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>>>>>::next_byte_in_range(std::initializer_list<int>): subq $0x48, %rsp movq %rsi, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x18(%rsp) leaq 0x30(%rsp), %rdi callq 0x68fa0 cmpq $0x2, %rax je 0xa770e leaq 0x30(%rsp), %rdi callq 0x68fa0 cmpq $0x4, %rax je 0xa770e leaq 0x30(%rsp), %rdi callq 0x68fa0 cmpq $0x6, %rax je 0xa770e leaq 0x16740c(%rip), %rdi # 0x20eb00 movl $0x1da8, %esi # imm = 0x1DA8 leaq 0x16744a(%rip), %rdx # 0x20eb4a leaq 0x16817d(%rip), %rcx # 0x20f884 movb $0x0, %al callq 0x5aef0 movq 0x18(%rsp), %rdi movl 0x14(%rdi), %esi callq 0xa74b0 leaq 0x30(%rsp), %rdi callq 0x68ab0 movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0x30(%rsp), %rdi callq 0x68ac0 movq %rax, %rcx movq 0x10(%rsp), %rax cmpq %rcx, %rax je 0xa77dc movq 0x18(%rsp), %rdi callq 0xa6690 movq 0x18(%rsp), %rdx movq 0x20(%rsp), %rax movl (%rax), %ecx xorl %eax, %eax cmpl 0x14(%rdx), %ecx movb %al, 0xf(%rsp) jg 0xa7793 movq 0x18(%rsp), %rax movl 0x14(%rax), %eax movq 0x20(%rsp), %rcx movq %rcx, %rdx addq $0x4, %rdx movq %rdx, 0x20(%rsp) cmpl 0x4(%rcx), %eax setle %al movb %al, 0xf(%rsp) movb 0xf(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xa77a1 jmp 0xa77b0 movq 0x18(%rsp), %rdi movl 0x14(%rdi), %esi callq 0xa74b0 jmp 0xa77c7 movq 0x18(%rsp), %rax leaq 0x168068(%rip), %rcx # 0x20f824 movq %rcx, 0x70(%rax) movb $0x0, 0x47(%rsp) jmp 0xa77e1 jmp 0xa77c9 movq 0x20(%rsp), %rax addq $0x4, %rax movq %rax, 0x20(%rsp) jmp 0xa772a movb $0x1, 0x47(%rsp) movb 0x47(%rsp), %al andb $0x1, %al addq $0x48, %rsp retq nopl (%rax)
_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: sub rsp, 48h mov [rsp+48h+var_18], rsi mov [rsp+48h+var_10], rdx mov [rsp+48h+var_20], rdi mov rax, [rsp+48h+var_20] mov [rsp+48h+var_30], rax lea rdi, [rsp+48h+var_18] call _ZNKSt16initializer_listIiE4sizeEv; std::initializer_list<int>::size(void) cmp rax, 2 jz short loc_A770E lea rdi, [rsp+48h+var_18] call _ZNKSt16initializer_listIiE4sizeEv; std::initializer_list<int>::size(void) cmp rax, 4 jz short loc_A770E lea rdi, [rsp+48h+var_18] call _ZNKSt16initializer_listIiE4sizeEv; std::initializer_list<int>::size(void) cmp rax, 6 jz short loc_A770E lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 1DA8h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRangesSize2Ran; "ranges.size() == 2 || ranges.size() == "... mov al, 0 call _ggml_abort loc_A770E: mov rdi, [rsp+48h+var_30] mov esi, [rdi+14h] call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3addEi; 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>>>::add(int) lea rdi, [rsp+48h+var_18] call _ZNKSt16initializer_listIiE5beginEv; std::initializer_list<int>::begin(void) mov [rsp+48h+var_28], rax loc_A772A: mov rax, [rsp+48h+var_28] mov [rsp+48h+var_38], rax lea rdi, [rsp+48h+var_18] call _ZNKSt16initializer_listIiE3endEv; std::initializer_list<int>::end(void) mov rcx, rax mov rax, [rsp+48h+var_38] cmp rax, rcx jz loc_A77DC mov rdi, [rsp+48h+var_30] 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) mov rdx, [rsp+48h+var_30] mov rax, [rsp+48h+var_28] mov ecx, [rax] xor eax, eax cmp ecx, [rdx+14h] mov [rsp+48h+var_39], al jg short loc_A7793 mov rax, [rsp+48h+var_30] mov eax, [rax+14h] mov rcx, [rsp+48h+var_28] mov rdx, rcx add rdx, 4 mov [rsp+48h+var_28], rdx cmp eax, [rcx+4] setle al mov [rsp+48h+var_39], al loc_A7793: mov al, [rsp+48h+var_39] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_A77A1 jmp short loc_A77B0 loc_A77A1: mov rdi, [rsp+48h+var_30] mov esi, [rdi+14h] call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3addEi; 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>>>::add(int) jmp short loc_A77C7 loc_A77B0: mov rax, [rsp+48h+var_30] lea rcx, aInvalidStringI; "invalid string: ill-formed UTF-8 byte" mov [rax+70h], rcx mov [rsp+48h+var_1], 0 jmp short loc_A77E1 loc_A77C7: jmp short $+2 loc_A77C9: mov rax, [rsp+48h+var_28] add rax, 4 mov [rsp+48h+var_28], rax jmp loc_A772A loc_A77DC: mov [rsp+48h+var_1], 1 loc_A77E1: mov al, [rsp+48h+var_1] and al, 1 add rsp, 48h retn
char 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( long long a1, long long a2, long long a3) { _DWORD *v3; // rcx bool v5; // [rsp+Fh] [rbp-39h] _DWORD *i; // [rsp+20h] [rbp-28h] _QWORD v7[2]; // [rsp+30h] [rbp-18h] BYREF v7[0] = a2; v7[1] = a3; if ( std::initializer_list<int>::size((long long)v7) != 2 && std::initializer_list<int>::size((long long)v7) != 4 && std::initializer_list<int>::size((long long)v7) != 6 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7592LL, "GGML_ASSERT(%s) failed", "ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6"); } 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>>>::add( a1, *(_DWORD *)(a1 + 20)); for ( i = (_DWORD *)std::initializer_list<int>::begin((long long)v7); i != (_DWORD *)std::initializer_list<int>::end((long long)v7); ++i ) { 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); v5 = 0; if ( *i <= *(_DWORD *)(a1 + 20) ) { v3 = i++; v5 = *(_DWORD *)(a1 + 20) <= v3[1]; } if ( !v5 ) { *(_QWORD *)(a1 + 112) = "invalid string: ill-formed UTF-8 byte"; return 0; } 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>>>::add( a1, *(_DWORD *)(a1 + 20)); } return 1; }
next_byte_in_range: SUB RSP,0x48 MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x38],RDX MOV qword ptr [RSP + 0x28],RDI MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x30] CALL 0x00168fa0 CMP RAX,0x2 JZ 0x001a770e LEA RDI,[RSP + 0x30] CALL 0x00168fa0 CMP RAX,0x4 JZ 0x001a770e LEA RDI,[RSP + 0x30] CALL 0x00168fa0 CMP RAX,0x6 JZ 0x001a770e LEA RDI,[0x30eb00] MOV ESI,0x1da8 LEA RDX,[0x30eb4a] LEA RCX,[0x30f884] MOV AL,0x0 CALL 0x0015aef0 LAB_001a770e: MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RDI + 0x14] CALL 0x001a74b0 LEA RDI,[RSP + 0x30] CALL 0x00168ab0 MOV qword ptr [RSP + 0x20],RAX LAB_001a772a: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX LEA RDI,[RSP + 0x30] CALL 0x00168ac0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] CMP RAX,RCX JZ 0x001a77dc MOV RDI,qword ptr [RSP + 0x18] CALL 0x001a6690 MOV RDX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RAX] XOR EAX,EAX CMP ECX,dword ptr [RDX + 0x14] MOV byte ptr [RSP + 0xf],AL JG 0x001a7793 MOV RAX,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RAX + 0x14] MOV RCX,qword ptr [RSP + 0x20] MOV RDX,RCX ADD RDX,0x4 MOV qword ptr [RSP + 0x20],RDX CMP EAX,dword ptr [RCX + 0x4] SETLE AL MOV byte ptr [RSP + 0xf],AL LAB_001a7793: MOV AL,byte ptr [RSP + 0xf] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001a77a1 JMP 0x001a77b0 LAB_001a77a1: MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RDI + 0x14] CALL 0x001a74b0 JMP 0x001a77c7 LAB_001a77b0: MOV RAX,qword ptr [RSP + 0x18] LEA RCX,[0x30f824] MOV qword ptr [RAX + 0x70],RCX MOV byte ptr [RSP + 0x47],0x0 JMP 0x001a77e1 LAB_001a77c7: JMP 0x001a77c9 LAB_001a77c9: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x4 MOV qword ptr [RSP + 0x20],RAX JMP 0x001a772a LAB_001a77dc: MOV byte ptr [RSP + 0x47],0x1 LAB_001a77e1: MOV AL,byte ptr [RSP + 0x47] AND AL,0x1 ADD RSP,0x48 RET
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::next_byte_in_range(std::initializer_list<int>) */ int1 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>>> ::next_byte_in_range (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>>> *param_1,int8 param_2,int8 param_3) { bool bVar1; long lVar2; int *piVar3; int *local_28; int8 local_18; int8 local_10; local_18 = param_2; local_10 = param_3; lVar2 = std::initializer_list<int>::size((initializer_list<int> *)&local_18); if (((lVar2 != 2) && (lVar2 = std::initializer_list<int>::size((initializer_list<int> *)&local_18), lVar2 != 4)) && (lVar2 = std::initializer_list<int>::size((initializer_list<int> *)&local_18), lVar2 != 6)) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1da8, "GGML_ASSERT(%s) failed", "ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6"); } add((int)param_1); local_28 = (int *)std::initializer_list<int>::begin((initializer_list<int> *)&local_18); while( true ) { piVar3 = (int *)std::initializer_list<int>::end((initializer_list<int> *)&local_18); if (local_28 == piVar3) { return 1; } get(param_1); bVar1 = false; if (*local_28 <= *(int *)(param_1 + 0x14)) { bVar1 = *(int *)(param_1 + 0x14) <= local_28[1]; local_28 = local_28 + 1; } if (!bVar1) break; add((int)param_1); local_28 = local_28 + 1; } *(char **)(param_1 + 0x70) = "invalid string: ill-formed UTF-8 byte"; return 0; }
33,305
google::protobuf::compiler::csharp::GetOneofCaseName[abi:cxx11](google::protobuf::FieldDescriptor const*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_helpers.cc
std::string GetOneofCaseName(const FieldDescriptor* descriptor) { // The name in a oneof case enum is the same as for the property, but as we always have a "None" // value as well, we need to reserve that by appending an underscore. std::string property_name = GetPropertyName(descriptor); return property_name == "None" ? "None_" : property_name; }
O3
cpp
google::protobuf::compiler::csharp::GetOneofCaseName[abi:cxx11](google::protobuf::FieldDescriptor const*): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x3d223 leaq 0x166c22(%rip), %rsi # 0x1a4063 movq %r14, %rdi callq 0x1f130 leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) testl %eax, %eax je 0x3d46b movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movq %rbx, %rdi callq 0x2586a jmp 0x3d481 leaq 0x160e8c(%rip), %rsi # 0x19e2fe leaq 0x160e8a(%rip), %rdx # 0x19e303 movq %rbx, %rdi callq 0x250b2 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3d494 callq 0x1f4a0 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq jmp 0x3d4a1 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3d4b7 callq 0x1f4a0 movq %rbx, %rdi callq 0x1f860
_ZN6google8protobuf8compiler6csharp16GetOneofCaseNameB5cxx11EPKNS0_15FieldDescriptorE: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_30] mov rdi, r14 call _ZN6google8protobuf8compiler6csharp15GetPropertyNameB5cxx11EPKNS0_15FieldDescriptorE; google::protobuf::compiler::csharp::GetPropertyName(google::protobuf::FieldDescriptor const*) lea rsi, aNone; "None" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) lea rcx, [rbx+10h] mov [rbx], rcx test eax, eax jz short loc_3D46B mov rsi, [rsp+38h+var_30] mov rdx, [rsp+38h+var_28] add rdx, rsi mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) jmp short loc_3D481 loc_3D46B: lea rsi, aNone_0; "None_" lea rdx, aNone_0+5; "" mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) loc_3D481: lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3D494 call __ZdlPv; operator delete(void *) loc_3D494: mov rax, rbx add rsp, 28h pop rbx pop r14 retn jmp short $+2 loc_3D4A1: mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3D4B7 call __ZdlPv; operator delete(void *) loc_3D4B7: mov rdi, rbx call __Unwind_Resume
_QWORD * google::protobuf::compiler::csharp::GetOneofCaseName[abi:cxx11](_QWORD *a1, long long a2) { int v2; // eax void *v4[2]; // [rsp+8h] [rbp-30h] BYREF char v5; // [rsp+18h] [rbp-20h] BYREF google::protobuf::compiler::csharp::GetPropertyName[abi:cxx11](v4, a2); v2 = std::string::compare(v4, "None"); *a1 = a1 + 2; if ( v2 ) std::string::_M_construct<char *>((long long)a1, (_BYTE *)v4[0], (long long)v4[0] + (unsigned long long)v4[1]); else std::string::_M_construct<char const*>((long long)a1, "None_", (long long)""); if ( v4[0] != &v5 ) operator delete(v4[0]); return a1; }
GetOneofCaseName[abi:cxx11]: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x0013d223 LEA RSI,[0x2a4063] MOV RDI,R14 CALL 0x0011f130 LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX TEST EAX,EAX JZ 0x0013d46b MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] ADD RDX,RSI LAB_0013d461: MOV RDI,RBX CALL 0x0012586a JMP 0x0013d481 LAB_0013d46b: LEA RSI,[0x29e2fe] LEA RDX,[0x29e303] MOV RDI,RBX CALL 0x001250b2 LAB_0013d481: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013d494 CALL 0x0011f4a0 LAB_0013d494: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* google::protobuf::compiler::csharp::GetOneofCaseName[abi:cxx11](google::protobuf::FieldDescriptor const*) */ csharp * __thiscall google::protobuf::compiler::csharp::GetOneofCaseName_abi_cxx11_ (csharp *this,FieldDescriptor *param_1) { int iVar1; int1 *local_30; long local_28; int1 local_20 [16]; GetPropertyName_abi_cxx11_((csharp *)&local_30,param_1); iVar1 = std::__cxx11::string::compare((char *)&local_30); *(csharp **)this = this + 0x10; if (iVar1 == 0) { /* try { // try from 0013d46b to 0013d480 has its CatchHandler @ 0013d49f */ std::__cxx11::string::_M_construct<char_const*>(this,"None_",""); } else { /* try { // try from 0013d461 to 0013d468 has its CatchHandler @ 0013d4a1 */ std::__cxx11::string::_M_construct<char*>(this,local_30,local_30 + local_28); } if (local_30 != local_20) { operator_delete(local_30); } return this; }
33,306
ftb_phrase_add_word
eloqsql/storage/myisam/ft_boolean_search.c
static int ftb_phrase_add_word(MYSQL_FTPARSER_PARAM *param, const char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused))) { MY_FTB_PHRASE_PARAM *phrase_param= param->mysql_ftparam; FT_WORD *w= (FT_WORD *)phrase_param->document->data; LIST *phrase, *document; w->pos= (uchar*) word; w->len= word_len; phrase_param->document= phrase_param->document->prev; if (phrase_param->phrase_length > phrase_param->document_length) { phrase_param->document_length++; return 0; } /* TODO: rewrite phrase search to avoid comparing the same word twice. */ for (phrase= phrase_param->phrase, document= phrase_param->document->next; phrase; phrase= phrase->next, document= document->next) { FT_WORD *phrase_word= (FT_WORD *)phrase->data; FT_WORD *document_word= (FT_WORD *)document->data; if (my_strnncoll(phrase_param->cs, (uchar*) phrase_word->pos, phrase_word->len, (uchar*) document_word->pos, document_word->len)) return 0; } phrase_param->match++; return 0; }
O0
c
ftb_phrase_add_word: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq 0x10(%rax), %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) movslq -0x1c(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq (%rax), %rcx movq -0x30(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x30(%rbp), %rax movl 0x18(%rax), %eax movq -0x30(%rbp), %rcx cmpl 0x1c(%rcx), %eax jbe 0xa0136 movq -0x30(%rbp), %rax movl 0x1c(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x1c(%rax) movl $0x0, -0x4(%rbp) jmp 0xa01f3 movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %rax movq %rax, -0x48(%rbp) cmpq $0x0, -0x40(%rbp) je 0xa01df movq -0x40(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x50(%rbp) movq -0x48(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x58(%rbp) movq -0x30(%rbp), %rax movq 0x10(%rax), %rax movq 0xc0(%rax), %rax movq 0x8(%rax), %rax movq -0x30(%rbp), %rcx movq 0x10(%rcx), %rdi movq -0x50(%rbp), %rcx movq (%rcx), %rsi movq -0x50(%rbp), %rcx movq 0x10(%rcx), %rdx movq -0x58(%rbp), %rcx movq (%rcx), %rcx movq -0x58(%rbp), %r8 movq 0x10(%r8), %r8 xorl %r9d, %r9d callq *%rax cmpl $0x0, %eax je 0xa01c0 movl $0x0, -0x4(%rbp) jmp 0xa01f3 jmp 0xa01c2 movq -0x40(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x40(%rbp) movq -0x48(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x48(%rbp) jmp 0xa0151 movq -0x30(%rbp), %rax movl 0x20(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x20(%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopl (%rax)
ftb_phrase_add_word: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax+8] mov rax, [rax+10h] mov [rbp+var_38], rax mov rcx, [rbp+var_18] mov rax, [rbp+var_38] mov [rax], rcx movsxd rcx, [rbp+var_1C] mov rax, [rbp+var_38] mov [rax+10h], rcx mov rax, [rbp+var_30] mov rax, [rax+8] mov rcx, [rax] mov rax, [rbp+var_30] mov [rax+8], rcx mov rax, [rbp+var_30] mov eax, [rax+18h] mov rcx, [rbp+var_30] cmp eax, [rcx+1Ch] jbe short loc_A0136 mov rax, [rbp+var_30] mov ecx, [rax+1Ch] add ecx, 1 mov [rax+1Ch], ecx mov [rbp+var_4], 0 jmp loc_A01F3 loc_A0136: mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_40], rax mov rax, [rbp+var_30] mov rax, [rax+8] mov rax, [rax+8] mov [rbp+var_48], rax loc_A0151: cmp [rbp+var_40], 0 jz loc_A01DF mov rax, [rbp+var_40] mov rax, [rax+10h] mov [rbp+var_50], rax mov rax, [rbp+var_48] mov rax, [rax+10h] mov [rbp+var_58], rax mov rax, [rbp+var_30] mov rax, [rax+10h] mov rax, [rax+0C0h] mov rax, [rax+8] mov rcx, [rbp+var_30] mov rdi, [rcx+10h] mov rcx, [rbp+var_50] mov rsi, [rcx] mov rcx, [rbp+var_50] mov rdx, [rcx+10h] mov rcx, [rbp+var_58] mov rcx, [rcx] mov r8, [rbp+var_58] mov r8, [r8+10h] xor r9d, r9d call rax cmp eax, 0 jz short loc_A01C0 mov [rbp+var_4], 0 jmp short loc_A01F3 loc_A01C0: jmp short $+2 loc_A01C2: mov rax, [rbp+var_40] mov rax, [rax+8] mov [rbp+var_40], rax mov rax, [rbp+var_48] mov rax, [rax+8] mov [rbp+var_48], rax jmp loc_A0151 loc_A01DF: mov rax, [rbp+var_30] mov ecx, [rax+20h] add ecx, 1 mov [rax+20h], ecx mov [rbp+var_4], 0 loc_A01F3: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long ftb_phrase_add_word(long long a1, long long a2, int a3) { long long v4; // [rsp+18h] [rbp-48h] long long v5; // [rsp+20h] [rbp-40h] _QWORD *v6; // [rsp+28h] [rbp-38h] long long *v7; // [rsp+30h] [rbp-30h] v7 = *(long long **)(a1 + 24); v6 = *(_QWORD **)(v7[1] + 16); *v6 = a2; v6[2] = a3; v7[1] = *(_QWORD *)v7[1]; if ( *((_DWORD *)v7 + 6) <= *((_DWORD *)v7 + 7) ) { v5 = *v7; v4 = *(_QWORD *)(v7[1] + 8); while ( v5 ) { if ( (*(unsigned int ( **)(long long, _QWORD, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(v7[2] + 192) + 8LL))( v7[2], **(_QWORD **)(v5 + 16), *(_QWORD *)(*(_QWORD *)(v5 + 16) + 16LL), **(_QWORD **)(v4 + 16), *(_QWORD *)(*(_QWORD *)(v4 + 16) + 16LL), 0LL) ) { return 0LL; } v5 = *(_QWORD *)(v5 + 8); v4 = *(_QWORD *)(v4 + 8); } ++*((_DWORD *)v7 + 8); } else { ++*((_DWORD *)v7 + 7); } return 0LL; }
ftb_phrase_add_word: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOVSXD RCX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x30] CMP EAX,dword ptr [RCX + 0x1c] JBE 0x001a0136 MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX + 0x1c] ADD ECX,0x1 MOV dword ptr [RAX + 0x1c],ECX MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a01f3 LAB_001a0136: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x48],RAX LAB_001a0151: CMP qword ptr [RBP + -0x40],0x0 JZ 0x001a01df MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RCX + 0x10] MOV RCX,qword ptr [RBP + -0x50] MOV RSI,qword ptr [RCX] MOV RCX,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RCX + 0x10] MOV RCX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RCX] MOV R8,qword ptr [RBP + -0x58] MOV R8,qword ptr [R8 + 0x10] XOR R9D,R9D CALL RAX CMP EAX,0x0 JZ 0x001a01c0 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a01f3 LAB_001a01c0: JMP 0x001a01c2 LAB_001a01c2: MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x48],RAX JMP 0x001a0151 LAB_001a01df: MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX + 0x20] ADD ECX,0x1 MOV dword ptr [RAX + 0x20],ECX MOV dword ptr [RBP + -0x4],0x0 LAB_001a01f3: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
int4 ftb_phrase_add_word(long param_1,int8 param_2,int param_3) { long *plVar1; int8 *puVar2; int iVar3; long local_50; long local_48; plVar1 = *(long **)(param_1 + 0x18); puVar2 = *(int8 **)(plVar1[1] + 0x10); *puVar2 = param_2; puVar2[2] = (long)param_3; plVar1[1] = *(long *)plVar1[1]; if (*(uint *)((long)plVar1 + 0x1c) < *(uint *)(plVar1 + 3)) { *(int *)((long)plVar1 + 0x1c) = *(int *)((long)plVar1 + 0x1c) + 1; } else { local_50 = *(long *)(plVar1[1] + 8); for (local_48 = *plVar1; local_48 != 0; local_48 = *(long *)(local_48 + 8)) { iVar3 = (**(code **)(*(long *)(plVar1[2] + 0xc0) + 8)) (plVar1[2],**(int8 **)(local_48 + 0x10), (*(int8 **)(local_48 + 0x10))[2],**(int8 **)(local_50 + 0x10), (*(int8 **)(local_50 + 0x10))[2],0); if (iVar3 != 0) { return 0; } local_50 = *(long *)(local_50 + 8); } *(int *)(plVar1 + 4) = (int)plVar1[4] + 1; } return 0; }
33,307
my_block_write
eloqsql/mysys/mf_iocache.c
int my_block_write(IO_CACHE *info, const uchar *Buffer, size_t Count, my_off_t pos) { size_t length; int error=0; /* Assert that we cannot come here with a shared cache. If we do one day, we might need to add a call to copy_to_read_buffer(). */ DBUG_ASSERT(!info->share); DBUG_ASSERT(!(info->myflags & MY_ENCRYPT)); if (pos < info->pos_in_file) { /* Of no overlap, write everything without buffering */ if (pos + Count <= info->pos_in_file) return (int)mysql_file_pwrite(info->file, Buffer, Count, pos, info->myflags | MY_NABP); /* Write the part of the block that is before buffer */ length= (uint) (info->pos_in_file - pos); if (mysql_file_pwrite(info->file, Buffer, length, pos, info->myflags | MY_NABP)) info->error= error= -1; Buffer+=length; pos+= length; Count-= length; } /* Check if we want to write inside the used part of the buffer.*/ length= (size_t) (info->write_end - info->buffer); if (pos < info->pos_in_file + length) { size_t offset= (size_t) (pos - info->pos_in_file); length-=offset; if (length > Count) length=Count; memcpy(info->buffer+offset, Buffer, length); Buffer+=length; Count-= length; /* Fix length of buffer if the new data was larger */ if (info->buffer+length > info->write_pos) info->write_pos=info->buffer+length; if (!Count) return (error); } /* Write at the end of the current buffer; This is the normal case */ if (_my_b_write(info, Buffer, Count)) error= -1; return error; }
O0
c
my_block_write: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movl $0x0, -0x34(%rbp) jmp 0xe1ba1 jmp 0xe1ba3 jmp 0xe1ba5 movq -0x28(%rbp), %rax movq -0x10(%rbp), %rcx cmpq (%rcx), %rax jae 0xe1c96 movq -0x28(%rbp), %rax addq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx cmpq (%rcx), %rax ja 0xe1c09 movq -0x10(%rbp), %rax movl 0xd4(%rax), %edx movq -0x18(%rbp), %rcx movq -0x20(%rbp), %r8 movq -0x28(%rbp), %r9 movq -0x10(%rbp), %rax movq 0xf8(%rax), %rax orq $0x4, %rax leaq 0x723d8(%rip), %rdi # 0x153fcb movl $0x673, %esi # imm = 0x673 movq %rax, (%rsp) callq 0xe1d90 movl %eax, -0x4(%rbp) jmp 0xe1d87 movq -0x10(%rbp), %rax movq (%rax), %rax subq -0x28(%rbp), %rax movl %eax, %eax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movl 0xd4(%rax), %edx movq -0x18(%rbp), %rcx movq -0x30(%rbp), %r8 movq -0x28(%rbp), %r9 movq -0x10(%rbp), %rax movq 0xf8(%rax), %rax orq $0x4, %rax leaq 0x72385(%rip), %rdi # 0x153fcb movl $0x676, %esi # imm = 0x676 movq %rax, (%rsp) callq 0xe1d90 cmpq $0x0, %rax je 0xe1c6f movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF movq -0x10(%rbp), %rax movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF movq -0x30(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x30(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x30(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x48(%rax), %rax movq -0x10(%rbp), %rcx movq 0x20(%rcx), %rcx subq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx addq -0x30(%rbp), %rcx cmpq %rcx, %rax jae 0xe1d64 movq -0x28(%rbp), %rax movq -0x10(%rbp), %rcx subq (%rcx), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rcx movq -0x30(%rbp), %rax subq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xe1cf5 movq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rdi addq -0x40(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x2a090 movq -0x30(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x30(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax addq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x40(%rcx), %rax jbe 0xe1d53 movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx addq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) cmpq $0x0, -0x20(%rbp) jne 0xe1d62 movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xe1d87 jmp 0xe1d64 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0xe0c20 cmpl $0x0, %eax je 0xe1d81 movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF movl -0x34(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq
my_block_write: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_34], 0 jmp short $+2 loc_E1BA1: jmp short $+2 loc_E1BA3: jmp short $+2 loc_E1BA5: mov rax, [rbp+var_28] mov rcx, [rbp+var_10] cmp rax, [rcx] jnb loc_E1C96 mov rax, [rbp+var_28] add rax, [rbp+var_20] mov rcx, [rbp+var_10] cmp rax, [rcx] ja short loc_E1C09 mov rax, [rbp+var_10] mov edx, [rax+0D4h] mov rcx, [rbp+var_18] mov r8, [rbp+var_20] mov r9, [rbp+var_28] mov rax, [rbp+var_10] mov rax, [rax+0F8h] or rax, 4 lea rdi, aWorkspaceLlm4b_35; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 673h mov [rsp+50h+var_50], rax call inline_mysql_file_pwrite_3 mov [rbp+var_4], eax jmp loc_E1D87 loc_E1C09: mov rax, [rbp+var_10] mov rax, [rax] sub rax, [rbp+var_28] mov eax, eax mov [rbp+var_30], rax mov rax, [rbp+var_10] mov edx, [rax+0D4h] mov rcx, [rbp+var_18] mov r8, [rbp+var_30] mov r9, [rbp+var_28] mov rax, [rbp+var_10] mov rax, [rax+0F8h] or rax, 4 lea rdi, aWorkspaceLlm4b_35; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 676h mov [rsp+50h+var_50], rax call inline_mysql_file_pwrite_3 cmp rax, 0 jz short loc_E1C6F mov [rbp+var_34], 0FFFFFFFFh mov rax, [rbp+var_10] mov dword ptr [rax+0E4h], 0FFFFFFFFh loc_E1C6F: mov rax, [rbp+var_30] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rax, [rbp+var_30] add rax, [rbp+var_28] mov [rbp+var_28], rax mov rcx, [rbp+var_30] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax loc_E1C96: mov rax, [rbp+var_10] mov rax, [rax+48h] mov rcx, [rbp+var_10] mov rcx, [rcx+20h] sub rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_28] mov rcx, [rbp+var_10] mov rcx, [rcx] add rcx, [rbp+var_30] cmp rax, rcx jnb loc_E1D64 mov rax, [rbp+var_28] mov rcx, [rbp+var_10] sub rax, [rcx] mov [rbp+var_40], rax mov rcx, [rbp+var_40] mov rax, [rbp+var_30] sub rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_30] cmp rax, [rbp+var_20] jbe short loc_E1CF5 mov rax, [rbp+var_20] mov [rbp+var_30], rax loc_E1CF5: mov rax, [rbp+var_10] mov rdi, [rax+20h] add rdi, [rbp+var_40] mov rsi, [rbp+var_18] mov rdx, [rbp+var_30] call _memcpy mov rax, [rbp+var_30] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rcx, [rbp+var_30] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rax, [rax+20h] add rax, [rbp+var_30] mov rcx, [rbp+var_10] cmp rax, [rcx+40h] jbe short loc_E1D53 mov rax, [rbp+var_10] mov rcx, [rax+20h] add rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+40h], rcx loc_E1D53: cmp [rbp+var_20], 0 jnz short loc_E1D62 mov eax, [rbp+var_34] mov [rbp+var_4], eax jmp short loc_E1D87 loc_E1D62: jmp short $+2 loc_E1D64: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _my_b_write cmp eax, 0 jz short loc_E1D81 mov [rbp+var_34], 0FFFFFFFFh loc_E1D81: mov eax, [rbp+var_34] mov [rbp+var_4], eax loc_E1D87: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long my_block_write(long long a1, const char *a2, unsigned long long a3, unsigned long long a4) { unsigned long long v5; // [rsp+10h] [rbp-40h] unsigned int v6; // [rsp+1Ch] [rbp-34h] long long v7; // [rsp+20h] [rbp-30h] long long v8; // [rsp+20h] [rbp-30h] unsigned long long v9; // [rsp+20h] [rbp-30h] unsigned long long v10; // [rsp+28h] [rbp-28h] unsigned long long v11; // [rsp+30h] [rbp-20h] const char *v12; // [rsp+38h] [rbp-18h] v12 = a2; v11 = a3; v10 = a4; v6 = 0; if ( a4 < *(_QWORD *)a1 ) { if ( a3 + a4 <= *(_QWORD *)a1 ) return (unsigned int)inline_mysql_file_pwrite_3( (unsigned int)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1651, *(_DWORD *)(a1 + 212), (_DWORD)a2, a3, a4, *(_QWORD *)(a1 + 248) | 4LL); v7 = (unsigned int)*(_QWORD *)a1 - (unsigned int)a4; if ( inline_mysql_file_pwrite_3( (unsigned int)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1654, *(_DWORD *)(a1 + 212), (_DWORD)a2, (unsigned int)*(_QWORD *)a1 - (unsigned int)a4, a4, *(_QWORD *)(a1 + 248) | 4LL) ) { v6 = -1; *(_DWORD *)(a1 + 228) = -1; } v12 = &a2[v7]; v10 += v7; v11 -= v7; } v8 = *(_QWORD *)(a1 + 72) - *(_QWORD *)(a1 + 32); if ( v10 >= v8 + *(_QWORD *)a1 ) goto LABEL_20; v5 = v10 - *(_QWORD *)a1; v9 = v8 - v5; if ( v9 > v11 ) v9 = v11; memcpy(v5 + *(_QWORD *)(a1 + 32), v12, v9); v12 += v9; v11 -= v9; if ( v9 + *(_QWORD *)(a1 + 32) > *(_QWORD *)(a1 + 64) ) *(_QWORD *)(a1 + 64) = v9 + *(_QWORD *)(a1 + 32); if ( v11 ) { LABEL_20: if ( (unsigned int)my_b_write(a1, v12, v11) ) return (unsigned int)-1; return v6; } else { return v6; } }
my_block_write: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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 dword ptr [RBP + -0x34],0x0 JMP 0x001e1ba1 LAB_001e1ba1: JMP 0x001e1ba3 LAB_001e1ba3: JMP 0x001e1ba5 LAB_001e1ba5: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX] JNC 0x001e1c96 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX] JA 0x001e1c09 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0xd4] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xf8] OR RAX,0x4 LEA RDI,[0x253fcb] MOV ESI,0x673 MOV qword ptr [RSP],RAX CALL 0x001e1d90 MOV dword ptr [RBP + -0x4],EAX JMP 0x001e1d87 LAB_001e1c09: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] SUB RAX,qword ptr [RBP + -0x28] MOV EAX,EAX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0xd4] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x30] MOV R9,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xf8] OR RAX,0x4 LEA RDI,[0x253fcb] MOV ESI,0x676 MOV qword ptr [RSP],RAX CALL 0x001e1d90 CMP RAX,0x0 JZ 0x001e1c6f MOV dword ptr [RBP + -0x34],0xffffffff MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xe4],0xffffffff LAB_001e1c6f: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX LAB_001e1c96: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x48] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] ADD RCX,qword ptr [RBP + -0x30] CMP RAX,RCX JNC 0x001e1d64 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,qword ptr [RCX] MOV qword ptr [RBP + -0x40],RAX MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001e1cf5 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x30],RAX LAB_001e1cf5: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x20] ADD RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x30] CALL 0x0012a090 MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] ADD RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x40] JBE 0x001e1d53 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x20] ADD RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX LAB_001e1d53: CMP qword ptr [RBP + -0x20],0x0 JNZ 0x001e1d62 MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX JMP 0x001e1d87 LAB_001e1d62: JMP 0x001e1d64 LAB_001e1d64: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001e0c20 CMP EAX,0x0 JZ 0x001e1d81 MOV dword ptr [RBP + -0x34],0xffffffff LAB_001e1d81: MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x4],EAX LAB_001e1d87: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int4 my_block_write(ulong *param_1,void *param_2,ulong param_3,ulong param_4) { int4 uVar1; int iVar2; long lVar3; int4 local_3c; size_t local_38; ulong local_30; ulong local_28; void *local_20; local_3c = 0; local_30 = param_4; local_28 = param_3; local_20 = param_2; if (param_4 < *param_1) { if (param_4 + param_3 <= *param_1) { uVar1 = inline_mysql_file_pwrite ("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x673, *(int4 *)((long)param_1 + 0xd4),param_2,param_3,param_4, param_1[0x1f] | 4); return uVar1; } local_28 = (ulong)(uint)((int)*param_1 - (int)param_4); lVar3 = inline_mysql_file_pwrite ("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x676, *(int4 *)((long)param_1 + 0xd4),param_2,local_28,param_4, param_1[0x1f] | 4); if (lVar3 != 0) { local_3c = 0xffffffff; *(int4 *)((long)param_1 + 0xe4) = 0xffffffff; } local_20 = (void *)(local_28 + (long)param_2); local_30 = local_28 + param_4; local_28 = param_3 - local_28; } if (local_30 < *param_1 + (param_1[9] - param_1[4])) { local_38 = (param_1[9] - param_1[4]) - (local_30 - *param_1); if (local_28 < local_38) { local_38 = local_28; } memcpy((void *)(param_1[4] + (local_30 - *param_1)),local_20,local_38); local_20 = (void *)(local_38 + (long)local_20); local_28 = local_28 - local_38; if (param_1[8] < param_1[4] + local_38) { param_1[8] = param_1[4] + local_38; } if (local_28 == 0) { return local_3c; } } iVar2 = _my_b_write(param_1,local_20,local_28); if (iVar2 != 0) { local_3c = 0xffffffff; } return local_3c; }
33,308
JS_CheckGlobalVar
bluesky950520[P]quickjs/quickjs.c
static int JS_CheckGlobalVar(JSContext *ctx, JSAtom prop) { JSObject *p; JSShapeProperty *prs; int ret; /* no exotic behavior is possible in global_var_obj */ p = JS_VALUE_GET_OBJ(ctx->global_var_obj); prs = find_own_property1(p, prop); if (prs) { ret = TRUE; } else { ret = JS_HasProperty(ctx, ctx->global_obj, prop); if (ret < 0) return -1; } return ret; }
O0
c
JS_CheckGlobalVar: subq $0x68, %rsp movq %rdi, 0x20(%rsp) movl %esi, 0x1c(%rsp) movq 0x20(%rsp), %rax movq 0x1b0(%rax), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rcx movl 0x1c(%rsp), %eax movq %rcx, 0x58(%rsp) movl %eax, 0x54(%rsp) movq 0x58(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x48(%rsp) movl 0x54(%rsp), %eax movq 0x48(%rsp), %rcx movl 0x20(%rcx), %ecx andq %rcx, %rax movq %rax, 0x30(%rsp) movq 0x48(%rsp), %rdi callq 0x5c5f0 xorl %ecx, %ecx subq 0x30(%rsp), %rcx subq $0x1, %rcx movl (%rax,%rcx,4), %eax movq %rax, 0x30(%rsp) movq 0x48(%rsp), %rdi callq 0x2afc0 movq %rax, 0x38(%rsp) cmpq $0x0, 0x30(%rsp) je 0x650d6 movq 0x38(%rsp), %rax movq 0x30(%rsp), %rcx subq $0x1, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movl 0x4(%rax), %eax cmpl 0x54(%rsp), %eax sete %al testb $0x1, %al jne 0x650b5 jmp 0x650c1 movq 0x40(%rsp), %rax movq %rax, 0x60(%rsp) jmp 0x650df movq 0x40(%rsp), %rax movl (%rax), %eax andl $0x3ffffff, %eax # imm = 0x3FFFFFF movl %eax, %eax movq %rax, 0x30(%rsp) jmp 0x6507e movq $0x0, 0x60(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) je 0x650fb movl $0x1, 0x4(%rsp) jmp 0x65133 movq 0x20(%rsp), %rdi movq 0x20(%rsp), %rax movl 0x1c(%rsp), %ecx movq 0x1a0(%rax), %rsi movq 0x1a8(%rax), %rdx callq 0x2fc10 movl %eax, 0x4(%rsp) cmpl $0x0, 0x4(%rsp) jge 0x65131 movl $0xffffffff, 0x2c(%rsp) # imm = 0xFFFFFFFF jmp 0x6513b jmp 0x65133 movl 0x4(%rsp), %eax movl %eax, 0x2c(%rsp) movl 0x2c(%rsp), %eax addq $0x68, %rsp retq nopw %cs:(%rax,%rax)
JS_CheckGlobalVar: sub rsp, 68h mov [rsp+68h+var_48], rdi mov [rsp+68h+var_4C], esi mov rax, [rsp+68h+var_48] mov rax, [rax+1B0h] mov [rsp+68h+var_58], rax mov rcx, [rsp+68h+var_58] mov eax, [rsp+68h+var_4C] mov [rsp+68h+var_10], rcx mov [rsp+68h+var_14], eax mov rax, [rsp+68h+var_10] mov rax, [rax+18h] mov [rsp+68h+var_20], rax mov eax, [rsp+68h+var_14] mov rcx, [rsp+68h+var_20] mov ecx, [rcx+20h] and rax, rcx mov [rsp+68h+var_38], rax mov rdi, [rsp+68h+var_20] call prop_hash_end xor ecx, ecx sub rcx, [rsp+68h+var_38] sub rcx, 1 mov eax, [rax+rcx*4] mov [rsp+68h+var_38], rax mov rdi, [rsp+68h+var_20] call get_shape_prop mov [rsp+68h+var_30], rax loc_6507E: cmp [rsp+68h+var_38], 0 jz short loc_650D6 mov rax, [rsp+68h+var_30] mov rcx, [rsp+68h+var_38] sub rcx, 1 shl rcx, 3 add rax, rcx mov [rsp+68h+var_28], rax mov rax, [rsp+68h+var_28] mov eax, [rax+4] cmp eax, [rsp+68h+var_14] setz al test al, 1 jnz short loc_650B5 jmp short loc_650C1 loc_650B5: mov rax, [rsp+68h+var_28] mov [rsp+68h+var_8], rax jmp short loc_650DF loc_650C1: mov rax, [rsp+68h+var_28] mov eax, [rax] and eax, 3FFFFFFh mov eax, eax mov [rsp+68h+var_38], rax jmp short loc_6507E loc_650D6: mov [rsp+68h+var_8], 0 loc_650DF: mov rax, [rsp+68h+var_8] mov [rsp+68h+var_60], rax cmp [rsp+68h+var_60], 0 jz short loc_650FB mov [rsp+68h+var_64], 1 jmp short loc_65133 loc_650FB: mov rdi, [rsp+68h+var_48] mov rax, [rsp+68h+var_48] mov ecx, [rsp+68h+var_4C] mov rsi, [rax+1A0h] mov rdx, [rax+1A8h] call JS_HasProperty mov [rsp+68h+var_64], eax cmp [rsp+68h+var_64], 0 jge short loc_65131 mov [rsp+68h+var_3C], 0FFFFFFFFh jmp short loc_6513B loc_65131: jmp short $+2 loc_65133: mov eax, [rsp+68h+var_64] mov [rsp+68h+var_3C], eax loc_6513B: mov eax, [rsp+68h+var_3C] add rsp, 68h retn
long long JS_CheckGlobalVar(long long *a1, unsigned int a2) { long long HasProperty; // [rsp+4h] [rbp-64h] long long v5; // [rsp+30h] [rbp-38h] long long v6; // [rsp+30h] [rbp-38h] long long shape_prop; // [rsp+38h] [rbp-30h] _DWORD *v8; // [rsp+40h] [rbp-28h] long long v9; // [rsp+48h] [rbp-20h] long long v10; // [rsp+60h] [rbp-8h] v9 = *(_QWORD *)(a1[54] + 24); v5 = *(_DWORD *)(v9 + 32) & a2; v6 = *(unsigned int *)(prop_hash_end(v9) + 4 * (-v5 - 1)); shape_prop = get_shape_prop(v9); while ( v6 ) { v8 = (_DWORD *)(8 * (v6 - 1) + shape_prop); if ( v8[1] == a2 ) { v10 = 8 * (v6 - 1) + shape_prop; goto LABEL_7; } v6 = *v8 & 0x3FFFFFF; } v10 = 0LL; LABEL_7: if ( v10 ) { LODWORD(HasProperty) = 1; return (unsigned int)HasProperty; } HasProperty = (unsigned int)JS_HasProperty((long long)a1, a1[52], a1[53], a2); if ( (int)HasProperty >= 0 ) return (unsigned int)HasProperty; return (unsigned int)-1; }
JS_CheckGlobalVar: SUB RSP,0x68 MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ESI MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0x1b0] MOV qword ptr [RSP + 0x10],RAX MOV RCX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RSP + 0x1c] MOV qword ptr [RSP + 0x58],RCX MOV dword ptr [RSP + 0x54],EAX MOV RAX,qword ptr [RSP + 0x58] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x48],RAX MOV EAX,dword ptr [RSP + 0x54] MOV RCX,qword ptr [RSP + 0x48] MOV ECX,dword ptr [RCX + 0x20] AND RAX,RCX MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x0015c5f0 XOR ECX,ECX SUB RCX,qword ptr [RSP + 0x30] SUB RCX,0x1 MOV EAX,dword ptr [RAX + RCX*0x4] MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x0012afc0 MOV qword ptr [RSP + 0x38],RAX LAB_0016507e: CMP qword ptr [RSP + 0x30],0x0 JZ 0x001650d6 MOV RAX,qword ptr [RSP + 0x38] MOV RCX,qword ptr [RSP + 0x30] SUB RCX,0x1 SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x40] MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0x54] SETZ AL TEST AL,0x1 JNZ 0x001650b5 JMP 0x001650c1 LAB_001650b5: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x60],RAX JMP 0x001650df LAB_001650c1: MOV RAX,qword ptr [RSP + 0x40] MOV EAX,dword ptr [RAX] AND EAX,0x3ffffff MOV EAX,EAX MOV qword ptr [RSP + 0x30],RAX JMP 0x0016507e LAB_001650d6: MOV qword ptr [RSP + 0x60],0x0 LAB_001650df: MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JZ 0x001650fb MOV dword ptr [RSP + 0x4],0x1 JMP 0x00165133 LAB_001650fb: MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RSP + 0x1c] MOV RSI,qword ptr [RAX + 0x1a0] MOV RDX,qword ptr [RAX + 0x1a8] CALL 0x0012fc10 MOV dword ptr [RSP + 0x4],EAX CMP dword ptr [RSP + 0x4],0x0 JGE 0x00165131 MOV dword ptr [RSP + 0x2c],0xffffffff JMP 0x0016513b LAB_00165131: JMP 0x00165133 LAB_00165133: MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [RSP + 0x2c],EAX LAB_0016513b: MOV EAX,dword ptr [RSP + 0x2c] ADD RSP,0x68 RET
int JS_CheckGlobalVar(long param_1,uint param_2) { uint uVar1; long lVar2; long lVar3; int local_64; ulong local_38; uint *local_8; lVar3 = *(long *)(*(long *)(param_1 + 0x1b0) + 0x18); uVar1 = *(uint *)(lVar3 + 0x20); lVar2 = prop_hash_end(lVar3); uVar1 = *(uint *)(lVar2 + (-1 - (ulong)(param_2 & uVar1)) * 4); lVar3 = get_shape_prop(lVar3); while (local_38 = (ulong)uVar1, local_38 != 0) { local_8 = (uint *)(lVar3 + (local_38 - 1) * 8); if (local_8[1] == param_2) goto LAB_001650df; uVar1 = *local_8 & 0x3ffffff; } local_8 = (uint *)0x0; LAB_001650df: if (local_8 == (uint *)0x0) { local_64 = JS_HasProperty(param_1,*(int8 *)(param_1 + 0x1a0), *(int8 *)(param_1 + 0x1a8),param_2); if (local_64 < 0) { return -1; } } else { local_64 = 1; } return local_64; }
33,309
my_strntoul_8bit
eloqsql/strings/ctype-simple.c
ulong my_strntoul_8bit(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative; register uint32 cutoff; register uint cutlim; register uint32 i; register const char *s; const char *save, *e; int overflow; *err= 0; /* Initialize error indicator */ s = nptr; e = nptr+l; for( ; s<e && my_isspace(cs, *s); s++); if (s==e) { goto noconv; } if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = ((uint32)~0L) / (uint32) base; cutlim = (uint) (((uint32)~0L) % (uint32) base); overflow = 0; i = 0; for ( ; s != e; ++s) { register uchar c= *s; if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') c = c - 'A' + 10; else if (c>='a' && c<='z') c = c - 'a' + 10; else break; if (c >= base) break; if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (uint32) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (overflow) { err[0]= ERANGE; return (~(uint32) 0); } return (negative ? -((long) i) : (long) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O0
c
my_strntoul_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x50(%rbp), %rcx xorl %eax, %eax cmpq -0x60(%rbp), %rcx movb %al, -0x66(%rbp) jae 0x11a0c8 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x50(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al movb %al, -0x66(%rbp) movb -0x66(%rbp), %al testb $0x1, %al jne 0x11a0d1 jmp 0x11a0e1 jmp 0x11a0d3 movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x11a099 movq -0x50(%rbp), %rax cmpq -0x60(%rbp), %rax jne 0x11a0f0 jmp 0x11a29c movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax jne 0x11a111 movl $0x1, -0x3c(%rbp) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x11a13b movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x2b, %eax jne 0x11a132 movl $0x0, -0x3c(%rbp) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x11a139 movl $0x0, -0x3c(%rbp) jmp 0x11a13b movq -0x50(%rbp), %rax movq %rax, -0x58(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %eax, -0x40(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %edx, -0x44(%rbp) movl $0x0, -0x64(%rbp) movl $0x0, -0x48(%rbp) movq -0x50(%rbp), %rax cmpq -0x60(%rbp), %rax je 0x11a23c movq -0x50(%rbp), %rax movb (%rax), %al movb %al, -0x65(%rbp) movzbl -0x65(%rbp), %eax cmpl $0x30, %eax jl 0x11a1a0 movzbl -0x65(%rbp), %eax cmpl $0x39, %eax jg 0x11a1a0 movzbl -0x65(%rbp), %eax subl $0x30, %eax movb %al, -0x65(%rbp) jmp 0x11a1e8 movzbl -0x65(%rbp), %eax cmpl $0x41, %eax jl 0x11a1c1 movzbl -0x65(%rbp), %eax cmpl $0x5a, %eax jg 0x11a1c1 movzbl -0x65(%rbp), %eax subl $0x41, %eax addl $0xa, %eax movb %al, -0x65(%rbp) jmp 0x11a1e6 movzbl -0x65(%rbp), %eax cmpl $0x61, %eax jl 0x11a1e2 movzbl -0x65(%rbp), %eax cmpl $0x7a, %eax jg 0x11a1e2 movzbl -0x65(%rbp), %eax subl $0x61, %eax addl $0xa, %eax movb %al, -0x65(%rbp) jmp 0x11a1e4 jmp 0x11a23c jmp 0x11a1e6 jmp 0x11a1e8 movzbl -0x65(%rbp), %eax cmpl -0x24(%rbp), %eax jl 0x11a1f3 jmp 0x11a23c movl -0x48(%rbp), %eax cmpl -0x40(%rbp), %eax ja 0x11a20c movl -0x48(%rbp), %eax cmpl -0x40(%rbp), %eax jne 0x11a215 movzbl -0x65(%rbp), %eax cmpl -0x44(%rbp), %eax jbe 0x11a215 movl $0x1, -0x64(%rbp) jmp 0x11a229 movl -0x24(%rbp), %eax imull -0x48(%rbp), %eax movl %eax, -0x48(%rbp) movzbl -0x65(%rbp), %eax addl -0x48(%rbp), %eax movl %eax, -0x48(%rbp) jmp 0x11a22b movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x11a16b movq -0x50(%rbp), %rax cmpq -0x58(%rbp), %rax jne 0x11a248 jmp 0x11a29c cmpq $0x0, -0x30(%rbp) je 0x11a25a movq -0x50(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) cmpl $0x0, -0x64(%rbp) je 0x11a275 movq -0x38(%rbp), %rax movl $0x22, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x11a2c0 cmpl $0x0, -0x3c(%rbp) je 0x11a28b movl -0x48(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax movq %rax, -0x70(%rbp) jmp 0x11a292 movl -0x48(%rbp), %eax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x11a2c0 movq -0x38(%rbp), %rax movl $0x21, (%rax) cmpq $0x0, -0x30(%rbp) je 0x11a2b8 movq -0x18(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
my_strntoul_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_18] mov [rbp+var_50], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_60], rax loc_11A099: mov rcx, [rbp+var_50] xor eax, eax cmp rcx, [rbp+var_60] mov [rbp+var_66], al jnb short loc_11A0C8 mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_50] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 setnz al mov [rbp+var_66], al loc_11A0C8: mov al, [rbp+var_66] test al, 1 jnz short loc_11A0D1 jmp short loc_11A0E1 loc_11A0D1: jmp short $+2 loc_11A0D3: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_11A099 loc_11A0E1: mov rax, [rbp+var_50] cmp rax, [rbp+var_60] jnz short loc_11A0F0 jmp loc_11A29C loc_11A0F0: mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_11A111 mov [rbp+var_3C], 1 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_11A13B loc_11A111: mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 2Bh ; '+' jnz short loc_11A132 mov [rbp+var_3C], 0 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_11A139 loc_11A132: mov [rbp+var_3C], 0 loc_11A139: jmp short $+2 loc_11A13B: mov rax, [rbp+var_50] mov [rbp+var_58], rax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_40], eax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_44], edx mov [rbp+var_64], 0 mov [rbp+var_48], 0 loc_11A16B: mov rax, [rbp+var_50] cmp rax, [rbp+var_60] jz loc_11A23C mov rax, [rbp+var_50] mov al, [rax] mov [rbp+var_65], al movzx eax, [rbp+var_65] cmp eax, 30h ; '0' jl short loc_11A1A0 movzx eax, [rbp+var_65] cmp eax, 39h ; '9' jg short loc_11A1A0 movzx eax, [rbp+var_65] sub eax, 30h ; '0' mov [rbp+var_65], al jmp short loc_11A1E8 loc_11A1A0: movzx eax, [rbp+var_65] cmp eax, 41h ; 'A' jl short loc_11A1C1 movzx eax, [rbp+var_65] cmp eax, 5Ah ; 'Z' jg short loc_11A1C1 movzx eax, [rbp+var_65] sub eax, 41h ; 'A' add eax, 0Ah mov [rbp+var_65], al jmp short loc_11A1E6 loc_11A1C1: movzx eax, [rbp+var_65] cmp eax, 61h ; 'a' jl short loc_11A1E2 movzx eax, [rbp+var_65] cmp eax, 7Ah ; 'z' jg short loc_11A1E2 movzx eax, [rbp+var_65] sub eax, 61h ; 'a' add eax, 0Ah mov [rbp+var_65], al jmp short loc_11A1E4 loc_11A1E2: jmp short loc_11A23C loc_11A1E4: jmp short $+2 loc_11A1E6: jmp short $+2 loc_11A1E8: movzx eax, [rbp+var_65] cmp eax, [rbp+var_24] jl short loc_11A1F3 jmp short loc_11A23C loc_11A1F3: mov eax, [rbp+var_48] cmp eax, [rbp+var_40] ja short loc_11A20C mov eax, [rbp+var_48] cmp eax, [rbp+var_40] jnz short loc_11A215 movzx eax, [rbp+var_65] cmp eax, [rbp+var_44] jbe short loc_11A215 loc_11A20C: mov [rbp+var_64], 1 jmp short loc_11A229 loc_11A215: mov eax, [rbp+var_24] imul eax, [rbp+var_48] mov [rbp+var_48], eax movzx eax, [rbp+var_65] add eax, [rbp+var_48] mov [rbp+var_48], eax loc_11A229: jmp short $+2 loc_11A22B: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp loc_11A16B loc_11A23C: mov rax, [rbp+var_50] cmp rax, [rbp+var_58] jnz short loc_11A248 jmp short loc_11A29C loc_11A248: cmp [rbp+var_30], 0 jz short loc_11A25A mov rcx, [rbp+var_50] mov rax, [rbp+var_30] mov [rax], rcx loc_11A25A: cmp [rbp+var_64], 0 jz short loc_11A275 mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp short loc_11A2C0 loc_11A275: cmp [rbp+var_3C], 0 jz short loc_11A28B mov eax, [rbp+var_48] mov ecx, eax xor eax, eax sub rax, rcx mov [rbp+var_70], rax jmp short loc_11A292 loc_11A28B: mov eax, [rbp+var_48] mov [rbp+var_70], rax loc_11A292: mov rax, [rbp+var_70] mov [rbp+var_8], rax jmp short loc_11A2C0 loc_11A29C: mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' cmp [rbp+var_30], 0 jz short loc_11A2B8 mov rcx, [rbp+var_18] mov rax, [rbp+var_30] mov [rax], rcx loc_11A2B8: mov [rbp+var_8], 0 loc_11A2C0: mov rax, [rbp+var_8] pop rbp retn
long long my_strntoul_8bit(long long a1, _BYTE *a2, long long a3, int a4, _QWORD *a5, _DWORD *a6) { bool v8; // [rsp+Ah] [rbp-66h] unsigned __int8 v9; // [rsp+Bh] [rbp-65h] unsigned __int8 v10; // [rsp+Bh] [rbp-65h] int v11; // [rsp+Ch] [rbp-64h] _BYTE *v12; // [rsp+10h] [rbp-60h] _BYTE *v13; // [rsp+18h] [rbp-58h] _BYTE *v14; // [rsp+20h] [rbp-50h] unsigned int v15; // [rsp+28h] [rbp-48h] unsigned long long v16; // [rsp+2Ch] [rbp-44h] int v17; // [rsp+34h] [rbp-3Ch] *a6 = 0; v14 = a2; v12 = &a2[a3]; while ( 1 ) { v8 = 0; if ( v14 < v12 ) v8 = (*(_BYTE *)(*(_QWORD *)(a1 + 64) + (unsigned __int8)*v14 + 1LL) & 8) != 0; if ( !v8 ) break; ++v14; } if ( v14 == v12 ) goto LABEL_37; if ( *v14 == 45 ) { v17 = 1; ++v14; } else { v17 = 0; if ( *v14 == 43 ) ++v14; } v13 = v14; v11 = 0; v15 = 0; while ( v14 != v12 ) { v9 = *v14; if ( (unsigned __int8)*v14 < 0x30u || v9 > 0x39u ) { if ( v9 < 0x41u || v9 > 0x5Au ) { if ( v9 < 0x61u || v9 > 0x7Au ) break; v10 = v9 - 97 + 10; } else { v10 = v9 - 65 + 10; } } else { v10 = v9 - 48; } if ( v10 >= a4 ) break; LODWORD(v16) = 0xFFFFFFFF % a4; HIDWORD(v16) = 0xFFFFFFFF / a4; if ( __PAIR64__(v15, v10) <= v16 ) v15 = v15 * a4 + v10; else v11 = 1; ++v14; } if ( v14 == v13 ) { LABEL_37: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v14; if ( v11 ) { *a6 = 34; return 0xFFFFFFFFLL; } else if ( v17 ) { return -(long long)v15; } else { return v15; } } }
33,310
my_strntoul_8bit
eloqsql/strings/ctype-simple.c
ulong my_strntoul_8bit(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative; register uint32 cutoff; register uint cutlim; register uint32 i; register const char *s; const char *save, *e; int overflow; *err= 0; /* Initialize error indicator */ s = nptr; e = nptr+l; for( ; s<e && my_isspace(cs, *s); s++); if (s==e) { goto noconv; } if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = ((uint32)~0L) / (uint32) base; cutlim = (uint) (((uint32)~0L) % (uint32) base); overflow = 0; i = 0; for ( ; s != e; ++s) { register uchar c= *s; if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') c = c - 'A' + 10; else if (c>='a' && c<='z') c = c - 'a' + 10; else break; if (c >= base) break; if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (uint32) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (overflow) { err[0]= ERANGE; return (~(uint32) 0); } return (negative ? -((long) i) : (long) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O3
c
my_strntoul_8bit: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl $0x0, (%r9) leaq (%rsi,%rdx), %r11 movq %rsi, %r10 testq %rdx, %rdx jle 0xb4fb0 movq 0x40(%rdi), %rax movq %rsi, %r10 movzbl (%r10), %edx testb $0x8, 0x1(%rax,%rdx) je 0xb4fb0 incq %r10 cmpq %r11, %r10 jb 0xb4f9d cmpq %r11, %r10 je 0xb508e movb (%r10), %dil leal -0x2b(%rdi), %eax andb $-0x3, %al cmpb $0x1, %al adcq $0x0, %r10 movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl %ecx xorl %r15d, %r15d cmpq %r11, %r10 je 0xb506b movq %rdi, -0x30(%rbp) movq %r10, %rbx xorl %r13d, %r13d movl %r13d, %r14d movl %r15d, %r12d movb (%rbx), %r15b leal -0x30(%r15), %edi cmpb $0xa, %dil jb 0xb501a leal -0x41(%r15), %edi cmpb $0x19, %dil ja 0xb5009 addb $-0x37, %r15b jmp 0xb5017 leal -0x61(%r15), %edi cmpb $0x19, %dil ja 0xb5059 addb $-0x57, %r15b movl %r15d, %edi movzbl %dil, %edi cmpl %ecx, %edi jge 0xb5059 movl $0x1, %r15d cmpl %eax, %r14d jbe 0xb5032 movl %r14d, %r13d jmp 0xb5048 jne 0xb503b movl %eax, %r13d cmpl %edi, %edx jb 0xb5048 imull %ecx, %r14d addl %edi, %r14d movl %r14d, %r13d movl %r12d, %r15d incq %rbx cmpq %r11, %rbx jne 0xb4fe6 movl %r13d, %r14d movq %r11, %rbx movl %r15d, %r12d testl %r12d, %r12d sete %al movl %r14d, %r15d movq %rbx, %r11 movq -0x30(%rbp), %rdi jmp 0xb506d movb $0x1, %al cmpq %r10, %r11 je 0xb508e testq %r8, %r8 je 0xb507a movq %r11, (%r8) testb %al, %al je 0xb50a1 movq %r15, %rax negq %rax cmpb $0x2d, %dil cmovneq %r15, %rax jmp 0xb50ad movl $0x21, (%r9) testq %r8, %r8 je 0xb509d movq %rsi, (%r8) xorl %eax, %eax jmp 0xb50ad movl $0x22, (%r9) movl $0xffffffff, %eax # imm = 0xFFFFFFFF popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strntoul_8bit: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx mov dword ptr [r9], 0 lea r11, [rsi+rdx] mov r10, rsi test rdx, rdx jle short loc_B4FB0 mov rax, [rdi+40h] mov r10, rsi loc_B4F9D: movzx edx, byte ptr [r10] test byte ptr [rax+rdx+1], 8 jz short loc_B4FB0 inc r10 cmp r10, r11 jb short loc_B4F9D loc_B4FB0: cmp r10, r11 jz loc_B508E mov dil, [r10] lea eax, [rdi-2Bh] and al, 0FDh cmp al, 1 adc r10, 0 mov eax, 0FFFFFFFFh xor edx, edx div ecx xor r15d, r15d cmp r10, r11 jz loc_B506B mov [rbp+var_30], rdi mov rbx, r10 xor r13d, r13d loc_B4FE6: mov r14d, r13d mov r12d, r15d mov r15b, [rbx] lea edi, [r15-30h] cmp dil, 0Ah jb short loc_B501A lea edi, [r15-41h] cmp dil, 19h ja short loc_B5009 add r15b, 0C9h jmp short loc_B5017 loc_B5009: lea edi, [r15-61h] cmp dil, 19h ja short loc_B5059 add r15b, 0A9h loc_B5017: mov edi, r15d loc_B501A: movzx edi, dil cmp edi, ecx jge short loc_B5059 mov r15d, 1 cmp r14d, eax jbe short loc_B5032 mov r13d, r14d jmp short loc_B5048 loc_B5032: jnz short loc_B503B mov r13d, eax cmp edx, edi jb short loc_B5048 loc_B503B: imul r14d, ecx add r14d, edi mov r13d, r14d mov r15d, r12d loc_B5048: inc rbx cmp rbx, r11 jnz short loc_B4FE6 mov r14d, r13d mov rbx, r11 mov r12d, r15d loc_B5059: test r12d, r12d setz al mov r15d, r14d mov r11, rbx mov rdi, [rbp+var_30] jmp short loc_B506D loc_B506B: mov al, 1 loc_B506D: cmp r11, r10 jz short loc_B508E test r8, r8 jz short loc_B507A mov [r8], r11 loc_B507A: test al, al jz short loc_B50A1 mov rax, r15 neg rax cmp dil, 2Dh ; '-' cmovnz rax, r15 jmp short loc_B50AD loc_B508E: mov dword ptr [r9], 21h ; '!' test r8, r8 jz short loc_B509D mov [r8], rsi loc_B509D: xor eax, eax jmp short loc_B50AD loc_B50A1: mov dword ptr [r9], 22h ; '"' mov eax, 0FFFFFFFFh loc_B50AD: pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strntoul_8bit( long long a1, unsigned __int8 *a2, long long a3, unsigned int a4, unsigned __int8 **a5, _DWORD *a6) { unsigned __int8 *v6; // r11 unsigned __int8 *v7; // r10 unsigned __int8 v8; // di unsigned __int8 *v9; // r10 unsigned int v10; // eax long long v11; // r15 unsigned __int8 *v12; // rbx unsigned int v13; // r13d unsigned int v14; // r14d int v15; // r12d unsigned __int8 v16; // r15 unsigned __int8 v17; // di unsigned __int8 v18; // r15 bool v19; // al long long result; // rax unsigned __int8 v21; // [rsp+0h] [rbp-30h] *a6 = 0; v6 = &a2[a3]; v7 = a2; if ( a3 > 0 ) { v7 = a2; do { if ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v7 + 1LL) & 8) == 0 ) break; ++v7; } while ( v7 < v6 ); } if ( v7 == v6 ) goto LABEL_30; v8 = *v7; v9 = &v7[((*v7 - 43) & 0xFD) == 0]; v10 = 0xFFFFFFFF / a4; v11 = 0LL; if ( v9 == v6 ) { v19 = 1; } else { v21 = v8; v12 = v9; v13 = 0; while ( 1 ) { v14 = v13; v15 = v11; v16 = *v12; v17 = *v12 - 48; if ( v17 >= 0xAu ) { if ( (unsigned __int8)(v16 - 65) > 0x19u ) { if ( (unsigned __int8)(v16 - 97) > 0x19u ) break; v18 = v16 - 87; } else { v18 = v16 - 55; } v17 = v18; } if ( v17 >= (int)a4 ) break; LODWORD(v11) = 1; if ( v13 <= v10 ) { if ( v13 != v10 || (v13 = 0xFFFFFFFF / a4, 0xFFFFFFFF % a4 >= v17) ) { v13 = v17 + a4 * v14; LODWORD(v11) = v15; } } if ( ++v12 == v6 ) { v14 = v13; v12 = &a2[a3]; v15 = v11; break; } } v19 = v15 == 0; v11 = v14; v6 = v12; v8 = v21; } if ( v6 == v9 ) { LABEL_30: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v6; if ( v19 ) { result = -v11; if ( v8 != 45 ) return v11; } else { *a6 = 34; return 0xFFFFFFFFLL; } } return result; }
my_strntoul_8bit: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV dword ptr [R9],0x0 LEA R11,[RSI + RDX*0x1] MOV R10,RSI TEST RDX,RDX JLE 0x001b4fb0 MOV RAX,qword ptr [RDI + 0x40] MOV R10,RSI LAB_001b4f9d: MOVZX EDX,byte ptr [R10] TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8 JZ 0x001b4fb0 INC R10 CMP R10,R11 JC 0x001b4f9d LAB_001b4fb0: CMP R10,R11 JZ 0x001b508e MOV DIL,byte ptr [R10] LEA EAX,[RDI + -0x2b] AND AL,0xfd CMP AL,0x1 ADC R10,0x0 MOV EAX,0xffffffff XOR EDX,EDX DIV ECX XOR R15D,R15D CMP R10,R11 JZ 0x001b506b MOV qword ptr [RBP + -0x30],RDI MOV RBX,R10 XOR R13D,R13D LAB_001b4fe6: MOV R14D,R13D MOV R12D,R15D MOV R15B,byte ptr [RBX] LEA EDI,[R15 + -0x30] CMP DIL,0xa JC 0x001b501a LEA EDI,[R15 + -0x41] CMP DIL,0x19 JA 0x001b5009 ADD R15B,0xc9 JMP 0x001b5017 LAB_001b5009: LEA EDI,[R15 + -0x61] CMP DIL,0x19 JA 0x001b5059 ADD R15B,0xa9 LAB_001b5017: MOV EDI,R15D LAB_001b501a: MOVZX EDI,DIL CMP EDI,ECX JGE 0x001b5059 MOV R15D,0x1 CMP R14D,EAX JBE 0x001b5032 MOV R13D,R14D JMP 0x001b5048 LAB_001b5032: JNZ 0x001b503b MOV R13D,EAX CMP EDX,EDI JC 0x001b5048 LAB_001b503b: IMUL R14D,ECX ADD R14D,EDI MOV R13D,R14D MOV R15D,R12D LAB_001b5048: INC RBX CMP RBX,R11 JNZ 0x001b4fe6 MOV R14D,R13D MOV RBX,R11 MOV R12D,R15D LAB_001b5059: TEST R12D,R12D SETZ AL MOV R15D,R14D MOV R11,RBX MOV RDI,qword ptr [RBP + -0x30] JMP 0x001b506d LAB_001b506b: MOV AL,0x1 LAB_001b506d: CMP R11,R10 JZ 0x001b508e TEST R8,R8 JZ 0x001b507a MOV qword ptr [R8],R11 LAB_001b507a: TEST AL,AL JZ 0x001b50a1 MOV RAX,R15 NEG RAX CMP DIL,0x2d CMOVNZ RAX,R15 JMP 0x001b50ad LAB_001b508e: MOV dword ptr [R9],0x21 TEST R8,R8 JZ 0x001b509d MOV qword ptr [R8],RSI LAB_001b509d: XOR EAX,EAX JMP 0x001b50ad LAB_001b50a1: MOV dword ptr [R9],0x22 MOV EAX,0xffffffff LAB_001b50ad: POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong my_strntoul_8bit(long param_1,byte *param_2,long param_3,uint param_4,ulong *param_5, int4 *param_6) { byte bVar1; byte bVar2; uint uVar3; uint uVar4; byte *pbVar5; byte *pbVar6; byte *pbVar7; int iVar8; uint uVar9; byte bVar10; ulong uVar11; ulong uVar12; bool bVar13; *param_6 = 0; pbVar7 = param_2 + param_3; pbVar6 = param_2; if (0 < param_3) { do { if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar6) & 8) == 0) break; pbVar6 = pbVar6 + 1; } while (pbVar6 < pbVar7); } if (pbVar6 != pbVar7) { bVar1 = *pbVar6; pbVar6 = pbVar6 + ((bVar1 - 0x2b & 0xfd) == 0); uVar11 = 0; if (pbVar6 == pbVar7) { bVar13 = true; } else { uVar9 = 0; pbVar5 = pbVar6; do { iVar8 = (int)uVar11; bVar2 = *pbVar5; bVar10 = bVar2 - 0x30; if (9 < bVar10) { if ((byte)(bVar2 + 0xbf) < 0x1a) { bVar10 = bVar2 - 0x37; } else { if (0x19 < (byte)(bVar2 + 0x9f)) goto LAB_001b5059; bVar10 = bVar2 + 0xa9; } } if ((int)param_4 <= (int)(uint)bVar10) goto LAB_001b5059; uVar12 = 1; uVar4 = (uint)(0xffffffff / (ulong)param_4); uVar3 = uVar9; if ((uVar9 <= uVar4) && ((uVar9 != uVar4 || (uVar3 = uVar4, (uint)bVar10 <= (uint)(0xffffffff % (ulong)param_4))) )) { uVar12 = uVar11; uVar3 = uVar9 * param_4 + (uint)bVar10; } uVar9 = uVar3; pbVar5 = pbVar5 + 1; uVar11 = uVar12; } while (pbVar5 != pbVar7); iVar8 = (int)uVar12; pbVar5 = pbVar7; LAB_001b5059: bVar13 = iVar8 == 0; uVar11 = (ulong)uVar9; pbVar7 = pbVar5; } if (pbVar7 != pbVar6) { if (param_5 != (ulong *)0x0) { *param_5 = (ulong)pbVar7; } if (bVar13) { if (bVar1 == 0x2d) { return -uVar11; } return uVar11; } *param_6 = 0x22; return 0xffffffff; } } *param_6 = 0x21; if (param_5 != (ulong *)0x0) { *param_5 = (ulong)param_2; } return 0; }
33,311
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>)
monkey531[P]llama/common/./json.hpp
void push_back(initializer_list_t init) { if (is_object() && init.size() == 2 && (*init.begin())->is_string()) { basic_json&& key = init.begin()->moved_or_copied(); push_back(typename object_t::value_type( std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied())); } else { push_back(basic_json(init)); } }
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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>): subq $0xc8, %rsp movq %rsi, 0xb8(%rsp) movq %rdx, 0xc0(%rsp) movq %rdi, 0xb0(%rsp) movq 0xb0(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xa2c80 testb $0x1, %al jne 0x6221a jmp 0x62358 leaq 0xb8(%rsp), %rdi callq 0x10d7b0 cmpq $0x2, %rax jne 0x62358 leaq 0xb8(%rsp), %rdi callq 0x10ce50 movq %rax, %rdi callq 0x10d550 movq %rax, %rdi callq 0xa1b90 testb $0x1, %al jne 0x62257 jmp 0x62358 leaq 0xb8(%rsp), %rdi callq 0x10ce50 movq %rax, %rsi leaq 0x98(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x10d040 movq 0x8(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0xa8(%rsp), %rdi callq 0x142220 movq %rax, 0x10(%rsp) jmp 0x6229a leaq 0xb8(%rsp), %rdi callq 0x10ce50 movq %rax, %rsi addq $0x18, %rsi leaq 0x48(%rsp), %rdi callq 0x10d040 jmp 0x622ba movq 0x10(%rsp), %rsi leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx callq 0x142230 jmp 0x622d0 movq 0x18(%rsp), %rdi leaq 0x68(%rsp), %rsi callq 0x142070 jmp 0x622e1 leaq 0x68(%rsp), %rdi callq 0xa3e00 leaq 0x48(%rsp), %rdi callq 0x6e0f0 leaq 0x98(%rsp), %rdi callq 0x6e0f0 jmp 0x623be movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0x62349 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0x6233f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x68(%rsp), %rdi callq 0xa3e00 leaq 0x48(%rsp), %rdi callq 0x6e0f0 leaq 0x98(%rsp), %rdi callq 0x6e0f0 jmp 0x623c6 movups 0xb8(%rsp), %xmm0 movaps %xmm0, 0x20(%rsp) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx leaq 0x38(%rsp), %rdi movq %rdi, (%rsp) movl $0x1, %ecx movl $0x2, %r8d callq 0x6e740 movq 0x18(%rsp), %rdi movq (%rsp), %rsi callq 0x142270 jmp 0x62398 leaq 0x38(%rsp), %rdi callq 0x6e0f0 jmp 0x623be movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x38(%rsp), %rdi callq 0x6e0f0 jmp 0x623c6 addq $0xc8, %rsp retq movq 0x60(%rsp), %rdi callq 0x50940
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE: sub rsp, 0C8h mov qword ptr [rsp+0C8h+var_10], rsi; int mov qword ptr [rsp+0C8h+var_10+8], rdx; int mov qword ptr [rsp+0C8h+var_18], rdi; int mov rdi, qword ptr [rsp+0C8h+var_18] mov qword ptr [rsp+0C8h+var_B0], 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) test al, 1 jnz short loc_6221A jmp loc_62358 loc_6221A: lea rdi, [rsp+0C8h+var_10] call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE4sizeEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::size(void) cmp rax, 2 jnz loc_62358 lea rdi, [rsp+0C8h+var_10] call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov rdi, rax call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void) mov rdi, rax call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_stringEv; 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_string(void) test al, 1 jnz short loc_62257 jmp loc_62358 loc_62257: lea rdi, [rsp+0C8h+var_10] call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov rsi, rax lea rdi, [rsp+0C8h+var_30] mov qword ptr [rsp+0C8h+var_C0], rdi; int call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void) mov rax, qword ptr [rsp+0C8h+var_C0] mov [rsp+0C8h+var_20], rax mov rdi, [rsp+0C8h+var_20]; void * call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_refIRS9_TnNSt9enable_ifIXsr3std12is_referenceIT_EE5valueEiE4typeELi0EEESH_v mov qword ptr [rsp+0C8h+var_B8], rax; int jmp short $+2 loc_6229A: lea rdi, [rsp+0C8h+var_10] call _ZNKSt16initializer_listIN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov rsi, rax add rsi, 18h lea rdi, [rsp+0C8h+var_80] call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void) jmp short $+2 loc_622BA: mov rsi, qword ptr [rsp+0C8h+var_B8] lea rdi, [rsp+0C8h+var_60] lea rdx, [rsp+0C8h+var_80] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ jmp short $+2 loc_622D0: mov rdi, qword ptr [rsp+0C8h+var_B0]; int lea rsi, [rsp+0C8h+var_60]; int call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_back(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&) jmp short $+2 loc_622E1: lea rdi, [rsp+0C8h+var_60] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() lea rdi, [rsp+0C8h+var_80] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() lea rdi, [rsp+0C8h+var_30] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_623BE mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_62349 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_6233F mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_60] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() loc_6233F: lea rdi, [rsp+arg_40] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_62349: lea rdi, [rsp+arg_90] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_623C6 loc_62358: movups xmm0, xmmword ptr [rsp+0C8h+var_10] movaps xmmword ptr [rsp+0C8h+var_A8], xmm0; int mov rsi, qword ptr [rsp+0C8h+var_A8]; int mov rdx, qword ptr [rsp+0C8h+var_A8+8]; int lea rdi, [rsp+0C8h+var_90]; int mov [rsp+0C8h+var_C8], rdi; void * mov ecx, 1; int mov r8d, 2; int call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) mov rdi, qword ptr [rsp+0C8h+var_B0]; char mov rsi, [rsp+0C8h+var_C8]; int call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) jmp short $+2 loc_62398: lea rdi, [rsp+0C8h+var_90] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_623BE mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_30] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_623C6 loc_623BE: add rsp, 0C8h retn loc_623C6: mov rdi, [rsp+arg_58] call __Unwind_Resume
push_back: SUB RSP,0xc8 MOV qword ptr [RSP + 0xb8],RSI MOV qword ptr [RSP + 0xc0],RDX MOV qword ptr [RSP + 0xb0],RDI MOV RDI,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x18],RDI CALL 0x001a2c80 TEST AL,0x1 JNZ 0x0016221a JMP 0x00162358 LAB_0016221a: LEA RDI,[RSP + 0xb8] CALL 0x0020d7b0 CMP RAX,0x2 JNZ 0x00162358 LEA RDI,[RSP + 0xb8] CALL 0x0020ce50 MOV RDI,RAX CALL 0x0020d550 MOV RDI,RAX CALL 0x001a1b90 TEST AL,0x1 JNZ 0x00162257 JMP 0x00162358 LAB_00162257: LEA RDI,[RSP + 0xb8] CALL 0x0020ce50 MOV RSI,RAX LEA RDI,[RSP + 0x98] MOV qword ptr [RSP + 0x8],RDI CALL 0x0020d040 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0xa8],RAX MOV RDI,qword ptr [RSP + 0xa8] LAB_0016228e: CALL 0x00242220 MOV qword ptr [RSP + 0x10],RAX JMP 0x0016229a LAB_0016229a: LEA RDI,[RSP + 0xb8] CALL 0x0020ce50 MOV RSI,RAX ADD RSI,0x18 LEA RDI,[RSP + 0x48] CALL 0x0020d040 JMP 0x001622ba LAB_001622ba: MOV RSI,qword ptr [RSP + 0x10] LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x48] CALL 0x00242230 JMP 0x001622d0 LAB_001622d0: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[RSP + 0x68] CALL 0x00242070 LAB_001622df: JMP 0x001622e1 LAB_001622e1: LEA RDI,[RSP + 0x68] CALL 0x001a3e00 LEA RDI,[RSP + 0x48] CALL 0x0016e0f0 LEA RDI,[RSP + 0x98] CALL 0x0016e0f0 JMP 0x001623be LAB_00162358: MOVUPS XMM0,xmmword ptr [RSP + 0xb8] MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] LEA RDI,[RSP + 0x38] MOV qword ptr [RSP],RDI MOV ECX,0x1 MOV R8D,0x2 CALL 0x0016e740 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP] LAB_00162391: CALL 0x00242270 LAB_00162396: JMP 0x00162398 LAB_00162398: LEA RDI,[RSP + 0x38] CALL 0x0016e0f0 JMP 0x001623be LAB_001623be: ADD RSP,0xc8 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >) */ void nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,int8 param_2,int8 param_3) { ulong uVar1; long lVar2; json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *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> *this_00; int8 uVar3; basic_json local_90 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_80 [32]; pair local_60 [48]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_30 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_20; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *local_18; int8 local_10; int8 uStack_8; local_18 = param_1; local_10 = param_2; uStack_8 = param_3; uVar1 = is_object(param_1); if (((uVar1 & 1) != 0) && (lVar2 = std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::size((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10), lVar2 == 2)) { this = (json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::operator->(this); uVar1 = is_string(this_00); if ((uVar1 & 1) != 0) { std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(); local_20 = local_30; /* try { // try from 0016228e to 001622b7 has its CatchHandler @ 00162307 */ uVar3 = _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_refIRS9_TnNSt9enable_ifIXsr3std12is_referenceIT_EE5valueEiE4typeELi0EEESH_v (local_30); std:: initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::begin((initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_10); detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(); /* try { // try from 001622ba to 001622cd has its CatchHandler @ 00162317 */ _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_ (local_60,uVar3,local_80); /* try { // try from 001622d0 to 001622de has its CatchHandler @ 00162327 */ push_back(param_1,local_60); std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~pair((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)local_60); ~basic_json(local_80); ~basic_json(local_30); return; } } basic_json(local_90,local_10,uStack_8,1,2); /* try { // try from 00162391 to 00162395 has its CatchHandler @ 001623a4 */ push_back(param_1,local_90); ~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_90); return; }
33,312
inline_mysql_cond_destroy
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_destroy( mysql_cond_t *that) { #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) { PSI_COND_CALL(destroy_cond)(that->m_psi); that->m_psi= NULL; } #endif return pthread_cond_destroy(&that->m_cond); }
O0
c
inline_mysql_cond_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x2bfe4 leaq 0x1ae131(%rip), %rax # 0x1da0f8 movq (%rax), %rax movq 0x68(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x8(%rbp), %rdi callq 0x25630 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_cond_destroy: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 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_2BFE4 lea rax, PSI_server mov rax, [rax] mov rax, [rax+68h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax mov rax, [rbp+var_8] mov qword ptr [rax+30h], 0 loc_2BFE4: mov rdi, [rbp+var_8] call _pthread_cond_destroy add rsp, 10h pop rbp retn
long long inline_mysql_cond_destroy(long long a1) { if ( *(_QWORD *)(a1 + 48) ) { (*((void ( **)(_QWORD))PSI_server[0] + 13))(*(_QWORD *)(a1 + 48)); *(_QWORD *)(a1 + 48) = 0LL; } return pthread_cond_destroy(a1); }
inline_mysql_cond_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0012bfe4 LEA RAX,[0x2da0f8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x30],0x0 LAB_0012bfe4: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00125630 ADD RSP,0x10 POP RBP RET
void inline_mysql_cond_destroy(pthread_cond_t *param_1) { if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x68))(param_1[1].__align); param_1[1].__align = 0; } pthread_cond_destroy(param_1); return; }
33,313
mysql_autocommit_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_autocommit_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_autocommit, (parms->mysql, parms->auto_mode), parms->mysql, my_bool, r_my_bool) }
O3
c
mysql_autocommit_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rax movq 0x480(%rax), %rcx movq 0x28(%rcx), %rbx movsbl 0x8(%rdi), %esi movq %rax, %rdi callq 0x1c501 movb %al, 0x8(%rbx) movl $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
mysql_autocommit_start_internal: push rbp mov rbp, rsp push rbx push rax mov rax, [rdi] mov rcx, [rax+480h] mov rbx, [rcx+28h] movsx esi, byte ptr [rdi+8] mov rdi, rax call mysql_autocommit mov [rbx+8], al mov dword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp retn
long long mysql_autocommit_start_internal(long long a1) { long long v1; // rbx long long result; // rax v1 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL); result = mysql_autocommit(*(_QWORD *)a1, *(_BYTE *)(a1 + 8)); *(_BYTE *)(v1 + 8) = result; *(_DWORD *)v1 = 0; return result; }
mysql_autocommit_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RAX + 0x480] MOV RBX,qword ptr [RCX + 0x28] MOVSX ESI,byte ptr [RDI + 0x8] MOV RDI,RAX CALL 0x0011c501 MOV byte ptr [RBX + 0x8],AL MOV dword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP RET
void mysql_autocommit_start_internal(long *param_1) { int4 *puVar1; int1 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_autocommit(*param_1,(int)(char)param_1[1]); *(int1 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
33,314
delete_dynamic_record
eloqsql/storage/maria/ma_dynrec.c
static my_bool delete_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS filepos, uint second_read) { uint length,b_type; MARIA_BLOCK_INFO block_info,del_block; int error; my_bool remove_next_block; DBUG_ENTER("delete_dynamic_record"); /* First add a link from the last block to the new one */ error= update_backward_delete_link(info, info->s->state.dellink, filepos); block_info.second_read=second_read; do { /* Remove block at 'filepos' */ if ((b_type= _ma_get_block_info(info, &block_info, info->dfile.file, filepos)) & (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR | BLOCK_FATAL_ERROR) || (length=(uint) (block_info.filepos-filepos) +block_info.block_len) < MARIA_MIN_BLOCK_LENGTH) { _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(1); } /* Check if next block is a delete block */ del_block.second_read=0; remove_next_block=0; if (_ma_get_block_info(info, &del_block, info->dfile.file, filepos + length) & BLOCK_DELETED && del_block.block_len+length < MARIA_DYN_MAX_BLOCK_LENGTH) { /* We can't remove this yet as this block may be the head block */ remove_next_block=1; length+=del_block.block_len; } block_info.header[0]=0; mi_int3store(block_info.header+1,length); mi_sizestore(block_info.header+4,info->s->state.dellink); if (b_type & BLOCK_LAST) bfill(block_info.header+12,8,255); else mi_sizestore(block_info.header+12,block_info.next_filepos); if (info->s->file_write(info, block_info.header, 20, filepos, MYF(MY_NABP))) DBUG_RETURN(1); info->s->state.dellink = filepos; info->state->del++; info->state->empty+=length; filepos=block_info.next_filepos; /* Now it's safe to unlink the deleted block directly after this one */ if (remove_next_block && unlink_deleted_block(info,&del_block)) error=1; } while (!(b_type & BLOCK_LAST)); DBUG_RETURN(error); }
O0
c
delete_dynamic_record: pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0xc8(%rbp) movq %rsi, -0xd0(%rbp) movl %edx, -0xd4(%rbp) movq -0xc8(%rbp), %rdi movq -0xc8(%rbp), %rax movq (%rax), %rax movq 0xc8(%rax), %rsi movq -0xd0(%rbp), %rdx callq 0x3eeb0 movsbl %al, %eax movl %eax, -0xe0(%rbp) movl -0xd4(%rbp), %eax movl %eax, -0x10(%rbp) movq -0xc8(%rbp), %rdi movq -0xc8(%rbp), %rax movl 0x480(%rax), %edx movq -0xd0(%rbp), %rcx leaq -0x60(%rbp), %rsi callq 0x3e0b0 movl %eax, -0xdc(%rbp) andl $0x3c, %eax cmpl $0x0, %eax jne 0x3ce80 movq -0x28(%rbp), %rax subq -0xd0(%rbp), %rax movl %eax, %eax addq -0x38(%rbp), %rax movl %eax, -0xd8(%rbp) cmpl $0x14, %eax jae 0x3ce9d movq -0xc8(%rbp), %rdi movl $0x7f, %esi callq 0x33880 movb $0x1, -0xb9(%rbp) jmp 0x3d1c2 movl $0x0, -0x68(%rbp) movb $0x0, -0xe1(%rbp) movq -0xc8(%rbp), %rdi movq -0xc8(%rbp), %rax movl 0x480(%rax), %edx movq -0xd0(%rbp), %rcx movl -0xd8(%rbp), %eax addq %rax, %rcx leaq -0xb8(%rbp), %rsi callq 0x3e0b0 andl $0x4, %eax cmpl $0x0, %eax je 0x3cf18 movq -0x90(%rbp), %rax movl -0xd8(%rbp), %ecx addq %rcx, %rax cmpq $0xfffffc, %rax # imm = 0xFFFFFC jae 0x3cf18 movb $0x1, -0xe1(%rbp) movq -0x90(%rbp), %rcx movl -0xd8(%rbp), %eax addq %rcx, %rax movl %eax, -0xd8(%rbp) movb $0x0, -0x60(%rbp) movl -0xd8(%rbp), %eax movq %rax, -0xf0(%rbp) movq -0xf0(%rbp), %rax movb %al, -0x5d(%rbp) movq -0xf0(%rbp), %rax shrq $0x8, %rax movb %al, -0x5e(%rbp) movq -0xf0(%rbp), %rax shrq $0x10, %rax movb %al, -0x5f(%rbp) movq -0xc8(%rbp), %rax movq (%rax), %rax movq 0xc8(%rax), %rax movq %rax, -0xf8(%rbp) movq -0xc8(%rbp), %rax movq (%rax), %rax movq 0xc8(%rax), %rax shrq $0x20, %rax movq %rax, -0x100(%rbp) movq -0x100(%rbp), %rax movq %rax, -0x108(%rbp) movq -0x108(%rbp), %rax movb %al, -0x59(%rbp) movq -0x108(%rbp), %rax shrq $0x8, %rax movb %al, -0x5a(%rbp) movq -0x108(%rbp), %rax shrq $0x10, %rax movb %al, -0x5b(%rbp) movq -0x108(%rbp), %rax shrq $0x18, %rax movb %al, -0x5c(%rbp) movq -0xf8(%rbp), %rax movq %rax, -0x110(%rbp) movq -0x110(%rbp), %rax movb %al, -0x55(%rbp) movq -0x110(%rbp), %rax shrq $0x8, %rax movb %al, -0x56(%rbp) movq -0x110(%rbp), %rax shrq $0x10, %rax movb %al, -0x57(%rbp) movq -0x110(%rbp), %rax shrq $0x18, %rax movb %al, -0x58(%rbp) movl -0xdc(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x3d031 leaq -0x60(%rbp), %rdi addq $0xc, %rdi movl $0xff, %esi movl $0x8, %edx callq 0x2a2c0 jmp 0x3d0cf movq -0x20(%rbp), %rax movq %rax, -0x118(%rbp) movq -0x20(%rbp), %rax shrq $0x20, %rax movq %rax, -0x120(%rbp) movq -0x120(%rbp), %rax movq %rax, -0x128(%rbp) movq -0x128(%rbp), %rax movb %al, -0x51(%rbp) movq -0x128(%rbp), %rax shrq $0x8, %rax movb %al, -0x52(%rbp) movq -0x128(%rbp), %rax shrq $0x10, %rax movb %al, -0x53(%rbp) movq -0x128(%rbp), %rax shrq $0x18, %rax movb %al, -0x54(%rbp) movq -0x118(%rbp), %rax movq %rax, -0x130(%rbp) movq -0x130(%rbp), %rax movb %al, -0x4d(%rbp) movq -0x130(%rbp), %rax shrq $0x8, %rax movb %al, -0x4e(%rbp) movq -0x130(%rbp), %rax shrq $0x10, %rax movb %al, -0x4f(%rbp) movq -0x130(%rbp), %rax shrq $0x18, %rax movb %al, -0x50(%rbp) movq -0xc8(%rbp), %rax movq (%rax), %rax movq 0x6e8(%rax), %rax movq -0xc8(%rbp), %rdi leaq -0x60(%rbp), %rsi movq -0xd0(%rbp), %rcx movl $0x14, %edx movl $0x4, %r8d callq *%rax cmpq $0x0, %rax je 0x3d113 jmp 0x3d107 movb $0x1, -0xb9(%rbp) jmp 0x3d1c2 movq -0xd0(%rbp), %rcx movq -0xc8(%rbp), %rax movq (%rax), %rax movq %rcx, 0xc8(%rax) movq -0xc8(%rbp), %rax movq 0x20(%rax), %rax movq 0x8(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x8(%rax) movl -0xd8(%rbp), %eax movl %eax, %ecx movq -0xc8(%rbp), %rax movq 0x20(%rax), %rax addq 0x10(%rax), %rcx movq %rcx, 0x10(%rax) movq -0x20(%rbp), %rax movq %rax, -0xd0(%rbp) movsbl -0xe1(%rbp), %eax cmpl $0x0, %eax je 0x3d199 movq -0xc8(%rbp), %rdi leaq -0xb8(%rbp), %rsi callq 0x3eae0 movsbl %al, %eax cmpl $0x0, %eax je 0x3d199 movl $0x1, -0xe0(%rbp) jmp 0x3d19b movl -0xdc(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax setne %al xorb $-0x1, %al testb $0x1, %al jne 0x3ce32 jmp 0x3d1b6 movl -0xe0(%rbp), %eax movb %al, -0xb9(%rbp) movb -0xb9(%rbp), %al movb %al, -0x131(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3d1ef movb -0x131(%rbp), %al addq $0x140, %rsp # imm = 0x140 popq %rbp retq callq 0x2a270 nopw %cs:(%rax,%rax)
delete_dynamic_record: push rbp mov rbp, rsp sub rsp, 140h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_C8], rdi mov [rbp+var_D0], rsi mov [rbp+var_D4], edx mov rdi, [rbp+var_C8] mov rax, [rbp+var_C8] mov rax, [rax] mov rsi, [rax+0C8h] mov rdx, [rbp+var_D0] call update_backward_delete_link movsx eax, al mov [rbp+var_E0], eax mov eax, [rbp+var_D4] mov [rbp+var_10], eax loc_3CE32: mov rdi, [rbp+var_C8] mov rax, [rbp+var_C8] mov edx, [rax+480h] mov rcx, [rbp+var_D0] lea rsi, [rbp+var_60] call _ma_get_block_info mov [rbp+var_DC], eax and eax, 3Ch cmp eax, 0 jnz short loc_3CE80 mov rax, [rbp+var_28] sub rax, [rbp+var_D0] mov eax, eax add rax, [rbp+var_38] mov [rbp+var_D8], eax cmp eax, 14h jnb short loc_3CE9D loc_3CE80: mov rdi, [rbp+var_C8] mov esi, 7Fh call _ma_set_fatal_error mov [rbp+var_B9], 1 jmp loc_3D1C2 loc_3CE9D: mov [rbp+var_68], 0 mov [rbp+var_E1], 0 mov rdi, [rbp+var_C8] mov rax, [rbp+var_C8] mov edx, [rax+480h] mov rcx, [rbp+var_D0] mov eax, [rbp+var_D8] add rcx, rax lea rsi, [rbp+var_B8] call _ma_get_block_info and eax, 4 cmp eax, 0 jz short loc_3CF18 mov rax, [rbp+var_90] mov ecx, [rbp+var_D8] add rax, rcx cmp rax, 0FFFFFCh jnb short loc_3CF18 mov [rbp+var_E1], 1 mov rcx, [rbp+var_90] mov eax, [rbp+var_D8] add rax, rcx mov [rbp+var_D8], eax loc_3CF18: mov [rbp+var_60], 0 mov eax, [rbp+var_D8] mov [rbp+var_F0], rax mov rax, [rbp+var_F0] mov [rbp+var_5D], al mov rax, [rbp+var_F0] shr rax, 8 mov [rbp+var_5E], al mov rax, [rbp+var_F0] shr rax, 10h mov [rbp+var_5F], al mov rax, [rbp+var_C8] mov rax, [rax] mov rax, [rax+0C8h] mov [rbp+var_F8], rax mov rax, [rbp+var_C8] mov rax, [rax] mov rax, [rax+0C8h] shr rax, 20h mov [rbp+var_100], rax mov rax, [rbp+var_100] mov [rbp+var_108], rax mov rax, [rbp+var_108] mov [rbp+var_59], al mov rax, [rbp+var_108] shr rax, 8 mov [rbp+var_5A], al mov rax, [rbp+var_108] shr rax, 10h mov [rbp+var_5B], al mov rax, [rbp+var_108] shr rax, 18h mov [rbp+var_5C], al mov rax, [rbp+var_F8] mov [rbp+var_110], rax mov rax, [rbp+var_110] mov [rbp+var_55], al mov rax, [rbp+var_110] shr rax, 8 mov [rbp+var_56], al mov rax, [rbp+var_110] shr rax, 10h mov [rbp+var_57], al mov rax, [rbp+var_110] shr rax, 18h mov [rbp+var_58], al mov eax, [rbp+var_DC] and eax, 2 cmp eax, 0 jz short loc_3D031 lea rdi, [rbp+var_60] add rdi, 0Ch mov esi, 0FFh mov edx, 8 call _memset jmp loc_3D0CF loc_3D031: mov rax, [rbp+var_20] mov [rbp+var_118], rax mov rax, [rbp+var_20] shr rax, 20h mov [rbp+var_120], rax mov rax, [rbp+var_120] mov [rbp+var_128], rax mov rax, [rbp+var_128] mov [rbp+var_51], al mov rax, [rbp+var_128] shr rax, 8 mov [rbp+var_52], al mov rax, [rbp+var_128] shr rax, 10h mov [rbp+var_53], al mov rax, [rbp+var_128] shr rax, 18h mov [rbp+var_54], al mov rax, [rbp+var_118] mov [rbp+var_130], rax mov rax, [rbp+var_130] mov [rbp+var_4D], al mov rax, [rbp+var_130] shr rax, 8 mov [rbp+var_4E], al mov rax, [rbp+var_130] shr rax, 10h mov [rbp+var_4F], al mov rax, [rbp+var_130] shr rax, 18h mov [rbp+var_50], al loc_3D0CF: mov rax, [rbp+var_C8] mov rax, [rax] mov rax, [rax+6E8h] mov rdi, [rbp+var_C8] lea rsi, [rbp+var_60] mov rcx, [rbp+var_D0] mov edx, 14h mov r8d, 4 call rax cmp rax, 0 jz short loc_3D113 jmp short $+2 loc_3D107: mov [rbp+var_B9], 1 jmp loc_3D1C2 loc_3D113: mov rcx, [rbp+var_D0] mov rax, [rbp+var_C8] mov rax, [rax] mov [rax+0C8h], rcx mov rax, [rbp+var_C8] mov rax, [rax+20h] mov rcx, [rax+8] add rcx, 1 mov [rax+8], rcx mov eax, [rbp+var_D8] mov ecx, eax mov rax, [rbp+var_C8] mov rax, [rax+20h] add rcx, [rax+10h] mov [rax+10h], rcx mov rax, [rbp+var_20] mov [rbp+var_D0], rax movsx eax, [rbp+var_E1] cmp eax, 0 jz short loc_3D199 mov rdi, [rbp+var_C8] lea rsi, [rbp+var_B8] call unlink_deleted_block movsx eax, al cmp eax, 0 jz short loc_3D199 mov [rbp+var_E0], 1 loc_3D199: jmp short $+2 loc_3D19B: mov eax, [rbp+var_DC] and eax, 2 cmp eax, 0 setnz al xor al, 0FFh test al, 1 jnz loc_3CE32 jmp short $+2 loc_3D1B6: mov eax, [rbp+var_E0] mov [rbp+var_B9], al loc_3D1C2: mov al, [rbp+var_B9] mov [rbp+var_131], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3D1EF mov al, [rbp+var_131] add rsp, 140h pop rbp retn loc_3D1EF: call ___stack_chk_fail
char delete_dynamic_record(unsigned int *a1, long long a2, int a3) { long long v3; // rdx long long v4; // rcx long long v5; // r8 int v6; // r9d long long v8; // [rsp+48h] [rbp-F8h] char v9; // [rsp+5Fh] [rbp-E1h] char v10; // [rsp+60h] [rbp-E0h] char block_info; // [rsp+64h] [rbp-DCh] unsigned int v12; // [rsp+68h] [rbp-D8h] long long v14; // [rsp+70h] [rbp-D0h] _BYTE v16[40]; // [rsp+88h] [rbp-B8h] BYREF long long v17; // [rsp+B0h] [rbp-90h] int v18; // [rsp+D8h] [rbp-68h] _BYTE v19[12]; // [rsp+E0h] [rbp-60h] BYREF _BYTE v20[28]; // [rsp+ECh] [rbp-54h] BYREF long long v21; // [rsp+108h] [rbp-38h] long long v22; // [rsp+118h] [rbp-28h] long long v23; // [rsp+120h] [rbp-20h] int v24; // [rsp+130h] [rbp-10h] unsigned long long v25; // [rsp+138h] [rbp-8h] v25 = __readfsqword(0x28u); v14 = a2; v10 = update_backward_delete_link(a1, *(_QWORD *)(*(_QWORD *)a1 + 200LL), a2); v24 = a3; do { block_info = ma_get_block_info(a1, v19, a1[288], v14); if ( (block_info & 0x3C) != 0 || (v12 = v21 + v22 - v14, v12 < 0x14) ) { ma_set_fatal_error(a1, 127, v3, v4, v5, v6); return 1; } v18 = 0; v9 = 0; if ( (ma_get_block_info(a1, v16, a1[288], v12 + v14) & 4) != 0 && (unsigned long long)v12 + v17 < 0xFFFFFC ) { v9 = 1; v12 += v17; } v19[0] = 0; v19[2] = BYTE1(v12); v19[3] = v12; v19[1] = BYTE2(v12); v8 = *(_QWORD *)(*(_QWORD *)a1 + 200LL); v19[6] = BYTE5(v8); v19[7] = BYTE4(v8); v19[4] = HIBYTE(v8); v19[5] = BYTE6(v8); v19[10] = BYTE1(v8); v19[11] = v8; v19[8] = BYTE3(v8); v19[9] = BYTE2(v8); if ( (block_info & 2) != 0 ) { memset(v20, 255LL, 8LL); } else { v20[2] = BYTE5(v23); v20[3] = BYTE4(v23); v20[0] = HIBYTE(v23); v20[1] = BYTE6(v23); v20[6] = BYTE1(v23); v20[7] = v23; v20[4] = BYTE3(v23); v20[5] = BYTE2(v23); } if ( (*(long long ( **)(unsigned int *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 1768LL))( a1, v19, 20LL, v14, 4LL) ) { return 1; } *(_QWORD *)(*(_QWORD *)a1 + 200LL) = v14; ++*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL); *(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) += v12; v14 = v23; if ( v9 && (unsigned __int8)unlink_deleted_block(a1, v16) ) v10 = 1; } while ( (block_info & 2) == 0 ); return v10; }
delete_dynamic_record: PUSH RBP MOV RBP,RSP SUB RSP,0x140 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0xc8],RDI MOV qword ptr [RBP + -0xd0],RSI MOV dword ptr [RBP + -0xd4],EDX MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0xc8] MOV RDX,qword ptr [RBP + -0xd0] CALL 0x0013eeb0 MOVSX EAX,AL MOV dword ptr [RBP + -0xe0],EAX MOV EAX,dword ptr [RBP + -0xd4] MOV dword ptr [RBP + -0x10],EAX LAB_0013ce32: MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0xc8] MOV EDX,dword ptr [RAX + 0x480] MOV RCX,qword ptr [RBP + -0xd0] LEA RSI,[RBP + -0x60] CALL 0x0013e0b0 MOV dword ptr [RBP + -0xdc],EAX AND EAX,0x3c CMP EAX,0x0 JNZ 0x0013ce80 MOV RAX,qword ptr [RBP + -0x28] SUB RAX,qword ptr [RBP + -0xd0] MOV EAX,EAX ADD RAX,qword ptr [RBP + -0x38] MOV dword ptr [RBP + -0xd8],EAX CMP EAX,0x14 JNC 0x0013ce9d LAB_0013ce80: MOV RDI,qword ptr [RBP + -0xc8] MOV ESI,0x7f CALL 0x00133880 MOV byte ptr [RBP + -0xb9],0x1 JMP 0x0013d1c2 LAB_0013ce9d: MOV dword ptr [RBP + -0x68],0x0 MOV byte ptr [RBP + -0xe1],0x0 MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0xc8] MOV EDX,dword ptr [RAX + 0x480] MOV RCX,qword ptr [RBP + -0xd0] MOV EAX,dword ptr [RBP + -0xd8] ADD RCX,RAX LEA RSI,[RBP + -0xb8] CALL 0x0013e0b0 AND EAX,0x4 CMP EAX,0x0 JZ 0x0013cf18 MOV RAX,qword ptr [RBP + -0x90] MOV ECX,dword ptr [RBP + -0xd8] ADD RAX,RCX CMP RAX,0xfffffc JNC 0x0013cf18 MOV byte ptr [RBP + -0xe1],0x1 MOV RCX,qword ptr [RBP + -0x90] MOV EAX,dword ptr [RBP + -0xd8] ADD RAX,RCX MOV dword ptr [RBP + -0xd8],EAX LAB_0013cf18: MOV byte ptr [RBP + -0x60],0x0 MOV EAX,dword ptr [RBP + -0xd8] MOV qword ptr [RBP + -0xf0],RAX MOV RAX,qword ptr [RBP + -0xf0] MOV byte ptr [RBP + -0x5d],AL MOV RAX,qword ptr [RBP + -0xf0] SHR RAX,0x8 MOV byte ptr [RBP + -0x5e],AL MOV RAX,qword ptr [RBP + -0xf0] SHR RAX,0x10 MOV byte ptr [RBP + -0x5f],AL MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0xc8] MOV qword ptr [RBP + -0xf8],RAX MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0xc8] SHR RAX,0x20 MOV qword ptr [RBP + -0x100],RAX MOV RAX,qword ptr [RBP + -0x100] MOV qword ptr [RBP + -0x108],RAX MOV RAX,qword ptr [RBP + -0x108] MOV byte ptr [RBP + -0x59],AL MOV RAX,qword ptr [RBP + -0x108] SHR RAX,0x8 MOV byte ptr [RBP + -0x5a],AL MOV RAX,qword ptr [RBP + -0x108] SHR RAX,0x10 MOV byte ptr [RBP + -0x5b],AL MOV RAX,qword ptr [RBP + -0x108] SHR RAX,0x18 MOV byte ptr [RBP + -0x5c],AL MOV RAX,qword ptr [RBP + -0xf8] MOV qword ptr [RBP + -0x110],RAX MOV RAX,qword ptr [RBP + -0x110] MOV byte ptr [RBP + -0x55],AL MOV RAX,qword ptr [RBP + -0x110] SHR RAX,0x8 MOV byte ptr [RBP + -0x56],AL MOV RAX,qword ptr [RBP + -0x110] SHR RAX,0x10 MOV byte ptr [RBP + -0x57],AL MOV RAX,qword ptr [RBP + -0x110] SHR RAX,0x18 MOV byte ptr [RBP + -0x58],AL MOV EAX,dword ptr [RBP + -0xdc] AND EAX,0x2 CMP EAX,0x0 JZ 0x0013d031 LEA RDI,[RBP + -0x60] ADD RDI,0xc MOV ESI,0xff MOV EDX,0x8 CALL 0x0012a2c0 JMP 0x0013d0cf LAB_0013d031: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x118],RAX MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x20 MOV qword ptr [RBP + -0x120],RAX MOV RAX,qword ptr [RBP + -0x120] MOV qword ptr [RBP + -0x128],RAX MOV RAX,qword ptr [RBP + -0x128] MOV byte ptr [RBP + -0x51],AL MOV RAX,qword ptr [RBP + -0x128] SHR RAX,0x8 MOV byte ptr [RBP + -0x52],AL MOV RAX,qword ptr [RBP + -0x128] SHR RAX,0x10 MOV byte ptr [RBP + -0x53],AL MOV RAX,qword ptr [RBP + -0x128] SHR RAX,0x18 MOV byte ptr [RBP + -0x54],AL MOV RAX,qword ptr [RBP + -0x118] MOV qword ptr [RBP + -0x130],RAX MOV RAX,qword ptr [RBP + -0x130] MOV byte ptr [RBP + -0x4d],AL MOV RAX,qword ptr [RBP + -0x130] SHR RAX,0x8 MOV byte ptr [RBP + -0x4e],AL MOV RAX,qword ptr [RBP + -0x130] SHR RAX,0x10 MOV byte ptr [RBP + -0x4f],AL MOV RAX,qword ptr [RBP + -0x130] SHR RAX,0x18 MOV byte ptr [RBP + -0x50],AL LAB_0013d0cf: MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x6e8] MOV RDI,qword ptr [RBP + -0xc8] LEA RSI,[RBP + -0x60] MOV RCX,qword ptr [RBP + -0xd0] MOV EDX,0x14 MOV R8D,0x4 CALL RAX CMP RAX,0x0 JZ 0x0013d113 JMP 0x0013d107 LAB_0013d107: MOV byte ptr [RBP + -0xb9],0x1 JMP 0x0013d1c2 LAB_0013d113: MOV RCX,qword ptr [RBP + -0xd0] MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0xc8],RCX MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX + 0x8] ADD RCX,0x1 MOV qword ptr [RAX + 0x8],RCX MOV EAX,dword ptr [RBP + -0xd8] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX + 0x20] ADD RCX,qword ptr [RAX + 0x10] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0xd0],RAX MOVSX EAX,byte ptr [RBP + -0xe1] CMP EAX,0x0 JZ 0x0013d199 MOV RDI,qword ptr [RBP + -0xc8] LEA RSI,[RBP + -0xb8] CALL 0x0013eae0 MOVSX EAX,AL CMP EAX,0x0 JZ 0x0013d199 MOV dword ptr [RBP + -0xe0],0x1 LAB_0013d199: JMP 0x0013d19b LAB_0013d19b: MOV EAX,dword ptr [RBP + -0xdc] AND EAX,0x2 CMP EAX,0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x0013ce32 JMP 0x0013d1b6 LAB_0013d1b6: MOV EAX,dword ptr [RBP + -0xe0] MOV byte ptr [RBP + -0xb9],AL LAB_0013d1c2: MOV AL,byte ptr [RBP + -0xb9] MOV byte ptr [RBP + -0x131],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013d1ef MOV AL,byte ptr [RBP + -0x131] ADD RSP,0x140 POP RBP RET LAB_0013d1ef: CALL 0x0012a270
int8 delete_dynamic_record(long *param_1,long param_2,int4 param_3) { int8 uVar1; int8 uVar2; bool bVar3; char cVar4; uint uVar5; uint uVar6; long lVar7; long in_FS_OFFSET; uint local_e0; long local_d8; int1 local_c1; int1 local_c0 [40]; long local_98; int4 local_70; int1 local_68; int1 local_67; int1 local_66; int1 local_65; int1 local_64; int1 local_63; int1 local_62; int1 local_61; int1 local_60; int1 local_5f; int1 local_5e; int1 local_5d; int1 local_5c; int1 local_5b; int1 local_5a; int1 local_59; int1 local_58; int1 local_57; int1 local_56; int1 local_55; int8 local_40; int8 local_30; long local_28; int4 local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_c1 = update_backward_delete_link(param_1,*(int8 *)(*param_1 + 200),param_2); local_d8 = param_2; local_18 = param_3; do { uVar5 = _ma_get_block_info(param_1,&local_68,(int)param_1[0x90],local_d8); if (((uVar5 & 0x3c) != 0) || (local_e0 = ((int)local_30 - (int)local_d8) + (int)local_40, local_e0 < 0x14)) { _ma_set_fatal_error(param_1,0x7f); local_c1 = 1; break; } local_70 = 0; bVar3 = false; uVar6 = _ma_get_block_info(param_1,local_c0,(int)param_1[0x90],local_d8 + (ulong)local_e0); if (((uVar6 & 4) != 0) && (local_98 + (ulong)local_e0 < 0xfffffc)) { bVar3 = true; local_e0 = local_e0 + (int)local_98; } local_68 = 0; local_65 = (int1)local_e0; local_66 = (int1)(local_e0 >> 8); local_67 = (int1)(local_e0 >> 0x10); uVar1 = *(int8 *)(*param_1 + 200); uVar2 = *(int8 *)(*param_1 + 200); local_61 = (int1)((ulong)uVar2 >> 0x20); local_62 = (int1)((ulong)uVar2 >> 0x28); local_63 = (int1)((ulong)uVar2 >> 0x30); local_64 = (int1)((ulong)uVar2 >> 0x38); local_5d = (int1)uVar1; local_5e = (int1)((ulong)uVar1 >> 8); local_5f = (int1)((ulong)uVar1 >> 0x10); local_60 = (int1)((ulong)uVar1 >> 0x18); if ((uVar5 & 2) == 0) { local_59 = (int1)((ulong)local_28 >> 0x20); local_5a = (int1)((ulong)local_28 >> 0x28); local_5b = (int1)((ulong)local_28 >> 0x30); local_5c = (int1)((ulong)local_28 >> 0x38); local_55 = (int1)local_28; local_56 = (int1)((ulong)local_28 >> 8); local_57 = (int1)((ulong)local_28 >> 0x10); local_58 = (int1)((ulong)local_28 >> 0x18); } else { memset(&local_5c,0xff,8); } lVar7 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_68,0x14,local_d8,4); if (lVar7 != 0) { local_c1 = 1; break; } *(long *)(*param_1 + 200) = local_d8; *(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + 1; *(ulong *)(param_1[4] + 0x10) = (ulong)local_e0 + *(long *)(param_1[4] + 0x10); local_d8 = local_28; if ((bVar3) && (cVar4 = unlink_deleted_block(param_1,local_c0), cVar4 != '\0')) { local_c1 = 1; } } while ((uVar5 & 2) == 0); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_c1); }
33,315
evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)88>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&)
corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/baseline_execution.cpp
inline evmc_status_code check_requirements(const CostTable& cost_table, int64_t& gas_left, const uint256* stack_top, const uint256* stack_bottom) noexcept { static_assert( !instr::has_const_gas_cost(Op) || instr::gas_costs[EVMC_FRONTIER][Op] != instr::undefined, "undefined instructions must not be handled by check_requirements()"); auto gas_cost = instr::gas_costs[EVMC_FRONTIER][Op]; // Init assuming const cost. if constexpr (!instr::has_const_gas_cost(Op)) { gas_cost = cost_table[Op]; // If not, load the cost from the table. // Negative cost marks an undefined instruction. // This check must be first to produce correct error code. if (INTX_UNLIKELY(gas_cost < 0)) return EVMC_UNDEFINED_INSTRUCTION; } // Check stack requirements first. This is order is not required, // but it is nicer because complete gas check may need to inspect operands. if constexpr (instr::traits[Op].stack_height_change > 0) { static_assert(instr::traits[Op].stack_height_change == 1, "unexpected instruction with multiple results"); if (INTX_UNLIKELY(stack_top == stack_bottom + StackSpace::limit)) return EVMC_STACK_OVERFLOW; } if constexpr (instr::traits[Op].stack_height_required > 0) { // Check stack underflow using pointer comparison <= (better optimization). static constexpr auto min_offset = instr::traits[Op].stack_height_required - 1; if (INTX_UNLIKELY(stack_top <= stack_bottom + min_offset)) return EVMC_STACK_UNDERFLOW; } if (INTX_UNLIKELY((gas_left -= gas_cost) < 0)) return EVMC_OUT_OF_GAS; return EVMC_SUCCESS; }
O2
cpp
evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)88>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&): movswq 0x1c0(%rdi), %rax testq %rax, %rax js 0x37f67 subq %rax, (%rcx) js 0x37f6b movzbl 0x2(%rsi), %eax movzbl 0x1(%rsi), %ecx shll $0x8, %ecx movswq %cx, %rcx orq %rax, %rcx leaq (%rsi,%rcx), %rax addq $0x3, %rax retq pushq $0x5 jmp 0x37f6d pushq $0x3 popq %rax movl %eax, 0x78(%r8) xorl %eax, %eax retq
_ZN6evmone8baseline12_GLOBAL__N_16invokeILNS_6OpcodeE224EEENS1_8PositionERKSt5arrayIsLm256EEPKN4intx4uintILj256EEES4_RlRNS_14ExecutionStateE: movsx rax, word ptr [rdi+1C0h] test rax, rax js short loc_37F67 sub [rcx], rax js short loc_37F6B movzx eax, byte ptr [rsi+2] movzx ecx, byte ptr [rsi+1] shl ecx, 8 movsx rcx, cx or rcx, rax lea rax, [rsi+rcx] add rax, 3 retn loc_37F67: push 5 jmp short loc_37F6D loc_37F6B: push 3 loc_37F6D: pop rax mov [r8+78h], eax xor eax, eax retn
unsigned long long evmone::baseline::`anonymous namespace'::invoke<(evmone::Opcode)224>( long long a1, long long a2, long long a3, _QWORD *a4, long long a5) { long long v5; // rax bool v6; // sf int v8; // [rsp-8h] [rbp-8h] v5 = *(__int16 *)(a1 + 448); if ( v5 < 0 ) { v8 = 5; } else { v6 = *a4 - v5 < 0; *a4 -= v5; if ( !v6 ) return a2 + (*(unsigned __int8 *)(a2 + 2) | (unsigned long long)(__int16)(*(unsigned __int8 *)(a2 + 1) << 8)) + 3; v8 = 3; } *(_DWORD *)(a5 + 120) = v8; return 0LL; }
invoke<(evmone::Opcode)224>: MOVSX RAX,word ptr [RDI + 0x1c0] TEST RAX,RAX JS 0x00137f67 SUB qword ptr [RCX],RAX JS 0x00137f6b MOVZX EAX,byte ptr [RSI + 0x2] MOVZX ECX,byte ptr [RSI + 0x1] SHL ECX,0x8 MOVSX RCX,CX OR RCX,RAX LEA RAX,[RSI + RCX*0x1] ADD RAX,0x3 RET LAB_00137f67: PUSH 0x5 JMP 0x00137f6d LAB_00137f6b: PUSH 0x3 LAB_00137f6d: POP RAX MOV dword ptr [R8 + 0x78],EAX XOR EAX,EAX RET
/* evmone::baseline::(anonymous namespace)::Position evmone::baseline::(anonymous namespace)::invoke<(evmone::Opcode)224>(std::array<short, 256ul> const&, intx::uint<256u> const*, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&) */ long evmone::baseline::(anonymous_namespace)::invoke<(evmone::Opcode)224> (long param_1,long param_2,int8 param_3,long *param_4,long param_5) { int4 uVar1; if ((long)*(short *)(param_1 + 0x1c0) < 0) { uVar1 = 5; } else { *param_4 = *param_4 - (long)*(short *)(param_1 + 0x1c0); if (-1 < *param_4) { return param_2 + ((long)(short)((ushort)*(byte *)(param_2 + 1) << 8) | (ulong)*(byte *)(param_2 + 2)) + 3; } uVar1 = 3; } *(int4 *)(param_5 + 0x78) = uVar1; return 0; }
33,316
ma_log_change
eloqsql/storage/maria/ma_write.c
my_bool _ma_log_change(MARIA_PAGE *ma_page, const uchar *key_pos, uint length, enum en_key_debug debug_marker __attribute__((unused))) { LSN lsn; uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 2 + 6 + 7], *log_pos; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 4]; uint offset= (uint) (key_pos - ma_page->buff), translog_parts; MARIA_HA *info= ma_page->info; my_off_t page= ma_page->pos / info->s->block_size; DBUG_ENTER("_ma_log_change"); DBUG_PRINT("enter", ("page: %lu length: %u", (ulong) page, length)); DBUG_ASSERT(info->s->now_transactional); DBUG_ASSERT(offset + length <= ma_page->size); DBUG_ASSERT(ma_page->org_size == ma_page->size); /* Store address of new root page */ page= ma_page->pos / info->s->block_size; page_store(log_data + FILEID_STORE_SIZE, page); log_pos= log_data+ FILEID_STORE_SIZE + PAGE_STORE_SIZE; #ifdef EXTRA_DEBUG_KEY_CHANGES (*log_pos++)= KEY_OP_DEBUG; (*log_pos++)= debug_marker; #endif log_pos[0]= KEY_OP_OFFSET; int2store(log_pos+1, offset); log_pos[3]= KEY_OP_CHANGE; int2store(log_pos+4, length); log_pos+= 6; log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (log_pos - log_data); log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key_pos; log_array[TRANSLOG_INTERNAL_PARTS + 1].length= length; translog_parts= 2; _ma_log_key_changes(ma_page, log_array + TRANSLOG_INTERNAL_PARTS + translog_parts, log_pos, &length, &translog_parts); if (translog_write_record(&lsn, LOGREC_REDO_INDEX, info->trn, info, (translog_size_t) (log_pos - log_data) + length, TRANSLOG_INTERNAL_PARTS + translog_parts, log_array, log_data, NULL)) DBUG_RETURN(1); DBUG_RETURN(0); }
O0
c
ma_log_change: pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x30(%rbp) movq %rsi, -0x38(%rbp) movl %edx, -0x3c(%rbp) movl %ecx, -0x40(%rbp) movq -0x38(%rbp), %rax movq -0x30(%rbp), %rcx movq 0x10(%rcx), %rcx subq %rcx, %rax movl %eax, -0xb4(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0xc0(%rbp) movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq -0xc0(%rbp), %rcx movq (%rcx), %rcx movl 0x7bc(%rcx), %ecx xorl %edx, %edx divq %rcx movq %rax, -0xc8(%rbp) jmp 0x69a2f jmp 0x69a31 jmp 0x69a33 jmp 0x69a35 jmp 0x69a37 jmp 0x69a39 jmp 0x69a3b movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq -0xc0(%rbp), %rcx movq (%rcx), %rcx movl 0x7bc(%rcx), %ecx xorl %edx, %edx divq %rcx movq %rax, -0xc8(%rbp) leaq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0xd0(%rbp) movq -0xc8(%rbp), %rax movl %eax, %ecx movq -0xd0(%rbp), %rax movl %ecx, (%rax) movq -0xc8(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0xd0(%rbp), %rax movb %cl, 0x4(%rax) leaq -0x20(%rbp), %rax addq $0x2, %rax addq $0x5, %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movb $0x1, (%rax) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0xd8(%rbp) movl -0xb4(%rbp), %eax movw %ax, %cx movq -0xd8(%rbp), %rax movw %cx, (%rax) movq -0x50(%rbp), %rax movb $0x3, 0x3(%rax) movq -0x50(%rbp), %rax addq $0x4, %rax movq %rax, -0xe0(%rbp) movl -0x3c(%rbp), %eax movw %ax, %cx movq -0xe0(%rbp), %rax movw %cx, (%rax) movq -0x50(%rbp), %rax addq $0x6, %rax movq %rax, -0x50(%rbp) leaq -0x20(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x50(%rbp), %rax leaq -0x20(%rbp), %rcx subq %rcx, %rax movq %rax, -0x88(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x80(%rbp) movl -0x3c(%rbp), %eax movq %rax, -0x78(%rbp) movl $0x2, -0xb8(%rbp) movq -0xc0(%rbp), %rax movq 0x8(%rax), %rdx movq -0xc0(%rbp), %rcx movq -0x50(%rbp), %rax leaq -0x20(%rbp), %rsi subq %rsi, %rax movl %eax, %r8d addl -0x3c(%rbp), %r8d movl -0xb8(%rbp), %r9d addl $0x2, %r9d leaq -0xb0(%rbp), %r10 leaq -0x20(%rbp), %rax leaq -0x48(%rbp), %rdi movl $0xc, %esi xorl %r11d, %r11d movq %r10, (%rsp) movq %rax, 0x8(%rsp) movq $0x0, 0x10(%rsp) callq 0x302c0 cmpb $0x0, %al je 0x69ba2 jmp 0x69b9c movb $0x1, -0x21(%rbp) jmp 0x69ba8 jmp 0x69ba4 movb $0x0, -0x21(%rbp) movb -0x21(%rbp), %al movb %al, -0xe1(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x69bd2 movb -0xe1(%rbp), %al addq $0x100, %rsp # imm = 0x100 popq %rbp retq callq 0x2a250 nopw (%rax,%rax)
_ma_log_change: push rbp mov rbp, rsp sub rsp, 100h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_30], rdi mov [rbp+var_38], rsi mov [rbp+var_3C], edx mov [rbp+var_40], ecx mov rax, [rbp+var_38] mov rcx, [rbp+var_30] mov rcx, [rcx+10h] sub rax, rcx mov [rbp+var_B4], eax mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_C0], rax mov rax, [rbp+var_30] mov rax, [rax+18h] mov rcx, [rbp+var_C0] mov rcx, [rcx] mov ecx, [rcx+7BCh] xor edx, edx div rcx mov [rbp+var_C8], rax jmp short $+2 loc_69A2F: jmp short $+2 loc_69A31: jmp short $+2 loc_69A33: jmp short $+2 loc_69A35: jmp short $+2 loc_69A37: jmp short $+2 loc_69A39: jmp short $+2 loc_69A3B: mov rax, [rbp+var_30] mov rax, [rax+18h] mov rcx, [rbp+var_C0] mov rcx, [rcx] mov ecx, [rcx+7BCh] xor edx, edx div rcx mov [rbp+var_C8], rax lea rax, [rbp+var_20] add rax, 2 mov [rbp+var_D0], rax mov rax, [rbp+var_C8] mov ecx, eax mov rax, [rbp+var_D0] mov [rax], ecx mov rax, [rbp+var_C8] shr rax, 20h mov cl, al mov rax, [rbp+var_D0] mov [rax+4], cl lea rax, [rbp+var_20] add rax, 2 add rax, 5 mov [rbp+var_50], rax mov rax, [rbp+var_50] mov byte ptr [rax], 1 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_D8], rax mov eax, [rbp+var_B4] mov cx, ax mov rax, [rbp+var_D8] mov [rax], cx mov rax, [rbp+var_50] mov byte ptr [rax+3], 3 mov rax, [rbp+var_50] add rax, 4 mov [rbp+var_E0], rax mov eax, [rbp+var_3C] mov cx, ax mov rax, [rbp+var_E0] mov [rax], cx mov rax, [rbp+var_50] add rax, 6 mov [rbp+var_50], rax lea rax, [rbp+var_20] mov [rbp+var_90], rax mov rax, [rbp+var_50] lea rcx, [rbp+var_20] sub rax, rcx mov [rbp+var_88], rax mov rax, [rbp+var_38] mov [rbp+var_80], rax mov eax, [rbp+var_3C] mov [rbp+var_78], rax mov [rbp+var_B8], 2 mov rax, [rbp+var_C0] mov rdx, [rax+8] mov rcx, [rbp+var_C0] mov rax, [rbp+var_50] lea rsi, [rbp+var_20] sub rax, rsi mov r8d, eax add r8d, [rbp+var_3C] mov r9d, [rbp+var_B8] add r9d, 2 lea r10, [rbp+var_B0] lea rax, [rbp+var_20] lea rdi, [rbp+var_48] mov esi, 0Ch xor r11d, r11d mov [rsp+100h+var_100], r10 mov [rsp+100h+var_F8], rax mov [rsp+100h+var_F0], 0 call translog_write_record cmp al, 0 jz short loc_69BA2 jmp short $+2 loc_69B9C: mov [rbp+var_21], 1 jmp short loc_69BA8 loc_69BA2: jmp short $+2 loc_69BA4: mov [rbp+var_21], 0 loc_69BA8: mov al, [rbp+var_21] mov [rbp+var_E1], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_69BD2 mov al, [rbp+var_E1] add rsp, 100h pop rbp retn loc_69BD2: call ___stack_chk_fail
bool ma_log_change(long long **a1, long long a2, unsigned int a3, int a4) { unsigned long long v5; // [rsp+38h] [rbp-C8h] long long *v6; // [rsp+40h] [rbp-C0h] __int16 v7; // [rsp+4Ch] [rbp-B4h] _QWORD v8[13]; // [rsp+50h] [rbp-B0h] BYREF _BYTE v9[8]; // [rsp+B8h] [rbp-48h] BYREF int v10; // [rsp+C0h] [rbp-40h] unsigned int v11; // [rsp+C4h] [rbp-3Ch] long long v12; // [rsp+C8h] [rbp-38h] long long **v13; // [rsp+D0h] [rbp-30h] __int16 v14; // [rsp+E0h] [rbp-20h] BYREF int v15; // [rsp+E2h] [rbp-1Eh] char v16; // [rsp+E6h] [rbp-1Ah] char v17; // [rsp+E7h] [rbp-19h] __int16 v18; // [rsp+E8h] [rbp-18h] char v19; // [rsp+EAh] [rbp-16h] __int16 v20; // [rsp+EBh] [rbp-15h] _BYTE v21[19]; // [rsp+EDh] [rbp-13h] BYREF long long savedregs; // [rsp+100h] [rbp+0h] BYREF *(_QWORD *)&v21[11] = __readfsqword(0x28u); v13 = a1; v12 = a2; v11 = a3; v10 = a4; v7 = a2 - (unsigned __int16)a1[2]; v6 = *a1; v5 = (unsigned long long)a1[3] / *(unsigned int *)(**a1 + 1980); v15 = v5; v16 = BYTE4(v5); v17 = 1; v18 = v7; v19 = 3; v20 = a3; v8[12] = v21; v8[4] = &v14; v8[5] = 13LL; v8[6] = a2; v8[7] = a3; return translog_write_record( (long long)v9, 0xCu, v6[1], v6, a3 + (unsigned int)v21 - ((unsigned int)&savedregs - 32), 4u, v8, &v14, 0LL) != 0; }
_ma_log_change: PUSH RBP MOV RBP,RSP SUB RSP,0x100 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x30],RDI MOV qword ptr [RBP + -0x38],RSI MOV dword ptr [RBP + -0x3c],EDX MOV dword ptr [RBP + -0x40],ECX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RCX + 0x10] SUB RAX,RCX MOV dword ptr [RBP + -0xb4],EAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xc0],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0xc0] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x7bc] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0xc8],RAX JMP 0x00169a2f LAB_00169a2f: JMP 0x00169a31 LAB_00169a31: JMP 0x00169a33 LAB_00169a33: JMP 0x00169a35 LAB_00169a35: JMP 0x00169a37 LAB_00169a37: JMP 0x00169a39 LAB_00169a39: JMP 0x00169a3b LAB_00169a3b: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0xc0] MOV RCX,qword ptr [RCX] MOV ECX,dword ptr [RCX + 0x7bc] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0xc8],RAX LEA RAX,[RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0xd0],RAX MOV RAX,qword ptr [RBP + -0xc8] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xd0] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0xc8] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0xd0] MOV byte ptr [RAX + 0x4],CL LEA RAX,[RBP + -0x20] ADD RAX,0x2 ADD RAX,0x5 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV byte ptr [RAX],0x1 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0xd8],RAX MOV EAX,dword ptr [RBP + -0xb4] MOV CX,AX MOV RAX,qword ptr [RBP + -0xd8] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x50] MOV byte ptr [RAX + 0x3],0x3 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x4 MOV qword ptr [RBP + -0xe0],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV CX,AX MOV RAX,qword ptr [RBP + -0xe0] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x6 MOV qword ptr [RBP + -0x50],RAX LEA RAX,[RBP + -0x20] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x50] LEA RCX,[RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x80],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV qword ptr [RBP + -0x78],RAX MOV dword ptr [RBP + -0xb8],0x2 MOV RAX,qword ptr [RBP + -0xc0] MOV RDX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0xc0] MOV RAX,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x20] SUB RAX,RSI MOV R8D,EAX ADD R8D,dword ptr [RBP + -0x3c] MOV R9D,dword ptr [RBP + -0xb8] ADD R9D,0x2 LEA R10,[RBP + -0xb0] LEA RAX,[RBP + -0x20] LEA RDI,[RBP + -0x48] MOV ESI,0xc XOR R11D,R11D MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],0x0 CALL 0x001302c0 CMP AL,0x0 JZ 0x00169ba2 JMP 0x00169b9c LAB_00169b9c: MOV byte ptr [RBP + -0x21],0x1 JMP 0x00169ba8 LAB_00169ba2: JMP 0x00169ba4 LAB_00169ba4: MOV byte ptr [RBP + -0x21],0x0 LAB_00169ba8: MOV AL,byte ptr [RBP + -0x21] MOV byte ptr [RBP + -0xe1],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00169bd2 MOV AL,byte ptr [RBP + -0xe1] ADD RSP,0x100 POP RBP RET LAB_00169bd2: CALL 0x0012a250
int8 _ma_log_change(long *param_1,int8 param_2,uint param_3,int4 param_4) { long *plVar1; char cVar2; ulong uVar3; long in_FS_OFFSET; int1 local_b8 [32]; int1 *local_98; long local_90; int8 local_88; ulong local_80; int1 *local_58; int1 local_50 [8]; int4 local_48; uint local_44; int8 local_40; long *local_38; int1 local_29; int1 local_28 [2]; int4 local_26; int1 local_22; int1 local_21; short local_20; int1 local_1e; int2 local_1d; int1 auStack_1b [11]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_20 = (short)param_2 - (short)param_1[2]; plVar1 = (long *)*param_1; uVar3 = (ulong)param_1[3] / (ulong)*(uint *)(*plVar1 + 0x7bc); local_26 = (int4)uVar3; local_22 = (int1)(uVar3 >> 0x20); local_21 = 1; local_1e = 3; local_1d = (int2)param_3; local_58 = auStack_1b; local_98 = local_28; local_90 = (long)local_58 - (long)local_28; local_80 = (ulong)param_3; local_88 = param_2; local_48 = param_4; local_44 = param_3; local_40 = param_2; local_38 = param_1; cVar2 = translog_write_record (local_50,0xc,plVar1[1],plVar1,((int)local_58 - (int)local_28) + param_3,4, local_b8,local_28,0); local_29 = cVar2 != '\0'; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_29); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
33,317
ac_psr_consume
alca/libalca/parser.c
ac_token *ac_psr_consume(ac_parser *parser, ac_token_type token_type, ac_error code, const char *message) { ac_token *token = NULL; if (ac_psr_check(parser, token_type)) token = ac_psr_advance(parser); else ac_psr_set_error(parser, ac_psr_current_token(parser), code, message); return token; }
O0
c
ac_psr_consume: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq $0x0, -0x20(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi callq 0x75f0 cmpl $0x0, %eax je 0x9b5e movq -0x8(%rbp), %rdi callq 0x7d20 movq %rax, -0x20(%rbp) jmp 0x9b82 movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rdi callq 0x7cc0 movq -0x28(%rbp), %rdi movq %rax, %rsi movl -0x10(%rbp), %edx movq -0x18(%rbp), %rcx callq 0x72e0 movq -0x20(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax)
ac_psr_consume: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_18], rcx mov [rbp+var_20], 0 mov rdi, [rbp+var_8] mov esi, [rbp+var_C] call _ac_psr_check cmp eax, 0 jz short loc_9B5E mov rdi, [rbp+var_8] call _ac_psr_advance mov [rbp+var_20], rax jmp short loc_9B82 loc_9B5E: mov rax, [rbp+var_8] mov [rbp+var_28], rax mov rdi, [rbp+var_8] call _ac_psr_current_token mov rdi, [rbp+var_28] mov rsi, rax mov edx, [rbp+var_10] mov rcx, [rbp+var_18] call _ac_psr_set_error loc_9B82: mov rax, [rbp+var_20] add rsp, 30h pop rbp retn
long long ac_psr_consume(const char **a1, int a2, int a3, const char *a4) { long long v4; // rax long long v6; // [rsp+10h] [rbp-20h] v6 = 0LL; if ( ac_psr_check((long long)a1, a2) ) return ac_psr_advance((long long)a1); v4 = ac_psr_current_token((long long)a1); ac_psr_set_error(a1, v4, a3, a4); return v6; }
ac_psr_consume: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV qword ptr [RBP + -0x18],RCX MOV qword ptr [RBP + -0x20],0x0 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] CALL 0x001075f0 CMP EAX,0x0 JZ 0x00109b5e MOV RDI,qword ptr [RBP + -0x8] CALL 0x00107d20 MOV qword ptr [RBP + -0x20],RAX JMP 0x00109b82 LAB_00109b5e: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00107cc0 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,RAX MOV EDX,dword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] CALL 0x001072e0 LAB_00109b82: MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x30 POP RBP RET
int8 ac_psr_consume(int8 param_1,int4 param_2,int4 param_3,int8 param_4) { int iVar1; int8 uVar2; int8 local_28; local_28 = 0; iVar1 = ac_psr_check(param_1,param_2); if (iVar1 == 0) { uVar2 = ac_psr_current_token(param_1); ac_psr_set_error(param_1,uVar2,param_3,param_4); } else { local_28 = ac_psr_advance(param_1); } return local_28; }
33,318
free_size_to_tail_pattern
eloqsql/storage/maria/ma_bitmap.c
static uint free_size_to_tail_pattern(MARIA_FILE_BITMAP *bitmap, uint size) { if (size >= bitmap->sizes[0]) return 0; /* Revert to empty page */ if (size < bitmap->sizes[6]) return 7; if (size < bitmap->sizes[5]) return 6; return 5; }
O0
c
free_size_to_tail_pattern: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x108(%rcx), %eax jb 0x649a3 movl $0x0, -0x4(%rbp) jmp 0x649da movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x120(%rcx), %eax jae 0x649bb movl $0x7, -0x4(%rbp) jmp 0x649da movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x11c(%rcx), %eax jae 0x649d3 movl $0x6, -0x4(%rbp) jmp 0x649da movl $0x5, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
free_size_to_tail_pattern: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+108h] jb short loc_649A3 mov [rbp+var_4], 0 jmp short loc_649DA loc_649A3: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+120h] jnb short loc_649BB mov [rbp+var_4], 7 jmp short loc_649DA loc_649BB: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+11Ch] jnb short loc_649D3 mov [rbp+var_4], 6 jmp short loc_649DA loc_649D3: mov [rbp+var_4], 5 loc_649DA: mov eax, [rbp+var_4] pop rbp retn
long long free_size_to_tail_pattern(_DWORD *a1, unsigned int a2) { if ( a2 < a1[66] ) { if ( a2 >= a1[72] ) { if ( a2 >= a1[71] ) return 5; else return 6; } else { return 7; } } else { return 0; } }
free_size_to_tail_pattern: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x108] JC 0x001649a3 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001649da LAB_001649a3: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x120] JNC 0x001649bb MOV dword ptr [RBP + -0x4],0x7 JMP 0x001649da LAB_001649bb: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x11c] JNC 0x001649d3 MOV dword ptr [RBP + -0x4],0x6 JMP 0x001649da LAB_001649d3: MOV dword ptr [RBP + -0x4],0x5 LAB_001649da: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 free_size_to_tail_pattern(long param_1,uint param_2) { int4 local_c; if (param_2 < *(uint *)(param_1 + 0x108)) { if (param_2 < *(uint *)(param_1 + 0x120)) { local_c = 7; } else if (param_2 < *(uint *)(param_1 + 0x11c)) { local_c = 6; } else { local_c = 5; } } else { local_c = 0; } return local_c; }
33,319
kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/arg.cpp
static ggml_type kv_cache_type_from_str(const std::string & s) { for (const auto & type : kv_cache_types) { if (ggml_type_name(type) == s) { return type; } } throw std::runtime_error("Unsupported cache type: " + s); }
O3
cpp
kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %r14 movq 0xdbb00(%rip), %rbx # 0x12cd68 movq 0xdbb01(%rip), %r15 # 0x12cd70 cmpq %r15, %rbx je 0x5129d movl (%rbx), %edi callq 0x1a830 movq %r14, %rdi movq %rax, %rsi callq 0x1a210 testl %eax, %eax je 0x51290 addq $0x4, %rbx jmp 0x5126f movl (%rbx), %eax addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1a430 movq %rax, %rbx leaq 0x9bced(%rip), %rsi # 0xecf9e leaq 0x8(%rsp), %rdi movq %r14, %rdx callq 0x54d11 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x1ae30 xorl %ebp, %ebp movq 0xdad19(%rip), %rsi # 0x12bff0 movq 0xdac82(%rip), %rdx # 0x12bf60 movq %rbx, %rdi callq 0x1af20 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x51304 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 testb %bpl, %bpl jne 0x5130e jmp 0x51316 movq %rax, %r14 movq %rbx, %rdi callq 0x1a670 movq %r14, %rdi callq 0x1afb0
_ZL22kv_cache_type_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push rbx sub rsp, 28h mov r14, rdi mov rbx, cs:_ZL14kv_cache_types; kv_cache_types mov r15, cs:qword_12CD70 loc_5126F: cmp rbx, r15 jz short loc_5129D mov edi, [rbx] call _ggml_type_name mov rdi, r14 mov rsi, rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_51290 add rbx, 4 jmp short loc_5126F loc_51290: mov eax, [rbx] add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_5129D: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUnsupportedCac; "Unsupported cache type: " lea rdi, [rsp+48h+var_40] mov rdx, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov bpl, 1 lea rsi, [rsp+48h+var_40] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_51304 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_51304: test bpl, bpl jnz short loc_5130E jmp short loc_51316 mov r14, rax loc_5130E: mov rdi, rbx; void * call ___cxa_free_exception loc_51316: mov rdi, r14 call __Unwind_Resume
long long kv_cache_type_from_str(long long a1) { unsigned int *v1; // rbx long long v2; // r15 long long v3; // rax void *exception; // rbx _BYTE v6[16]; // [rsp+8h] [rbp-40h] BYREF v1 = (unsigned int *)kv_cache_types; v2 = qword_12CD70; while ( 1 ) { if ( v1 == (unsigned int *)v2 ) { exception = __cxa_allocate_exception(0x10uLL); std::operator+<char>(v6, "Unsupported cache type: ", a1); std::runtime_error::runtime_error(exception, v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v3 = ggml_type_name(*v1); if ( !(unsigned int)std::string::compare(a1, v3) ) break; ++v1; } return *v1; }
kv_cache_type_from_str: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV R14,RDI MOV RBX,qword ptr [0x0022cd68] MOV R15,qword ptr [0x0022cd70] LAB_0015126f: CMP RBX,R15 JZ 0x0015129d MOV EDI,dword ptr [RBX] CALL 0x0011a830 MOV RDI,R14 MOV RSI,RAX CALL 0x0011a210 TEST EAX,EAX JZ 0x00151290 ADD RBX,0x4 JMP 0x0015126f LAB_00151290: MOV EAX,dword ptr [RBX] ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_0015129d: MOV EDI,0x10 CALL 0x0011a430 MOV RBX,RAX LAB_001512aa: LEA RSI,[0x1ecf9e] LEA RDI,[RSP + 0x8] MOV RDX,R14 CALL 0x00154d11 MOV BPL,0x1 LAB_001512c1: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0011ae30 XOR EBP,EBP MOV RSI,qword ptr [0x0022bff0] MOV RDX,qword ptr [0x0022bf60] MOV RDI,RBX CALL 0x0011af20
/* kv_cache_type_from_str(std::__cxx11::string const&) */ int4 kv_cache_type_from_str(string *param_1) { int4 *puVar1; int iVar2; runtime_error *this; int4 *puVar3; string local_40 [32]; puVar1 = DAT_0022cd70; puVar3 = kv_cache_types; while( true ) { if (puVar3 == puVar1) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001512aa to 001512bd has its CatchHandler @ 0015130b */ std::operator+((char *)local_40,(string *)"Unsupported cache type: "); /* try { // try from 001512c1 to 001512e5 has its CatchHandler @ 001512e6 */ std::runtime_error::runtime_error(this,local_40); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60); } ggml_type_name(*puVar3); iVar2 = std::__cxx11::string::compare((char *)param_1); if (iVar2 == 0) break; puVar3 = puVar3 + 1; } return *puVar3; }
33,320
tcp_seg_acknowledge
xtate/src/stack/stack-tcp-core.c
static bool _tcp_seg_acknowledge(TCB *tcb, uint32_t ackno) { /* Normal: just discard repeats */ if (ackno == tcb->seqno_me) { return false; } /* Make sure this isn't a duplicate ACK from past * WRAPPING of 32-bit arithmetic happens here */ if (ackno - tcb->seqno_me > 100000) { ipaddress_formatted_t fmt = ipaddress_fmt(tcb->ip_them); LOG(LEVEL_DEBUG, "tcp.tcb: (%s %u) " "ackno from past: " "old ackno = 0x%08x, this ackno = 0x%08x\n", fmt.string, tcb->port_them, tcb->ackno_me, ackno); return false; } /* Make sure this isn't invalid ACK from the future * WRAPPING of 32-bit arithmetic happens here */ if (tcb->seqno_me - ackno < 100000) { ipaddress_formatted_t fmt = ipaddress_fmt(tcb->ip_them); LOG(LEVEL_DEBUG, "tcp.tcb: (%s %u) " "ackno from future: " "my seqno = 0x%08x, their ackno = 0x%08x\n", fmt.string, tcb->port_them, tcb->seqno_me, ackno); return false; } /* !Retire outstanding segments */ { unsigned length = ackno - tcb->seqno_me; while (tcb->segments && length >= tcb->segments->length) { TcpSegment *seg = tcb->segments; assert(seg->buf); tcb->segments = seg->next; tcb->seqno_me += seg->length; length -= seg->length; _LOGtcb(tcb, 1, "ACKed %u-bytes\n", seg->length); /* free the old segment */ if (seg->is_dynamic) { FREE(seg->buf); } FREE(seg); if (ackno == tcb->ackno_them) return true; /* good ACK */ } if (tcb->segments && length < tcb->segments->length) { TcpSegment *seg = tcb->segments; assert(seg->buf); tcb->seqno_me += length; _LOGtcb(tcb, 1, "ACKed %u-bytes\n", length); /* This segment needs to be reduced */ if (seg->is_dynamic) { size_t new_length = seg->length - length; unsigned char *buf = MALLOC(new_length); memcpy(buf, seg->buf + length, new_length); FREE(seg->buf); seg->buf = buf; seg->length = new_length; seg->is_dynamic = 1; } else { seg->buf += length; } } } /* Mark that this was a good ack */ return true; }
O3
c
tcp_seg_acknowledge: movl 0x34(%rdi), %eax movl %eax, %ecx subl %esi, %ecx je 0x419a3 pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movl %esi, %ebx movq %rdi, %r14 movl %esi, %ebp subl %eax, %ebp cmpl $0x186a1, %ebp # imm = 0x186A1 jb 0x4194e movq 0x28(%r14), %rax movq %rax, 0x10(%rsp) movups 0x18(%r14), %xmm0 movups %xmm0, (%rsp) leaq 0x20(%rsp), %r15 movq %r15, %rdi callq 0x44638 movzwl 0x32(%r14), %ecx movl 0x38(%r14), %r8d leaq 0x2fe9c(%rip), %rsi # 0x717e8 jmp 0x41985 cmpl $0x186a0, %ecx # imm = 0x186A0 jae 0x419a4 movq 0x28(%r14), %rax movq %rax, 0x10(%rsp) movups 0x18(%r14), %xmm0 movups %xmm0, (%rsp) leaq 0x20(%rsp), %r15 movq %r15, %rdi callq 0x44638 movzwl 0x32(%r14), %ecx movl 0x34(%r14), %r8d leaq 0x2feae(%rip), %rsi # 0x71833 movl $0x2, %edi movq %r15, %rdx movl %ebx, %r9d xorl %eax, %eax callq 0x536da addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq 0x48(%r14), %r15 testq %r15, %r15 je 0x41997 movl %ebp, %r12d movq 0x10(%r15), %rcx cmpq %r12, %rcx ja 0x419f1 movq (%r15), %rdx movq %rdx, 0x48(%r14) addl %ecx, %eax movl %eax, 0x34(%r14) subl 0x10(%r15), %ebp testb $0x1, 0x1c(%r15) je 0x419df movq 0x8(%r15), %rdi testq %rdi, %rdi je 0x419df callq 0x151e0 movq %r15, %rdi callq 0x151e0 movl 0x34(%r14), %eax cmpl %ebx, %eax jne 0x419a4 jmp 0x41997 addl %ebp, %eax movl %eax, 0x34(%r14) testb $0x1, 0x1c(%r15) jne 0x41a04 addq %r12, 0x8(%r15) jmp 0x41997 movq 0x10(%r15), %rbx subq %r12, %rbx movq %rbx, %rdi callq 0x50885 movq %rax, %r14 addq 0x8(%r15), %r12 movq %rax, %rdi movq %r12, %rsi movq %rbx, %rdx callq 0x150c0 movq 0x8(%r15), %rdi testq %rdi, %rdi je 0x41a3e callq 0x151e0 movq $0x0, 0x8(%r15) movq %r14, 0x8(%r15) movq %rbx, 0x10(%r15) orb $0x1, 0x1c(%r15) jmp 0x41997
_tcp_seg_acknowledge: mov eax, [rdi+34h] mov ecx, eax sub ecx, esi jz locret_419A3 push rbp push r15 push r14 push r12 push rbx sub rsp, 50h mov ebx, esi mov r14, rdi mov ebp, esi sub ebp, eax cmp ebp, 186A1h jb short loc_4194E mov rax, [r14+28h] mov [rsp+78h+var_68], rax movups xmm0, xmmword ptr [r14+18h] movups [rsp+78h+var_78], xmm0 lea r15, [rsp+78h+var_58] mov rdi, r15 call ipaddress_fmt movzx ecx, word ptr [r14+32h] mov r8d, [r14+38h] lea rsi, aTcpTcbSUAcknoF; "tcp.tcb: (%s %u) ackno from past: old a"... jmp short loc_41985 loc_4194E: cmp ecx, 186A0h jnb short loc_419A4 mov rax, [r14+28h] mov [rsp+78h+var_68], rax movups xmm0, xmmword ptr [r14+18h] movups [rsp+78h+var_78], xmm0 lea r15, [rsp+78h+var_58] mov rdi, r15 call ipaddress_fmt movzx ecx, word ptr [r14+32h] mov r8d, [r14+34h] lea rsi, aTcpTcbSUAcknoF_0; "tcp.tcb: (%s %u) ackno from future: my "... loc_41985: mov edi, 2 mov rdx, r15 mov r9d, ebx xor eax, eax call LOG loc_41997: add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp locret_419A3: retn loc_419A4: mov r15, [r14+48h] test r15, r15 jz short loc_41997 mov r12d, ebp mov rcx, [r15+10h] cmp rcx, r12 ja short loc_419F1 mov rdx, [r15] mov [r14+48h], rdx add eax, ecx mov [r14+34h], eax sub ebp, [r15+10h] test byte ptr [r15+1Ch], 1 jz short loc_419DF mov rdi, [r15+8] test rdi, rdi jz short loc_419DF call _free loc_419DF: mov rdi, r15 call _free mov eax, [r14+34h] cmp eax, ebx jnz short loc_419A4 jmp short loc_41997 loc_419F1: add eax, ebp mov [r14+34h], eax test byte ptr [r15+1Ch], 1 jnz short loc_41A04 add [r15+8], r12 jmp short loc_41997 loc_41A04: mov rbx, [r15+10h] sub rbx, r12 mov rdi, rbx call MALLOC mov r14, rax add r12, [r15+8] mov rdi, rax mov rsi, r12 mov rdx, rbx call _memcpy mov rdi, [r15+8] test rdi, rdi jz short loc_41A3E call _free mov qword ptr [r15+8], 0 loc_41A3E: mov [r15+8], r14 mov [r15+10h], rbx or byte ptr [r15+1Ch], 1 jmp loc_41997
long long tcp_seg_acknowledge(long long a1, int a2, int a3, long long a4, int a5, int a6) { long long result; // rax unsigned int v7; // ecx unsigned int v10; // ebp int v11; // ecx int v12; // r8d const char *v13; // rsi long long v14; // r15 unsigned long long v15; // rcx long long v16; // rdi long long v17; // rbx long long v18; // r14 long long v19; // rdi _BYTE v20[88]; // [rsp+20h] [rbp-58h] BYREF result = *(unsigned int *)(a1 + 52); v7 = *(_DWORD *)(a1 + 52) - a2; if ( v7 ) { v10 = a2 - result; if ( (unsigned int)(a2 - result) >= 0x186A1 ) { ipaddress_fmt( (unsigned int)v20, a2, a3, v7, a5, a6, *(_OWORD *)(a1 + 24), *(_QWORD *)(a1 + 32), *(_QWORD *)(a1 + 40)); v11 = *(unsigned __int16 *)(a1 + 50); v12 = *(_DWORD *)(a1 + 56); v13 = "tcp.tcb: (%s %u) ackno from past: old ackno = 0x%08x, this ackno = 0x%08x\n"; return LOG(2, (_DWORD)v13, (unsigned int)v20, v11, v12, a2); } if ( v7 < 0x186A0 ) { ipaddress_fmt( (unsigned int)v20, a2, a3, v7, a5, a6, *(_OWORD *)(a1 + 24), *(_QWORD *)(a1 + 32), *(_QWORD *)(a1 + 40)); v11 = *(unsigned __int16 *)(a1 + 50); v12 = *(_DWORD *)(a1 + 52); v13 = "tcp.tcb: (%s %u) ackno from future: my seqno = 0x%08x, their ackno = 0x%08x\n"; return LOG(2, (_DWORD)v13, (unsigned int)v20, v11, v12, a2); } do { v14 = *(_QWORD *)(a1 + 72); if ( !v14 ) break; v15 = *(_QWORD *)(v14 + 16); if ( v15 > v10 ) { result = v10 + (unsigned int)result; *(_DWORD *)(a1 + 52) = result; if ( (*(_BYTE *)(v14 + 28) & 1) != 0 ) { v17 = *(_QWORD *)(v14 + 16) - v10; v18 = MALLOC(v17); result = memcpy(v18, *(_QWORD *)(v14 + 8) + v10, v17); v19 = *(_QWORD *)(v14 + 8); if ( v19 ) { result = free(v19); *(_QWORD *)(v14 + 8) = 0LL; } *(_QWORD *)(v14 + 8) = v18; *(_QWORD *)(v14 + 16) = v17; *(_BYTE *)(v14 + 28) |= 1u; } else { *(_QWORD *)(v14 + 8) += v10; } return result; } *(_QWORD *)(a1 + 72) = *(_QWORD *)v14; *(_DWORD *)(a1 + 52) = v15 + result; v10 -= *(_DWORD *)(v14 + 16); if ( (*(_BYTE *)(v14 + 28) & 1) != 0 ) { v16 = *(_QWORD *)(v14 + 8); if ( v16 ) free(v16); } free(v14); result = *(unsigned int *)(a1 + 52); } while ( (_DWORD)result != a2 ); } return result; }
_tcp_seg_acknowledge: MOV EAX,dword ptr [RDI + 0x34] MOV ECX,EAX SUB ECX,ESI JZ 0x001419a3 PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV EBX,ESI MOV R14,RDI MOV EBP,ESI SUB EBP,EAX CMP EBP,0x186a1 JC 0x0014194e MOV RAX,qword ptr [R14 + 0x28] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [R14 + 0x18] MOVUPS xmmword ptr [RSP],XMM0 LEA R15,[RSP + 0x20] MOV RDI,R15 CALL 0x00144638 MOVZX ECX,word ptr [R14 + 0x32] MOV R8D,dword ptr [R14 + 0x38] LEA RSI,[0x1717e8] JMP 0x00141985 LAB_0014194e: CMP ECX,0x186a0 JNC 0x001419a4 MOV RAX,qword ptr [R14 + 0x28] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [R14 + 0x18] MOVUPS xmmword ptr [RSP],XMM0 LEA R15,[RSP + 0x20] MOV RDI,R15 CALL 0x00144638 MOVZX ECX,word ptr [R14 + 0x32] MOV R8D,dword ptr [R14 + 0x34] LEA RSI,[0x171833] LAB_00141985: MOV EDI,0x2 MOV RDX,R15 MOV R9D,EBX XOR EAX,EAX CALL 0x001536da LAB_00141997: ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP LAB_001419a3: RET LAB_001419a4: MOV R15,qword ptr [R14 + 0x48] TEST R15,R15 JZ 0x00141997 MOV R12D,EBP MOV RCX,qword ptr [R15 + 0x10] CMP RCX,R12 JA 0x001419f1 MOV RDX,qword ptr [R15] MOV qword ptr [R14 + 0x48],RDX ADD EAX,ECX MOV dword ptr [R14 + 0x34],EAX SUB EBP,dword ptr [R15 + 0x10] TEST byte ptr [R15 + 0x1c],0x1 JZ 0x001419df MOV RDI,qword ptr [R15 + 0x8] TEST RDI,RDI JZ 0x001419df CALL 0x001151e0 LAB_001419df: MOV RDI,R15 CALL 0x001151e0 MOV EAX,dword ptr [R14 + 0x34] CMP EAX,EBX JNZ 0x001419a4 JMP 0x00141997 LAB_001419f1: ADD EAX,EBP MOV dword ptr [R14 + 0x34],EAX TEST byte ptr [R15 + 0x1c],0x1 JNZ 0x00141a04 ADD qword ptr [R15 + 0x8],R12 JMP 0x00141997 LAB_00141a04: MOV RBX,qword ptr [R15 + 0x10] SUB RBX,R12 MOV RDI,RBX CALL 0x00150885 MOV R14,RAX ADD R12,qword ptr [R15 + 0x8] MOV RDI,RAX MOV RSI,R12 MOV RDX,RBX CALL 0x001150c0 MOV RDI,qword ptr [R15 + 0x8] TEST RDI,RDI JZ 0x00141a3e CALL 0x001151e0 MOV qword ptr [R15 + 0x8],0x0 LAB_00141a3e: MOV qword ptr [R15 + 0x8],R14 MOV qword ptr [R15 + 0x10],RBX OR byte ptr [R15 + 0x1c],0x1 JMP 0x00141997
void _tcp_seg_acknowledge(long param_1,int param_2) { int2 uVar1; int4 uVar2; int8 *__ptr; ulong uVar3; int iVar4; void *__dest; size_t __n; uint uVar5; char *pcVar6; ulong uVar7; int4 uVar8; int4 uVar9; int8 uVar10; int1 local_58 [48]; iVar4 = *(int *)(param_1 + 0x34); if (iVar4 != param_2) { uVar5 = param_2 - iVar4; if (uVar5 < 0x186a1) { if (99999 < (uint)(iVar4 - param_2)) { while( true ) { __ptr = *(int8 **)(param_1 + 0x48); if (__ptr == (int8 *)0x0) { return; } uVar7 = (ulong)uVar5; uVar3 = __ptr[2]; if (uVar7 < uVar3) break; *(int8 *)(param_1 + 0x48) = *__ptr; *(int *)(param_1 + 0x34) = iVar4 + (int)uVar3; uVar5 = uVar5 - *(int *)(__ptr + 2); if (((*(byte *)((long)__ptr + 0x1c) & 1) != 0) && ((void *)__ptr[1] != (void *)0x0)) { free((void *)__ptr[1]); } free(__ptr); iVar4 = *(int *)(param_1 + 0x34); if (iVar4 == param_2) { return; } } *(uint *)(param_1 + 0x34) = iVar4 + uVar5; if ((*(byte *)((long)__ptr + 0x1c) & 1) == 0) { __ptr[1] = __ptr[1] + uVar7; return; } __n = __ptr[2] - uVar7; __dest = (void *)MALLOC(__n); memcpy(__dest,(void *)(uVar7 + __ptr[1]),__n); if ((void *)__ptr[1] != (void *)0x0) { free((void *)__ptr[1]); __ptr[1] = 0; } __ptr[1] = __dest; __ptr[2] = __n; *(byte *)((long)__ptr + 0x1c) = *(byte *)((long)__ptr + 0x1c) | 1; return; } uVar10 = *(int8 *)(param_1 + 0x28); uVar8 = *(int4 *)(param_1 + 0x18); uVar9 = *(int4 *)(param_1 + 0x20); ipaddress_fmt(local_58); uVar1 = *(int2 *)(param_1 + 0x32); uVar2 = *(int4 *)(param_1 + 0x34); pcVar6 = "tcp.tcb: (%s %u) ackno from future: my seqno = 0x%08x, their ackno = 0x%08x\n"; } else { uVar10 = *(int8 *)(param_1 + 0x28); uVar8 = *(int4 *)(param_1 + 0x18); uVar9 = *(int4 *)(param_1 + 0x20); ipaddress_fmt(local_58); uVar1 = *(int2 *)(param_1 + 0x32); uVar2 = *(int4 *)(param_1 + 0x38); pcVar6 = "tcp.tcb: (%s %u) ackno from past: old ackno = 0x%08x, this ackno = 0x%08x\n"; } LOG(2,pcVar6,local_58,uVar1,uVar2,param_2,uVar8,uVar9,uVar10); } return; }
33,321
my_ftell
eloqsql/mysys/my_fstream.c
my_off_t my_ftell(FILE *stream, myf MyFlags __attribute__((unused))) { long long pos; DBUG_ENTER("my_ftell"); DBUG_PRINT("my",("stream:%p MyFlags: %lu", stream, MyFlags)); pos=IF_WIN(_ftelli64(stream),ftell(stream)); DBUG_PRINT("exit",("ftell: %lld",pos)); DBUG_RETURN((my_off_t) pos); }
O3
c
my_ftell: pushq %rbp movq %rsp, %rbp popq %rbp jmp 0x24510 nop
my_ftell: push rbp mov rbp, rsp pop rbp jmp _ftello64
long long my_ftell(long long a1) { return ftello64(a1); }
my_ftell: PUSH RBP MOV RBP,RSP POP RBP JMP 0x00124510
void my_ftell(FILE *param_1) { ftello64(param_1); return; }
33,322
get_collation_number
eloqsql/mysys/charset.c
uint get_collation_number(const char *name, myf flags) { uint id; char alias[64]; my_pthread_once(&charsets_initialized, init_available_charsets); if ((id= get_collation_number_internal(name))) return id; if ((name= get_collation_name_alias(name, alias, sizeof(alias),flags))) return get_collation_number_internal(name); return 0; }
O0
c
get_collation_number: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x60(%rbp) movq %rsi, -0x68(%rbp) leaq 0x38fb60(%rip), %rdi # 0x40c6d4 leaq 0x85(%rip), %rsi # 0x7cc00 callq 0x382a0 movq -0x60(%rbp), %rdi callq 0x7cd90 movl %eax, -0x6c(%rbp) cmpl $0x0, %eax je 0x7cb99 movl -0x6c(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0x7cbce movq -0x60(%rbp), %rdi leaq -0x50(%rbp), %rsi movq -0x68(%rbp), %rcx movl $0x40, %edx callq 0x7ce30 movq %rax, -0x60(%rbp) cmpq $0x0, %rax je 0x7cbc7 movq -0x60(%rbp), %rdi callq 0x7cd90 movl %eax, -0x54(%rbp) jmp 0x7cbce movl $0x0, -0x54(%rbp) movl -0x54(%rbp), %eax movl %eax, -0x70(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x7cbef movl -0x70(%rbp), %eax addq $0x70, %rsp popq %rbp retq callq 0x382c0 nopw %cs:(%rax,%rax)
get_collation_number: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_60], rdi mov [rbp+var_68], rsi lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_60] call get_collation_number_internal mov [rbp+var_6C], eax cmp eax, 0 jz short loc_7CB99 mov eax, [rbp+var_6C] mov [rbp+var_54], eax jmp short loc_7CBCE loc_7CB99: mov rdi, [rbp+var_60] lea rsi, [rbp+var_50] mov rcx, [rbp+var_68] mov edx, 40h ; '@' call get_collation_name_alias mov [rbp+var_60], rax cmp rax, 0 jz short loc_7CBC7 mov rdi, [rbp+var_60] call get_collation_number_internal mov [rbp+var_54], eax jmp short loc_7CBCE loc_7CBC7: mov [rbp+var_54], 0 loc_7CBCE: mov eax, [rbp+var_54] mov [rbp+var_70], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_7CBEF mov eax, [rbp+var_70] add rsp, 70h pop rbp retn loc_7CBEF: call ___stack_chk_fail
long long get_collation_number(long long a1, long long a2) { unsigned int collation_number_internal; // [rsp+4h] [rbp-6Ch] long long collation_name_alias; // [rsp+10h] [rbp-60h] _BYTE v6[72]; // [rsp+20h] [rbp-50h] BYREF unsigned long long v7; // [rsp+68h] [rbp-8h] v7 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number_internal = get_collation_number_internal(a1); if ( collation_number_internal ) { return collation_number_internal; } else { collation_name_alias = get_collation_name_alias(a1, v6, 64LL, a2); if ( collation_name_alias ) return (unsigned int)get_collation_number_internal(collation_name_alias); else return 0; } }
get_collation_number: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x60],RDI MOV qword ptr [RBP + -0x68],RSI LEA RDI,[0x50c6d4] LEA RSI,[0x17cc00] CALL 0x001382a0 MOV RDI,qword ptr [RBP + -0x60] CALL 0x0017cd90 MOV dword ptr [RBP + -0x6c],EAX CMP EAX,0x0 JZ 0x0017cb99 MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0x54],EAX JMP 0x0017cbce LAB_0017cb99: MOV RDI,qword ptr [RBP + -0x60] LEA RSI,[RBP + -0x50] MOV RCX,qword ptr [RBP + -0x68] MOV EDX,0x40 CALL 0x0017ce30 MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JZ 0x0017cbc7 MOV RDI,qword ptr [RBP + -0x60] CALL 0x0017cd90 MOV dword ptr [RBP + -0x54],EAX JMP 0x0017cbce LAB_0017cbc7: MOV dword ptr [RBP + -0x54],0x0 LAB_0017cbce: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x70],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0017cbef MOV EAX,dword ptr [RBP + -0x70] ADD RSP,0x70 POP RBP RET LAB_0017cbef: CALL 0x001382c0
int get_collation_number(int8 param_1,int8 param_2) { long lVar1; long in_FS_OFFSET; int local_5c; int1 local_58 [72]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); local_5c = get_collation_number_internal(param_1); if (local_5c == 0) { lVar1 = get_collation_name_alias(param_1,local_58,0x40,param_2); if (lVar1 == 0) { local_5c = 0; } else { local_5c = get_collation_number_internal(lVar1); } } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_5c; }
33,323
get_collation_number
eloqsql/mysys/charset.c
uint get_collation_number(const char *name, myf flags) { uint id; char alias[64]; my_pthread_once(&charsets_initialized, init_available_charsets); if ((id= get_collation_number_internal(name))) return id; if ((name= get_collation_name_alias(name, alias, sizeof(alias),flags))) return get_collation_number_internal(name); return 0; }
O3
c
get_collation_number: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x50, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x18(%rbp) leaq 0x36c3f8(%rip), %rdi # 0x3cf690 leaq 0x80(%rip), %rsi # 0x6331f callq 0x37290 movq %rbx, %rdi callq 0x6349f testl %eax, %eax jne 0x63302 leaq 0x445c6(%rip), %rsi # 0xa787d movl $0x5, %edx movq %rbx, %rdi callq 0x37a10 movl %eax, %ecx xorl %eax, %eax testl %ecx, %ecx jne 0x63302 btl $0xa, %r14d movl $0x33, %ecx sbbl $-0x1, %ecx addq $0x5, %rbx leaq 0x4459f(%rip), %rdx # 0xa7883 leaq -0x60(%rbp), %r14 movl $0x40, %esi movq %r14, %rdi movq %rbx, %r8 xorl %eax, %eax callq 0x9b512 movq %r14, %rdi callq 0x6349f movq %fs:0x28, %rcx cmpq -0x18(%rbp), %rcx jne 0x6331a addq $0x50, %rsp popq %rbx popq %r14 popq %rbp retq callq 0x372b0
get_collation_number: push rbp mov rbp, rsp push r14 push rbx sub rsp, 50h mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_18], rax lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, rbx call get_collation_number_internal test eax, eax jnz short loc_63302 lea rsi, aUtf8_0; "utf8_" mov edx, 5 mov rdi, rbx call _strncasecmp mov ecx, eax xor eax, eax test ecx, ecx jnz short loc_63302 bt r14d, 0Ah mov ecx, 33h ; '3' sbb ecx, 0FFFFFFFFh add rbx, 5 lea rdx, aUtf8mbCS; "utf8mb%c_%s" lea r14, [rbp+var_60] mov esi, 40h ; '@' mov rdi, r14 mov r8, rbx xor eax, eax call my_snprintf mov rdi, r14 call get_collation_number_internal loc_63302: mov rcx, fs:28h cmp rcx, [rbp+var_18] jnz short loc_6331A add rsp, 50h pop rbx pop r14 pop rbp retn loc_6331A: call ___stack_chk_fail
long long get_collation_number(long long a1, __int16 a2) { long long result; // rax int v3; // ecx int v4; // r9d _BYTE v5[72]; // [rsp+0h] [rbp-60h] BYREF unsigned long long v6; // [rsp+48h] [rbp-18h] v6 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); result = get_collation_number_internal(a1); if ( !(_DWORD)result ) { v3 = strncasecmp(a1, "utf8_", 5LL); result = 0LL; if ( !v3 ) { my_snprintf((unsigned int)v5, 64, (unsigned int)"utf8mb%c_%s", 51 - (((a2 & 0x400) != 0) - 1), a1 + 5, v4); return get_collation_number_internal(v5); } } return result; }
get_collation_number: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x50 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX LEA RDI,[0x4cf690] LEA RSI,[0x16331f] CALL 0x00137290 MOV RDI,RBX CALL 0x0016349f TEST EAX,EAX JNZ 0x00163302 LEA RSI,[0x1a787d] MOV EDX,0x5 MOV RDI,RBX CALL 0x00137a10 MOV ECX,EAX XOR EAX,EAX TEST ECX,ECX JNZ 0x00163302 BT R14D,0xa MOV ECX,0x33 SBB ECX,-0x1 ADD RBX,0x5 LEA RDX,[0x1a7883] LEA R14,[RBP + -0x60] MOV ESI,0x40 MOV RDI,R14 MOV R8,RBX XOR EAX,EAX CALL 0x0019b512 MOV RDI,R14 CALL 0x0016349f LAB_00163302: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x18] JNZ 0x0016331a ADD RSP,0x50 POP RBX POP R14 POP RBP RET LAB_0016331a: CALL 0x001372b0
int8 get_collation_number(char *param_1,uint param_2) { int iVar1; int8 uVar2; long in_FS_OFFSET; int1 local_68 [72]; long local_20; local_20 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); uVar2 = get_collation_number_internal(param_1); if ((int)uVar2 == 0) { iVar1 = strncasecmp(param_1,"utf8_",5); uVar2 = 0; if (iVar1 == 0) { my_snprintf(local_68,0x40,"utf8mb%c_%s",0x34 - (uint)((param_2 >> 10 & 1) != 0),param_1 + 5); uVar2 = get_collation_number_internal(local_68); } } if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return uVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
33,324
my_free
eloqsql/mysys/my_malloc.c
void my_free(void *ptr) { my_memory_header *mh; size_t old_size; my_bool old_flags; DBUG_ENTER("my_free"); DBUG_PRINT("my",("ptr: %p", ptr)); if (ptr == NULL) DBUG_VOID_RETURN; mh= USER_TO_HEADER(ptr); old_size= mh->m_size & ~1; old_flags= mh->m_size & 1; PSI_CALL_memory_free(mh->m_key, old_size, mh->m_owner); update_malloc_size(- (longlong) old_size - HEADER_SIZE, old_flags); #ifndef SAFEMALLOC /* Trash memory if not safemalloc. We don't have to do this if safemalloc is used as safemalloc will also do trashing */ TRASH_FREE(ptr, old_size); #endif sf_free(mh); DBUG_VOID_RETURN; }
O3
c
my_free: testq %rdi, %rdi je 0xa003f pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax leaq -0x18(%rdi), %rbx movq -0x18(%rdi), %rdx movq -0x10(%rdi), %r14 movq %r14, %r15 andq $-0x2, %r15 leaq 0x2e6009(%rip), %rax # 0x386010 movq (%rax), %rax movl -0x8(%rdi), %edi movq %r15, %rsi callq *0x3f8(%rax) movq $-0x18, %rdi subq %r15, %rdi andl $0x1, %r14d movl %r14d, %esi callq *0x2e5ac3(%rip) # 0x385af0 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x29160 retq
my_free: test rdi, rdi jz short locret_A003F push rbp mov rbp, rsp push r15 push r14 push rbx push rax lea rbx, [rdi-18h] mov rdx, [rdi-18h] mov r14, [rdi-10h] mov r15, r14 and r15, 0FFFFFFFFFFFFFFFEh loc_A0000: lea rax, PSI_server mov rax, [rax] mov edi, [rdi-8] mov rsi, r15 call qword ptr [rax+3F8h] mov rdi, 0FFFFFFFFFFFFFFE8h sub rdi, r15 and r14d, 1 mov esi, r14d call cs:update_malloc_size mov rdi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _free locret_A003F: retn
long long my_free(long long a1) { long long result; // rax if ( a1 ) { ((void ( *)(_QWORD, unsigned long long, _QWORD))PSI_server[127])( *(unsigned int *)(a1 - 8), *(_QWORD *)(a1 - 16) & 0xFFFFFFFFFFFFFFFELL, *(_QWORD *)(a1 - 24)); update_malloc_size(); return free(a1 - 24); } return result; }
my_free: TEST RDI,RDI JZ 0x001a003f PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX LEA RBX,[RDI + -0x18] MOV RDX,qword ptr [RDI + -0x18] MOV R14,qword ptr [RDI + -0x10] MOV R15,R14 AND R15,-0x2 LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV EDI,dword ptr [RDI + -0x8] MOV RSI,R15 CALL qword ptr [RAX + 0x3f8] MOV RDI,-0x18 SUB RDI,R15 AND R14D,0x1 MOV ESI,R14D CALL qword ptr [0x00485af0] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00129160 LAB_001a003f: RET
void my_free(long param_1) { ulong uVar1; ulong uVar2; if (param_1 != 0) { uVar1 = *(ulong *)(param_1 + -0x10); uVar2 = uVar1 & 0xfffffffffffffffe; (**(code **)(PSI_server + 0x3f8)) (*(int4 *)(param_1 + -8),uVar2,*(int8 *)(param_1 + -0x18)); (*(code *)update_malloc_size)(-0x18 - uVar2,(uint)uVar1 & 1); free((void *)(param_1 + -0x18)); return; } return; }
33,325
ma_kpointer
eloqsql/storage/maria/ma_search.c
void _ma_kpointer(register MARIA_HA *info, register uchar *buff, my_off_t pos) { pos/=maria_block_size; switch (info->s->base.key_reflength) { #if SIZEOF_OFF_T > 4 case 7: mi_int7store(buff,pos); break; case 6: mi_int6store(buff,pos); break; case 5: mi_int5store(buff,pos); break; #else case 7: *buff++=0; /* fall through */ case 6: *buff++=0; /* fall through */ case 5: *buff++=0; /* fall through */ #endif case 4: mi_int4store(buff,pos); break; case 3: mi_int3store(buff,pos); break; case 2: mi_int2store(buff,(uint) pos); break; case 1: buff[0]= (uchar) pos; break; default: abort(); /* impossible */ } }
O3
c
ma_kpointer: movq %rdx, %rax leaq 0x32e26d(%rip), %rcx # 0x386110 xorl %edx, %edx divq (%rcx) movq (%rdi), %rcx movl 0x3e4(%rcx), %ecx decl %ecx cmpl $0x6, %ecx ja 0x57f47 leaq 0x8a7b1(%rip), %rdx # 0xe2674 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movb %al, 0x1(%rsi) shrq $0x8, %rax jmp 0x57f44 movq %rax, %rcx shrq $0x20, %rcx bswapl %eax movl %eax, 0x1(%rsi) movq %rcx, %rax jmp 0x57f44 movl %eax, %ecx rolw $0x8, %cx movw %cx, 0x1(%rsi) shrq $0x10, %rax jmp 0x57f44 movl %eax, %ecx rolw $0x8, %cx movw %cx, 0x2(%rsi) movl %eax, %ecx shrl $0x10, %ecx movb %cl, 0x1(%rsi) shrq $0x18, %rax jmp 0x57f44 movq %rax, %rcx shrq $0x20, %rcx movl %eax, %edx bswapl %edx movl %edx, 0x2(%rsi) movb %cl, 0x1(%rsi) shrq $0x28, %rax jmp 0x57f44 movq %rax, %rcx shrq $0x20, %rcx movl %eax, %edx bswapl %edx movl %edx, 0x3(%rsi) movb %cl, 0x2(%rsi) movq %rax, %rcx shrq $0x28, %rcx movb %cl, 0x1(%rsi) shrq $0x30, %rax movb %al, (%rsi) retq pushq %rbp movq %rsp, %rbp callq 0x29610
_ma_kpointer: mov rax, rdx lea rcx, maria_block_size xor edx, edx div qword ptr [rcx] mov rcx, [rdi] mov ecx, [rcx+3E4h] dec ecx; switch 7 cases cmp ecx, 6 ja def_57ECA; jumptable 0000000000057ECA default case lea rdx, jpt_57ECA movsxd rcx, ds:(jpt_57ECA - 0E2674h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_57ECC: mov [rsi+1], al; jumptable 0000000000057ECA case 2 shr rax, 8 jmp short loc_57F44; jumptable 0000000000057ECA case 1 loc_57ED5: mov rcx, rax; jumptable 0000000000057ECA case 5 shr rcx, 20h bswap eax mov [rsi+1], eax mov rax, rcx jmp short loc_57F44; jumptable 0000000000057ECA case 1 loc_57EE6: mov ecx, eax; jumptable 0000000000057ECA case 3 rol cx, 8 mov [rsi+1], cx shr rax, 10h jmp short loc_57F44; jumptable 0000000000057ECA case 1 loc_57EF6: mov ecx, eax; jumptable 0000000000057ECA case 4 rol cx, 8 mov [rsi+2], cx mov ecx, eax shr ecx, 10h mov [rsi+1], cl shr rax, 18h jmp short loc_57F44; jumptable 0000000000057ECA case 1 loc_57F0E: mov rcx, rax; jumptable 0000000000057ECA case 6 shr rcx, 20h mov edx, eax bswap edx mov [rsi+2], edx mov [rsi+1], cl shr rax, 28h jmp short loc_57F44; jumptable 0000000000057ECA case 1 loc_57F25: mov rcx, rax; jumptable 0000000000057ECA case 7 shr rcx, 20h mov edx, eax bswap edx mov [rsi+3], edx mov [rsi+2], cl mov rcx, rax shr rcx, 28h mov [rsi+1], cl shr rax, 30h loc_57F44: mov [rsi], al; jumptable 0000000000057ECA case 1 retn def_57ECA: push rbp; jumptable 0000000000057ECA default case mov rbp, rsp call _abort
unsigned long long ma_kpointer(long long a1, long long a2, unsigned long long a3) { unsigned long long result; // rax unsigned long long v4; // rdx result = a3 / *(_QWORD *)&maria_block_size; v4 = a3 % *(_QWORD *)&maria_block_size; switch ( *(_DWORD *)(*(_QWORD *)a1 + 996LL) ) { case 1: break; case 2: *(_BYTE *)(a2 + 1) = result; result >>= 8; break; case 3: *(_WORD *)(a2 + 1) = __ROL2__(result, 8); result >>= 16; break; case 4: *(_WORD *)(a2 + 2) = __ROL2__(result, 8); *(_BYTE *)(a2 + 1) = BYTE2(result); result >>= 24; break; case 5: *(_DWORD *)(a2 + 1) = _byteswap_ulong(result); result >>= 32; break; case 6: *(_DWORD *)(a2 + 2) = _byteswap_ulong(result); *(_BYTE *)(a2 + 1) = BYTE4(result); result >>= 40; break; case 7: *(_DWORD *)(a2 + 3) = _byteswap_ulong(result); *(_BYTE *)(a2 + 2) = BYTE4(result); *(_BYTE *)(a2 + 1) = BYTE5(result); result >>= 48; break; default: abort(a1, a2, v4); } *(_BYTE *)a2 = result; return result; }
_ma_kpointer: MOV RAX,RDX LEA RCX,[0x486110] XOR EDX,EDX DIV qword ptr [RCX] MOV RCX,qword ptr [RDI] MOV ECX,dword ptr [RCX + 0x3e4] DEC ECX CMP ECX,0x6 JA 0x00157f47 LEA RDX,[0x1e2674] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_2: MOV byte ptr [RSI + 0x1],AL SHR RAX,0x8 JMP 0x00157f44 caseD_5: MOV RCX,RAX SHR RCX,0x20 BSWAP EAX MOV dword ptr [RSI + 0x1],EAX MOV RAX,RCX JMP 0x00157f44 caseD_3: MOV ECX,EAX ROL CX,0x8 MOV word ptr [RSI + 0x1],CX SHR RAX,0x10 JMP 0x00157f44 caseD_4: MOV ECX,EAX ROL CX,0x8 MOV word ptr [RSI + 0x2],CX MOV ECX,EAX SHR ECX,0x10 MOV byte ptr [RSI + 0x1],CL SHR RAX,0x18 JMP 0x00157f44 caseD_6: MOV RCX,RAX SHR RCX,0x20 MOV EDX,EAX BSWAP EDX MOV dword ptr [RSI + 0x2],EDX MOV byte ptr [RSI + 0x1],CL SHR RAX,0x28 JMP 0x00157f44 caseD_7: MOV RCX,RAX SHR RCX,0x20 MOV EDX,EAX BSWAP EDX MOV dword ptr [RSI + 0x3],EDX MOV byte ptr [RSI + 0x2],CL MOV RCX,RAX SHR RCX,0x28 MOV byte ptr [RSI + 0x1],CL SHR RAX,0x30 caseD_1: MOV byte ptr [RSI],AL RET default: PUSH RBP MOV RBP,RSP CALL 0x00129610
void _ma_kpointer(long *param_1,int1 *param_2,ulong param_3) { int1 auVar1 [16]; int1 auVar2 [16]; ushort uVar3; uint uVar4; ulong uVar5; auVar1._8_8_ = 0; auVar1._0_8_ = maria_block_size; auVar2._8_8_ = 0; auVar2._0_8_ = param_3; auVar2 = auVar2 / auVar1; uVar5 = auVar2._0_8_; uVar4 = auVar2._0_4_; uVar3 = auVar2._0_2_; switch(*(int4 *)(*param_1 + 0x3e4)) { case 1: break; case 2: param_2[1] = auVar2[0]; uVar5 = uVar5 >> 8; break; case 3: *(ushort *)(param_2 + 1) = uVar3 << 8 | uVar3 >> 8; uVar5 = uVar5 >> 0x10; break; case 4: *(ushort *)(param_2 + 2) = uVar3 << 8 | uVar3 >> 8; param_2[1] = auVar2[2]; uVar5 = uVar5 >> 0x18; break; case 5: uVar5 = uVar5 >> 0x20; *(uint *)(param_2 + 1) = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18; break; case 6: *(uint *)(param_2 + 2) = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18; param_2[1] = auVar2[4]; uVar5 = uVar5 >> 0x28; break; case 7: *(uint *)(param_2 + 3) = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18; param_2[2] = auVar2[4]; param_2[1] = auVar2[5]; uVar5 = uVar5 >> 0x30; break; default: /* WARNING: Subroutine does not return */ abort(); } *param_2 = (char)uVar5; return; }
33,326
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double)
monkey531[P]llama/common/json.hpp
boundaries compute_boundaries(FloatType value) { JSON_ASSERT(std::isfinite(value)); JSON_ASSERT(value > 0); // Convert the IEEE representation into a diyfp. // // If v is denormal: // value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1)) // If v is normalized: // value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1)) static_assert(std::numeric_limits<FloatType>::is_iec559, "internal error: dtoa_short requires an IEEE-754 floating-point implementation"); constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit) constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1); constexpr int kMinExp = 1 - kBias; constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value)); const std::uint64_t E = bits >> (kPrecision - 1); const std::uint64_t F = bits & (kHiddenBit - 1); const bool is_denormal = E == 0; const diyfp v = is_denormal ? diyfp(F, kMinExp) : diyfp(F + kHiddenBit, static_cast<int>(E) - kBias); // Compute the boundaries m- and m+ of the floating-point value // v = f * 2^e. // // Determine v- and v+, the floating-point predecessor and successor if v, // respectively. // // v- = v - 2^e if f != 2^(p-1) or e == e_min (A) // = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B) // // v+ = v + 2^e // // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_ // between m- and m+ round to v, regardless of how the input rounding // algorithm breaks ties. // // ---+-------------+-------------+-------------+-------------+--- (A) // v- m- v m+ v+ // // -----------------+------+------+-------------+-------------+--- (B) // v- m- v m+ v+ const bool lower_boundary_is_closer = F == 0 && E > 1; const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1); const diyfp m_minus = lower_boundary_is_closer ? diyfp(4 * v.f - 1, v.e - 2) // (B) : diyfp(2 * v.f - 1, v.e - 1); // (A) // Determine the normalized w+ = m+. const diyfp w_plus = diyfp::normalize(m_plus); // Determine w- = m- such that e_(w-) = e_(w+). const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e); return {diyfp::normalize(v), w_minus, w_plus}; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %xmm0, %rax movq %rax, %rcx btrq $0x3f, %rcx movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000 cmpq %rdx, %rcx jge 0x7d970 xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe 0x7d98c movq %rdi, %rbx movabsq $0x10000000000000, %rcx # imm = 0x10000000000000 decq %rcx andq %rax, %rcx movq %rax, %rdx shrq $0x34, %rdx movq %rcx, %r14 btsq $0x34, %r14 leal -0x433(%rdx), %esi testq %rdx, %rdx cmoveq %rcx, %r14 movl $0xfffffbce, %r15d # imm = 0xFFFFFBCE cmovnel %esi, %r15d testq %rcx, %rcx sete %cl shrq $0x35, %rax setne %al leaq (%r14,%r14), %rdx leal -0x1(%r15), %esi leaq (,%r14,4), %rdi testb %cl, %al cmoveq %rdx, %rdi leal -0x2(%r15), %eax cmovel %esi, %eax decq %rdi leaq 0x8(%rsp), %r12 movq %rdi, (%r12) movl %eax, 0x8(%r12) leaq 0x1(,%r14,2), %rdi callq 0x7dade movq %rax, (%rsp) movl %edx, %ebp movq %r12, %rdi movl %edx, %esi callq 0x7db20 movq %rax, %r12 movl %edx, %r13d movq %r14, %rdi movl %r15d, %esi callq 0x7dade movq %rax, (%rbx) movl %edx, 0x8(%rbx) movq %r12, 0x10(%rbx) movl %r13d, 0x18(%rbx) movq (%rsp), %rax movq %rax, 0x20(%rbx) movl %ebp, 0x28(%rbx) movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2fe36(%rip), %rdi # 0xad7ad leaq 0x2e603(%rip), %rdx # 0xabf81 leaq 0x3296a(%rip), %rcx # 0xb02ef movl $0x42cb, %esi # imm = 0x42CB jmp 0x7d9a6 leaq 0x2fe1a(%rip), %rdi # 0xad7ad leaq 0x2e5e7(%rip), %rdx # 0xabf81 leaq 0x32a67(%rip), %rcx # 0xb0408 movl $0x42cc, %esi # imm = 0x42CC xorl %eax, %eax callq 0x18af0
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h movq rax, xmm0 mov rcx, rax btr rcx, 3Fh ; '?' mov rdx, 7FF0000000000000h cmp rcx, rdx jge loc_7D970 xorpd xmm1, xmm1 ucomisd xmm0, xmm1 jbe loc_7D98C mov rbx, rdi mov rcx, 10000000000000h dec rcx and rcx, rax mov rdx, rax shr rdx, 34h mov r14, rcx bts r14, 34h ; '4' lea esi, [rdx-433h] test rdx, rdx cmovz r14, rcx mov r15d, 0FFFFFBCEh cmovnz r15d, esi test rcx, rcx setz cl shr rax, 35h setnz al lea rdx, [r14+r14] lea esi, [r15-1] lea rdi, ds:0[r14*4] test al, cl cmovz rdi, rdx lea eax, [r15-2] cmovz eax, esi dec rdi lea r12, [rsp+48h+var_40] mov [r12], rdi mov [r12+8], eax lea rdi, ds:1[r14*2] call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) mov [rsp+48h+var_48], rax mov ebp, edx mov rdi, r12 mov esi, edx call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp12normalize_toERKS3_i; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,int) mov r12, rax mov r13d, edx mov rdi, r14 mov esi, r15d call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) mov [rbx], rax mov [rbx+8], edx mov [rbx+10h], r12 mov [rbx+18h], r13d mov rax, [rsp+48h+var_48] mov [rbx+20h], rax mov [rbx+28h], ebp mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7D970: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aStdIsfiniteVal; "std::isfinite(value)" mov esi, 42CBh jmp short loc_7D9A6 loc_7D98C: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aValue0; "value > 0" mov esi, 42CCh loc_7D9A6: xor eax, eax call _ggml_abort
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>( long long a1, double a2, long long a3, long long a4, long long a5, long long a6, long long a7, char a8, int a9, char a10, nlohmann::json_abi_v3_11_3::detail::dtoa_impl *a11) { long long v12; // r14 unsigned int v13; // r15d bool v14; // cl bool v15; // al long long v16; // rdi bool v17; // zf unsigned int v18; // eax unsigned int v19; // edx unsigned int v20; // ebp long long v21; // r12 int v22; // edx int v23; // r13d int v24; // edx int v26; // esi int v27; // edx int v28; // ecx int v29; // r8d int v30; // r9d long long v31; // [rsp+0h] [rbp-48h] long long v32; // [rsp+8h] [rbp-40h] BYREF unsigned int v33; // [rsp+10h] [rbp-38h] if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL ) { v26 = 17099; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17099LL, "GGML_ASSERT(%s) failed", "std::isfinite(value)"); return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2( (int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v26, v27, v28, v29, v30, a8, a9, a10, a11); } if ( a2 <= 0.0 ) { v26 = 17100; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17100LL, "GGML_ASSERT(%s) failed", "value > 0"); return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2( (int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v26, v27, v28, v29, v30, a8, a9, a10, a11); } v12 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL | 0x10000000000000LL; if ( !(*(_QWORD *)&a2 >> 52) ) v12 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL; v13 = -1074; if ( *(_QWORD *)&a2 >> 52 ) v13 = (*(_QWORD *)&a2 >> 52) - 1075; v14 = (*(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL) == 0; v15 = *(_QWORD *)&a2 >> 53 != 0LL; v16 = 4 * v12; v17 = !v14 || !v15; if ( !v14 || !v15 ) v16 = 2 * v12; v18 = v13 - 2; if ( v17 ) v18 = v13 - 1; v32 = v16 - 1; v33 = v18; v31 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(2 * v12 + 1, v13 - 1); v20 = v19; v21 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(&v32, v19); v23 = v22; *(_QWORD *)a1 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v12, v13); *(_DWORD *)(a1 + 8) = v24; *(_QWORD *)(a1 + 16) = v21; *(_DWORD *)(a1 + 24) = v23; *(_QWORD *)(a1 + 32) = v31; *(_DWORD *)(a1 + 40) = v20; return a1; }
compute_boundaries<double>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOVQ RAX,XMM0 MOV RCX,RAX BTR RCX,0x3f MOV RDX,0x7ff0000000000000 CMP RCX,RDX JGE 0x0017d970 XORPD XMM1,XMM1 UCOMISD XMM0,XMM1 JBE 0x0017d98c MOV RBX,RDI MOV RCX,0x10000000000000 DEC RCX AND RCX,RAX MOV RDX,RAX SHR RDX,0x34 MOV R14,RCX BTS R14,0x34 LEA ESI,[RDX + -0x433] TEST RDX,RDX CMOVZ R14,RCX MOV R15D,0xfffffbce CMOVNZ R15D,ESI TEST RCX,RCX SETZ CL SHR RAX,0x35 SETNZ AL LEA RDX,[R14 + R14*0x1] LEA ESI,[R15 + -0x1] LEA RDI,[R14*0x4] TEST AL,CL CMOVZ RDI,RDX LEA EAX,[R15 + -0x2] CMOVZ EAX,ESI DEC RDI LEA R12,[RSP + 0x8] MOV qword ptr [R12],RDI MOV dword ptr [R12 + 0x8],EAX LEA RDI,[0x1 + R14*0x2] CALL 0x0017dade MOV qword ptr [RSP],RAX MOV EBP,EDX MOV RDI,R12 MOV ESI,EDX CALL 0x0017db20 MOV R12,RAX MOV R13D,EDX MOV RDI,R14 MOV ESI,R15D CALL 0x0017dade MOV qword ptr [RBX],RAX MOV dword ptr [RBX + 0x8],EDX MOV qword ptr [RBX + 0x10],R12 MOV dword ptr [RBX + 0x18],R13D MOV RAX,qword ptr [RSP] MOV qword ptr [RBX + 0x20],RAX MOV dword ptr [RBX + 0x28],EBP MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017d970: LEA RDI,[0x1ad7ad] LEA RDX,[0x1abf81] LEA RCX,[0x1b02ef] MOV ESI,0x42cb JMP 0x0017d9a6 LAB_0017d98c: LEA RDI,[0x1ad7ad] LEA RDX,[0x1abf81] LEA RCX,[0x1b0408] MOV ESI,0x42cc LAB_0017d9a6: XOR EAX,EAX CALL 0x00118af0
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) */ dtoa_impl * __thiscall nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double> (dtoa_impl *this,double param_1) { diyfp *pdVar1; char *pcVar2; int8 uVar3; diyfp *pdVar4; int iVar5; bool bVar6; int1 auVar7 [12]; int1 auVar8 [12]; int1 auVar9 [12]; long local_40; int local_38; if ((ulong)ABS(param_1) < 0x7ff0000000000000) { if (0.0 < param_1) { pdVar1 = (diyfp *)((ulong)param_1 & 0xfffffffffffff); bVar6 = (ulong)param_1 >> 0x34 == 0; pdVar4 = (diyfp *)((ulong)pdVar1 | 0x10000000000000); if (bVar6) { pdVar4 = pdVar1; } iVar5 = -0x432; if (!bVar6) { iVar5 = (uint)((ulong)param_1 >> 0x34) - 0x433; } bVar6 = (ulong)param_1 >> 0x35 == 0; local_40 = (long)pdVar4 * 4; if (bVar6 || pdVar1 != (diyfp *)0x0) { local_40 = (long)pdVar4 * 2; } local_38 = iVar5 + -2; if (bVar6 || pdVar1 != (diyfp *)0x0) { local_38 = iVar5 + -1; } local_40 = local_40 + -1; auVar7 = diyfp::normalize((diyfp *)((long)pdVar4 * 2 + 1)); auVar8 = diyfp::normalize_to((diyfp *)&local_40,auVar7._8_4_); auVar9 = diyfp::normalize(pdVar4,iVar5); *(int1 (*) [12])this = auVar9; *(int1 (*) [12])(this + 0x10) = auVar8; *(int1 (*) [12])(this + 0x20) = auVar7; return this; } pcVar2 = "value > 0"; uVar3 = 0x42cc; } else { pcVar2 = "std::isfinite(value)"; uVar3 = 0x42cb; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
33,327
minja::Value::dump_string(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&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char)
llama.cpp/common/minja/minja.hpp
static void dump_string(const json & primitive, std::ostringstream & out, char string_quote = '\'') { if (!primitive.is_string()) throw std::runtime_error("Value is not a string: " + primitive.dump()); auto s = primitive.dump(); if (string_quote == '"' || s.find('\'') != std::string::npos) { out << s; return; } // Reuse json dump, just changing string quotes out << string_quote; for (size_t i = 1, n = s.size() - 1; i < n; ++i) { if (s[i] == '\\' && s[i + 1] == '"') { out << '"'; i++; } else if (s[i] == string_quote) { out << '\\' << string_quote; } else { out << s[i]; } } out << string_quote; }
O3
cpp
minja::Value::dump_string(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&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdi, %r14 cmpb $0x3, (%rdi) jne 0x75aae movl %edx, %ebp movq %rsi, %rbx leaq 0x28(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x2abe4 cmpb $0x22, %bpl je 0x758e3 leaq 0x28(%rsp), %rdi movl $0x27, %esi xorl %edx, %edx callq 0x1ccb0 cmpq $-0x1, %rax je 0x7591f movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movq %rbx, %rdi callq 0x1cb70 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75910 movq 0x38(%rsp), %rsi incq %rsi callq 0x1c110 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movb %bpl, 0x8(%rsp) movq (%rbx), %rax movq -0x18(%rax), %rax cmpq $0x0, 0x10(%rbx,%rax) je 0x75947 leaq 0x8(%rsp), %rsi movl $0x1, %edx movq %rbx, %rdi callq 0x1cb70 jmp 0x75953 movsbl %bpl, %esi movq %rbx, %rdi callq 0x1c6c0 movq 0x30(%rsp), %r12 decq %r12 cmpq $0x2, %r12 jb 0x75a72 movl $0x1, %r13d leaq 0x8(%rsp), %r14 movsbl %bpl, %r15d movq 0x28(%rsp), %rcx movb (%rcx,%r13), %al cmpb $0x5c, %al jne 0x759b6 cmpb $0x22, 0x1(%rcx,%r13) jne 0x759b6 movb $0x22, 0x8(%rsp) movq (%rbx), %rax movq -0x18(%rax), %rax cmpq $0x0, 0x10(%rbx,%rax) je 0x75a56 movl $0x1, %edx movq %rbx, %rdi movq %r14, %rsi callq 0x1cb70 jmp 0x75a63 cmpb %bpl, %al jne 0x759e1 movb $0x5c, 0x8(%rsp) movq (%rbx), %rax movq -0x18(%rax), %rax cmpq $0x0, 0x10(%rbx,%rax) je 0x75a06 movl $0x1, %edx movq %rbx, %rdi movq %r14, %rsi callq 0x1cb70 jmp 0x75a16 movb %al, 0x8(%rsp) movq (%rbx), %rcx movq -0x18(%rcx), %rcx cmpq $0x0, 0x10(%rbx,%rcx) je 0x75a3c movl $0x1, %edx movq %rbx, %rdi movq %r14, %rsi callq 0x1cb70 jmp 0x75a66 movq %rbx, %rdi movl $0x5c, %esi callq 0x1c6c0 movq %rbx, %rax movb %bpl, 0x8(%rsp) movq (%rax), %rcx movq -0x18(%rcx), %rcx cmpq $0x0, 0x10(%rax,%rcx) je 0x75a49 movl $0x1, %edx movq %rax, %rdi movq %r14, %rsi callq 0x1cb70 jmp 0x75a66 movsbl %al, %esi movq %rbx, %rdi callq 0x1c6c0 jmp 0x75a66 movq %rax, %rdi movl %r15d, %esi callq 0x1c6c0 jmp 0x75a66 movq %rbx, %rdi movl $0x22, %esi callq 0x1c6c0 incq %r13 incq %r13 cmpq %r12, %r13 jb 0x75974 movb %bpl, 0x8(%rsp) movq (%rbx), %rax movq -0x18(%rax), %rax cmpq $0x0, 0x10(%rbx,%rax) je 0x75a9d leaq 0x8(%rsp), %rsi movl $0x1, %edx movq %rbx, %rdi callq 0x1cb70 jmp 0x758f5 movsbl %bpl, %esi movq %rbx, %rdi callq 0x1c6c0 jmp 0x758f5 movl $0x10, %edi callq 0x1c460 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x2abe4 leaq 0x5641f(%rip), %rsi # 0xcbefe leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x66b64 movb $0x1, %bpl leaq 0x28(%rsp), %rsi movq %rbx, %rdi callq 0x1c2c0 xorl %ebp, %ebp movq 0x8a4b1(%rip), %rsi # 0xfffb8 movq 0x8a46a(%rip), %rdx # 0xfff78 movq %rbx, %rdi callq 0x1c7b0 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75b34 movq 0x38(%rsp), %rsi incq %rsi callq 0x1c110 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75b4f movq 0x18(%rsp), %rsi incq %rsi callq 0x1c110 testb %bpl, %bpl jne 0x75b79 jmp 0x75ba3 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75b79 movq 0x18(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0x75b79 movq %rax, %r14 movq %rbx, %rdi callq 0x1caa0 jmp 0x75ba3 jmp 0x75b85 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x75ba3 movq 0x38(%rsp), %rsi incq %rsi callq 0x1c110 movq %r14, %rdi callq 0x1c7d0 nop
_ZN5minja5Value11dump_stringERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERNS6_19basic_ostringstreamIcS9_SA_EEc: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r14, rdi cmp byte ptr [rdi], 3 jnz loc_75AAE mov ebp, edx mov rbx, rsi lea rdi, [rsp+78h+var_50] mov rsi, r14 mov edx, 0FFFFFFFFh mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) cmp bpl, 22h ; '"' jz short loc_758E3 lea rdi, [rsp+78h+var_50] mov esi, 27h ; ''' xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_7591F loc_758E3: mov rsi, [rsp+78h+var_50] mov rdx, [rsp+78h+var_48] mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_758F5: lea rax, [rsp+78h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75910 mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75910: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7591F: mov [rsp+78h+var_70], bpl mov rax, [rbx] mov rax, [rax-18h] cmp qword ptr [rbx+rax+10h], 0 jz short loc_75947 lea rsi, [rsp+78h+var_70] mov edx, 1 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) jmp short loc_75953 loc_75947: movsx esi, bpl; char mov rdi, rbx; this call __ZNSo3putEc; std::ostream::put(char) loc_75953: mov r12, [rsp+78h+var_48] dec r12 cmp r12, 2 jb loc_75A72 mov r13d, 1 lea r14, [rsp+78h+var_70] movsx r15d, bpl loc_75974: mov rcx, [rsp+78h+var_50] mov al, [rcx+r13] cmp al, 5Ch ; '\' jnz short loc_759B6 cmp byte ptr [rcx+r13+1], 22h ; '"' jnz short loc_759B6 mov [rsp+78h+var_70], 22h ; '"' mov rax, [rbx] mov rax, [rax-18h] cmp qword ptr [rbx+rax+10h], 0 jz loc_75A56 mov edx, 1 mov rdi, rbx mov rsi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp loc_75A63 loc_759B6: cmp al, bpl jnz short loc_759E1 mov [rsp+78h+var_70], 5Ch ; '\' mov rax, [rbx] mov rax, [rax-18h] cmp qword ptr [rbx+rax+10h], 0 jz short loc_75A06 mov edx, 1 mov rdi, rbx mov rsi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_75A16 loc_759E1: mov [rsp+78h+var_70], al mov rcx, [rbx] mov rcx, [rcx-18h] cmp qword ptr [rbx+rcx+10h], 0 jz short loc_75A3C mov edx, 1 mov rdi, rbx mov rsi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_75A66 loc_75A06: mov rdi, rbx; this mov esi, 5Ch ; '\'; char call __ZNSo3putEc; std::ostream::put(char) mov rax, rbx loc_75A16: mov [rsp+78h+var_70], bpl mov rcx, [rax] mov rcx, [rcx-18h] cmp qword ptr [rax+rcx+10h], 0 jz short loc_75A49 mov edx, 1 mov rdi, rax mov rsi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_75A66 loc_75A3C: movsx esi, al; char mov rdi, rbx; this call __ZNSo3putEc; std::ostream::put(char) jmp short loc_75A66 loc_75A49: mov rdi, rax; this mov esi, r15d; char call __ZNSo3putEc; std::ostream::put(char) jmp short loc_75A66 loc_75A56: mov rdi, rbx; this mov esi, 22h ; '"'; char call __ZNSo3putEc; std::ostream::put(char) loc_75A63: inc r13 loc_75A66: inc r13 cmp r13, r12 jb loc_75974 loc_75A72: mov [rsp+78h+var_70], bpl mov rax, [rbx] mov rax, [rax-18h] cmp qword ptr [rbx+rax+10h], 0 jz short loc_75A9D lea rsi, [rsp+78h+var_70] mov edx, 1 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) jmp loc_758F5 loc_75A9D: movsx esi, bpl; char mov rdi, rbx; this call __ZNSo3putEc; std::ostream::put(char) jmp loc_758F5 loc_75AAE: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+78h+var_70] mov rsi, r14 mov edx, 0FFFFFFFFh mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) lea rsi, aValueIsNotAStr; "Value is not a string: " lea rdi, [rsp+78h+var_50] lea rdx, [rsp+78h+var_70] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_50] mov rdi, rbx 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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+78h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75B34 mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75B34: lea rax, [rsp+78h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75B4F mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75B4F: test bpl, bpl jnz short loc_75B79 jmp short loc_75BA3 mov r14, rax lea rax, [rsp+78h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75B79 mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_75B79 mov r14, rax loc_75B79: mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_75BA3 jmp short $+2 loc_75B85: mov r14, rax lea rax, [rsp+78h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_75BA3 mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_75BA3: mov rdi, r14 call __Unwind_Resume
void minja::Value::dump_string(_BYTE *a1, std::ostream *a2, char a3) { unsigned long long v4; // r12 unsigned long long v5; // r13 char v6; // al std::ostream *v7; // rax void *exception; // rbx _BYTE v9[16]; // [rsp+8h] [rbp-70h] BYREF long long *v10; // [rsp+28h] [rbp-50h] BYREF long long v11; // [rsp+30h] [rbp-48h] long long v12; // [rsp+38h] [rbp-40h] BYREF if ( *a1 != 3 ) { exception = __cxa_allocate_exception(0x10uLL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)v9, (long long)a1, -1, 32, 0, 0); std::operator+<char>(&v10, (long long)"Value is not a string: ", (long long)v9); std::runtime_error::runtime_error(exception, &v10); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)&v10, (long long)a1, -1, 32, 0, 0); if ( a3 != 34 && std::string::find(&v10, 39LL, 0LL) == -1 ) { v9[0] = a3; if ( *(_QWORD *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL) + 16) ) std::__ostream_insert<char,std::char_traits<char>>(a2, v9, 1LL); else std::ostream::put(a2, a3); v4 = v11 - 1; if ( (unsigned long long)(v11 - 1) >= 2 ) { v5 = 1LL; do { v6 = *((_BYTE *)v10 + v5); if ( v6 == 92 && *((_BYTE *)v10 + v5 + 1) == 34 ) { v9[0] = 34; if ( *(_QWORD *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL) + 16) ) std::__ostream_insert<char,std::char_traits<char>>(a2, v9, 1LL); else std::ostream::put(a2, 34); ++v5; } else if ( v6 == a3 ) { v9[0] = 92; if ( *(_QWORD *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL) + 16) ) { v7 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(a2, v9, 1LL); } else { std::ostream::put(a2, 92); v7 = a2; } v9[0] = a3; if ( *(_QWORD *)((char *)v7 + *(_QWORD *)(*(_QWORD *)v7 - 24LL) + 16) ) std::__ostream_insert<char,std::char_traits<char>>(v7, v9, 1LL); else std::ostream::put(v7, a3); } else { v9[0] = *((_BYTE *)v10 + v5); if ( *(_QWORD *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL) + 16) ) std::__ostream_insert<char,std::char_traits<char>>(a2, v9, 1LL); else std::ostream::put(a2, v6); } ++v5; } while ( v5 < v4 ); } v9[0] = a3; if ( *(_QWORD *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL) + 16) ) std::__ostream_insert<char,std::char_traits<char>>(a2, v9, 1LL); else std::ostream::put(a2, a3); } else { std::__ostream_insert<char,std::char_traits<char>>(a2, v10, v11); } if ( v10 != &v12 ) operator delete(v10, v12 + 1); }
dump_string: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RDI CMP byte ptr [RDI],0x3 JNZ 0x00175aae MOV EBP,EDX MOV RBX,RSI LEA RDI,[RSP + 0x28] MOV RSI,R14 MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x0012abe4 CMP BPL,0x22 JZ 0x001758e3 LEA RDI,[RSP + 0x28] MOV ESI,0x27 XOR EDX,EDX CALL 0x0011ccb0 CMP RAX,-0x1 JZ 0x0017591f LAB_001758e3: MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] LAB_001758ed: MOV RDI,RBX CALL 0x0011cb70 LAB_001758f5: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00175910 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011c110 LAB_00175910: ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017591f: MOV byte ptr [RSP + 0x8],BPL MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] CMP qword ptr [RBX + RAX*0x1 + 0x10],0x0 JZ 0x00175947 LEA RSI,[RSP + 0x8] MOV EDX,0x1 MOV RDI,RBX CALL 0x0011cb70 JMP 0x00175953 LAB_00175947: MOVSX ESI,BPL MOV RDI,RBX CALL 0x0011c6c0 LAB_00175953: MOV R12,qword ptr [RSP + 0x30] DEC R12 CMP R12,0x2 JC 0x00175a72 MOV R13D,0x1 LEA R14,[RSP + 0x8] MOVSX R15D,BPL LAB_00175974: MOV RCX,qword ptr [RSP + 0x28] MOV AL,byte ptr [RCX + R13*0x1] CMP AL,0x5c JNZ 0x001759b6 CMP byte ptr [RCX + R13*0x1 + 0x1],0x22 JNZ 0x001759b6 MOV byte ptr [RSP + 0x8],0x22 MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] CMP qword ptr [RBX + RAX*0x1 + 0x10],0x0 JZ 0x00175a56 LAB_001759a1: MOV EDX,0x1 MOV RDI,RBX MOV RSI,R14 CALL 0x0011cb70 JMP 0x00175a63 LAB_001759b6: CMP AL,BPL JNZ 0x001759e1 MOV byte ptr [RSP + 0x8],0x5c MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] CMP qword ptr [RBX + RAX*0x1 + 0x10],0x0 JZ 0x00175a06 MOV EDX,0x1 MOV RDI,RBX MOV RSI,R14 CALL 0x0011cb70 JMP 0x00175a16 LAB_001759e1: MOV byte ptr [RSP + 0x8],AL MOV RCX,qword ptr [RBX] MOV RCX,qword ptr [RCX + -0x18] CMP qword ptr [RBX + RCX*0x1 + 0x10],0x0 JZ 0x00175a3c MOV EDX,0x1 MOV RDI,RBX MOV RSI,R14 CALL 0x0011cb70 JMP 0x00175a66 LAB_00175a06: MOV RDI,RBX MOV ESI,0x5c CALL 0x0011c6c0 MOV RAX,RBX LAB_00175a16: MOV byte ptr [RSP + 0x8],BPL MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] CMP qword ptr [RAX + RCX*0x1 + 0x10],0x0 JZ 0x00175a49 MOV EDX,0x1 MOV RDI,RAX MOV RSI,R14 CALL 0x0011cb70 JMP 0x00175a66 LAB_00175a3c: MOVSX ESI,AL MOV RDI,RBX CALL 0x0011c6c0 JMP 0x00175a66 LAB_00175a49: MOV RDI,RAX MOV ESI,R15D CALL 0x0011c6c0 JMP 0x00175a66 LAB_00175a56: MOV RDI,RBX MOV ESI,0x22 CALL 0x0011c6c0 LAB_00175a63: INC R13 LAB_00175a66: INC R13 CMP R13,R12 JC 0x00175974 LAB_00175a72: MOV byte ptr [RSP + 0x8],BPL MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] CMP qword ptr [RBX + RAX*0x1 + 0x10],0x0 JZ 0x00175a9d LAB_00175a86: LEA RSI,[RSP + 0x8] MOV EDX,0x1 MOV RDI,RBX CALL 0x0011cb70 JMP 0x001758f5 LAB_00175a9d: MOVSX ESI,BPL MOV RDI,RBX CALL 0x0011c6c0 LAB_00175aa9: JMP 0x001758f5 LAB_00175aae: MOV EDI,0x10 CALL 0x0011c460 MOV RBX,RAX LAB_00175abb: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x0012abe4 LAB_00175ad8: LEA RSI,[0x1cbefe] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x00166b64 MOV BPL,0x1 LAB_00175af1: LEA RSI,[RSP + 0x28] MOV RDI,RBX CALL 0x0011c2c0 XOR EBP,EBP MOV RSI,qword ptr [0x001fffb8] MOV RDX,qword ptr [0x001fff78] MOV RDI,RBX CALL 0x0011c7b0
/* minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, std::__cxx11::ostringstream&, char) */ void minja::Value::dump_string(basic_json *param_1,ostringstream *param_2,char param_3) { long lVar1; ostream *poVar2; runtime_error *this; char cVar3; ulong uVar4; char local_70 [32]; long *local_50; long local_48; long local_40 [2]; if (*param_1 != (basic_json)0x3) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00175abb to 00175ad7 has its CatchHandler @ 00175b76 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_70,param_1,0xffffffff,0x20,0,0); /* try { // try from 00175ad8 to 00175aed has its CatchHandler @ 00175b56 */ std::operator+((char *)&local_50,(string *)"Value is not a string: "); /* try { // try from 00175af1 to 00175b15 has its CatchHandler @ 00175b16 */ std::runtime_error::runtime_error(this,(string *)&local_50); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_001fffb8,PTR__runtime_error_001fff78); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(&local_50,param_1,0xffffffff,0x20,0,0); if (param_3 != '\"') { lVar1 = std::__cxx11::string::find((char)&local_50,0x27); if (lVar1 == -1) { cVar3 = (char)param_2; local_70[0] = param_3; if (*(long *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 0x10) == 0) { std::ostream::put(cVar3); } else { std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_70,1); } if (1 < local_48 - 1U) { uVar4 = 1; do { local_70[0] = *(char *)((long)local_50 + uVar4); if ((local_70[0] == '\\') && (*(char *)((long)local_50 + uVar4 + 1) == '\"')) { local_70[0] = '\"'; if (*(long *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 0x10) == 0) { std::ostream::put(cVar3); } else { /* try { // try from 001759a1 to 00175a62 has its CatchHandler @ 00175b85 */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_70,1); } uVar4 = uVar4 + 1; } else if (local_70[0] == param_3) { local_70[0] = '\\'; if (*(long *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 0x10) == 0) { std::ostream::put(cVar3); poVar2 = (ostream *)param_2; } else { poVar2 = std::__ostream_insert<char,std::char_traits<char>> ((ostream *)param_2,local_70,1); } if (*(long *)(poVar2 + *(long *)(*(long *)poVar2 + -0x18) + 0x10) == 0) { local_70[0] = param_3; std::ostream::put((char)poVar2); } else { local_70[0] = param_3; std::__ostream_insert<char,std::char_traits<char>>(poVar2,local_70,1); } } else if (*(long *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 0x10) == 0) { std::ostream::put(cVar3); } else { std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_70,1); } uVar4 = uVar4 + 1; } while (uVar4 < local_48 - 1U); } if (*(long *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 0x10) == 0) { local_70[0] = param_3; std::ostream::put(cVar3); } else { /* try { // try from 00175a86 to 00175aa8 has its CatchHandler @ 00175b83 */ local_70[0] = param_3; std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_70,1); } goto LAB_001758f5; } } /* try { // try from 001758ed to 00175952 has its CatchHandler @ 00175b83 */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,(char *)local_50,local_48); LAB_001758f5: if (local_50 != local_40) { operator_delete(local_50,local_40[0] + 1); } return; }
33,328
common_model_params_to_llama(common_params&)
llama.cpp/common/common.cpp
struct llama_model_params common_model_params_to_llama(common_params & params) { auto mparams = llama_model_default_params(); if (!params.devices.empty()) { mparams.devices = params.devices.data(); } if (params.n_gpu_layers != -1) { mparams.n_gpu_layers = params.n_gpu_layers; } mparams.main_gpu = params.main_gpu; mparams.split_mode = params.split_mode; mparams.tensor_split = params.tensor_split; mparams.use_mmap = params.use_mmap; mparams.use_mlock = params.use_mlock; mparams.check_tensors = params.check_tensors; if (params.kv_overrides.empty()) { mparams.kv_overrides = NULL; } else { GGML_ASSERT(params.kv_overrides.back().key[0] == 0 && "KV overrides not terminated with empty key"); mparams.kv_overrides = params.kv_overrides.data(); } if (params.tensor_buft_overrides.empty()) { mparams.tensor_buft_overrides = NULL; } else { GGML_ASSERT(params.tensor_buft_overrides.back().pattern == nullptr && "Tensor buffer overrides not terminated with empty pattern"); mparams.tensor_buft_overrides = params.tensor_buft_overrides.data(); } return mparams; }
O3
cpp
common_model_params_to_llama(common_params&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx callq 0x20f00 movq 0x50(%r14), %rax cmpq 0x58(%r14), %rax je 0xf8c56 movq %rax, (%rbx) movl 0x68(%r14), %eax cmpl $-0x1, %eax je 0xf8c62 movl %eax, 0x10(%rbx) movl 0x6c(%r14), %eax movl %eax, 0x18(%rbx) movl 0x270(%r14), %eax movl %eax, 0x14(%rbx) leaq 0x70(%r14), %rax movq %rax, 0x20(%rbx) movb 0x102a(%r14), %al movb %al, 0x41(%rbx) movb 0x102b(%r14), %al movb %al, 0x42(%rbx) movb 0x1031(%r14), %al movb %al, 0x43(%rbx) movq 0xf70(%r14), %rax movq 0xf78(%r14), %rcx cmpq %rcx, %rax je 0xf8cd1 cmpb $0x0, -0x104(%rcx) je 0xf8cd3 leaq 0x2a6f9(%rip), %rdi # 0x1233b5 leaq 0x1fb8a(%rip), %rdx # 0x11884d leaq 0x2abf1(%rip), %rcx # 0x1238bb movl $0x424, %esi # imm = 0x424 jmp 0xf8d0b xorl %eax, %eax movq %rax, 0x38(%rbx) movq 0xf88(%r14), %rax movq 0xf90(%r14), %rcx cmpq %rcx, %rax je 0xf8d12 cmpq $0x0, -0x10(%rcx) je 0xf8d14 leaq 0x2a6bd(%rip), %rdi # 0x1233b5 leaq 0x1fb4e(%rip), %rdx # 0x11884d leaq 0x2ac0c(%rip), %rcx # 0x123912 movl $0x42b, %esi # imm = 0x42B xorl %eax, %eax callq 0x20e40 xorl %eax, %eax movq %rax, 0x8(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_Z28common_model_params_to_llamaR13common_params: push r14 push rbx push rax mov r14, rsi mov rbx, rdi call _llama_model_default_params mov rax, [r14+50h] cmp rax, [r14+58h] jz short loc_F8C56 mov [rbx], rax loc_F8C56: mov eax, [r14+68h] cmp eax, 0FFFFFFFFh jz short loc_F8C62 mov [rbx+10h], eax loc_F8C62: mov eax, [r14+6Ch] mov [rbx+18h], eax mov eax, [r14+270h] mov [rbx+14h], eax lea rax, [r14+70h] mov [rbx+20h], rax mov al, [r14+102Ah] mov [rbx+41h], al mov al, [r14+102Bh] mov [rbx+42h], al mov al, [r14+1031h] mov [rbx+43h], al mov rax, [r14+0F70h] mov rcx, [r14+0F78h] cmp rax, rcx jz short loc_F8CD1 cmp byte ptr [rcx-104h], 0 jz short loc_F8CD3 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aParamsKvOverri; "params.kv_overrides.back().key[0] == 0 "... mov esi, 424h jmp short loc_F8D0B loc_F8CD1: xor eax, eax loc_F8CD3: mov [rbx+38h], rax mov rax, [r14+0F88h] mov rcx, [r14+0F90h] cmp rax, rcx jz short loc_F8D12 cmp qword ptr [rcx-10h], 0 jz short loc_F8D14 lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aParamsTensorBu; "params.tensor_buft_overrides.back().pat"... mov esi, 42Bh loc_F8D0B: xor eax, eax call _ggml_abort loc_F8D12: xor eax, eax loc_F8D14: mov [rbx+8], rax mov rax, rbx add rsp, 8 pop rbx pop r14 retn
common_params * common_model_params_to_llama(common_params *a1, long long a2) { long long v2; // rax int v3; // eax long long v4; // rax long long v5; // rcx long long v6; // rax long long v7; // rcx llama_model_default_params(a1); v2 = *(_QWORD *)(a2 + 80); if ( v2 != *(_QWORD *)(a2 + 88) ) *(_QWORD *)a1 = v2; v3 = *(_DWORD *)(a2 + 104); if ( v3 != -1 ) *((_DWORD *)a1 + 4) = v3; *((_DWORD *)a1 + 6) = *(_DWORD *)(a2 + 108); *((_DWORD *)a1 + 5) = *(_DWORD *)(a2 + 624); *((_QWORD *)a1 + 4) = a2 + 112; *((_BYTE *)a1 + 65) = *(_BYTE *)(a2 + 4138); *((_BYTE *)a1 + 66) = *(_BYTE *)(a2 + 4139); *((_BYTE *)a1 + 67) = *(_BYTE *)(a2 + 4145); v4 = *(_QWORD *)(a2 + 3952); v5 = *(_QWORD *)(a2 + 3960); if ( v4 == v5 ) { v4 = 0LL; } else if ( *(_BYTE *)(v5 - 260) ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 1060LL, "GGML_ASSERT(%s) failed", "params.kv_overrides.back().key[0] == 0 && \"KV overrides not terminated with empty key\""); LABEL_12: v6 = 0LL; goto LABEL_13; } *((_QWORD *)a1 + 7) = v4; v6 = *(_QWORD *)(a2 + 3976); v7 = *(_QWORD *)(a2 + 3984); if ( v6 == v7 ) goto LABEL_12; if ( *(_QWORD *)(v7 - 16) ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 1067LL, "GGML_ASSERT(%s) failed", "params.tensor_buft_overrides.back().pattern == nullptr && \"Tensor buffer overrides not terminated with empty pattern\""); goto LABEL_12; } LABEL_13: *((_QWORD *)a1 + 1) = v6; return a1; }
common_model_params_to_llama: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CALL 0x00120f00 MOV RAX,qword ptr [R14 + 0x50] CMP RAX,qword ptr [R14 + 0x58] JZ 0x001f8c56 MOV qword ptr [RBX],RAX LAB_001f8c56: MOV EAX,dword ptr [R14 + 0x68] CMP EAX,-0x1 JZ 0x001f8c62 MOV dword ptr [RBX + 0x10],EAX LAB_001f8c62: MOV EAX,dword ptr [R14 + 0x6c] MOV dword ptr [RBX + 0x18],EAX MOV EAX,dword ptr [R14 + 0x270] MOV dword ptr [RBX + 0x14],EAX LEA RAX,[R14 + 0x70] MOV qword ptr [RBX + 0x20],RAX MOV AL,byte ptr [R14 + 0x102a] MOV byte ptr [RBX + 0x41],AL MOV AL,byte ptr [R14 + 0x102b] MOV byte ptr [RBX + 0x42],AL MOV AL,byte ptr [R14 + 0x1031] MOV byte ptr [RBX + 0x43],AL MOV RAX,qword ptr [R14 + 0xf70] MOV RCX,qword ptr [R14 + 0xf78] CMP RAX,RCX JZ 0x001f8cd1 CMP byte ptr [RCX + -0x104],0x0 JZ 0x001f8cd3 LEA RDI,[0x2233b5] LEA RDX,[0x21884d] LEA RCX,[0x2238bb] MOV ESI,0x424 JMP 0x001f8d0b LAB_001f8cd1: XOR EAX,EAX LAB_001f8cd3: MOV qword ptr [RBX + 0x38],RAX MOV RAX,qword ptr [R14 + 0xf88] MOV RCX,qword ptr [R14 + 0xf90] CMP RAX,RCX JZ 0x001f8d12 CMP qword ptr [RCX + -0x10],0x0 JZ 0x001f8d14 LEA RDI,[0x2233b5] LEA RDX,[0x21884d] LEA RCX,[0x223912] MOV ESI,0x42b LAB_001f8d0b: XOR EAX,EAX CALL 0x00120e40 LAB_001f8d12: XOR EAX,EAX LAB_001f8d14: MOV qword ptr [RBX + 0x8],RAX MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* common_model_params_to_llama(common_params&) */ common_params * common_model_params_to_llama(common_params *param_1) { long lVar1; char *pcVar2; long in_RSI; int8 uVar3; llama_model_default_params(); if (*(long *)(in_RSI + 0x50) != *(long *)(in_RSI + 0x58)) { *(long *)param_1 = *(long *)(in_RSI + 0x50); } if (*(int *)(in_RSI + 0x68) != -1) { *(int *)(param_1 + 0x10) = *(int *)(in_RSI + 0x68); } *(int4 *)(param_1 + 0x18) = *(int4 *)(in_RSI + 0x6c); *(int4 *)(param_1 + 0x14) = *(int4 *)(in_RSI + 0x270); *(long *)(param_1 + 0x20) = in_RSI + 0x70; param_1[0x41] = *(common_params *)(in_RSI + 0x102a); param_1[0x42] = *(common_params *)(in_RSI + 0x102b); param_1[0x43] = *(common_params *)(in_RSI + 0x1031); lVar1 = *(long *)(in_RSI + 0xf70); if (lVar1 == *(long *)(in_RSI + 0xf78)) { lVar1 = 0; } else if (*(char *)(*(long *)(in_RSI + 0xf78) + -0x104) != '\0') { pcVar2 = "params.kv_overrides.back().key[0] == 0 && \"KV overrides not terminated with empty key\""; uVar3 = 0x424; goto LAB_001f8d0b; } *(long *)(param_1 + 0x38) = lVar1; lVar1 = *(long *)(in_RSI + 0xf88); if (lVar1 == *(long *)(in_RSI + 0xf90)) { lVar1 = 0; } else if (*(long *)(*(long *)(in_RSI + 0xf90) + -0x10) != 0) { pcVar2 = "params.tensor_buft_overrides.back().pattern == nullptr && \"Tensor buffer overrides not terminated with empty pattern\"" ; uVar3 = 0x42b; LAB_001f8d0b: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); } *(long *)(param_1 + 8) = lVar1; return param_1; }
33,329
my_strnncoll_win1250ch
eloqsql/strings/ctype-win1250ch.c
static int my_strnncoll_win1250ch(CHARSET_INFO *cs __attribute__((unused)), const uchar *s1, size_t len1, const uchar *s2, size_t len2, my_bool s2_is_prefix) { int v1, v2; const uchar *p1, * p2; int pass1 = 0, pass2 = 0; int diff; if (s2_is_prefix && len1 > len2) len1=len2; p1 = s1; p2 = s2; do { NEXT_CMP_VALUE(s1, p1, pass1, v1, (int)len1); NEXT_CMP_VALUE(s2, p2, pass2, v2, (int)len2); if ((diff = v1 - v2)) return diff; } while (v1); return 0; }
O3
c
my_strnncoll_win1250ch: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx cmpq %r8, %rdx movq %r8, %rax cmovbq %rdx, %rax testb %r9b, %r9b cmoveq %rdx, %rax movq %rax, -0x70(%rbp) movslq %eax, %rdx movq %r8, -0x78(%rbp) movslq %r8d, %r9 movl $0x1, %eax movl $0x1, %edi subq %rsi, %rdi movq %rdi, -0x60(%rbp) subq %rcx, %rax movq %rax, -0x68(%rbp) xorl %r13d, %r13d leaq 0x28bb12(%rip), %r14 # 0x364bf0 movq %rsi, %r15 movq %rcx, %r12 xorl %ebx, %ebx movq %rcx, -0x48(%rbp) movq %rsi, -0x58(%rbp) movq %r15, %rax subq %rsi, %rax cmpq %rdx, %rax jge 0xd9106 testl %r13d, %r13d je 0xd9134 movl $0x9, %r8d jmp 0xd912f testl %r13d, %r13d sete %r8b cmpl $0x0, -0x70(%rbp) setg %dil xorl %eax, %eax testb %r8b, %dil je 0xd91fa movl $0x1, %r13d movl $0x9, %r8d movq %rsi, %r15 movq %r14, %rax jmp 0xd9144 xorl %r13d, %r13d movl $0x8, %r8d leaq 0x28b9ac(%rip), %rax # 0x364af0 movzbl (%r15), %edi movb (%rax,%rdi), %al cmpb $-0x1, %al jne 0xd91f4 movq %r8, -0x50(%rbp) movq %r12, -0x38(%rbp) movl %ebx, -0x2c(%rbp) movq %r13, -0x40(%rbp) movq %r15, %r11 subq %rsi, %r11 movq -0x60(%rbp), %rax leaq (%rax,%r15), %rcx xorl %edi, %edi movq %r15, %r12 movq %rdi, %r8 shlq $0x4, %r8 leaq 0x2b411d(%rip), %rax # 0x38d2a0 movq (%r8,%rax), %r13 movb (%r13), %r10b testb %r10b, %r10b je 0xd91bb cmpq %rdx, %r11 jge 0xd91bb incq %r13 movq %rcx, %rbx cmpb (%r15), %r10b jne 0xd91c0 incq %r15 movb (%r13), %r10b testb %r10b, %r10b je 0xd91bb leaq 0x1(%rbx), %rax incq %r13 cmpq %rdx, %rbx movq %rax, %rbx jl 0xd919b testb %r10b, %r10b je 0xd91d0 incq %rdi cmpq $0x50, %rdi movq %r12, %r15 jne 0xd9175 movb $-0x1, %al jmp 0xd91e5 leaq 0x2b40c9(%rip), %rax # 0x38d2a0 addq %rax, %r8 movq -0x50(%rbp), %rax movb (%r8,%rax), %al decq %r15 movq -0x48(%rbp), %rcx movq -0x40(%rbp), %r13 movl -0x2c(%rbp), %ebx movq -0x38(%rbp), %r12 movzbl %al, %eax incq %r15 movq %r12, %rdi subq %rcx, %rdi cmpq %r9, %rdi jge 0xd9211 testl %ebx, %ebx je 0xd923e movl $0x9, %r10d jmp 0xd9239 testl %ebx, %ebx sete %dil cmpl $0x0, -0x78(%rbp) setg %r8b xorl %r10d, %r10d testb %dil, %r8b je 0xd9338 movl $0x1, %ebx movl $0x9, %r10d movq %rcx, %r12 movq %r14, %r8 jmp 0xd924d xorl %ebx, %ebx movl $0x8, %r10d leaq 0x28b8a3(%rip), %r8 # 0x364af0 movzbl (%r12), %edi movb (%r8,%rdi), %dil cmpb $-0x1, %dil jne 0xd9331 movq %r10, -0x50(%rbp) movq %r15, -0x38(%rbp) movl %ebx, -0x2c(%rbp) movq %r13, -0x40(%rbp) movq %r12, %r14 subq %rcx, %r14 movq -0x68(%rbp), %rcx movq %r12, %r11 leaq (%rcx,%r12), %rsi xorl %r8d, %r8d movq %r8, %r15 shlq $0x4, %r15 leaq 0x2b400f(%rip), %rcx # 0x38d2a0 movq (%r15,%rcx), %rbx movb (%rbx), %r13b testb %r13b, %r13b je 0xd92cc cmpq %r9, %r14 jge 0xd92cc incq %rbx movq %rsi, %rdi movq %r11, %r10 cmpb (%r10), %r13b jne 0xd92d4 incq %r10 movb (%rbx), %r13b testb %r13b, %r13b je 0xd92cf leaq 0x1(%rdi), %r12 incq %rbx cmpq %r9, %rdi movq %r12, %rdi jl 0xd92ab jmp 0xd92cf movq %r11, %r10 testb %r13b, %r13b je 0xd92ff incq %r8 cmpq $0x50, %r8 jne 0xd9283 movb $-0x1, %dil movq -0x48(%rbp), %rcx movq -0x58(%rbp), %rsi leaq 0x28b901(%rip), %r14 # 0x364bf0 movq -0x40(%rbp), %r13 movl -0x2c(%rbp), %ebx movq -0x38(%rbp), %r15 movq %r11, %r12 jmp 0xd9331 leaq 0x2b3f9a(%rip), %rcx # 0x38d2a0 addq %rcx, %r15 movq -0x50(%rbp), %rcx movb (%r15,%rcx), %dil decq %r10 movq %r10, %r12 movq -0x48(%rbp), %rcx movq -0x58(%rbp), %rsi leaq 0x28b8ca(%rip), %r14 # 0x364bf0 movq -0x40(%rbp), %r13 movl -0x2c(%rbp), %ebx movq -0x38(%rbp), %r15 movzbl %dil, %r10d incq %r12 testl %eax, %eax je 0xd9345 cmpl %r10d, %eax je 0xd90ee subl %r10d, %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strnncoll_win1250ch: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx cmp rdx, r8 mov rax, r8 cmovb rax, rdx test r9b, r9b cmovz rax, rdx mov [rbp+var_70], rax movsxd rdx, eax mov [rbp+var_78], r8 movsxd r9, r8d mov eax, 1 mov edi, 1 sub rdi, rsi mov [rbp+var_60], rdi sub rax, rcx mov [rbp+var_68], rax xor r13d, r13d lea r14, _sort_order_win1250ch2 mov r15, rsi mov r12, rcx xor ebx, ebx mov [rbp+var_48], rcx mov [rbp+var_58], rsi loc_D90EE: mov rax, r15 sub rax, rsi cmp rax, rdx jge short loc_D9106 test r13d, r13d jz short loc_D9134 mov r8d, 9 jmp short loc_D912F loc_D9106: test r13d, r13d setz r8b cmp dword ptr [rbp+var_70], 0 setnle dil xor eax, eax test dil, r8b jz loc_D91FA mov r13d, 1 mov r8d, 9 mov r15, rsi loc_D912F: mov rax, r14 jmp short loc_D9144 loc_D9134: xor r13d, r13d mov r8d, 8 lea rax, _sort_order_win1250ch1 loc_D9144: movzx edi, byte ptr [r15] mov al, [rax+rdi] cmp al, 0FFh jnz loc_D91F4 mov [rbp+var_50], r8 mov [rbp+var_38], r12 mov [rbp+var_2C], ebx mov [rbp+var_40], r13 mov r11, r15 sub r11, rsi mov rax, [rbp+var_60] lea rcx, [rax+r15] xor edi, edi mov r12, r15 loc_D9175: mov r8, rdi shl r8, 4 lea rax, doubles_0 mov r13, [r8+rax] mov r10b, [r13+0] test r10b, r10b jz short loc_D91BB cmp r11, rdx jge short loc_D91BB inc r13 mov rbx, rcx loc_D919B: cmp r10b, [r15] jnz short loc_D91C0 inc r15 mov r10b, [r13+0] test r10b, r10b jz short loc_D91BB lea rax, [rbx+1] inc r13 cmp rbx, rdx mov rbx, rax jl short loc_D919B loc_D91BB: test r10b, r10b jz short loc_D91D0 loc_D91C0: inc rdi cmp rdi, 50h ; 'P' mov r15, r12 jnz short loc_D9175 mov al, 0FFh jmp short loc_D91E5 loc_D91D0: lea rax, doubles_0 add r8, rax mov rax, [rbp+var_50] mov al, [r8+rax] dec r15 loc_D91E5: mov rcx, [rbp+var_48] mov r13, [rbp+var_40] mov ebx, [rbp+var_2C] mov r12, [rbp+var_38] loc_D91F4: movzx eax, al inc r15 loc_D91FA: mov rdi, r12 sub rdi, rcx cmp rdi, r9 jge short loc_D9211 test ebx, ebx jz short loc_D923E mov r10d, 9 jmp short loc_D9239 loc_D9211: test ebx, ebx setz dil cmp dword ptr [rbp+var_78], 0 setnle r8b xor r10d, r10d test r8b, dil jz loc_D9338 mov ebx, 1 mov r10d, 9 mov r12, rcx loc_D9239: mov r8, r14 jmp short loc_D924D loc_D923E: xor ebx, ebx mov r10d, 8 lea r8, _sort_order_win1250ch1 loc_D924D: movzx edi, byte ptr [r12] mov dil, [r8+rdi] cmp dil, 0FFh jnz loc_D9331 mov [rbp+var_50], r10 mov [rbp+var_38], r15 mov [rbp+var_2C], ebx mov [rbp+var_40], r13 mov r14, r12 sub r14, rcx mov rcx, [rbp+var_68] mov r11, r12 lea rsi, [rcx+r12] xor r8d, r8d loc_D9283: mov r15, r8 shl r15, 4 lea rcx, doubles_0 mov rbx, [r15+rcx] mov r13b, [rbx] test r13b, r13b jz short loc_D92CC cmp r14, r9 jge short loc_D92CC inc rbx mov rdi, rsi mov r10, r11 loc_D92AB: cmp r13b, [r10] jnz short loc_D92D4 inc r10 mov r13b, [rbx] test r13b, r13b jz short loc_D92CF lea r12, [rdi+1] inc rbx cmp rdi, r9 mov rdi, r12 jl short loc_D92AB jmp short loc_D92CF loc_D92CC: mov r10, r11 loc_D92CF: test r13b, r13b jz short loc_D92FF loc_D92D4: inc r8 cmp r8, 50h ; 'P' jnz short loc_D9283 mov dil, 0FFh mov rcx, [rbp+var_48] mov rsi, [rbp+var_58] lea r14, _sort_order_win1250ch2 mov r13, [rbp+var_40] mov ebx, [rbp+var_2C] mov r15, [rbp+var_38] mov r12, r11 jmp short loc_D9331 loc_D92FF: lea rcx, doubles_0 add r15, rcx mov rcx, [rbp+var_50] mov dil, [r15+rcx] dec r10 mov r12, r10 mov rcx, [rbp+var_48] mov rsi, [rbp+var_58] lea r14, _sort_order_win1250ch2 mov r13, [rbp+var_40] mov ebx, [rbp+var_2C] mov r15, [rbp+var_38] loc_D9331: movzx r10d, dil inc r12 loc_D9338: test eax, eax jz short loc_D9345 cmp eax, r10d jz loc_D90EE loc_D9345: sub eax, r10d pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strnncoll_win1250ch( long long a1, _BYTE *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5, char a6) { int v6; // eax long long v7; // rdx long long v8; // r9 long long v9; // r13 _BYTE *v10; // r15 unsigned __int8 *v11; // r12 int v12; // ebx long long v13; // r8 _BYTE *v14; // rax _BYTE *v15; // r11 _BYTE *v16; // rcx long long v17; // rdi _BYTE *v18; // r12 char *v19; // r13 char v20; // r10 char *v21; // r13 _BYTE *v22; // rbx bool v23; // cc long long v24; // r10 int v25; // r10d _BYTE *v26; // r8 unsigned __int8 v27; // di long long v28; // r8 char *v29; // rbx char v30; // r13 char *v31; // rbx unsigned __int8 *v32; // rdi _BYTE *v33; // r10 int v35; // [rsp+0h] [rbp-78h] int v36; // [rsp+8h] [rbp-70h] long long v37; // [rsp+10h] [rbp-68h] long long v38; // [rsp+18h] [rbp-60h] _BYTE *v39; // [rsp+20h] [rbp-58h] long long v40; // [rsp+28h] [rbp-50h] unsigned __int8 *v41; // [rsp+30h] [rbp-48h] long long v42; // [rsp+38h] [rbp-40h] long long v43; // [rsp+38h] [rbp-40h] unsigned __int8 *v44; // [rsp+40h] [rbp-38h] int v45; // [rsp+4Ch] [rbp-2Ch] int v46; // [rsp+4Ch] [rbp-2Ch] v6 = a5; if ( a3 < a5 ) v6 = a3; if ( !a6 ) v6 = a3; v36 = v6; v7 = v6; v35 = a5; v8 = (int)a5; v38 = 1LL - (_QWORD)a2; v37 = 1LL - (_QWORD)a4; v9 = 0LL; v10 = a2; v11 = a4; v12 = 0; v41 = a4; v39 = a2; do { if ( v10 - a2 >= v7 ) { LODWORD(v14) = 0; if ( (_DWORD)v9 != 0 || v36 <= 0 ) goto LABEL_27; v9 = 1LL; v13 = 9LL; v10 = a2; } else { if ( !(_DWORD)v9 ) { v9 = 0LL; v13 = 8LL; v14 = &sort_order_win1250ch1; goto LABEL_13; } v13 = 9LL; } v14 = &sort_order_win1250ch2; LABEL_13: LOBYTE(v14) = v14[(unsigned __int8)*v10]; if ( (_BYTE)v14 != 0xFF ) goto LABEL_26; v44 = v11; v45 = v12; v42 = v9; v15 = (_BYTE *)(v10 - a2); v16 = &v10[v38]; v17 = 0LL; v18 = v10; while ( 1 ) { v19 = (char *)*(&doubles_0 + 2 * v17); v20 = *v19; if ( *v19 && (long long)v15 < v7 ) { v21 = v19 + 1; v22 = v16; while ( v20 == *v10 ) { ++v10; v20 = *v21; if ( *v21 ) { ++v21; v23 = (long long)v22++ < v7; if ( v23 ) continue; } goto LABEL_21; } goto LABEL_22; } LABEL_21: if ( !v20 ) break; LABEL_22: ++v17; v10 = v18; if ( v17 == 80 ) { LOBYTE(v14) = -1; goto LABEL_25; } } LOBYTE(v14) = *((_BYTE *)&doubles_0 + 16 * v17 + v13); --v10; LABEL_25: a4 = v41; v9 = v42; v12 = v45; v11 = v44; LABEL_26: LODWORD(v14) = (unsigned __int8)v14; ++v10; LABEL_27: if ( v11 - a4 >= v8 ) { v25 = 0; if ( v12 != 0 || v35 <= 0 ) continue; v12 = 1; v24 = 9LL; v11 = a4; LABEL_32: v26 = &sort_order_win1250ch2; } else { if ( v12 ) { v24 = 9LL; goto LABEL_32; } v12 = 0; v24 = 8LL; v26 = &sort_order_win1250ch1; } v27 = v26[*v11]; if ( v27 != 0xFF ) goto LABEL_48; v40 = v24; v46 = v12; v43 = v9; v28 = 0LL; while ( 2 ) { v29 = (char *)*(&doubles_0 + 2 * v28); v30 = *v29; if ( *v29 && v11 - a4 < v8 ) { v31 = v29 + 1; v32 = &v11[v37]; v33 = v11; while ( v30 == *v33 ) { ++v33; v30 = *v31; if ( *v31 ) { ++v31; v23 = (long long)v32++ < v8; if ( v23 ) continue; } goto LABEL_44; } goto LABEL_45; } v33 = v11; LABEL_44: if ( v30 ) { LABEL_45: if ( ++v28 == 80 ) { v27 = -1; a4 = v41; a2 = v39; v9 = v43; v12 = v46; goto LABEL_48; } continue; } break; } v27 = *((_BYTE *)&doubles_0 + 16 * v28 + v40); v11 = v33 - 1; a4 = v41; a2 = v39; v9 = v43; v12 = v46; LABEL_48: v25 = v27; ++v11; } while ( (_DWORD)v14 && (_DWORD)v14 == v25 ); return (unsigned int)((_DWORD)v14 - v25); }
my_strnncoll_win1250ch: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX CMP RDX,R8 MOV RAX,R8 CMOVC RAX,RDX TEST R9B,R9B CMOVZ RAX,RDX MOV qword ptr [RBP + -0x70],RAX MOVSXD RDX,EAX MOV qword ptr [RBP + -0x78],R8 MOVSXD R9,R8D MOV EAX,0x1 MOV EDI,0x1 SUB RDI,RSI MOV qword ptr [RBP + -0x60],RDI SUB RAX,RCX MOV qword ptr [RBP + -0x68],RAX XOR R13D,R13D LEA R14,[0x464bf0] MOV R15,RSI MOV R12,RCX XOR EBX,EBX MOV qword ptr [RBP + -0x48],RCX MOV qword ptr [RBP + -0x58],RSI LAB_001d90ee: MOV RAX,R15 SUB RAX,RSI CMP RAX,RDX JGE 0x001d9106 TEST R13D,R13D JZ 0x001d9134 MOV R8D,0x9 JMP 0x001d912f LAB_001d9106: TEST R13D,R13D SETZ R8B CMP dword ptr [RBP + -0x70],0x0 SETG DIL XOR EAX,EAX TEST DIL,R8B JZ 0x001d91fa MOV R13D,0x1 MOV R8D,0x9 MOV R15,RSI LAB_001d912f: MOV RAX,R14 JMP 0x001d9144 LAB_001d9134: XOR R13D,R13D MOV R8D,0x8 LEA RAX,[0x464af0] LAB_001d9144: MOVZX EDI,byte ptr [R15] MOV AL,byte ptr [RAX + RDI*0x1] CMP AL,0xff JNZ 0x001d91f4 MOV qword ptr [RBP + -0x50],R8 MOV qword ptr [RBP + -0x38],R12 MOV dword ptr [RBP + -0x2c],EBX MOV qword ptr [RBP + -0x40],R13 MOV R11,R15 SUB R11,RSI MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[RAX + R15*0x1] XOR EDI,EDI MOV R12,R15 LAB_001d9175: MOV R8,RDI SHL R8,0x4 LEA RAX,[0x48d2a0] MOV R13,qword ptr [R8 + RAX*0x1] MOV R10B,byte ptr [R13] TEST R10B,R10B JZ 0x001d91bb CMP R11,RDX JGE 0x001d91bb INC R13 MOV RBX,RCX LAB_001d919b: CMP R10B,byte ptr [R15] JNZ 0x001d91c0 INC R15 MOV R10B,byte ptr [R13] TEST R10B,R10B JZ 0x001d91bb LEA RAX,[RBX + 0x1] INC R13 CMP RBX,RDX MOV RBX,RAX JL 0x001d919b LAB_001d91bb: TEST R10B,R10B JZ 0x001d91d0 LAB_001d91c0: INC RDI CMP RDI,0x50 MOV R15,R12 JNZ 0x001d9175 MOV AL,0xff JMP 0x001d91e5 LAB_001d91d0: LEA RAX,[0x48d2a0] ADD R8,RAX MOV RAX,qword ptr [RBP + -0x50] MOV AL,byte ptr [R8 + RAX*0x1] DEC R15 LAB_001d91e5: MOV RCX,qword ptr [RBP + -0x48] MOV R13,qword ptr [RBP + -0x40] MOV EBX,dword ptr [RBP + -0x2c] MOV R12,qword ptr [RBP + -0x38] LAB_001d91f4: MOVZX EAX,AL INC R15 LAB_001d91fa: MOV RDI,R12 SUB RDI,RCX CMP RDI,R9 JGE 0x001d9211 TEST EBX,EBX JZ 0x001d923e MOV R10D,0x9 JMP 0x001d9239 LAB_001d9211: TEST EBX,EBX SETZ DIL CMP dword ptr [RBP + -0x78],0x0 SETG R8B XOR R10D,R10D TEST R8B,DIL JZ 0x001d9338 MOV EBX,0x1 MOV R10D,0x9 MOV R12,RCX LAB_001d9239: MOV R8,R14 JMP 0x001d924d LAB_001d923e: XOR EBX,EBX MOV R10D,0x8 LEA R8,[0x464af0] LAB_001d924d: MOVZX EDI,byte ptr [R12] MOV DIL,byte ptr [R8 + RDI*0x1] CMP DIL,0xff JNZ 0x001d9331 MOV qword ptr [RBP + -0x50],R10 MOV qword ptr [RBP + -0x38],R15 MOV dword ptr [RBP + -0x2c],EBX MOV qword ptr [RBP + -0x40],R13 MOV R14,R12 SUB R14,RCX MOV RCX,qword ptr [RBP + -0x68] MOV R11,R12 LEA RSI,[RCX + R12*0x1] XOR R8D,R8D LAB_001d9283: MOV R15,R8 SHL R15,0x4 LEA RCX,[0x48d2a0] MOV RBX,qword ptr [R15 + RCX*0x1] MOV R13B,byte ptr [RBX] TEST R13B,R13B JZ 0x001d92cc CMP R14,R9 JGE 0x001d92cc INC RBX MOV RDI,RSI MOV R10,R11 LAB_001d92ab: CMP R13B,byte ptr [R10] JNZ 0x001d92d4 INC R10 MOV R13B,byte ptr [RBX] TEST R13B,R13B JZ 0x001d92cf LEA R12,[RDI + 0x1] INC RBX CMP RDI,R9 MOV RDI,R12 JL 0x001d92ab JMP 0x001d92cf LAB_001d92cc: MOV R10,R11 LAB_001d92cf: TEST R13B,R13B JZ 0x001d92ff LAB_001d92d4: INC R8 CMP R8,0x50 JNZ 0x001d9283 MOV DIL,0xff MOV RCX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x58] LEA R14,[0x464bf0] MOV R13,qword ptr [RBP + -0x40] MOV EBX,dword ptr [RBP + -0x2c] MOV R15,qword ptr [RBP + -0x38] MOV R12,R11 JMP 0x001d9331 LAB_001d92ff: LEA RCX,[0x48d2a0] ADD R15,RCX MOV RCX,qword ptr [RBP + -0x50] MOV DIL,byte ptr [R15 + RCX*0x1] DEC R10 MOV R12,R10 MOV RCX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x58] LEA R14,[0x464bf0] MOV R13,qword ptr [RBP + -0x40] MOV EBX,dword ptr [RBP + -0x2c] MOV R15,qword ptr [RBP + -0x38] LAB_001d9331: MOVZX R10D,DIL INC R12 LAB_001d9338: TEST EAX,EAX JZ 0x001d9345 CMP EAX,R10D JZ 0x001d90ee LAB_001d9345: SUB EAX,R10D POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int my_strnncoll_win1250ch (int8 param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5, char param_6) { bool bVar1; bool bVar2; byte *pbVar3; byte *pbVar4; byte *pbVar5; byte bVar6; int iVar7; ulong uVar9; int1 *puVar10; long lVar11; int iVar12; uint uVar13; long lVar14; byte *pbVar15; byte *pbVar16; byte *pbVar17; byte *pbVar18; uint uVar8; uVar9 = param_5; if (param_3 < param_5) { uVar9 = param_3; } if (param_6 == '\0') { uVar9 = param_3; } iVar7 = (int)uVar9; iVar12 = (int)param_5; bVar2 = false; bVar1 = false; pbVar15 = param_4; pbVar18 = param_2; do { if ((long)pbVar18 - (long)param_2 < (long)iVar7) { if (bVar2) { LAB_001d912f: lVar14 = 9; puVar10 = _sort_order_win1250ch2; } else { bVar2 = false; lVar14 = 8; puVar10 = _sort_order_win1250ch1; } bVar6 = puVar10[*pbVar18]; if (bVar6 == 0xff) { lVar11 = 0; do { pbVar16 = (&doubles)[lVar11 * 2]; bVar6 = *pbVar16; pbVar17 = pbVar18; pbVar5 = pbVar18 + (1 - (long)param_2); pbVar4 = pbVar18 + -(long)param_2; if (bVar6 != 0) { while (pbVar3 = pbVar5, (long)pbVar4 < (long)iVar7) { pbVar16 = pbVar16 + 1; if (bVar6 != *pbVar17) goto LAB_001d91c0; pbVar17 = pbVar17 + 1; bVar6 = *pbVar16; if (bVar6 == 0) break; pbVar5 = pbVar3 + 1; pbVar4 = pbVar3; } } if (bVar6 == 0) { bVar6 = *(byte *)((long)&doubles + lVar14 + lVar11 * 0x10); pbVar18 = pbVar17 + -1; goto LAB_001d91f4; } LAB_001d91c0: lVar11 = lVar11 + 1; } while (lVar11 != 0x50); bVar6 = 0xff; } LAB_001d91f4: uVar8 = (uint)bVar6; pbVar18 = pbVar18 + 1; } else { uVar8 = 0; if (0 < iVar7 && !bVar2) { bVar2 = true; pbVar18 = param_2; goto LAB_001d912f; } } if ((long)pbVar15 - (long)param_4 < (long)iVar12) { if (bVar1) { LAB_001d9239: lVar14 = 9; puVar10 = _sort_order_win1250ch2; } else { bVar1 = false; lVar14 = 8; puVar10 = _sort_order_win1250ch1; } bVar6 = puVar10[*pbVar15]; if (bVar6 == 0xff) { lVar11 = 0; do { pbVar16 = (&doubles)[lVar11 * 2]; bVar6 = *pbVar16; pbVar17 = pbVar15; pbVar5 = pbVar15 + (1 - (long)param_4); pbVar4 = pbVar15 + -(long)param_4; if (bVar6 != 0) { while (pbVar3 = pbVar5, (long)pbVar4 < (long)iVar12) { pbVar16 = pbVar16 + 1; if (bVar6 != *pbVar17) goto LAB_001d92d4; pbVar17 = pbVar17 + 1; bVar6 = *pbVar16; if (bVar6 == 0) break; pbVar5 = pbVar3 + 1; pbVar4 = pbVar3; } } if (bVar6 == 0) { bVar6 = *(byte *)((long)&doubles + lVar14 + lVar11 * 0x10); pbVar15 = pbVar17 + -1; goto LAB_001d9331; } LAB_001d92d4: lVar11 = lVar11 + 1; } while (lVar11 != 0x50); bVar6 = 0xff; } LAB_001d9331: uVar13 = (uint)bVar6; pbVar15 = pbVar15 + 1; } else { uVar13 = 0; if (0 < iVar12 && !bVar1) { bVar1 = true; pbVar15 = param_4; goto LAB_001d9239; } } if ((uVar8 == 0) || (uVar8 != uVar13)) { return uVar8 - uVar13; } } while( true ); }
33,330
rlReadScreenPixels
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
unsigned char *rlReadScreenPixels(int width, int height) { unsigned char *screenData = (unsigned char *)RL_CALLOC(width*height*4, sizeof(unsigned char)); // NOTE 1: glReadPixels returns image flipped vertically -> (0,0) is the bottom left corner of the framebuffer // NOTE 2: We are getting alpha channel! Be careful, it can be transparent if not cleared properly! glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, screenData); // Flip image vertically! unsigned char *imgData = (unsigned char *)RL_MALLOC(width*height*4*sizeof(unsigned char)); for (int y = height - 1; y >= 0; y--) { for (int x = 0; x < (width*4); x++) { imgData[((height - 1) - y)*width*4 + x] = screenData[(y*width*4) + x]; // Flip line // Set alpha component value to 255 (no trasparent image retrieval) // NOTE: Alpha value has already been applied to RGB in framebuffer, we don't need it! if (((x + 1)%4) == 0) imgData[((height - 1) - y)*width*4 + x] = 255; } } RL_FREE(screenData); return imgData; // NOTE: image data should be freed }
O0
c
rlReadScreenPixels: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) movl -0x4(%rbp), %eax imull -0x8(%rbp), %eax shll $0x2, %eax movslq %eax, %rdi movl $0x1, %esi callq 0xa340 movq %rax, -0x10(%rbp) movq 0x1631c0(%rip), %rax # 0x2197b0 movl -0x4(%rbp), %edx movl -0x8(%rbp), %ecx movq -0x10(%rbp), %r10 xorl %esi, %esi movl $0x1908, %r8d # imm = 0x1908 movl $0x1401, %r9d # imm = 0x1401 movl %esi, %edi movq %r10, (%rsp) callq *%rax movl -0x4(%rbp), %eax imull -0x8(%rbp), %eax shll $0x2, %eax movslq %eax, %rdi shlq $0x0, %rdi callq 0xa6e0 movq %rax, -0x18(%rbp) movl -0x8(%rbp), %eax subl $0x1, %eax movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) jl 0xb66d3 movl $0x0, -0x20(%rbp) movl -0x20(%rbp), %eax movl -0x4(%rbp), %ecx shll $0x2, %ecx cmpl %ecx, %eax jge 0xb66c3 movq -0x10(%rbp), %rax movl -0x1c(%rbp), %ecx imull -0x4(%rbp), %ecx shll $0x2, %ecx addl -0x20(%rbp), %ecx movslq %ecx, %rcx movb (%rax,%rcx), %dl movq -0x18(%rbp), %rax movl -0x8(%rbp), %ecx subl $0x1, %ecx subl -0x1c(%rbp), %ecx imull -0x4(%rbp), %ecx shll $0x2, %ecx addl -0x20(%rbp), %ecx movslq %ecx, %rcx movb %dl, (%rax,%rcx) movl -0x20(%rbp), %eax addl $0x1, %eax movl $0x4, %ecx cltd idivl %ecx cmpl $0x0, %edx jne 0xb66b6 movq -0x18(%rbp), %rax movl -0x8(%rbp), %ecx subl $0x1, %ecx subl -0x1c(%rbp), %ecx imull -0x4(%rbp), %ecx shll $0x2, %ecx addl -0x20(%rbp), %ecx movslq %ecx, %rcx movb $-0x1, (%rax,%rcx) jmp 0xb66b8 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0xb6644 jmp 0xb66c5 movl -0x1c(%rbp), %eax addl $-0x1, %eax movl %eax, -0x1c(%rbp) jmp 0xb6633 movq -0x10(%rbp), %rdi callq 0xa640 movq -0x18(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
rlReadScreenPixels: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_8], esi mov eax, [rbp+var_4] imul eax, [rbp+var_8] shl eax, 2 movsxd rdi, eax mov esi, 1 call _calloc mov [rbp+var_10], rax mov rax, cs:glad_glReadPixels mov edx, [rbp+var_4] mov ecx, [rbp+var_8] mov r10, [rbp+var_10] xor esi, esi mov r8d, 1908h mov r9d, 1401h mov edi, esi mov [rsp+30h+var_30], r10 call rax ; glad_glReadPixels mov eax, [rbp+var_4] imul eax, [rbp+var_8] shl eax, 2 movsxd rdi, eax shl rdi, 0 call _malloc mov [rbp+var_18], rax mov eax, [rbp+var_8] sub eax, 1 mov [rbp+var_1C], eax loc_B6633: cmp [rbp+var_1C], 0 jl loc_B66D3 mov [rbp+var_20], 0 loc_B6644: mov eax, [rbp+var_20] mov ecx, [rbp+var_4] shl ecx, 2 cmp eax, ecx jge short loc_B66C3 mov rax, [rbp+var_10] mov ecx, [rbp+var_1C] imul ecx, [rbp+var_4] shl ecx, 2 add ecx, [rbp+var_20] movsxd rcx, ecx mov dl, [rax+rcx] mov rax, [rbp+var_18] mov ecx, [rbp+var_8] sub ecx, 1 sub ecx, [rbp+var_1C] imul ecx, [rbp+var_4] shl ecx, 2 add ecx, [rbp+var_20] movsxd rcx, ecx mov [rax+rcx], dl mov eax, [rbp+var_20] add eax, 1 mov ecx, 4 cdq idiv ecx cmp edx, 0 jnz short loc_B66B6 mov rax, [rbp+var_18] mov ecx, [rbp+var_8] sub ecx, 1 sub ecx, [rbp+var_1C] imul ecx, [rbp+var_4] shl ecx, 2 add ecx, [rbp+var_20] movsxd rcx, ecx mov byte ptr [rax+rcx], 0FFh loc_B66B6: jmp short $+2 loc_B66B8: mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax jmp short loc_B6644 loc_B66C3: jmp short $+2 loc_B66C5: mov eax, [rbp+var_1C] add eax, 0FFFFFFFFh mov [rbp+var_1C], eax jmp loc_B6633 loc_B66D3: mov rdi, [rbp+var_10] call _free mov rax, [rbp+var_18] add rsp, 30h pop rbp retn
long long rlReadScreenPixels(unsigned int a1, unsigned int a2) { int j; // [rsp+10h] [rbp-20h] int i; // [rsp+14h] [rbp-1Ch] long long v5; // [rsp+18h] [rbp-18h] long long v6; // [rsp+20h] [rbp-10h] v6 = calloc((int)(4 * a2 * a1), 1LL); glad_glReadPixels(0LL, 0LL, a1, a2, 6408LL, 5121LL, v6); v5 = malloc((int)(4 * a2 * a1)); for ( i = a2 - 1; i >= 0; --i ) { for ( j = 0; j < (int)(4 * a1); ++j ) { *(_BYTE *)(v5 + (int)(j + 4 * a1 * (a2 - 1 - i))) = *(_BYTE *)(v6 + (int)(j + 4 * a1 * i)); if ( !((j + 1) % 4) ) *(_BYTE *)(v5 + (int)(j + 4 * a1 * (a2 - 1 - i))) = -1; } } free(v6); return v5; }
rlReadScreenPixels: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV dword ptr [RBP + -0x8],ESI MOV EAX,dword ptr [RBP + -0x4] IMUL EAX,dword ptr [RBP + -0x8] SHL EAX,0x2 MOVSXD RDI,EAX MOV ESI,0x1 CALL 0x0010a340 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [0x003197b0] MOV EDX,dword ptr [RBP + -0x4] MOV ECX,dword ptr [RBP + -0x8] MOV R10,qword ptr [RBP + -0x10] XOR ESI,ESI MOV R8D,0x1908 MOV R9D,0x1401 MOV EDI,ESI MOV qword ptr [RSP],R10 CALL RAX MOV EAX,dword ptr [RBP + -0x4] IMUL EAX,dword ptr [RBP + -0x8] SHL EAX,0x2 MOVSXD RDI,EAX SHL RDI,0x0 CALL 0x0010a6e0 MOV qword ptr [RBP + -0x18],RAX MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX LAB_001b6633: CMP dword ptr [RBP + -0x1c],0x0 JL 0x001b66d3 MOV dword ptr [RBP + -0x20],0x0 LAB_001b6644: MOV EAX,dword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x4] SHL ECX,0x2 CMP EAX,ECX JGE 0x001b66c3 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x1c] IMUL ECX,dword ptr [RBP + -0x4] SHL ECX,0x2 ADD ECX,dword ptr [RBP + -0x20] MOVSXD RCX,ECX MOV DL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x8] SUB ECX,0x1 SUB ECX,dword ptr [RBP + -0x1c] IMUL ECX,dword ptr [RBP + -0x4] SHL ECX,0x2 ADD ECX,dword ptr [RBP + -0x20] MOVSXD RCX,ECX MOV byte ptr [RAX + RCX*0x1],DL MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV ECX,0x4 CDQ IDIV ECX CMP EDX,0x0 JNZ 0x001b66b6 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x8] SUB ECX,0x1 SUB ECX,dword ptr [RBP + -0x1c] IMUL ECX,dword ptr [RBP + -0x4] SHL ECX,0x2 ADD ECX,dword ptr [RBP + -0x20] MOVSXD RCX,ECX MOV byte ptr [RAX + RCX*0x1],0xff LAB_001b66b6: JMP 0x001b66b8 LAB_001b66b8: MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX JMP 0x001b6644 LAB_001b66c3: JMP 0x001b66c5 LAB_001b66c5: MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,-0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001b6633 LAB_001b66d3: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0010a640 MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x30 POP RBP RET
void * rlReadScreenPixels(int param_1,int param_2) { void *__ptr; void *pvVar1; int4 local_28; int4 local_24; __ptr = calloc((long)(param_1 * param_2 * 4),1); (*glad_glReadPixels)(0,0,param_1,param_2,0x1908,0x1401,__ptr); pvVar1 = malloc((long)(param_1 * param_2 * 4)); for (local_24 = param_2 + -1; -1 < local_24; local_24 = local_24 + -1) { for (local_28 = 0; local_28 < param_1 * 4; local_28 = local_28 + 1) { *(int1 *)((long)pvVar1 + (long)(((param_2 + -1) - local_24) * param_1 * 4 + local_28)) = *(int1 *)((long)__ptr + (long)(local_24 * param_1 * 4 + local_28)); if ((local_28 + 1) % 4 == 0) { *(int1 *)((long)pvVar1 + (long)(((param_2 + -1) - local_24) * param_1 * 4 + local_28)) = 0xff; } } } free(__ptr); return pvVar1; }
33,331
rlReadScreenPixels
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
unsigned char *rlReadScreenPixels(int width, int height) { unsigned char *screenData = (unsigned char *)RL_CALLOC(width*height*4, sizeof(unsigned char)); // NOTE 1: glReadPixels returns image flipped vertically -> (0,0) is the bottom left corner of the framebuffer // NOTE 2: We are getting alpha channel! Be careful, it can be transparent if not cleared properly! glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, screenData); // Flip image vertically! unsigned char *imgData = (unsigned char *)RL_MALLOC(width*height*4*sizeof(unsigned char)); for (int y = height - 1; y >= 0; y--) { for (int x = 0; x < (width*4); x++) { imgData[((height - 1) - y)*width*4 + x] = screenData[(y*width*4) + x]; // Flip line // Set alpha component value to 255 (no trasparent image retrieval) // NOTE: Alpha value has already been applied to RGB in framebuffer, we don't need it! if (((x + 1)%4) == 0) imgData[((height - 1) - y)*width*4 + x] = 255; } } RL_FREE(screenData); return imgData; // NOTE: image data should be freed }
O2
c
rlReadScreenPixels: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %esi, %ebp movl %edi, %r15d leal (,%r15,4), %r13d movq %r15, 0x10(%rsp) movl %r13d, %eax imull %esi, %eax movslq %eax, %rdi movq %rdi, 0x8(%rsp) pushq $0x1 popq %rbx movq %rbx, %rsi callq 0x9320 movq %rax, %r14 movq %rax, (%rsp) xorl %r12d, %r12d xorl %edi, %edi xorl %esi, %esi movl %r15d, %edx movl %ebp, %ecx movl $0x1908, %r8d # imm = 0x1908 movl $0x1401, %r9d # imm = 0x1401 callq *0xd18e0(%rip) # 0x126710 movq 0x8(%rsp), %rdi callq 0x96e0 movq %rax, %r15 decl %ebp testl %r13d, %r13d movl $0x0, %eax cmovgl %r13d, %eax movslq %ebp, %rcx movl %ecx, %edx imull 0x10(%rsp), %edx shll $0x2, %edx negq %rax testq %rcx, %rcx js 0x54ea7 movslq %r12d, %rsi addq %r15, %rsi movslq %edx, %rdi addq %r14, %rdi movq %rbx, %r8 leaq (%rax,%r8), %r9 cmpq $0x1, %r9 je 0x54e9c movl %r8d, %r9d andl $0x3, %r9d cmpq $0x1, %r9 movl $0x0, %r9d sbbl %r9d, %r9d orb -0x1(%rdi,%r8), %r9b movb %r9b, -0x1(%rsi,%r8) incq %r8 jmp 0x54e6f decq %rcx addl %r13d, %r12d subl %r13d, %edx jmp 0x54e5b movq %r14, %rdi callq 0x9640 movq %r15, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
rlReadScreenPixels: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, esi mov r15d, edi lea r13d, ds:0[r15*4] mov [rsp+48h+var_38], r15 mov eax, r13d imul eax, esi movsxd rdi, eax mov [rsp+48h+var_40], rdi push 1 pop rbx mov rsi, rbx call _calloc mov r14, rax mov [rsp+48h+var_48], rax xor r12d, r12d xor edi, edi xor esi, esi mov edx, r15d mov ecx, ebp mov r8d, 1908h mov r9d, 1401h call cs:glad_glReadPixels mov rdi, [rsp+48h+var_40] call _malloc mov r15, rax dec ebp test r13d, r13d mov eax, 0 cmovg eax, r13d movsxd rcx, ebp mov edx, ecx imul edx, dword ptr [rsp+48h+var_38] shl edx, 2 neg rax loc_54E5B: test rcx, rcx js short loc_54EA7 movsxd rsi, r12d add rsi, r15 movsxd rdi, edx add rdi, r14 mov r8, rbx loc_54E6F: lea r9, [rax+r8] cmp r9, 1 jz short loc_54E9C mov r9d, r8d and r9d, 3 cmp r9, 1 mov r9d, 0 sbb r9d, r9d or r9b, [rdi+r8-1] mov [rsi+r8-1], r9b inc r8 jmp short loc_54E6F loc_54E9C: dec rcx add r12d, r13d sub edx, r13d jmp short loc_54E5B loc_54EA7: mov rdi, r14 call _free mov rax, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long rlReadScreenPixels(unsigned int a1, unsigned int a2) { unsigned int v2; // r13d long long v3; // r14 int v4; // r12d long long v5; // r15 unsigned int v6; // ebp long long v7; // rax long long v8; // rcx int v9; // edx long long v10; // rax long long i; // r8 long long v13; // [rsp+8h] [rbp-40h] v2 = 4 * a1; v13 = (int)(a2 * 4 * a1); v3 = calloc(v13, 1LL); v4 = 0; glad_glReadPixels(0LL, 0LL, a1, a2, 6408LL, 5121LL, v3); v5 = malloc(v13); v6 = a2 - 1; v7 = 0LL; if ( (int)(4 * a1) > 0 ) v7 = v2; v8 = (int)v6; v9 = 4 * a1 * v6; v10 = -v7; while ( v8 >= 0 ) { for ( i = 1LL; v10 + i != 1; ++i ) *(_BYTE *)(v5 + v4 + i - 1) = (i & 3) == 0 ? -1 : *(_BYTE *)(v3 + v9 + i - 1); --v8; v4 += v2; v9 -= v2; } free(v3); return v5; }
rlReadScreenPixels: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,ESI MOV R15D,EDI LEA R13D,[R15*0x4] MOV qword ptr [RSP + 0x10],R15 MOV EAX,R13D IMUL EAX,ESI MOVSXD RDI,EAX MOV qword ptr [RSP + 0x8],RDI PUSH 0x1 POP RBX MOV RSI,RBX CALL 0x00109320 MOV R14,RAX MOV qword ptr [RSP],RAX XOR R12D,R12D XOR EDI,EDI XOR ESI,ESI MOV EDX,R15D MOV ECX,EBP MOV R8D,0x1908 MOV R9D,0x1401 CALL qword ptr [0x00226710] MOV RDI,qword ptr [RSP + 0x8] CALL 0x001096e0 MOV R15,RAX DEC EBP TEST R13D,R13D MOV EAX,0x0 CMOVG EAX,R13D MOVSXD RCX,EBP MOV EDX,ECX IMUL EDX,dword ptr [RSP + 0x10] SHL EDX,0x2 NEG RAX LAB_00154e5b: TEST RCX,RCX JS 0x00154ea7 MOVSXD RSI,R12D ADD RSI,R15 MOVSXD RDI,EDX ADD RDI,R14 MOV R8,RBX LAB_00154e6f: LEA R9,[RAX + R8*0x1] CMP R9,0x1 JZ 0x00154e9c MOV R9D,R8D AND R9D,0x3 CMP R9,0x1 MOV R9D,0x0 SBB R9D,R9D OR R9B,byte ptr [RDI + R8*0x1 + -0x1] MOV byte ptr [RSI + R8*0x1 + -0x1],R9B INC R8 JMP 0x00154e6f LAB_00154e9c: DEC RCX ADD R12D,R13D SUB EDX,R13D JMP 0x00154e5b LAB_00154ea7: MOV RDI,R14 CALL 0x00109640 MOV RAX,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void * rlReadScreenPixels(int param_1,int param_2) { void *__ptr; void *pvVar1; ulong uVar2; long lVar3; int iVar4; ulong uVar5; int iVar6; uint uVar7; uVar7 = param_1 * 4; __ptr = calloc((long)(int)(uVar7 * param_2),1); iVar6 = 0; (*glad_glReadPixels)(0,0,param_1,param_2,0x1908,0x1401,__ptr); pvVar1 = malloc((long)(int)(uVar7 * param_2)); uVar2 = 0; if (0 < (int)uVar7) { uVar2 = (ulong)uVar7; } iVar4 = (param_2 + -1) * param_1 * 4; for (lVar3 = (long)(param_2 + -1); -1 < lVar3; lVar3 = lVar3 + -1) { for (uVar5 = 1; uVar5 - uVar2 != 1; uVar5 = uVar5 + 1) { *(byte *)((long)pvVar1 + uVar5 + (long)iVar6 + -1) = -((uVar5 & 3) == 0) | *(byte *)((long)__ptr + uVar5 + (long)iVar4 + -1); } iVar6 = iVar6 + uVar7; iVar4 = iVar4 + param_1 * -4; } free(__ptr); return pvVar1; }
33,332
ma_dynstr_append_quoted
eloqsql/libmariadb/libmariadb/ma_string.c
my_bool ma_dynstr_append_quoted(DYNAMIC_STRING *str, const char *append, size_t len, char quote) { size_t additional= str->alloc_increment; size_t lim= additional; uint i; if (ma_dynstr_realloc(str, len + additional + 2)) return TRUE; str->str[str->length++]= quote; for (i= 0; i < len; i++) { register char c= append[i]; if (c == quote || c == '\\') { if (!lim) { if (ma_dynstr_realloc(str, additional)) return TRUE; lim= additional; } lim--; str->str[str->length++]= '\\'; } str->str[str->length++]= c; } str->str[str->length++]= quote; return FALSE; }
O0
c
ma_dynstr_append_quoted: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %cl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movb %al, -0x21(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi addq -0x30(%rbp), %rsi addq $0x2, %rsi callq 0x327a0 cmpb $0x0, %al je 0x329af movb $0x1, -0x1(%rbp) jmp 0x32aaa movb -0x21(%rbp), %dl movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rsi movq 0x8(%rsi), %rcx movq %rcx, %rdi addq $0x1, %rdi movq %rdi, 0x8(%rsi) movb %dl, (%rax,%rcx) movl $0x0, -0x3c(%rbp) movl -0x3c(%rbp), %eax cmpq -0x20(%rbp), %rax jae 0x32a86 movq -0x18(%rbp), %rax movl -0x3c(%rbp), %ecx movb (%rax,%rcx), %al movb %al, -0x3d(%rbp) movsbl -0x3d(%rbp), %eax movsbl -0x21(%rbp), %ecx cmpl %ecx, %eax je 0x32a05 movsbl -0x3d(%rbp), %eax cmpl $0x5c, %eax jne 0x32a58 cmpq $0x0, -0x38(%rbp) jne 0x32a2e movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rsi callq 0x327a0 cmpb $0x0, %al je 0x32a26 movb $0x1, -0x1(%rbp) jmp 0x32aaa movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax addq $-0x1, %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rdx movq 0x8(%rdx), %rcx movq %rcx, %rsi addq $0x1, %rsi movq %rsi, 0x8(%rdx) movb $0x5c, (%rax,%rcx) movb -0x3d(%rbp), %dl movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rsi movq 0x8(%rsi), %rcx movq %rcx, %rdi addq $0x1, %rdi movq %rdi, 0x8(%rsi) movb %dl, (%rax,%rcx) movl -0x3c(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) jmp 0x329d6 movb -0x21(%rbp), %dl movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rsi movq 0x8(%rsi), %rcx movq %rcx, %rdi addq $0x1, %rdi movq %rdi, 0x8(%rsi) movb %dl, (%rax,%rcx) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_dynstr_append_quoted: push rbp mov rbp, rsp sub rsp, 40h mov al, cl mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_21], al mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov [rbp+var_38], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] add rsi, [rbp+var_30] add rsi, 2 call ma_dynstr_realloc cmp al, 0 jz short loc_329AF mov [rbp+var_1], 1 jmp loc_32AAA loc_329AF: mov dl, [rbp+var_21] mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rbp+var_10] mov rcx, [rsi+8] mov rdi, rcx add rdi, 1 mov [rsi+8], rdi mov [rax+rcx], dl mov [rbp+var_3C], 0 loc_329D6: mov eax, [rbp+var_3C] cmp rax, [rbp+var_20] jnb loc_32A86 mov rax, [rbp+var_18] mov ecx, [rbp+var_3C] mov al, [rax+rcx] mov [rbp+var_3D], al movsx eax, [rbp+var_3D] movsx ecx, [rbp+var_21] cmp eax, ecx jz short loc_32A05 movsx eax, [rbp+var_3D] cmp eax, 5Ch ; '\' jnz short loc_32A58 loc_32A05: cmp [rbp+var_38], 0 jnz short loc_32A2E mov rdi, [rbp+var_10] mov rsi, [rbp+var_30] call ma_dynstr_realloc cmp al, 0 jz short loc_32A26 mov [rbp+var_1], 1 jmp loc_32AAA loc_32A26: mov rax, [rbp+var_30] mov [rbp+var_38], rax loc_32A2E: mov rax, [rbp+var_38] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_38], rax mov rax, [rbp+var_10] mov rax, [rax] mov rdx, [rbp+var_10] mov rcx, [rdx+8] mov rsi, rcx add rsi, 1 mov [rdx+8], rsi mov byte ptr [rax+rcx], 5Ch ; '\' loc_32A58: mov dl, [rbp+var_3D] mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rbp+var_10] mov rcx, [rsi+8] mov rdi, rcx add rdi, 1 mov [rsi+8], rdi mov [rax+rcx], dl mov eax, [rbp+var_3C] add eax, 1 mov [rbp+var_3C], eax jmp loc_329D6 loc_32A86: mov dl, [rbp+var_21] mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rbp+var_10] mov rcx, [rsi+8] mov rdi, rcx add rdi, 1 mov [rsi+8], rdi mov [rax+rcx], dl mov [rbp+var_1], 0 loc_32AAA: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char ma_dynstr_append_quoted(long long *a1, long long a2, unsigned long long a3, char a4) { long long v4; // rax long long v5; // rcx long long v6; // rax long long v7; // rcx long long v8; // rax long long v9; // rcx long long v10; // rax long long v11; // rcx char v13; // [rsp+3h] [rbp-3Dh] unsigned int i; // [rsp+4h] [rbp-3Ch] long long v15; // [rsp+8h] [rbp-38h] long long v16; // [rsp+10h] [rbp-30h] v16 = a1[3]; v15 = v16; if ( ma_dynstr_realloc(a1, v16 + a3 + 2) ) return 1; v4 = *a1; v5 = a1[1]; a1[1] = v5 + 1; *(_BYTE *)(v4 + v5) = a4; for ( i = 0; i < a3; ++i ) { v13 = *(_BYTE *)(a2 + i); if ( v13 == a4 || v13 == 92 ) { if ( !v15 ) { if ( ma_dynstr_realloc(a1, v16) ) return 1; v15 = v16; } --v15; v6 = *a1; v7 = a1[1]; a1[1] = v7 + 1; *(_BYTE *)(v6 + v7) = 92; } v8 = *a1; v9 = a1[1]; a1[1] = v9 + 1; *(_BYTE *)(v8 + v9) = v13; } v10 = *a1; v11 = a1[1]; a1[1] = v11 + 1; *(_BYTE *)(v10 + v11) = a4; return 0; }
ma_dynstr_append_quoted: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV AL,CL MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RBP + -0x21],AL MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,qword ptr [RBP + -0x30] ADD RSI,0x2 CALL 0x001327a0 CMP AL,0x0 JZ 0x001329af MOV byte ptr [RBP + -0x1],0x1 JMP 0x00132aaa LAB_001329af: MOV DL,byte ptr [RBP + -0x21] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RSI + 0x8] MOV RDI,RCX ADD RDI,0x1 MOV qword ptr [RSI + 0x8],RDI MOV byte ptr [RAX + RCX*0x1],DL MOV dword ptr [RBP + -0x3c],0x0 LAB_001329d6: MOV EAX,dword ptr [RBP + -0x3c] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00132a86 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x3c] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x3d],AL MOVSX EAX,byte ptr [RBP + -0x3d] MOVSX ECX,byte ptr [RBP + -0x21] CMP EAX,ECX JZ 0x00132a05 MOVSX EAX,byte ptr [RBP + -0x3d] CMP EAX,0x5c JNZ 0x00132a58 LAB_00132a05: CMP qword ptr [RBP + -0x38],0x0 JNZ 0x00132a2e MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x30] CALL 0x001327a0 CMP AL,0x0 JZ 0x00132a26 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00132aaa LAB_00132a26: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX LAB_00132a2e: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,-0x1 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RDX + 0x8] MOV RSI,RCX ADD RSI,0x1 MOV qword ptr [RDX + 0x8],RSI MOV byte ptr [RAX + RCX*0x1],0x5c LAB_00132a58: MOV DL,byte ptr [RBP + -0x3d] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RSI + 0x8] MOV RDI,RCX ADD RDI,0x1 MOV qword ptr [RSI + 0x8],RDI MOV byte ptr [RAX + RCX*0x1],DL MOV EAX,dword ptr [RBP + -0x3c] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX JMP 0x001329d6 LAB_00132a86: MOV DL,byte ptr [RBP + -0x21] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RSI + 0x8] MOV RDI,RCX ADD RDI,0x1 MOV qword ptr [RSI + 0x8],RDI MOV byte ptr [RAX + RCX*0x1],DL MOV byte ptr [RBP + -0x1],0x0 LAB_00132aaa: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 ma_dynstr_append_quoted(long *param_1,long param_2,ulong param_3,char param_4) { long lVar1; long lVar2; char cVar3; char cVar4; uint local_44; long local_40; int1 local_9; lVar1 = param_1[3]; cVar3 = ma_dynstr_realloc(param_1,param_3 + lVar1 + 2); if (cVar3 == '\0') { lVar2 = param_1[1]; param_1[1] = lVar2 + 1; *(char *)(*param_1 + lVar2) = param_4; local_40 = lVar1; for (local_44 = 0; local_44 < param_3; local_44 = local_44 + 1) { cVar3 = *(char *)(param_2 + (ulong)local_44); if ((cVar3 == param_4) || (cVar3 == '\\')) { if ((local_40 == 0) && (cVar4 = ma_dynstr_realloc(param_1,lVar1), local_40 = lVar1, cVar4 != '\0')) { return 1; } local_40 = local_40 + -1; lVar2 = param_1[1]; param_1[1] = lVar2 + 1; *(int1 *)(*param_1 + lVar2) = 0x5c; } lVar2 = param_1[1]; param_1[1] = lVar2 + 1; *(char *)(*param_1 + lVar2) = cVar3; } lVar1 = param_1[1]; param_1[1] = lVar1 + 1; *(char *)(*param_1 + lVar1) = param_4; local_9 = 0; } else { local_9 = 1; } return local_9; }
33,333
ma_init
eloqsql/libmariadb/libmariadb/ma_init.c
void ma_init(void) { if (ma_init_done) return; ma_init_done=1; { #ifdef _WIN32 my_win_init(); #endif return; } }
O3
c
ma_init: pushq %rbp movq %rsp, %rbp leaq 0x3e2dae(%rip), %rax # 0x45e669 cmpb $0x0, (%rax) jne 0x7b8c3 movb $0x1, (%rax) popq %rbp retq
ma_init: push rbp mov rbp, rsp lea rax, ma_init_done cmp byte ptr [rax], 0 jnz short loc_7B8C3 mov byte ptr [rax], 1 loc_7B8C3: pop rbp retn
void *ma_init() { void *result; // rax result = &ma_init_done; if ( !ma_init_done ) ma_init_done = 1; return result; }
ma_init: PUSH RBP MOV RBP,RSP LEA RAX,[0x55e669] CMP byte ptr [RAX],0x0 JNZ 0x0017b8c3 MOV byte ptr [RAX],0x1 LAB_0017b8c3: POP RBP RET
void ma_init(void) { if (ma_init_done == '\0') { ma_init_done = '\x01'; } return; }
33,334
register_global_classes()
eloqsql/storage/perfschema/pfs_instr_class.cc
void register_global_classes() { /* Table IO class */ init_instr_class(&global_table_io_class, "wait/io/table/sql/handler", 25, 0, PFS_CLASS_TABLE_IO); global_table_io_class.m_event_name_index= GLOBAL_TABLE_IO_EVENT_INDEX; configure_instr_class(&global_table_io_class); /* Table lock class */ init_instr_class(&global_table_lock_class, "wait/lock/table/sql/handler", 27, 0, PFS_CLASS_TABLE_LOCK); global_table_lock_class.m_event_name_index= GLOBAL_TABLE_LOCK_EVENT_INDEX; configure_instr_class(&global_table_lock_class); /* Idle class */ init_instr_class(&global_idle_class, "idle", 4, 0, PFS_CLASS_IDLE); global_idle_class.m_event_name_index= GLOBAL_IDLE_EVENT_INDEX; configure_instr_class(&global_idle_class); /* Metadata class */ init_instr_class(&global_metadata_class, "wait/lock/metadata/sql/mdl", 26, 0, PFS_CLASS_METADATA); global_metadata_class.m_event_name_index= GLOBAL_METADATA_EVENT_INDEX; global_metadata_class.m_enabled= false; /* Disabled by default */ global_metadata_class.m_timed= false; configure_instr_class(&global_metadata_class); /* Transaction class */ init_instr_class(&global_transaction_class, "transaction", 11, 0, PFS_CLASS_TRANSACTION); global_transaction_class.m_event_name_index= GLOBAL_TRANSACTION_INDEX; global_transaction_class.m_enabled= false; /* Disabled by default */ global_transaction_class.m_timed= false; configure_instr_class(&global_transaction_class); transaction_class_max= 1; /* used for sizing by other event classes */ }
O0
cpp
register_global_classes(): pushq %rbp movq %rsp, %rbp leaq 0x3cb7a5(%rip), %rdi # 0x40c980 leaq 0x6df83(%rip), %rsi # 0xaf165 movl $0x19, %edx xorl %ecx, %ecx movl $0xa, %r8d callq 0x41310 movl $0x0, 0x3cb792(%rip) # 0x40c990 leaq 0x3cb77b(%rip), %rdi # 0x40c980 callq 0x413b0 leaq 0x3cb82f(%rip), %rdi # 0x40ca40 leaq 0x6df67(%rip), %rsi # 0xaf17f movl $0x1b, %edx xorl %ecx, %ecx movl $0xb, %r8d callq 0x41310 movl $0x1, 0x3cb81c(%rip) # 0x40ca50 leaq 0x3cb805(%rip), %rdi # 0x40ca40 callq 0x413b0 leaq 0x3cb8b9(%rip), %rdi # 0x40cb00 leaq 0x6df4d(%rip), %rsi # 0xaf19b movl $0x4, %edx xorl %ecx, %ecx movl $0xc, %r8d callq 0x41310 movl $0x2, 0x3cb8a6(%rip) # 0x40cb10 leaq 0x3cb88f(%rip), %rdi # 0x40cb00 callq 0x413b0 leaq 0x3cb943(%rip), %rdi # 0x40cbc0 leaq 0x6df1c(%rip), %rsi # 0xaf1a0 movl $0x1a, %edx xorl %ecx, %ecx movl $0xe, %r8d callq 0x41310 movl $0x3, 0x3cb930(%rip) # 0x40cbd0 movb $0x0, 0x3cb91d(%rip) # 0x40cbc4 movb $0x0, 0x3cb917(%rip) # 0x40cbc5 leaq 0x3cb90b(%rip), %rdi # 0x40cbc0 callq 0x413b0 leaq 0x3cb9bf(%rip), %rdi # 0x40cc80 leaq 0x725bd(%rip), %rsi # 0xb3885 movl $0xb, %edx xorl %ecx, %ecx movl $0x8, %r8d callq 0x41310 movl $0x0, 0x3cb9ac(%rip) # 0x40cc90 movb $0x0, 0x3cb999(%rip) # 0x40cc84 movb $0x0, 0x3cb993(%rip) # 0x40cc85 leaq 0x3cb987(%rip), %rdi # 0x40cc80 callq 0x413b0 movq $0x1, 0x3cb307(%rip) # 0x40c610 popq %rbp retq nopl (%rax,%rax)
_Z23register_global_classesv: push rbp mov rbp, rsp lea rdi, global_table_io_class lea rsi, aWaitIoTableSql; "wait/io/table/sql/handler" mov edx, 19h xor ecx, ecx mov r8d, 0Ah call _ZL16init_instr_classP15PFS_instr_classPKcji14PFS_class_type; init_instr_class(PFS_instr_class *,char const*,uint,int,PFS_class_type) mov cs:dword_40C990, 0 lea rdi, global_table_io_class; PFS_instr_class * call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *) lea rdi, global_table_lock_class lea rsi, aWaitLockTableS; "wait/lock/table/sql/handler" mov edx, 1Bh xor ecx, ecx mov r8d, 0Bh call _ZL16init_instr_classP15PFS_instr_classPKcji14PFS_class_type; init_instr_class(PFS_instr_class *,char const*,uint,int,PFS_class_type) mov cs:dword_40CA50, 1 lea rdi, global_table_lock_class; PFS_instr_class * call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *) lea rdi, global_idle_class lea rsi, aIdle; "idle" mov edx, 4 xor ecx, ecx mov r8d, 0Ch call _ZL16init_instr_classP15PFS_instr_classPKcji14PFS_class_type; init_instr_class(PFS_instr_class *,char const*,uint,int,PFS_class_type) mov cs:dword_40CB10, 2 lea rdi, global_idle_class; PFS_instr_class * call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *) lea rdi, global_metadata_class lea rsi, aWaitLockMetada; "wait/lock/metadata/sql/mdl" mov edx, 1Ah xor ecx, ecx mov r8d, 0Eh call _ZL16init_instr_classP15PFS_instr_classPKcji14PFS_class_type; init_instr_class(PFS_instr_class *,char const*,uint,int,PFS_class_type) mov cs:dword_40CBD0, 3 mov cs:byte_40CBC4, 0 mov cs:byte_40CBC5, 0 lea rdi, global_metadata_class; PFS_instr_class * call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *) lea rdi, global_transaction_class lea rsi, aRowIsNotVisibl+22h; "transaction" mov edx, 0Bh xor ecx, ecx mov r8d, 8 call _ZL16init_instr_classP15PFS_instr_classPKcji14PFS_class_type; init_instr_class(PFS_instr_class *,char const*,uint,int,PFS_class_type) mov cs:dword_40CC90, 0 mov cs:byte_40CC84, 0 mov cs:byte_40CC85, 0 lea rdi, global_transaction_class; PFS_instr_class * call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *) mov cs:transaction_class_max, 1 pop rbp retn
long long register_global_classes(void) { long long result; // rax init_instr_class(global_table_io_class, "wait/io/table/sql/handler", 25LL, 0LL, 10LL); dword_40C990 = 0; configure_instr_class((PFS_instr_class *)global_table_io_class); init_instr_class(global_table_lock_class, "wait/lock/table/sql/handler", 27LL, 0LL, 11LL); dword_40CA50 = 1; configure_instr_class((PFS_instr_class *)global_table_lock_class); init_instr_class(&global_idle_class, "idle", 4LL, 0LL, 12LL); dword_40CB10 = 2; configure_instr_class((PFS_instr_class *)&global_idle_class); init_instr_class(&global_metadata_class, "wait/lock/metadata/sql/mdl", 26LL, 0LL, 14LL); dword_40CBD0 = 3; byte_40CBC4 = 0; byte_40CBC5 = 0; configure_instr_class((PFS_instr_class *)&global_metadata_class); init_instr_class(&global_transaction_class, "transaction", 11LL, 0LL, 8LL); dword_40CC90 = 0; byte_40CC84 = 0; byte_40CC85 = 0; result = configure_instr_class((PFS_instr_class *)&global_transaction_class); transaction_class_max = 1LL; return result; }
register_global_classes: PUSH RBP MOV RBP,RSP LEA RDI,[0x50c980] LEA RSI,[0x1af165] MOV EDX,0x19 XOR ECX,ECX MOV R8D,0xa CALL 0x00141310 MOV dword ptr [0x0050c990],0x0 LEA RDI,[0x50c980] CALL 0x001413b0 LEA RDI,[0x50ca40] LEA RSI,[0x1af17f] MOV EDX,0x1b XOR ECX,ECX MOV R8D,0xb CALL 0x00141310 MOV dword ptr [0x0050ca50],0x1 LEA RDI,[0x50ca40] CALL 0x001413b0 LEA RDI,[0x50cb00] LEA RSI,[0x1af19b] MOV EDX,0x4 XOR ECX,ECX MOV R8D,0xc CALL 0x00141310 MOV dword ptr [0x0050cb10],0x2 LEA RDI,[0x50cb00] CALL 0x001413b0 LEA RDI,[0x50cbc0] LEA RSI,[0x1af1a0] MOV EDX,0x1a XOR ECX,ECX MOV R8D,0xe CALL 0x00141310 MOV dword ptr [0x0050cbd0],0x3 MOV byte ptr [0x0050cbc4],0x0 MOV byte ptr [0x0050cbc5],0x0 LEA RDI,[0x50cbc0] CALL 0x001413b0 LEA RDI,[0x50cc80] LEA RSI,[0x1b3885] MOV EDX,0xb XOR ECX,ECX MOV R8D,0x8 CALL 0x00141310 MOV dword ptr [0x0050cc90],0x0 MOV byte ptr [0x0050cc84],0x0 MOV byte ptr [0x0050cc85],0x0 LEA RDI,[0x50cc80] CALL 0x001413b0 MOV qword ptr [0x0050c610],0x1 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* register_global_classes() */ void register_global_classes(void) { init_instr_class(global_table_io_class,"wait/io/table/sql/handler",0x19,0,10); global_table_io_class._16_4_ = 0; configure_instr_class((PFS_instr_class *)global_table_io_class); init_instr_class(global_table_lock_class,"wait/lock/table/sql/handler",0x1b,0,0xb); global_table_lock_class._16_4_ = 1; configure_instr_class((PFS_instr_class *)global_table_lock_class); init_instr_class(global_idle_class,&DAT_001af19b,4,0,0xc); global_idle_class._16_4_ = 2; configure_instr_class((PFS_instr_class *)global_idle_class); init_instr_class(global_metadata_class,"wait/lock/metadata/sql/mdl",0x1a,0,0xe); global_metadata_class._16_4_ = 3; global_metadata_class[4] = 0; global_metadata_class[5] = 0; configure_instr_class((PFS_instr_class *)global_metadata_class); init_instr_class(global_transaction_class,"transaction",0xb,0,8); global_transaction_class._16_4_ = 0; global_transaction_class[4] = 0; global_transaction_class[5] = 0; configure_instr_class((PFS_instr_class *)global_transaction_class); transaction_class_max = 1; return; }
33,335
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp
int UnorderedSubset::populateFaceVertexDescriptor( Level const& level, Index faceIndex, Index vertIndex, int vertInface) { // Identify the vertex index for the specified corner of the face // and topology information related to it: _vdesc.commonFaceSize = level.getNumFaceVertices(faceIndex); Index vIndex = vertIndex; ConstIndexArray vFaces = level.getVertexFaces(vIndex); int nFaces = vFaces.size(); ConstLocalIndexArray vInFace = level.getVertexFaceLocalIndices(vIndex); Level::VTag vTag = level.getVertexTag(vIndex); // Initialize, assign and finalize the vertex topology: // Note there is no need to check valence or face sizes with any // max here as TopologyRefiner construction excludes extreme cases. _vdesc.initialize(nFaces); if (vTag._incidIrregFace) { for (int i = 0; i < nFaces; ++i) { _vdesc.setIncidentFaceSize(i, level.getFaceVertices(vFaces[i]).size()); } } if (vTag._semiSharp || vTag._infSharp) _vdesc.vertSharpness = level.getVertexSharpness(vIndex); if (vTag._semiSharpEdges || vTag._infSharpEdges) { // Must use face-edges and identify next/prev edges in face: for (int i = 0; i < nFaces; ++i) { ConstIndexArray fEdges = level.getFaceEdges(vFaces[i]); int eLeading = vInFace[i]; int eTrailing = (eLeading ? eLeading : fEdges.size()) - 1; _vdesc.setIncidentFaceEdgeSharpness(i, level.getEdgeSharpness(fEdges[eLeading]), level.getEdgeSharpness(fEdges[eTrailing])); } } _vdesc.finalize(); // Return the index of the base face around the vertex: // Remember that for some non-manifold cases the face may occur // multiple times around this vertex, so make sure to identify the // instance that matches the specified corner of the face. for (int i = 0; i < vFaces.size(); ++i) { if ((vFaces[i] == faceIndex) && (vInFace[i] == vertInface)) { return i; } } assert("Cannot identify face-vertex around non-manifold vertex." == 0); return -1; }
O0
cpp
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int): pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movl %r8d, -0x1c(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xd0(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0xd0680 movl %eax, %ecx movq -0xd0(%rbp), %rax movw %cx, 0x6(%rax) movl -0x18(%rbp), %eax movl %eax, -0x20(%rbp) movq -0x10(%rbp), %rdi movl -0x20(%rbp), %esi callq 0xd7810 movl %edx, -0x38(%rbp) movq %rax, -0x40(%rbp) movl -0x38(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x30(%rbp) leaq -0x30(%rbp), %rdi callq 0xcc250 movl %eax, -0x44(%rbp) movq -0x10(%rbp), %rdi movl -0x20(%rbp), %esi callq 0xc7650 movl %edx, -0x60(%rbp) movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq %rax, -0x58(%rbp) movl -0x60(%rbp), %eax movl %eax, -0x50(%rbp) movq -0x10(%rbp), %rdi movl -0x20(%rbp), %esi callq 0xc5a90 movq -0xd0(%rbp), %rdi movw (%rax), %ax movw %ax, -0x6a(%rbp) movl -0x44(%rbp), %esi callq 0xcdcd0 movw -0x6a(%rbp), %ax shrw $0xc, %ax andw $0x1, %ax cmpw $0x0, %ax je 0x1e8b27 movl $0x0, -0x70(%rbp) movl -0x70(%rbp), %eax cmpl -0x44(%rbp), %eax jge 0x1e8b25 movq -0xd0(%rbp), %rax movq %rax, -0xe0(%rbp) movl -0x70(%rbp), %esi movl %esi, -0xd4(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xe8(%rbp) leaq -0x30(%rbp), %rdi callq 0xcabf0 movq -0xe8(%rbp), %rdi movl (%rax), %esi callq 0xce580 movl %edx, -0x88(%rbp) movq %rax, -0x90(%rbp) movq -0x90(%rbp), %rax movq %rax, -0x80(%rbp) movl -0x88(%rbp), %eax movl %eax, -0x78(%rbp) leaq -0x80(%rbp), %rdi callq 0xcc250 movq -0xe0(%rbp), %rdi movl -0xd4(%rbp), %esi movl %eax, %edx callq 0xd1c40 movl -0x70(%rbp), %eax addl $0x1, %eax movl %eax, -0x70(%rbp) jmp 0x1e8a94 jmp 0x1e8b27 movw -0x6a(%rbp), %ax shrw $0x5, %ax andw $0x1, %ax cmpw $0x0, %ax jne 0x1e8b4b movw -0x6a(%rbp), %ax shrw $0x4, %ax andw $0x1, %ax cmpw $0x0, %ax je 0x1e8b62 movq -0x10(%rbp), %rdi movl -0x20(%rbp), %esi callq 0xcc840 movq -0xd0(%rbp), %rax movss %xmm0, (%rax) movw -0x6a(%rbp), %ax shrw $0x6, %ax andw $0x1, %ax cmpw $0x0, %ax jne 0x1e8b8a movw -0x6a(%rbp), %ax shrw $0xd, %ax andw $0x1, %ax cmpw $0x0, %ax je 0x1e8cdf movl $0x0, -0x94(%rbp) movl -0x94(%rbp), %eax cmpl -0x44(%rbp), %eax jge 0x1e8cdd movq -0x10(%rbp), %rax movq %rax, -0xf0(%rbp) movl -0x94(%rbp), %esi leaq -0x30(%rbp), %rdi callq 0xcabf0 movq -0xf0(%rbp), %rdi movl (%rax), %esi callq 0xce3b0 movl %edx, -0xb0(%rbp) movq %rax, -0xb8(%rbp) movq -0xb8(%rbp), %rax movq %rax, -0xa8(%rbp) movl -0xb0(%rbp), %eax movl %eax, -0xa0(%rbp) movl -0x94(%rbp), %esi leaq -0x58(%rbp), %rdi callq 0xcafa0 movzwl (%rax), %eax movl %eax, -0xbc(%rbp) cmpl $0x0, -0xbc(%rbp) je 0x1e8c21 movl -0xbc(%rbp), %eax movl %eax, -0xf4(%rbp) jmp 0x1e8c33 leaq -0xa8(%rbp), %rdi callq 0xcc250 movl %eax, -0xf4(%rbp) movl -0xf4(%rbp), %eax subl $0x1, %eax movl %eax, -0xc0(%rbp) movl -0x94(%rbp), %eax movl %eax, -0xfc(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x110(%rbp) movl -0xbc(%rbp), %esi leaq -0xa8(%rbp), %rdi callq 0xcabf0 movq -0x110(%rbp), %rdi movl (%rax), %esi callq 0xc6520 movss %xmm0, -0xf8(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x108(%rbp) movl -0xc0(%rbp), %esi leaq -0xa8(%rbp), %rdi callq 0xcabf0 movq -0x108(%rbp), %rdi movl (%rax), %esi callq 0xc6520 movq -0xd0(%rbp), %rdi movl -0xfc(%rbp), %esi movaps %xmm0, %xmm1 movss -0xf8(%rbp), %xmm0 callq 0xd65b0 movl -0x94(%rbp), %eax addl $0x1, %eax movl %eax, -0x94(%rbp) jmp 0x1e8b94 jmp 0x1e8cdf movq -0xd0(%rbp), %rdi callq 0xd5140 movl $0x0, -0xc4(%rbp) movl -0xc4(%rbp), %eax movl %eax, -0x114(%rbp) leaq -0x30(%rbp), %rdi callq 0xcc250 movl %eax, %ecx movl -0x114(%rbp), %eax cmpl %ecx, %eax jge 0x1e8d65 movl -0xc4(%rbp), %esi leaq -0x30(%rbp), %rdi callq 0xcabf0 movl (%rax), %eax cmpl -0x14(%rbp), %eax jne 0x1e8d52 movl -0xc4(%rbp), %esi leaq -0x58(%rbp), %rdi callq 0xcafa0 movzwl (%rax), %eax cmpl -0x1c(%rbp), %eax jne 0x1e8d52 movl -0xc4(%rbp), %eax addq $0x120, %rsp # imm = 0x120 popq %rbp retq jmp 0x1e8d54 movl -0xc4(%rbp), %eax addl $0x1, %eax movl %eax, -0xc4(%rbp) jmp 0x1e8cf5 leaq 0x112e0(%rip), %rdi # 0x1fa04c leaq 0x16f71(%rip), %rsi # 0x1ffce4 movl $0x25c, %edx # imm = 0x25C leaq 0x1718a(%rip), %rcx # 0x1fff09 callq 0xc9440 nopw %cs:(%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset28populateFaceVertexDescriptorERKNS0_3Vtr8internal5LevelEiii: push rbp mov rbp, rsp sub rsp, 120h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_18], ecx mov [rbp+var_1C], r8d mov rax, [rbp+var_8] mov [rbp+var_D0], rax mov rdi, [rbp+var_10]; this mov esi, [rbp+var_14]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level18getNumFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFaceVertices(int) mov ecx, eax mov rax, [rbp+var_D0] mov [rax+6], cx mov eax, [rbp+var_18] mov [rbp+var_20], eax mov rdi, [rbp+var_10]; this mov esi, [rbp+var_20]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(int) mov [rbp+var_38], edx mov [rbp+var_40], rax mov eax, [rbp+var_38] mov [rbp+var_28], eax mov rax, [rbp+var_40] mov [rbp+var_30], rax lea rdi, [rbp+var_30] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_44], eax mov rdi, [rbp+var_10]; this mov esi, [rbp+var_20]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level25getVertexFaceLocalIndicesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaceLocalIndices(int) mov [rbp+var_60], edx mov [rbp+var_68], rax mov rax, [rbp+var_68] mov [rbp+var_58], rax mov eax, [rbp+var_60] mov [rbp+var_50], eax mov rdi, [rbp+var_10]; this mov esi, [rbp+var_20]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level12getVertexTagEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexTag(int) mov rdi, [rbp+var_D0]; this mov ax, [rax] mov [rbp+var_6A], ax mov esi, [rbp+var_44]; int call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor10initializeEi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::initialize(int) mov ax, [rbp+var_6A] shr ax, 0Ch and ax, 1 cmp ax, 0 jz loc_1E8B27 mov [rbp+var_70], 0 loc_1E8A94: mov eax, [rbp+var_70] cmp eax, [rbp+var_44] jge loc_1E8B25 mov rax, [rbp+var_D0] mov [rbp+var_E0], rax mov esi, [rbp+var_70] mov [rbp+var_D4], esi mov rax, [rbp+var_10] mov [rbp+var_E8], rax lea rdi, [rbp+var_30] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov rdi, [rbp+var_E8]; this mov esi, [rax]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int) mov [rbp+var_88], edx mov [rbp+var_90], rax mov rax, [rbp+var_90] mov [rbp+var_80], rax mov eax, [rbp+var_88] mov [rbp+var_78], eax lea rdi, [rbp+var_80] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov rdi, [rbp+var_E0]; this mov esi, [rbp+var_D4]; int mov edx, eax; int call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor19setIncidentFaceSizeEii; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceSize(int,int) mov eax, [rbp+var_70] add eax, 1 mov [rbp+var_70], eax jmp loc_1E8A94 loc_1E8B25: jmp short $+2 loc_1E8B27: mov ax, [rbp+var_6A] shr ax, 5 and ax, 1 cmp ax, 0 jnz short loc_1E8B4B mov ax, [rbp+var_6A] shr ax, 4 and ax, 1 cmp ax, 0 jz short loc_1E8B62 loc_1E8B4B: mov rdi, [rbp+var_10]; this mov esi, [rbp+var_20]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level18getVertexSharpnessEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexSharpness(int) mov rax, [rbp+var_D0] movss dword ptr [rax], xmm0 loc_1E8B62: mov ax, [rbp+var_6A] shr ax, 6 and ax, 1 cmp ax, 0 jnz short loc_1E8B8A mov ax, [rbp+var_6A] shr ax, 0Dh and ax, 1 cmp ax, 0 jz loc_1E8CDF loc_1E8B8A: mov [rbp+var_94], 0 loc_1E8B94: mov eax, [rbp+var_94] cmp eax, [rbp+var_44] jge loc_1E8CDD mov rax, [rbp+var_10] mov [rbp+var_F0], rax mov esi, [rbp+var_94] lea rdi, [rbp+var_30] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov rdi, [rbp+var_F0]; this mov esi, [rax]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level12getFaceEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceEdges(int) mov [rbp+var_B0], edx mov [rbp+var_B8], rax mov rax, [rbp+var_B8] mov [rbp+var_A8], rax mov eax, [rbp+var_B0] mov [rbp+var_A0], eax mov esi, [rbp+var_94] lea rdi, [rbp+var_58] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayItEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<ushort>::operator[](int) movzx eax, word ptr [rax] mov [rbp+var_BC], eax cmp [rbp+var_BC], 0 jz short loc_1E8C21 mov eax, [rbp+var_BC] mov [rbp+var_F4], eax jmp short loc_1E8C33 loc_1E8C21: lea rdi, [rbp+var_A8] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_F4], eax loc_1E8C33: mov eax, [rbp+var_F4] sub eax, 1 mov [rbp+var_C0], eax mov eax, [rbp+var_94] mov [rbp+var_FC], eax mov rax, [rbp+var_10] mov [rbp+var_110], rax mov esi, [rbp+var_BC] lea rdi, [rbp+var_A8] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov rdi, [rbp+var_110]; this mov esi, [rax]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16getEdgeSharpnessEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeSharpness(int) movss [rbp+var_F8], xmm0 mov rax, [rbp+var_10] mov [rbp+var_108], rax mov esi, [rbp+var_C0] lea rdi, [rbp+var_A8] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov rdi, [rbp+var_108]; this mov esi, [rax]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level16getEdgeSharpnessEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeSharpness(int) mov rdi, [rbp+var_D0]; this mov esi, [rbp+var_FC]; int movaps xmm1, xmm0; float movss xmm0, [rbp+var_F8]; float call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor28setIncidentFaceEdgeSharpnessEiff; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceEdgeSharpness(int,float,float) mov eax, [rbp+var_94] add eax, 1 mov [rbp+var_94], eax jmp loc_1E8B94 loc_1E8CDD: jmp short $+2 loc_1E8CDF: mov rdi, [rbp+var_D0]; this call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor8finalizeEv; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::finalize(void) mov [rbp+var_C4], 0 loc_1E8CF5: mov eax, [rbp+var_C4] mov [rbp+var_114], eax lea rdi, [rbp+var_30] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov ecx, eax mov eax, [rbp+var_114] cmp eax, ecx jge short loc_1E8D65 mov esi, [rbp+var_C4] lea rdi, [rbp+var_30] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov eax, [rax] cmp eax, [rbp+var_14] jnz short loc_1E8D52 mov esi, [rbp+var_C4] lea rdi, [rbp+var_58] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayItEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<ushort>::operator[](int) movzx eax, word ptr [rax] cmp eax, [rbp+var_1C] jnz short loc_1E8D52 mov eax, [rbp+var_C4] add rsp, 120h pop rbp retn loc_1E8D52: jmp short $+2 loc_1E8D54: mov eax, [rbp+var_C4] add eax, 1 mov [rbp+var_C4], eax jmp short loc_1E8CF5 loc_1E8D65: lea rdi, aCannotIdentify; "\"Cannot identify face-vertex around no"... lea rsi, aWorkspaceLlm4b_56; "/workspace/llm4binary/github/2025_star3"... mov edx, 25Ch lea rcx, aIntOpensubdivV_53; "int OpenSubdiv::v3_6_0::Tmr::UnorderedS"... call ___assert_fail
long long OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor( OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this, const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2, int a3, int a4, int a5, float a6) { long long VertexFaces; // rax int v7; // edx long long VertexFaceLocalIndices; // rax int v9; // edx int *v10; // rax long long FaceVertices; // rax int v12; // edx int v13; // eax int *v14; // rax int v15; // edx _WORD *v16; // rax int *v17; // rax int *v18; // rax _DWORD *v19; // rax unsigned __int16 *v20; // rax OpenSubdiv::v3_6_0::Vtr::internal::Level *v22; // [rsp+10h] [rbp-110h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v23; // [rsp+18h] [rbp-108h] int v24; // [rsp+24h] [rbp-FCh] int v25; // [rsp+2Ch] [rbp-F4h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v26; // [rsp+30h] [rbp-F0h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v27; // [rsp+38h] [rbp-E8h] int v28; // [rsp+4Ch] [rbp-D4h] unsigned int k; // [rsp+5Ch] [rbp-C4h] unsigned int v30; // [rsp+64h] [rbp-BCh] long long FaceEdges; // [rsp+78h] [rbp-A8h] BYREF int v32; // [rsp+80h] [rbp-A0h] unsigned int j; // [rsp+8Ch] [rbp-94h] long long v34; // [rsp+90h] [rbp-90h] int v35; // [rsp+98h] [rbp-88h] long long v36; // [rsp+A0h] [rbp-80h] BYREF int v37; // [rsp+A8h] [rbp-78h] int i; // [rsp+B0h] [rbp-70h] unsigned __int16 v39; // [rsp+B6h] [rbp-6Ah] long long v40; // [rsp+B8h] [rbp-68h] int v41; // [rsp+C0h] [rbp-60h] long long v42; // [rsp+C8h] [rbp-58h] BYREF int v43; // [rsp+D0h] [rbp-50h] int v44; // [rsp+DCh] [rbp-44h] long long v45; // [rsp+E0h] [rbp-40h] int v46; // [rsp+E8h] [rbp-38h] long long v47; // [rsp+F0h] [rbp-30h] BYREF int v48; // [rsp+F8h] [rbp-28h] int v49; // [rsp+100h] [rbp-20h] int v50; // [rsp+104h] [rbp-1Ch] int v51; // [rsp+108h] [rbp-18h] int v52; // [rsp+10Ch] [rbp-14h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v53; // [rsp+110h] [rbp-10h] OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *v54; // [rsp+118h] [rbp-8h] v54 = this; v53 = a2; v52 = a3; v51 = a4; v50 = a5; *((_WORD *)this + 3) = OpenSubdiv::v3_6_0::Vtr::internal::Level::getNumFaceVertices(a2, a3); v49 = v51; VertexFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(v53, v51); v46 = v7; v45 = VertexFaces; v48 = v7; v47 = VertexFaces; v44 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v47); VertexFaceLocalIndices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaceLocalIndices(v53, v49); v41 = v9; v40 = VertexFaceLocalIndices; v42 = VertexFaceLocalIndices; v43 = v9; v39 = *(_WORD *)OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexTag(v53, v49); OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::initialize(this, v44); if ( ((v39 >> 12) & 1) != 0 ) { for ( i = 0; i < v44; ++i ) { v28 = i; v27 = v53; v10 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v47, (unsigned int)i); FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(v27, *v10); v35 = v12; v34 = FaceVertices; v36 = FaceVertices; v37 = v12; v13 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v36); OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceSize(this, v28, v13); } } if ( ((v39 >> 5) & 1) != 0 || ((v39 >> 4) & 1) != 0 ) { OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexSharpness(v53, v49); *(float *)this = a6; } if ( ((v39 >> 6) & 1) != 0 || ((v39 >> 13) & 1) != 0 ) { for ( j = 0; (int)j < v44; ++j ) { v26 = v53; v14 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v47, j); FaceEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceEdges(v26, *v14); v32 = v15; v16 = (_WORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<unsigned short>::operator[](&v42, j); v30 = (unsigned __int16)*v16; if ( *v16 ) v25 = (unsigned __int16)*v16; else v25 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&FaceEdges); v24 = j; v22 = v53; v17 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&FaceEdges, v30); OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeSharpness(v22, *v17); v23 = v53; v18 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&FaceEdges, (unsigned int)(v25 - 1)); OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeSharpness(v23, *v18); OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceEdgeSharpness(this, v24, a6, a6); } } OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::finalize(this); for ( k = 0; ; ++k ) { if ( (int)k >= (int)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v47) ) __assert_fail( "\"Cannot identify face-vertex around non-manifold vertex.\" == 0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp", 604LL, "int OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(const Level &, Index, Index, int)"); v19 = (_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v47, k); if ( *v19 == v52 ) { v20 = (unsigned __int16 *)OpenSubdiv::v3_6_0::Vtr::ConstArray<unsigned short>::operator[](&v42, k); if ( *v20 == v50 ) break; } } return k; }
33,336
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp
int UnorderedSubset::populateFaceVertexDescriptor( Level const& level, Index faceIndex, Index vertIndex, int vertInface) { // Identify the vertex index for the specified corner of the face // and topology information related to it: _vdesc.commonFaceSize = level.getNumFaceVertices(faceIndex); Index vIndex = vertIndex; ConstIndexArray vFaces = level.getVertexFaces(vIndex); int nFaces = vFaces.size(); ConstLocalIndexArray vInFace = level.getVertexFaceLocalIndices(vIndex); Level::VTag vTag = level.getVertexTag(vIndex); // Initialize, assign and finalize the vertex topology: // Note there is no need to check valence or face sizes with any // max here as TopologyRefiner construction excludes extreme cases. _vdesc.initialize(nFaces); if (vTag._incidIrregFace) { for (int i = 0; i < nFaces; ++i) { _vdesc.setIncidentFaceSize(i, level.getFaceVertices(vFaces[i]).size()); } } if (vTag._semiSharp || vTag._infSharp) _vdesc.vertSharpness = level.getVertexSharpness(vIndex); if (vTag._semiSharpEdges || vTag._infSharpEdges) { // Must use face-edges and identify next/prev edges in face: for (int i = 0; i < nFaces; ++i) { ConstIndexArray fEdges = level.getFaceEdges(vFaces[i]); int eLeading = vInFace[i]; int eTrailing = (eLeading ? eLeading : fEdges.size()) - 1; _vdesc.setIncidentFaceEdgeSharpness(i, level.getEdgeSharpness(fEdges[eLeading]), level.getEdgeSharpness(fEdges[eTrailing])); } } _vdesc.finalize(); // Return the index of the base face around the vertex: // Remember that for some non-manifold cases the face may occur // multiple times around this vertex, so make sure to identify the // instance that matches the specified corner of the face. for (int i = 0; i < vFaces.size(); ++i) { if ((vFaces[i] == faceIndex) && (vInFace[i] == vertInface)) { return i; } } assert("Cannot identify face-vertex around non-manifold vertex." == 0); return -1; }
O1
cpp
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, 0x14(%rsp) movq %rsi, %r14 movq %rdi, %r15 movq %rdx, 0x20(%rsp) leal (%rdx,%rdx), %eax cltq movq 0x18(%rsi), %rdx movzwl (%rdx,%rax,4), %eax movw %ax, 0x6(%rdi) leal (%rcx,%rcx), %eax leal 0x1(%rcx,%rcx), %edx movslq %edx, %rdx movq 0x108(%rsi), %rsi movslq (%rsi,%rdx,4), %r12 leaq (,%r12,4), %rbx addq 0x120(%r14), %rbx movq 0x1b0(%r14), %rdx cltq movl (%rsi,%rax,4), %eax movl %eax, %ebp addq %r12, %r12 addq 0x138(%r14), %r12 movslq %ecx, %rcx movq %rcx, 0x8(%rsp) movzwl (%rdx,%rcx,2), %edi leal -0x1(%rax), %ecx movb 0x8(%r15), %dl andb $-0x4, %dl xorl %esi, %esi cmpl $0xffff, %ecx # imm = 0xFFFF cmovbl %eax, %esi setb %cl orb %cl, %dl movw %si, 0x4(%r15) addb %cl, %cl orb %dl, %cl movb %cl, 0x8(%r15) movl %edi, 0x4(%rsp) movl %edi, %ecx shrl $0xc, %ecx testl %eax, %eax setg %al andb %cl, %al cmpb $0x1, %al jne 0xb0e2f xorl %r13d, %r13d movslq (%rbx,%r13,4), %rax movq 0x18(%r14), %rcx movl (%rcx,%rax,8), %edx movq %r15, %rdi movl %r13d, %esi callq 0x3b060 incq %r13 cmpq %r13, %rbp jne 0xb0e11 movl 0x4(%rsp), %ecx testb $0x30, %cl movq %r14, %rdi je 0xb0e51 movq 0x198(%rdi), %rax movq 0x8(%rsp), %rdx movss (%rax,%rdx,4), %xmm0 movss %xmm0, (%r15) testl $0x2040, %ecx # imm = 0x2040 je 0xb0fb4 testl %ebp, %ebp jle 0xb0fb4 leaq 0x78(%r15), %rax movq %rax, 0x18(%rsp) xorl %r14d, %r14d movq %r12, 0x30(%rsp) movq %rdi, 0x28(%rsp) movslq (%rbx,%r14,4), %rdx movq 0x18(%rdi), %rsi movzwl (%r12,%r14,2), %eax movl %eax, %ecx testl %eax, %eax jne 0xb0e98 leaq (%rdx,%rdx), %rcx movslq %ecx, %rcx movl (%rsi,%rcx,4), %ecx movslq 0x4(%rsi,%rdx,8), %rdx shlq $0x2, %rdx addq 0x48(%rdi), %rdx movq 0xd8(%rdi), %rsi movslq (%rdx,%rax,4), %rax movss (%rsi,%rax,4), %xmm0 movslq %ecx, %rax movslq -0x4(%rdx,%rax,4), %rax movss (%rsi,%rax,4), %xmm1 testb $0x10, 0x8(%r15) jne 0xb0f97 movzwl 0x4(%r15), %r13d leal (,%r13,2), %r12d testl %r13d, %r13d movss %xmm0, 0x4(%rsp) movss %xmm1, 0x8(%rsp) je 0xb0f37 cmpl %r12d, 0x74(%r15) jae 0xb0f60 movq 0xf8(%r15), %rdi callq 0x3a0c0 movq 0x18(%rsp), %rax movq %rax, 0x68(%r15) movl $0x20, 0x74(%r15) shll $0x3, %r13d movq %r13, %rdi callq 0x3a230 movss 0x8(%rsp), %xmm1 movss 0x4(%rsp), %xmm0 movq %rax, 0xf8(%r15) movq %rax, 0x68(%r15) movl %r12d, 0x74(%r15) jmp 0xb0f60 movq 0xf8(%r15), %rdi callq 0x3a0c0 movss 0x8(%rsp), %xmm1 movss 0x4(%rsp), %xmm0 movq 0x18(%rsp), %rax movq %rax, 0x68(%r15) movl $0x20, 0x74(%r15) movl %r12d, 0x70(%r15) movzwl 0x4(%r15), %edx testq %rdx, %rdx je 0xb0f88 shll $0x3, %edx movq 0x68(%r15), %rdi xorl %esi, %esi callq 0x391b0 movss 0x8(%rsp), %xmm1 movss 0x4(%rsp), %xmm0 orb $0x10, 0x8(%r15) movq 0x30(%rsp), %r12 movq 0x28(%rsp), %rdi movq 0x68(%r15), %rax movss %xmm0, (%rax,%r14,8) movss %xmm1, 0x4(%rax,%r14,8) incq %r14 cmpq %r14, %rbp jne 0xb0e7b movq %r15, %rdi callq 0x3bbb0 testl %ebp, %ebp movl 0x14(%rsp), %edx movq 0x20(%rsp), %rsi jle 0xb0fe1 xorl %eax, %eax cmpl %esi, (%rbx,%rax,4) jne 0xb0fd9 movzwl (%r12,%rax,2), %ecx cmpl %edx, %ecx je 0xb1000 incq %rax cmpq %rax, %rbp jne 0xb0fcb leaq 0xfda4(%rip), %rdi # 0xc0d8c leaq 0x15085(%rip), %rsi # 0xc6074 leaq 0x152a3(%rip), %rcx # 0xc6299 movl $0x25c, %edx # imm = 0x25C callq 0x39560 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset28populateFaceVertexDescriptorERKNS0_3Vtr8internal5LevelEiii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rsp+68h+var_54], r8d mov r14, rsi mov r15, rdi mov [rsp+68h+var_48], rdx lea eax, [rdx+rdx] cdqe mov rdx, [rsi+18h] movzx eax, word ptr [rdx+rax*4] mov [rdi+6], ax lea eax, [rcx+rcx] lea edx, [rcx+rcx+1] movsxd rdx, edx mov rsi, [rsi+108h] movsxd r12, dword ptr [rsi+rdx*4] lea rbx, ds:0[r12*4] add rbx, [r14+120h] mov rdx, [r14+1B0h] cdqe mov eax, [rsi+rax*4] mov ebp, eax add r12, r12 add r12, [r14+138h] movsxd rcx, ecx mov [rsp+68h+var_60], rcx movzx edi, word ptr [rdx+rcx*2] lea ecx, [rax-1] mov dl, [r15+8] and dl, 0FCh xor esi, esi cmp ecx, 0FFFFh cmovb esi, eax setb cl or dl, cl mov [r15+4], si add cl, cl or cl, dl mov [r15+8], cl mov [rsp+68h+var_64], edi mov ecx, edi shr ecx, 0Ch test eax, eax setnle al and al, cl cmp al, 1 jnz short loc_B0E2F xor r13d, r13d loc_B0E11: movsxd rax, dword ptr [rbx+r13*4] mov rcx, [r14+18h] mov edx, [rcx+rax*8]; int mov rdi, r15; this mov esi, r13d; int call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor19setIncidentFaceSizeEii; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceSize(int,int) inc r13 cmp rbp, r13 jnz short loc_B0E11 loc_B0E2F: mov ecx, [rsp+68h+var_64] test cl, 30h mov rdi, r14 jz short loc_B0E51 mov rax, [rdi+198h] mov rdx, [rsp+68h+var_60] movss xmm0, dword ptr [rax+rdx*4] movss dword ptr [r15], xmm0 loc_B0E51: test ecx, 2040h jz loc_B0FB4 test ebp, ebp jle loc_B0FB4 lea rax, [r15+78h] mov [rsp+68h+var_50], rax xor r14d, r14d mov [rsp+68h+var_38], r12 mov [rsp+68h+var_40], rdi loc_B0E7B: movsxd rdx, dword ptr [rbx+r14*4] mov rsi, [rdi+18h] movzx eax, word ptr [r12+r14*2] mov ecx, eax test eax, eax jnz short loc_B0E98 lea rcx, [rdx+rdx] movsxd rcx, ecx mov ecx, [rsi+rcx*4] loc_B0E98: movsxd rdx, dword ptr [rsi+rdx*8+4] shl rdx, 2 add rdx, [rdi+48h] mov rsi, [rdi+0D8h] movsxd rax, dword ptr [rdx+rax*4] movss xmm0, dword ptr [rsi+rax*4] movsxd rax, ecx movsxd rax, dword ptr [rdx+rax*4-4] movss xmm1, dword ptr [rsi+rax*4] test byte ptr [r15+8], 10h jnz loc_B0F97 movzx r13d, word ptr [r15+4] lea r12d, ds:0[r13*2] test r13d, r13d movss [rsp+68h+var_64], xmm0 movss dword ptr [rsp+68h+var_60], xmm1 jz short loc_B0F37 cmp [r15+74h], r12d jnb short loc_B0F60 mov rdi, [r15+0F8h]; void * call __ZdlPv; operator delete(void *) mov rax, [rsp+68h+var_50] mov [r15+68h], rax mov dword ptr [r15+74h], 20h ; ' ' shl r13d, 3 mov rdi, r13; unsigned __int64 call __Znwm; operator new(ulong) movss xmm1, dword ptr [rsp+68h+var_60] movss xmm0, [rsp+68h+var_64] mov [r15+0F8h], rax mov [r15+68h], rax mov [r15+74h], r12d jmp short loc_B0F60 loc_B0F37: mov rdi, [r15+0F8h]; void * call __ZdlPv; operator delete(void *) movss xmm1, dword ptr [rsp+68h+var_60] movss xmm0, [rsp+68h+var_64] mov rax, [rsp+68h+var_50] mov [r15+68h], rax mov dword ptr [r15+74h], 20h ; ' ' loc_B0F60: mov [r15+70h], r12d movzx edx, word ptr [r15+4] test rdx, rdx jz short loc_B0F88 shl edx, 3 mov rdi, [r15+68h] xor esi, esi call _memset movss xmm1, dword ptr [rsp+68h+var_60] movss xmm0, [rsp+68h+var_64] loc_B0F88: or byte ptr [r15+8], 10h mov r12, [rsp+68h+var_38] mov rdi, [rsp+68h+var_40] loc_B0F97: mov rax, [r15+68h] movss dword ptr [rax+r14*8], xmm0 movss dword ptr [rax+r14*8+4], xmm1 inc r14 cmp rbp, r14 jnz loc_B0E7B loc_B0FB4: mov rdi, r15; this call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor8finalizeEv; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::finalize(void) test ebp, ebp mov edx, [rsp+68h+var_54] mov rsi, [rsp+68h+var_48] jle short loc_B0FE1 xor eax, eax loc_B0FCB: cmp [rbx+rax*4], esi jnz short loc_B0FD9 movzx ecx, word ptr [r12+rax*2] cmp ecx, edx jz short loc_B1000 loc_B0FD9: inc rax cmp rbp, rax jnz short loc_B0FCB loc_B0FE1: lea rdi, aCannotIdentify; "\"Cannot identify face-vertex around no"... lea rsi, aWorkspaceLlm4b_59; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_49; "int OpenSubdiv::v3_6_0::Tmr::UnorderedS"... mov edx, 25Ch call ___assert_fail loc_B1000: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor( OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this, const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2, int a3, int a4, int a5) { long long v7; // rsi long long v8; // r12 long long v9; // rbx unsigned int v10; // eax long long v11; // rbp long long v12; // r12 unsigned int v13; // edi unsigned int v14; // ecx __int16 v15; // si char v16; // dl long long v17; // r13 const OpenSubdiv::v3_6_0::Vtr::internal::Level *v18; // rdi long long v19; // r14 long long v20; // rdx long long v21; // rsi int v22; // ecx long long v23; // rdx long long v24; // rsi int v25; // xmm0_4 int v26; // xmm1_4 int v27; // r13d unsigned int v28; // r12d long long v29; // rax long long v30; // rax long long result; // rax __int16 v32; // [rsp+4h] [rbp-64h] long long v33; // [rsp+8h] [rbp-60h] char *v35; // [rsp+18h] [rbp-50h] const OpenSubdiv::v3_6_0::Vtr::internal::Level *v37; // [rsp+28h] [rbp-40h] long long v38; // [rsp+30h] [rbp-38h] *((_WORD *)this + 3) = *(_WORD *)(*((_QWORD *)a2 + 3) + 8LL * a3); v7 = *((_QWORD *)a2 + 33); v8 = *(int *)(v7 + 4LL * (2 * a4 + 1)); v9 = *((_QWORD *)a2 + 36) + 4 * v8; v10 = *(_DWORD *)(v7 + 8LL * a4); v11 = v10; v12 = *((_QWORD *)a2 + 39) + 2 * v8; v33 = a4; v13 = *(unsigned __int16 *)(*((_QWORD *)a2 + 54) + 2LL * a4); v14 = v10 - 1; v15 = 0; if ( v10 - 1 < 0xFFFF ) v15 = v10; v16 = (v14 < 0xFFFF) | *((_BYTE *)this + 8) & 0xFC; *((_WORD *)this + 2) = v15; *((_BYTE *)this + 8) = v16 | (2 * (v14 < 0xFFFF)); v32 = v13; if ( ((unsigned __int8)(v13 >> 12) & ((int)v10 > 0)) == 1 ) { v17 = 0LL; do { OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceSize( this, v17, *(_DWORD *)(*((_QWORD *)a2 + 3) + 8LL * *(int *)(v9 + 4 * v17))); ++v17; } while ( v11 != v17 ); } v18 = a2; if ( (v32 & 0x30) != 0 ) *(_DWORD *)this = *(_DWORD *)(*((_QWORD *)a2 + 51) + 4 * v33); if ( (v32 & 0x2040) != 0 && (int)v11 > 0 ) { v35 = (char *)this + 120; v19 = 0LL; v38 = v12; v37 = v18; do { v20 = *(int *)(v9 + 4 * v19); v21 = *((_QWORD *)v18 + 3); v22 = *(unsigned __int16 *)(v12 + 2 * v19); if ( !*(_WORD *)(v12 + 2 * v19) ) v22 = *(_DWORD *)(v21 + 8LL * (_DWORD)v20); v23 = *((_QWORD *)v18 + 9) + 4LL * *(int *)(v21 + 8 * v20 + 4); v24 = *((_QWORD *)v18 + 27); v25 = *(_DWORD *)(v24 + 4LL * *(int *)(v23 + 4LL * *(unsigned __int16 *)(v12 + 2 * v19))); v26 = *(_DWORD *)(v24 + 4LL * *(int *)(v23 + 4LL * v22 - 4)); if ( (*((_BYTE *)this + 8) & 0x10) == 0 ) { v27 = *((unsigned __int16 *)this + 2); v28 = 2 * v27; if ( *((_WORD *)this + 2) ) { if ( *((_DWORD *)this + 29) < v28 ) { operator delete(*((void **)this + 31)); *((_QWORD *)this + 13) = v35; *((_DWORD *)this + 29) = 32; v29 = operator new((unsigned int)(8 * v27)); *((_QWORD *)this + 31) = v29; *((_QWORD *)this + 13) = v29; *((_DWORD *)this + 29) = v28; } } else { operator delete(*((void **)this + 31)); *((_QWORD *)this + 13) = v35; *((_DWORD *)this + 29) = 32; } *((_DWORD *)this + 28) = v28; if ( *((_WORD *)this + 2) ) memset(*((_QWORD *)this + 13), 0LL, 8 * (unsigned int)*((unsigned __int16 *)this + 2)); *((_BYTE *)this + 8) |= 0x10u; v12 = v38; v18 = v37; } v30 = *((_QWORD *)this + 13); *(_DWORD *)(v30 + 8 * v19) = v25; *(_DWORD *)(v30 + 8 * v19++ + 4) = v26; } while ( v11 != v19 ); } OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::finalize(this); if ( (int)v11 <= 0 ) LABEL_27: __assert_fail( "\"Cannot identify face-vertex around non-manifold vertex.\" == 0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp", 604LL, "int OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(const Level &, Index, Index, int)"); result = 0LL; while ( *(_DWORD *)(v9 + 4 * result) != a3 || *(unsigned __int16 *)(v12 + 2 * result) != a5 ) { if ( v11 == ++result ) goto LABEL_27; } return result; }
populateFaceVertexDescriptor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV dword ptr [RSP + 0x14],R8D MOV R14,RSI MOV R15,RDI MOV qword ptr [RSP + 0x20],RDX LEA EAX,[RDX + RDX*0x1] CDQE MOV RDX,qword ptr [RSI + 0x18] MOVZX EAX,word ptr [RDX + RAX*0x4] MOV word ptr [RDI + 0x6],AX LEA EAX,[RCX + RCX*0x1] LEA EDX,[RCX + RCX*0x1 + 0x1] MOVSXD RDX,EDX MOV RSI,qword ptr [RSI + 0x108] MOVSXD R12,dword ptr [RSI + RDX*0x4] LEA RBX,[R12*0x4] ADD RBX,qword ptr [R14 + 0x120] MOV RDX,qword ptr [R14 + 0x1b0] CDQE MOV EAX,dword ptr [RSI + RAX*0x4] MOV EBP,EAX ADD R12,R12 ADD R12,qword ptr [R14 + 0x138] MOVSXD RCX,ECX MOV qword ptr [RSP + 0x8],RCX MOVZX EDI,word ptr [RDX + RCX*0x2] LEA ECX,[RAX + -0x1] MOV DL,byte ptr [R15 + 0x8] AND DL,0xfc XOR ESI,ESI CMP ECX,0xffff CMOVC ESI,EAX SETC CL OR DL,CL MOV word ptr [R15 + 0x4],SI ADD CL,CL OR CL,DL MOV byte ptr [R15 + 0x8],CL MOV dword ptr [RSP + 0x4],EDI MOV ECX,EDI SHR ECX,0xc TEST EAX,EAX SETG AL AND AL,CL CMP AL,0x1 JNZ 0x001b0e2f XOR R13D,R13D LAB_001b0e11: MOVSXD RAX,dword ptr [RBX + R13*0x4] MOV RCX,qword ptr [R14 + 0x18] MOV EDX,dword ptr [RCX + RAX*0x8] MOV RDI,R15 MOV ESI,R13D CALL 0x0013b060 INC R13 CMP RBP,R13 JNZ 0x001b0e11 LAB_001b0e2f: MOV ECX,dword ptr [RSP + 0x4] TEST CL,0x30 MOV RDI,R14 JZ 0x001b0e51 MOV RAX,qword ptr [RDI + 0x198] MOV RDX,qword ptr [RSP + 0x8] MOVSS XMM0,dword ptr [RAX + RDX*0x4] MOVSS dword ptr [R15],XMM0 LAB_001b0e51: TEST ECX,0x2040 JZ 0x001b0fb4 TEST EBP,EBP JLE 0x001b0fb4 LEA RAX,[R15 + 0x78] MOV qword ptr [RSP + 0x18],RAX XOR R14D,R14D MOV qword ptr [RSP + 0x30],R12 MOV qword ptr [RSP + 0x28],RDI LAB_001b0e7b: MOVSXD RDX,dword ptr [RBX + R14*0x4] MOV RSI,qword ptr [RDI + 0x18] MOVZX EAX,word ptr [R12 + R14*0x2] MOV ECX,EAX TEST EAX,EAX JNZ 0x001b0e98 LEA RCX,[RDX + RDX*0x1] MOVSXD RCX,ECX MOV ECX,dword ptr [RSI + RCX*0x4] LAB_001b0e98: MOVSXD RDX,dword ptr [RSI + RDX*0x8 + 0x4] SHL RDX,0x2 ADD RDX,qword ptr [RDI + 0x48] MOV RSI,qword ptr [RDI + 0xd8] MOVSXD RAX,dword ptr [RDX + RAX*0x4] MOVSS XMM0,dword ptr [RSI + RAX*0x4] MOVSXD RAX,ECX MOVSXD RAX,dword ptr [RDX + RAX*0x4 + -0x4] MOVSS XMM1,dword ptr [RSI + RAX*0x4] TEST byte ptr [R15 + 0x8],0x10 JNZ 0x001b0f97 MOVZX R13D,word ptr [R15 + 0x4] LEA R12D,[R13*0x2] TEST R13D,R13D MOVSS dword ptr [RSP + 0x4],XMM0 MOVSS dword ptr [RSP + 0x8],XMM1 JZ 0x001b0f37 CMP dword ptr [R15 + 0x74],R12D JNC 0x001b0f60 MOV RDI,qword ptr [R15 + 0xf8] CALL 0x0013a0c0 MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [R15 + 0x68],RAX MOV dword ptr [R15 + 0x74],0x20 SHL R13D,0x3 MOV RDI,R13 CALL 0x0013a230 MOVSS XMM1,dword ptr [RSP + 0x8] MOVSS XMM0,dword ptr [RSP + 0x4] MOV qword ptr [R15 + 0xf8],RAX MOV qword ptr [R15 + 0x68],RAX MOV dword ptr [R15 + 0x74],R12D JMP 0x001b0f60 LAB_001b0f37: MOV RDI,qword ptr [R15 + 0xf8] CALL 0x0013a0c0 MOVSS XMM1,dword ptr [RSP + 0x8] MOVSS XMM0,dword ptr [RSP + 0x4] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [R15 + 0x68],RAX MOV dword ptr [R15 + 0x74],0x20 LAB_001b0f60: MOV dword ptr [R15 + 0x70],R12D MOVZX EDX,word ptr [R15 + 0x4] TEST RDX,RDX JZ 0x001b0f88 SHL EDX,0x3 MOV RDI,qword ptr [R15 + 0x68] XOR ESI,ESI CALL 0x001391b0 MOVSS XMM1,dword ptr [RSP + 0x8] MOVSS XMM0,dword ptr [RSP + 0x4] LAB_001b0f88: OR byte ptr [R15 + 0x8],0x10 MOV R12,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RSP + 0x28] LAB_001b0f97: MOV RAX,qword ptr [R15 + 0x68] MOVSS dword ptr [RAX + R14*0x8],XMM0 MOVSS dword ptr [RAX + R14*0x8 + 0x4],XMM1 INC R14 CMP RBP,R14 JNZ 0x001b0e7b LAB_001b0fb4: MOV RDI,R15 CALL 0x0013bbb0 TEST EBP,EBP MOV EDX,dword ptr [RSP + 0x14] MOV RSI,qword ptr [RSP + 0x20] JLE 0x001b0fe1 XOR EAX,EAX LAB_001b0fcb: CMP dword ptr [RBX + RAX*0x4],ESI JNZ 0x001b0fd9 MOVZX ECX,word ptr [R12 + RAX*0x2] CMP ECX,EDX JZ 0x001b1000 LAB_001b0fd9: INC RAX CMP RBP,RAX JNZ 0x001b0fcb LAB_001b0fe1: LEA RDI,[0x1c0d8c] LEA RSI,[0x1c6074] LEA RCX,[0x1c6299] MOV EDX,0x25c CALL 0x00139560 LAB_001b1000: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int) */ void __thiscall OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor (UnorderedSubset *this,Level *param_1,int param_2,int param_3,int param_4) { int4 uVar1; int4 uVar2; ushort uVar3; uint uVar4; int iVar5; void *pvVar6; long lVar7; long lVar8; ulong uVar9; uint uVar10; long lVar11; ulong uVar12; bool bVar13; *(int2 *)(this + 6) = *(int2 *)(*(long *)(param_1 + 0x18) + (long)(param_2 * 2) * 4); lVar11 = (long)*(int *)(*(long *)(param_1 + 0x108) + (long)(param_3 * 2 + 1) * 4); lVar8 = lVar11 * 4 + *(long *)(param_1 + 0x120); uVar4 = *(uint *)(*(long *)(param_1 + 0x108) + (long)(param_3 * 2) * 4); uVar9 = (ulong)uVar4; lVar11 = lVar11 * 2 + *(long *)(param_1 + 0x138); uVar3 = *(ushort *)(*(long *)(param_1 + 0x1b0) + (long)param_3 * 2); bVar13 = uVar4 - 1 < 0xffff; uVar10 = 0; if (bVar13) { uVar10 = uVar4; } *(short *)(this + 4) = (short)uVar10; this[8] = (UnorderedSubset)(bVar13 * '\x02' | (byte)this[8] & 0xfc | bVar13); if ((0 < (int)uVar4 & (byte)(uVar3 >> 0xc)) == 1) { uVar12 = 0; do { VertexDescriptor::setIncidentFaceSize ((VertexDescriptor *)this,(int)uVar12, *(int *)(*(long *)(param_1 + 0x18) + (long)*(int *)(lVar8 + uVar12 * 4) * 8)); uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } if ((uVar3 & 0x30) != 0) { *(int4 *)this = *(int4 *)(*(long *)(param_1 + 0x198) + (long)param_3 * 4); } if (((uVar3 & 0x2040) != 0) && (0 < (int)uVar4)) { uVar12 = 0; do { iVar5 = *(int *)(lVar8 + uVar12 * 4); uVar3 = *(ushort *)(lVar11 + uVar12 * 2); uVar10 = (uint)uVar3; if (uVar10 == 0) { uVar10 = *(uint *)(*(long *)(param_1 + 0x18) + (long)(iVar5 * 2) * 4); } lVar7 = (long)*(int *)(*(long *)(param_1 + 0x18) + 4 + (long)iVar5 * 8) * 4 + *(long *)(param_1 + 0x48); uVar1 = *(int4 *) (*(long *)(param_1 + 0xd8) + (long)*(int *)(lVar7 + (ulong)uVar3 * 4) * 4); uVar2 = *(int4 *) (*(long *)(param_1 + 0xd8) + (long)*(int *)(lVar7 + -4 + (long)(int)uVar10 * 4) * 4); if (((byte)this[8] & 0x10) == 0) { uVar3 = *(ushort *)(this + 4); uVar10 = (uint)uVar3 * 2; if (uVar3 == 0) { operator_delete(*(void **)(this + 0xf8)); *(UnorderedSubset **)(this + 0x68) = this + 0x78; *(int4 *)(this + 0x74) = 0x20; } else if (*(uint *)(this + 0x74) < uVar10) { operator_delete(*(void **)(this + 0xf8)); *(UnorderedSubset **)(this + 0x68) = this + 0x78; *(int4 *)(this + 0x74) = 0x20; pvVar6 = operator_new((ulong)uVar3 << 3); *(void **)(this + 0xf8) = pvVar6; *(void **)(this + 0x68) = pvVar6; *(uint *)(this + 0x74) = uVar10; } *(uint *)(this + 0x70) = uVar10; if (*(ushort *)(this + 4) != 0) { memset(*(void **)(this + 0x68),0,(ulong)*(ushort *)(this + 4) << 3); } this[8] = (UnorderedSubset)((byte)this[8] | 0x10); } lVar7 = *(long *)(this + 0x68); *(int4 *)(lVar7 + uVar12 * 8) = uVar1; *(int4 *)(lVar7 + 4 + uVar12 * 8) = uVar2; uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } VertexDescriptor::finalize((VertexDescriptor *)this); if (0 < (int)uVar4) { uVar12 = 0; do { if ((*(int *)(lVar8 + uVar12 * 4) == param_2) && ((uint)*(ushort *)(lVar11 + uVar12 * 2) == param_4)) { return; } uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } /* WARNING: Subroutine does not return */ __assert_fail("\"Cannot identify face-vertex around non-manifold vertex.\" == 0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp" ,0x25c, "int OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(const Level &, Index, Index, int)" ); }
33,337
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp
int UnorderedSubset::populateFaceVertexDescriptor( Level const& level, Index faceIndex, Index vertIndex, int vertInface) { // Identify the vertex index for the specified corner of the face // and topology information related to it: _vdesc.commonFaceSize = level.getNumFaceVertices(faceIndex); Index vIndex = vertIndex; ConstIndexArray vFaces = level.getVertexFaces(vIndex); int nFaces = vFaces.size(); ConstLocalIndexArray vInFace = level.getVertexFaceLocalIndices(vIndex); Level::VTag vTag = level.getVertexTag(vIndex); // Initialize, assign and finalize the vertex topology: // Note there is no need to check valence or face sizes with any // max here as TopologyRefiner construction excludes extreme cases. _vdesc.initialize(nFaces); if (vTag._incidIrregFace) { for (int i = 0; i < nFaces; ++i) { _vdesc.setIncidentFaceSize(i, level.getFaceVertices(vFaces[i]).size()); } } if (vTag._semiSharp || vTag._infSharp) _vdesc.vertSharpness = level.getVertexSharpness(vIndex); if (vTag._semiSharpEdges || vTag._infSharpEdges) { // Must use face-edges and identify next/prev edges in face: for (int i = 0; i < nFaces; ++i) { ConstIndexArray fEdges = level.getFaceEdges(vFaces[i]); int eLeading = vInFace[i]; int eTrailing = (eLeading ? eLeading : fEdges.size()) - 1; _vdesc.setIncidentFaceEdgeSharpness(i, level.getEdgeSharpness(fEdges[eLeading]), level.getEdgeSharpness(fEdges[eTrailing])); } } _vdesc.finalize(); // Return the index of the base face around the vertex: // Remember that for some non-manifold cases the face may occur // multiple times around this vertex, so make sure to identify the // instance that matches the specified corner of the face. for (int i = 0; i < vFaces.size(); ++i) { if ((vFaces[i] == faceIndex) && (vInFace[i] == vertInface)) { return i; } } assert("Cannot identify face-vertex around non-manifold vertex." == 0); return -1; }
O2
cpp
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r8d, 0x1c(%rsp) movl %ecx, %ebx movl %edx, %r14d movq %rsi, %rbp movq %rdi, %r13 leal (%r14,%r14), %eax cltq movq 0x18(%rsi), %rcx movzwl (%rcx,%rax,4), %eax movw %ax, 0x6(%rdi) movq %rsi, %rdi movl %ebx, %esi callq 0x55df0 movq %rax, %r15 movl %edx, 0xc(%rsp) movq %rbp, %rdi movl %ebx, %esi callq 0x507c0 movq %rax, %r12 movslq %ebx, %rcx movq 0x1b0(%rbp), %rax movq %rcx, 0x20(%rsp) movzwl (%rax,%rcx,2), %ebx movq %r13, 0x10(%rsp) movq %r13, %rdi movl 0xc(%rsp), %esi callq 0x52b60 movl %ebx, 0x18(%rsp) btl $0xc, %ebx jb 0xbaf4a movl 0x18(%rsp), %ecx testb $0x30, %cl je 0xbaee3 movq 0x198(%rbp), %rax movq 0x20(%rsp), %rdx movss (%rax,%rdx,4), %xmm0 movq 0x10(%rsp), %rax movss %xmm0, (%rax) testw $0x2040, %cx # imm = 0x2040 je 0xbaf82 xorl %ebx, %ebx movl 0xc(%rsp), %eax testl %eax, %eax movl %eax, %r13d cmovlel %ebx, %r13d cmpq %rbx, %r13 je 0xbaf8f movl (%r15,%rbx,4), %esi movq %rbp, %rdi callq 0x52d60 movzwl (%r12,%rbx,2), %ecx testl %ecx, %ecx cmovnel %ecx, %edx movslq (%rax,%rcx,4), %rcx movq 0xd8(%rbp), %rsi movss (%rsi,%rcx,4), %xmm0 movslq %edx, %rcx movslq -0x4(%rax,%rcx,4), %rax movss (%rsi,%rax,4), %xmm1 movq 0x10(%rsp), %rdi movl %ebx, %esi callq 0x556f0 incq %rbx jmp 0xbaefd xorl %ebx, %ebx movl 0xc(%rsp), %eax testl %eax, %eax movl $0x0, %r13d cmovgl %eax, %r13d cmpq %rbx, %r13 je 0xbaec0 movl (%r15,%rbx,4), %esi movq %rbp, %rdi callq 0x52db0 movq 0x10(%rsp), %rdi movl %ebx, %esi callq 0x53ec0 incq %rbx jmp 0xbaf5c xorl %r13d, %r13d movl 0xc(%rsp), %eax testl %eax, %eax cmovgl %eax, %r13d movq 0x10(%rsp), %rdi callq 0x55050 xorl %eax, %eax movl 0x1c(%rsp), %edx cmpq %rax, %r13 je 0xbafc7 cmpl %r14d, (%r15,%rax,4) jne 0xbafb3 movzwl (%r12,%rax,2), %ecx cmpl %edx, %ecx je 0xbafb8 incq %rax jmp 0xbaf9f addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x10930(%rip), %rdi # 0xcb8fe leaq 0x15def(%rip), %rsi # 0xd0dc4 leaq 0x1600d(%rip), %rcx # 0xd0fe9 movl $0x25c, %edx # imm = 0x25C callq 0x512a0
_ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset28populateFaceVertexDescriptorERKNS0_3Vtr8internal5LevelEiii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rsp+58h+var_3C], r8d mov ebx, ecx mov r14d, edx mov rbp, rsi mov r13, rdi lea eax, [r14+r14] cdqe mov rcx, [rsi+18h] movzx eax, word ptr [rcx+rax*4] mov [rdi+6], ax mov rdi, rsi; this mov esi, ebx; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(int) mov r15, rax mov [rsp+58h+var_4C], edx mov rdi, rbp; this mov esi, ebx; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level25getVertexFaceLocalIndicesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaceLocalIndices(int) mov r12, rax movsxd rcx, ebx mov rax, [rbp+1B0h] mov [rsp+58h+var_38], rcx movzx ebx, word ptr [rax+rcx*2] mov [rsp+58h+var_48], r13 mov rdi, r13; this mov esi, [rsp+58h+var_4C]; int call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor10initializeEi; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::initialize(int) mov [rsp+58h+var_40], ebx bt ebx, 0Ch jb loc_BAF4A loc_BAEC0: mov ecx, [rsp+58h+var_40] test cl, 30h jz short loc_BAEE3 mov rax, [rbp+198h] mov rdx, [rsp+58h+var_38] movss xmm0, dword ptr [rax+rdx*4] mov rax, [rsp+58h+var_48] movss dword ptr [rax], xmm0 loc_BAEE3: test cx, 2040h jz loc_BAF82 xor ebx, ebx mov eax, [rsp+58h+var_4C] test eax, eax mov r13d, eax cmovle r13d, ebx loc_BAEFD: cmp r13, rbx jz loc_BAF8F mov esi, [r15+rbx*4]; int mov rdi, rbp; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level12getFaceEdgesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceEdges(int) movzx ecx, word ptr [r12+rbx*2] test ecx, ecx cmovnz edx, ecx movsxd rcx, dword ptr [rax+rcx*4] mov rsi, [rbp+0D8h] movss xmm0, dword ptr [rsi+rcx*4]; float movsxd rcx, edx movsxd rax, dword ptr [rax+rcx*4-4] movss xmm1, dword ptr [rsi+rax*4]; float mov rdi, [rsp+58h+var_48]; this mov esi, ebx; int call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor28setIncidentFaceEdgeSharpnessEiff; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceEdgeSharpness(int,float,float) inc rbx jmp short loc_BAEFD loc_BAF4A: xor ebx, ebx mov eax, [rsp+58h+var_4C] test eax, eax mov r13d, 0 cmovg r13d, eax loc_BAF5C: cmp r13, rbx jz loc_BAEC0 mov esi, [r15+rbx*4]; int mov rdi, rbp; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int) mov rdi, [rsp+58h+var_48]; this mov esi, ebx; int call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor19setIncidentFaceSizeEii; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceSize(int,int) inc rbx jmp short loc_BAF5C loc_BAF82: xor r13d, r13d mov eax, [rsp+58h+var_4C] test eax, eax cmovg r13d, eax loc_BAF8F: mov rdi, [rsp+58h+var_48]; this call __ZN10OpenSubdiv6v3_6_03Tmr15UnorderedSubset16VertexDescriptor8finalizeEv; OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::finalize(void) xor eax, eax mov edx, [rsp+58h+var_3C] loc_BAF9F: cmp r13, rax jz short loc_BAFC7 cmp [r15+rax*4], r14d jnz short loc_BAFB3 movzx ecx, word ptr [r12+rax*2] cmp ecx, edx jz short loc_BAFB8 loc_BAFB3: inc rax jmp short loc_BAF9F loc_BAFB8: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_BAFC7: lea rdi, aCannotIdentify; "\"Cannot identify face-vertex around no"... lea rsi, aWorkspaceLlm4b_55; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_53; "int OpenSubdiv::v3_6_0::Tmr::UnorderedS"... mov edx, 25Ch call ___assert_fail
long long OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor( OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this, const OpenSubdiv::v3_6_0::Vtr::internal::Level *a2, int a3, int a4, int a5) { int v5; // ebx long long VertexFaces; // r15 int v8; // edx long long VertexFaceLocalIndices; // r12 long long v10; // rbx long long v11; // r13 long long FaceEdges; // rax int v13; // edx long long v14; // rbx long long v15; // r13 int v16; // edx long long result; // rax int v18; // [rsp+Ch] [rbp-4Ch] __int16 v19; // [rsp+18h] [rbp-40h] long long v21; // [rsp+20h] [rbp-38h] v5 = a4; *((_WORD *)this + 3) = *(_WORD *)(*((_QWORD *)a2 + 3) + 8LL * a3); VertexFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(a2, a4); v18 = v8; VertexFaceLocalIndices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaceLocalIndices(a2, v5); v21 = v5; LOWORD(v5) = *(_WORD *)(*((_QWORD *)a2 + 54) + 2LL * v5); OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::initialize(this, v18); v19 = v5; if ( (v5 & 0x1000) != 0 ) { v14 = 0LL; v15 = 0LL; if ( v18 > 0 ) v15 = (unsigned int)v18; while ( v15 != v14 ) { OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(a2, *(_DWORD *)(VertexFaces + 4 * v14)); OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceSize(this, v14++, v16); } } if ( (v19 & 0x30) != 0 ) *(_DWORD *)this = *(_DWORD *)(*((_QWORD *)a2 + 51) + 4 * v21); if ( (v19 & 0x2040) != 0 ) { v10 = 0LL; v11 = (unsigned int)v18; if ( v18 <= 0 ) v11 = 0LL; while ( v11 != v10 ) { FaceEdges = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceEdges(a2, *(_DWORD *)(VertexFaces + 4 * v10)); if ( *(_WORD *)(VertexFaceLocalIndices + 2 * v10) ) v13 = *(unsigned __int16 *)(VertexFaceLocalIndices + 2 * v10); OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::setIncidentFaceEdgeSharpness( this, v10, *(float *)(*((_QWORD *)a2 + 27) + 4LL * *(int *)(FaceEdges + 4LL * *(unsigned __int16 *)(VertexFaceLocalIndices + 2 * v10))), *(float *)(*((_QWORD *)a2 + 27) + 4LL * *(int *)(FaceEdges + 4LL * v13 - 4))); ++v10; } } else { v11 = 0LL; if ( v18 > 0 ) v11 = (unsigned int)v18; } OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::VertexDescriptor::finalize(this); for ( result = 0LL; ; ++result ) { if ( v11 == result ) __assert_fail( "\"Cannot identify face-vertex around non-manifold vertex.\" == 0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp", 604LL, "int OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(const Level &, Index, Index, int)"); if ( *(_DWORD *)(VertexFaces + 4 * result) == a3 && *(unsigned __int16 *)(VertexFaceLocalIndices + 2 * result) == a5 ) break; } return result; }
populateFaceVertexDescriptor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV dword ptr [RSP + 0x1c],R8D MOV EBX,ECX MOV R14D,EDX MOV RBP,RSI MOV R13,RDI LEA EAX,[R14 + R14*0x1] CDQE MOV RCX,qword ptr [RSI + 0x18] MOVZX EAX,word ptr [RCX + RAX*0x4] MOV word ptr [RDI + 0x6],AX MOV RDI,RSI MOV ESI,EBX CALL 0x00155df0 MOV R15,RAX MOV dword ptr [RSP + 0xc],EDX MOV RDI,RBP MOV ESI,EBX CALL 0x001507c0 MOV R12,RAX MOVSXD RCX,EBX MOV RAX,qword ptr [RBP + 0x1b0] MOV qword ptr [RSP + 0x20],RCX MOVZX EBX,word ptr [RAX + RCX*0x2] MOV qword ptr [RSP + 0x10],R13 MOV RDI,R13 MOV ESI,dword ptr [RSP + 0xc] CALL 0x00152b60 MOV dword ptr [RSP + 0x18],EBX BT EBX,0xc JC 0x001baf4a LAB_001baec0: MOV ECX,dword ptr [RSP + 0x18] TEST CL,0x30 JZ 0x001baee3 MOV RAX,qword ptr [RBP + 0x198] MOV RDX,qword ptr [RSP + 0x20] MOVSS XMM0,dword ptr [RAX + RDX*0x4] MOV RAX,qword ptr [RSP + 0x10] MOVSS dword ptr [RAX],XMM0 LAB_001baee3: TEST CX,0x2040 JZ 0x001baf82 XOR EBX,EBX MOV EAX,dword ptr [RSP + 0xc] TEST EAX,EAX MOV R13D,EAX CMOVLE R13D,EBX LAB_001baefd: CMP R13,RBX JZ 0x001baf8f MOV ESI,dword ptr [R15 + RBX*0x4] MOV RDI,RBP CALL 0x00152d60 MOVZX ECX,word ptr [R12 + RBX*0x2] TEST ECX,ECX CMOVNZ EDX,ECX MOVSXD RCX,dword ptr [RAX + RCX*0x4] MOV RSI,qword ptr [RBP + 0xd8] MOVSS XMM0,dword ptr [RSI + RCX*0x4] MOVSXD RCX,EDX MOVSXD RAX,dword ptr [RAX + RCX*0x4 + -0x4] MOVSS XMM1,dword ptr [RSI + RAX*0x4] MOV RDI,qword ptr [RSP + 0x10] MOV ESI,EBX CALL 0x001556f0 INC RBX JMP 0x001baefd LAB_001baf4a: XOR EBX,EBX MOV EAX,dword ptr [RSP + 0xc] TEST EAX,EAX MOV R13D,0x0 CMOVG R13D,EAX LAB_001baf5c: CMP R13,RBX JZ 0x001baec0 MOV ESI,dword ptr [R15 + RBX*0x4] MOV RDI,RBP CALL 0x00152db0 MOV RDI,qword ptr [RSP + 0x10] MOV ESI,EBX CALL 0x00153ec0 INC RBX JMP 0x001baf5c LAB_001baf82: XOR R13D,R13D MOV EAX,dword ptr [RSP + 0xc] TEST EAX,EAX CMOVG R13D,EAX LAB_001baf8f: MOV RDI,qword ptr [RSP + 0x10] CALL 0x00155050 XOR EAX,EAX MOV EDX,dword ptr [RSP + 0x1c] LAB_001baf9f: CMP R13,RAX JZ 0x001bafc7 CMP dword ptr [R15 + RAX*0x4],R14D JNZ 0x001bafb3 MOVZX ECX,word ptr [R12 + RAX*0x2] CMP ECX,EDX JZ 0x001bafb8 LAB_001bafb3: INC RAX JMP 0x001baf9f LAB_001bafb8: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001bafc7: LEA RDI,[0x1cb8fe] LEA RSI,[0x1d0dc4] LEA RCX,[0x1d0fe9] MOV EDX,0x25c CALL 0x001512a0
/* OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(OpenSubdiv::v3_6_0::Vtr::internal::Level const&, int, int, int) */ void __thiscall OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor (UnorderedSubset *this,Level *param_1,int param_2,int param_3,int param_4) { ushort uVar1; long lVar2; long lVar3; uint uVar4; int extraout_EDX; ulong uVar5; ulong uVar6; int1 auVar7 [12]; *(int2 *)(this + 6) = *(int2 *)(*(long *)(param_1 + 0x18) + (long)(param_2 * 2) * 4); auVar7 = Vtr::internal::Level::getVertexFaces(param_1,param_3); uVar4 = auVar7._8_4_; lVar2 = auVar7._0_8_; lVar3 = Vtr::internal::Level::getVertexFaceLocalIndices(param_1,param_3); uVar1 = *(ushort *)(*(long *)(param_1 + 0x1b0) + (long)param_3 * 2); VertexDescriptor::initialize((VertexDescriptor *)this,uVar4); if ((uVar1 >> 0xc & 1) != 0) { uVar6 = 0; uVar5 = 0; if (0 < (int)uVar4) { uVar5 = (ulong)uVar4; } for (; uVar5 != uVar6; uVar6 = uVar6 + 1) { Vtr::internal::Level::getFaceVertices(param_1,*(int *)(lVar2 + uVar6 * 4)); VertexDescriptor::setIncidentFaceSize((VertexDescriptor *)this,(int)uVar6,extraout_EDX); } } if ((uVar1 & 0x30) != 0) { *(int4 *)this = *(int4 *)(*(long *)(param_1 + 0x198) + (long)param_3 * 4); } if ((uVar1 & 0x2040) == 0) { uVar6 = 0; if (0 < (int)uVar4) { uVar6 = (ulong)uVar4; } } else { uVar5 = 0; uVar6 = (ulong)uVar4; if ((int)uVar4 < 1) { uVar6 = uVar5; } for (; uVar6 != uVar5; uVar5 = uVar5 + 1) { auVar7 = Vtr::internal::Level::getFaceEdges(param_1,*(int *)(lVar2 + uVar5 * 4)); uVar4 = auVar7._8_4_; uVar1 = *(ushort *)(lVar3 + uVar5 * 2); if (uVar1 != 0) { uVar4 = (uint)uVar1; } VertexDescriptor::setIncidentFaceEdgeSharpness ((VertexDescriptor *)this,(int)uVar5, *(float *)(*(long *)(param_1 + 0xd8) + (long)*(int *)(auVar7._0_8_ + (ulong)uVar1 * 4) * 4), *(float *)(*(long *)(param_1 + 0xd8) + (long)*(int *)(auVar7._0_8_ + -4 + (long)(int)uVar4 * 4) * 4)); } } VertexDescriptor::finalize((VertexDescriptor *)this); uVar5 = 0; while( true ) { if (uVar6 == uVar5) { /* WARNING: Subroutine does not return */ __assert_fail("\"Cannot identify face-vertex around non-manifold vertex.\" == 0", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp" ,0x25c, "int OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::populateFaceVertexDescriptor(const Level &, Index, Index, int)" ); } if ((*(int *)(lVar2 + uVar5 * 4) == param_2) && ((uint)*(ushort *)(lVar3 + uVar5 * 2) == param_4)) break; uVar5 = uVar5 + 1; } return; }
33,338
sapphire_plugins::tube_unit::TubeUnitEditor::~TubeUnitEditor()
sapphire-plugins/src/tube_unit/editor.cpp
TubeUnitEditor::~TubeUnitEditor() { uiToAudio.push({shared::UIToAudioMsg::EDITOR_ATTACH_DETATCH, false}); idleTimer->stopTimer(); }
O3
cpp
sapphire_plugins::tube_unit::TubeUnitEditor::~TubeUnitEditor(): pushq %rbx movq %rdi, %rbx leaq 0x4d8af3(%rip), %rax # 0x5ccb68 movq %rax, (%rdi) movq 0x12c8(%rdi), %rax movq 0x8(%rax), %rcx leaq (%rcx,%rcx,2), %rdx movq $0x4, 0x18(%rax,%rdx,4) movl $0x0, 0x20(%rax,%rdx,4) incl %ecx movzwl %cx, %ecx movq %rcx, 0x8(%rax) movq 0x1260(%rdi), %rdi callq 0x2f8e10 movq 0x12f0(%rbx), %rdi testq %rdi, %rdi je 0xf40bf movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x12f0(%rbx) movq 0x12e0(%rbx), %rax testq %rax, %rax je 0xf40e7 leaq 0x12d0(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x12b8(%rbx), %rdi testq %rdi, %rdi je 0xf40f9 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x12b8(%rbx) movq 0x12b0(%rbx), %rdi testq %rdi, %rdi je 0xf4116 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x12b0(%rbx) movq 0x12a8(%rbx), %rdi testq %rdi, %rdi je 0xf4133 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x12a8(%rbx) movq 0x12a0(%rbx), %rdi testq %rdi, %rdi je 0xf4150 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x12a0(%rbx) movq 0x1298(%rbx), %rdi testq %rdi, %rdi je 0xf416d movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1298(%rbx) movq 0x1290(%rbx), %rdi testq %rdi, %rdi je 0xf418a movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1290(%rbx) movq 0x1288(%rbx), %rdi testq %rdi, %rdi je 0xf41a7 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1288(%rbx) movq 0x1280(%rbx), %rdi testq %rdi, %rdi je 0xf41c4 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1280(%rbx) movq 0x1278(%rbx), %rdi testq %rdi, %rdi je 0xf41e1 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1278(%rbx) movq 0x1270(%rbx), %rdi testq %rdi, %rdi je 0xf41fe movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1270(%rbx) movq 0x1268(%rbx), %rdi testq %rdi, %rdi je 0xf421b movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1268(%rbx) movq 0x1260(%rbx), %rdi testq %rdi, %rdi je 0xf4238 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x1260(%rbx) leaq 0x1228(%rbx), %rdi callq 0xece44 leaq 0xf0(%rbx), %rdi callq 0xefdce movq %rbx, %rdi popq %rbx jmp 0x183f7a movq %rax, %rdi callq 0xd4dfb
_ZN16sapphire_plugins9tube_unit14TubeUnitEditorD2Ev: push rbx mov rbx, rdi lea rax, off_5CCB68 mov [rdi], rax mov rax, [rdi+12C8h] mov rcx, [rax+8] lea rdx, [rcx+rcx*2] mov qword ptr [rax+rdx*4+18h], 4 mov dword ptr [rax+rdx*4+20h], 0 inc ecx movzx ecx, cx mov [rax+8], rcx mov rdi, [rdi+1260h]; this call _ZN4juce5Timer9stopTimerEv; juce::Timer::stopTimer(void) mov rdi, [rbx+12F0h] test rdi, rdi jz short loc_F40BF mov rax, [rdi] call qword ptr [rax+8] loc_F40BF: mov qword ptr [rbx+12F0h], 0 mov rax, [rbx+12E0h] test rax, rax jz short loc_F40E7 lea rdi, [rbx+12D0h] mov rsi, rdi mov edx, 3 call rax loc_F40E7: mov rdi, [rbx+12B8h] test rdi, rdi jz short loc_F40F9 mov rax, [rdi] call qword ptr [rax+8] loc_F40F9: mov qword ptr [rbx+12B8h], 0 mov rdi, [rbx+12B0h] test rdi, rdi jz short loc_F4116 mov rax, [rdi] call qword ptr [rax+8] loc_F4116: mov qword ptr [rbx+12B0h], 0 mov rdi, [rbx+12A8h] test rdi, rdi jz short loc_F4133 mov rax, [rdi] call qword ptr [rax+8] loc_F4133: mov qword ptr [rbx+12A8h], 0 mov rdi, [rbx+12A0h] test rdi, rdi jz short loc_F4150 mov rax, [rdi] call qword ptr [rax+8] loc_F4150: mov qword ptr [rbx+12A0h], 0 mov rdi, [rbx+1298h] test rdi, rdi jz short loc_F416D mov rax, [rdi] call qword ptr [rax+8] loc_F416D: mov qword ptr [rbx+1298h], 0 mov rdi, [rbx+1290h] test rdi, rdi jz short loc_F418A mov rax, [rdi] call qword ptr [rax+8] loc_F418A: mov qword ptr [rbx+1290h], 0 mov rdi, [rbx+1288h] test rdi, rdi jz short loc_F41A7 mov rax, [rdi] call qword ptr [rax+8] loc_F41A7: mov qword ptr [rbx+1288h], 0 mov rdi, [rbx+1280h] test rdi, rdi jz short loc_F41C4 mov rax, [rdi] call qword ptr [rax+8] loc_F41C4: mov qword ptr [rbx+1280h], 0 mov rdi, [rbx+1278h] test rdi, rdi jz short loc_F41E1 mov rax, [rdi] call qword ptr [rax+8] loc_F41E1: mov qword ptr [rbx+1278h], 0 mov rdi, [rbx+1270h] test rdi, rdi jz short loc_F41FE mov rax, [rdi] call qword ptr [rax+8] loc_F41FE: mov qword ptr [rbx+1270h], 0 mov rdi, [rbx+1268h] test rdi, rdi jz short loc_F421B mov rax, [rdi] call qword ptr [rax+8] loc_F421B: mov qword ptr [rbx+1268h], 0 mov rdi, [rbx+1260h] test rdi, rdi jz short loc_F4238 mov rax, [rdi] call qword ptr [rax+8] loc_F4238: mov qword ptr [rbx+1260h], 0 lea rdi, [rbx+1228h] call _ZNSt10_HashtableIjSt4pairIKjN4juce9Component11SafePointerINS2_6SliderEEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<uint,std::pair<uint const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<uint const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() lea rdi, [rbx+0F0h]; this call _ZN16sapphire_plugins9tube_unit5PatchD2Ev; sapphire_plugins::tube_unit::Patch::~Patch() mov rdi, rbx; this pop rbx jmp _ZN4juce9ComponentD2Ev; juce::Component::~Component() mov rdi, rax call __clang_call_terminate
void sapphire_plugins::tube_unit::TubeUnitEditor::~TubeUnitEditor( sapphire_plugins::tube_unit::TubeUnitEditor *this) { long long v2; // rax long long v3; // rcx long long v4; // rdx long long v5; // rdi void ( *v6)(char *, char *, long long); // rax long long v7; // rdi long long v8; // rdi long long v9; // rdi long long v10; // rdi long long v11; // rdi long long v12; // rdi long long v13; // rdi long long v14; // rdi long long v15; // rdi long long v16; // rdi long long v17; // rdi long long v18; // rdi *(_QWORD *)this = off_5CCB68; v2 = *((_QWORD *)this + 601); v3 = *(_QWORD *)(v2 + 8); v4 = 3 * v3; *(_QWORD *)(v2 + 4 * v4 + 24) = 4LL; *(_DWORD *)(v2 + 4 * v4 + 32) = 0; *(_QWORD *)(v2 + 8) = (unsigned __int16)(v3 + 1); juce::Timer::stopTimer(*((juce::Timer **)this + 588)); v5 = *((_QWORD *)this + 606); if ( v5 ) (*(void ( **)(long long))(*(_QWORD *)v5 + 8LL))(v5); *((_QWORD *)this + 606) = 0LL; v6 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 604); if ( v6 ) v6((char *)this + 4816, (char *)this + 4816, 3LL); v7 = *((_QWORD *)this + 599); if ( v7 ) (*(void ( **)(long long))(*(_QWORD *)v7 + 8LL))(v7); *((_QWORD *)this + 599) = 0LL; v8 = *((_QWORD *)this + 598); if ( v8 ) (*(void ( **)(long long))(*(_QWORD *)v8 + 8LL))(v8); *((_QWORD *)this + 598) = 0LL; v9 = *((_QWORD *)this + 597); if ( v9 ) (*(void ( **)(long long))(*(_QWORD *)v9 + 8LL))(v9); *((_QWORD *)this + 597) = 0LL; v10 = *((_QWORD *)this + 596); if ( v10 ) (*(void ( **)(long long))(*(_QWORD *)v10 + 8LL))(v10); *((_QWORD *)this + 596) = 0LL; v11 = *((_QWORD *)this + 595); if ( v11 ) (*(void ( **)(long long))(*(_QWORD *)v11 + 8LL))(v11); *((_QWORD *)this + 595) = 0LL; v12 = *((_QWORD *)this + 594); if ( v12 ) (*(void ( **)(long long))(*(_QWORD *)v12 + 8LL))(v12); *((_QWORD *)this + 594) = 0LL; v13 = *((_QWORD *)this + 593); if ( v13 ) (*(void ( **)(long long))(*(_QWORD *)v13 + 8LL))(v13); *((_QWORD *)this + 593) = 0LL; v14 = *((_QWORD *)this + 592); if ( v14 ) (*(void ( **)(long long))(*(_QWORD *)v14 + 8LL))(v14); *((_QWORD *)this + 592) = 0LL; v15 = *((_QWORD *)this + 591); if ( v15 ) (*(void ( **)(long long))(*(_QWORD *)v15 + 8LL))(v15); *((_QWORD *)this + 591) = 0LL; v16 = *((_QWORD *)this + 590); if ( v16 ) (*(void ( **)(long long))(*(_QWORD *)v16 + 8LL))(v16); *((_QWORD *)this + 590) = 0LL; v17 = *((_QWORD *)this + 589); if ( v17 ) (*(void ( **)(long long))(*(_QWORD *)v17 + 8LL))(v17); *((_QWORD *)this + 589) = 0LL; v18 = *((_QWORD *)this + 588); if ( v18 ) (*(void ( **)(long long))(*(_QWORD *)v18 + 8LL))(v18); *((_QWORD *)this + 588) = 0LL; std::_Hashtable<unsigned int,std::pair<unsigned int const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned int const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable((long long)this + 4648); sapphire_plugins::tube_unit::Patch::~Patch((sapphire_plugins::tube_unit::TubeUnitEditor *)((char *)this + 240)); juce::Component::~Component(this); }
~TubeUnitEditor: PUSH RBX MOV RBX,RDI LEA RAX,[0x6ccb68] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RDI + 0x12c8] MOV RCX,qword ptr [RAX + 0x8] LEA RDX,[RCX + RCX*0x2] MOV qword ptr [RAX + RDX*0x4 + 0x18],0x4 MOV dword ptr [RAX + RDX*0x4 + 0x20],0x0 INC ECX MOVZX ECX,CX MOV qword ptr [RAX + 0x8],RCX MOV RDI,qword ptr [RDI + 0x1260] CALL 0x003f8e10 MOV RDI,qword ptr [RBX + 0x12f0] TEST RDI,RDI JZ 0x001f40bf MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f40bf: MOV qword ptr [RBX + 0x12f0],0x0 MOV RAX,qword ptr [RBX + 0x12e0] TEST RAX,RAX JZ 0x001f40e7 LEA RDI,[RBX + 0x12d0] LAB_001f40dd: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001f40e7: MOV RDI,qword ptr [RBX + 0x12b8] TEST RDI,RDI JZ 0x001f40f9 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f40f9: MOV qword ptr [RBX + 0x12b8],0x0 MOV RDI,qword ptr [RBX + 0x12b0] TEST RDI,RDI JZ 0x001f4116 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f4116: MOV qword ptr [RBX + 0x12b0],0x0 MOV RDI,qword ptr [RBX + 0x12a8] TEST RDI,RDI JZ 0x001f4133 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f4133: MOV qword ptr [RBX + 0x12a8],0x0 MOV RDI,qword ptr [RBX + 0x12a0] TEST RDI,RDI JZ 0x001f4150 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f4150: MOV qword ptr [RBX + 0x12a0],0x0 MOV RDI,qword ptr [RBX + 0x1298] TEST RDI,RDI JZ 0x001f416d MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f416d: MOV qword ptr [RBX + 0x1298],0x0 MOV RDI,qword ptr [RBX + 0x1290] TEST RDI,RDI JZ 0x001f418a MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f418a: MOV qword ptr [RBX + 0x1290],0x0 MOV RDI,qword ptr [RBX + 0x1288] TEST RDI,RDI JZ 0x001f41a7 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f41a7: MOV qword ptr [RBX + 0x1288],0x0 MOV RDI,qword ptr [RBX + 0x1280] TEST RDI,RDI JZ 0x001f41c4 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f41c4: MOV qword ptr [RBX + 0x1280],0x0 MOV RDI,qword ptr [RBX + 0x1278] TEST RDI,RDI JZ 0x001f41e1 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f41e1: MOV qword ptr [RBX + 0x1278],0x0 MOV RDI,qword ptr [RBX + 0x1270] TEST RDI,RDI JZ 0x001f41fe MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f41fe: MOV qword ptr [RBX + 0x1270],0x0 MOV RDI,qword ptr [RBX + 0x1268] TEST RDI,RDI JZ 0x001f421b MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f421b: MOV qword ptr [RBX + 0x1268],0x0 MOV RDI,qword ptr [RBX + 0x1260] TEST RDI,RDI JZ 0x001f4238 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_001f4238: MOV qword ptr [RBX + 0x1260],0x0 LEA RDI,[RBX + 0x1228] CALL 0x001ece44 LEA RDI,[RBX + 0xf0] CALL 0x001efdce MOV RDI,RBX POP RBX JMP 0x00283f7a
/* sapphire_plugins::tube_unit::TubeUnitEditor::~TubeUnitEditor() */ void __thiscall sapphire_plugins::tube_unit::TubeUnitEditor::~TubeUnitEditor(TubeUnitEditor *this) { long lVar1; long lVar2; *(int ***)this = &PTR__TubeUnitEditor_006ccb68; lVar1 = *(long *)(this + 0x12c8); lVar2 = *(long *)(lVar1 + 8); *(int8 *)(lVar1 + 0x18 + lVar2 * 0xc) = 4; *(int4 *)(lVar1 + 0x20 + lVar2 * 0xc) = 0; *(ulong *)(lVar1 + 8) = (ulong)((int)lVar2 + 1U & 0xffff); juce::Timer::stopTimer(*(Timer **)(this + 0x1260)); if (*(long **)(this + 0x12f0) != (long *)0x0) { (**(code **)(**(long **)(this + 0x12f0) + 8))(); } *(int8 *)(this + 0x12f0) = 0; if (*(code **)(this + 0x12e0) != (code *)0x0) { /* try { // try from 001f40dd to 001f40e6 has its CatchHandler @ 001f4264 */ (**(code **)(this + 0x12e0))(this + 0x12d0,this + 0x12d0,3); } if (*(long **)(this + 0x12b8) != (long *)0x0) { (**(code **)(**(long **)(this + 0x12b8) + 8))(); } *(int8 *)(this + 0x12b8) = 0; if (*(long **)(this + 0x12b0) != (long *)0x0) { (**(code **)(**(long **)(this + 0x12b0) + 8))(); } *(int8 *)(this + 0x12b0) = 0; if (*(long **)(this + 0x12a8) != (long *)0x0) { (**(code **)(**(long **)(this + 0x12a8) + 8))(); } *(int8 *)(this + 0x12a8) = 0; if (*(long **)(this + 0x12a0) != (long *)0x0) { (**(code **)(**(long **)(this + 0x12a0) + 8))(); } *(int8 *)(this + 0x12a0) = 0; if (*(long **)(this + 0x1298) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1298) + 8))(); } *(int8 *)(this + 0x1298) = 0; if (*(long **)(this + 0x1290) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1290) + 8))(); } *(int8 *)(this + 0x1290) = 0; if (*(long **)(this + 0x1288) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1288) + 8))(); } *(int8 *)(this + 0x1288) = 0; if (*(long **)(this + 0x1280) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1280) + 8))(); } *(int8 *)(this + 0x1280) = 0; if (*(long **)(this + 0x1278) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1278) + 8))(); } *(int8 *)(this + 0x1278) = 0; if (*(long **)(this + 0x1270) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1270) + 8))(); } *(int8 *)(this + 0x1270) = 0; if (*(long **)(this + 0x1268) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1268) + 8))(); } *(int8 *)(this + 0x1268) = 0; if (*(long **)(this + 0x1260) != (long *)0x0) { (**(code **)(**(long **)(this + 0x1260) + 8))(); } *(int8 *)(this + 0x1260) = 0; std:: _Hashtable<unsigned_int,std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::~_Hashtable((_Hashtable<unsigned_int,std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(this + 0x1228)); Patch::~Patch((Patch *)(this + 0xf0)); juce::Component::~Component((Component *)this); return; }
33,339
ma_compact_keypage
eloqsql/storage/maria/ma_page.c
my_bool _ma_compact_keypage(MARIA_PAGE *ma_page, TrID min_read_from) { MARIA_HA *info= ma_page->info; MARIA_SHARE *share= info->s; MARIA_KEY key; uchar *page, *endpos, *start_of_empty_space; uint page_flag, nod_flag, saved_space; my_bool page_has_transid; DBUG_ENTER("_ma_compact_keypage"); page_flag= ma_page->flag; if (!(page_flag & KEYPAGE_FLAG_HAS_TRANSID)) DBUG_RETURN(0); /* No transaction id on page */ nod_flag= ma_page->node; page= ma_page->buff; endpos= page + ma_page->size; key.data= info->lastkey_buff; key.keyinfo= (MARIA_KEYDEF*) ma_page->keyinfo; page_has_transid= 0; page+= share->keypage_header + nod_flag; key.data[0]= 0; /* safety */ start_of_empty_space= 0; saved_space= 0; do { if (!(page= (*ma_page->keyinfo->skip_key)(&key, 0, 0, page))) { DBUG_PRINT("error",("Couldn't find last key: page_pos: %p", page)); _ma_set_fatal_error(info, HA_ERR_CRASHED); DBUG_RETURN(1); } if (key_has_transid(page-1)) { uint transid_length; transid_length= transid_packed_length(page); if (min_read_from == ~(TrID) 0 || min_read_from < transid_get_packed(share, page)) { page[-1]&= 254; /* Remove transid marker */ transid_length= transid_packed_length(page); if (start_of_empty_space) { /* Move block before the transid up in page */ uint copy_length= (uint) (page - start_of_empty_space) - saved_space; memmove(start_of_empty_space, start_of_empty_space + saved_space, copy_length); start_of_empty_space+= copy_length; } else start_of_empty_space= page; saved_space+= transid_length; } else page_has_transid= 1; /* At least one id left */ page+= transid_length; } page+= nod_flag; } while (page < endpos); DBUG_ASSERT(page == endpos); if (start_of_empty_space) { /* Move last block down This is always true if any transid was removed */ uint copy_length= (uint) (endpos - start_of_empty_space) - saved_space; if (copy_length) memmove(start_of_empty_space, start_of_empty_space + saved_space, copy_length); ma_page->size= (uint) (start_of_empty_space + copy_length - ma_page->buff); page_store_size(share, ma_page); } if (!page_has_transid) { ma_page->flag&= ~KEYPAGE_FLAG_HAS_TRANSID; _ma_store_keypage_flag(share, ma_page->buff, ma_page->flag); /* Clear packed transid (in case of zerofill) */ bzero(ma_page->buff + LSN_STORE_SIZE, TRANSID_SIZE); } if (share->now_transactional) { if (_ma_log_compact_keypage(ma_page, min_read_from)) DBUG_RETURN(1); } DBUG_RETURN(0); }
O3
c
ma_compact_keypage: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %fs:0x28, %rax movq %rax, -0x30(%rbp) xorl %ecx, %ecx testb $0x2, 0x2c(%rdi) je 0x4028b movq %rsi, %r12 movq %rdi, %r14 movq $0x0, -0x60(%rbp) movq (%rdi), %rcx movq (%rcx), %rsi movl 0x28(%rdi), %edi movq 0x10(%r14), %rax movl 0x20(%r14), %r13d addq %rax, %r13 movq %rcx, -0x70(%rbp) movq 0x388(%rcx), %rcx leaq -0xb8(%rbp), %r8 movq %rcx, (%r8) movq 0x8(%r14), %rdx movq %rdx, 0x8(%r8) movq %rsi, -0x58(%rbp) movl 0x744(%rsi), %r15d movq %rdi, -0x90(%rbp) addl %edi, %r15d addq %rax, %r15 movb $0x0, (%rcx) movq $0x0, -0x68(%rbp) xorl %ebx, %ebx movq %r12, -0x80(%rbp) movq %r14, -0x78(%rbp) movq %r13, -0x88(%rbp) movq 0x8(%r14), %rax leaq -0xb8(%rbp), %rdi xorl %esi, %esi xorl %edx, %edx movq %r15, %rcx callq *0xe8(%rax) testq %rax, %rax je 0x4016a movq %rax, %r15 movb -0x1(%rax), %al testb $0x1, %al je 0x40144 cmpq $-0x1, %r12 je 0x400cf movzbl (%r15), %eax leal -0xf8(%rax), %r13d cmpl $0xf3, %eax movl $0x1, %eax cmovbl %eax, %r13d movq -0x58(%rbp), %rdi movq %r15, %rsi callq 0x41abd cmpq %r12, %rax jbe 0x40121 movb -0x1(%r15), %al andb $-0x2, %al movb %al, -0x1(%r15) movzbl (%r15), %eax leal -0xf8(%rax), %r13d cmpl $0xf3, %eax movl $0x1, %eax cmovbl %eax, %r13d testq %rbx, %rbx je 0x40129 movl %r15d, %r14d subl %ebx, %r14d movq -0x60(%rbp), %r12 subl %r12d, %r14d movl %r12d, %esi addq %rbx, %rsi movq %rbx, %rdi movq %r14, %rdx callq 0x2a140 movq %r12, %rax addq %r14, %rbx movq -0x78(%rbp), %r14 movq -0x80(%rbp), %r12 jmp 0x40130 movb $0x1, %al movq %rax, -0x68(%rbp) jmp 0x40137 movq %r15, %rbx movq -0x60(%rbp), %rax addl %r13d, %eax movq %rax, -0x60(%rbp) movl %r13d, %eax addq %rax, %r15 movq -0x88(%rbp), %r13 addq -0x90(%rbp), %r15 cmpq %r13, %r15 jb 0x4006c testq %rbx, %rbx je 0x401bc subl %ebx, %r13d movq -0x60(%rbp), %rax subl %eax, %r13d jne 0x4017f movl %r13d, %r15d jmp 0x40192 movq -0x70(%rbp), %rdi movl $0x7e, %esi callq 0x3c86c movb $0x1, %cl jmp 0x4028b movl %eax, %esi addq %rbx, %rsi movl %r13d, %r15d movq %rbx, %rdi movq %r15, %rdx callq 0x2a140 addq %r15, %rbx movq 0x10(%r14), %rax subq %rax, %rbx movl %ebx, 0x20(%r14) movq -0x58(%rbp), %rdx movl 0x744(%rdx), %ecx movb %bl, -0x1(%rax,%rcx) movq 0x10(%r14), %rax movl 0x744(%rdx), %ecx movb %bh, -0x2(%rax,%rcx) cmpb $0x0, -0x68(%rbp) jne 0x401f2 movl 0x2c(%r14), %eax andl $-0x3, %eax movl %eax, 0x2c(%r14) movq 0x10(%r14), %rcx movq -0x58(%rbp), %rdx movl 0x744(%rdx), %edx addl $-0x3, %edx movb %al, (%rcx,%rdx) movq 0x10(%r14), %rax movw $0x0, 0xb(%rax) movl $0x0, 0x7(%rax) movq -0x58(%rbp), %rax cmpb $0x0, 0x7e7(%rax) je 0x40289 movq (%r14), %rcx movq 0x18(%r14), %rax movq (%rcx), %rdx movl 0x7bc(%rdx), %esi xorl %edx, %edx divq %rsi leaq -0x50(%rbp), %r10 movl %eax, 0x2(%r10) shrq $0x20, %rax movb %al, 0x6(%r10) movb $0xb, 0x7(%r10) movl %r12d, 0x8(%r10) shrq $0x20, %r12 movw %r12w, 0xc(%r10) leaq -0xf0(%rbp), %rax movq %r10, 0x20(%rax) movq $0xe, 0x28(%rax) movl 0x20(%r14), %edx movl %edx, 0x24(%r14) movq 0x8(%rcx), %rdx subq $0x8, %rsp leaq -0x98(%rbp), %rdi movl $0xc, %esi movl $0xe, %r8d movl $0x3, %r9d pushq $0x0 pushq %r10 pushq %rax callq 0x2be39 addq $0x20, %rsp movb $0x1, %cl testb %al, %al jne 0x4028b xorl %ecx, %ecx movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x402ae movl %ecx, %eax addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2a250 nop
_ma_compact_keypage: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov rax, fs:28h mov [rbp+var_30], rax xor ecx, ecx test byte ptr [rdi+2Ch], 2 jz loc_4028B mov r12, rsi mov r14, rdi mov [rbp+var_60], 0 mov rcx, [rdi] mov rsi, [rcx] mov edi, [rdi+28h] mov rax, [r14+10h] mov r13d, [r14+20h] add r13, rax mov [rbp+var_70], rcx mov rcx, [rcx+388h] lea r8, [rbp+var_B8] mov [r8], rcx mov rdx, [r14+8] mov [r8+8], rdx mov [rbp+var_58], rsi mov r15d, [rsi+744h] mov [rbp+var_90], rdi add r15d, edi add r15, rax mov byte ptr [rcx], 0 mov [rbp+var_68], 0 xor ebx, ebx mov [rbp+var_80], r12 mov [rbp+var_78], r14 mov [rbp+var_88], r13 loc_4006C: mov rax, [r14+8] lea rdi, [rbp+var_B8] xor esi, esi xor edx, edx mov rcx, r15 call qword ptr [rax+0E8h] test rax, rax jz loc_4016A mov r15, rax mov al, [rax-1] test al, 1 jz loc_40144 cmp r12, 0FFFFFFFFFFFFFFFFh jz short loc_400CF movzx eax, byte ptr [r15] lea r13d, [rax-0F8h] cmp eax, 0F3h mov eax, 1 cmovb r13d, eax mov rdi, [rbp+var_58] mov rsi, r15 call transid_get_packed cmp rax, r12 jbe short loc_40121 mov al, [r15-1] loc_400CF: and al, 0FEh mov [r15-1], al movzx eax, byte ptr [r15] lea r13d, [rax-0F8h] cmp eax, 0F3h mov eax, 1 cmovb r13d, eax test rbx, rbx jz short loc_40129 mov r14d, r15d sub r14d, ebx mov r12, [rbp+var_60] sub r14d, r12d mov esi, r12d add rsi, rbx mov rdi, rbx mov rdx, r14 call _memmove mov rax, r12 add rbx, r14 mov r14, [rbp+var_78] mov r12, [rbp+var_80] jmp short loc_40130 loc_40121: mov al, 1 mov [rbp+var_68], rax jmp short loc_40137 loc_40129: mov rbx, r15 mov rax, [rbp+var_60] loc_40130: add eax, r13d mov [rbp+var_60], rax loc_40137: mov eax, r13d add r15, rax mov r13, [rbp+var_88] loc_40144: add r15, [rbp+var_90] cmp r15, r13 jb loc_4006C test rbx, rbx jz short loc_401BC sub r13d, ebx mov rax, [rbp+var_60] sub r13d, eax jnz short loc_4017F mov r15d, r13d jmp short loc_40192 loc_4016A: mov rdi, [rbp+var_70] mov esi, 7Eh ; '~' call _ma_set_fatal_error mov cl, 1 jmp loc_4028B loc_4017F: mov esi, eax add rsi, rbx mov r15d, r13d mov rdi, rbx mov rdx, r15 call _memmove loc_40192: add rbx, r15 mov rax, [r14+10h] sub rbx, rax mov [r14+20h], ebx mov rdx, [rbp+var_58] mov ecx, [rdx+744h] mov [rax+rcx-1], bl mov rax, [r14+10h] mov ecx, [rdx+744h] mov [rax+rcx-2], bh loc_401BC: cmp byte ptr [rbp+var_68], 0 jnz short loc_401F2 mov eax, [r14+2Ch] and eax, 0FFFFFFFDh mov [r14+2Ch], eax mov rcx, [r14+10h] mov rdx, [rbp+var_58] mov edx, [rdx+744h] add edx, 0FFFFFFFDh mov [rcx+rdx], al mov rax, [r14+10h] mov word ptr [rax+0Bh], 0 mov dword ptr [rax+7], 0 loc_401F2: mov rax, [rbp+var_58] cmp byte ptr [rax+7E7h], 0 jz loc_40289 mov rcx, [r14] mov rax, [r14+18h] mov rdx, [rcx] mov esi, [rdx+7BCh] xor edx, edx div rsi lea r10, [rbp+var_50] mov [r10+2], eax shr rax, 20h mov [r10+6], al mov byte ptr [r10+7], 0Bh mov [r10+8], r12d shr r12, 20h mov [r10+0Ch], r12w lea rax, [rbp+var_F0] mov [rax+20h], r10 mov qword ptr [rax+28h], 0Eh mov edx, [r14+20h] mov [r14+24h], edx mov rdx, [rcx+8] sub rsp, 8 lea rdi, [rbp+var_98] mov esi, 0Ch mov r8d, 0Eh mov r9d, 3 push 0 push r10 push rax call translog_write_record add rsp, 20h mov cl, 1 test al, al jnz short loc_4028B loc_40289: xor ecx, ecx loc_4028B: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_402AE mov eax, ecx add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_402AE: call ___stack_chk_fail
long long ma_compact_keypage(long long **a1, unsigned long long a2) { unsigned int v2; // ecx long long **v4; // r14 long long *v5; // rcx long long v6; // rsi long long v7; // rdi long long *v8; // rax unsigned long long v9; // r13 int v10; // r15d unsigned __int8 *v11; // r15 unsigned __int8 *v12; // rbx long long v13; // rax long long v14; // rdx long long v15; // rcx long long v16; // r8 int v17; // r9d unsigned __int8 *v18; // r15 char v19; // al unsigned int v20; // eax unsigned int v21; // r13d unsigned long long packed; // rax unsigned int v23; // eax int v24; // r12d long long v25; // r14 int v26; // eax unsigned int v27; // r13d unsigned int v28; // r15d long long *v29; // rax unsigned int v30; // ebx long long v31; // rdx unsigned int v32; // eax long long *v33; // rax long long *v34; // rcx unsigned long long v35; // rax char v36; // al __int128 v38; // [rsp+0h] [rbp-F0h] BYREF __int16 *v39; // [rsp+20h] [rbp-D0h] long long v40; // [rsp+28h] [rbp-C8h] _QWORD v41[4]; // [rsp+38h] [rbp-B8h] BYREF char v42[8]; // [rsp+58h] [rbp-98h] BYREF long long v43; // [rsp+60h] [rbp-90h] unsigned long long v44; // [rsp+68h] [rbp-88h] unsigned long long v45; // [rsp+70h] [rbp-80h] long long **v46; // [rsp+78h] [rbp-78h] long long *v47; // [rsp+80h] [rbp-70h] unsigned long long v48; // [rsp+88h] [rbp-68h] long long v49; // [rsp+90h] [rbp-60h] long long v50; // [rsp+98h] [rbp-58h] __int16 v51; // [rsp+A0h] [rbp-50h] BYREF int v52; // [rsp+A2h] [rbp-4Eh] char v53; // [rsp+A6h] [rbp-4Ah] char v54; // [rsp+A7h] [rbp-49h] int v55; // [rsp+A8h] [rbp-48h] __int16 v56; // [rsp+ACh] [rbp-44h] unsigned long long v57; // [rsp+C0h] [rbp-30h] v57 = __readfsqword(0x28u); v2 = 0; if ( (*((_BYTE *)a1 + 44) & 2) == 0 ) return v2; v4 = a1; v49 = 0LL; v5 = *a1; v6 = **a1; v7 = *((unsigned int *)a1 + 10); v8 = v4[2]; v9 = (unsigned long long)v8 + *((unsigned int *)v4 + 8); v47 = v5; v41[0] = v5[113]; v41[1] = v4[1]; v50 = v6; v10 = *(_DWORD *)(v6 + 1860); v43 = v7; v11 = (unsigned __int8 *)v8 + (unsigned int)(v7 + v10); *(_BYTE *)v41[0] = 0; v48 = 0LL; v12 = 0LL; v45 = a2; v46 = v4; v44 = v9; do { v13 = ((long long ( *)(_QWORD *, _QWORD, _QWORD, unsigned __int8 *))v4[1][29])(v41, 0LL, 0LL, v11); if ( !v13 ) { ma_set_fatal_error(v47, 126, v14, v15, v16, v17); LOBYTE(v2) = 1; return v2; } v18 = (unsigned __int8 *)v13; v19 = *(_BYTE *)(v13 - 1); if ( (v19 & 1) != 0 ) { if ( a2 != -1LL ) { v20 = *v18; v21 = v20 - 248; if ( v20 < 0xF3 ) v21 = 1; packed = transid_get_packed(v50, v18); if ( packed <= a2 ) { LOBYTE(packed) = 1; v48 = packed; LABEL_17: v18 += v21; v9 = v44; goto LABEL_18; } v19 = *(v18 - 1); } *(v18 - 1) = v19 & 0xFE; v23 = *v18; v21 = v23 - 248; if ( v23 < 0xF3 ) v21 = 1; if ( v12 ) { v24 = v49; v25 = (unsigned int)((_DWORD)v18 - (_DWORD)v12 - v49); memmove(v12, &v12[(unsigned int)v49], v25); v26 = v24; v12 += v25; v4 = v46; a2 = v45; } else { v12 = v18; v26 = v49; } v49 = v21 + v26; goto LABEL_17; } LABEL_18: v11 = &v18[v43]; } while ( (unsigned long long)v11 < v9 ); if ( v12 ) { v27 = v9 - (_DWORD)v12 - v49; if ( v27 ) { v28 = v27; memmove(v12, &v12[(unsigned int)v49], v27); } else { v28 = 0; } v29 = v4[2]; v30 = v28 + (_DWORD)v12 - (_DWORD)v29; *((_DWORD *)v4 + 8) = v30; v31 = v50; *((_BYTE *)v29 + *(unsigned int *)(v50 + 1860) - 1) = v30; *((_BYTE *)v4[2] + *(unsigned int *)(v31 + 1860) - 2) = BYTE1(v30); } if ( !(_BYTE)v48 ) { v32 = *((_DWORD *)v4 + 11) & 0xFFFFFFFD; *((_DWORD *)v4 + 11) = v32; *((_BYTE *)v4[2] + (unsigned int)(*(_DWORD *)(v50 + 1860) - 3)) = v32; v33 = v4[2]; *(_WORD *)((char *)v33 + 11) = 0; *(_DWORD *)((char *)v33 + 7) = 0; } if ( !*(_BYTE *)(v50 + 2023) ) return 0; v34 = *v4; v35 = (unsigned long long)v4[3] / *(unsigned int *)(**v4 + 1980); v52 = v35; v53 = BYTE4(v35); v54 = 11; v55 = a2; v56 = WORD2(a2); v39 = &v51; v40 = 14LL; *((_DWORD *)v4 + 9) = *((_DWORD *)v4 + 8); v36 = translog_write_record((unsigned long long)v42, &byte_9[3], v34[1], v34, 0xEu, 3, &v38, &v51, 0LL); LOBYTE(v2) = 1; if ( !v36 ) return 0; return v2; }
_ma_compact_keypage: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX XOR ECX,ECX TEST byte ptr [RDI + 0x2c],0x2 JZ 0x0014028b MOV R12,RSI MOV R14,RDI MOV qword ptr [RBP + -0x60],0x0 MOV RCX,qword ptr [RDI] MOV RSI,qword ptr [RCX] MOV EDI,dword ptr [RDI + 0x28] MOV RAX,qword ptr [R14 + 0x10] MOV R13D,dword ptr [R14 + 0x20] ADD R13,RAX MOV qword ptr [RBP + -0x70],RCX MOV RCX,qword ptr [RCX + 0x388] LEA R8,[RBP + -0xb8] MOV qword ptr [R8],RCX MOV RDX,qword ptr [R14 + 0x8] MOV qword ptr [R8 + 0x8],RDX MOV qword ptr [RBP + -0x58],RSI MOV R15D,dword ptr [RSI + 0x744] MOV qword ptr [RBP + -0x90],RDI ADD R15D,EDI ADD R15,RAX MOV byte ptr [RCX],0x0 MOV qword ptr [RBP + -0x68],0x0 XOR EBX,EBX MOV qword ptr [RBP + -0x80],R12 MOV qword ptr [RBP + -0x78],R14 MOV qword ptr [RBP + -0x88],R13 LAB_0014006c: MOV RAX,qword ptr [R14 + 0x8] LEA RDI,[RBP + -0xb8] XOR ESI,ESI XOR EDX,EDX MOV RCX,R15 CALL qword ptr [RAX + 0xe8] TEST RAX,RAX JZ 0x0014016a MOV R15,RAX MOV AL,byte ptr [RAX + -0x1] TEST AL,0x1 JZ 0x00140144 CMP R12,-0x1 JZ 0x001400cf MOVZX EAX,byte ptr [R15] LEA R13D,[RAX + -0xf8] CMP EAX,0xf3 MOV EAX,0x1 CMOVC R13D,EAX MOV RDI,qword ptr [RBP + -0x58] MOV RSI,R15 CALL 0x00141abd CMP RAX,R12 JBE 0x00140121 MOV AL,byte ptr [R15 + -0x1] LAB_001400cf: AND AL,0xfe MOV byte ptr [R15 + -0x1],AL MOVZX EAX,byte ptr [R15] LEA R13D,[RAX + -0xf8] CMP EAX,0xf3 MOV EAX,0x1 CMOVC R13D,EAX TEST RBX,RBX JZ 0x00140129 MOV R14D,R15D SUB R14D,EBX MOV R12,qword ptr [RBP + -0x60] SUB R14D,R12D MOV ESI,R12D ADD RSI,RBX MOV RDI,RBX MOV RDX,R14 CALL 0x0012a140 MOV RAX,R12 ADD RBX,R14 MOV R14,qword ptr [RBP + -0x78] MOV R12,qword ptr [RBP + -0x80] JMP 0x00140130 LAB_00140121: MOV AL,0x1 MOV qword ptr [RBP + -0x68],RAX JMP 0x00140137 LAB_00140129: MOV RBX,R15 MOV RAX,qword ptr [RBP + -0x60] LAB_00140130: ADD EAX,R13D MOV qword ptr [RBP + -0x60],RAX LAB_00140137: MOV EAX,R13D ADD R15,RAX MOV R13,qword ptr [RBP + -0x88] LAB_00140144: ADD R15,qword ptr [RBP + -0x90] CMP R15,R13 JC 0x0014006c TEST RBX,RBX JZ 0x001401bc SUB R13D,EBX MOV RAX,qword ptr [RBP + -0x60] SUB R13D,EAX JNZ 0x0014017f MOV R15D,R13D JMP 0x00140192 LAB_0014016a: MOV RDI,qword ptr [RBP + -0x70] MOV ESI,0x7e CALL 0x0013c86c MOV CL,0x1 JMP 0x0014028b LAB_0014017f: MOV ESI,EAX ADD RSI,RBX MOV R15D,R13D MOV RDI,RBX MOV RDX,R15 CALL 0x0012a140 LAB_00140192: ADD RBX,R15 MOV RAX,qword ptr [R14 + 0x10] SUB RBX,RAX MOV dword ptr [R14 + 0x20],EBX MOV RDX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RDX + 0x744] MOV byte ptr [RAX + RCX*0x1 + -0x1],BL MOV RAX,qword ptr [R14 + 0x10] MOV ECX,dword ptr [RDX + 0x744] MOV byte ptr [RAX + RCX*0x1 + -0x2],BH LAB_001401bc: CMP byte ptr [RBP + -0x68],0x0 JNZ 0x001401f2 MOV EAX,dword ptr [R14 + 0x2c] AND EAX,0xfffffffd MOV dword ptr [R14 + 0x2c],EAX MOV RCX,qword ptr [R14 + 0x10] MOV RDX,qword ptr [RBP + -0x58] MOV EDX,dword ptr [RDX + 0x744] ADD EDX,-0x3 MOV byte ptr [RCX + RDX*0x1],AL MOV RAX,qword ptr [R14 + 0x10] MOV word ptr [RAX + 0xb],0x0 MOV dword ptr [RAX + 0x7],0x0 LAB_001401f2: MOV RAX,qword ptr [RBP + -0x58] CMP byte ptr [RAX + 0x7e7],0x0 JZ 0x00140289 MOV RCX,qword ptr [R14] MOV RAX,qword ptr [R14 + 0x18] MOV RDX,qword ptr [RCX] MOV ESI,dword ptr [RDX + 0x7bc] XOR EDX,EDX DIV RSI LEA R10,[RBP + -0x50] MOV dword ptr [R10 + 0x2],EAX SHR RAX,0x20 MOV byte ptr [R10 + 0x6],AL MOV byte ptr [R10 + 0x7],0xb MOV dword ptr [R10 + 0x8],R12D SHR R12,0x20 MOV word ptr [R10 + 0xc],R12W LEA RAX,[RBP + -0xf0] MOV qword ptr [RAX + 0x20],R10 MOV qword ptr [RAX + 0x28],0xe MOV EDX,dword ptr [R14 + 0x20] MOV dword ptr [R14 + 0x24],EDX MOV RDX,qword ptr [RCX + 0x8] SUB RSP,0x8 LEA RDI,[RBP + -0x98] MOV ESI,0xc MOV R8D,0xe MOV R9D,0x3 PUSH 0x0 PUSH R10 PUSH RAX CALL 0x0012be39 ADD RSP,0x20 MOV CL,0x1 TEST AL,AL JNZ 0x0014028b LAB_00140289: XOR ECX,ECX LAB_0014028b: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001402ae MOV EAX,ECX ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001402ae: CALL 0x0012a250
ulong _ma_compact_keypage(long *param_1,ulong param_2) { long lVar1; int1 auVar2 [16]; byte bVar3; char cVar4; byte *pbVar5; ulong uVar6; long *plVar7; byte *pbVar8; int iVar9; uint uVar10; byte *pbVar11; byte *pbVar12; long in_FS_OFFSET; int1 local_f8 [32]; int1 *local_d8; int8 local_d0; int1 *local_c0; long local_b8; int1 local_a0 [8]; ulong local_98; byte *local_90; ulong local_88; long *local_80; long *local_78; int8 local_70; ulong local_68; long local_60; int1 local_58 [2]; int4 local_56; int1 local_52; int1 local_51; int4 local_50; int2 local_4c; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); uVar6 = 0; if ((*(byte *)((long)param_1 + 0x2c) & 2) != 0) { local_68 = 0; local_78 = (long *)*param_1; local_60 = *local_78; local_98 = (ulong)*(uint *)(param_1 + 5); pbVar11 = (byte *)((ulong)*(uint *)(param_1 + 4) + param_1[2]); local_c0 = (int1 *)local_78[0x71]; local_b8 = param_1[1]; pbVar12 = (byte *)((ulong)(*(int *)(local_60 + 0x744) + *(uint *)(param_1 + 5)) + param_1[2]); *local_c0 = 0; local_70 = 0; pbVar8 = (byte *)0x0; local_90 = pbVar11; local_88 = param_2; local_80 = param_1; do { pbVar5 = (byte *)(**(code **)(param_1[1] + 0xe8))(&local_c0,0,0,pbVar12); if (pbVar5 == (byte *)0x0) { _ma_set_fatal_error(local_78,0x7e); uVar6 = CONCAT71((int7)((ulong)pbVar12 >> 8),1); goto LAB_0014028b; } bVar3 = pbVar5[-1]; if ((bVar3 & 1) != 0) { if (param_2 == 0xffffffffffffffff) { LAB_001400cf: pbVar5[-1] = bVar3 & 0xfe; uVar10 = *pbVar5 - 0xf8; if (*pbVar5 < 0xf3) { uVar10 = 1; } iVar9 = (int)local_68; pbVar11 = pbVar5; if (pbVar8 != (byte *)0x0) { uVar6 = (ulong)(uint)(((int)pbVar5 - (int)pbVar8) - iVar9); memmove(pbVar8,pbVar8 + (local_68 & 0xffffffff),uVar6); pbVar11 = pbVar8 + uVar6; param_2 = local_88; param_1 = local_80; } local_68 = (ulong)(iVar9 + uVar10); pbVar8 = pbVar11; } else { uVar10 = *pbVar5 - 0xf8; if (*pbVar5 < 0xf3) { uVar10 = 1; } uVar6 = transid_get_packed(local_60); if (param_2 < uVar6) { bVar3 = pbVar5[-1]; goto LAB_001400cf; } local_70 = CONCAT71((int7)(uVar6 >> 8),1); } pbVar5 = pbVar5 + uVar10; pbVar11 = local_90; } pbVar12 = pbVar5 + local_98; } while (pbVar12 < pbVar11); if (pbVar8 != (byte *)0x0) { uVar10 = ((int)pbVar11 - (int)pbVar8) - (int)local_68; if (uVar10 != 0) { memmove(pbVar8,pbVar8 + (local_68 & 0xffffffff),(ulong)uVar10); } pbVar8 = pbVar8 + ((ulong)uVar10 - param_1[2]); *(int *)(param_1 + 4) = (int)pbVar8; *(char *)(param_1[2] + -1 + (ulong)*(uint *)(local_60 + 0x744)) = (char)pbVar8; *(char *)(param_1[2] + -2 + (ulong)*(uint *)(local_60 + 0x744)) = (char)((ulong)pbVar8 >> 8); } if ((char)local_70 == '\0') { uVar10 = *(uint *)((long)param_1 + 0x2c) & 0xfffffffd; *(uint *)((long)param_1 + 0x2c) = uVar10; *(char *)(param_1[2] + (ulong)(*(int *)(local_60 + 0x744) - 3)) = (char)uVar10; lVar1 = param_1[2]; *(int2 *)(lVar1 + 0xb) = 0; *(int4 *)(lVar1 + 7) = 0; } if (*(char *)(local_60 + 0x7e7) != '\0') { plVar7 = (long *)*param_1; auVar2._8_8_ = 0; auVar2._0_8_ = param_1[3]; auVar2 = auVar2 / ZEXT416(*(uint *)(*plVar7 + 0x7bc)); local_d8 = local_58; local_56 = auVar2._0_4_; local_52 = auVar2[4]; local_51 = 0xb; local_50 = (int4)param_2; local_4c = (int2)(param_2 >> 0x20); local_d0 = 0xe; *(int *)((long)param_1 + 0x24) = (int)param_1[4]; cVar4 = translog_write_record(local_a0,0xc,plVar7[1],plVar7,0xe,3,local_f8,local_d8,0); uVar6 = CONCAT71((int7)((ulong)plVar7 >> 8),1); if (cVar4 != '\0') goto LAB_0014028b; } uVar6 = 0; } LAB_0014028b: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar6 & 0xffffffff; }
33,340
minja::chat_template::try_raw_render(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> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) const
monkey531[P]llama/common/chat-template.hpp
std::string try_raw_render( const nlohmann::ordered_json & messages, const nlohmann::ordered_json & tools, bool add_generation_prompt, const nlohmann::ordered_json & extra_context = nlohmann::ordered_json()) const { try { auto prompt = apply(messages, tools, add_generation_prompt, extra_context, /* adjust_inputs= */ false); // fprintf(stderr, "try_raw_render: %s\n", prompt.c_str()); return prompt; } catch (const std::exception & e) { // fprintf(stderr, "try_raw_render error: %s\n", e.what()); return ""; } }
O0
cpp
minja::chat_template::try_raw_render(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> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) const: subq $0x78, %rsp movq %rdi, 0x10(%rsp) movb %r8b, %al movq %rdi, %r8 movq %r8, 0x18(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq %rcx, 0x58(%rsp) andb $0x1, %al movb %al, 0x57(%rsp) movq %r9, 0x48(%rsp) movq 0x68(%rsp), %rsi movb $0x0, 0x47(%rsp) movq 0x60(%rsp), %rdx movq 0x58(%rsp), %rcx movq 0x48(%rsp), %r9 movzbl 0x57(%rsp), %r8d movq %rsp, %rax movl $0x0, (%rax) andl $0x1, %r8d callq 0x15ab40 jmp 0x101786 movb $0x1, 0x47(%rsp) testb $0x1, 0x47(%rsp) jne 0x101800 jmp 0x1017f6 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) movl 0x34(%rsp), %eax movl $0x1, %ecx cmpl %ecx, %eax jne 0x10182d movq 0x38(%rsp), %rdi callq 0x590e0 movq %rax, 0x28(%rsp) leaq 0x27(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x5a080 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rdx leaq 0x1028a3(%rip), %rsi # 0x204081 callq 0x5ea00 jmp 0x1017e5 leaq 0x27(%rsp), %rdi callq 0x5a4b0 callq 0x59d70 jmp 0x101823 movq 0x10(%rsp), %rdi callq 0x5a4d8 jmp 0x101823 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x27(%rsp), %rdi callq 0x5a4b0 callq 0x59d70 jmp 0x101821 jmp 0x10182d movq 0x18(%rsp), %rax addq $0x78, %rsp retq movq 0x38(%rsp), %rdi callq 0x59b80 movq %rax, %rdi callq 0x61980 nop
_ZNK5minja13chat_template14try_raw_renderERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_: sub rsp, 78h mov [rsp+78h+var_68], rdi mov al, r8b mov r8, rdi mov [rsp+78h+var_60], r8 mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_18], rdx mov [rsp+78h+var_20], rcx and al, 1 mov [rsp+78h+var_21], al mov [rsp+78h+var_30], r9 mov rsi, [rsp+78h+var_10] mov [rsp+78h+var_31], 0 mov rdx, [rsp+78h+var_18] mov rcx, [rsp+78h+var_20] mov r9, [rsp+78h+var_30] movzx r8d, [rsp+78h+var_21] mov rax, rsp mov dword ptr [rax], 0 and r8d, 1 call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(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&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool) jmp short $+2 loc_101786: mov [rsp+78h+var_31], 1 test [rsp+78h+var_31], 1 jnz short loc_101800 jmp short loc_1017F6 mov rcx, rax mov eax, edx mov [rsp+78h+var_40], rcx mov [rsp+78h+var_44], eax mov eax, [rsp+78h+var_44] mov ecx, 1 cmp eax, ecx jnz short loc_10182D mov rdi, [rsp+78h+var_40]; void * call ___cxa_begin_catch mov [rsp+78h+var_50], rax lea rdi, [rsp+78h+var_51] mov [rsp+78h+var_70], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+78h+var_68] mov rdx, [rsp+78h+var_70] lea rsi, aExampleSpecifi+1Fh; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1017E5: lea rdi, [rsp+78h+var_51] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() call ___cxa_end_catch jmp short loc_101823 loc_1017F6: mov rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_101800: jmp short loc_101823 mov rcx, rax mov eax, edx mov [rsp+78h+var_40], rcx mov [rsp+78h+var_44], eax lea rdi, [rsp+78h+var_51] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() call ___cxa_end_catch jmp short $+2 loc_101821: jmp short loc_10182D loc_101823: mov rax, [rsp+78h+var_60] add rsp, 78h retn loc_10182D: mov rdi, [rsp+78h+var_40] call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long minja::chat_template::try_raw_render(long long a1, int a2, int a3, int a4, char a5, int a6) { minja::chat_template::apply(a1, a2, a3, a4, a5 & 1, a6, 0); return a1; }
33,341
minja::chat_template::try_raw_render(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> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) const
monkey531[P]llama/common/chat-template.hpp
std::string try_raw_render( const nlohmann::ordered_json & messages, const nlohmann::ordered_json & tools, bool add_generation_prompt, const nlohmann::ordered_json & extra_context = nlohmann::ordered_json()) const { try { auto prompt = apply(messages, tools, add_generation_prompt, extra_context, /* adjust_inputs= */ false); // fprintf(stderr, "try_raw_render: %s\n", prompt.c_str()); return prompt; } catch (const std::exception & e) { // fprintf(stderr, "try_raw_render error: %s\n", e.what()); return ""; } }
O2
cpp
minja::chat_template::try_raw_render(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> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) const: pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx andl $0x0, (%rsp) callq 0x77a9c movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r14 retq movq %rax, %r14 cmpl $0x1, %edx jne 0x5bf97 movq %r14, %rdi callq 0x23370 leaq 0x4d1d6(%rip), %rsi # 0xa9151 leaq 0x17(%rsp), %rdx movq %rbx, %rdi callq 0x25c26 callq 0x23de0 jmp 0x5bf59 movq %rax, %r14 callq 0x23de0 movq %r14, %rdi callq 0x23f10 movq %rax, %rdi callq 0x26807 nop
_ZNK5minja13chat_template14try_raw_renderERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_: push r14 push rbx sub rsp, 18h mov rbx, rdi and [rsp+28h+var_28], 0 call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(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&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool) loc_5BF59: mov rax, rbx add rsp, 18h pop rbx pop r14 retn mov r14, rax cmp edx, 1 jnz short loc_5BF97 mov rdi, r14; void * call ___cxa_begin_catch lea rsi, aExampleSpecifi+1Fh; "" lea rdx, [rsp+28h+var_11] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) call ___cxa_end_catch jmp short loc_5BF59 mov r14, rax call ___cxa_end_catch loc_5BF97: mov rdi, r14 call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long minja::chat_template::try_raw_render(long long a1, int a2, int a3, int a4, int a5, int a6) { minja::chat_template::apply(a1, a2, a3, a4, a5, a6, 0); return a1; }
try_raw_render: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LAB_0015bf50: AND dword ptr [RSP],0x0 CALL 0x00177a9c LAB_0015bf59: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R14 RET
/* minja::chat_template::try_raw_render(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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 */ chat_template * __thiscall minja::chat_template::try_raw_render (chat_template *this,basic_json *param_1,basic_json *param_2,bool param_3, basic_json *param_4) { int7 in_register_00000009; /* try { // try from 0015bf50 to 0015bf58 has its CatchHandler @ 0015bf64 */ apply(this,param_1,SUB81(param_2,0),(basic_json *)CONCAT71(in_register_00000009,param_3), SUB81(param_4,0)); return this; }
33,342
coro::task<void> coro::detail::make_when_any_tuple_task<std::variant<long, coro::timeout_status>, coro::task<coro::timeout_status>>(coro::mutex&, std::atomic<bool>&, coro::event&, std::optional<std::variant<long, coro::timeout_status>>&, coro::task<coro::timeout_status>) (.resume)
AlayaLite/build_O3/_deps/libcoro-src/include/coro/when_any.hpp
auto make_when_any_tuple_task( coro::mutex& m, std::atomic<bool>& return_value_set, coro::event& notify, std::optional<return_type>& return_value, awaitable a) -> coro::task<void> { auto result = co_await static_cast<awaitable&&>(a); auto scoped_lock = co_await m.lock(); if (return_value_set.load(std::memory_order::acquire) == false) { return_value_set.store(true, std::memory_order::release); return_value = std::move(result); notify.set(); } co_return; }
O3
cpp
coro::task<void> coro::detail::make_when_any_tuple_task<std::variant<long, coro::timeout_status>, coro::task<coro::timeout_status>>(coro::mutex&, std::atomic<bool>&, coro::event&, std::optional<std::variant<long, coro::timeout_status>>&, coro::task<coro::timeout_status>) (.resume): pushq %rbx movq %rdi, %rbx cmpb $0x2, 0x88(%rdi) jne 0x9dcb3 leaq 0x30(%rbx), %rax movq 0x20(%rbx), %rdi cmpq %rax, %rdi je 0x9dcb3 movq (%rax), %rsi incq %rsi callq 0x17150 cmpq $0x0, 0x18(%rbx) je 0x9dcc3 leaq 0x18(%rbx), %rdi callq 0x17260 movq 0x80(%rbx), %rdi testq %rdi, %rdi je 0x9dcd2 callq *0x8(%rdi) movl $0x90, %esi movq %rbx, %rdi popq %rbx jmp 0x17150 movq %rax, %rdi callq 0x1f2c3
_ZN4coro6detail24make_when_any_tuple_taskISt7variantIJidNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEETkNS_8concepts9awaitableENS_4taskIS8_EEEENSB_IvEERNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT_ET0__destroy: push rbx mov rbx, rdi cmp byte ptr [rdi+88h], 2 jnz short loc_9DCB3 lea rax, [rbx+30h] mov rdi, [rbx+20h]; void * cmp rdi, rax jz short loc_9DCB3 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9DCB3: cmp qword ptr [rbx+18h], 0 jz short loc_9DCC3 lea rdi, [rbx+18h]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) loc_9DCC3: mov rdi, [rbx+80h] test rdi, rdi jz short loc_9DCD2 call qword ptr [rdi+8] loc_9DCD2: mov esi, 90h; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong) mov rdi, rax call __clang_call_terminate
void ZN4coro6detail24make_when_any_tuple_taskISt7variantIJidNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEETkNS_8concepts9awaitableENS_4taskIS8_EEEENSB_IvEERNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT_ET0__destroy( _QWORD *a1) { _QWORD *v2; // rax _QWORD *v3; // rdi long long v4; // rdi if ( *((_BYTE *)a1 + 136) == 2 ) { v2 = a1 + 6; v3 = (_QWORD *)a1[4]; if ( v3 != a1 + 6 ) operator delete(v3, *v2 + 1LL); } if ( a1[3] ) std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)(a1 + 3)); v4 = a1[16]; if ( v4 ) (*(void (**)(void))(v4 + 8))(); operator delete(a1, 0x90uLL); }
_ZN4coro6detail24make_when_any_tuple_taskISt7variantIJidNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEETkNS_8concepts9awaitableENS_4taskIS8_EEEENSB_IvEERNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT_ET0_.destroy: PUSH RBX MOV RBX,RDI CMP byte ptr [RDI + 0x88],0x2 JNZ 0x0019dcb3 LEA RAX,[RBX + 0x30] MOV RDI,qword ptr [RBX + 0x20] CMP RDI,RAX JZ 0x0019dcb3 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00117150 LAB_0019dcb3: CMP qword ptr [RBX + 0x18],0x0 JZ 0x0019dcc3 LEA RDI,[RBX + 0x18] CALL 0x00117260 LAB_0019dcc3: MOV RDI,qword ptr [RBX + 0x80] TEST RDI,RDI JZ 0x0019dcd2 LAB_0019dccf: CALL qword ptr [RDI + 0x8] LAB_0019dcd2: MOV ESI,0x90 MOV RDI,RBX POP RBX JMP 0x00117150
void _ZN4coro6detail24make_when_any_tuple_taskISt7variantIJidNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEETkNS_8concepts9awaitableENS_4taskIS8_EEEENSB_IvEERNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT_ET0__destroy (void *param_1) { if (*(char *)((long)param_1 + 0x88) == '\x02') { if (*(long **)((long)param_1 + 0x20) != (long *)((long)param_1 + 0x30)) { operator_delete(*(long **)((long)param_1 + 0x20),*(long *)((long)param_1 + 0x30) + 1); } } if (*(long *)((long)param_1 + 0x18) != 0) { std::__exception_ptr::exception_ptr::_M_release(); } if (*(long *)((long)param_1 + 0x80) != 0) { /* try { // try from 0019dccf to 0019dcd1 has its CatchHandler @ 0019dce0 */ (**(code **)(*(long *)((long)param_1 + 0x80) + 8))(); } operator_delete(param_1,0x90); return; }
33,343
minja::Value::operator+(minja::Value const&) const
monkey531[P]llama/common/./minja.hpp
Value operator+(const Value& rhs) const { if (is_string() || rhs.is_string()) { return to_str() + rhs.to_str(); } else if (is_number_integer() && rhs.is_number_integer()) { return get<int64_t>() + rhs.get<int64_t>(); } else if (is_array() && rhs.is_array()) { auto res = Value::array(); for (const auto& item : *array_) res.push_back(item); for (const auto& item : *rhs.array_) res.push_back(item); return res; } else { return get<double>() + rhs.get<double>(); } }
O1
cpp
minja::Value::operator+(minja::Value const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movb 0x40(%rsi), %al cmpb $0x3, %al je 0x59d6f movb 0x40(%r14), %cl cmpb $0x3, %cl jne 0x59dde leaq 0x50(%rsp), %rdi movq %r15, %rsi callq 0x59bae leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x59bae leaq 0x60(%rsp), %r14 movq -0x10(%r14), %rcx movq -0x8(%r14), %r8 movq 0x30(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %esi cmpq %r14, %rcx je 0x59dae movq 0x60(%rsp), %rsi cmpq %rsi, %rax jbe 0x59dcd leaq 0x38(%rsp), %rdi movl $0xf, %esi cmpq %rdi, -0x10(%rdi) je 0x59dc8 movq 0x38(%rsp), %rsi cmpq %rsi, %rax jbe 0x59e34 movq 0x28(%rsp), %rsi leaq 0x50(%rsp), %rdi callq 0x181e0 jmp 0x59e42 addb $-0x5, %al addb $-0x5, %cl orb %al, %cl cmpb $0x1, %cl ja 0x59eee movq %r15, %rdi callq 0x3f0b2 movq %rax, %r15 movq %r14, %rdi callq 0x3f0b2 addq %rax, %r15 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %r15, %rsi callq 0x40218 jmp 0x59f82 leaq 0x28(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x18750 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x59e66 movq %rsi, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x59e6e movupd (%rcx), %xmm0 movupd %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x43cba leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59eb3 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59ece movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x50(%rsp), %rdi cmpq %r14, %rdi je 0x59f8f movq 0x60(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x59f8f cmpq $0x0, 0x10(%r15) je 0x59f44 cmpq $0x0, 0x10(%r14) je 0x59f44 xorpd %xmm0, %xmm0 leaq 0x70(%rsp), %rsi movapd %xmm0, (%rsi) movq $0x0, 0x10(%rsi) movq %rbx, %rdi callq 0x5113e leaq 0x70(%rsp), %rdi callq 0x5093e movq 0x10(%r15), %rax movq (%rax), %r15 movq 0x8(%rax), %r12 cmpq %r12, %r15 je 0x59fa1 movq %rbx, %rdi movq %r15, %rsi callq 0x511f0 addq $0x50, %r15 jmp 0x59f2e movq %r15, %rdi callq 0x3f1e4 movsd %xmm0, 0x48(%rsp) movq %r14, %rdi callq 0x3f1e4 addsd 0x48(%rsp), %xmm0 leaq 0x40(%rbx), %r14 xorps %xmm1, %xmm1 movups %xmm1, (%rbx) movups %xmm1, 0x10(%rbx) movups %xmm1, 0x20(%rbx) movups %xmm1, 0x30(%rbx) movups %xmm1, 0x40(%rbx) movq %r14, %rdi callq 0x40b6c movq %r14, %rdi movl $0x1, %esi callq 0x3efdc movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x10(%r14), %rax movq (%rax), %r14 movq 0x8(%rax), %r15 cmpq %r15, %r14 je 0x59f8f movq %rbx, %rdi movq %r14, %rsi callq 0x511f0 addq $0x50, %r14 jmp 0x59fac movq %rax, %r14 leaq 0x70(%rsp), %rdi callq 0x5093e jmp 0x5a03e movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59ff4 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x59ff4 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5a014 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x5a014 movq %rax, %r14 leaq 0x60(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5a03e movq 0x60(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x5a03e jmp 0x5a033 movq %rax, %r14 movq %rbx, %rdi callq 0x3ef50 movq %r14, %rdi callq 0x18b90
_ZNK5minja5ValueplERKS0_: push r15 push r14 push r12 push rbx sub rsp, 88h mov r14, rdx mov r15, rsi mov rbx, rdi mov al, [rsi+40h] cmp al, 3 jz short loc_59D6F mov cl, [r14+40h] cmp cl, 3 jnz short loc_59DDE loc_59D6F: lea rdi, [rsp+0A8h+var_58] mov rsi, r15 call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void) lea rdi, [rsp+0A8h+var_80] mov rsi, r14 call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void) lea r14, [rsp+0A8h+var_48] mov rcx, [r14-10h] mov r8, [r14-8] mov rdx, [rsp+0A8h+var_78] lea rax, [rdx+r8] mov esi, 0Fh cmp rcx, r14 jz short loc_59DAE mov rsi, [rsp+0A8h+var_48] loc_59DAE: cmp rax, rsi jbe short loc_59DCD lea rdi, [rsp+0A8h+var_70] mov esi, 0Fh cmp [rdi-10h], rdi jz short loc_59DC8 mov rsi, [rsp+0A8h+var_70] loc_59DC8: cmp rax, rsi jbe short loc_59E34 loc_59DCD: mov rsi, [rsp+0A8h+var_80] lea rdi, [rsp+0A8h+var_58] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_59E42 loc_59DDE: add al, 0FBh add cl, 0FBh or cl, al cmp cl, 1 ja loc_59EEE mov rdi, r15 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) add r15, rax lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp loc_59F82 loc_59E34: lea rdi, [rsp+0A8h+var_80] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_59E42: lea rdx, [rsp+0A8h+var_90] mov [rdx-10h], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_59E66 mov [rsp+0A8h+var_A0], rsi mov rdx, [rcx] mov [rsp+0A8h+var_90], rdx jmp short loc_59E6E loc_59E66: movupd xmm0, xmmword ptr [rcx] movupd xmmword ptr [rdx], xmm0 loc_59E6E: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rsp+0A8h+var_98], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 lea rsi, [rsp+0A8h+var_A0] mov rdi, rbx call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) lea rax, [rsp+0A8h+var_90] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59EB3 mov rsi, [rsp+0A8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_59EB3: lea rax, [rsp+0A8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59ECE mov rsi, [rsp+0A8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_59ECE: mov rdi, [rsp+0A8h+var_58]; void * cmp rdi, r14 jz loc_59F8F mov rsi, [rsp+0A8h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_59F8F loc_59EEE: cmp qword ptr [r15+10h], 0 jz short loc_59F44 cmp qword ptr [r14+10h], 0 jz short loc_59F44 xorpd xmm0, xmm0 lea rsi, [rsp+0A8h+var_38] movapd xmmword ptr [rsi], xmm0 mov qword ptr [rsi+10h], 0 mov rdi, rbx call _ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE; minja::Value::array(std::vector<minja::Value>) lea rdi, [rsp+0A8h+var_38] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() mov rax, [r15+10h] mov r15, [rax] mov r12, [rax+8] loc_59F2E: cmp r15, r12 jz short loc_59FA1 mov rdi, rbx; this mov rsi, r15; minja::Value * call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&) add r15, 50h ; 'P' jmp short loc_59F2E loc_59F44: mov rdi, r15 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+0A8h+var_60], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) addsd xmm0, [rsp+0A8h+var_60] lea r14, [rbx+40h] xorps xmm1, xmm1 movups xmmword ptr [rbx], xmm1 movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx+20h], xmm1 movups xmmword ptr [rbx+30h], xmm1 movups xmmword ptr [rbx+40h], xmm1 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_59F82: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_59F8F: mov rax, rbx add rsp, 88h pop rbx pop r12 pop r14 pop r15 retn loc_59FA1: mov rax, [r14+10h] mov r14, [rax] mov r15, [rax+8] loc_59FAC: cmp r14, r15 jz short loc_59F8F mov rdi, rbx; this mov rsi, r14; minja::Value * call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&) add r14, 50h ; 'P' jmp short loc_59FAC mov r14, rax lea rdi, [rsp+arg_68] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() jmp short loc_5A03E mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59FF4 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_59FF4 mov r14, rax loc_59FF4: lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5A014 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_5A014 mov r14, rax loc_5A014: lea rax, [rsp+arg_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5A03E mov rsi, [rsp+arg_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_5A03E jmp short $+2 loc_5A033: mov r14, rax mov rdi, rbx; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_5A03E: mov rdi, r14 call __Unwind_Resume
minja::Value * minja::Value::operator+(minja::Value *this, long long a2, long long a3) { char v4; // al char v5; // cl unsigned long long v6; // rax unsigned long long v7; // rsi unsigned long long v8; // rsi __int128 **v9; // rax long long v10; // r15 long long v11; // rax char *v12; // r14 __int128 *v13; // rcx const minja::Value **v14; // rax const minja::Value *v15; // r15 const minja::Value *v16; // r12 double v17; // xmm0_8 const minja::Value **v19; // rax const minja::Value *v20; // r14 const minja::Value *v21; // r15 __int128 *v22; // [rsp+8h] [rbp-A0h] __int128 v23; // [rsp+18h] [rbp-90h] BYREF _QWORD *v24; // [rsp+28h] [rbp-80h] BYREF long long v25; // [rsp+30h] [rbp-78h] _QWORD v26[2]; // [rsp+38h] [rbp-70h] BYREF double v27; // [rsp+48h] [rbp-60h] void *v28; // [rsp+50h] [rbp-58h] BYREF long long v29; // [rsp+58h] [rbp-50h] _QWORD v30[2]; // [rsp+60h] [rbp-48h] BYREF __int128 v31; // [rsp+70h] [rbp-38h] BYREF long long v32; // [rsp+80h] [rbp-28h] v4 = *(_BYTE *)(a2 + 64); if ( v4 != 3 ) { v5 = *(_BYTE *)(a3 + 64); if ( v5 != 3 ) { if ( (unsigned __int8)((v4 - 5) | (v5 - 5)) > 1u ) { if ( *(_QWORD *)(a2 + 16) && *(_QWORD *)(a3 + 16) ) { v31 = 0LL; v32 = 0LL; minja::Value::array((long long)this, (long long *)&v31); std::vector<minja::Value>::~vector(&v31); v14 = *(const minja::Value ***)(a2 + 16); v15 = *v14; v16 = v14[1]; while ( v15 != v16 ) { minja::Value::push_back(this, v15); v15 = (const minja::Value *)((char *)v15 + 80); } v19 = *(const minja::Value ***)(a3 + 16); v20 = *v19; v21 = v19[1]; while ( v20 != v21 ) { minja::Value::push_back(this, v20); v20 = (const minja::Value *)((char *)v20 + 80); } return this; } v27 = minja::Value::get<double>(a2); v17 = minja::Value::get<double>(a3) + v27; v12 = (char *)this + 64; *(_OWORD *)this = 0LL; *((_OWORD *)this + 1) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 4) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)this + 64, v17); } else { v10 = minja::Value::get<long>(a2); v11 = minja::Value::get<long>(a3); v12 = (char *)this + 64; *(_OWORD *)this = 0LL; *((_OWORD *)this + 1) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 4) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (char *)this + 64, v11 + v10); } 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(v12); return this; } } minja::Value::to_str[abi:cxx11](&v28, a2); minja::Value::to_str[abi:cxx11](&v24, a3); v6 = v25 + v29; v7 = 15LL; if ( v28 != v30 ) v7 = v30[0]; if ( v6 <= v7 ) goto LABEL_9; v8 = 15LL; if ( v24 != v26 ) v8 = v26[0]; if ( v6 <= v8 ) v9 = (__int128 **)std::string::replace(&v24, 0LL, 0LL, v28, v29); else LABEL_9: v9 = (__int128 **)std::string::_M_append(&v28, v24, v25); v22 = &v23; v13 = (__int128 *)(v9 + 2); if ( *v9 == (__int128 *)(v9 + 2) ) { v23 = *v13; } else { v22 = *v9; *(_QWORD *)&v23 = *(_QWORD *)v13; } *v9 = v13; v9[1] = 0LL; *(_BYTE *)v13 = 0; minja::Value::Value(this); if ( v22 != &v23 ) operator delete(v22, v23 + 1); if ( v24 != v26 ) operator delete(v24, v26[0] + 1LL); if ( v28 != v30 ) operator delete(v28, v30[0] + 1LL); return this; }
operator+: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] CMP AL,0x3 JZ 0x00159d6f MOV CL,byte ptr [R14 + 0x40] CMP CL,0x3 JNZ 0x00159dde LAB_00159d6f: LEA RDI,[RSP + 0x50] MOV RSI,R15 CALL 0x00159bae LAB_00159d7c: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x00159bae LEA R14,[RSP + 0x60] MOV RCX,qword ptr [R14 + -0x10] MOV R8,qword ptr [R14 + -0x8] MOV RDX,qword ptr [RSP + 0x30] LEA RAX,[RDX + R8*0x1] MOV ESI,0xf CMP RCX,R14 JZ 0x00159dae MOV RSI,qword ptr [RSP + 0x60] LAB_00159dae: CMP RAX,RSI JBE 0x00159dcd LEA RDI,[RSP + 0x38] MOV ESI,0xf CMP qword ptr [RDI + -0x10],RDI JZ 0x00159dc8 MOV RSI,qword ptr [RSP + 0x38] LAB_00159dc8: CMP RAX,RSI JBE 0x00159e34 LAB_00159dcd: MOV RSI,qword ptr [RSP + 0x28] LAB_00159dd2: LEA RDI,[RSP + 0x50] CALL 0x001181e0 LAB_00159ddc: JMP 0x00159e42 LAB_00159dde: ADD AL,0xfb ADD CL,0xfb OR CL,AL CMP CL,0x1 JA 0x00159eee MOV RDI,R15 CALL 0x0013f0b2 MOV R15,RAX MOV RDI,R14 CALL 0x0013f0b2 ADD R15,RAX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,R15 CALL 0x00140218 JMP 0x00159f82 LAB_00159e34: LEA RDI,[RSP + 0x28] XOR ESI,ESI XOR EDX,EDX CALL 0x00118750 LAB_00159e42: LEA RDX,[RSP + 0x18] MOV qword ptr [RDX + -0x10],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x00159e66 MOV qword ptr [RSP + 0x8],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x00159e6e LAB_00159e66: MOVUPD XMM0,xmmword ptr [RCX] MOVUPD xmmword ptr [RDX],XMM0 LAB_00159e6e: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 LAB_00159e8b: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x00143cba LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00159eb3 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00159eb3: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00159ece MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00159ece: MOV RDI,qword ptr [RSP + 0x50] CMP RDI,R14 JZ 0x00159f8f MOV RSI,qword ptr [RSP + 0x60] INC RSI CALL 0x001186a0 JMP 0x00159f8f LAB_00159eee: CMP qword ptr [R15 + 0x10],0x0 JZ 0x00159f44 CMP qword ptr [R14 + 0x10],0x0 JZ 0x00159f44 XORPD XMM0,XMM0 LEA RSI,[RSP + 0x70] MOVAPD xmmword ptr [RSI],XMM0 MOV qword ptr [RSI + 0x10],0x0 LAB_00159f11: MOV RDI,RBX CALL 0x0015113e LEA RDI,[RSP + 0x70] CALL 0x0015093e MOV RAX,qword ptr [R15 + 0x10] MOV R15,qword ptr [RAX] MOV R12,qword ptr [RAX + 0x8] LAB_00159f2e: CMP R15,R12 JZ 0x00159fa1 LAB_00159f33: MOV RDI,RBX MOV RSI,R15 CALL 0x001511f0 LAB_00159f3e: ADD R15,0x50 JMP 0x00159f2e LAB_00159f44: MOV RDI,R15 CALL 0x0013f1e4 MOVSD qword ptr [RSP + 0x48],XMM0 MOV RDI,R14 CALL 0x0013f1e4 ADDSD XMM0,qword ptr [RSP + 0x48] LEA R14,[RBX + 0x40] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX + 0x20],XMM1 MOVUPS xmmword ptr [RBX + 0x30],XMM1 MOVUPS xmmword ptr [RBX + 0x40],XMM1 MOV RDI,R14 CALL 0x00140b6c LAB_00159f82: MOV RDI,R14 MOV ESI,0x1 CALL 0x0013efdc LAB_00159f8f: MOV RAX,RBX ADD RSP,0x88 POP RBX POP R12 POP R14 POP R15 RET LAB_00159fa1: MOV RAX,qword ptr [R14 + 0x10] MOV R14,qword ptr [RAX] MOV R15,qword ptr [RAX + 0x8] LAB_00159fac: CMP R14,R15 JZ 0x00159f8f LAB_00159fb1: MOV RDI,RBX MOV RSI,R14 CALL 0x001511f0 LAB_00159fbc: ADD R14,0x50 JMP 0x00159fac
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator+(Value *this,Value *param_1) { long *plVar1; Value *pVVar2; int8 *puVar3; long lVar4; long lVar5; Value *in_RDX; ulong uVar6; Value *pVVar7; double dVar8; long *local_a0; int8 local_98; long local_90; int8 uStack_88; ulong *local_80; long local_78; ulong local_70 [2]; double local_60; ulong *local_58; long local_50; ulong local_48 [2]; int8 local_38; int8 uStack_30; int8 local_28; if ((param_1[0x40] != (Value)0x3) && (in_RDX[0x40] != (Value)0x3)) { if ((byte)((char)in_RDX[0x40] - 5U | (char)param_1[0x40] - 5U) < 2) { lVar4 = get<long>(param_1); lVar5 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (this + 0x40,lVar4 + lVar5); } else { if ((*(long *)(param_1 + 0x10) != 0) && (*(long *)(in_RDX + 0x10) != 0)) { local_38 = 0; uStack_30 = 0; local_28 = 0; /* try { // try from 00159f11 to 00159f18 has its CatchHandler @ 00159fc2 */ array(this); std::vector<minja::Value,std::allocator<minja::Value>>::~vector ((vector<minja::Value,std::allocator<minja::Value>> *)&local_38); pVVar2 = (Value *)(*(int8 **)(param_1 + 0x10))[1]; for (pVVar7 = (Value *)**(int8 **)(param_1 + 0x10); pVVar7 != pVVar2; pVVar7 = pVVar7 + 0x50) { /* try { // try from 00159f33 to 00159f3d has its CatchHandler @ 0015a033 */ push_back(this,pVVar7); } pVVar2 = (Value *)(*(int8 **)(in_RDX + 0x10))[1]; for (pVVar7 = (Value *)**(int8 **)(in_RDX + 0x10); pVVar7 != pVVar2; pVVar7 = pVVar7 + 0x50) { /* try { // try from 00159fb1 to 00159fbb has its CatchHandler @ 0015a031 */ push_back(this,pVVar7); } return this; } local_60 = get<double>(param_1); dVar8 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar8 + local_60,this + 0x40); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((bool)((char)this + '@')); return this; } to_str_abi_cxx11_(); /* try { // try from 00159d7c to 00159d88 has its CatchHandler @ 0015a011 */ to_str_abi_cxx11_(); uVar6 = 0xf; if (local_58 != local_48) { uVar6 = local_48[0]; } if (uVar6 < (ulong)(local_78 + local_50)) { uVar6 = 0xf; if (local_80 != local_70) { uVar6 = local_70[0]; } if ((ulong)(local_78 + local_50) <= uVar6) { /* try { // try from 00159e34 to 00159e41 has its CatchHandler @ 00159ff1 */ puVar3 = (int8 *) std::__cxx11::string::replace((ulong)&local_80,0,(char *)0x0,(ulong)local_58); goto LAB_00159e42; } } /* try { // try from 00159dd2 to 00159ddb has its CatchHandler @ 00159ff1 */ puVar3 = (int8 *)std::__cxx11::string::_M_append((char *)&local_58,(ulong)local_80); LAB_00159e42: local_a0 = &local_90; plVar1 = puVar3 + 2; if ((long *)*puVar3 == plVar1) { local_90 = *plVar1; uStack_88 = puVar3[3]; } else { local_90 = *plVar1; local_a0 = (long *)*puVar3; } local_98 = puVar3[1]; *puVar3 = plVar1; puVar3[1] = 0; *(int1 *)plVar1 = 0; /* try { // try from 00159e8b to 00159e97 has its CatchHandler @ 00159fd1 */ Value(this,(string *)&local_a0); if (local_a0 != &local_90) { operator_delete(local_a0,local_90 + 1); } if (local_80 != local_70) { operator_delete(local_80,local_70[0] + 1); } if (local_58 != local_48) { operator_delete(local_58,local_48[0] + 1); } return this; }
33,344
my_error
eloqsql/mysys/my_error.c
void my_error(uint nr, myf MyFlags, ...) { const char *format; va_list args; char ebuff[ERRMSGSIZE]; DBUG_ENTER("my_error"); DBUG_PRINT("my", ("nr: %d MyFlags: %lu errno: %d", nr, MyFlags, errno)); if (!(format = my_get_err_msg(nr))) (void) my_snprintf(ebuff, sizeof(ebuff), "Unknown error %d", nr); else { va_start(args,MyFlags); (void) my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, ebuff, sizeof(ebuff), format, args); va_end(args); } (*error_handler_hook)(nr, ebuff, MyFlags); DBUG_VOID_RETURN; }
O3
c
my_error: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x2e0, %rsp # imm = 0x2E0 movq %rsi, %rbx movl %edi, %r14d movq %rdx, -0x2e0(%rbp) movq %rcx, -0x2d8(%rbp) movq %r8, -0x2d0(%rbp) movq %r9, -0x2c8(%rbp) testb %al, %al je 0x98f3f movaps %xmm0, -0x2c0(%rbp) movaps %xmm1, -0x2b0(%rbp) movaps %xmm2, -0x2a0(%rbp) movaps %xmm3, -0x290(%rbp) movaps %xmm4, -0x280(%rbp) movaps %xmm5, -0x270(%rbp) movaps %xmm6, -0x260(%rbp) movaps %xmm7, -0x250(%rbp) movq %fs:0x28, %rax movq %rax, -0x18(%rbp) callq 0x98e88 testq %rax, %rax je 0x98f9a leaq -0x2f0(%rbp), %rcx leaq -0x240(%rbp), %r8 movq %rcx, 0x10(%r8) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%r8) movabsq $0x3000000010, %rcx # imm = 0x3000000010 movq %rcx, (%r8) leaq 0x3bfb8c(%rip), %rdi # 0x458b10 leaq -0x220(%rbp), %rsi movl $0x200, %edx # imm = 0x200 movq %rax, %rcx callq 0xed128 jmp 0x98fb7 leaq 0x79b66(%rip), %rdx # 0x112b07 leaq -0x220(%rbp), %rdi movl $0x200, %esi # imm = 0x200 movl %r14d, %ecx xorl %eax, %eax callq 0xee30a leaq 0x34c622(%rip), %rax # 0x3e55e0 leaq -0x220(%rbp), %rsi movl %r14d, %edi movq %rbx, %rdx callq *(%rax) movq %fs:0x28, %rax cmpq -0x18(%rbp), %rax jne 0x98fe8 addq $0x2e0, %rsp # imm = 0x2E0 popq %rbx popq %r14 popq %rbp retq callq 0x5f320
my_error: push rbp mov rbp, rsp push r14 push rbx sub rsp, 2E0h mov rbx, rsi mov r14d, edi mov [rbp+var_2E0], rdx mov [rbp+var_2D8], rcx mov [rbp+var_2D0], r8 mov [rbp+var_2C8], r9 test al, al jz short loc_98F3F movaps [rbp+var_2C0], xmm0 movaps [rbp+var_2B0], xmm1 movaps [rbp+var_2A0], xmm2 movaps [rbp+var_290], xmm3 movaps [rbp+var_280], xmm4 movaps [rbp+var_270], xmm5 movaps [rbp+var_260], xmm6 movaps [rbp+var_250], xmm7 loc_98F3F: mov rax, fs:28h mov [rbp+var_18], rax call my_get_err_msg test rax, rax jz short loc_98F9A lea rcx, [rbp+var_2F0] lea r8, [rbp+var_240] mov [r8+10h], rcx lea rcx, [rbp+arg_0] mov [r8+8], rcx mov rcx, 3000000010h mov [r8], rcx lea rdi, my_charset_utf8mb3_general_ci lea rsi, [rbp+var_220] mov edx, 200h mov rcx, rax call my_vsnprintf_ex jmp short loc_98FB7 loc_98F9A: lea rdx, aUnknownErrorD; "Unknown error %d" lea rdi, [rbp+var_220] mov esi, 200h mov ecx, r14d xor eax, eax call my_snprintf loc_98FB7: lea rax, error_handler_hook lea rsi, [rbp+var_220] mov edi, r14d mov rdx, rbx call qword ptr [rax] mov rax, fs:28h cmp rax, [rbp+var_18] jnz short loc_98FE8 add rsp, 2E0h pop rbx pop r14 pop rbp retn loc_98FE8: call ___stack_chk_fail
unsigned long long my_error(unsigned int a1, long long a2, ...) { _BYTE *err_msg; // rax int v3; // r8d int v4; // r9d va_list va; // [rsp+B0h] [rbp-240h] BYREF _BYTE v7[520]; // [rsp+D0h] [rbp-220h] BYREF unsigned long long v8; // [rsp+2D8h] [rbp-18h] va_start(va, a2); va_arg(va, _QWORD); va_arg(va, _QWORD); va_arg(va, _QWORD); va_arg(va, _QWORD); va_end(va); v8 = __readfsqword(0x28u); err_msg = my_get_err_msg(a1); if ( err_msg ) { va_start(va, a2); my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, v7, 512LL, err_msg, va); } else { my_snprintf((unsigned int)v7, 512, (unsigned int)"Unknown error %d", a1, v3, v4); } error_handler_hook(); return __readfsqword(0x28u); }
my_error: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x2e0 MOV RBX,RSI MOV R14D,EDI MOV qword ptr [RBP + -0x2e0],RDX MOV qword ptr [RBP + -0x2d8],RCX MOV qword ptr [RBP + -0x2d0],R8 MOV qword ptr [RBP + -0x2c8],R9 TEST AL,AL JZ 0x00198f3f MOVAPS xmmword ptr [RBP + -0x2c0],XMM0 MOVAPS xmmword ptr [RBP + -0x2b0],XMM1 MOVAPS xmmword ptr [RBP + -0x2a0],XMM2 MOVAPS xmmword ptr [RBP + -0x290],XMM3 MOVAPS xmmword ptr [RBP + -0x280],XMM4 MOVAPS xmmword ptr [RBP + -0x270],XMM5 MOVAPS xmmword ptr [RBP + -0x260],XMM6 MOVAPS xmmword ptr [RBP + -0x250],XMM7 LAB_00198f3f: MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX CALL 0x00198e88 TEST RAX,RAX JZ 0x00198f9a LEA RCX,[RBP + -0x2f0] LEA R8,[RBP + -0x240] MOV qword ptr [R8 + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [R8 + 0x8],RCX MOV RCX,0x3000000010 MOV qword ptr [R8],RCX LEA RDI,[0x558b10] LEA RSI,[RBP + -0x220] MOV EDX,0x200 MOV RCX,RAX CALL 0x001ed128 JMP 0x00198fb7 LAB_00198f9a: LEA RDX,[0x212b07] LEA RDI,[RBP + -0x220] MOV ESI,0x200 MOV ECX,R14D XOR EAX,EAX CALL 0x001ee30a LAB_00198fb7: LEA RAX,[0x4e55e0] LEA RSI,[RBP + -0x220] MOV EDI,R14D MOV RDX,RBX CALL qword ptr [RAX] MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x00198fe8 ADD RSP,0x2e0 POP RBX POP R14 POP RBP RET LAB_00198fe8: CALL 0x0015f320
void my_error(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int4 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; long lVar1; long in_FS_OFFSET; int1 local_2f8 [16]; int8 local_2e8; int8 local_2e0; int8 local_2d8; int8 local_2d0; int8 local_2c8; int8 local_2b8; int8 local_2a8; int8 local_298; int8 local_288; int8 local_278; int8 local_268; int8 local_258; int8 local_248; int1 *local_240; int1 *local_238; int1 local_228 [520]; long local_20; if (in_AL != '\0') { local_2c8 = param_1; local_2b8 = param_2; local_2a8 = param_3; local_298 = param_4; local_288 = param_5; local_278 = param_6; local_268 = param_7; local_258 = param_8; } local_20 = *(long *)(in_FS_OFFSET + 0x28); local_2e8 = param_11; local_2e0 = param_12; local_2d8 = param_13; local_2d0 = param_14; lVar1 = my_get_err_msg(); if (lVar1 == 0) { my_snprintf(local_228,0x200,"Unknown error %d",param_9); } else { local_238 = local_2f8; local_240 = &stack0x00000008; local_248 = 0x3000000010; my_vsnprintf_ex(my_charset_utf8mb3_general_ci,local_228,0x200,lVar1); } (*(code *)error_handler_hook)(param_9,local_228,param_10); if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
33,345
rak_opcode_to_cstr
fabiosvm[P]rak/src/chunk.c
const char *rak_opcode_to_cstr(RakOpcode op) { char *cstr = NULL; switch (op) { case RAK_OP_NOP: cstr = "NOP"; break; case RAK_OP_PUSH_NIL: cstr = "PUSH_NIL"; break; case RAK_OP_PUSH_FALSE: cstr = "PUSH_FALSE"; break; case RAK_OP_PUSH_TRUE: cstr = "PUSH_TRUE"; break; case RAK_OP_LOAD_CONST: cstr = "LOAD_CONST"; break; case RAK_OP_LOAD_GLOBAL: cstr = "LOAD_GLOBAL"; break; case RAK_OP_LOAD_LOCAL: cstr = "LOAD_LOCAL"; break; case RAK_OP_LOAD_ELEMENT: cstr = "LOAD_ELEMENT"; break; case RAK_OP_STORE_LOCAL: cstr = "STORE_LOCAL"; break; case RAK_OP_NEW_ARRAY: cstr = "NEW_ARRAY"; break; case RAK_OP_NEW_RANGE: cstr = "NEW_RANGE"; break; case RAK_OP_NEW_RECORD: cstr = "NEW_RECORD"; break; case RAK_OP_POP: cstr = "POP"; break; case RAK_OP_JUMP: cstr = "JUMP"; break; case RAK_OP_JUMP_IF_FALSE: cstr = "JUMP_IF_FALSE"; break; case RAK_OP_JUMP_IF_TRUE: cstr = "JUMP_IF_TRUE"; break; case RAK_OP_EQ: cstr = "EQ"; break; case RAK_OP_GT: cstr = "GT"; break; case RAK_OP_LT: cstr = "LT"; break; case RAK_OP_ADD: cstr = "ADD"; break; case RAK_OP_SUB: cstr = "SUB"; break; case RAK_OP_MUL: cstr = "MUL"; break; case RAK_OP_DIV: cstr = "DIV"; break; case RAK_OP_MOD: cstr = "MOD"; break; case RAK_OP_NOT: cstr = "NOT"; break; case RAK_OP_NEG: cstr = "NEG"; break; case RAK_OP_CALL: cstr = "CALL"; break; case RAK_OP_HALT: cstr = "HALT"; break; } return cstr; }
O0
c
rak_opcode_to_cstr: pushq %rbp movq %rsp, %rbp movl %edi, -0x4(%rbp) movq $0x0, -0x10(%rbp) movl -0x4(%rbp), %eax movq %rax, -0x18(%rbp) subq $0x1b, %rax ja 0x4514 movq -0x18(%rbp), %rax leaq 0x9f5d(%rip), %rcx # 0xe2c8 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x9fbd(%rip), %rax # 0xe338 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9fb1(%rip), %rax # 0xe33c movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9faa(%rip), %rax # 0xe345 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9fa5(%rip), %rax # 0xe350 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f9f(%rip), %rax # 0xe35a movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f9a(%rip), %rax # 0xe365 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f96(%rip), %rax # 0xe371 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f91(%rip), %rax # 0xe37c movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f8e(%rip), %rax # 0xe389 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f8a(%rip), %rax # 0xe395 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f84(%rip), %rax # 0xe39f movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f7e(%rip), %rax # 0xe3a9 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f79(%rip), %rax # 0xe3b4 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f6d(%rip), %rax # 0xe3b8 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f62(%rip), %rax # 0xe3bd movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f60(%rip), %rax # 0xe3cb movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f5d(%rip), %rax # 0xe3d8 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f50(%rip), %rax # 0xe3db movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f66(%rip), %rax # 0xe401 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f36(%rip), %rax # 0xe3de movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f2d(%rip), %rax # 0xe3e2 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f24(%rip), %rax # 0xe3e6 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f1b(%rip), %rax # 0xe3ea movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f12(%rip), %rax # 0xe3ee movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f09(%rip), %rax # 0xe3f2 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9f00(%rip), %rax # 0xe3f6 movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9ef7(%rip), %rax # 0xe3fa movq %rax, -0x10(%rbp) jmp 0x4514 leaq 0x9eef(%rip), %rax # 0xe3ff movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax popq %rbp retq nopw (%rax,%rax)
rak_opcode_to_cstr: push rbp mov rbp, rsp mov [rbp+var_4], edi mov [rbp+var_10], 0 mov eax, [rbp+var_4] mov [rbp+var_18], rax sub rax, 1Bh; switch 28 cases ja def_4372; jumptable 0000000000004372 default case mov rax, [rbp+var_18] lea rcx, jpt_4372 movsxd rax, ds:(jpt_4372 - 0E2C8h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_4374: lea rax, unk_E338; jumptable 0000000000004372 case 0 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4384: lea rax, aPushNil; jumptable 0000000000004372 case 1 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4394: lea rax, aPushFalse; jumptable 0000000000004372 case 2 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_43A4: lea rax, aPushTrue; jumptable 0000000000004372 case 3 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_43B4: lea rax, aLoadConst; jumptable 0000000000004372 case 4 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_43C4: lea rax, aLoadGlobal; jumptable 0000000000004372 case 5 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_43D4: lea rax, aLoadLocal; jumptable 0000000000004372 case 6 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_43E4: lea rax, aLoadElement; jumptable 0000000000004372 case 7 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_43F4: lea rax, aStoreLocal; jumptable 0000000000004372 case 8 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4404: lea rax, aNewArray; jumptable 0000000000004372 case 9 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4414: lea rax, aNewRange; jumptable 0000000000004372 case 10 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4424: lea rax, aNewRecord; jumptable 0000000000004372 case 11 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4434: lea rax, aPop; jumptable 0000000000004372 case 12 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4444: lea rax, aJump; jumptable 0000000000004372 case 13 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4454: lea rax, aJumpIfFalse; jumptable 0000000000004372 case 14 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4464: lea rax, aJumpIfTrue; jumptable 0000000000004372 case 15 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4474: lea rax, aEq; jumptable 0000000000004372 case 16 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4484: lea rax, aGt; jumptable 0000000000004372 case 17 mov [rbp+var_10], rax jmp def_4372; jumptable 0000000000004372 default case loc_4494: lea rax, aHalt+2; jumptable 0000000000004372 case 18 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44A1: lea rax, aAdd; jumptable 0000000000004372 case 19 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44AE: lea rax, aSub; jumptable 0000000000004372 case 20 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44BB: lea rax, aMul; jumptable 0000000000004372 case 21 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44C8: lea rax, aDiv; jumptable 0000000000004372 case 22 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44D5: lea rax, aMod; jumptable 0000000000004372 case 23 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44E2: lea rax, aNot; jumptable 0000000000004372 case 24 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44EF: lea rax, aNeg; jumptable 0000000000004372 case 25 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_44FC: lea rax, aCall; jumptable 0000000000004372 case 26 mov [rbp+var_10], rax jmp short def_4372; jumptable 0000000000004372 default case loc_4509: lea rax, aHalt; jumptable 0000000000004372 case 27 mov [rbp+var_10], rax def_4372: mov rax, [rbp+var_10]; jumptable 0000000000004372 default case pop rbp retn
char * rak_opcode_to_cstr(int a1) { char *v2; // [rsp+8h] [rbp-10h] v2 = 0LL; switch ( a1 ) { case 0: v2 = (char *)&unk_E338; break; case 1: v2 = "PUSH_NIL"; break; case 2: v2 = "PUSH_FALSE"; break; case 3: v2 = "PUSH_TRUE"; break; case 4: v2 = "LOAD_CONST"; break; case 5: v2 = "LOAD_GLOBAL"; break; case 6: v2 = "LOAD_LOCAL"; break; case 7: v2 = "LOAD_ELEMENT"; break; case 8: v2 = "STORE_LOCAL"; break; case 9: v2 = "NEW_ARRAY"; break; case 10: v2 = "NEW_RANGE"; break; case 11: v2 = "NEW_RECORD"; break; case 12: v2 = "POP"; break; case 13: v2 = "JUMP"; break; case 14: v2 = "JUMP_IF_FALSE"; break; case 15: v2 = "JUMP_IF_TRUE"; break; case 16: v2 = "EQ"; break; case 17: v2 = "GT"; break; case 18: v2 = "LT"; break; case 19: v2 = "ADD"; break; case 20: v2 = "SUB"; break; case 21: v2 = "MUL"; break; case 22: v2 = "DIV"; break; case 23: v2 = "MOD"; break; case 24: v2 = "NOT"; break; case 25: v2 = "NEG"; break; case 26: v2 = "CALL"; break; case 27: v2 = "HALT"; break; default: return v2; } return v2; }
rak_opcode_to_cstr: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],0x0 MOV EAX,dword ptr [RBP + -0x4] MOV qword ptr [RBP + -0x18],RAX SUB RAX,0x1b JA 0x00104514 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x10e2c8] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RAX,[0x10e338] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_1: LEA RAX,[0x10e33c] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_2: LEA RAX,[0x10e345] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_3: LEA RAX,[0x10e350] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_4: LEA RAX,[0x10e35a] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_5: LEA RAX,[0x10e365] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_6: LEA RAX,[0x10e371] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_7: LEA RAX,[0x10e37c] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_8: LEA RAX,[0x10e389] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_9: LEA RAX,[0x10e395] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_a: LEA RAX,[0x10e39f] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_b: LEA RAX,[0x10e3a9] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_c: LEA RAX,[0x10e3b4] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_d: LEA RAX,[0x10e3b8] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_e: LEA RAX,[0x10e3bd] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_f: LEA RAX,[0x10e3cb] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_10: LEA RAX,[0x10e3d8] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_11: LEA RAX,[0x10e3db] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_12: LEA RAX,[0x10e401] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_13: LEA RAX,[0x10e3de] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_14: LEA RAX,[0x10e3e2] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_15: LEA RAX,[0x10e3e6] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_16: LEA RAX,[0x10e3ea] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_17: LEA RAX,[0x10e3ee] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_18: LEA RAX,[0x10e3f2] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_19: LEA RAX,[0x10e3f6] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_1a: LEA RAX,[0x10e3fa] MOV qword ptr [RBP + -0x10],RAX JMP 0x00104514 caseD_1b: LEA RAX,[0x10e3ff] MOV qword ptr [RBP + -0x10],RAX default: MOV RAX,qword ptr [RBP + -0x10] POP RBP RET
char * rak_opcode_to_cstr(int4 param_1) { char *local_18; local_18 = (char *)0x0; switch(param_1) { case 0: local_18 = "NOP"; break; case 1: local_18 = "PUSH_NIL"; break; case 2: local_18 = "PUSH_FALSE"; break; case 3: local_18 = "PUSH_TRUE"; break; case 4: local_18 = "LOAD_CONST"; break; case 5: local_18 = "LOAD_GLOBAL"; break; case 6: local_18 = "LOAD_LOCAL"; break; case 7: local_18 = "LOAD_ELEMENT"; break; case 8: local_18 = "STORE_LOCAL"; break; case 9: local_18 = "NEW_ARRAY"; break; case 10: local_18 = "NEW_RANGE"; break; case 0xb: local_18 = "NEW_RECORD"; break; case 0xc: local_18 = "POP"; break; case 0xd: local_18 = "JUMP"; break; case 0xe: local_18 = "JUMP_IF_FALSE"; break; case 0xf: local_18 = "JUMP_IF_TRUE"; break; case 0x10: local_18 = "EQ"; break; case 0x11: local_18 = "GT"; break; case 0x12: local_18 = "LT"; break; case 0x13: local_18 = "ADD"; break; case 0x14: local_18 = "SUB"; break; case 0x15: local_18 = "MUL"; break; case 0x16: local_18 = "DIV"; break; case 0x17: local_18 = "MOD"; break; case 0x18: local_18 = "NOT"; break; case 0x19: local_18 = "NEG"; break; case 0x1a: local_18 = "CALL"; break; case 0x1b: local_18 = "HALT"; } return local_18; }
33,346
rlp_add_item
corpus-core[P]colibri-stateless/src/chains/eth/verifier/rlp.c
INTERNAL void rlp_add_item(buffer_t* buf, bytes_t data) { if (data.len == 1 && data.data[0] < 0x80) { } else if (data.len < 56) buffer_add_bytes(buf, 1, data.len + 0x80); else encode_length(buf, data.len, 0x80); buffer_append(buf, data); }
O3
c
rlp_add_item: pushq %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 cmpl $0x1, %esi jne 0x2d7b5 cmpb $0x0, (%rbx) jns 0x2d7e2 jmp 0x2d7ba cmpl $0x37, %ebp ja 0x2d7d3 movl %ebp, %edx orl $0x80, %edx movq %r14, %rdi movl $0x1, %esi xorl %eax, %eax callq 0x5160b jmp 0x2d7e2 movq %r14, %rdi movl %ebp, %esi movl $0x80, %edx callq 0x2d7f3 movq %r14, %rdi movl %ebp, %esi movq %rbx, %rdx popq %rbx popq %r14 popq %rbp jmp 0x50fdd
rlp_add_item: push rbp push r14 push rbx mov rbx, rdx mov ebp, esi mov r14, rdi cmp esi, 1 jnz short loc_2D7B5 cmp byte ptr [rbx], 0 jns short loc_2D7E2 jmp short loc_2D7BA loc_2D7B5: cmp ebp, 37h ; '7' ja short loc_2D7D3 loc_2D7BA: mov edx, ebp or edx, 80h mov rdi, r14 mov esi, 1 xor eax, eax call buffer_add_bytes jmp short loc_2D7E2 loc_2D7D3: mov rdi, r14 mov esi, ebp mov edx, 80h call encode_length loc_2D7E2: mov rdi, r14 mov esi, ebp mov rdx, rbx pop rbx pop r14 pop rbp jmp buffer_append
long long rlp_add_item(long long a1, unsigned int a2, char *a3, int a4, int a5, int a6) { if ( a2 != 1 ) { if ( a2 > 0x37 ) { encode_length(a1, a2, 128LL); return buffer_append(a1, a2, a3); } goto LABEL_5; } if ( *a3 < 0 ) LABEL_5: buffer_add_bytes(a1, 1, a2 | 0x80, a4, a5, a6); return buffer_append(a1, a2, a3); }
rlp_add_item: PUSH RBP PUSH R14 PUSH RBX MOV RBX,RDX MOV EBP,ESI MOV R14,RDI CMP ESI,0x1 JNZ 0x0012d7b5 CMP byte ptr [RBX],0x0 JNS 0x0012d7e2 JMP 0x0012d7ba LAB_0012d7b5: CMP EBP,0x37 JA 0x0012d7d3 LAB_0012d7ba: MOV EDX,EBP OR EDX,0x80 MOV RDI,R14 MOV ESI,0x1 XOR EAX,EAX CALL 0x0015160b JMP 0x0012d7e2 LAB_0012d7d3: MOV RDI,R14 MOV ESI,EBP MOV EDX,0x80 CALL 0x0012d7f3 LAB_0012d7e2: MOV RDI,R14 MOV ESI,EBP MOV RDX,RBX POP RBX POP R14 POP RBP JMP 0x00150fdd
void rlp_add_item(int8 param_1,uint param_2,char *param_3) { if (param_2 == 1) { if (-1 < *param_3) goto LAB_0012d7e2; } else if (0x37 < param_2) { encode_length(param_1,param_2,0x80); goto LAB_0012d7e2; } buffer_add_bytes(param_1,1,param_2 | 0x80); LAB_0012d7e2: buffer_append(param_1,param_2,param_3); return; }
33,347
alaya::SequentialStorage<unsigned int, unsigned int>::init(unsigned long, unsigned long, char, unsigned long)
AlayaLite/include/storage/sequential_storage.hpp
auto init(size_t item_size, size_t capacity, char fill = 0, size_t alignment = 64) -> void { item_size_ = item_size; capacity_ = capacity; alignment_ = alignment; aligned_item_size_ = do_align(item_size_, alignment); data_ = static_cast<DataType *>(std::aligned_alloc(alignment, aligned_item_size_ * capacity_)); std::memset(data_, fill, aligned_item_size_ * capacity_); auto bitmap_size = do_align(capacity_ / sizeof(char) + 1, alignment); bitmap_ = static_cast<size_t *>(std::aligned_alloc(alignment, bitmap_size)); std::memset(bitmap_, 0, bitmap_size); }
O3
cpp
alaya::SequentialStorage<unsigned int, unsigned int>::init(unsigned long, unsigned long, char, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %r8, %r15 movq %rsi, (%rdi) movq %rdx, 0x10(%rdi) movq %r8, 0x20(%rdi) testl %r15d, %r15d je 0x1b3ff movl %ecx, %ebp movq %rdx, %rbx movq %rdi, %r14 leal (%rsi,%r15), %r12d decl %r12d movl %r12d, %eax xorl %edx, %edx divl %r15d subl %edx, %r12d movq %r12, 0x8(%rdi) imulq %rbx, %r12 movq %r15, %rdi movq %r12, %rsi callq 0x11ba0 movq %rax, 0x28(%r14) movzbl %bpl, %esi movq %rax, %rdi movq %r12, %rdx callq 0x113a0 addl %r15d, %ebx movl %ebx, %eax xorl %edx, %edx divl %r15d subl %edx, %ebx movq %r15, %rdi movq %rbx, %rsi callq 0x11ba0 movq %rax, 0x30(%r14) movq %rax, %rdi xorl %esi, %esi movq %rbx, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x113a0 movl $0x10, %edi callq 0x114c0 movq %rax, %rbx leaq 0x6456f(%rip), %rsi # 0x7f982 movq %rax, %rdi callq 0x11200 movq 0x98b16(%rip), %rsi # 0xb3f38 movq 0x98aff(%rip), %rdx # 0xb3f28 movq %rbx, %rdi callq 0x11720 movq %rax, %r14 movq %rbx, %rdi callq 0x11a50 movq %r14, %rdi callq 0x11760
_ZN5alaya17SequentialStorageIjjE4initEmmcm: push rbp push r15 push r14 push r12 push rbx mov r15, r8 mov [rdi], rsi mov [rdi+10h], rdx mov [rdi+20h], r8 test r15d, r15d jz short loc_1B3FF mov ebp, ecx mov rbx, rdx mov r14, rdi lea r12d, [rsi+r15] dec r12d mov eax, r12d xor edx, edx div r15d sub r12d, edx mov [rdi+8], r12 imul r12, rbx mov rdi, r15 mov rsi, r12 call _aligned_alloc mov [r14+28h], rax movzx esi, bpl mov rdi, rax mov rdx, r12 call _memset add ebx, r15d mov eax, ebx xor edx, edx div r15d sub ebx, edx mov rdi, r15 mov rsi, rbx call _aligned_alloc mov [r14+30h], rax mov rdi, rax xor esi, esi mov rdx, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp _memset loc_1B3FF: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aAlignNumCannot; "align_num cannot be zero" mov rdi, rax; this call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
long long alaya::SequentialStorage<unsigned int,unsigned int>::init( _QWORD *a1, long long a2, long long a3, unsigned __int8 a4, long long a5) { long long v7; // rbx unsigned int v8; // edx long long v9; // r12 long long v10; // rax long long v11; // rax std::invalid_argument *exception; // rbx *a1 = a2; a1[2] = a3; a1[4] = a5; if ( !(_DWORD)a5 ) { exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, "align_num cannot be zero"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } v7 = a3; v8 = ((int)a2 + (int)a5 - 1) % (unsigned int)a5; a1[1] = (_DWORD)a2 + (_DWORD)a5 - 1 - v8; v9 = v7 * ((_DWORD)a2 + (_DWORD)a5 - 1 - v8); v10 = aligned_alloc(a5, v9); a1[5] = v10; memset(v10, a4, v9); LODWORD(v7) = a5 + v7 - ((int)a5 + (int)v7) % (unsigned int)a5; v11 = aligned_alloc(a5, (unsigned int)v7); a1[6] = v11; return memset(v11, 0LL, (unsigned int)v7); }
init: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15,R8 MOV qword ptr [RDI],RSI MOV qword ptr [RDI + 0x10],RDX MOV qword ptr [RDI + 0x20],R8 TEST R15D,R15D JZ 0x0011b3ff MOV EBP,ECX MOV RBX,RDX MOV R14,RDI LEA R12D,[RSI + R15*0x1] DEC R12D MOV EAX,R12D XOR EDX,EDX DIV R15D SUB R12D,EDX MOV qword ptr [RDI + 0x8],R12 IMUL R12,RBX MOV RDI,R15 MOV RSI,R12 CALL 0x00111ba0 MOV qword ptr [R14 + 0x28],RAX MOVZX ESI,BPL MOV RDI,RAX MOV RDX,R12 CALL 0x001113a0 ADD EBX,R15D MOV EAX,EBX XOR EDX,EDX DIV R15D SUB EBX,EDX MOV RDI,R15 MOV RSI,RBX CALL 0x00111ba0 MOV qword ptr [R14 + 0x30],RAX MOV RDI,RAX XOR ESI,ESI MOV RDX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x001113a0 LAB_0011b3ff: MOV EDI,0x10 CALL 0x001114c0 MOV RBX,RAX LAB_0011b40c: LEA RSI,[0x17f982] MOV RDI,RAX CALL 0x00111200 LAB_0011b41b: MOV RSI,qword ptr [0x001b3f38] MOV RDX,qword ptr [0x001b3f28] MOV RDI,RBX CALL 0x00111720
/* alaya::SequentialStorage<unsigned int, unsigned int>::init(unsigned long, unsigned long, char, unsigned long) */ void __thiscall alaya::SequentialStorage<unsigned_int,unsigned_int>::init (SequentialStorage<unsigned_int,unsigned_int> *this,ulong param_1,ulong param_2, char param_3,ulong param_4) { void *pvVar1; invalid_argument *this_00; uint uVar2; ulong uVar3; size_t __n; int iVar4; *(ulong *)this = param_1; *(ulong *)(this + 0x10) = param_2; *(ulong *)(this + 0x20) = param_4; iVar4 = (int)param_4; if (iVar4 != 0) { uVar2 = ((int)param_1 + iVar4) - 1; uVar3 = (ulong)(uVar2 - (int)((ulong)uVar2 % (param_4 & 0xffffffff))); *(ulong *)(this + 8) = uVar3; __n = uVar3 * param_2; pvVar1 = (void *)aligned_alloc(param_4,__n); *(void **)(this + 0x28) = pvVar1; memset(pvVar1,(uint)(byte)param_3,__n); uVar2 = (int)param_2 + iVar4; pvVar1 = (void *)aligned_alloc(param_4); *(void **)(this + 0x30) = pvVar1; memset(pvVar1,0,(ulong)(uVar2 - (int)((ulong)uVar2 % (param_4 & 0xffffffff)))); return; } this_00 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 0011b40c to 0011b41a has its CatchHandler @ 0011b431 */ std::invalid_argument::invalid_argument(this_00,"align_num cannot be zero"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001b3f38,PTR__invalid_argument_001b3f28); }
33,348
auth_old_password
eloqsql/libmariadb/plugins/auth/old_password.c
static int auth_old_password(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql) { uchar *pkt; int pkt_len; if (((MCPVIO_EXT *)vio)->mysql_change_user) { /* in mysql_change_user() the client sends the first packet. we use the old scramble. */ pkt= (uchar*)mysql->scramble_buff; } else { /* read the scramble */ if ((pkt_len= vio->read_packet(vio, &pkt)) < 0) return CR_ERROR; if (pkt_len != SCRAMBLE_LENGTH_323 + 1 && pkt_len != SCRAMBLE_LENGTH + 1) return CR_SERVER_HANDSHAKE_ERR; /* save it in MYSQL */ memmove(mysql->scramble_buff, pkt, pkt_len - 1); mysql->scramble_buff[pkt_len - 1] = 0; } if (mysql && mysql->passwd[0]) { char scrambled[SCRAMBLE_LENGTH_323 + 1]; ma_scramble_323(scrambled, (char*)pkt, mysql->passwd); if (vio->write_packet(vio, (uchar*)scrambled, SCRAMBLE_LENGTH_323 + 1)) return CR_ERROR; } else if (vio->write_packet(vio, 0, 0)) /* no password */ return CR_ERROR; return CR_OK; }
O0
c
auth_old_password: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq -0x20(%rbp), %rax cmpb $0x0, 0x48(%rax) je 0x48b57 movq -0x28(%rbp), %rax addq $0x48e, %rax # imm = 0x48E movq %rax, -0x30(%rbp) jmp 0x48bc6 movq -0x20(%rbp), %rax movq (%rax), %rax movq -0x20(%rbp), %rdi leaq -0x30(%rbp), %rsi callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jge 0x48b7c movl $0x0, -0x18(%rbp) jmp 0x48c4a cmpl $0x9, -0x34(%rbp) je 0x48b94 cmpl $0x15, -0x34(%rbp) je 0x48b94 movl $0x7dc, -0x18(%rbp) # imm = 0x7DC jmp 0x48c4a movq -0x28(%rbp), %rdi addq $0x48e, %rdi # imm = 0x48E movq -0x30(%rbp), %rsi movl -0x34(%rbp), %eax subl $0x1, %eax movslq %eax, %rdx callq 0x136f0 movq -0x28(%rbp), %rax movl -0x34(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx movb $0x0, 0x48e(%rax,%rcx) cmpq $0x0, -0x28(%rbp) je 0x48c1f movq -0x28(%rbp), %rax movq 0x2c0(%rax), %rax movsbl (%rax), %eax cmpl $0x0, %eax je 0x48c1f leaq -0x11(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rax movq 0x2c0(%rax), %rdx callq 0x50110 movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movq -0x20(%rbp), %rdi leaq -0x11(%rbp), %rsi movl $0x9, %edx callq *%rax cmpl $0x0, %eax je 0x48c1d movl $0x0, -0x18(%rbp) jmp 0x48c4a jmp 0x48c43 movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movq -0x20(%rbp), %rdi xorl %ecx, %ecx movl %ecx, %esi xorl %edx, %edx callq *%rax cmpl $0x0, %eax je 0x48c41 movl $0x0, -0x18(%rbp) jmp 0x48c4a jmp 0x48c43 movl $0xffffffff, -0x18(%rbp) # imm = 0xFFFFFFFF movl -0x18(%rbp), %eax movl %eax, -0x38(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x48c6b movl -0x38(%rbp), %eax addq $0x40, %rsp popq %rbp retq callq 0x134b0
auth_old_password: push rbp mov rbp, rsp sub rsp, 40h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_20], rdi mov [rbp+var_28], rsi mov rax, [rbp+var_20] cmp byte ptr [rax+48h], 0 jz short loc_48B57 mov rax, [rbp+var_28] add rax, 48Eh mov [rbp+var_30], rax jmp short loc_48BC6 loc_48B57: mov rax, [rbp+var_20] mov rax, [rax] mov rdi, [rbp+var_20] lea rsi, [rbp+var_30] call rax mov [rbp+var_34], eax cmp eax, 0 jge short loc_48B7C mov [rbp+var_18], 0 jmp loc_48C4A loc_48B7C: cmp [rbp+var_34], 9 jz short loc_48B94 cmp [rbp+var_34], 15h jz short loc_48B94 mov [rbp+var_18], 7DCh jmp loc_48C4A loc_48B94: mov rdi, [rbp+var_28] add rdi, 48Eh mov rsi, [rbp+var_30] mov eax, [rbp+var_34] sub eax, 1 movsxd rdx, eax call _memmove mov rax, [rbp+var_28] mov ecx, [rbp+var_34] sub ecx, 1 movsxd rcx, ecx mov byte ptr [rax+rcx+48Eh], 0 loc_48BC6: cmp [rbp+var_28], 0 jz short loc_48C1F mov rax, [rbp+var_28] mov rax, [rax+2C0h] movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_48C1F lea rdi, [rbp+var_11] mov rsi, [rbp+var_30] mov rax, [rbp+var_28] mov rdx, [rax+2C0h] call ma_scramble_323 mov rax, [rbp+var_20] mov rax, [rax+8] mov rdi, [rbp+var_20] lea rsi, [rbp+var_11] mov edx, 9 call rax cmp eax, 0 jz short loc_48C1D mov [rbp+var_18], 0 jmp short loc_48C4A loc_48C1D: jmp short loc_48C43 loc_48C1F: mov rax, [rbp+var_20] mov rax, [rax+8] mov rdi, [rbp+var_20] xor ecx, ecx mov esi, ecx xor edx, edx call rax cmp eax, 0 jz short loc_48C41 mov [rbp+var_18], 0 jmp short loc_48C4A loc_48C41: jmp short $+2 loc_48C43: mov [rbp+var_18], 0FFFFFFFFh loc_48C4A: mov eax, [rbp+var_18] mov [rbp+var_38], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_48C6B mov eax, [rbp+var_38] add rsp, 40h pop rbp retn loc_48C6B: call ___stack_chk_fail
long long auth_old_password(long long a1, long long a2) { int v3; // [rsp+Ch] [rbp-34h] long long v4; // [rsp+10h] [rbp-30h] BYREF long long v5; // [rsp+18h] [rbp-28h] long long v6; // [rsp+20h] [rbp-20h] _BYTE v8[9]; // [rsp+2Fh] [rbp-11h] BYREF unsigned long long v9; // [rsp+38h] [rbp-8h] v9 = __readfsqword(0x28u); v6 = a1; v5 = a2; if ( *(_BYTE *)(a1 + 72) ) { v4 = v5 + 1166; LABEL_9: if ( v5 && **(_BYTE **)(v5 + 704) ) { ma_scramble_323(v8, v4, *(_QWORD *)(v5 + 704)); if ( (*(unsigned int ( **)(long long, _BYTE *, long long))(v6 + 8))(v6, v8, 9LL) ) return 0; } else if ( (*(unsigned int ( **)(long long, _QWORD, _QWORD))(v6 + 8))(v6, 0LL, 0LL) ) { return 0; } return (unsigned int)-1; } v3 = (*(long long ( **)(long long, long long *))v6)(v6, &v4); if ( v3 >= 0 ) { if ( v3 == 9 || v3 == 21 ) { memmove(v5 + 1166, v4, v3 - 1); *(_BYTE *)(v5 + v3 - 1 + 1166) = 0; goto LABEL_9; } return 2012; } else { return 0; } }
auth_old_password: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x28],RSI MOV RAX,qword ptr [RBP + -0x20] CMP byte ptr [RAX + 0x48],0x0 JZ 0x00148b57 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x48e MOV qword ptr [RBP + -0x30],RAX JMP 0x00148bc6 LAB_00148b57: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x30] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JGE 0x00148b7c MOV dword ptr [RBP + -0x18],0x0 JMP 0x00148c4a LAB_00148b7c: CMP dword ptr [RBP + -0x34],0x9 JZ 0x00148b94 CMP dword ptr [RBP + -0x34],0x15 JZ 0x00148b94 MOV dword ptr [RBP + -0x18],0x7dc JMP 0x00148c4a LAB_00148b94: MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x48e MOV RSI,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x34] SUB EAX,0x1 MOVSXD RDX,EAX CALL 0x001136f0 MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x34] SUB ECX,0x1 MOVSXD RCX,ECX MOV byte ptr [RAX + RCX*0x1 + 0x48e],0x0 LAB_00148bc6: CMP qword ptr [RBP + -0x28],0x0 JZ 0x00148c1f MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x2c0] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x00148c1f LEA RDI,[RBP + -0x11] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RAX + 0x2c0] CALL 0x00150110 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x11] MOV EDX,0x9 CALL RAX CMP EAX,0x0 JZ 0x00148c1d MOV dword ptr [RBP + -0x18],0x0 JMP 0x00148c4a LAB_00148c1d: JMP 0x00148c43 LAB_00148c1f: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RBP + -0x20] XOR ECX,ECX MOV ESI,ECX XOR EDX,EDX CALL RAX CMP EAX,0x0 JZ 0x00148c41 MOV dword ptr [RBP + -0x18],0x0 JMP 0x00148c4a LAB_00148c41: JMP 0x00148c43 LAB_00148c43: MOV dword ptr [RBP + -0x18],0xffffffff LAB_00148c4a: MOV EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x38],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00148c6b MOV EAX,dword ptr [RBP + -0x38] ADD RSP,0x40 POP RBP RET LAB_00148c6b: CALL 0x001134b0
int4 auth_old_password(int8 *param_1,long param_2) { int iVar1; long in_FS_OFFSET; void *local_38; long local_30; int8 *local_28; int4 local_20; int1 local_19 [9]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_30 = param_2; local_28 = param_1; if (*(char *)(param_1 + 9) == '\0') { iVar1 = (*(code *)*param_1)(param_1,&local_38); if (iVar1 < 0) { local_20 = 0; goto LAB_00148c4a; } if ((iVar1 != 9) && (iVar1 != 0x15)) { local_20 = 0x7dc; goto LAB_00148c4a; } memmove((void *)(local_30 + 0x48e),local_38,(long)(iVar1 + -1)); *(int1 *)(local_30 + 0x48e + (long)(iVar1 + -1)) = 0; } else { local_38 = (void *)(param_2 + 0x48e); } if ((local_30 == 0) || (**(char **)(local_30 + 0x2c0) == '\0')) { iVar1 = (*(code *)local_28[1])(local_28,0,0); if (iVar1 != 0) { local_20 = 0; goto LAB_00148c4a; } } else { ma_scramble_323(local_19,local_38,*(int8 *)(local_30 + 0x2c0)); iVar1 = (*(code *)local_28[1])(local_28,local_19,9); if (iVar1 != 0) { local_20 = 0; goto LAB_00148c4a; } } local_20 = 0xffffffff; LAB_00148c4a: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_20; }
33,349
arpreq_transmit
xtate/src/scan-modules/arp-req-scan.c
static bool arpreq_transmit(uint64_t entropy, ScanTarget *target, unsigned char *px, size_t *len) { if (target->target.ip_proto != IP_PROTO_Other) return false; /*arp is just for ipv4*/ if (target->target.ip_them.version != 4) return false; /*we do not need a cookie and actually cannot set it*/ *len = arp_create_request_packet(target->target.ip_them, target->target.ip_me, px, PKT_BUF_SIZE); return false; }
O3
c
arpreq_transmit: cmpl $0xff, (%rsi) jne 0x388cc cmpb $0x4, 0x18(%rsi) jne 0x388cc pushq %rbx subq $0x30, %rsp movq %rcx, %rbx movq 0x30(%rsi), %rax movq %rax, 0x28(%rsp) movups 0x20(%rsi), %xmm0 movups %xmm0, 0x18(%rsp) movq 0x18(%rsi), %rax movq %rax, 0x10(%rsp) movups 0x8(%rsi), %xmm0 movups %xmm0, (%rsp) movl $0x800, %esi # imm = 0x800 movq %rdx, %rdi callq 0x49606 movq %rax, (%rbx) addq $0x30, %rsp popq %rbx xorl %eax, %eax retq
arpreq_transmit: cmp dword ptr [rsi], 0FFh jnz short loc_388CC cmp byte ptr [rsi+18h], 4 jnz short loc_388CC push rbx sub rsp, 30h mov rbx, rcx mov rax, [rsi+30h] mov [rsp+38h+var_10], rax movups xmm0, xmmword ptr [rsi+20h] movups [rsp+38h+var_20], xmm0 mov rax, [rsi+18h] mov [rsp+38h+var_28], rax movups xmm0, xmmword ptr [rsi+8] movups [rsp+38h+var_38], xmm0 mov esi, 800h mov rdi, rdx call arp_create_request_packet mov [rbx], rax add rsp, 30h pop rbx loc_388CC: xor eax, eax retn
long long arpreq_transmit(long long a1, long long a2, long long a3, _QWORD *a4, long long a5, long long a6) { if ( *(_DWORD *)a2 == 255 && *(_BYTE *)(a2 + 24) == 4 ) *a4 = arp_create_request_packet( a3, 2048LL, a3, a4, a5, a6, *(_QWORD *)(a2 + 8), *(_QWORD *)(a2 + 16), *(_QWORD *)(a2 + 24), *(_QWORD *)(a2 + 32), *(_QWORD *)(a2 + 40), *(_QWORD *)(a2 + 48)); return 0LL; }
arpreq_transmit: CMP dword ptr [RSI],0xff JNZ 0x001388cc CMP byte ptr [RSI + 0x18],0x4 JNZ 0x001388cc PUSH RBX SUB RSP,0x30 MOV RBX,RCX MOV RAX,qword ptr [RSI + 0x30] MOV qword ptr [RSP + 0x28],RAX MOVUPS XMM0,xmmword ptr [RSI + 0x20] MOVUPS xmmword ptr [RSP + 0x18],XMM0 MOV RAX,qword ptr [RSI + 0x18] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [RSI + 0x8] MOVUPS xmmword ptr [RSP],XMM0 MOV ESI,0x800 MOV RDI,RDX CALL 0x00149606 MOV qword ptr [RBX],RAX ADD RSP,0x30 POP RBX LAB_001388cc: XOR EAX,EAX RET
int8 arpreq_transmit(int8 param_1,int *param_2,int8 param_3,int8 *param_4) { int8 uVar1; if ((*param_2 == 0xff) && ((char)param_2[6] == '\x04')) { uVar1 = arp_create_request_packet(param_3,0x800); *param_4 = uVar1; } return 0; }
33,350
stbtt__cff_index_get
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h
static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) { int count, offsize, start, end; stbtt__buf_seek(&b, 0); count = stbtt__buf_get16(&b); offsize = stbtt__buf_get8(&b); STBTT_assert(i >= 0 && i < count); STBTT_assert(offsize >= 1 && offsize <= 4); stbtt__buf_skip(&b, i*offsize); start = stbtt__buf_get(&b, offsize); end = stbtt__buf_get(&b, offsize); return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); }
O0
c
stbtt__cff_index_get: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x20(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x24(%rbp) leaq -0x20(%rbp), %rdi xorl %esi, %esi callq 0x7cf0 leaq -0x20(%rbp), %rdi movl $0x2, %esi callq 0x81b0 movl %eax, -0x28(%rbp) leaq -0x20(%rbp), %rdi callq 0x7d70 movzbl %al, %eax movl %eax, -0x2c(%rbp) cmpl $0x0, -0x24(%rbp) jl 0x7ede movl -0x24(%rbp), %eax cmpl -0x28(%rbp), %eax jge 0x7ede jmp 0x7efd leaq 0x336ec(%rip), %rdi # 0x3b5d1 leaq 0x3357e(%rip), %rsi # 0x3b46a movl $0x4f2, %edx # imm = 0x4F2 leaq 0x336ed(%rip), %rcx # 0x3b5e5 callq 0x30b0 cmpl $0x1, -0x2c(%rbp) jl 0x7f0b cmpl $0x4, -0x2c(%rbp) jg 0x7f0b jmp 0x7f2a leaq 0x33634(%rip), %rdi # 0x3b546 leaq 0x33551(%rip), %rsi # 0x3b46a movl $0x4f3, %edx # imm = 0x4F3 leaq 0x336c0(%rip), %rcx # 0x3b5e5 callq 0x30b0 movl -0x24(%rbp), %esi movl -0x2c(%rbp), %eax imull %eax, %esi leaq -0x20(%rbp), %rdi movq %rdi, -0x40(%rbp) callq 0x7cc0 movq -0x40(%rbp), %rdi movl -0x2c(%rbp), %esi callq 0x81b0 movq -0x40(%rbp), %rdi movl %eax, -0x30(%rbp) movl -0x2c(%rbp), %esi callq 0x81b0 movq -0x40(%rbp), %rdi movl %eax, -0x34(%rbp) movl -0x28(%rbp), %esi incl %esi movl -0x2c(%rbp), %eax imull %eax, %esi movl -0x30(%rbp), %eax movl %eax, %edx movl %esi, %ecx leal 0x2(%rcx,%rdx), %esi movl -0x34(%rbp), %edx subl %eax, %edx callq 0x8110 movq %rax, -0x10(%rbp) movq %rdx, -0x8(%rbp) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rdx addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
stbtt__cff_index_get: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_20], rdi mov [rbp+var_18], rsi mov [rbp+var_24], edx lea rdi, [rbp+var_20] xor esi, esi call stbtt__buf_seek lea rdi, [rbp+var_20] mov esi, 2 call stbtt__buf_get mov [rbp+var_28], eax lea rdi, [rbp+var_20] call stbtt__buf_get8 movzx eax, al mov [rbp+var_2C], eax cmp [rbp+var_24], 0 jl short loc_7EDE mov eax, [rbp+var_24] cmp eax, [rbp+var_28] jge short loc_7EDE jmp short loc_7EFD loc_7EDE: lea rdi, aI0ICount; "i >= 0 && i < count" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov edx, 4F2h lea rcx, aStbttBufStbttC_0; "stbtt__buf stbtt__cff_index_get(stbtt__"... call ___assert_fail loc_7EFD: cmp [rbp+var_2C], 1 jl short loc_7F0B cmp [rbp+var_2C], 4 jg short loc_7F0B jmp short loc_7F2A loc_7F0B: lea rdi, aOffsize1Offsiz; "offsize >= 1 && offsize <= 4" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov edx, 4F3h lea rcx, aStbttBufStbttC_0; "stbtt__buf stbtt__cff_index_get(stbtt__"... call ___assert_fail loc_7F2A: mov esi, [rbp+var_24] mov eax, [rbp+var_2C] imul esi, eax lea rdi, [rbp+var_20] mov [rbp+var_40], rdi call stbtt__buf_skip mov rdi, [rbp+var_40] mov esi, [rbp+var_2C] call stbtt__buf_get mov rdi, [rbp+var_40] mov [rbp+var_30], eax mov esi, [rbp+var_2C] call stbtt__buf_get mov rdi, [rbp+var_40] mov [rbp+var_34], eax mov esi, [rbp+var_28] inc esi mov eax, [rbp+var_2C] imul esi, eax mov eax, [rbp+var_30] mov edx, eax mov ecx, esi lea esi, [rcx+rdx+2] mov edx, [rbp+var_34] sub edx, eax call stbtt__buf_range mov [rbp+var_10], rax mov [rbp+var_8], rdx mov rax, [rbp+var_10] mov rdx, [rbp+var_8] add rsp, 40h pop rbp retn
long long stbtt__cff_index_get(long long a1, long long a2, int a3) { int v4; // [rsp+Ch] [rbp-34h] int v5; // [rsp+10h] [rbp-30h] int v6; // [rsp+14h] [rbp-2Ch] int v7; // [rsp+18h] [rbp-28h] long long v9[2]; // [rsp+20h] [rbp-20h] BYREF v9[0] = a1; v9[1] = a2; stbtt__buf_seek((long long)v9, 0); v7 = stbtt__buf_get(v9, 2LL); v6 = (unsigned __int8)stbtt__buf_get8(v9); if ( a3 < 0 || a3 >= v7 ) __assert_fail( "i >= 0 && i < count", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h", 1266LL, "stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); if ( v6 < 1 || v6 > 4 ) __assert_fail( "offsize >= 1 && offsize <= 4", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h", 1267LL, "stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); stbtt__buf_skip((long long)v9, v6 * a3); v5 = stbtt__buf_get(v9, (unsigned int)v6); v4 = stbtt__buf_get(v9, (unsigned int)v6); return stbtt__buf_range(v9, (unsigned int)(v6 * (v7 + 1) + v5 + 2), (unsigned int)(v4 - v5)); }
stbtt__cff_index_get: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x24],EDX LEA RDI,[RBP + -0x20] XOR ESI,ESI CALL 0x00107cf0 LEA RDI,[RBP + -0x20] MOV ESI,0x2 CALL 0x001081b0 MOV dword ptr [RBP + -0x28],EAX LEA RDI,[RBP + -0x20] CALL 0x00107d70 MOVZX EAX,AL MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x24],0x0 JL 0x00107ede MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RBP + -0x28] JGE 0x00107ede JMP 0x00107efd LAB_00107ede: LEA RDI,[0x13b5d1] LEA RSI,[0x13b46a] MOV EDX,0x4f2 LEA RCX,[0x13b5e5] CALL 0x001030b0 LAB_00107efd: CMP dword ptr [RBP + -0x2c],0x1 JL 0x00107f0b CMP dword ptr [RBP + -0x2c],0x4 JG 0x00107f0b JMP 0x00107f2a LAB_00107f0b: LEA RDI,[0x13b546] LEA RSI,[0x13b46a] MOV EDX,0x4f3 LEA RCX,[0x13b5e5] CALL 0x001030b0 LAB_00107f2a: MOV ESI,dword ptr [RBP + -0x24] MOV EAX,dword ptr [RBP + -0x2c] IMUL ESI,EAX LEA RDI,[RBP + -0x20] MOV qword ptr [RBP + -0x40],RDI CALL 0x00107cc0 MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RBP + -0x2c] CALL 0x001081b0 MOV RDI,qword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x30],EAX MOV ESI,dword ptr [RBP + -0x2c] CALL 0x001081b0 MOV RDI,qword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x34],EAX MOV ESI,dword ptr [RBP + -0x28] INC ESI MOV EAX,dword ptr [RBP + -0x2c] IMUL ESI,EAX MOV EAX,dword ptr [RBP + -0x30] MOV EDX,EAX MOV ECX,ESI LEA ESI,[RCX + RDX*0x1 + 0x2] MOV EDX,dword ptr [RBP + -0x34] SUB EDX,EAX CALL 0x00108110 MOV qword ptr [RBP + -0x10],RAX MOV qword ptr [RBP + -0x8],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int1 [16] stbtt__cff_index_get(int8 param_1,int8 param_2,int param_3) { int1 auVar1 [16]; byte bVar2; int iVar3; uint uVar4; int iVar5; int iVar6; int8 local_28; int8 local_20; local_28 = param_1; local_20 = param_2; stbtt__buf_seek(&local_28,0); iVar3 = stbtt__buf_get(&local_28,2); bVar2 = stbtt__buf_get8(&local_28); uVar4 = (uint)bVar2; if ((param_3 < 0) || (iVar3 <= param_3)) { /* WARNING: Subroutine does not return */ __assert_fail("i >= 0 && i < count", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h" ,0x4f2,"stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); } if ((uVar4 != 0) && (uVar4 < 5)) { stbtt__buf_skip(&local_28,param_3 * uVar4); iVar5 = stbtt__buf_get(&local_28,uVar4); iVar6 = stbtt__buf_get(&local_28,uVar4); auVar1 = stbtt__buf_range(&local_28,(iVar3 + 1) * uVar4 + 2 + iVar5,iVar6 - iVar5); return auVar1; } /* WARNING: Subroutine does not return */ __assert_fail("offsize >= 1 && offsize <= 4", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h" ,0x4f3,"stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); }
33,351
stbtt__cff_index_get
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h
static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) { int count, offsize, start, end; stbtt__buf_seek(&b, 0); count = stbtt__buf_get16(&b); offsize = stbtt__buf_get8(&b); STBTT_assert(i >= 0 && i < count); STBTT_assert(offsize >= 1 && offsize <= 4); stbtt__buf_skip(&b, i*offsize); start = stbtt__buf_get(&b, offsize); end = stbtt__buf_get(&b, offsize); return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); }
O1
c
stbtt__cff_index_get: pushq %rbx testq %rsi, %rsi js 0x5e70 shrq $0x20, %rsi xorl %ecx, %ecx movl $0x2, %r8d xorl %eax, %eax cmpl %esi, %ecx jge 0x5d8e movslq %ecx, %r9 incl %ecx movzbl (%rdi,%r9), %r9d jmp 0x5d91 xorl %r9d, %r9d shll $0x8, %eax orl %r9d, %eax decl %r8d jne 0x5d7e cmpl %esi, %ecx jge 0x5dab movslq %ecx, %r8 incl %ecx movb (%rdi,%r8), %r10b jmp 0x5dae xorl %r10d, %r10d testl %edx, %edx js 0x5e8f cmpl %edx, %eax jle 0x5e8f leal -0x1(%r10), %r8d cmpb $0x4, %r8b jae 0x5eae movzbl %r10b, %r8d imull %r8d, %edx addl %ecx, %edx cmpl %esi, %edx ja 0x5e70 xorl %ecx, %ecx xorl %r9d, %r9d testb %r10b, %r10b je 0x5e08 movl %r8d, %r11d cmpl %esi, %edx jge 0x5dfa movslq %edx, %rbx incl %edx movzbl (%rdi,%rbx), %ebx jmp 0x5dfc xorl %ebx, %ebx shll $0x8, %r9d orl %ebx, %r9d decl %r11d jne 0x5deb testb %r10b, %r10b je 0x5e30 xorl %ecx, %ecx movl %r8d, %r10d cmpl %esi, %edx jge 0x5e22 movslq %edx, %r11 incl %edx movzbl (%rdi,%r11), %r11d jmp 0x5e25 xorl %r11d, %r11d shll $0x8, %ecx orl %r11d, %ecx decl %r10d jne 0x5e12 incl %eax imull %r8d, %eax leal (%rax,%r9), %r8d addl $0x2, %r8d subl %r9d, %ecx movl %ecx, %eax orl %r8d, %eax js 0x5e6a xorl %eax, %eax subl %r8d, %esi jl 0x5e6c movl $0x0, %edx cmpl %ecx, %esi jl 0x5e6e movl %r8d, %eax addq %rax, %rdi shlq $0x20, %rcx movq %rdi, %rax movq %rcx, %rdx jmp 0x5e6e xorl %eax, %eax xorl %edx, %edx popq %rbx retq leaq 0x1d66d(%rip), %rdi # 0x234e4 leaq 0x1d5fa(%rip), %rsi # 0x23478 leaq 0x1d677(%rip), %rcx # 0x234fc movl $0x47d, %edx # imm = 0x47D callq 0x30b0 leaq 0x1d6d9(%rip), %rdi # 0x2356f leaq 0x1d5db(%rip), %rsi # 0x23478 leaq 0x1d6df(%rip), %rcx # 0x23583 movl $0x4f2, %edx # imm = 0x4F2 callq 0x30b0 leaq 0x1d66f(%rip), %rdi # 0x23524 leaq 0x1d5bc(%rip), %rsi # 0x23478 leaq 0x1d6c0(%rip), %rcx # 0x23583 movl $0x4f3, %edx # imm = 0x4F3 callq 0x30b0
stbtt__cff_index_get: push rbx test rsi, rsi js loc_5E70 shr rsi, 20h xor ecx, ecx mov r8d, 2 xor eax, eax loc_5D7E: cmp ecx, esi jge short loc_5D8E movsxd r9, ecx inc ecx movzx r9d, byte ptr [rdi+r9] jmp short loc_5D91 loc_5D8E: xor r9d, r9d loc_5D91: shl eax, 8 or eax, r9d dec r8d jnz short loc_5D7E cmp ecx, esi jge short loc_5DAB movsxd r8, ecx inc ecx mov r10b, [rdi+r8] jmp short loc_5DAE loc_5DAB: xor r10d, r10d loc_5DAE: test edx, edx js loc_5E8F cmp eax, edx jle loc_5E8F lea r8d, [r10-1] cmp r8b, 4 jnb loc_5EAE movzx r8d, r10b imul edx, r8d add edx, ecx cmp edx, esi ja loc_5E70 xor ecx, ecx xor r9d, r9d test r10b, r10b jz short loc_5E08 mov r11d, r8d loc_5DEB: cmp edx, esi jge short loc_5DFA movsxd rbx, edx inc edx movzx ebx, byte ptr [rdi+rbx] jmp short loc_5DFC loc_5DFA: xor ebx, ebx loc_5DFC: shl r9d, 8 or r9d, ebx dec r11d jnz short loc_5DEB loc_5E08: test r10b, r10b jz short loc_5E30 xor ecx, ecx mov r10d, r8d loc_5E12: cmp edx, esi jge short loc_5E22 movsxd r11, edx inc edx movzx r11d, byte ptr [rdi+r11] jmp short loc_5E25 loc_5E22: xor r11d, r11d loc_5E25: shl ecx, 8 or ecx, r11d dec r10d jnz short loc_5E12 loc_5E30: inc eax imul eax, r8d lea r8d, [rax+r9] add r8d, 2 sub ecx, r9d mov eax, ecx or eax, r8d js short loc_5E6A xor eax, eax sub esi, r8d jl short loc_5E6C mov edx, 0 cmp esi, ecx jl short loc_5E6E mov eax, r8d add rdi, rax shl rcx, 20h mov rax, rdi mov rdx, rcx jmp short loc_5E6E loc_5E6A: xor eax, eax loc_5E6C: xor edx, edx loc_5E6E: pop rbx retn loc_5E70: lea rdi, aOBSizeO0; "!(o > b->size || o < 0)" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidStbttBufSe; "void stbtt__buf_seek(stbtt__buf *, int)" mov edx, 47Dh call ___assert_fail loc_5E8F: lea rdi, aI0ICount; "i >= 0 && i < count" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aStbttBufStbttC_0; "stbtt__buf stbtt__cff_index_get(stbtt__"... mov edx, 4F2h call ___assert_fail loc_5EAE: lea rdi, aOffsize1Offsiz; "offsize >= 1 && offsize <= 4" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aStbttBufStbttC_0; "stbtt__buf stbtt__cff_index_get(stbtt__"... mov edx, 4F3h call ___assert_fail
long long stbtt__cff_index_get(long long a1, long long a2, int a3) { unsigned long long v3; // rsi int v4; // ecx int v5; // r8d int v6; // eax long long v7; // r9 int v8; // r9d long long v9; // r8 int v10; // r10d int v11; // r8d int v12; // edx int v13; // ecx int v14; // r9d int v15; // r11d long long v16; // rbx int v17; // ebx long long v18; // r11 int v19; // r11d int v20; // r8d int v21; // ecx long long result; // rax bool v23; // cc int v24; // esi if ( a2 < 0 ) goto LABEL_32; v3 = HIDWORD(a2); v4 = 0; v5 = 2; v6 = 0; do { if ( v4 >= (int)v3 ) { v8 = 0; } else { v7 = v4++; v8 = *(unsigned __int8 *)(a1 + v7); } v6 = v8 | (v6 << 8); --v5; } while ( v5 ); if ( v4 >= (int)v3 ) { LOBYTE(v10) = 0; } else { v9 = v4++; LOBYTE(v10) = *(_BYTE *)(a1 + v9); } if ( a3 < 0 || v6 <= a3 ) __assert_fail( "i >= 0 && i < count", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h", 1266LL, "stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); if ( (unsigned __int8)(v10 - 1) >= 4u ) __assert_fail( "offsize >= 1 && offsize <= 4", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h", 1267LL, "stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); v11 = (unsigned __int8)v10; v12 = v4 + (unsigned __int8)v10 * a3; if ( v12 > (unsigned int)v3 ) LABEL_32: __assert_fail( "!(o > b->size || o < 0)", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h", 1149LL, "void stbtt__buf_seek(stbtt__buf *, int)"); v13 = 0; v14 = 0; if ( (_BYTE)v10 ) { v15 = (unsigned __int8)v10; do { if ( v12 >= (int)v3 ) { v17 = 0; } else { v16 = v12++; v17 = *(unsigned __int8 *)(a1 + v16); } v14 = v17 | (v14 << 8); --v15; } while ( v15 ); } if ( (_BYTE)v10 ) { v13 = 0; v10 = (unsigned __int8)v10; do { if ( v12 >= (int)v3 ) { v19 = 0; } else { v18 = v12++; v19 = *(unsigned __int8 *)(a1 + v18); } v13 = v19 | (v13 << 8); --v10; } while ( v10 ); } v20 = v11 * (v6 + 1) + v14 + 2; v21 = v13 - v14; if ( (v20 | v21) < 0 ) return 0LL; result = 0LL; v23 = (int)v3 < v20; v24 = v3 - v20; if ( !v23 && v24 >= v21 ) return (unsigned int)v20 + a1; return result; }
stbtt__cff_index_get: PUSH RBX TEST RSI,RSI JS 0x00105e70 SHR RSI,0x20 XOR ECX,ECX MOV R8D,0x2 XOR EAX,EAX LAB_00105d7e: CMP ECX,ESI JGE 0x00105d8e MOVSXD R9,ECX INC ECX MOVZX R9D,byte ptr [RDI + R9*0x1] JMP 0x00105d91 LAB_00105d8e: XOR R9D,R9D LAB_00105d91: SHL EAX,0x8 OR EAX,R9D DEC R8D JNZ 0x00105d7e CMP ECX,ESI JGE 0x00105dab MOVSXD R8,ECX INC ECX MOV R10B,byte ptr [RDI + R8*0x1] JMP 0x00105dae LAB_00105dab: XOR R10D,R10D LAB_00105dae: TEST EDX,EDX JS 0x00105e8f CMP EAX,EDX JLE 0x00105e8f LEA R8D,[R10 + -0x1] CMP R8B,0x4 JNC 0x00105eae MOVZX R8D,R10B IMUL EDX,R8D ADD EDX,ECX CMP EDX,ESI JA 0x00105e70 XOR ECX,ECX XOR R9D,R9D TEST R10B,R10B JZ 0x00105e08 MOV R11D,R8D LAB_00105deb: CMP EDX,ESI JGE 0x00105dfa MOVSXD RBX,EDX INC EDX MOVZX EBX,byte ptr [RDI + RBX*0x1] JMP 0x00105dfc LAB_00105dfa: XOR EBX,EBX LAB_00105dfc: SHL R9D,0x8 OR R9D,EBX DEC R11D JNZ 0x00105deb LAB_00105e08: TEST R10B,R10B JZ 0x00105e30 XOR ECX,ECX MOV R10D,R8D LAB_00105e12: CMP EDX,ESI JGE 0x00105e22 MOVSXD R11,EDX INC EDX MOVZX R11D,byte ptr [RDI + R11*0x1] JMP 0x00105e25 LAB_00105e22: XOR R11D,R11D LAB_00105e25: SHL ECX,0x8 OR ECX,R11D DEC R10D JNZ 0x00105e12 LAB_00105e30: INC EAX IMUL EAX,R8D LEA R8D,[RAX + R9*0x1] ADD R8D,0x2 SUB ECX,R9D MOV EAX,ECX OR EAX,R8D JS 0x00105e6a XOR EAX,EAX SUB ESI,R8D JL 0x00105e6c MOV EDX,0x0 CMP ESI,ECX JL 0x00105e6e MOV EAX,R8D ADD RDI,RAX SHL RCX,0x20 MOV RAX,RDI MOV RDX,RCX JMP 0x00105e6e LAB_00105e6a: XOR EAX,EAX LAB_00105e6c: XOR EDX,EDX LAB_00105e6e: POP RBX RET LAB_00105e70: LEA RDI,[0x1234e4] LEA RSI,[0x123478] LEA RCX,[0x1234fc] MOV EDX,0x47d CALL 0x001030b0 LAB_00105e8f: LEA RDI,[0x12356f] LEA RSI,[0x123478] LEA RCX,[0x123583] MOV EDX,0x4f2 CALL 0x001030b0 LAB_00105eae: LEA RDI,[0x123524] LEA RSI,[0x123478] LEA RCX,[0x123583] MOV EDX,0x4f3 CALL 0x001030b0
int1 [16] stbtt__cff_index_get(long param_1,long param_2,int param_3) { uint uVar1; int iVar2; uint uVar3; uint uVar4; long lVar5; uint uVar6; int iVar7; uint uVar8; long lVar9; byte bVar10; uint uVar11; uint uVar12; int1 auVar13 [16]; if (param_2 < 0) { LAB_00105e70: /* WARNING: Subroutine does not return */ __assert_fail("!(o > b->size || o < 0)", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h" ,0x47d,"void stbtt__buf_seek(stbtt__buf *, int)"); } iVar2 = 0; iVar7 = 2; uVar1 = 0; do { uVar6 = (uint)((ulong)param_2 >> 0x20); if (iVar2 < (int)uVar6) { lVar9 = (long)iVar2; iVar2 = iVar2 + 1; uVar4 = (uint)*(byte *)(param_1 + lVar9); } else { uVar4 = 0; } uVar1 = uVar1 << 8 | uVar4; iVar7 = iVar7 + -1; } while (iVar7 != 0); if (iVar2 < (int)uVar6) { lVar9 = (long)iVar2; iVar2 = iVar2 + 1; bVar10 = *(byte *)(param_1 + lVar9); } else { bVar10 = 0; } if ((param_3 < 0) || ((int)uVar1 <= param_3)) { /* WARNING: Subroutine does not return */ __assert_fail("i >= 0 && i < count", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h" ,0x4f2,"stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); } if (3 < (byte)(bVar10 - 1)) { /* WARNING: Subroutine does not return */ __assert_fail("offsize >= 1 && offsize <= 4", "/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h" ,0x4f3,"stbtt__buf stbtt__cff_index_get(stbtt__buf, int)"); } uVar11 = (uint)bVar10; uVar4 = param_3 * uVar11 + iVar2; if (uVar6 < uVar4) goto LAB_00105e70; uVar3 = 0; uVar8 = 0; if (bVar10 != 0) { do { if ((int)uVar4 < (int)uVar6) { lVar9 = (long)(int)uVar4; uVar4 = uVar4 + 1; uVar12 = (uint)*(byte *)(param_1 + lVar9); } else { uVar12 = 0; } uVar8 = uVar8 << 8 | uVar12; uVar11 = uVar11 - 1; } while (uVar11 != 0); } if (bVar10 != 0) { uVar3 = 0; uVar11 = (uint)bVar10; do { if ((int)uVar4 < (int)uVar6) { lVar9 = (long)(int)uVar4; uVar4 = uVar4 + 1; uVar12 = (uint)*(byte *)(param_1 + lVar9); } else { uVar12 = 0; } uVar3 = uVar3 << 8 | uVar12; uVar11 = uVar11 - 1; } while (uVar11 != 0); } uVar1 = (uVar1 + 1) * (uint)bVar10 + uVar8 + 2; uVar3 = uVar3 - uVar8; if (-1 < (int)(uVar3 | uVar1)) { lVar9 = 0; if ((int)uVar1 <= (int)uVar6) { lVar5 = 0; if ((int)uVar3 <= (int)(uVar6 - uVar1)) { lVar9 = param_1 + (ulong)uVar1; lVar5 = (ulong)uVar3 << 0x20; } goto LAB_00105e6e; } } lVar9 = 0; lVar5 = 0; LAB_00105e6e: auVar13._8_8_ = lVar5; auVar13._0_8_ = lVar9; return auVar13; }
33,352
init_partitioned_key_cache
eloqsql/mysys/mf_keycache.c
static int init_partitioned_key_cache(PARTITIONED_KEY_CACHE_CB *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold, uint changed_blocks_hash_size) { int i; size_t mem_per_cache; size_t mem_decr; int cnt; SIMPLE_KEY_CACHE_CB *partition; SIMPLE_KEY_CACHE_CB **partition_ptr; uint partitions= keycache->partitions; int blocks= 0; DBUG_ENTER("partitioned_init_key_cache"); keycache->key_cache_block_size = key_cache_block_size; if (keycache->key_cache_inited) partition_ptr= keycache->partition_array; else { if(!(partition_ptr= (SIMPLE_KEY_CACHE_CB **) my_malloc(key_memory_KEY_CACHE, sizeof(SIMPLE_KEY_CACHE_CB *) * partitions, MYF(MY_WME)))) DBUG_RETURN(-1); bzero(partition_ptr, sizeof(SIMPLE_KEY_CACHE_CB *) * partitions); keycache->partition_array= partition_ptr; } mem_per_cache = use_mem / partitions; mem_decr= mem_per_cache / 5; for (i= 0; i < (int) partitions; i++) { my_bool key_cache_inited= keycache->key_cache_inited; if (key_cache_inited) partition= *partition_ptr; else { if (!(partition= (SIMPLE_KEY_CACHE_CB *) my_malloc(key_memory_KEY_CACHE, sizeof(SIMPLE_KEY_CACHE_CB), MYF(MY_WME)))) continue; partition->key_cache_inited= 0; } cnt= init_simple_key_cache(partition, key_cache_block_size, mem_per_cache, division_limit, age_threshold, changed_blocks_hash_size); if (cnt <= 0) { end_simple_key_cache(partition, 1); if (!key_cache_inited) { my_free(partition); partition= 0; } if ((i == 0 && cnt < 0) || i > 0) { /* Here we have two cases: 1. i == 0 and cnt < 0 cnt < 0 => mem_per_cache is not big enough to allocate minimal number of key blocks in the key cache of the partition. Decrease the the number of the partitions by 1 and start again. 2. i > 0 There is not enough memory for one of the succeeding partitions. Just skip this partition decreasing the number of partitions in the key cache by one. Do not change the value of mem_per_cache in both cases. */ if (key_cache_inited) { my_free(partition); partition= 0; if(key_cache_inited) memmove(partition_ptr, partition_ptr+1, sizeof(partition_ptr)*(partitions-i-1)); } if (!--partitions) break; } else { /* We come here when i == 0 && cnt == 0. cnt == 0 => the memory allocator fails to allocate a block of memory of the size mem_per_cache. Decrease the value of mem_per_cache without changing the current number of partitions and start again. Make sure that such a decrease may happen not more than 5 times in total. */ if (use_mem <= mem_decr) break; use_mem-= mem_decr; } i--; mem_per_cache= use_mem/partitions; continue; } else { blocks+= cnt; *partition_ptr++= partition; } } keycache->partitions= partitions= (uint) (partition_ptr-keycache->partition_array); keycache->key_cache_mem_size= mem_per_cache * partitions; for (i= 0; i < (int) partitions; i++) keycache->partition_array[i]->hash_factor= partitions; keycache->key_cache_inited= 1; if (!partitions) blocks= -1; DBUG_RETURN(blocks); }
O0
c
init_partitioned_key_cache: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movl %r8d, -0x28(%rbp) movl %r9d, -0x2c(%rbp) movq -0x10(%rbp), %rax movl 0x1c(%rax), %eax movl %eax, -0x5c(%rbp) movl $0x0, -0x60(%rbp) movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x18(%rax) movq -0x10(%rbp), %rax cmpb $0x0, (%rax) je 0xe7cd0 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x58(%rbp) jmp 0xe7d24 leaq 0xb9b5e1(%rip), %rax # 0xc832b8 movl (%rax), %edi movl -0x5c(%rbp), %eax movl %eax, %esi shlq $0x3, %rsi movl $0x10, %edx callq 0xf3860 movq %rax, -0x58(%rbp) cmpq $0x0, %rax jne 0xe7d04 jmp 0xe7cf8 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xe7f3b movq -0x58(%rbp), %rdi movl -0x5c(%rbp), %eax movl %eax, %edx shlq $0x3, %rdx xorl %esi, %esi callq 0x2a2c0 movq -0x58(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x20(%rbp), %rax movl -0x5c(%rbp), %ecx xorl %edx, %edx divq %rcx movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x5, %ecx xorl %edx, %edx divq %rcx movq %rax, -0x40(%rbp) movl $0x0, -0x30(%rbp) movl -0x30(%rbp), %eax cmpl -0x5c(%rbp), %eax jge 0xe7eba movq -0x10(%rbp), %rax movb (%rax), %al movb %al, -0x61(%rbp) cmpb $0x0, -0x61(%rbp) je 0xe7d75 movq -0x58(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) jmp 0xe7da3 leaq 0xb9b53c(%rip), %rax # 0xc832b8 movl (%rax), %edi movl $0x170, %esi # imm = 0x170 movl $0x10, %edx callq 0xf3860 movq %rax, -0x50(%rbp) cmpq $0x0, %rax jne 0xe7d9c jmp 0xe7eac movq -0x50(%rbp), %rax movb $0x0, (%rax) movq -0x50(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x38(%rbp), %rdx movl -0x24(%rbp), %ecx movl -0x28(%rbp), %r8d movl -0x2c(%rbp), %r9d callq 0xe5a00 movl %eax, -0x44(%rbp) cmpl $0x0, -0x44(%rbp) jg 0xe7e8b movq -0x50(%rbp), %rdi movl $0x1, %esi callq 0xe6b20 cmpb $0x0, -0x61(%rbp) jne 0xe7df0 movq -0x50(%rbp), %rdi callq 0xf3be0 movq $0x0, -0x50(%rbp) cmpl $0x0, -0x30(%rbp) jne 0xe7dfc cmpl $0x0, -0x44(%rbp) jl 0xe7e02 cmpl $0x0, -0x30(%rbp) jle 0xe7e55 cmpb $0x0, -0x61(%rbp) je 0xe7e43 movq -0x50(%rbp), %rdi callq 0xf3be0 movq $0x0, -0x50(%rbp) cmpb $0x0, -0x61(%rbp) je 0xe7e41 movq -0x58(%rbp), %rdi movq -0x58(%rbp), %rsi addq $0x8, %rsi movl -0x5c(%rbp), %eax subl -0x30(%rbp), %eax subl $0x1, %eax movl %eax, %eax movl %eax, %edx shlq $0x3, %rdx callq 0x2a130 jmp 0xe7e43 movl -0x5c(%rbp), %eax addl $-0x1, %eax movl %eax, -0x5c(%rbp) cmpl $0x0, %eax jne 0xe7e53 jmp 0xe7eba jmp 0xe7e70 movq -0x20(%rbp), %rax cmpq -0x40(%rbp), %rax ja 0xe7e61 jmp 0xe7eba movq -0x40(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movl -0x30(%rbp), %eax addl $-0x1, %eax movl %eax, -0x30(%rbp) movq -0x20(%rbp), %rax movl -0x5c(%rbp), %ecx xorl %edx, %edx divq %rcx movq %rax, -0x38(%rbp) jmp 0xe7eac movl -0x44(%rbp), %eax addl -0x60(%rbp), %eax movl %eax, -0x60(%rbp) movq -0x50(%rbp), %rcx movq -0x58(%rbp), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, -0x58(%rbp) movq %rcx, (%rax) jmp 0xe7eac movl -0x30(%rbp), %eax addl $0x1, %eax movl %eax, -0x30(%rbp) jmp 0xe7d4d movq -0x58(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx subq %rcx, %rax sarq $0x3, %rax movl %eax, %ecx movl %ecx, -0x5c(%rbp) movq -0x10(%rbp), %rax movl %ecx, 0x1c(%rax) movq -0x38(%rbp), %rcx movl -0x5c(%rbp), %eax imulq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movl $0x0, -0x30(%rbp) movl -0x30(%rbp), %eax cmpl -0x5c(%rbp), %eax jge 0xe7f1f movl -0x5c(%rbp), %ecx movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movslq -0x30(%rbp), %rdx movq (%rax,%rdx,8), %rax movl %ecx, 0x164(%rax) movl -0x30(%rbp), %eax addl $0x1, %eax movl %eax, -0x30(%rbp) jmp 0xe7ef3 movq -0x10(%rbp), %rax movb $0x1, (%rax) cmpl $0x0, -0x5c(%rbp) jne 0xe7f33 movl $0xffffffff, -0x60(%rbp) # imm = 0xFFFFFFFF jmp 0xe7f35 movl -0x60(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
init_partitioned_key_cache: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_28], r8d mov [rbp+var_2C], r9d mov rax, [rbp+var_10] mov eax, [rax+1Ch] mov [rbp+var_5C], eax mov [rbp+var_60], 0 mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+18h], ecx mov rax, [rbp+var_10] cmp byte ptr [rax], 0 jz short loc_E7CD0 mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_58], rax jmp short loc_E7D24 loc_E7CD0: lea rax, key_memory_KEY_CACHE mov edi, [rax] mov eax, [rbp+var_5C] mov esi, eax shl rsi, 3 mov edx, 10h call my_malloc mov [rbp+var_58], rax cmp rax, 0 jnz short loc_E7D04 jmp short $+2 loc_E7CF8: mov [rbp+var_4], 0FFFFFFFFh jmp loc_E7F3B loc_E7D04: mov rdi, [rbp+var_58] mov eax, [rbp+var_5C] mov edx, eax shl rdx, 3 xor esi, esi call _memset mov rcx, [rbp+var_58] mov rax, [rbp+var_10] mov [rax+8], rcx loc_E7D24: mov rax, [rbp+var_20] mov ecx, [rbp+var_5C] xor edx, edx div rcx mov [rbp+var_38], rax mov rax, [rbp+var_38] mov ecx, 5 xor edx, edx div rcx mov [rbp+var_40], rax mov [rbp+var_30], 0 loc_E7D4D: mov eax, [rbp+var_30] cmp eax, [rbp+var_5C] jge loc_E7EBA mov rax, [rbp+var_10] mov al, [rax] mov [rbp+var_61], al cmp [rbp+var_61], 0 jz short loc_E7D75 mov rax, [rbp+var_58] mov rax, [rax] mov [rbp+var_50], rax jmp short loc_E7DA3 loc_E7D75: lea rax, key_memory_KEY_CACHE mov edi, [rax] mov esi, 170h mov edx, 10h call my_malloc mov [rbp+var_50], rax cmp rax, 0 jnz short loc_E7D9C jmp loc_E7EAC loc_E7D9C: mov rax, [rbp+var_50] mov byte ptr [rax], 0 loc_E7DA3: mov rdi, [rbp+var_50] mov esi, [rbp+var_14] mov rdx, [rbp+var_38] mov ecx, [rbp+var_24] mov r8d, [rbp+var_28] mov r9d, [rbp+var_2C] call init_simple_key_cache mov [rbp+var_44], eax cmp [rbp+var_44], 0 jg loc_E7E8B mov rdi, [rbp+var_50] mov esi, 1 call end_simple_key_cache cmp [rbp+var_61], 0 jnz short loc_E7DF0 mov rdi, [rbp+var_50] call my_free mov [rbp+var_50], 0 loc_E7DF0: cmp [rbp+var_30], 0 jnz short loc_E7DFC cmp [rbp+var_44], 0 jl short loc_E7E02 loc_E7DFC: cmp [rbp+var_30], 0 jle short loc_E7E55 loc_E7E02: cmp [rbp+var_61], 0 jz short loc_E7E43 mov rdi, [rbp+var_50] call my_free mov [rbp+var_50], 0 cmp [rbp+var_61], 0 jz short loc_E7E41 mov rdi, [rbp+var_58] mov rsi, [rbp+var_58] add rsi, 8 mov eax, [rbp+var_5C] sub eax, [rbp+var_30] sub eax, 1 mov eax, eax mov edx, eax shl rdx, 3 call _memmove loc_E7E41: jmp short $+2 loc_E7E43: mov eax, [rbp+var_5C] add eax, 0FFFFFFFFh mov [rbp+var_5C], eax cmp eax, 0 jnz short loc_E7E53 jmp short loc_E7EBA loc_E7E53: jmp short loc_E7E70 loc_E7E55: mov rax, [rbp+var_20] cmp rax, [rbp+var_40] ja short loc_E7E61 jmp short loc_E7EBA loc_E7E61: mov rcx, [rbp+var_40] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax loc_E7E70: mov eax, [rbp+var_30] add eax, 0FFFFFFFFh mov [rbp+var_30], eax mov rax, [rbp+var_20] mov ecx, [rbp+var_5C] xor edx, edx div rcx mov [rbp+var_38], rax jmp short loc_E7EAC loc_E7E8B: mov eax, [rbp+var_44] add eax, [rbp+var_60] mov [rbp+var_60], eax mov rcx, [rbp+var_50] mov rax, [rbp+var_58] mov rdx, rax add rdx, 8 mov [rbp+var_58], rdx mov [rax], rcx jmp short $+2 loc_E7EAC: mov eax, [rbp+var_30] add eax, 1 mov [rbp+var_30], eax jmp loc_E7D4D loc_E7EBA: mov rax, [rbp+var_58] mov rcx, [rbp+var_10] mov rcx, [rcx+8] sub rax, rcx sar rax, 3 mov ecx, eax mov [rbp+var_5C], ecx mov rax, [rbp+var_10] mov [rax+1Ch], ecx mov rcx, [rbp+var_38] mov eax, [rbp+var_5C] imul rcx, rax mov rax, [rbp+var_10] mov [rax+10h], rcx mov [rbp+var_30], 0 loc_E7EF3: mov eax, [rbp+var_30] cmp eax, [rbp+var_5C] jge short loc_E7F1F mov ecx, [rbp+var_5C] mov rax, [rbp+var_10] mov rax, [rax+8] movsxd rdx, [rbp+var_30] mov rax, [rax+rdx*8] mov [rax+164h], ecx mov eax, [rbp+var_30] add eax, 1 mov [rbp+var_30], eax jmp short loc_E7EF3 loc_E7F1F: mov rax, [rbp+var_10] mov byte ptr [rax], 1 cmp [rbp+var_5C], 0 jnz short loc_E7F33 mov [rbp+var_60], 0FFFFFFFFh loc_E7F33: jmp short $+2 loc_E7F35: mov eax, [rbp+var_60] mov [rbp+var_4], eax loc_E7F3B: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
long long init_partitioned_key_cache( char *a1, unsigned int a2, unsigned long long a3, unsigned int a4, unsigned int a5, unsigned int a6) { int inited; // eax long long *v7; // rax char v9; // [rsp+Fh] [rbp-61h] unsigned int v10; // [rsp+10h] [rbp-60h] unsigned int v11; // [rsp+14h] [rbp-5Ch] unsigned int v12; // [rsp+14h] [rbp-5Ch] long long *v13; // [rsp+18h] [rbp-58h] _BYTE *v14; // [rsp+20h] [rbp-50h] int v15; // [rsp+2Ch] [rbp-44h] unsigned long long v16; // [rsp+30h] [rbp-40h] unsigned long long v17; // [rsp+38h] [rbp-38h] int i; // [rsp+40h] [rbp-30h] int j; // [rsp+40h] [rbp-30h] v11 = *((_DWORD *)a1 + 7); v10 = 0; *((_DWORD *)a1 + 6) = a2; if ( *a1 ) { v13 = (long long *)*((_QWORD *)a1 + 1); } else { v13 = (long long *)my_malloc(key_memory_KEY_CACHE, 8LL * v11, 16LL); if ( !v13 ) return (unsigned int)-1; memset(v13, 0LL, 8LL * v11); *((_QWORD *)a1 + 1) = v13; } v17 = a3 / v11; v16 = v17 / 5; for ( i = 0; i < (int)v11; ++i ) { v9 = *a1; if ( *a1 ) { v14 = (_BYTE *)*v13; inited = init_simple_key_cache(*v13, a2, v17, a4, a5, a6); } else { v14 = (_BYTE *)my_malloc(key_memory_KEY_CACHE, 368LL, 16LL); if ( !v14 ) continue; *v14 = 0; inited = init_simple_key_cache((long long)v14, a2, v17, a4, a5, a6); } v15 = inited; if ( inited > 0 ) { v10 += inited; v7 = v13++; *v7 = (long long)v14; } else { end_simple_key_cache((long long)v14, 1); if ( !v9 ) { my_free(v14); v14 = 0LL; } if ( (i || v15 >= 0) && i <= 0 ) { if ( a3 <= v16 ) break; a3 -= v16; } else { if ( v9 ) { my_free(v14); memmove(v13, v13 + 1, 8LL * (v11 - i - 1)); } if ( !--v11 ) break; } --i; v17 = a3 / v11; } } v12 = ((long long)v13 - *((_QWORD *)a1 + 1)) >> 3; *((_DWORD *)a1 + 7) = v12; *((_QWORD *)a1 + 2) = v12 * v17; for ( j = 0; j < (int)v12; ++j ) *(_DWORD *)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL * j) + 356LL) = v12; *a1 = 1; if ( !v12 ) return (unsigned int)-1; return v10; }
init_partitioned_key_cache: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV dword ptr [RBP + -0x28],R8D MOV dword ptr [RBP + -0x2c],R9D MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x1c] MOV dword ptr [RBP + -0x5c],EAX MOV dword ptr [RBP + -0x60],0x0 MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x18],ECX MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX],0x0 JZ 0x001e7cd0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x58],RAX JMP 0x001e7d24 LAB_001e7cd0: LEA RAX,[0xd832b8] MOV EDI,dword ptr [RAX] MOV EAX,dword ptr [RBP + -0x5c] MOV ESI,EAX SHL RSI,0x3 MOV EDX,0x10 CALL 0x001f3860 MOV qword ptr [RBP + -0x58],RAX CMP RAX,0x0 JNZ 0x001e7d04 JMP 0x001e7cf8 LAB_001e7cf8: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001e7f3b LAB_001e7d04: MOV RDI,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RBP + -0x5c] MOV EDX,EAX SHL RDX,0x3 XOR ESI,ESI CALL 0x0012a2c0 MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX LAB_001e7d24: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x5c] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,0x5 XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x40],RAX MOV dword ptr [RBP + -0x30],0x0 LAB_001e7d4d: MOV EAX,dword ptr [RBP + -0x30] CMP EAX,dword ptr [RBP + -0x5c] JGE 0x001e7eba MOV RAX,qword ptr [RBP + -0x10] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x61],AL CMP byte ptr [RBP + -0x61],0x0 JZ 0x001e7d75 MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX JMP 0x001e7da3 LAB_001e7d75: LEA RAX,[0xd832b8] MOV EDI,dword ptr [RAX] MOV ESI,0x170 MOV EDX,0x10 CALL 0x001f3860 MOV qword ptr [RBP + -0x50],RAX CMP RAX,0x0 JNZ 0x001e7d9c JMP 0x001e7eac LAB_001e7d9c: MOV RAX,qword ptr [RBP + -0x50] MOV byte ptr [RAX],0x0 LAB_001e7da3: MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x24] MOV R8D,dword ptr [RBP + -0x28] MOV R9D,dword ptr [RBP + -0x2c] CALL 0x001e5a00 MOV dword ptr [RBP + -0x44],EAX CMP dword ptr [RBP + -0x44],0x0 JG 0x001e7e8b MOV RDI,qword ptr [RBP + -0x50] MOV ESI,0x1 CALL 0x001e6b20 CMP byte ptr [RBP + -0x61],0x0 JNZ 0x001e7df0 MOV RDI,qword ptr [RBP + -0x50] CALL 0x001f3be0 MOV qword ptr [RBP + -0x50],0x0 LAB_001e7df0: CMP dword ptr [RBP + -0x30],0x0 JNZ 0x001e7dfc CMP dword ptr [RBP + -0x44],0x0 JL 0x001e7e02 LAB_001e7dfc: CMP dword ptr [RBP + -0x30],0x0 JLE 0x001e7e55 LAB_001e7e02: CMP byte ptr [RBP + -0x61],0x0 JZ 0x001e7e43 MOV RDI,qword ptr [RBP + -0x50] CALL 0x001f3be0 MOV qword ptr [RBP + -0x50],0x0 CMP byte ptr [RBP + -0x61],0x0 JZ 0x001e7e41 MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x58] ADD RSI,0x8 MOV EAX,dword ptr [RBP + -0x5c] SUB EAX,dword ptr [RBP + -0x30] SUB EAX,0x1 MOV EAX,EAX MOV EDX,EAX SHL RDX,0x3 CALL 0x0012a130 LAB_001e7e41: JMP 0x001e7e43 LAB_001e7e43: MOV EAX,dword ptr [RBP + -0x5c] ADD EAX,-0x1 MOV dword ptr [RBP + -0x5c],EAX CMP EAX,0x0 JNZ 0x001e7e53 JMP 0x001e7eba LAB_001e7e53: JMP 0x001e7e70 LAB_001e7e55: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x40] JA 0x001e7e61 JMP 0x001e7eba LAB_001e7e61: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX LAB_001e7e70: MOV EAX,dword ptr [RBP + -0x30] ADD EAX,-0x1 MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x5c] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x38],RAX JMP 0x001e7eac LAB_001e7e8b: MOV EAX,dword ptr [RBP + -0x44] ADD EAX,dword ptr [RBP + -0x60] MOV dword ptr [RBP + -0x60],EAX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x58] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RBP + -0x58],RDX MOV qword ptr [RAX],RCX JMP 0x001e7eac LAB_001e7eac: MOV EAX,dword ptr [RBP + -0x30] ADD EAX,0x1 MOV dword ptr [RBP + -0x30],EAX JMP 0x001e7d4d LAB_001e7eba: MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] SUB RAX,RCX SAR RAX,0x3 MOV ECX,EAX MOV dword ptr [RBP + -0x5c],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x1c],ECX MOV RCX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x5c] IMUL RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX MOV dword ptr [RBP + -0x30],0x0 LAB_001e7ef3: MOV EAX,dword ptr [RBP + -0x30] CMP EAX,dword ptr [RBP + -0x5c] JGE 0x001e7f1f MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOVSXD RDX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + RDX*0x8] MOV dword ptr [RAX + 0x164],ECX MOV EAX,dword ptr [RBP + -0x30] ADD EAX,0x1 MOV dword ptr [RBP + -0x30],EAX JMP 0x001e7ef3 LAB_001e7f1f: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x1 CMP dword ptr [RBP + -0x5c],0x0 JNZ 0x001e7f33 MOV dword ptr [RBP + -0x60],0xffffffff LAB_001e7f33: JMP 0x001e7f35 LAB_001e7f35: MOV EAX,dword ptr [RBP + -0x60] MOV dword ptr [RBP + -0x4],EAX LAB_001e7f3b: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x70 POP RBP RET
int init_partitioned_key_cache (char *param_1,int4 param_2,ulong param_3,int4 param_4,int4 param_5, int4 param_6) { char cVar1; int iVar2; ulong uVar3; int local_68; uint local_64; int8 *local_60; int1 *local_58; ulong local_40; int local_38; ulong local_28; local_64 = *(uint *)(param_1 + 0x1c); local_68 = 0; *(int4 *)(param_1 + 0x18) = param_2; if (*param_1 == '\0') { local_60 = (int8 *)my_malloc(key_memory_KEY_CACHE,(ulong)local_64 << 3,0x10); if (local_60 == (int8 *)0x0) { return -1; } memset(local_60,0,(ulong)local_64 << 3); *(int8 **)(param_1 + 8) = local_60; } else { local_60 = *(int8 **)(param_1 + 8); } local_40 = param_3 / local_64; uVar3 = local_40 / 5; local_28 = param_3; for (local_38 = 0; local_38 < (int)local_64; local_38 = local_38 + 1) { cVar1 = *param_1; if (cVar1 == '\0') { local_58 = (int1 *)my_malloc(key_memory_KEY_CACHE,0x170,0x10); if (local_58 != (int1 *)0x0) { *local_58 = 0; goto LAB_001e7da3; } } else { local_58 = (int1 *)*local_60; LAB_001e7da3: iVar2 = init_simple_key_cache(local_58,param_2,local_40,param_4,param_5,param_6); if (iVar2 < 1) { end_simple_key_cache(local_58,1); if (cVar1 == '\0') { my_free(local_58); local_58 = (int1 *)0x0; } if (((local_38 == 0) && (iVar2 < 0)) || (0 < local_38)) { if ((cVar1 != '\0') && (my_free(local_58), cVar1 != '\0')) { memmove(local_60,local_60 + 1,(ulong)((local_64 - local_38) - 1) << 3); } local_64 = local_64 - 1; if (local_64 == 0) break; } else { if (local_28 <= uVar3) break; local_28 = local_28 - uVar3; } local_38 = local_38 + -1; local_40 = local_28 / local_64; } else { local_68 = iVar2 + local_68; *local_60 = local_58; local_60 = local_60 + 1; } } } uVar3 = (long)local_60 - *(long *)(param_1 + 8) >> 3; iVar2 = (int)uVar3; *(int *)(param_1 + 0x1c) = iVar2; *(ulong *)(param_1 + 0x10) = local_40 * (uVar3 & 0xffffffff); for (local_38 = 0; local_38 < iVar2; local_38 = local_38 + 1) { *(int *)(*(long *)(*(long *)(param_1 + 8) + (long)local_38 * 8) + 0x164) = iVar2; } *param_1 = '\x01'; if (iVar2 == 0) { local_68 = -1; } return local_68; }
33,353
year_from_days
bluesky950520[P]quickjs/quickjs.c
static int64_t year_from_days(int64_t *days) { int64_t y, d1, nd, d = *days; y = floor_div_int64(d * 10000, 3652425) + 1970; /* the initial approximation is very good, so only a few iterations are necessary */ for(;;) { d1 = d - days_from_year(y); if (d1 < 0) { y--; d1 += days_in_year(y); } else { nd = days_in_year(y); if (d1 < nd) break; d1 -= nd; y++; } } *days = d1; return y; }
O0
c
year_from_days: subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rax movq %rax, 0x10(%rsp) imulq $0x2710, 0x10(%rsp), %rdi # imm = 0x2710 movl $0x37bb49, %esi # imm = 0x37BB49 callq 0x9f540 addq $0x7b2, %rax # imm = 0x7B2 movq %rax, 0x28(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x28(%rsp), %rdi callq 0x9f590 movq %rax, %rcx movq 0x8(%rsp), %rax subq %rcx, %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) jge 0x9f464 movq 0x28(%rsp), %rax addq $-0x1, %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rdi callq 0x9f4c0 addq 0x20(%rsp), %rax movq %rax, 0x20(%rsp) jmp 0x9f4a1 movq 0x28(%rsp), %rdi callq 0x9f4c0 movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rax cmpq 0x18(%rsp), %rax jge 0x9f481 jmp 0x9f4a6 movq 0x18(%rsp), %rcx movq 0x20(%rsp), %rax subq %rcx, %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) jmp 0x9f414 movq 0x20(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) movq 0x28(%rsp), %rax addq $0x38, %rsp retq nopl (%rax)
year_from_days: sub rsp, 38h mov [rsp+38h+var_8], rdi mov rax, [rsp+38h+var_8] mov rax, [rax] mov [rsp+38h+var_28], rax imul rdi, [rsp+38h+var_28], 2710h mov esi, 37BB49h call floor_div_int64 add rax, 7B2h mov [rsp+38h+var_10], rax loc_9F414: mov rax, [rsp+38h+var_28] mov [rsp+38h+var_30], rax mov rdi, [rsp+38h+var_10] call days_from_year mov rcx, rax mov rax, [rsp+38h+var_30] sub rax, rcx mov [rsp+38h+var_18], rax cmp [rsp+38h+var_18], 0 jge short loc_9F464 mov rax, [rsp+38h+var_10] add rax, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_10], rax mov rdi, [rsp+38h+var_10] call days_in_year add rax, [rsp+38h+var_18] mov [rsp+38h+var_18], rax jmp short loc_9F4A1 loc_9F464: mov rdi, [rsp+38h+var_10] call days_in_year mov [rsp+38h+var_20], rax mov rax, [rsp+38h+var_18] cmp rax, [rsp+38h+var_20] jge short loc_9F481 jmp short loc_9F4A6 loc_9F481: mov rcx, [rsp+38h+var_20] mov rax, [rsp+38h+var_18] sub rax, rcx mov [rsp+38h+var_18], rax mov rax, [rsp+38h+var_10] add rax, 1 mov [rsp+38h+var_10], rax loc_9F4A1: jmp loc_9F414 loc_9F4A6: mov rcx, [rsp+38h+var_18] mov rax, [rsp+38h+var_8] mov [rax], rcx mov rax, [rsp+38h+var_10] add rsp, 38h retn
long long year_from_days(long long *a1) { long long v2; // [rsp+10h] [rbp-28h] long long v3; // [rsp+20h] [rbp-18h] long long i; // [rsp+28h] [rbp-10h] v2 = *a1; for ( i = floor_div_int64(10000 * *a1, 3652425LL) + 1970; ; ++i ) { while ( 1 ) { v3 = v2 - days_from_year(i); if ( v3 >= 0 ) break; days_in_year(--i); } if ( v3 < days_in_year(i) ) break; } *a1 = v3; return i; }
year_from_days: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x10],RAX IMUL RDI,qword ptr [RSP + 0x10],0x2710 MOV ESI,0x37bb49 CALL 0x0019f540 ADD RAX,0x7b2 MOV qword ptr [RSP + 0x28],RAX LAB_0019f414: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x28] CALL 0x0019f590 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] SUB RAX,RCX MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 JGE 0x0019f464 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,-0x1 MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x28] CALL 0x0019f4c0 ADD RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x20],RAX JMP 0x0019f4a1 LAB_0019f464: MOV RDI,qword ptr [RSP + 0x28] CALL 0x0019f4c0 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x20] CMP RAX,qword ptr [RSP + 0x18] JGE 0x0019f481 JMP 0x0019f4a6 LAB_0019f481: MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x20] SUB RAX,RCX MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX LAB_0019f4a1: JMP 0x0019f414 LAB_0019f4a6: MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0x28] ADD RSP,0x38 RET
long year_from_days(long *param_1) { long lVar1; long lVar2; long lVar3; int8 local_10; lVar1 = *param_1; local_10 = floor_div_int64(lVar1 * 10000,0x37bb49); local_10 = local_10 + 0x7b2; while( true ) { while( true ) { lVar2 = days_from_year(local_10); lVar2 = lVar1 - lVar2; if (-1 < lVar2) break; local_10 = local_10 + -1; days_in_year(local_10); } lVar3 = days_in_year(local_10); if (lVar2 < lVar3) break; local_10 = local_10 + 1; } *param_1 = lVar2; return local_10; }
33,354
my_wc_mb_tis620
eloqsql/strings/ctype-tis620.c
static int my_wc_mb_tis620(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *str, uchar *end __attribute__((unused))) { const uchar *pl; if (str >= end) return MY_CS_TOOSMALL; pl= uni_to_cs[(wc>>8) & 0xFF]; str[0]= pl ? pl[wc & 0xFF] : '\0'; return (!str[0] && wc) ? MY_CS_ILUNI : 1; }
O3
c
my_wc_mb_tis620: movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0xb776e pushq %rbp movq %rsp, %rbp pushq %rbx movq %rsi, %rbx movzbl %bh, %eax leaq 0x2c76c9(%rip), %rcx # 0x37ee10 movq (%rcx,%rax,8), %rax testq %rax, %rax je 0xb7758 movzbl %bl, %ecx movb (%rax,%rcx), %al jmp 0xb775a xorl %eax, %eax movb %al, (%rdx) testb %al, %al setne %al testq %rbx, %rbx sete %cl orb %al, %cl movzbl %cl, %eax popq %rbx popq %rbp retq
my_wc_mb_tis620: mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_B776E push rbp mov rbp, rsp push rbx mov rbx, rsi movzx eax, bh lea rcx, uni_to_cs_0 mov rax, [rcx+rax*8] test rax, rax jz short loc_B7758 movzx ecx, bl mov al, [rax+rcx] jmp short loc_B775A loc_B7758: xor eax, eax loc_B775A: mov [rdx], al test al, al setnz al test rbx, rbx setz cl or cl, al movzx eax, cl pop rbx pop rbp locret_B776E: retn
long long my_wc_mb_tis620(long long a1, long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax long long v5; // rax char v6; // al result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = (long long)*(&uni_to_cs_0 + BYTE1(a2)); if ( v5 ) v6 = *(_BYTE *)(v5 + (unsigned __int8)a2); else v6 = 0; *a3 = v6; return (v6 != 0) | (unsigned __int8)(a2 == 0); } return result; }
my_wc_mb_tis620: MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001b776e PUSH RBP MOV RBP,RSP PUSH RBX MOV RBX,RSI MOVZX EAX,BH LEA RCX,[0x47ee10] MOV RAX,qword ptr [RCX + RAX*0x8] TEST RAX,RAX JZ 0x001b7758 MOVZX ECX,BL MOV AL,byte ptr [RAX + RCX*0x1] JMP 0x001b775a LAB_001b7758: XOR EAX,EAX LAB_001b775a: MOV byte ptr [RDX],AL TEST AL,AL SETNZ AL TEST RBX,RBX SETZ CL OR CL,AL MOVZX EAX,CL POP RBX POP RBP LAB_001b776e: RET
ulong my_wc_mb_tis620(int8 param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; ulong uVar2; uVar2 = 0xffffff9b; if (param_3 < param_4) { if (*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) == 0) { cVar1 = '\0'; } else { cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) + (param_2 & 0xff)); } *param_3 = cVar1; uVar2 = (ulong)(param_2 == 0 || cVar1 != '\0'); } return uVar2; }
33,355
MyStartNode::post(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any, 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, std::any>>>&, std::nullptr_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
The-Pocket[P]PocketFlow-CPP/main.cpp
std::optional<std::string> post(Context& ctx, const std::nullptr_t& p, const std::string& e) override { // Return the exec result directly as the action return e; }
O1
cpp
MyStartNode::post(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any, 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, std::any>>>&, std::nullptr_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) movq (%r8), %rsi movq 0x8(%r8), %rdx addq %rsi, %rdx callq 0x84e8 movb $0x1, 0x20(%rbx) movq %rbx, %rax popq %rbx retq nop
_ZN11MyStartNode4postERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anySt4lessIS6_ESaISt4pairIKS6_S7_EEERKDnRSB_: push rbx mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax mov rsi, [r8] mov rdx, [r8+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) mov byte ptr [rbx+20h], 1 mov rax, rbx pop rbx retn
long long MyStartNode::post(long long a1, long long a2, long long a3, long long a4, long long a5) { *(_QWORD *)a1 = a1 + 16; std::string::_M_construct<char *>((_QWORD *)a1, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8)); *(_BYTE *)(a1 + 32) = 1; return a1; }
post: PUSH RBX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] ADD RDX,RSI CALL 0x001084e8 MOV byte ptr [RBX + 0x20],0x1 MOV RAX,RBX POP RBX RET
/* MyStartNode::post(std::map<std::__cxx11::string, std::any, std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, std::any> > >&, decltype(nullptr) const&, std::__cxx11::string const&) */ map * MyStartNode::post(map *param_1,_func_decltype_nullptr **param_2,string *param_3) { long *in_R8; *(map **)param_1 = param_1 + 0x10; std::__cxx11::string::_M_construct<char*>(param_1,*in_R8,in_R8[1] + *in_R8); param_1[0x20] = (map)0x1; return param_1; }
33,356
CLI::Option::Option(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::function<bool (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&)>, CLI::App*)
MikePodsytnik[P]TCRtrie/build_O2/_deps/cli11-src/include/CLI/Option.hpp
Option(std::string option_name, std::string option_description, callback_t callback, App *parent) : description_(std::move(option_description)), parent_(parent), callback_(std::move(callback)) { std::tie(snames_, lnames_, pname_) = detail::get_names(detail::split_names(option_name)); }
O2
cpp
CLI::Option::Option(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::function<bool (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&)>, CLI::App*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movq %r8, %rbp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx callq 0x14c74 leaq 0x98(%rbx), %rax xorps %xmm0, %xmm0 movups %xmm0, 0x78(%rbx) movups %xmm0, 0x68(%rbx) movups %xmm0, 0x58(%rbx) movups %xmm0, 0x48(%rbx) movups %xmm0, 0x38(%rbx) movups %xmm0, 0x28(%rbx) movq %rax, 0x88(%rbx) andq $0x0, 0x90(%rbx) leaq 0x28(%rbx), %rax movq %rax, 0x18(%rsp) xorl %r13d, %r13d movb %r13b, 0x98(%rbx) leaq 0xb8(%rbx), %rax movq %rax, 0xa8(%rbx) andq $0x0, 0xb0(%rbx) leaq 0x40(%rbx), %rax movq %rax, 0x10(%rsp) leaq 0x88(%rbx), %rax movq %rax, 0x8(%rsp) movb %r13b, 0xb8(%rbx) leaq 0xc8(%rbx), %rdi movq %rdi, 0x60(%rsp) movq %r12, %rsi callq 0x7560 leaq 0xf8(%rbx), %rax movq %rax, 0xe8(%rbx) andq $0x0, 0xf0(%rbx) movb %r13b, 0xf8(%rbx) leaq 0x118(%rbx), %rax movq %rax, 0x108(%rbx) andq $0x0, 0x110(%rbx) movb %r13b, 0x118(%rbx) xorps %xmm1, %xmm1 movups %xmm1, 0x128(%rbx) leaq 0x9ae(%rip), %rax # 0x15090 movq %rax, 0x140(%rbx) leaq 0x9b4(%rip), %rax # 0x150a4 movq %rax, 0x138(%rbx) movups %xmm1, 0x148(%rbx) movups %xmm1, 0x158(%rbx) movaps 0x14924(%rip), %xmm0 # 0x29030 movups %xmm0, 0x168(%rbx) leaq 0x198(%rbx), %rax movups %xmm1, 0x178(%rbx) movups %xmm1, 0x188(%rbx) movups %xmm1, 0x198(%rbx) movq %rax, 0x1a8(%rbx) movq %rax, 0x1b0(%rbx) leaq 0x1c8(%rbx), %rax movups %xmm1, 0x1b8(%rbx) movups %xmm1, 0x1c8(%rbx) movq %rax, 0x1d8(%rbx) movq %rax, 0x1e0(%rbx) andq $0x0, 0x1e8(%rbx) movq %rbp, 0x1f0(%rbx) leaq 0x1f8(%rbx), %rbp movq %rbp, %rdi movq %r15, %rsi callq 0x13a7c xorps %xmm0, %xmm0 movups %xmm0, 0x238(%rbx) movups %xmm0, 0x228(%rbx) movups %xmm0, 0x218(%rbx) andq $0x0, 0x247(%rbx) leaq 0x80(%rsp), %rdi movq %r14, %rsi callq 0x75e0 leaq 0x68(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0x13b38 leaq 0xb8(%rsp), %rdi leaq 0x68(%rsp), %rsi callq 0x14c9b leaq 0xa0(%rsp), %rdi movq 0x8(%rsp), %rax movq %rax, (%rdi) movq 0x10(%rsp), %rax movq %rax, 0x8(%rdi) movq 0x18(%rsp), %rax movq %rax, 0x10(%rdi) leaq 0xb8(%rsp), %rbx movq %rbx, %rsi callq 0x15064 movq %rbx, %rdi callq 0x1507a leaq 0x68(%rsp), %rdi callq 0x99ca leaq 0x80(%rsp), %rdi callq 0x7860 addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r13 leaq 0x68(%rsp), %rdi callq 0x99ca jmp 0x1484a movq %rax, %r13 leaq 0x80(%rsp), %rdi callq 0x7860 jmp 0x1485c movq %rax, %r13 leaq 0xa8(%rbx), %rax movq %rax, 0x50(%rsp) leaq 0xe8(%rbx), %rax movq %rax, 0x40(%rsp) leaq 0x108(%rbx), %rax movq %rax, 0x38(%rsp) leaq 0x128(%rbx), %rax movq %rax, 0x30(%rsp) leaq 0x148(%rbx), %rax movq %rax, 0x28(%rsp) leaq 0x178(%rbx), %rax movq %rax, 0x20(%rsp) leaq 0x218(%rbx), %r15 leaq 0x230(%rbx), %rdi leaq 0x1c0(%rbx), %r14 leaq 0x190(%rbx), %r12 leaq 0x70(%rbx), %rax movq %rax, 0x48(%rsp) leaq 0x58(%rbx), %rax movq %rax, 0x58(%rsp) callq 0x99ca movq %r15, %rdi callq 0x99ca movq %rbp, %rdi callq 0x1b754 movq %r14, %rdi callq 0x161d4 movq %r12, %rdi callq 0x161d4 movq 0x20(%rsp), %rdi callq 0x13010 movq 0x28(%rsp), %rdi callq 0x1b754 movq 0x30(%rsp), %rdi callq 0x1b754 movq 0x38(%rsp), %rdi callq 0x7860 movq 0x40(%rsp), %rdi callq 0x7860 movq 0x60(%rsp), %rdi callq 0x7860 movq 0x50(%rsp), %rdi callq 0x7860 movq 0x8(%rsp), %rdi callq 0x7860 movq 0x48(%rsp), %rdi callq 0x99ca movq 0x58(%rsp), %rdi callq 0x13032 movq 0x10(%rsp), %rdi callq 0x99ca movq 0x18(%rsp), %rdi callq 0x99ca movq %rbx, %rdi callq 0x7860 movq %r13, %rdi callq 0x7770 nop
_ZN3CLI6OptionC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_St8functionIFbRKSt6vectorIS6_SaIS6_EEEEPNS_3AppE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 108h mov rbp, r8 mov r15, rcx mov r12, rdx mov r14, rsi mov rbx, rdi call _ZN3CLI10OptionBaseINS_6OptionEEC2Ev; CLI::OptionBase<CLI::Option>::OptionBase(void) lea rax, [rbx+98h] xorps xmm0, xmm0 movups xmmword ptr [rbx+78h], xmm0 movups xmmword ptr [rbx+68h], xmm0 movups xmmword ptr [rbx+58h], xmm0 movups xmmword ptr [rbx+48h], xmm0 movups xmmword ptr [rbx+38h], xmm0 movups xmmword ptr [rbx+28h], xmm0 mov [rbx+88h], rax and qword ptr [rbx+90h], 0 lea rax, [rbx+28h] mov [rsp+138h+var_120], rax xor r13d, r13d mov [rbx+98h], r13b lea rax, [rbx+0B8h] mov [rbx+0A8h], rax and qword ptr [rbx+0B0h], 0 lea rax, [rbx+40h] mov [rsp+138h+var_128], rax lea rax, [rbx+88h] mov [rsp+138h+var_130], rax mov [rbx+0B8h], r13b lea rdi, [rbx+0C8h] mov [rsp+138h+var_D8], rdi mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_; std::string::basic_string(std::string&&) lea rax, [rbx+0F8h] mov [rbx+0E8h], rax and qword ptr [rbx+0F0h], 0 mov [rbx+0F8h], r13b lea rax, [rbx+118h] mov [rbx+108h], rax and qword ptr [rbx+110h], 0 mov [rbx+118h], r13b xorps xmm1, xmm1 movups xmmword ptr [rbx+128h], xmm1 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEN3CLI6Option10type_name_MUlvE_EE9_M_invokeERKSt9_Any_data mov [rbx+140h], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEN3CLI6Option10type_name_MUlvE_EE10_M_managerERSt9_Any_dataRKSC_St18_Manager_operation mov [rbx+138h], rax movups xmmword ptr [rbx+148h], xmm1 movups xmmword ptr [rbx+158h], xmm1 movaps xmm0, cs:xmmword_29030 movups xmmword ptr [rbx+168h], xmm0 lea rax, [rbx+198h] movups xmmword ptr [rbx+178h], xmm1 movups xmmword ptr [rbx+188h], xmm1 movups xmmword ptr [rbx+198h], xmm1 mov [rbx+1A8h], rax mov [rbx+1B0h], rax lea rax, [rbx+1C8h] movups xmmword ptr [rbx+1B8h], xmm1 movups xmmword ptr [rbx+1C8h], xmm1 mov [rbx+1D8h], rax mov [rbx+1E0h], rax and qword ptr [rbx+1E8h], 0 mov [rbx+1F0h], rbp lea rbp, [rbx+1F8h] mov rdi, rbp mov rsi, r15 call _ZNSt8functionIFbRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEEC2EOSC_; std::function<bool ()(std::vector<std::string> const&)>::function(std::function<bool ()(std::vector<std::string> const&)>&&) xorps xmm0, xmm0 movups xmmword ptr [rbx+238h], xmm0 movups xmmword ptr [rbx+228h], xmm0 movups xmmword ptr [rbx+218h], xmm0 and qword ptr [rbx+247h], 0 lea rdi, [rsp+138h+var_B8] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) lea rdi, [rsp+138h+var_D0] lea rsi, [rsp+138h+var_B8] call _ZN3CLI6detail11split_namesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::detail::split_names(std::string) lea rdi, [rsp+138h+var_80] lea rsi, [rsp+138h+var_D0] call _ZN3CLI6detail9get_namesERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE; CLI::detail::get_names(std::vector<std::string> const&) lea rdi, [rsp+138h+var_98] mov rax, [rsp+138h+var_130] mov [rdi], rax mov rax, [rsp+138h+var_128] mov [rdi+8], rax mov rax, [rsp+138h+var_120] mov [rdi+10h], rax lea rbx, [rsp+138h+var_80] mov rsi, rbx call _ZNSt5tupleIJRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EES9_RS6_EEaSIJS8_S8_S6_EEENSt9enable_ifIXcl12__assignableIDpT_EEERSB_E4typeEOS_IJSF_EE; std::tuple<std::vector<std::string> &,std::vector<std::string> &,std::string&>::operator=<std::vector<std::string>,std::vector<std::string>,std::string>(std::tuple&&<std::vector<std::string>,std::vector<std::string>,std::string>) mov rdi, rbx; void * call _ZNSt11_Tuple_implILm0EJSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EES8_S6_EED2Ev; std::_Tuple_impl<0ul,std::vector<std::string>,std::vector<std::string>,std::string>::~_Tuple_impl() lea rdi, [rsp+138h+var_D0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+138h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add rsp, 108h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r13, rax lea rdi, [rsp+arg_60] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_1484A mov r13, rax loc_1484A: lea rdi, [rsp+arg_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_1485C mov r13, rax loc_1485C: lea rax, [rbx+0A8h] mov [rsp+arg_48], rax lea rax, [rbx+0E8h] mov [rsp+arg_38], rax lea rax, [rbx+108h] mov [rsp+arg_30], rax lea rax, [rbx+128h] mov [rsp+arg_28], rax lea rax, [rbx+148h] mov [rsp+arg_20], rax lea rax, [rbx+178h] mov [rsp+arg_18], rax lea r15, [rbx+218h] lea rdi, [rbx+230h] lea r14, [rbx+1C0h] lea r12, [rbx+190h] lea rax, [rbx+70h] mov [rsp+arg_40], rax lea rax, [rbx+58h] mov [rsp+arg_50], rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, rbp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rdi, r14 call _ZNSt8_Rb_treeIPN3CLI6OptionES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev; std::_Rb_tree<CLI::Option *,CLI::Option *,std::_Identity<CLI::Option *>,std::less<CLI::Option *>,std::allocator<CLI::Option *>>::~_Rb_tree() mov rdi, r12 call _ZNSt8_Rb_treeIPN3CLI6OptionES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev; std::_Rb_tree<CLI::Option *,CLI::Option *,std::_Identity<CLI::Option *>,std::less<CLI::Option *>,std::allocator<CLI::Option *>>::~_Rb_tree() mov rdi, [rsp+arg_18] call _ZNSt6vectorIN3CLI9ValidatorESaIS1_EED2Ev; std::vector<CLI::Validator>::~vector() mov rdi, [rsp+arg_20]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rdi, [rsp+arg_28]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_40] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_50] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED2Ev; std::vector<std::pair<std::string,std::string>>::~vector() mov rdi, [rsp+arg_8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_10] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r13 call __Unwind_Resume
void CLI::Option::Option(long long a1, int a2, long long a3, long long a4, long long a5) { _BYTE v8[24]; // [rsp+68h] [rbp-D0h] BYREF _BYTE v9[32]; // [rsp+80h] [rbp-B8h] BYREF _QWORD v10[3]; // [rsp+A0h] [rbp-98h] BYREF _BYTE v11[128]; // [rsp+B8h] [rbp-80h] BYREF CLI::OptionBase<CLI::Option>::OptionBase(); *(_OWORD *)(a1 + 120) = 0LL; *(_OWORD *)(a1 + 104) = 0LL; *(_OWORD *)(a1 + 88) = 0LL; *(_OWORD *)(a1 + 72) = 0LL; *(_OWORD *)(a1 + 56) = 0LL; *(_OWORD *)(a1 + 40) = 0LL; *(_QWORD *)(a1 + 136) = a1 + 152; *(_QWORD *)(a1 + 144) = 0LL; *(_BYTE *)(a1 + 152) = 0; *(_QWORD *)(a1 + 168) = a1 + 184; *(_QWORD *)(a1 + 176) = 0LL; *(_BYTE *)(a1 + 184) = 0; std::string::basic_string(a1 + 200, a3); *(_QWORD *)(a1 + 232) = a1 + 248; *(_QWORD *)(a1 + 240) = 0LL; *(_BYTE *)(a1 + 248) = 0; *(_QWORD *)(a1 + 264) = a1 + 280; *(_QWORD *)(a1 + 272) = 0LL; *(_BYTE *)(a1 + 280) = 0; *(_OWORD *)(a1 + 296) = 0LL; *(_QWORD *)(a1 + 320) = ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEN3CLI6Option10type_name_MUlvE_EE9_M_invokeERKSt9_Any_data; *(_QWORD *)(a1 + 312) = ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEvEN3CLI6Option10type_name_MUlvE_EE10_M_managerERSt9_Any_dataRKSC_St18_Manager_operation; *(_OWORD *)(a1 + 328) = 0LL; *(_OWORD *)(a1 + 344) = 0LL; *(_OWORD *)(a1 + 360) = xmmword_29030; *(_OWORD *)(a1 + 376) = 0LL; *(_OWORD *)(a1 + 392) = 0LL; *(_OWORD *)(a1 + 408) = 0LL; *(_QWORD *)(a1 + 424) = a1 + 408; *(_QWORD *)(a1 + 432) = a1 + 408; *(_OWORD *)(a1 + 440) = 0LL; *(_OWORD *)(a1 + 456) = 0LL; *(_QWORD *)(a1 + 472) = a1 + 456; *(_QWORD *)(a1 + 480) = a1 + 456; *(_QWORD *)(a1 + 488) = 0LL; *(_QWORD *)(a1 + 496) = a5; std::function<bool ()(std::vector<std::string> const&)>::function(a1 + 504, a4); *(_OWORD *)(a1 + 568) = 0LL; *(_OWORD *)(a1 + 552) = 0LL; *(_OWORD *)(a1 + 536) = 0LL; *(_QWORD *)(a1 + 583) = 0LL; std::string::basic_string(v9); CLI::detail::split_names((long long)v8, (long long)v9); CLI::detail::get_names(v11, v8); v10[0] = a1 + 136; v10[1] = a1 + 64; v10[2] = a1 + 40; std::tuple<std::vector<std::string> &,std::vector<std::string> &,std::string&>::operator=<std::vector<std::string>,std::vector<std::string>,std::string>( v10, v11); std::_Tuple_impl<0ul,std::vector<std::string>,std::vector<std::string>,std::string>::~_Tuple_impl(v11); std::vector<std::string>::~vector((long long)v8); std::string::~string(v9); }
Option: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x108 MOV RBP,R8 MOV R15,RCX MOV R12,RDX MOV R14,RSI MOV RBX,RDI CALL 0x00114c74 LEA RAX,[RBX + 0x98] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x78],XMM0 MOVUPS xmmword ptr [RBX + 0x68],XMM0 MOVUPS xmmword ptr [RBX + 0x58],XMM0 MOVUPS xmmword ptr [RBX + 0x48],XMM0 MOVUPS xmmword ptr [RBX + 0x38],XMM0 MOVUPS xmmword ptr [RBX + 0x28],XMM0 MOV qword ptr [RBX + 0x88],RAX AND qword ptr [RBX + 0x90],0x0 LEA RAX,[RBX + 0x28] MOV qword ptr [RSP + 0x18],RAX XOR R13D,R13D MOV byte ptr [RBX + 0x98],R13B LEA RAX,[RBX + 0xb8] MOV qword ptr [RBX + 0xa8],RAX AND qword ptr [RBX + 0xb0],0x0 LEA RAX,[RBX + 0x40] MOV qword ptr [RSP + 0x10],RAX LEA RAX,[RBX + 0x88] MOV qword ptr [RSP + 0x8],RAX MOV byte ptr [RBX + 0xb8],R13B LEA RDI,[RBX + 0xc8] MOV qword ptr [RSP + 0x60],RDI MOV RSI,R12 CALL 0x00107560 LEA RAX,[RBX + 0xf8] MOV qword ptr [RBX + 0xe8],RAX AND qword ptr [RBX + 0xf0],0x0 MOV byte ptr [RBX + 0xf8],R13B LEA RAX,[RBX + 0x118] MOV qword ptr [RBX + 0x108],RAX AND qword ptr [RBX + 0x110],0x0 MOV byte ptr [RBX + 0x118],R13B XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX + 0x128],XMM1 LEA RAX,[0x115090] MOV qword ptr [RBX + 0x140],RAX LEA RAX,[0x1150a4] MOV qword ptr [RBX + 0x138],RAX MOVUPS xmmword ptr [RBX + 0x148],XMM1 MOVUPS xmmword ptr [RBX + 0x158],XMM1 MOVAPS XMM0,xmmword ptr [0x00129030] MOVUPS xmmword ptr [RBX + 0x168],XMM0 LEA RAX,[RBX + 0x198] MOVUPS xmmword ptr [RBX + 0x178],XMM1 MOVUPS xmmword ptr [RBX + 0x188],XMM1 MOVUPS xmmword ptr [RBX + 0x198],XMM1 MOV qword ptr [RBX + 0x1a8],RAX MOV qword ptr [RBX + 0x1b0],RAX LEA RAX,[RBX + 0x1c8] MOVUPS xmmword ptr [RBX + 0x1b8],XMM1 MOVUPS xmmword ptr [RBX + 0x1c8],XMM1 MOV qword ptr [RBX + 0x1d8],RAX MOV qword ptr [RBX + 0x1e0],RAX AND qword ptr [RBX + 0x1e8],0x0 MOV qword ptr [RBX + 0x1f0],RBP LEA RBP,[RBX + 0x1f8] MOV RDI,RBP MOV RSI,R15 CALL 0x00113a7c XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x238],XMM0 MOVUPS xmmword ptr [RBX + 0x228],XMM0 MOVUPS xmmword ptr [RBX + 0x218],XMM0 AND qword ptr [RBX + 0x247],0x0 LAB_001147a1: LEA RDI,[RSP + 0x80] MOV RSI,R14 CALL 0x001075e0 LAB_001147b1: LEA RDI,[RSP + 0x68] LEA RSI,[RSP + 0x80] CALL 0x00113b38 LAB_001147c3: LEA RDI,[RSP + 0xb8] LEA RSI,[RSP + 0x68] CALL 0x00114c9b LAB_001147d5: LEA RDI,[RSP + 0xa0] MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RDI + 0x10],RAX LEA RBX,[RSP + 0xb8] MOV RSI,RBX CALL 0x00115064 MOV RDI,RBX CALL 0x0011507a LEA RDI,[RSP + 0x68] CALL 0x001099ca LEA RDI,[RSP + 0x80] CALL 0x00107860 ADD RSP,0x108 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* CLI::Option::Option(std::__cxx11::string, std::__cxx11::string, std::function<bool (std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&)>, CLI::App*) */ void __thiscall CLI::Option::Option(Option *this,string *param_2,string *param_3,function *param_4, int8 param_5) { int8 uVar1; detail local_d0 [24]; string local_b8 [32]; Option *local_98; Option *local_90; Option *local_88; detail local_80 [80]; OptionBase<CLI::Option>::OptionBase((OptionBase<CLI::Option> *)this); *(int8 *)(this + 0x78) = 0; *(int8 *)(this + 0x80) = 0; *(int8 *)(this + 0x68) = 0; *(int8 *)(this + 0x70) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(Option **)(this + 0x88) = this + 0x98; *(int8 *)(this + 0x90) = 0; this[0x98] = (Option)0x0; *(Option **)(this + 0xa8) = this + 0xb8; *(int8 *)(this + 0xb0) = 0; this[0xb8] = (Option)0x0; std::__cxx11::string::string((string *)(this + 200),param_3); *(Option **)(this + 0xe8) = this + 0xf8; *(int8 *)(this + 0xf0) = 0; this[0xf8] = (Option)0x0; *(Option **)(this + 0x108) = this + 0x118; *(int8 *)(this + 0x110) = 0; this[0x118] = (Option)0x0; *(int8 *)(this + 0x128) = 0; *(int8 *)(this + 0x130) = 0; *(code **)(this + 0x140) = std::_Function_handler<std::__cxx11::string(),CLI::Option::type_name_::{lambda()#1}>:: _M_invoke; *(code **)(this + 0x138) = std::_Function_handler<std::__cxx11::string(),CLI::Option::type_name_::{lambda()#1}>:: _M_manager; *(int8 *)(this + 0x148) = 0; *(int8 *)(this + 0x150) = 0; *(int8 *)(this + 0x158) = 0; *(int8 *)(this + 0x160) = 0; uVar1 = _UNK_00129038; *(int8 *)(this + 0x168) = _DAT_00129030; *(int8 *)(this + 0x170) = uVar1; *(int8 *)(this + 0x178) = 0; *(int8 *)(this + 0x180) = 0; *(int8 *)(this + 0x188) = 0; *(int8 *)(this + 400) = 0; *(int8 *)(this + 0x198) = 0; *(int8 *)(this + 0x1a0) = 0; *(Option **)(this + 0x1a8) = this + 0x198; *(Option **)(this + 0x1b0) = this + 0x198; *(int8 *)(this + 0x1b8) = 0; *(int8 *)(this + 0x1c0) = 0; *(int8 *)(this + 0x1c8) = 0; *(int8 *)(this + 0x1d0) = 0; *(Option **)(this + 0x1d8) = this + 0x1c8; *(Option **)(this + 0x1e0) = this + 0x1c8; *(int8 *)(this + 0x1e8) = 0; *(int8 *)(this + 0x1f0) = param_5; std::function<bool(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)> ::function((function<bool(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)> *)(this + 0x1f8),param_4); *(int8 *)(this + 0x238) = 0; *(int8 *)(this + 0x240) = 0; *(int8 *)(this + 0x228) = 0; *(int8 *)(this + 0x230) = 0; *(int8 *)(this + 0x218) = 0; *(int8 *)(this + 0x220) = 0; *(int8 *)(this + 0x247) = 0; /* try { // try from 001147a1 to 001147b0 has its CatchHandler @ 00114859 */ std::__cxx11::string::string(local_b8,param_2); /* try { // try from 001147b1 to 001147c2 has its CatchHandler @ 00114847 */ detail::split_names(local_d0,local_b8); /* try { // try from 001147c3 to 001147d4 has its CatchHandler @ 00114838 */ detail::get_names(local_80,(vector *)local_d0); local_98 = this + 0x88; local_90 = this + 0x40; local_88 = this + 0x28; std:: tuple<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>&,std::__cxx11::string&> ::operator=((tuple<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>&,std::__cxx11::string&> *)&local_98,(tuple *)local_80); std:: _Tuple_impl<0ul,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::__cxx11::string> ::~_Tuple_impl((_Tuple_impl<0ul,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::__cxx11::string> *)local_80); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_d0); std::__cxx11::string::~string(local_b8); return; }
33,357
string_from[abi:cxx11](llama_context const*, llama_batch const&)
monkey531[P]llama/common/common.cpp
std::string string_from(const struct llama_context * ctx, const struct llama_batch & batch) { std::stringstream buf; buf << "[ "; bool first = true; for (int i = 0; i < batch.n_tokens; ++i) { if (!first) { buf << ", "; } else { first = false; } auto detokenized = common_token_to_piece(ctx, batch.token[i]); detokenized.erase( std::remove_if( detokenized.begin(), detokenized.end(), [](const unsigned char c) { return !std::isprint(c); }), detokenized.end()); buf << "\n" << std::to_string(i) << ", token '" << detokenized << "'" << ", pos " << std::to_string(batch.pos[i]) << ", n_seq_id " << std::to_string(batch.n_seq_id[i]) << ", seq_id " << std::to_string(batch.seq_id[i][0]) << ", logits " << std::to_string(batch.logits[i]); } buf << " ]"; return buf.str(); }
O2
cpp
string_from[abi:cxx11](llama_context const*, llama_batch const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x278, %rsp # imm = 0x278 movq %rdx, %r15 movq %rsi, 0x40(%rsp) movq %rdi, %rbp leaq 0xf0(%rsp), %rdi callq 0x21500 leaq 0x100(%rsp), %rdi leaq 0x4ac6e(%rip), %rsi # 0x9bf7f callq 0x216a0 movb $0x1, %al xorl %r12d, %r12d leaq 0x10(%rsp), %r13 movq %rbp, 0x38(%rsp) movq %r15, 0x30(%rsp) movslq (%r15), %rcx cmpq %rcx, %r12 jge 0x515ff testb $0x1, %al jne 0x5134e leaq 0x100(%rsp), %rdi leaq 0x4b5dd(%rip), %rsi # 0x9c926 callq 0x216a0 movq 0x8(%r15), %rax movq %r12, 0x48(%rsp) movl (%rax,%r12,4), %edx movq %r13, %rdi movq 0x40(%rsp), %rsi pushq $0x1 popq %rcx callq 0x512a7 movq 0x10(%rsp), %r12 movq 0x18(%rsp), %r14 leaq (%r12,%r14), %rbp movq %r14, %r13 sarq $0x2, %r13 movq %r14, %r15 movq %r12, 0x8(%rsp) testq %r13, %r13 jle 0x513dd movq %r12, %rdi callq 0x55782 testb %al, %al jne 0x51425 leaq 0x1(%r12), %rbx movq %rbx, %rdi callq 0x55782 testb %al, %al jne 0x51428 leaq 0x2(%r12), %rbx movq %rbx, %rdi callq 0x55782 testb %al, %al jne 0x51428 leaq 0x3(%r12), %rbx movq %rbx, %rdi callq 0x55782 testb %al, %al jne 0x51428 addq $0x4, %r12 decq %r13 addq $-0x4, %r15 jmp 0x51388 cmpq $0x1, %r15 leaq 0x10(%rsp), %r13 je 0x51412 cmpq $0x2, %r15 je 0x51403 cmpq $0x3, %r15 jne 0x51460 movq %r12, %rdi callq 0x55782 testb %al, %al jne 0x51420 incq %r12 movq %r12, %rdi callq 0x55782 testb %al, %al jne 0x51420 incq %r12 movq %r12, %rdi callq 0x55782 testb %al, %al cmoveq %rbp, %r12 movq %r12, %rbx jmp 0x5142d movq %r12, %rbx leaq 0x10(%rsp), %r13 cmpq %rbp, %rbx je 0x51460 movq %rbx, %r12 incq %rbx cmpq %rbp, %rbx je 0x51454 movq %rbx, %rdi callq 0x55782 testb %al, %al jne 0x51435 movb (%rbx), %al movb %al, (%r12) incq %r12 jmp 0x51435 movq 0x10(%rsp), %rax movq 0x18(%rsp), %r14 jmp 0x51468 movq %rbp, %r12 movq 0x8(%rsp), %rax addq %rax, %r14 movq %r13, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x21140 leaq 0xb0(%rsp), %r14 leaq 0x100(%rsp), %rdi leaq 0x437ab(%rip), %rsi # 0x94c3b callq 0x216a0 movq 0x38(%rsp), %rbp movq 0x30(%rsp), %r15 movq 0x48(%rsp), %r12 movq %rax, %rbx movq %r14, %rdi movl %r12d, %esi callq 0x2b6eb movq %rbx, %rdi movq %r14, %rsi callq 0x21610 movq %rax, %rdi leaq 0x4aabe(%rip), %rsi # 0x9bf85 callq 0x216a0 movq %rax, %rdi movq %r13, %rsi callq 0x21610 movq %rax, %rdi leaq 0x44ad3(%rip), %rsi # 0x95fb4 callq 0x216a0 movq %rax, %rdi leaq 0x4aa9f(%rip), %rsi # 0x9bf8f callq 0x216a0 movq %rax, %rbx movq 0x18(%r15), %rax movl (%rax,%r12,4), %esi leaq 0x90(%rsp), %r14 movq %r14, %rdi callq 0x2b6eb movq %rbx, %rdi movq %r14, %rsi callq 0x21610 movq %rax, %rdi leaq 0x4aa71(%rip), %rsi # 0x9bf96 callq 0x216a0 movq %rax, %rbx movq 0x20(%r15), %rax movl (%rax,%r12,4), %esi leaq 0x70(%rsp), %r14 movq %r14, %rdi callq 0x2b6eb movq %rbx, %rdi movq %r14, %rsi callq 0x21610 movq %rax, %rdi leaq 0x4aa4b(%rip), %rsi # 0x9bfa2 callq 0x216a0 movq %rax, %rbx movq 0x28(%r15), %rax movq (%rax,%r12,8), %rax movl (%rax), %esi leaq 0x50(%rsp), %r14 movq %r14, %rdi callq 0x2b6eb movq %rbx, %rdi movq %r14, %rsi callq 0x21610 movq %rax, %rdi leaq 0x4aa21(%rip), %rsi # 0x9bfac callq 0x216a0 movq %rax, %rbx movq 0x30(%r15), %rax movsbl (%rax,%r12), %esi leaq 0xd0(%rsp), %r14 movq %r14, %rdi callq 0x2b6eb movq %rbx, %rdi movq %r14, %rsi callq 0x21610 movq %r14, %rdi callq 0x21dc8 leaq 0x50(%rsp), %rdi callq 0x21dc8 leaq 0x70(%rsp), %rdi callq 0x21dc8 leaq 0x90(%rsp), %rdi callq 0x21dc8 leaq 0xb0(%rsp), %rdi callq 0x21dc8 movq %r13, %rdi callq 0x21dc8 incq %r12 xorl %eax, %eax jmp 0x5132a leaq 0x4a97c(%rip), %rsi # 0x9bf82 leaq 0x100(%rsp), %rdi callq 0x216a0 leaq 0x108(%rsp), %rsi movq %rbp, %rdi callq 0x21a90 leaq 0xf0(%rsp), %rdi callq 0x21550 movq %rbp, %rax addq $0x278, %rsp # imm = 0x278 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x51661 jmp 0x51661 jmp 0x51661 movq %rax, %rbx leaq 0xd0(%rsp), %rdi callq 0x21dc8 jmp 0x51676 jmp 0x51673 jmp 0x51691 movq %rax, %rbx jmp 0x516bd jmp 0x51682 jmp 0x5166e jmp 0x516a3 jmp 0x5166e movq %rax, %rbx jmp 0x516b3 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x21dc8 jmp 0x51685 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x21dc8 jmp 0x51694 movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x21dc8 jmp 0x516a6 movq %rax, %rbx leaq 0xb0(%rsp), %rdi callq 0x21dc8 leaq 0x10(%rsp), %rdi callq 0x21dc8 leaq 0xf0(%rsp), %rdi callq 0x21550 movq %rbx, %rdi callq 0x21be0
_Z11string_fromB5cxx11PK13llama_contextRK11llama_batch: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 278h mov r15, rdx mov [rsp+2A8h+var_268], rsi mov rbp, rdi lea rdi, [rsp+2A8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+2A8h+var_1A8] lea rsi, asc_9BF7F; "[ " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov al, 1 xor r12d, r12d lea r13, [rsp+2A8h+var_298] mov [rsp+2A8h+var_270], rbp mov [rsp+2A8h+var_278], r15 loc_5132A: movsxd rcx, dword ptr [r15] cmp r12, rcx jge loc_515FF test al, 1 jnz short loc_5134E lea rdi, [rsp+2A8h+var_1A8] lea rsi, aZuD+6; ", " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) loc_5134E: mov rax, [r15+8] mov qword ptr [rsp+2A8h+var_260], r12 mov edx, [rax+r12*4] mov rdi, r13; void * mov rsi, [rsp+2A8h+var_268] push 1 pop rcx call _Z21common_token_to_pieceB5cxx11PK13llama_contextib; common_token_to_piece(llama_context const*,int,bool) mov r12, [rsp+2A8h+var_298] mov r14, [rsp+2A8h+var_290] lea rbp, [r12+r14] mov r13, r14 sar r13, 2 mov r15, r14 mov [rsp+2A8h+var_2A0], r12 loc_51388: test r13, r13 jle short loc_513DD mov rdi, r12 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz loc_51425 lea rbx, [r12+1] mov rdi, rbx call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_51428 lea rbx, [r12+2] mov rdi, rbx call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_51428 lea rbx, [r12+3] mov rdi, rbx call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_51428 add r12, 4 dec r13 add r15, 0FFFFFFFFFFFFFFFCh jmp short loc_51388 loc_513DD: cmp r15, 1 lea r13, [rsp+2A8h+var_298] jz short loc_51412 cmp r15, 2 jz short loc_51403 cmp r15, 3 jnz short loc_51460 mov rdi, r12 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_51420 inc r12 loc_51403: mov rdi, r12 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_51420 inc r12 loc_51412: mov rdi, r12 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al cmovz r12, rbp loc_51420: mov rbx, r12 jmp short loc_5142D loc_51425: mov rbx, r12 loc_51428: lea r13, [rsp+2A8h+var_298] loc_5142D: cmp rbx, rbp jz short loc_51460 mov r12, rbx loc_51435: inc rbx cmp rbx, rbp jz short loc_51454 mov rdi, rbx call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRK11llama_batchE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_51435 mov al, [rbx] mov [r12], al inc r12 jmp short loc_51435 loc_51454: mov rax, [rsp+2A8h+var_298] mov r14, [rsp+2A8h+var_290] jmp short loc_51468 loc_51460: mov r12, rbp mov rax, [rsp+2A8h+var_2A0] loc_51468: add r14, rax mov rdi, r13 mov rsi, r12 mov rdx, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_; std::string::erase(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>) lea r14, [rsp+2A8h+var_1F8] lea rdi, [rsp+2A8h+var_1A8] lea rsi, aNoteDebugGramm+0C9h; "\n" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbp, [rsp+2A8h+var_270] mov r15, [rsp+2A8h+var_278] mov r12, qword ptr [rsp+2A8h+var_260] mov rbx, rax mov rdi, r14; this mov esi, r12d; int call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, rbx mov rsi, r14 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax lea rsi, aToken; ", token '" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax mov rsi, r13 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax lea rsi, aLastRead+0Dh; "'" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax lea rsi, aPos; ", pos " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbx, rax mov rax, [r15+18h] mov esi, [rax+r12*4]; int lea r14, [rsp+2A8h+var_218] mov rdi, r14; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, rbx mov rsi, r14 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax lea rsi, aNSeqId; ", n_seq_id " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbx, rax mov rax, [r15+20h] mov esi, [rax+r12*4]; int lea r14, [rsp+2A8h+var_238] mov rdi, r14; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, rbx mov rsi, r14 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax lea rsi, aSeqId; ", seq_id " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbx, rax mov rax, [r15+28h] mov rax, [rax+r12*8] mov esi, [rax]; int lea r14, [rsp+2A8h+var_258] mov rdi, r14; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, rbx mov rsi, r14 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax lea rsi, aLogits; ", logits " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbx, rax mov rax, [r15+30h] movsx esi, byte ptr [rax+r12]; int lea r14, [rsp+2A8h+var_1D8] mov rdi, r14; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, rbx mov rsi, r14 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+2A8h+var_258]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+2A8h+var_238]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+2A8h+var_218]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+2A8h+var_1F8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r13; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() inc r12 xor eax, eax jmp loc_5132A loc_515FF: lea rsi, asc_9BF82; " ]" lea rdi, [rsp+2A8h+var_1A8] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) lea rsi, [rsp+2A8h+var_1A0] mov rdi, rbp call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rdi, [rsp+2A8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() mov rax, rbp add rsp, 278h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_51661 jmp short loc_51661 jmp short loc_51661 mov rbx, rax lea rdi, [rsp+arg_C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_51676 jmp short loc_51673 jmp short loc_51691 loc_51661: mov rbx, rax jmp short loc_516BD jmp short loc_51682 jmp short loc_5166E jmp short loc_516A3 jmp short $+2 loc_5166E: mov rbx, rax jmp short loc_516B3 loc_51673: mov rbx, rax loc_51676: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_51685 loc_51682: mov rbx, rax loc_51685: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_51694 loc_51691: mov rbx, rax loc_51694: lea rdi, [rsp+arg_88]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_516A6 loc_516A3: mov rbx, rax loc_516A6: lea rdi, [rsp+arg_A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_516B3: lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_516BD: lea rdi, [rsp+arg_E8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() mov rdi, rbx call __Unwind_Resume
long long string_from[abi:cxx11](long long a1, long long a2, _QWORD *a3) { long long v4; // rbp char v5; // al long long v6; // r12 _BYTE *v7; // r12 long long v8; // r14 _BYTE *v9; // rbp long long v10; // r13 long long v11; // r15 _BYTE *v12; // rbx _BYTE *v13; // r12 _BYTE *v14; // rax long long v15; // rax long long v16; // r12 long long v17; // rbx long long v18; // rax long long v19; // rax long long v20; // rax long long v21; // rax long long v22; // rbx long long v23; // rax long long v24; // rbx long long v25; // rax long long v26; // rbx long long v27; // rax long long v28; // rbx _BYTE *v30; // [rsp+8h] [rbp-2A0h] _BYTE *v31; // [rsp+10h] [rbp-298h] BYREF long long v32; // [rsp+18h] [rbp-290h] _QWORD *v33; // [rsp+30h] [rbp-278h] long long v34; // [rsp+38h] [rbp-270h] long long v35; // [rsp+40h] [rbp-268h] int v36[2]; // [rsp+48h] [rbp-260h] _BYTE v37[32]; // [rsp+50h] [rbp-258h] BYREF _BYTE v38[32]; // [rsp+70h] [rbp-238h] BYREF _BYTE v39[32]; // [rsp+90h] [rbp-218h] BYREF _BYTE v40[32]; // [rsp+B0h] [rbp-1F8h] BYREF _BYTE v41[32]; // [rsp+D0h] [rbp-1D8h] BYREF _BYTE v42[16]; // [rsp+F0h] [rbp-1B8h] BYREF char v43[8]; // [rsp+100h] [rbp-1A8h] BYREF char v44[416]; // [rsp+108h] [rbp-1A0h] BYREF v35 = a2; v4 = a1; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v42); std::operator<<<std::char_traits<char>>(v43, "[ "); v5 = 1; v6 = 0LL; v34 = a1; v33 = a3; while ( v6 < *(int *)a3 ) { if ( (v5 & 1) == 0 ) std::operator<<<std::char_traits<char>>(v43, ", "); *(_QWORD *)v36 = v6; common_token_to_piece[abi:cxx11](&v31, v35); v7 = v31; v8 = v32; v9 = &v31[v32]; v10 = v32 >> 2; v11 = v32; v30 = v31; while ( 1 ) { if ( v10 <= 0 ) { switch ( v11 ) { case 1LL: LABEL_19: if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) ) v7 = v9; break; case 2LL: goto LABEL_17; case 3LL: if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) ) { ++v7; LABEL_17: if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) ) { ++v7; goto LABEL_19; } } break; default: LABEL_29: v13 = v9; v14 = v30; goto LABEL_30; } v12 = v7; goto LABEL_23; } if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7) ) break; v12 = v7 + 1; if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7 + 1) ) goto LABEL_23; v12 = v7 + 2; if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7 + 2) ) goto LABEL_23; v12 = v7 + 3; if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v7 + 3) ) goto LABEL_23; v7 += 4; --v10; v11 -= 4LL; } v12 = v7; LABEL_23: if ( v12 == v9 ) goto LABEL_29; v13 = v12; while ( ++v12 != v9 ) { if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,llama_batch const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(v12) ) *v13++ = *v12; } v14 = v31; v8 = v32; LABEL_30: std::string::erase(&v31, v13, &v14[v8]); v15 = std::operator<<<std::char_traits<char>>(v43, "\n"); v4 = v34; a3 = v33; v16 = *(_QWORD *)v36; v17 = v15; std::to_string((std::__cxx11 *)v40, v36[0]); v18 = std::operator<<<char>(v17, v40); v19 = std::operator<<<std::char_traits<char>>(v18, ", token '"); v20 = std::operator<<<char>(v19, &v31); v21 = std::operator<<<std::char_traits<char>>(v20, "'"); v22 = std::operator<<<std::char_traits<char>>(v21, ", pos "); std::to_string((std::__cxx11 *)v39, *(_DWORD *)(a3[3] + 4 * v16)); v23 = std::operator<<<char>(v22, v39); v24 = std::operator<<<std::char_traits<char>>(v23, ", n_seq_id "); std::to_string((std::__cxx11 *)v38, *(_DWORD *)(a3[4] + 4 * v16)); v25 = std::operator<<<char>(v24, v38); v26 = std::operator<<<std::char_traits<char>>(v25, ", seq_id "); std::to_string((std::__cxx11 *)v37, **(_DWORD **)(a3[5] + 8 * v16)); v27 = std::operator<<<char>(v26, v37); v28 = std::operator<<<std::char_traits<char>>(v27, ", logits "); std::to_string((std::__cxx11 *)v41, *(char *)(a3[6] + v16)); std::operator<<<char>(v28, v41); std::string::~string(v41); std::string::~string(v37); std::string::~string(v38); std::string::~string(v39); std::string::~string(v40); std::string::~string(&v31); v6 = v16 + 1; v5 = 0; } std::operator<<<std::char_traits<char>>(v43, " ]"); std::stringbuf::str(v4, v44); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v42); return v4; }
string_from[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x278 MOV R15,RDX MOV qword ptr [RSP + 0x40],RSI MOV RBP,RDI LEA RDI,[RSP + 0xf0] CALL 0x00121500 LEA RDI,[RSP + 0x100] LAB_0015130a: LEA RSI,[0x19bf7f] CALL 0x001216a0 MOV AL,0x1 XOR R12D,R12D LEA R13,[RSP + 0x10] MOV qword ptr [RSP + 0x38],RBP MOV qword ptr [RSP + 0x30],R15 LAB_0015132a: MOVSXD RCX,dword ptr [R15] CMP R12,RCX JGE 0x001515ff TEST AL,0x1 JNZ 0x0015134e LAB_0015133a: LEA RDI,[RSP + 0x100] LEA RSI,[0x19c926] CALL 0x001216a0 LAB_0015134e: MOV RAX,qword ptr [R15 + 0x8] MOV qword ptr [RSP + 0x48],R12 MOV EDX,dword ptr [RAX + R12*0x4] LAB_0015135b: MOV RDI,R13 MOV RSI,qword ptr [RSP + 0x40] PUSH 0x1 POP RCX CALL 0x001512a7 MOV R12,qword ptr [RSP + 0x10] MOV R14,qword ptr [RSP + 0x18] LEA RBP,[R12 + R14*0x1] MOV R13,R14 SAR R13,0x2 MOV R15,R14 MOV qword ptr [RSP + 0x8],R12 LAB_00151388: TEST R13,R13 JLE 0x001513dd MOV RDI,R12 CALL 0x00155782 TEST AL,AL JNZ 0x00151425 LEA RBX,[R12 + 0x1] MOV RDI,RBX CALL 0x00155782 TEST AL,AL JNZ 0x00151428 LEA RBX,[R12 + 0x2] MOV RDI,RBX CALL 0x00155782 TEST AL,AL JNZ 0x00151428 LEA RBX,[R12 + 0x3] MOV RDI,RBX CALL 0x00155782 TEST AL,AL JNZ 0x00151428 ADD R12,0x4 DEC R13 ADD R15,-0x4 JMP 0x00151388 LAB_001513dd: CMP R15,0x1 LEA R13,[RSP + 0x10] JZ 0x00151412 CMP R15,0x2 JZ 0x00151403 CMP R15,0x3 JNZ 0x00151460 MOV RDI,R12 CALL 0x00155782 TEST AL,AL JNZ 0x00151420 INC R12 LAB_00151403: MOV RDI,R12 CALL 0x00155782 TEST AL,AL JNZ 0x00151420 INC R12 LAB_00151412: MOV RDI,R12 CALL 0x00155782 TEST AL,AL CMOVZ R12,RBP LAB_00151420: MOV RBX,R12 JMP 0x0015142d LAB_00151425: MOV RBX,R12 LAB_00151428: LEA R13,[RSP + 0x10] LAB_0015142d: CMP RBX,RBP JZ 0x00151460 MOV R12,RBX LAB_00151435: INC RBX CMP RBX,RBP JZ 0x00151454 MOV RDI,RBX CALL 0x00155782 TEST AL,AL JNZ 0x00151435 MOV AL,byte ptr [RBX] MOV byte ptr [R12],AL INC R12 JMP 0x00151435 LAB_00151454: MOV RAX,qword ptr [RSP + 0x10] MOV R14,qword ptr [RSP + 0x18] JMP 0x00151468 LAB_00151460: MOV R12,RBP MOV RAX,qword ptr [RSP + 0x8] LAB_00151468: ADD R14,RAX LAB_0015146b: MOV RDI,R13 MOV RSI,R12 MOV RDX,R14 CALL 0x00121140 LEA R14,[RSP + 0xb0] LAB_00151481: LEA RDI,[RSP + 0x100] LEA RSI,[0x194c3b] CALL 0x001216a0 MOV RBP,qword ptr [RSP + 0x38] MOV R15,qword ptr [RSP + 0x30] MOV R12,qword ptr [RSP + 0x48] LAB_001514a4: MOV RBX,RAX MOV RDI,R14 MOV ESI,R12D CALL 0x0012b6eb LAB_001514b2: MOV RDI,RBX MOV RSI,R14 CALL 0x00121610 MOV RDI,RAX LEA RSI,[0x19bf85] CALL 0x001216a0 MOV RDI,RAX MOV RSI,R13 CALL 0x00121610 MOV RDI,RAX LEA RSI,[0x195fb4] CALL 0x001216a0 MOV RDI,RAX LEA RSI,[0x19bf8f] CALL 0x001216a0 MOV RBX,RAX MOV RAX,qword ptr [R15 + 0x18] MOV ESI,dword ptr [RAX + R12*0x4] LAB_00151500: LEA R14,[RSP + 0x90] MOV RDI,R14 CALL 0x0012b6eb LAB_00151510: MOV RDI,RBX MOV RSI,R14 CALL 0x00121610 MOV RDI,RAX LEA RSI,[0x19bf96] CALL 0x001216a0 MOV RBX,RAX MOV RAX,qword ptr [R15 + 0x20] MOV ESI,dword ptr [RAX + R12*0x4] LAB_00151535: LEA R14,[RSP + 0x70] MOV RDI,R14 CALL 0x0012b6eb LAB_00151542: MOV RDI,RBX MOV RSI,R14 CALL 0x00121610 MOV RDI,RAX LEA RSI,[0x19bfa2] CALL 0x001216a0 MOV RBX,RAX MOV RAX,qword ptr [R15 + 0x28] MOV RAX,qword ptr [RAX + R12*0x8] MOV ESI,dword ptr [RAX] LAB_00151569: LEA R14,[RSP + 0x50] MOV RDI,R14 CALL 0x0012b6eb LAB_00151576: MOV RDI,RBX MOV RSI,R14 CALL 0x00121610 MOV RDI,RAX LEA RSI,[0x19bfac] CALL 0x001216a0 MOV RBX,RAX MOV RAX,qword ptr [R15 + 0x30] MOVSX ESI,byte ptr [RAX + R12*0x1] LAB_0015159c: LEA R14,[RSP + 0xd0] MOV RDI,R14 CALL 0x0012b6eb LAB_001515ac: MOV RDI,RBX MOV RSI,R14 CALL 0x00121610 MOV RDI,R14 CALL 0x00121dc8 LEA RDI,[RSP + 0x50] CALL 0x00121dc8 LEA RDI,[RSP + 0x70] CALL 0x00121dc8 LEA RDI,[RSP + 0x90] CALL 0x00121dc8 LEA RDI,[RSP + 0xb0] CALL 0x00121dc8 MOV RDI,R13 CALL 0x00121dc8 INC R12 XOR EAX,EAX JMP 0x0015132a LAB_001515ff: LEA RSI,[0x19bf82] LEA RDI,[RSP + 0x100] CALL 0x001216a0 LEA RSI,[RSP + 0x108] MOV RDI,RBP CALL 0x00121a90 LAB_00151623: LEA RDI,[RSP + 0xf0] CALL 0x00121550 MOV RAX,RBP ADD RSP,0x278 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_from[abi:cxx11](llama_context const*, llama_batch const&) */ llama_context * string_from_abi_cxx11_(llama_context *param_1,llama_batch *param_2) { _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var1; bool bVar2; _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var3; ostream *poVar4; int *in_RDX; _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var5; _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var6; _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *p_Var7; long lVar8; long lVar9; long lVar10; _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::__0> *local_298; long local_290; int *local_278; llama_context *local_270; llama_batch *local_268; long local_260; __cxx11 local_258 [32]; __cxx11 local_238 [32]; __cxx11 local_218 [32]; __cxx11 local_1f8 [32]; __cxx11 local_1d8 [32]; stringstream local_1b8 [16]; ostream local_1a8 [376]; local_268 = param_2; std::__cxx11::stringstream::stringstream(local_1b8); /* try { // try from 0015130a to 00151315 has its CatchHandler @ 00151645 */ std::operator<<(local_1a8,"[ "); bVar2 = true; lVar8 = 0; local_278 = in_RDX; local_270 = param_1; do { if (*in_RDX <= lVar8) { /* try { // try from 001515ff to 00151622 has its CatchHandler @ 00151647 */ std::operator<<(local_1a8," ]"); std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_1b8); return param_1; } if (!bVar2) { /* try { // try from 0015133a to 0015134d has its CatchHandler @ 00151649 */ std::operator<<(local_1a8,", "); } local_260 = lVar8; /* try { // try from 0015135b to 0015136a has its CatchHandler @ 00151661 */ common_token_to_piece_abi_cxx11_ ((llama_context *)&local_298,(int)local_268, SUB41(*(int4 *)(*(long *)(in_RDX + 2) + lVar8 * 4),0)); lVar8 = local_290; p_Var3 = local_298; p_Var1 = local_298 + local_290; p_Var6 = local_298; lVar10 = local_290; for (lVar9 = local_290 >> 2; p_Var5 = p_Var6, p_Var7 = p_Var1, 0 < lVar9; lVar9 = lVar9 + -1) { bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6); if (bVar2) goto LAB_0015142d; bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6 + 1); p_Var5 = p_Var6 + 1; if (bVar2) goto LAB_0015142d; bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6 + 2); p_Var5 = p_Var6 + 2; if (bVar2) goto LAB_0015142d; bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6 + 3); p_Var5 = p_Var6 + 3; if (bVar2) goto LAB_0015142d; p_Var6 = p_Var6 + 4; lVar10 = lVar10 + -4; } if (lVar10 == 1) { LAB_00151412: bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6); p_Var5 = p_Var6; if (!bVar2) { p_Var5 = p_Var1; } LAB_0015142d: p_Var6 = p_Var5; if (p_Var5 != p_Var1) { while (p_Var5 = p_Var5 + 1, p_Var3 = local_298, p_Var7 = p_Var6, lVar8 = local_290, p_Var5 != p_Var1) { bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var5); if (!bVar2) { *p_Var6 = *p_Var5; p_Var6 = p_Var6 + 1; } } } } else { if (lVar10 == 2) { LAB_00151403: bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6); p_Var5 = p_Var6; if (!bVar2) { p_Var6 = p_Var6 + 1; goto LAB_00151412; } goto LAB_0015142d; } if (lVar10 == 3) { bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,llama_batch_const&)::$_0>:: operator()(p_Var6); if (!bVar2) { p_Var6 = p_Var6 + 1; goto LAB_00151403; } goto LAB_0015142d; } } /* try { // try from 0015146b to 00151478 has its CatchHandler @ 0015166e */ std::__cxx11::string::erase((string *)&local_298,p_Var7,p_Var3 + lVar8); /* try { // try from 00151481 to 00151494 has its CatchHandler @ 0015166c */ poVar4 = std::operator<<(local_1a8,"\n"); lVar8 = local_260; param_1 = local_270; in_RDX = local_278; /* try { // try from 001514a4 to 001514b1 has its CatchHandler @ 00151668 */ std::__cxx11::to_string(local_1f8,(int)local_260); /* try { // try from 001514b2 to 001514f4 has its CatchHandler @ 001516a3 */ poVar4 = std::operator<<(poVar4,(string *)local_1f8); poVar4 = std::operator<<(poVar4,", token \'"); poVar4 = std::operator<<(poVar4,(string *)&local_298); poVar4 = std::operator<<(poVar4,"\'"); poVar4 = std::operator<<(poVar4,", pos "); /* try { // try from 00151500 to 0015150f has its CatchHandler @ 0015166a */ std::__cxx11::to_string(local_218,*(int *)(*(long *)(in_RDX + 6) + lVar8 * 4)); /* try { // try from 00151510 to 00151529 has its CatchHandler @ 00151691 */ poVar4 = std::operator<<(poVar4,(string *)local_218); poVar4 = std::operator<<(poVar4,", n_seq_id "); /* try { // try from 00151535 to 00151541 has its CatchHandler @ 0015165f */ std::__cxx11::to_string(local_238,*(int *)(*(long *)(in_RDX + 8) + lVar8 * 4)); /* try { // try from 00151542 to 0015155b has its CatchHandler @ 00151682 */ poVar4 = std::operator<<(poVar4,(string *)local_238); poVar4 = std::operator<<(poVar4,", seq_id "); /* try { // try from 00151569 to 00151575 has its CatchHandler @ 00151666 */ std::__cxx11::to_string(local_258,**(int **)(*(long *)(in_RDX + 10) + lVar8 * 8)); /* try { // try from 00151576 to 0015158f has its CatchHandler @ 00151673 */ poVar4 = std::operator<<(poVar4,(string *)local_258); poVar4 = std::operator<<(poVar4,", logits "); /* try { // try from 0015159c to 001515ab has its CatchHandler @ 0015165d */ std::__cxx11::to_string(local_1d8,(int)*(char *)(*(long *)(in_RDX + 0xc) + lVar8)); /* try { // try from 001515ac to 001515b6 has its CatchHandler @ 0015164b */ std::operator<<(poVar4,(string *)local_1d8); std::__cxx11::string::~string((string *)local_1d8); std::__cxx11::string::~string((string *)local_258); std::__cxx11::string::~string((string *)local_238); std::__cxx11::string::~string((string *)local_218); std::__cxx11::string::~string((string *)local_1f8); std::__cxx11::string::~string((string *)&local_298); lVar8 = lVar8 + 1; bVar2 = false; } while( true ); }
33,358
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentEdges()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/refinement.h
int getNumChildEdgesFromEdges() const { return _childEdgeFromEdgeCount; }
O1
c
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentEdges(): movslq 0x30(%rdi), %rax testq %rax, %rax jle 0x49d98 movslq 0x48(%rdi), %rcx addq %rcx, %rax movq 0x120(%rdi), %rdx movslq (%rdx,%rcx,4), %rdx movq 0x8(%rdi), %rsi movq 0x10(%rdi), %r8 movq 0xf0(%rsi), %rsi movq 0xf0(%r8), %r8 movb (%rsi,%rdx), %dl movb %dl, (%r8,%rcx) incq %rcx cmpq %rax, %rcx jl 0x49d68 retq nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement31populateEdgeTagsFromParentEdgesEv: movsxd rax, dword ptr [rdi+30h] test rax, rax jle short locret_49D98 movsxd rcx, dword ptr [rdi+48h] add rax, rcx loc_49D68: mov rdx, [rdi+120h] movsxd rdx, dword ptr [rdx+rcx*4] mov rsi, [rdi+8] mov r8, [rdi+10h] mov rsi, [rsi+0F0h] mov r8, [r8+0F0h] mov dl, [rsi+rdx] mov [r8+rcx], dl inc rcx cmp rcx, rax jl short loc_49D68 locret_49D98: retn
long long OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentEdges( OpenSubdiv::v3_6_0::Vtr::internal::Refinement *this) { long long result; // rax long long v2; // rcx result = *((int *)this + 12); if ( result > 0 ) { v2 = *((int *)this + 18); result += v2; do { *(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2) + 240LL) + v2) = *(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 1) + 240LL) + *(int *)(*((_QWORD *)this + 36) + 4 * v2)); ++v2; } while ( v2 < result ); } return result; }
populateEdgeTagsFromParentEdges: MOVSXD RAX,dword ptr [RDI + 0x30] TEST RAX,RAX JLE 0x00149d98 MOVSXD RCX,dword ptr [RDI + 0x48] ADD RAX,RCX LAB_00149d68: MOV RDX,qword ptr [RDI + 0x120] MOVSXD RDX,dword ptr [RDX + RCX*0x4] MOV RSI,qword ptr [RDI + 0x8] MOV R8,qword ptr [RDI + 0x10] MOV RSI,qword ptr [RSI + 0xf0] MOV R8,qword ptr [R8 + 0xf0] MOV DL,byte ptr [RSI + RDX*0x1] MOV byte ptr [R8 + RCX*0x1],DL INC RCX CMP RCX,RAX JL 0x00149d68 LAB_00149d98: RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentEdges() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentEdges(Refinement *this) { long lVar1; long lVar2; if (0 < (long)*(int *)(this + 0x30)) { lVar2 = (long)*(int *)(this + 0x48); lVar1 = *(int *)(this + 0x30) + lVar2; do { *(int1 *)(*(long *)(*(long *)(this + 0x10) + 0xf0) + lVar2) = *(int1 *) (*(long *)(*(long *)(this + 8) + 0xf0) + (long)*(int *)(*(long *)(this + 0x120) + lVar2 * 4)); lVar2 = lVar2 + 1; } while (lVar2 < lVar1); } return; }
33,359
my_strnncoll_win1250ch
eloqsql/strings/ctype-win1250ch.c
static int my_strnncoll_win1250ch(CHARSET_INFO *cs __attribute__((unused)), const uchar *s1, size_t len1, const uchar *s2, size_t len2, my_bool s2_is_prefix) { int v1, v2; const uchar *p1, * p2; int pass1 = 0, pass2 = 0; int diff; if (s2_is_prefix && len1 > len2) len1=len2; p1 = s1; p2 = s2; do { NEXT_CMP_VALUE(s1, p1, pass1, v1, (int)len1); NEXT_CMP_VALUE(s2, p2, pass2, v2, (int)len2); if ((diff = v1 - v2)) return diff; } while (v1); return 0; }
O3
c
my_strnncoll_win1250ch: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx cmpq %r8, %rdx movq %r8, %rax cmovbq %rdx, %rax testb %r9b, %r9b cmoveq %rdx, %rax movq %rax, -0x70(%rbp) movslq %eax, %rdx movq %r8, -0x78(%rbp) movslq %r8d, %r9 movl $0x1, %eax movl $0x1, %edi subq %rsi, %rdi movq %rdi, -0x60(%rbp) subq %rcx, %rax movq %rax, -0x68(%rbp) xorl %r13d, %r13d leaq 0x286786(%rip), %r14 # 0x2fb990 movq %rsi, %r15 movq %rcx, %r12 xorl %ebx, %ebx movq %rcx, -0x48(%rbp) movq %rsi, -0x58(%rbp) movq %r15, %rax subq %rsi, %rax cmpq %rdx, %rax jge 0x75232 testl %r13d, %r13d je 0x75260 movl $0x9, %r8d jmp 0x7525b testl %r13d, %r13d sete %r8b cmpl $0x0, -0x70(%rbp) setg %dil xorl %eax, %eax testb %r8b, %dil je 0x75326 movl $0x1, %r13d movl $0x9, %r8d movq %rsi, %r15 movq %r14, %rax jmp 0x75270 xorl %r13d, %r13d movl $0x8, %r8d leaq 0x286620(%rip), %rax # 0x2fb890 movzbl (%r15), %edi movb (%rax,%rdi), %al cmpb $-0x1, %al jne 0x75320 movq %r8, -0x50(%rbp) movq %r12, -0x38(%rbp) movl %ebx, -0x2c(%rbp) movq %r13, -0x40(%rbp) movq %r15, %r11 subq %rsi, %r11 movq -0x60(%rbp), %rax leaq (%rax,%r15), %rcx xorl %edi, %edi movq %r15, %r12 movq %rdi, %r8 shlq $0x4, %r8 leaq 0x2a41f1(%rip), %rax # 0x3194a0 movq (%r8,%rax), %r13 movb (%r13), %r10b testb %r10b, %r10b je 0x752e7 cmpq %rdx, %r11 jge 0x752e7 incq %r13 movq %rcx, %rbx cmpb (%r15), %r10b jne 0x752ec incq %r15 movb (%r13), %r10b testb %r10b, %r10b je 0x752e7 leaq 0x1(%rbx), %rax incq %r13 cmpq %rdx, %rbx movq %rax, %rbx jl 0x752c7 testb %r10b, %r10b je 0x752fc incq %rdi cmpq $0x50, %rdi movq %r12, %r15 jne 0x752a1 movb $-0x1, %al jmp 0x75311 leaq 0x2a419d(%rip), %rax # 0x3194a0 addq %rax, %r8 movq -0x50(%rbp), %rax movb (%r8,%rax), %al decq %r15 movq -0x48(%rbp), %rcx movq -0x40(%rbp), %r13 movl -0x2c(%rbp), %ebx movq -0x38(%rbp), %r12 movzbl %al, %eax incq %r15 movq %r12, %rdi subq %rcx, %rdi cmpq %r9, %rdi jge 0x7533d testl %ebx, %ebx je 0x7536a movl $0x9, %r10d jmp 0x75365 testl %ebx, %ebx sete %dil cmpl $0x0, -0x78(%rbp) setg %r8b xorl %r10d, %r10d testb %dil, %r8b je 0x75464 movl $0x1, %ebx movl $0x9, %r10d movq %rcx, %r12 movq %r14, %r8 jmp 0x75379 xorl %ebx, %ebx movl $0x8, %r10d leaq 0x286517(%rip), %r8 # 0x2fb890 movzbl (%r12), %edi movb (%r8,%rdi), %dil cmpb $-0x1, %dil jne 0x7545d movq %r10, -0x50(%rbp) movq %r15, -0x38(%rbp) movl %ebx, -0x2c(%rbp) movq %r13, -0x40(%rbp) movq %r12, %r14 subq %rcx, %r14 movq -0x68(%rbp), %rcx movq %r12, %r11 leaq (%rcx,%r12), %rsi xorl %r8d, %r8d movq %r8, %r15 shlq $0x4, %r15 leaq 0x2a40e3(%rip), %rcx # 0x3194a0 movq (%r15,%rcx), %rbx movb (%rbx), %r13b testb %r13b, %r13b je 0x753f8 cmpq %r9, %r14 jge 0x753f8 incq %rbx movq %rsi, %rdi movq %r11, %r10 cmpb (%r10), %r13b jne 0x75400 incq %r10 movb (%rbx), %r13b testb %r13b, %r13b je 0x753fb leaq 0x1(%rdi), %r12 incq %rbx cmpq %r9, %rdi movq %r12, %rdi jl 0x753d7 jmp 0x753fb movq %r11, %r10 testb %r13b, %r13b je 0x7542b incq %r8 cmpq $0x50, %r8 jne 0x753af movb $-0x1, %dil movq -0x48(%rbp), %rcx movq -0x58(%rbp), %rsi leaq 0x286575(%rip), %r14 # 0x2fb990 movq -0x40(%rbp), %r13 movl -0x2c(%rbp), %ebx movq -0x38(%rbp), %r15 movq %r11, %r12 jmp 0x7545d leaq 0x2a406e(%rip), %rcx # 0x3194a0 addq %rcx, %r15 movq -0x50(%rbp), %rcx movb (%r15,%rcx), %dil decq %r10 movq %r10, %r12 movq -0x48(%rbp), %rcx movq -0x58(%rbp), %rsi leaq 0x28653e(%rip), %r14 # 0x2fb990 movq -0x40(%rbp), %r13 movl -0x2c(%rbp), %ebx movq -0x38(%rbp), %r15 movzbl %dil, %r10d incq %r12 testl %eax, %eax je 0x75471 cmpl %r10d, %eax je 0x7521a subl %r10d, %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strnncoll_win1250ch: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx cmp rdx, r8 mov rax, r8 cmovb rax, rdx test r9b, r9b cmovz rax, rdx mov [rbp+var_70], rax movsxd rdx, eax mov [rbp+var_78], r8 movsxd r9, r8d mov eax, 1 mov edi, 1 sub rdi, rsi mov [rbp+var_60], rdi sub rax, rcx mov [rbp+var_68], rax xor r13d, r13d lea r14, _sort_order_win1250ch2 mov r15, rsi mov r12, rcx xor ebx, ebx mov [rbp+var_48], rcx mov [rbp+var_58], rsi loc_7521A: mov rax, r15 sub rax, rsi cmp rax, rdx jge short loc_75232 test r13d, r13d jz short loc_75260 mov r8d, 9 jmp short loc_7525B loc_75232: test r13d, r13d setz r8b cmp dword ptr [rbp+var_70], 0 setnle dil xor eax, eax test dil, r8b jz loc_75326 mov r13d, 1 mov r8d, 9 mov r15, rsi loc_7525B: mov rax, r14 jmp short loc_75270 loc_75260: xor r13d, r13d mov r8d, 8 lea rax, _sort_order_win1250ch1 loc_75270: movzx edi, byte ptr [r15] mov al, [rax+rdi] cmp al, 0FFh jnz loc_75320 mov [rbp+var_50], r8 mov [rbp+var_38], r12 mov [rbp+var_2C], ebx mov [rbp+var_40], r13 mov r11, r15 sub r11, rsi mov rax, [rbp+var_60] lea rcx, [rax+r15] xor edi, edi mov r12, r15 loc_752A1: mov r8, rdi shl r8, 4 lea rax, doubles_0 mov r13, [r8+rax] mov r10b, [r13+0] test r10b, r10b jz short loc_752E7 cmp r11, rdx jge short loc_752E7 inc r13 mov rbx, rcx loc_752C7: cmp r10b, [r15] jnz short loc_752EC inc r15 mov r10b, [r13+0] test r10b, r10b jz short loc_752E7 lea rax, [rbx+1] inc r13 cmp rbx, rdx mov rbx, rax jl short loc_752C7 loc_752E7: test r10b, r10b jz short loc_752FC loc_752EC: inc rdi cmp rdi, 50h ; 'P' mov r15, r12 jnz short loc_752A1 mov al, 0FFh jmp short loc_75311 loc_752FC: lea rax, doubles_0 add r8, rax mov rax, [rbp+var_50] mov al, [r8+rax] dec r15 loc_75311: mov rcx, [rbp+var_48] mov r13, [rbp+var_40] mov ebx, [rbp+var_2C] mov r12, [rbp+var_38] loc_75320: movzx eax, al inc r15 loc_75326: mov rdi, r12 sub rdi, rcx cmp rdi, r9 jge short loc_7533D test ebx, ebx jz short loc_7536A mov r10d, 9 jmp short loc_75365 loc_7533D: test ebx, ebx setz dil cmp dword ptr [rbp+var_78], 0 setnle r8b xor r10d, r10d test r8b, dil jz loc_75464 mov ebx, 1 mov r10d, 9 mov r12, rcx loc_75365: mov r8, r14 jmp short loc_75379 loc_7536A: xor ebx, ebx mov r10d, 8 lea r8, _sort_order_win1250ch1 loc_75379: movzx edi, byte ptr [r12] mov dil, [r8+rdi] cmp dil, 0FFh jnz loc_7545D mov [rbp+var_50], r10 mov [rbp+var_38], r15 mov [rbp+var_2C], ebx mov [rbp+var_40], r13 mov r14, r12 sub r14, rcx mov rcx, [rbp+var_68] mov r11, r12 lea rsi, [rcx+r12] xor r8d, r8d loc_753AF: mov r15, r8 shl r15, 4 lea rcx, doubles_0 mov rbx, [r15+rcx] mov r13b, [rbx] test r13b, r13b jz short loc_753F8 cmp r14, r9 jge short loc_753F8 inc rbx mov rdi, rsi mov r10, r11 loc_753D7: cmp r13b, [r10] jnz short loc_75400 inc r10 mov r13b, [rbx] test r13b, r13b jz short loc_753FB lea r12, [rdi+1] inc rbx cmp rdi, r9 mov rdi, r12 jl short loc_753D7 jmp short loc_753FB loc_753F8: mov r10, r11 loc_753FB: test r13b, r13b jz short loc_7542B loc_75400: inc r8 cmp r8, 50h ; 'P' jnz short loc_753AF mov dil, 0FFh mov rcx, [rbp+var_48] mov rsi, [rbp+var_58] lea r14, _sort_order_win1250ch2 mov r13, [rbp+var_40] mov ebx, [rbp+var_2C] mov r15, [rbp+var_38] mov r12, r11 jmp short loc_7545D loc_7542B: lea rcx, doubles_0 add r15, rcx mov rcx, [rbp+var_50] mov dil, [r15+rcx] dec r10 mov r12, r10 mov rcx, [rbp+var_48] mov rsi, [rbp+var_58] lea r14, _sort_order_win1250ch2 mov r13, [rbp+var_40] mov ebx, [rbp+var_2C] mov r15, [rbp+var_38] loc_7545D: movzx r10d, dil inc r12 loc_75464: test eax, eax jz short loc_75471 cmp eax, r10d jz loc_7521A loc_75471: sub eax, r10d pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strnncoll_win1250ch( long long a1, _BYTE *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5, char a6) { int v6; // eax long long v7; // rdx long long v8; // r9 long long v9; // r13 _BYTE *v10; // r15 unsigned __int8 *v11; // r12 int v12; // ebx long long v13; // r8 _BYTE *v14; // rax _BYTE *v15; // r11 _BYTE *v16; // rcx long long v17; // rdi _BYTE *v18; // r12 char *v19; // r13 char v20; // r10 char *v21; // r13 _BYTE *v22; // rbx bool v23; // cc long long v24; // r10 int v25; // r10d _BYTE *v26; // r8 unsigned __int8 v27; // di long long v28; // r8 char *v29; // rbx char v30; // r13 char *v31; // rbx unsigned __int8 *v32; // rdi _BYTE *v33; // r10 int v35; // [rsp+0h] [rbp-78h] int v36; // [rsp+8h] [rbp-70h] long long v37; // [rsp+10h] [rbp-68h] long long v38; // [rsp+18h] [rbp-60h] _BYTE *v39; // [rsp+20h] [rbp-58h] long long v40; // [rsp+28h] [rbp-50h] unsigned __int8 *v41; // [rsp+30h] [rbp-48h] long long v42; // [rsp+38h] [rbp-40h] long long v43; // [rsp+38h] [rbp-40h] unsigned __int8 *v44; // [rsp+40h] [rbp-38h] int v45; // [rsp+4Ch] [rbp-2Ch] int v46; // [rsp+4Ch] [rbp-2Ch] v6 = a5; if ( a3 < a5 ) v6 = a3; if ( !a6 ) v6 = a3; v36 = v6; v7 = v6; v35 = a5; v8 = (int)a5; v38 = 1LL - (_QWORD)a2; v37 = 1LL - (_QWORD)a4; v9 = 0LL; v10 = a2; v11 = a4; v12 = 0; v41 = a4; v39 = a2; do { if ( v10 - a2 >= v7 ) { LODWORD(v14) = 0; if ( (_DWORD)v9 != 0 || v36 <= 0 ) goto LABEL_27; v9 = 1LL; v13 = 9LL; v10 = a2; } else { if ( !(_DWORD)v9 ) { v9 = 0LL; v13 = 8LL; v14 = &sort_order_win1250ch1; goto LABEL_13; } v13 = 9LL; } v14 = &sort_order_win1250ch2; LABEL_13: LOBYTE(v14) = v14[(unsigned __int8)*v10]; if ( (_BYTE)v14 != 0xFF ) goto LABEL_26; v44 = v11; v45 = v12; v42 = v9; v15 = (_BYTE *)(v10 - a2); v16 = &v10[v38]; v17 = 0LL; v18 = v10; while ( 1 ) { v19 = (char *)*(&doubles_0 + 2 * v17); v20 = *v19; if ( *v19 && (long long)v15 < v7 ) { v21 = v19 + 1; v22 = v16; while ( v20 == *v10 ) { ++v10; v20 = *v21; if ( *v21 ) { ++v21; v23 = (long long)v22++ < v7; if ( v23 ) continue; } goto LABEL_21; } goto LABEL_22; } LABEL_21: if ( !v20 ) break; LABEL_22: ++v17; v10 = v18; if ( v17 == 80 ) { LOBYTE(v14) = -1; goto LABEL_25; } } LOBYTE(v14) = *((_BYTE *)&doubles_0 + 16 * v17 + v13); --v10; LABEL_25: a4 = v41; v9 = v42; v12 = v45; v11 = v44; LABEL_26: LODWORD(v14) = (unsigned __int8)v14; ++v10; LABEL_27: if ( v11 - a4 >= v8 ) { v25 = 0; if ( v12 != 0 || v35 <= 0 ) continue; v12 = 1; v24 = 9LL; v11 = a4; LABEL_32: v26 = &sort_order_win1250ch2; } else { if ( v12 ) { v24 = 9LL; goto LABEL_32; } v12 = 0; v24 = 8LL; v26 = &sort_order_win1250ch1; } v27 = v26[*v11]; if ( v27 != 0xFF ) goto LABEL_48; v40 = v24; v46 = v12; v43 = v9; v28 = 0LL; while ( 2 ) { v29 = (char *)*(&doubles_0 + 2 * v28); v30 = *v29; if ( *v29 && v11 - a4 < v8 ) { v31 = v29 + 1; v32 = &v11[v37]; v33 = v11; while ( v30 == *v33 ) { ++v33; v30 = *v31; if ( *v31 ) { ++v31; v23 = (long long)v32++ < v8; if ( v23 ) continue; } goto LABEL_44; } goto LABEL_45; } v33 = v11; LABEL_44: if ( v30 ) { LABEL_45: if ( ++v28 == 80 ) { v27 = -1; a4 = v41; a2 = v39; v9 = v43; v12 = v46; goto LABEL_48; } continue; } break; } v27 = *((_BYTE *)&doubles_0 + 16 * v28 + v40); v11 = v33 - 1; a4 = v41; a2 = v39; v9 = v43; v12 = v46; LABEL_48: v25 = v27; ++v11; } while ( (_DWORD)v14 && (_DWORD)v14 == v25 ); return (unsigned int)((_DWORD)v14 - v25); }
my_strnncoll_win1250ch: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX CMP RDX,R8 MOV RAX,R8 CMOVC RAX,RDX TEST R9B,R9B CMOVZ RAX,RDX MOV qword ptr [RBP + -0x70],RAX MOVSXD RDX,EAX MOV qword ptr [RBP + -0x78],R8 MOVSXD R9,R8D MOV EAX,0x1 MOV EDI,0x1 SUB RDI,RSI MOV qword ptr [RBP + -0x60],RDI SUB RAX,RCX MOV qword ptr [RBP + -0x68],RAX XOR R13D,R13D LEA R14,[0x3fb990] MOV R15,RSI MOV R12,RCX XOR EBX,EBX MOV qword ptr [RBP + -0x48],RCX MOV qword ptr [RBP + -0x58],RSI LAB_0017521a: MOV RAX,R15 SUB RAX,RSI CMP RAX,RDX JGE 0x00175232 TEST R13D,R13D JZ 0x00175260 MOV R8D,0x9 JMP 0x0017525b LAB_00175232: TEST R13D,R13D SETZ R8B CMP dword ptr [RBP + -0x70],0x0 SETG DIL XOR EAX,EAX TEST DIL,R8B JZ 0x00175326 MOV R13D,0x1 MOV R8D,0x9 MOV R15,RSI LAB_0017525b: MOV RAX,R14 JMP 0x00175270 LAB_00175260: XOR R13D,R13D MOV R8D,0x8 LEA RAX,[0x3fb890] LAB_00175270: MOVZX EDI,byte ptr [R15] MOV AL,byte ptr [RAX + RDI*0x1] CMP AL,0xff JNZ 0x00175320 MOV qword ptr [RBP + -0x50],R8 MOV qword ptr [RBP + -0x38],R12 MOV dword ptr [RBP + -0x2c],EBX MOV qword ptr [RBP + -0x40],R13 MOV R11,R15 SUB R11,RSI MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[RAX + R15*0x1] XOR EDI,EDI MOV R12,R15 LAB_001752a1: MOV R8,RDI SHL R8,0x4 LEA RAX,[0x4194a0] MOV R13,qword ptr [R8 + RAX*0x1] MOV R10B,byte ptr [R13] TEST R10B,R10B JZ 0x001752e7 CMP R11,RDX JGE 0x001752e7 INC R13 MOV RBX,RCX LAB_001752c7: CMP R10B,byte ptr [R15] JNZ 0x001752ec INC R15 MOV R10B,byte ptr [R13] TEST R10B,R10B JZ 0x001752e7 LEA RAX,[RBX + 0x1] INC R13 CMP RBX,RDX MOV RBX,RAX JL 0x001752c7 LAB_001752e7: TEST R10B,R10B JZ 0x001752fc LAB_001752ec: INC RDI CMP RDI,0x50 MOV R15,R12 JNZ 0x001752a1 MOV AL,0xff JMP 0x00175311 LAB_001752fc: LEA RAX,[0x4194a0] ADD R8,RAX MOV RAX,qword ptr [RBP + -0x50] MOV AL,byte ptr [R8 + RAX*0x1] DEC R15 LAB_00175311: MOV RCX,qword ptr [RBP + -0x48] MOV R13,qword ptr [RBP + -0x40] MOV EBX,dword ptr [RBP + -0x2c] MOV R12,qword ptr [RBP + -0x38] LAB_00175320: MOVZX EAX,AL INC R15 LAB_00175326: MOV RDI,R12 SUB RDI,RCX CMP RDI,R9 JGE 0x0017533d TEST EBX,EBX JZ 0x0017536a MOV R10D,0x9 JMP 0x00175365 LAB_0017533d: TEST EBX,EBX SETZ DIL CMP dword ptr [RBP + -0x78],0x0 SETG R8B XOR R10D,R10D TEST R8B,DIL JZ 0x00175464 MOV EBX,0x1 MOV R10D,0x9 MOV R12,RCX LAB_00175365: MOV R8,R14 JMP 0x00175379 LAB_0017536a: XOR EBX,EBX MOV R10D,0x8 LEA R8,[0x3fb890] LAB_00175379: MOVZX EDI,byte ptr [R12] MOV DIL,byte ptr [R8 + RDI*0x1] CMP DIL,0xff JNZ 0x0017545d MOV qword ptr [RBP + -0x50],R10 MOV qword ptr [RBP + -0x38],R15 MOV dword ptr [RBP + -0x2c],EBX MOV qword ptr [RBP + -0x40],R13 MOV R14,R12 SUB R14,RCX MOV RCX,qword ptr [RBP + -0x68] MOV R11,R12 LEA RSI,[RCX + R12*0x1] XOR R8D,R8D LAB_001753af: MOV R15,R8 SHL R15,0x4 LEA RCX,[0x4194a0] MOV RBX,qword ptr [R15 + RCX*0x1] MOV R13B,byte ptr [RBX] TEST R13B,R13B JZ 0x001753f8 CMP R14,R9 JGE 0x001753f8 INC RBX MOV RDI,RSI MOV R10,R11 LAB_001753d7: CMP R13B,byte ptr [R10] JNZ 0x00175400 INC R10 MOV R13B,byte ptr [RBX] TEST R13B,R13B JZ 0x001753fb LEA R12,[RDI + 0x1] INC RBX CMP RDI,R9 MOV RDI,R12 JL 0x001753d7 JMP 0x001753fb LAB_001753f8: MOV R10,R11 LAB_001753fb: TEST R13B,R13B JZ 0x0017542b LAB_00175400: INC R8 CMP R8,0x50 JNZ 0x001753af MOV DIL,0xff MOV RCX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x58] LEA R14,[0x3fb990] MOV R13,qword ptr [RBP + -0x40] MOV EBX,dword ptr [RBP + -0x2c] MOV R15,qword ptr [RBP + -0x38] MOV R12,R11 JMP 0x0017545d LAB_0017542b: LEA RCX,[0x4194a0] ADD R15,RCX MOV RCX,qword ptr [RBP + -0x50] MOV DIL,byte ptr [R15 + RCX*0x1] DEC R10 MOV R12,R10 MOV RCX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x58] LEA R14,[0x3fb990] MOV R13,qword ptr [RBP + -0x40] MOV EBX,dword ptr [RBP + -0x2c] MOV R15,qword ptr [RBP + -0x38] LAB_0017545d: MOVZX R10D,DIL INC R12 LAB_00175464: TEST EAX,EAX JZ 0x00175471 CMP EAX,R10D JZ 0x0017521a LAB_00175471: SUB EAX,R10D POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int my_strnncoll_win1250ch (int8 param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5, char param_6) { bool bVar1; bool bVar2; byte *pbVar3; byte *pbVar4; byte *pbVar5; byte bVar6; int iVar7; ulong uVar9; int1 *puVar10; long lVar11; int iVar12; uint uVar13; long lVar14; byte *pbVar15; byte *pbVar16; byte *pbVar17; byte *pbVar18; uint uVar8; uVar9 = param_5; if (param_3 < param_5) { uVar9 = param_3; } if (param_6 == '\0') { uVar9 = param_3; } iVar7 = (int)uVar9; iVar12 = (int)param_5; bVar2 = false; bVar1 = false; pbVar15 = param_4; pbVar18 = param_2; do { if ((long)pbVar18 - (long)param_2 < (long)iVar7) { if (bVar2) { LAB_0017525b: lVar14 = 9; puVar10 = _sort_order_win1250ch2; } else { bVar2 = false; lVar14 = 8; puVar10 = _sort_order_win1250ch1; } bVar6 = puVar10[*pbVar18]; if (bVar6 == 0xff) { lVar11 = 0; do { pbVar16 = (&doubles)[lVar11 * 2]; bVar6 = *pbVar16; pbVar17 = pbVar18; pbVar5 = pbVar18 + (1 - (long)param_2); pbVar4 = pbVar18 + -(long)param_2; if (bVar6 != 0) { while (pbVar3 = pbVar5, (long)pbVar4 < (long)iVar7) { pbVar16 = pbVar16 + 1; if (bVar6 != *pbVar17) goto LAB_001752ec; pbVar17 = pbVar17 + 1; bVar6 = *pbVar16; if (bVar6 == 0) break; pbVar5 = pbVar3 + 1; pbVar4 = pbVar3; } } if (bVar6 == 0) { bVar6 = *(byte *)((long)&doubles + lVar14 + lVar11 * 0x10); pbVar18 = pbVar17 + -1; goto LAB_00175320; } LAB_001752ec: lVar11 = lVar11 + 1; } while (lVar11 != 0x50); bVar6 = 0xff; } LAB_00175320: uVar8 = (uint)bVar6; pbVar18 = pbVar18 + 1; } else { uVar8 = 0; if (0 < iVar7 && !bVar2) { bVar2 = true; pbVar18 = param_2; goto LAB_0017525b; } } if ((long)pbVar15 - (long)param_4 < (long)iVar12) { if (bVar1) { LAB_00175365: lVar14 = 9; puVar10 = _sort_order_win1250ch2; } else { bVar1 = false; lVar14 = 8; puVar10 = _sort_order_win1250ch1; } bVar6 = puVar10[*pbVar15]; if (bVar6 == 0xff) { lVar11 = 0; do { pbVar16 = (&doubles)[lVar11 * 2]; bVar6 = *pbVar16; pbVar17 = pbVar15; pbVar5 = pbVar15 + (1 - (long)param_4); pbVar4 = pbVar15 + -(long)param_4; if (bVar6 != 0) { while (pbVar3 = pbVar5, (long)pbVar4 < (long)iVar12) { pbVar16 = pbVar16 + 1; if (bVar6 != *pbVar17) goto LAB_00175400; pbVar17 = pbVar17 + 1; bVar6 = *pbVar16; if (bVar6 == 0) break; pbVar5 = pbVar3 + 1; pbVar4 = pbVar3; } } if (bVar6 == 0) { bVar6 = *(byte *)((long)&doubles + lVar14 + lVar11 * 0x10); pbVar15 = pbVar17 + -1; goto LAB_0017545d; } LAB_00175400: lVar11 = lVar11 + 1; } while (lVar11 != 0x50); bVar6 = 0xff; } LAB_0017545d: uVar13 = (uint)bVar6; pbVar15 = pbVar15 + 1; } else { uVar13 = 0; if (0 < iVar12 && !bVar1) { bVar1 = true; pbVar15 = param_4; goto LAB_00175365; } } if ((uVar8 == 0) || (uVar8 != uVar13)) { return uVar8 - uVar13; } } while( true ); }
33,360
bitmap_set_above
eloqsql/mysys/my_bitmap.c
void bitmap_set_above(MY_BITMAP *map, uint from_byte, uint use_bit) { uchar use_byte= use_bit ? 0xff : 0; uchar *to= (uchar *)map->bitmap + from_byte; uchar *end= (uchar *)map->bitmap + (map->n_bits+7)/8; while (to < end) *to++= use_byte; }
O0
c
bitmap_set_above: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl -0x10(%rbp), %edx xorl %eax, %eax movl $0xff, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movb %al, -0x11(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movl -0xc(%rbp), %ecx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq -0x8(%rbp), %rcx movl 0x1c(%rcx), %ecx addl $0x7, %ecx shrl $0x3, %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jae 0xf00ef movb -0x11(%rbp), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) jmp 0xf00cf popq %rbp retq nopw %cs:(%rax,%rax)
bitmap_set_above: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov edx, [rbp+var_10] xor eax, eax mov ecx, 0FFh cmp edx, 0 cmovnz eax, ecx mov [rbp+var_11], al mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rbp+var_C] add rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_8] mov rax, [rax] mov rcx, [rbp+var_8] mov ecx, [rcx+1Ch] add ecx, 7 shr ecx, 3 mov ecx, ecx add rax, rcx mov [rbp+var_28], rax loc_F00CF: mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jnb short loc_F00EF mov cl, [rbp+var_11] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl jmp short loc_F00CF loc_F00EF: pop rbp retn
char * bitmap_set_above(long long a1, unsigned int a2, int a3) { char v3; // al char *result; // rax char *v5; // rax unsigned long long v6; // [rsp+0h] [rbp-28h] char *v7; // [rsp+8h] [rbp-20h] char v8; // [rsp+17h] [rbp-11h] v3 = 0; if ( a3 ) v3 = -1; v8 = v3; v7 = (char *)(a2 + *(_QWORD *)a1); v6 = ((unsigned int)(*(_DWORD *)(a1 + 28) + 7) >> 3) + *(_QWORD *)a1; while ( 1 ) { result = v7; if ( (unsigned long long)v7 >= v6 ) break; v5 = v7++; *v5 = v8; } return result; }
bitmap_set_above: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV EDX,dword ptr [RBP + -0x10] XOR EAX,EAX MOV ECX,0xff CMP EDX,0x0 CMOVNZ EAX,ECX MOV byte ptr [RBP + -0x11],AL MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0xc] ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x1c] ADD ECX,0x7 SHR ECX,0x3 MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX LAB_001f00cf: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JNC 0x001f00ef MOV CL,byte ptr [RBP + -0x11] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL JMP 0x001f00cf LAB_001f00ef: POP RBP RET
void bitmap_set_above(long *param_1,uint param_2,int param_3) { int iVar1; long lVar2; int1 uVar3; int1 *local_28; uVar3 = 0; if (param_3 != 0) { uVar3 = 0xff; } lVar2 = *param_1; iVar1 = *(int *)((long)param_1 + 0x1c); local_28 = (int1 *)(*param_1 + (ulong)param_2); while (local_28 < (int1 *)(lVar2 + (ulong)(iVar1 + 7U >> 3))) { *local_28 = uVar3; local_28 = local_28 + 1; } return; }
33,361
google::protobuf::UInt32Value::~UInt32Value()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/wrappers.pb.cc
UInt32Value::~UInt32Value() { // @@protoc_insertion_point(destructor:google.protobuf.UInt32Value) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); }
O3
cpp
google::protobuf::UInt32Value::~UInt32Value(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 leaq 0x8(%rdi), %rbx testb $0x1, 0x8(%rdi) je 0xb1767 movq %rbx, %rdi callq 0x734ec leaq 0x158db2(%rip), %rax # 0x20a520 addq $0x10, %rax movq %rax, (%r14) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x73456 movq %rax, %rdi callq 0x33bfc
_ZN6google8protobuf11UInt32ValueD2Ev: push r14 push rbx push rax mov r14, rdi lea rbx, [rdi+8] test byte ptr [rdi+8], 1 jz short loc_B1767 mov rdi, rbx call _ZN6google8protobuf8internal16InternalMetadata21DeleteOutOfLineHelperINS0_15UnknownFieldSetEEEPNS0_5ArenaEv; google::protobuf::internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>(void) loc_B1767: lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite add rax, 10h mov [r14], rax mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata() mov rdi, rax call __clang_call_terminate
void google::protobuf::UInt32Value::~UInt32Value(google::protobuf::UInt32Value *this) { if ( (*((_BYTE *)this + 8) & 1) != 0 ) google::protobuf::internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet>((long long *)this + 1); *(_QWORD *)this = &`vtable for'google::protobuf::MessageLite + 2; google::protobuf::internal::InternalMetadata::~InternalMetadata((google::protobuf::UInt32Value *)((char *)this + 8)); }
~UInt32Value: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI LEA RBX,[RDI + 0x8] TEST byte ptr [RDI + 0x8],0x1 JZ 0x001b1767 LAB_001b175f: MOV RDI,RBX CALL 0x001734ec LAB_001b1767: LEA RAX,[0x30a520] ADD RAX,0x10 MOV qword ptr [R14],RAX MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00173456
/* google::protobuf::UInt32Value::~UInt32Value() */ void __thiscall google::protobuf::UInt32Value::~UInt32Value(UInt32Value *this) { if (((byte)this[8] & 1) != 0) { /* try { // try from 001b175f to 001b1766 has its CatchHandler @ 001b1784 */ internal::InternalMetadata::DeleteOutOfLineHelper<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8)); } *(int ***)this = &PTR__MessageLite_0030a530; internal::InternalMetadata::~InternalMetadata((InternalMetadata *)(this + 8)); return; }
33,362
CLI::RequiresError::RequiresError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
MikePodsytnik[P]TCRtrie/build_O1/_deps/cli11-src/include/CLI/Error.hpp
RequiresError(std::string curname, std::string subname) : RequiresError(curname + " requires " + subname, ExitCodes::RequiresError) {}
O1
cpp
CLI::RequiresError::RequiresError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r14 movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %rax, %rsi callq 0x178c0 leaq 0x12533(%rip), %rsi # 0x37a15 movq %r15, %rdi callq 0x77e0 movq (%r14), %rsi movq 0x8(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x7140 leaq 0x38(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x25522 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x25529 movups (%rcx), %xmm0 movups %xmm0, (%r14) movq 0x8(%rax), %rdx leaq 0x28(%rsp), %rsi movq %rdx, 0x8(%rsi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi movl $0x6b, %edx callq 0x26db8 movq 0x28(%rsp), %rdi cmpq %r14, %rdi je 0x25569 movq 0x38(%rsp), %rsi incq %rsi callq 0x7430 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x25580 movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r14, %rdi je 0x255ad movq 0x38(%rsp), %rsi incq %rsi callq 0x7430 jmp 0x255ad jmp 0x255aa movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x255c4 movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 movq %rbx, %rdi callq 0x7780
_ZN3CLI13RequiresErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_: push r15 push r14 push r12 push rbx sub rsp, 48h mov r14, rdx mov rbx, rdi lea r12, [rsp+68h+var_50] mov [r12-10h], r12 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea r15, [rsp+68h+var_60] mov rdi, r15 mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, aRequires; " requires " mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdx, [r14+8] lea rdi, [rsp+68h+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r14, [rsp+68h+var_30] mov [r14-10h], r14 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_25522 mov [rsp+68h+var_40], rdx mov rdx, [rcx] mov [rsp+68h+var_30], rdx jmp short loc_25529 loc_25522: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r14], xmm0 loc_25529: mov rdx, [rax+8] lea rsi, [rsp+68h+var_40] mov [rsi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, rbx; int mov edx, 6Bh ; 'k' call _ZN3CLI13RequiresErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9ExitCodesE; CLI::RequiresError::RequiresError(std::string,CLI::ExitCodes) mov rdi, [rsp+68h+var_40]; void * cmp rdi, r14 jz short loc_25569 mov rsi, [rsp+68h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_25569: mov rdi, [rsp+68h+var_60]; void * cmp rdi, r12 jz short loc_25580 mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_25580: add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r14 jz short loc_255AD mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_255AD jmp short $+2 loc_255AA: mov rbx, rax loc_255AD: mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_255C4 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_255C4: mov rdi, rbx call __Unwind_Resume
void CLI::RequiresError::RequiresError(int a1, long long a2, _QWORD *a3) { long long v4; // rax _OWORD *v5; // rcx int v6; // [rsp+0h] [rbp-68h] void *v7; // [rsp+8h] [rbp-60h] BYREF int v8; // [rsp+10h] [rbp-58h] char v9[16]; // [rsp+18h] [rbp-50h] BYREF void *v10; // [rsp+28h] [rbp-40h] long long v11; // [rsp+30h] [rbp-38h] _OWORD v12[3]; // [rsp+38h] [rbp-30h] BYREF v7 = v9; std::string::_M_construct<char *>(&v7, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); std::string::append(&v7, " requires "); v4 = std::string::_M_append(&v7, *a3, a3[1]); v10 = v12; v5 = (_OWORD *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v12[0] = *v5; } else { v10 = *(void **)v4; *(_QWORD *)&v12[0] = *(_QWORD *)v5; } v11 = *(_QWORD *)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; CLI::RequiresError::RequiresError(a1, v6, (long long)v7, v8, v9[0]); if ( v10 != v12 ) operator delete(v10, *(_QWORD *)&v12[0] + 1LL); if ( v7 != v9 ) operator delete(v7, *(_QWORD *)v9 + 1LL); }
RequiresError: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RDX MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,RAX CALL 0x001178c0 LAB_001254db: LEA RSI,[0x137a15] MOV RDI,R15 CALL 0x001077e0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_001254f1: LEA RDI,[RSP + 0x8] CALL 0x00107140 LEA R14,[RSP + 0x38] MOV qword ptr [R14 + -0x10],R14 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00125522 MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x00125529 LAB_00125522: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R14],XMM0 LAB_00125529: MOV RDX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00125545: MOV RDI,RBX MOV EDX,0x6b CALL 0x00126db8 LAB_00125552: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R14 JZ 0x00125569 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00107430 LAB_00125569: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00125580 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00107430 LAB_00125580: ADD RSP,0x48 POP RBX POP R12 POP R14 POP R15 RET
/* CLI::RequiresError::RequiresError(std::__cxx11::string, std::__cxx11::string) */ void __thiscall CLI::RequiresError::RequiresError(RequiresError *this,long *param_2,ulong *param_3) { long *plVar1; long *plVar2; long *local_60 [2]; long local_50 [2]; long *local_40; long local_38; long local_30; int4 uStack_28; int4 uStack_24; local_60[0] = local_50; std::__cxx11::string::_M_construct<char*>(local_60,*param_2,param_2[1] + *param_2); /* try { // try from 001254db to 001254e9 has its CatchHandler @ 001255aa */ std::__cxx11::string::append((char *)local_60); /* try { // try from 001254f1 to 001254fa has its CatchHandler @ 001255a8 */ plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_60,*param_3); plVar2 = plVar1 + 2; if ((long *)*plVar1 == plVar2) { local_30 = *plVar2; uStack_28 = (int4)plVar1[3]; uStack_24 = *(int4 *)((long)plVar1 + 0x1c); local_40 = &local_30; } else { local_30 = *plVar2; local_40 = (long *)*plVar1; } local_38 = plVar1[1]; *plVar1 = (long)plVar2; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; /* try { // try from 00125545 to 00125551 has its CatchHandler @ 0012558c */ RequiresError(this,&local_40,0x6b); if (local_40 != &local_30) { operator_delete(local_40,local_30 + 1); } if (local_60[0] != local_50) { operator_delete(local_60[0],local_50[0] + 1); } return; }
33,363
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); }
O3
c
b2d: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rdi, %r14 movslq %esi, %rax leaq (%rdi,%rax,4), %r13 leaq (%rdi,%rax,4), %r12 addq $-0x4, %r12 movl (%r12), %ebx movl %ebx, %edi callq 0x5eb2e movl $0x20, %ecx subl %eax, %ecx movl %ecx, (%r15) cmpl $0xa, %eax ja 0x5ebfc movl $0xb, %edx subl %eax, %edx movl %ebx, %esi movl %edx, %ecx shrl %cl, %esi xorl %edi, %edi cmpq %r14, %r12 jbe 0x5ebef movl -0x8(%r13), %edi leal 0x15(%rax), %ecx shll %cl, %ebx movl %edx, %ecx shrl %cl, %edi orl %ebx, %edi jmp 0x5ec43 xorl %edi, %edi cmpq %r14, %r12 jbe 0x5ec0e movl -0x8(%r13), %edi addq $-0x8, %r13 movq %r13, %r12 movl %eax, %edx addl $-0xb, %edx je 0x5ec41 movl %edx, %ecx shll %cl, %ebx movl $0x2b, %esi subl %eax, %esi movl %edi, %eax movl %esi, %ecx shrl %cl, %eax xorl %r8d, %r8d cmpq %r14, %r12 jbe 0x5ec33 movl -0x4(%r12), %r8d movl %edx, %ecx shll %cl, %edi movl %esi, %ecx shrl %cl, %r8d orl %eax, %ebx orl %r8d, %edi movl %ebx, %esi orl $0x3ff00000, %esi # imm = 0x3FF00000 shlq $0x20, %rsi movl %edi, %eax orq %rsi, %rax movq %rax, %xmm0 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
b2d: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r14, rdi movsxd rax, esi lea r13, [rdi+rax*4] lea r12, [rdi+rax*4] add r12, 0FFFFFFFFFFFFFFFCh mov ebx, [r12] mov edi, ebx call hi0bits mov ecx, 20h ; ' ' sub ecx, eax mov [r15], ecx cmp eax, 0Ah ja short loc_5EBFC mov edx, 0Bh sub edx, eax mov esi, ebx mov ecx, edx shr esi, cl xor edi, edi cmp r12, r14 jbe short loc_5EBEF mov edi, [r13-8] loc_5EBEF: lea ecx, [rax+15h] shl ebx, cl mov ecx, edx shr edi, cl or edi, ebx jmp short loc_5EC43 loc_5EBFC: xor edi, edi cmp r12, r14 jbe short loc_5EC0E mov edi, [r13-8] add r13, 0FFFFFFFFFFFFFFF8h mov r12, r13 loc_5EC0E: mov edx, eax add edx, 0FFFFFFF5h jz short loc_5EC41 mov ecx, edx shl ebx, cl mov esi, 2Bh ; '+' sub esi, eax mov eax, edi mov ecx, esi shr eax, cl xor r8d, r8d cmp r12, r14 jbe short loc_5EC33 mov r8d, [r12-4] loc_5EC33: mov ecx, edx shl edi, cl mov ecx, esi shr r8d, cl or ebx, eax or edi, r8d loc_5EC41: mov esi, ebx loc_5EC43: or esi, 3FF00000h shl rsi, 20h mov eax, edi or rax, rsi movq xmm0, rax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
double b2d(unsigned long long a1, int a2, _DWORD *a3) { unsigned long long v5; // r13 unsigned long long v6; // r12 unsigned int v7; // ebx unsigned int v8; // eax unsigned int v9; // esi unsigned int v10; // edi unsigned int v11; // edi char v12; // dl unsigned int v13; // ebx char v14; // si unsigned int v15; // eax unsigned int v16; // r8d double result; // xmm0_8 v5 = a1 + 4LL * a2; v6 = v5 - 4; v7 = *(_DWORD *)(v5 - 4); v8 = hi0bits(v7); *a3 = 32 - v8; if ( v8 > 0xA ) { v11 = 0; if ( v6 > a1 ) { v11 = *(_DWORD *)(v5 - 8); v6 = v5 - 8; } v12 = v8 - 11; if ( v8 != 11 ) { v13 = v7 << v12; v14 = 43 - v8; v15 = v11 >> (43 - v8); v16 = 0; if ( v6 > a1 ) v16 = *(_DWORD *)(v6 - 4); v7 = v15 | v13; v11 = (v16 >> v14) | (v11 << v12); } v9 = v7; } else { v9 = v7 >> (11 - v8); v10 = 0; if ( v6 > a1 ) v10 = *(_DWORD *)(v5 - 8); v11 = (v7 << (v8 + 21)) | (v10 >> (11 - v8)); } *(_QWORD *)&result = ((unsigned long long)(v9 | 0x3FF00000) << 32) | v11; return result; }
b2d: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R14,RDI MOVSXD RAX,ESI LEA R13,[RDI + RAX*0x4] LEA R12,[RDI + RAX*0x4] ADD R12,-0x4 MOV EBX,dword ptr [R12] MOV EDI,EBX CALL 0x0015eb2e MOV ECX,0x20 SUB ECX,EAX MOV dword ptr [R15],ECX CMP EAX,0xa JA 0x0015ebfc MOV EDX,0xb SUB EDX,EAX MOV ESI,EBX MOV ECX,EDX SHR ESI,CL XOR EDI,EDI CMP R12,R14 JBE 0x0015ebef MOV EDI,dword ptr [R13 + -0x8] LAB_0015ebef: LEA ECX,[RAX + 0x15] SHL EBX,CL MOV ECX,EDX SHR EDI,CL OR EDI,EBX JMP 0x0015ec43 LAB_0015ebfc: XOR EDI,EDI CMP R12,R14 JBE 0x0015ec0e MOV EDI,dword ptr [R13 + -0x8] ADD R13,-0x8 MOV R12,R13 LAB_0015ec0e: MOV EDX,EAX ADD EDX,-0xb JZ 0x0015ec41 MOV ECX,EDX SHL EBX,CL MOV ESI,0x2b SUB ESI,EAX MOV EAX,EDI MOV ECX,ESI SHR EAX,CL XOR R8D,R8D CMP R12,R14 JBE 0x0015ec33 MOV R8D,dword ptr [R12 + -0x4] LAB_0015ec33: MOV ECX,EDX SHL EDI,CL MOV ECX,ESI SHR R8D,CL OR EBX,EAX OR EDI,R8D LAB_0015ec41: MOV ESI,EBX LAB_0015ec43: OR ESI,0x3ff00000 SHL RSI,0x20 MOV EAX,EDI OR RAX,RSI MOVQ XMM0,RAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong b2d(uint *param_1,int param_2,int *param_3) { char cVar1; uint uVar2; long lVar3; byte bVar4; uint uVar5; uint uVar6; uint *puVar7; lVar3 = (long)param_2; puVar7 = param_1 + lVar3 + -1; uVar5 = *puVar7; uVar2 = hi0bits(uVar5); *param_3 = 0x20 - uVar2; cVar1 = (char)uVar2; if (uVar2 < 0xb) { uVar2 = 0; if (param_1 < puVar7) { uVar2 = param_1[lVar3 + -2]; } uVar6 = uVar2 >> (0xbU - cVar1 & 0x1f) | uVar5 << (cVar1 + 0x15U & 0x1f); uVar5 = uVar5 >> (0xbU - cVar1 & 0x1f); } else { uVar6 = 0; if (param_1 < puVar7) { uVar6 = param_1[lVar3 + -2]; puVar7 = param_1 + lVar3 + -2; } if (uVar2 - 0xb != 0) { bVar4 = (byte)(uVar2 - 0xb); uVar2 = 0; if (param_1 < puVar7) { uVar2 = puVar7[-1]; } uVar5 = uVar5 << (bVar4 & 0x1f) | uVar6 >> (0x2bU - cVar1 & 0x1f); uVar6 = uVar6 << (bVar4 & 0x1f) | uVar2 >> (0x2bU - cVar1 & 0x1f); } } return CONCAT44(uVar5,uVar6) | 0x3ff0000000000000; }
33,364
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array()
monkey531[P]llama/common/./json.hpp
bool end_array() { bool keep = true; if (ref_stack.back()) { keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back()); if (keep) { ref_stack.back()->set_parents(); } else { // discard array *ref_stack.back() = discarded; } } JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(!keep_stack.empty()); ref_stack.pop_back(); keep_stack.pop_back(); // remove discarded value if (!keep && !ref_stack.empty() && ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->pop_back(); } return true; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_array(): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq 0x30(%rsp), %rdi movq %rdi, 0x10(%rsp) movb $0x1, 0x2f(%rsp) addq $0x8, %rdi callq 0xb9880 cmpq $0x0, (%rax) je 0xb8b22 movq 0x10(%rsp), %rdi movq %rdi, %rax addq $0x80, %rax movq %rax, (%rsp) addq $0x8, %rdi callq 0xb9280 movq 0x10(%rsp), %rdi subl $0x1, %eax movl %eax, 0xc(%rsp) addq $0x8, %rdi callq 0xb9880 movq (%rsp), %rdi movl 0xc(%rsp), %esi movq (%rax), %rcx movl $0x3, %edx callq 0xb9220 andb $0x1, %al movb %al, 0x2f(%rsp) testb $0x1, 0x2f(%rsp) je 0xb8ae5 movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 movq (%rax), %rdi callq 0x9faf0 jmp 0xb8b20 movq 0x10(%rsp), %rsi addq $0xa8, %rsi leaq 0x18(%rsp), %rdi callq 0x6ed00 movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 movq (%rax), %rdi leaq 0x18(%rsp), %rsi callq 0xb3e10 leaq 0x18(%rsp), %rdi callq 0x6e0f0 jmp 0xb8b22 movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xb9cd0 xorb $-0x1, %al testb $0x1, %al jne 0xb8b38 jmp 0xb8b3a jmp 0xb8b59 leaq 0x11627b(%rip), %rdi # 0x1cedbc leaq 0x113dd4(%rip), %rsi # 0x1cc91c movl $0x1bf5, %edx # imm = 0x1BF5 leaq 0x116a99(%rip), %rcx # 0x1cf5ed callq 0x50230 movq 0x10(%rsp), %rdi addq $0x20, %rdi callq 0xb9100 xorb $-0x1, %al testb $0x1, %al jne 0xb8b6f jmp 0xb8b71 jmp 0xb8b90 leaq 0x1160bc(%rip), %rdi # 0x1cec34 leaq 0x113d9d(%rip), %rsi # 0x1cc91c movl $0x1bf6, %edx # imm = 0x1BF6 leaq 0x116a62(%rip), %rcx # 0x1cf5ed callq 0x50230 movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xba970 movq 0x10(%rsp), %rdi addq $0x20, %rdi callq 0xb9200 testb $0x1, 0x2f(%rsp) jne 0xb8bfb movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xb9cd0 testb $0x1, %al jne 0xb8bfb movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 movq (%rax), %rdi callq 0xa2c40 testb $0x1, %al jne 0xb8be1 jmp 0xb8bfb movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xb9880 movq (%rax), %rax movq 0x8(%rax), %rdi callq 0xa2c20 movb $0x1, %al andb $0x1, %al addq $0x38, %rsp retq nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9end_arrayEv: sub rsp, 38h mov [rsp+38h+var_8], rdi mov rdi, [rsp+38h+var_8] mov [rsp+38h+var_28], rdi mov [rsp+38h+var_9], 1 add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jz loc_B8B22 mov rdi, [rsp+38h+var_28] mov rax, rdi add rax, 80h mov [rsp+38h+var_38], rax add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, [rsp+38h+var_28] sub eax, 1 mov [rsp+38h+var_2C], eax add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rsp+38h+var_38] mov esi, [rsp+38h+var_2C] mov rcx, [rax] mov edx, 3 call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) and al, 1 mov [rsp+38h+var_9], al test [rsp+38h+var_9], 1 jz short loc_B8AE5 mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void) jmp short loc_B8B20 loc_B8AE5: mov rsi, [rsp+38h+var_28] add rsi, 0A8h lea rdi, [rsp+38h+var_20] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] lea rsi, [rsp+38h+var_20] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) lea rdi, [rsp+38h+var_20] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_B8B20: jmp short $+2 loc_B8B22: mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void) xor al, 0FFh test al, 1 jnz short loc_B8B38 jmp short loc_B8B3A loc_B8B38: jmp short loc_B8B59 loc_B8B3A: lea rdi, aRefStackEmpty; "!ref_stack.empty()" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 1BF5h lea rcx, aBoolNlohmannDe_3; "bool nlohmann::detail::json_sax_dom_cal"... call ___assert_fail loc_B8B59: mov rdi, [rsp+38h+var_28] add rdi, 20h ; ' ' call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void) xor al, 0FFh test al, 1 jnz short loc_B8B6F jmp short loc_B8B71 loc_B8B6F: jmp short loc_B8B90 loc_B8B71: lea rdi, aKeepStackEmpty; "!keep_stack.empty()" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 1BF6h lea rcx, aBoolNlohmannDe_3; "bool nlohmann::detail::json_sax_dom_cal"... call ___assert_fail loc_B8B90: mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::pop_back(void) mov rdi, [rsp+38h+var_28] add rdi, 20h ; ' ' call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void) test [rsp+38h+var_9], 1 jnz short loc_B8BFB mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void) test al, 1 jnz short loc_B8BFB mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; 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_array(void) test al, 1 jnz short loc_B8BE1 jmp short loc_B8BFB loc_B8BE1: mov rdi, [rsp+38h+var_28] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; 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>>::pop_back(void) loc_B8BFB: mov al, 1 and al, 1 add rsp, 38h retn
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_array( long long a1) { _QWORD *v1; // rax long long *v2; // rax char v3; // al _BYTE **v4; // rax long long v5; // rax unsigned int v7; // [rsp+Ch] [rbp-2Ch] _BYTE v8[23]; // [rsp+18h] [rbp-20h] BYREF char v9; // [rsp+2Fh] [rbp-9h] long long v10; // [rsp+30h] [rbp-8h] v10 = a1; v9 = 1; if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) ) { v7 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size(a1 + 8) - 1; v1 = (_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); v9 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( a1 + 128, v7, 3LL, *v1) & 1; if ( v9 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parents(); } else { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v8, a1 + 168); v2 = (long long *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); 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=( *v2, (long long)v8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v8); } } if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 ) __assert_fail( "!ref_stack.empty()", "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp", 7157LL, "bool nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_array() [Bas" "icJsonType = nlohmann::basic_json<nlohmann::ordered_map>]"); v3 = std::vector<bool>::empty(a1 + 32); if ( (v3 & 1) != 0 ) __assert_fail( "!keep_stack.empty()", "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp", 7158LL, "bool nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_array() [Bas" "icJsonType = nlohmann::basic_json<nlohmann::ordered_map>]"); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::pop_back(a1 + 8); std::vector<bool>::pop_back(a1 + 32); if ( (v9 & 1) == 0 && (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) == 0 ) { v4 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); 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_array(*v4) ) { v5 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pop_back(*(_QWORD *)(*(_QWORD *)v5 + 8LL)); } } return 1; }
end_array: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV RDI,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RDI MOV byte ptr [RSP + 0x2f],0x1 ADD RDI,0x8 CALL 0x001b9880 CMP qword ptr [RAX],0x0 JZ 0x001b8b22 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,RDI ADD RAX,0x80 MOV qword ptr [RSP],RAX ADD RDI,0x8 CALL 0x001b9280 MOV RDI,qword ptr [RSP + 0x10] SUB EAX,0x1 MOV dword ptr [RSP + 0xc],EAX ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0xc] MOV RCX,qword ptr [RAX] MOV EDX,0x3 CALL 0x001b9220 AND AL,0x1 MOV byte ptr [RSP + 0x2f],AL TEST byte ptr [RSP + 0x2f],0x1 JZ 0x001b8ae5 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RAX] CALL 0x0019faf0 JMP 0x001b8b20 LAB_001b8ae5: MOV RSI,qword ptr [RSP + 0x10] ADD RSI,0xa8 LEA RDI,[RSP + 0x18] CALL 0x0016ed00 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RAX] LEA RSI,[RSP + 0x18] CALL 0x001b3e10 LEA RDI,[RSP + 0x18] CALL 0x0016e0f0 LAB_001b8b20: JMP 0x001b8b22 LAB_001b8b22: MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001b9cd0 XOR AL,0xff TEST AL,0x1 JNZ 0x001b8b38 JMP 0x001b8b3a LAB_001b8b38: JMP 0x001b8b59 LAB_001b8b3a: LEA RDI,[0x2cedbc] LEA RSI,[0x2cc91c] MOV EDX,0x1bf5 LEA RCX,[0x2cf5ed] CALL 0x00150230 LAB_001b8b59: MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x20 CALL 0x001b9100 XOR AL,0xff TEST AL,0x1 JNZ 0x001b8b6f JMP 0x001b8b71 LAB_001b8b6f: JMP 0x001b8b90 LAB_001b8b71: LEA RDI,[0x2cec34] LEA RSI,[0x2cc91c] MOV EDX,0x1bf6 LEA RCX,[0x2cf5ed] CALL 0x00150230 LAB_001b8b90: MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001ba970 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x20 CALL 0x001b9200 TEST byte ptr [RSP + 0x2f],0x1 JNZ 0x001b8bfb MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001b9cd0 TEST AL,0x1 JNZ 0x001b8bfb MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001b9880 MOV RDI,qword ptr [RAX] CALL 0x001a2c40 TEST AL,0x1 JNZ 0x001b8be1 JMP 0x001b8bfb LAB_001b8be1: MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001b9880 MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001a2c20 LAB_001b8bfb: MOV AL,0x1 AND AL,0x1 ADD RSP,0x38 RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::end_array() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::end_array(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this) { byte bVar1; int iVar2; long *plVar3; int8 *puVar4; ulong uVar5; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_20 [23]; byte local_9; json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_8; local_9 = 1; local_8 = this; plVar3 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (*plVar3 != 0) { iVar2 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); local_9 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),iVar2 + -1,3,*puVar4); local_9 = local_9 & 1; if (local_9 == 0) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_20,(basic_json *)(this + 0xa8)); puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar4,local_20); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_20); } else { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::set_parents(); } } bVar1 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (((bVar1 ^ 0xff) & 1) != 0) { bVar1 = std::vector<bool,std::allocator<bool>>::empty ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if (((bVar1 ^ 0xff) & 1) != 0) { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::pop_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); std::vector<bool,std::allocator<bool>>::pop_back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if (((local_9 & 1) == 0) && (uVar5 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)), (uVar5 & 1) == 0)) { puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar4); if ((uVar5 & 1) != 0) { plVar3 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::pop_back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(*plVar3 + 8)); } } return 1; } /* WARNING: Subroutine does not return */ __assert_fail("!keep_stack.empty()", "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp", 0x1bf6, "bool nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_array() [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>]" ); } /* WARNING: Subroutine does not return */ __assert_fail("!ref_stack.empty()", "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x1bf5 , "bool nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_array() [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>]" ); }
33,365
init_simple_key_cache
eloqsql/mysys/mf_keycache.c
static int init_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold, uint changed_blocks_hash_size) { size_t blocks, hash_links; size_t length; int error; DBUG_ENTER("init_simple_key_cache"); DBUG_ASSERT(key_cache_block_size >= 512); KEYCACHE_DEBUG_OPEN; if (keycache->key_cache_inited && keycache->disk_blocks > 0) { DBUG_PRINT("warning",("key cache already in use")); DBUG_RETURN(0); } keycache->blocks_used= keycache->blocks_unused= 0; keycache->global_blocks_changed= 0; keycache->global_cache_w_requests= keycache->global_cache_r_requests= 0; keycache->global_cache_read= keycache->global_cache_write= 0; keycache->disk_blocks= -1; if (! keycache->key_cache_inited) { keycache->key_cache_inited= 1; keycache->hash_factor= 1; /* Initialize these variables once only. Their value must survive re-initialization during resizing. */ keycache->in_resize= 0; keycache->resize_in_flush= 0; keycache->cnt_for_resize_op= 0; keycache->waiting_for_resize_cnt.last_thread= NULL; keycache->in_init= 0; mysql_mutex_init(key_KEY_CACHE_cache_lock, &keycache->cache_lock, MY_MUTEX_INIT_FAST); keycache->resize_queue.last_thread= NULL; } keycache->key_cache_mem_size= use_mem; keycache->key_cache_block_size= key_cache_block_size; DBUG_PRINT("info", ("key_cache_block_size: %u", key_cache_block_size)); blocks= use_mem / (sizeof(BLOCK_LINK) + 2 * sizeof(HASH_LINK) + sizeof(HASH_LINK*) * 5/4 + key_cache_block_size); /* Changed blocks hash needs to be a power of 2 */ changed_blocks_hash_size= my_round_up_to_next_power(MY_MAX(changed_blocks_hash_size, MIN_CHANGED_BLOCKS_HASH_SIZE)); /* It doesn't make sense to have too few blocks (less than 8) */ if (blocks >= 8) { for ( ; ; ) { /* Set my_hash_entries to the next bigger 2 power */ if ((keycache->hash_entries= next_power((uint)blocks)) < blocks * 5/4) keycache->hash_entries<<= 1; hash_links= 2 * blocks; #if defined(MAX_THREADS) if (hash_links < MAX_THREADS + blocks - 1) hash_links= MAX_THREADS + blocks - 1; #endif while ((length= (ALIGN_SIZE(blocks * sizeof(BLOCK_LINK)) + ALIGN_SIZE(hash_links * sizeof(HASH_LINK)) + ALIGN_SIZE(sizeof(HASH_LINK*) * keycache->hash_entries) + sizeof(BLOCK_LINK*)* ((size_t)changed_blocks_hash_size*2))) + (blocks * keycache->key_cache_block_size) > use_mem && blocks > 8) blocks--; keycache->allocated_mem_size= blocks * keycache->key_cache_block_size; if ((keycache->block_mem= my_large_malloc(&keycache->allocated_mem_size, MYF(0)))) { /* Allocate memory for blocks, hash_links and hash entries; For each block 2 hash links are allocated */ if (my_multi_malloc_large(key_memory_KEY_CACHE, MYF(MY_ZEROFILL), &keycache->block_root, (ulonglong) (blocks * sizeof(BLOCK_LINK)), &keycache->hash_root, (ulonglong) (sizeof(HASH_LINK*) * keycache->hash_entries), &keycache->hash_link_root, (ulonglong) (hash_links * sizeof(HASH_LINK)), &keycache->changed_blocks, (ulonglong) (sizeof(BLOCK_LINK*) * changed_blocks_hash_size), &keycache->file_blocks, (ulonglong) (sizeof(BLOCK_LINK*) * changed_blocks_hash_size), NullS)) break; my_large_free(keycache->block_mem, keycache->allocated_mem_size); keycache->block_mem= 0; } if (blocks < 8) { my_errno= ENOMEM; my_error(EE_OUTOFMEMORY, MYF(ME_FATAL), blocks * keycache->key_cache_block_size); goto err; } blocks= blocks / 4*3; } keycache->blocks_unused= blocks; keycache->disk_blocks= (int) blocks; keycache->hash_links= (int)hash_links; keycache->hash_links_used= 0; keycache->free_hash_list= NULL; keycache->blocks_used= keycache->blocks_changed= 0; keycache->global_blocks_changed= 0; keycache->blocks_available=0; /* For debugging */ /* The LRU chain is empty after initialization */ keycache->used_last= NULL; keycache->used_ins= NULL; keycache->free_block_list= NULL; keycache->keycache_time= 0; keycache->warm_blocks= 0; keycache->min_warm_blocks= (division_limit ? blocks * division_limit / 100 + 1 : blocks); keycache->age_threshold= (age_threshold ? blocks * age_threshold / 100 : blocks); keycache->changed_blocks_hash_size= changed_blocks_hash_size; keycache->can_be_used= 1; keycache->waiting_for_hash_link.last_thread= NULL; keycache->waiting_for_block.last_thread= NULL; DBUG_PRINT("exit", ("disk_blocks: %d block_root: %p hash_entries: %d\ hash_root: %p hash_links: %d hash_link_root: %p", keycache->disk_blocks, keycache->block_root, keycache->hash_entries, keycache->hash_root, keycache->hash_links, keycache->hash_link_root)); } else { /* key_buffer_size is specified too small. Disable the cache. */ keycache->can_be_used= 0; } keycache->blocks= keycache->disk_blocks > 0 ? keycache->disk_blocks : 0; DBUG_RETURN((int) keycache->disk_blocks); err: error= my_errno; keycache->disk_blocks= 0; keycache->blocks= 0; if (keycache->block_mem) { my_large_free((uchar*) keycache->block_mem, keycache->allocated_mem_size); keycache->block_mem= NULL; } if (keycache->block_root) { my_free(keycache->block_root); keycache->block_root= NULL; } my_errno= error; keycache->can_be_used= 0; DBUG_RETURN(0); }
O3
c
init_simple_key_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movl %r9d, %ebx movq %rdx, %r9 movl %esi, %r13d movq %rdi, %r10 movb (%rdi), %al testb %al, %al je 0x98afa xorl %r14d, %r14d cmpl $0x0, 0x48(%r10) jg 0x98f66 xorps %xmm0, %xmm0 movups %xmm0, 0x50(%r10) movups %xmm0, 0x138(%r10) movups %xmm0, 0x148(%r10) movq $0x0, 0x158(%r10) movl $0xffffffff, 0x48(%r10) # imm = 0xFFFFFFFF testb %al, %al movq %r10, -0x30(%rbp) movq %r9, -0x50(%rbp) jne 0x98bcd movw $0x1, (%r10) movl $0x1, 0x164(%r10) xorl %r15d, %r15d movb %r15b, 0x2(%r10) movq %r15, 0x70(%r10) movq %r15, 0x110(%r10) movb %r15b, 0x168(%r10) leaq 0xb6ecf6(%rip), %rax # 0xc0785c movl (%rax), %edi leaq 0xc0(%r10), %r14 leaq 0x2ed49a(%rip), %rax # 0x386010 movq (%rax), %rax movq %r14, %rsi movl %ecx, -0x34(%rbp) movl %r8d, %r12d callq *0x40(%rax) movq -0x30(%rbp), %rcx movq %rax, 0x100(%rcx) movq -0x30(%rbp), %rax movq %r14, 0xf8(%rax) movq -0x30(%rbp), %rax xorps %xmm0, %xmm0 movups %xmm0, 0xe8(%rax) leaq 0xb6f9c0(%rip), %rsi # 0xc08570 movq %r14, %rdi callq 0x29320 movl %r12d, %r8d movq -0x50(%rbp), %r9 movl -0x34(%rbp), %ecx movq -0x30(%rbp), %r10 movq %r15, 0x108(%r10) movq %r9, 0x8(%r10) movl %r13d, 0x18(%r10) movl %r13d, %esi addq $0xda, %rsi movq %r9, %rax xorl %edx, %edx divq %rsi movq %rax, %rdi cmpl $0x81, %ebx movl $0x80, %eax cmovael %ebx, %eax cmpq $0x8, %rdi jb 0x98e0e decl %eax movl %eax, %edx shrl %edx orl %eax, %edx movl %edx, %eax shrl $0x2, %eax orl %edx, %eax movl %eax, %edx shrl $0x4, %edx orl %eax, %edx movl %edx, %eax shrl $0x8, %eax orl %edx, %eax movl %eax, %edx shrl $0x10, %edx orl %eax, %edx incl %edx movl %edx, -0x38(%rbp) movl %edx, %edx movq %rdx, %rax shlq $0x4, %rax movq %rax, -0x98(%rbp) leaq 0x10(%r10), %rax movq %rax, -0x90(%rbp) leaq 0xa0(%r10), %rax movq %rax, -0x48(%rbp) leaq 0x80(%r10), %rax movq %rax, -0x70(%rbp) leaq 0x88(%r10), %rax movq %rax, -0x68(%rbp) leaq 0x128(%r10), %rax movq %rax, -0x60(%rbp) shlq $0x3, %rdx movq %rdx, -0x78(%rbp) leaq 0x130(%r10), %rax movq %rax, -0x58(%rbp) movl %r8d, -0x3c(%rbp) movl %r8d, %r11d movl %ecx, -0x34(%rbp) movl %ecx, %r12d movq %r10, %r8 movq %r11, -0x80(%rbp) leal -0x1(%rdi), %eax movl %eax, %ecx shrl %ecx orl %eax, %ecx movl %ecx, %eax shrl $0x2, %eax orl %ecx, %eax movl %eax, %ecx shrl $0x4, %ecx orl %eax, %ecx movl %ecx, %eax shrl $0x8, %eax orl %ecx, %eax movl %eax, %ecx shrl $0x10, %ecx orl %eax, %ecx leal 0x2(,%rcx,2), %edx movq %rdi, %rax shrq $0x2, %rax addq %rdi, %rax cmpq %rdx, %rax seta %cl shll %cl, %edx movl %edx, 0x38(%r8) movq %rdi, %rax shlq $0x5, %rax leaq (%rax,%rax,2), %rax movq %rax, -0xa0(%rbp) movl %r13d, %eax leaq 0x1(%rdi), %r14 movq %r11, %r13 imulq %r14, %r13 movq %r12, %rbx imulq %r14, %rbx movq %r14, %rcx imulq %rax, %rcx leaq 0xd0(%rax), %rsi imulq %rdi, %rsi addq -0x98(%rbp), %rsi leaq (%rsi,%rdx,8), %rsi movq $-0x70, %rdx subq %rax, %rdx movq %rdi, -0x88(%rbp) imulq $0x70, %rdi, %r15 addq $0x70, %r15 decq %r14 subq %r11, %r13 subq %r12, %rbx subq %rax, %rcx addq $-0x70, %r15 cmpq $0x9, %r14 jb 0x98d5a leaq (%rsi,%rdx), %rdi cmpq %r9, %rsi movq %rdi, %rsi ja 0x98d38 movq %rcx, 0x10(%r8) movq -0x90(%rbp), %rdi xorl %esi, %esi callq 0xa7a6c movq -0x30(%rbp), %r8 movq %rax, 0xa8(%r8) testq %rax, %rax je 0x98def leaq 0xb6f475(%rip), %rax # 0xc081f8 movl (%rax), %edi movl 0x38(%r8), %r9d shlq $0x3, %r9 subq $0x8, %rsp movl $0x20, %esi movq -0x48(%rbp), %rdx movq %r15, %rcx movq %r8, %r15 movq -0x70(%rbp), %r8 xorl %eax, %eax pushq $0x0 movq -0x78(%rbp), %r10 pushq %r10 pushq -0x58(%rbp) pushq %r10 pushq -0x60(%rbp) pushq -0xa0(%rbp) pushq -0x68(%rbp) callq 0x9c84d addq $0x40, %rsp testq %rax, %rax jne 0x98eb2 movq 0x10(%r15), %rsi movq 0xa8(%r15), %rdi callq 0xa7f1b movq $0x0, 0xa8(%r15) movq %r15, %r8 cmpq $0x7, %r14 jbe 0x98e1c shrq $0x2, %r14 leaq (%r14,%r14,2), %rdi movl 0x18(%r8), %r13d movq -0x50(%rbp), %r9 movq -0x80(%rbp), %r11 jmp 0x98c99 movb $0x0, 0x3(%r10) movl 0x48(%r10), %r14d jmp 0x98f56 callq 0xa1b26 movl $0xc, (%rax) movq -0x30(%rbp), %rax movl 0x18(%rax), %eax imulq %rax, %r14 xorl %r15d, %r15d movl $0x1000, %esi # imm = 0x1000 movl $0x5, %edi movq %r14, %rdx xorl %eax, %eax callq 0x9e037 callq 0xa1b26 movq -0x30(%rbp), %rcx movl (%rax), %ebx movl %r15d, 0x48(%rcx) movl %r15d, 0x160(%rcx) movq 0xa8(%rcx), %rdi testq %rdi, %rdi je 0x98e83 movq 0x10(%rcx), %rsi callq 0xa7f1b movq -0x30(%rbp), %rax movq $0x0, 0xa8(%rax) movq -0x48(%rbp), %r14 movq (%r14), %rdi testq %rdi, %rdi je 0x98e9b callq 0x9ffe2 movq $0x0, (%r14) callq 0xa1b26 movl %ebx, (%rax) movq -0x30(%rbp), %rax movb $0x0, 0x3(%rax) xorl %r14d, %r14d jmp 0x98f66 movq %r14, 0x58(%r15) movl %r14d, 0x48(%r15) movq -0x88(%rbp), %rax addl %eax, %eax movl %eax, 0x40(%r15) movl $0x0, 0x44(%r15) xorl %eax, %eax movq %rax, 0x50(%r15) movq %rax, 0x138(%r15) movq %rax, 0x78(%r15) movq %rax, 0x30(%r15) xorps %xmm0, %xmm0 movups %xmm0, 0x60(%r15) movups %xmm0, 0x90(%r15) movups %xmm0, 0xb0(%r15) movabsq $0x28f5c28f5c28f5c3, %rcx # imm = 0x28F5C28F5C28F5C3 movq %r14, %rdx cmpl $0x0, -0x34(%rbp) movq %r15, %r10 je 0x98f23 shrq $0x2, %rbx movq %rbx, %rax mulq %rcx shrq $0x2, %rdx incq %rdx movq %rdx, 0x20(%r10) movq %r14, %rdx cmpl $0x0, -0x3c(%rbp) je 0x98f3e shrq $0x2, %r13 movq %r13, %rax mulq %rcx shrq $0x2, %rdx movq %rdx, 0x28(%r10) movl -0x38(%rbp), %eax movl %eax, 0x3c(%r10) movb $0x1, 0x3(%r10) movups %xmm0, 0x118(%r10) xorl %eax, %eax testl %r14d, %r14d cmovgl %r14d, %eax movl %eax, 0x160(%r10) movl %r14d, %eax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
init_simple_key_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov ebx, r9d mov r9, rdx mov r13d, esi mov r10, rdi mov al, [rdi] test al, al jz short loc_98AFA xor r14d, r14d cmp dword ptr [r10+48h], 0 jg loc_98F66 loc_98AFA: xorps xmm0, xmm0 movups xmmword ptr [r10+50h], xmm0 movups xmmword ptr [r10+138h], xmm0 movups xmmword ptr [r10+148h], xmm0 mov qword ptr [r10+158h], 0 mov dword ptr [r10+48h], 0FFFFFFFFh test al, al mov [rbp+var_30], r10 mov [rbp+var_50], r9 jnz loc_98BCD mov word ptr [r10], 1 mov dword ptr [r10+164h], 1 xor r15d, r15d mov [r10+2], r15b mov [r10+70h], r15 mov [r10+110h], r15 mov [r10+168h], r15b lea rax, key_KEY_CACHE_cache_lock mov edi, [rax] lea r14, [r10+0C0h] lea rax, PSI_server mov rax, [rax] mov rsi, r14 mov [rbp+var_34], ecx mov r12d, r8d call qword ptr [rax+40h] mov rcx, [rbp+var_30] mov [rcx+100h], rax mov rax, [rbp+var_30] mov [rax+0F8h], r14 mov rax, [rbp+var_30] xorps xmm0, xmm0 movups xmmword ptr [rax+0E8h], xmm0 lea rsi, my_fast_mutexattr mov rdi, r14 call _pthread_mutex_init mov r8d, r12d mov r9, [rbp+var_50] mov ecx, [rbp+var_34] mov r10, [rbp+var_30] mov [r10+108h], r15 loc_98BCD: mov [r10+8], r9 mov [r10+18h], r13d mov esi, r13d add rsi, 0DAh mov rax, r9 xor edx, edx div rsi mov rdi, rax cmp ebx, 81h mov eax, 80h cmovnb eax, ebx cmp rdi, 8 jb loc_98E0E dec eax mov edx, eax shr edx, 1 or edx, eax mov eax, edx shr eax, 2 or eax, edx mov edx, eax shr edx, 4 or edx, eax mov eax, edx shr eax, 8 or eax, edx mov edx, eax shr edx, 10h or edx, eax inc edx mov [rbp+var_38], edx mov edx, edx mov rax, rdx shl rax, 4 mov [rbp+var_98], rax lea rax, [r10+10h] mov [rbp+var_90], rax lea rax, [r10+0A0h] mov [rbp+var_48], rax lea rax, [r10+80h] mov [rbp+var_70], rax lea rax, [r10+88h] mov [rbp+var_68], rax lea rax, [r10+128h] mov [rbp+var_60], rax shl rdx, 3 mov [rbp+var_78], rdx lea rax, [r10+130h] mov [rbp+var_58], rax mov [rbp+var_3C], r8d mov r11d, r8d mov [rbp+var_34], ecx mov r12d, ecx mov r8, r10 mov [rbp+var_80], r11 loc_98C99: lea eax, [rdi-1] mov ecx, eax shr ecx, 1 or ecx, eax mov eax, ecx shr eax, 2 or eax, ecx mov ecx, eax shr ecx, 4 or ecx, eax mov eax, ecx shr eax, 8 or eax, ecx mov ecx, eax shr ecx, 10h or ecx, eax lea edx, ds:2[rcx*2] mov rax, rdi shr rax, 2 add rax, rdi cmp rax, rdx setnbe cl shl edx, cl mov [r8+38h], edx mov rax, rdi shl rax, 5 lea rax, [rax+rax*2] mov [rbp+var_A0], rax mov eax, r13d lea r14, [rdi+1] mov r13, r11 imul r13, r14 mov rbx, r12 imul rbx, r14 mov rcx, r14 imul rcx, rax lea rsi, [rax+0D0h] imul rsi, rdi add rsi, [rbp+var_98] lea rsi, [rsi+rdx*8] mov rdx, 0FFFFFFFFFFFFFF90h sub rdx, rax mov [rbp+var_88], rdi imul r15, rdi, 70h ; 'p' add r15, 70h ; 'p' loc_98D38: dec r14 sub r13, r11 sub rbx, r12 sub rcx, rax add r15, 0FFFFFFFFFFFFFF90h cmp r14, 9 jb short loc_98D5A lea rdi, [rsi+rdx] cmp rsi, r9 mov rsi, rdi ja short loc_98D38 loc_98D5A: mov [r8+10h], rcx mov rdi, [rbp+var_90] xor esi, esi call my_large_malloc mov r8, [rbp+var_30] mov [r8+0A8h], rax test rax, rax jz short loc_98DEF lea rax, key_memory_KEY_CACHE mov edi, [rax] mov r9d, [r8+38h] shl r9, 3 sub rsp, 8 mov esi, 20h ; ' ' mov rdx, [rbp+var_48] mov rcx, r15 mov r15, r8 mov r8, [rbp+var_70] xor eax, eax push 0 mov r10, [rbp+var_78] push r10 push [rbp+var_58] push r10 push [rbp+var_60] push [rbp+var_A0] push [rbp+var_68] call my_multi_malloc_large add rsp, 40h test rax, rax jnz loc_98EB2 mov rsi, [r15+10h] mov rdi, [r15+0A8h] call my_large_free mov qword ptr [r15+0A8h], 0 mov r8, r15 loc_98DEF: cmp r14, 7 jbe short loc_98E1C shr r14, 2 lea rdi, [r14+r14*2] mov r13d, [r8+18h] mov r9, [rbp+var_50] mov r11, [rbp+var_80] jmp loc_98C99 loc_98E0E: mov byte ptr [r10+3], 0 mov r14d, [r10+48h] jmp loc_98F56 loc_98E1C: call _my_thread_var mov dword ptr [rax], 0Ch mov rax, [rbp+var_30] mov eax, [rax+18h] imul r14, rax xor r15d, r15d mov esi, 1000h mov edi, 5 mov rdx, r14 xor eax, eax call my_error call _my_thread_var mov rcx, [rbp+var_30] mov ebx, [rax] mov [rcx+48h], r15d mov [rcx+160h], r15d mov rdi, [rcx+0A8h] test rdi, rdi jz short loc_98E83 mov rsi, [rcx+10h] call my_large_free mov rax, [rbp+var_30] mov qword ptr [rax+0A8h], 0 loc_98E83: mov r14, [rbp+var_48] mov rdi, [r14] test rdi, rdi jz short loc_98E9B call my_free mov qword ptr [r14], 0 loc_98E9B: call _my_thread_var mov [rax], ebx mov rax, [rbp+var_30] mov byte ptr [rax+3], 0 xor r14d, r14d jmp loc_98F66 loc_98EB2: mov [r15+58h], r14 mov [r15+48h], r14d mov rax, [rbp+var_88] add eax, eax mov [r15+40h], eax mov dword ptr [r15+44h], 0 xor eax, eax mov [r15+50h], rax mov [r15+138h], rax mov [r15+78h], rax mov [r15+30h], rax xorps xmm0, xmm0 movups xmmword ptr [r15+60h], xmm0 movups xmmword ptr [r15+90h], xmm0 movups xmmword ptr [r15+0B0h], xmm0 mov rcx, 28F5C28F5C28F5C3h mov rdx, r14 cmp [rbp+var_34], 0 mov r10, r15 jz short loc_98F23 shr rbx, 2 mov rax, rbx mul rcx shr rdx, 2 inc rdx loc_98F23: mov [r10+20h], rdx mov rdx, r14 cmp [rbp+var_3C], 0 jz short loc_98F3E shr r13, 2 mov rax, r13 mul rcx shr rdx, 2 loc_98F3E: mov [r10+28h], rdx mov eax, [rbp+var_38] mov [r10+3Ch], eax mov byte ptr [r10+3], 1 movups xmmword ptr [r10+118h], xmm0 loc_98F56: xor eax, eax test r14d, r14d cmovg eax, r14d mov [r10+160h], eax loc_98F66: mov eax, r14d add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long init_simple_key_cache( char *a1, unsigned int a2, unsigned long long a3, long long a4, long long a5, unsigned int a6) { unsigned long long v7; // r9 unsigned int v8; // r13d char *v9; // r10 char v10; // al unsigned long long v11; // r14 int v12; // r12d unsigned long long v13; // rdi int v14; // eax unsigned int v15; // eax unsigned int v16; // eax long long v17; // r11 long long v18; // r12 char *v19; // r8 unsigned long long v20; // rdx long long v21; // rdx long long v22; // rax unsigned long long v23; // r13 unsigned long long v24; // rbx long long v25; // rcx unsigned long long v26; // rsi long long v27; // rdx int v28; // r15d bool v29; // cc char *v30; // rdi long long v31; // rax int v32; // ecx int v33; // r8d int v34; // r9d int v35; // ebx long long v36; // rdi long long v37; // rdi unsigned long long v38; // rdx unsigned long long v39; // rdx int v40; // eax long long v42; // [rsp+0h] [rbp-A0h] char *v43; // [rsp+10h] [rbp-90h] int v44; // [rsp+18h] [rbp-88h] long long i; // [rsp+20h] [rbp-80h] int v46; // [rsp+30h] [rbp-70h] long long v47; // [rsp+38h] [rbp-68h] long long v48; // [rsp+40h] [rbp-60h] long long v49; // [rsp+48h] [rbp-58h] long long *v51; // [rsp+58h] [rbp-48h] int v52; // [rsp+64h] [rbp-3Ch] unsigned int v53; // [rsp+68h] [rbp-38h] int v54; // [rsp+6Ch] [rbp-34h] int v55; // [rsp+6Ch] [rbp-34h] v7 = a3; v8 = a2; v9 = a1; v10 = *a1; if ( *a1 ) { LODWORD(v11) = 0; if ( *((int *)a1 + 18) > 0 ) return (unsigned int)v11; } *((_OWORD *)a1 + 5) = 0LL; *(_OWORD *)(a1 + 312) = 0LL; *(_OWORD *)(a1 + 328) = 0LL; *((_QWORD *)a1 + 43) = 0LL; *((_DWORD *)a1 + 18) = -1; if ( !v10 ) { *(_WORD *)a1 = 1; *((_DWORD *)a1 + 89) = 1; a1[2] = 0; *((_QWORD *)a1 + 14) = 0LL; *((_QWORD *)a1 + 34) = 0LL; a1[360] = 0; v54 = a4; v12 = a5; *((_QWORD *)a1 + 32) = ((long long ( *)(_QWORD, char *, unsigned long long, long long, long long, unsigned long long))PSI_server[8])( key_KEY_CACHE_cache_lock, a1 + 192, a3, a4, a5, a3); *((_QWORD *)a1 + 31) = a1 + 192; *(_OWORD *)(a1 + 232) = 0LL; pthread_mutex_init(a1 + 192, &my_fast_mutexattr); LODWORD(a5) = v12; v7 = a3; LODWORD(a4) = v54; v9 = a1; *((_QWORD *)a1 + 33) = 0LL; } *((_QWORD *)v9 + 1) = v7; *((_DWORD *)v9 + 6) = a2; v13 = v7 / ((unsigned long long)a2 + 218); v14 = 128; if ( a6 >= 0x81 ) v14 = a6; if ( v13 < 8 ) { v9[3] = 0; LODWORD(v11) = *((_DWORD *)v9 + 18); goto LABEL_28; } v15 = (v14 - 1) | ((unsigned int)(v14 - 1) >> 1) | (((v14 - 1) | ((unsigned int)(v14 - 1) >> 1)) >> 2); v16 = v15 | (v15 >> 4) | ((v15 | (v15 >> 4)) >> 8); v53 = (v16 | HIWORD(v16)) + 1; v43 = v9 + 16; v51 = (long long *)(v9 + 160); v46 = (_DWORD)v9 + 128; v47 = (long long)(v9 + 136); v48 = (long long)(v9 + 296); v49 = (long long)(v9 + 304); v52 = a5; v17 = (unsigned int)a5; v55 = a4; v18 = (unsigned int)a4; v19 = v9; for ( i = v17; ; v17 = i ) { v20 = 2 * (((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4)) >> 8) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1) | ((((_DWORD)v13 - 1) | ((unsigned int)(v13 - 1) >> 1)) >> 2)) >> 4)) >> 8)) >> 16)) + 2; v21 = (unsigned int)((_DWORD)v20 << (v13 + (v13 >> 2) > v20)); *((_DWORD *)v19 + 14) = v21; v42 = 96 * v13; v22 = v8; v11 = v13 + 1; v23 = (v13 + 1) * v17; v24 = (v13 + 1) * v18; v25 = v22 * (v13 + 1); v26 = 16LL * v53 + v13 * (v22 + 208) + 8 * v21; v27 = -112 - v22; v44 = v13; v28 = 112 * v13 + 112; do { --v11; v23 -= v17; v24 -= v18; v25 -= v22; v28 -= 112; if ( v11 < 9 ) break; v29 = v26 <= v7; v26 += v27; } while ( !v29 ); *((_QWORD *)v19 + 2) = v25; v30 = v43; v31 = my_large_malloc(v43, 0LL, v27); v19 = a1; *((_QWORD *)a1 + 21) = v31; if ( v31 ) break; LABEL_15: if ( v11 <= 7 ) { *(_DWORD *)my_thread_var(v30) = 12; my_error(5, 4096, *((_DWORD *)a1 + 6) * v11, v32, v33, v34); v35 = *(_DWORD *)my_thread_var(5LL); *((_DWORD *)a1 + 18) = 0; *((_DWORD *)a1 + 88) = 0; v36 = *((_QWORD *)a1 + 21); if ( v36 ) { my_large_free(v36, *((_QWORD *)a1 + 2)); *((_QWORD *)a1 + 21) = 0LL; } v37 = *v51; if ( *v51 ) { my_free(v37); *v51 = 0LL; } *(_DWORD *)my_thread_var(v37) = v35; a1[3] = 0; LODWORD(v11) = 0; return (unsigned int)v11; } v13 = 3 * (v11 >> 2); v8 = *((_DWORD *)v19 + 6); v7 = a3; } if ( !my_multi_malloc_large( key_memory_KEY_CACHE, 32, (_DWORD)v51, v28, v46, 8 * *((_DWORD *)a1 + 14), v47, v42, v48, 8LL * v53, v49, 8LL * v53, 0LL) ) { v30 = (char *)*((_QWORD *)a1 + 21); my_large_free(v30, *((_QWORD *)a1 + 2)); *((_QWORD *)a1 + 21) = 0LL; v19 = a1; goto LABEL_15; } *((_QWORD *)a1 + 11) = v11; *((_DWORD *)a1 + 18) = v11; *((_DWORD *)a1 + 16) = 2 * v44; *((_DWORD *)a1 + 17) = 0; *((_QWORD *)a1 + 10) = 0LL; *((_QWORD *)a1 + 39) = 0LL; *((_QWORD *)a1 + 15) = 0LL; *((_QWORD *)a1 + 6) = 0LL; *((_OWORD *)a1 + 6) = 0LL; *((_OWORD *)a1 + 9) = 0LL; *((_OWORD *)a1 + 11) = 0LL; v38 = v11; v9 = a1; if ( v55 ) v38 = v24 / 0x64 + 1; *((_QWORD *)a1 + 4) = v38; v39 = v11; if ( v52 ) v39 = v23 / 0x64; *((_QWORD *)a1 + 5) = v39; *((_DWORD *)a1 + 15) = v53; a1[3] = 1; *(_OWORD *)(a1 + 280) = 0LL; LABEL_28: v40 = 0; if ( (int)v11 > 0 ) v40 = v11; *((_DWORD *)v9 + 88) = v40; return (unsigned int)v11; }
init_simple_key_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV EBX,R9D MOV R9,RDX MOV R13D,ESI MOV R10,RDI MOV AL,byte ptr [RDI] TEST AL,AL JZ 0x00198afa XOR R14D,R14D CMP dword ptr [R10 + 0x48],0x0 JG 0x00198f66 LAB_00198afa: XORPS XMM0,XMM0 MOVUPS xmmword ptr [R10 + 0x50],XMM0 MOVUPS xmmword ptr [R10 + 0x138],XMM0 MOVUPS xmmword ptr [R10 + 0x148],XMM0 MOV qword ptr [R10 + 0x158],0x0 MOV dword ptr [R10 + 0x48],0xffffffff TEST AL,AL MOV qword ptr [RBP + -0x30],R10 MOV qword ptr [RBP + -0x50],R9 JNZ 0x00198bcd MOV word ptr [R10],0x1 MOV dword ptr [R10 + 0x164],0x1 XOR R15D,R15D MOV byte ptr [R10 + 0x2],R15B MOV qword ptr [R10 + 0x70],R15 MOV qword ptr [R10 + 0x110],R15 MOV byte ptr [R10 + 0x168],R15B LEA RAX,[0xd0785c] MOV EDI,dword ptr [RAX] LEA R14,[R10 + 0xc0] LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RSI,R14 MOV dword ptr [RBP + -0x34],ECX MOV R12D,R8D CALL qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RCX + 0x100],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0xf8],R14 MOV RAX,qword ptr [RBP + -0x30] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0xe8],XMM0 LEA RSI,[0xd08570] MOV RDI,R14 CALL 0x00129320 MOV R8D,R12D MOV R9,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x34] MOV R10,qword ptr [RBP + -0x30] MOV qword ptr [R10 + 0x108],R15 LAB_00198bcd: MOV qword ptr [R10 + 0x8],R9 MOV dword ptr [R10 + 0x18],R13D MOV ESI,R13D ADD RSI,0xda MOV RAX,R9 XOR EDX,EDX DIV RSI MOV RDI,RAX CMP EBX,0x81 MOV EAX,0x80 CMOVNC EAX,EBX CMP RDI,0x8 JC 0x00198e0e DEC EAX MOV EDX,EAX SHR EDX,0x1 OR EDX,EAX MOV EAX,EDX SHR EAX,0x2 OR EAX,EDX MOV EDX,EAX SHR EDX,0x4 OR EDX,EAX MOV EAX,EDX SHR EAX,0x8 OR EAX,EDX MOV EDX,EAX SHR EDX,0x10 OR EDX,EAX INC EDX MOV dword ptr [RBP + -0x38],EDX MOV EDX,EDX MOV RAX,RDX SHL RAX,0x4 MOV qword ptr [RBP + -0x98],RAX LEA RAX,[R10 + 0x10] MOV qword ptr [RBP + -0x90],RAX LEA RAX,[R10 + 0xa0] MOV qword ptr [RBP + -0x48],RAX LEA RAX,[R10 + 0x80] MOV qword ptr [RBP + -0x70],RAX LEA RAX,[R10 + 0x88] MOV qword ptr [RBP + -0x68],RAX LEA RAX,[R10 + 0x128] MOV qword ptr [RBP + -0x60],RAX SHL RDX,0x3 MOV qword ptr [RBP + -0x78],RDX LEA RAX,[R10 + 0x130] MOV qword ptr [RBP + -0x58],RAX MOV dword ptr [RBP + -0x3c],R8D MOV R11D,R8D MOV dword ptr [RBP + -0x34],ECX MOV R12D,ECX MOV R8,R10 MOV qword ptr [RBP + -0x80],R11 LAB_00198c99: LEA EAX,[RDI + -0x1] MOV ECX,EAX SHR ECX,0x1 OR ECX,EAX MOV EAX,ECX SHR EAX,0x2 OR EAX,ECX MOV ECX,EAX SHR ECX,0x4 OR ECX,EAX MOV EAX,ECX SHR EAX,0x8 OR EAX,ECX MOV ECX,EAX SHR ECX,0x10 OR ECX,EAX LEA EDX,[0x2 + RCX*0x2] MOV RAX,RDI SHR RAX,0x2 ADD RAX,RDI CMP RAX,RDX SETA CL SHL EDX,CL MOV dword ptr [R8 + 0x38],EDX MOV RAX,RDI SHL RAX,0x5 LEA RAX,[RAX + RAX*0x2] MOV qword ptr [RBP + -0xa0],RAX MOV EAX,R13D LEA R14,[RDI + 0x1] MOV R13,R11 IMUL R13,R14 MOV RBX,R12 IMUL RBX,R14 MOV RCX,R14 IMUL RCX,RAX LEA RSI,[RAX + 0xd0] IMUL RSI,RDI ADD RSI,qword ptr [RBP + -0x98] LEA RSI,[RSI + RDX*0x8] MOV RDX,-0x70 SUB RDX,RAX MOV qword ptr [RBP + -0x88],RDI IMUL R15,RDI,0x70 ADD R15,0x70 LAB_00198d38: DEC R14 SUB R13,R11 SUB RBX,R12 SUB RCX,RAX ADD R15,-0x70 CMP R14,0x9 JC 0x00198d5a LEA RDI,[RSI + RDX*0x1] CMP RSI,R9 MOV RSI,RDI JA 0x00198d38 LAB_00198d5a: MOV qword ptr [R8 + 0x10],RCX MOV RDI,qword ptr [RBP + -0x90] XOR ESI,ESI CALL 0x001a7a6c MOV R8,qword ptr [RBP + -0x30] MOV qword ptr [R8 + 0xa8],RAX TEST RAX,RAX JZ 0x00198def LEA RAX,[0xd081f8] MOV EDI,dword ptr [RAX] MOV R9D,dword ptr [R8 + 0x38] SHL R9,0x3 SUB RSP,0x8 MOV ESI,0x20 MOV RDX,qword ptr [RBP + -0x48] MOV RCX,R15 MOV R15,R8 MOV R8,qword ptr [RBP + -0x70] XOR EAX,EAX PUSH 0x0 MOV R10,qword ptr [RBP + -0x78] PUSH R10 PUSH qword ptr [RBP + -0x58] PUSH R10 PUSH qword ptr [RBP + -0x60] PUSH qword ptr [RBP + -0xa0] PUSH qword ptr [RBP + -0x68] CALL 0x0019c84d ADD RSP,0x40 TEST RAX,RAX JNZ 0x00198eb2 MOV RSI,qword ptr [R15 + 0x10] MOV RDI,qword ptr [R15 + 0xa8] CALL 0x001a7f1b MOV qword ptr [R15 + 0xa8],0x0 MOV R8,R15 LAB_00198def: CMP R14,0x7 JBE 0x00198e1c SHR R14,0x2 LEA RDI,[R14 + R14*0x2] MOV R13D,dword ptr [R8 + 0x18] MOV R9,qword ptr [RBP + -0x50] MOV R11,qword ptr [RBP + -0x80] JMP 0x00198c99 LAB_00198e0e: MOV byte ptr [R10 + 0x3],0x0 MOV R14D,dword ptr [R10 + 0x48] JMP 0x00198f56 LAB_00198e1c: CALL 0x001a1b26 MOV dword ptr [RAX],0xc MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x18] IMUL R14,RAX XOR R15D,R15D MOV ESI,0x1000 MOV EDI,0x5 MOV RDX,R14 XOR EAX,EAX CALL 0x0019e037 CALL 0x001a1b26 MOV RCX,qword ptr [RBP + -0x30] MOV EBX,dword ptr [RAX] MOV dword ptr [RCX + 0x48],R15D MOV dword ptr [RCX + 0x160],R15D MOV RDI,qword ptr [RCX + 0xa8] TEST RDI,RDI JZ 0x00198e83 MOV RSI,qword ptr [RCX + 0x10] CALL 0x001a7f1b MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0xa8],0x0 LAB_00198e83: MOV R14,qword ptr [RBP + -0x48] MOV RDI,qword ptr [R14] TEST RDI,RDI JZ 0x00198e9b CALL 0x0019ffe2 MOV qword ptr [R14],0x0 LAB_00198e9b: CALL 0x001a1b26 MOV dword ptr [RAX],EBX MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX + 0x3],0x0 XOR R14D,R14D JMP 0x00198f66 LAB_00198eb2: MOV qword ptr [R15 + 0x58],R14 MOV dword ptr [R15 + 0x48],R14D MOV RAX,qword ptr [RBP + -0x88] ADD EAX,EAX MOV dword ptr [R15 + 0x40],EAX MOV dword ptr [R15 + 0x44],0x0 XOR EAX,EAX MOV qword ptr [R15 + 0x50],RAX MOV qword ptr [R15 + 0x138],RAX MOV qword ptr [R15 + 0x78],RAX MOV qword ptr [R15 + 0x30],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0x60],XMM0 MOVUPS xmmword ptr [R15 + 0x90],XMM0 MOVUPS xmmword ptr [R15 + 0xb0],XMM0 MOV RCX,0x28f5c28f5c28f5c3 MOV RDX,R14 CMP dword ptr [RBP + -0x34],0x0 MOV R10,R15 JZ 0x00198f23 SHR RBX,0x2 MOV RAX,RBX MUL RCX SHR RDX,0x2 INC RDX LAB_00198f23: MOV qword ptr [R10 + 0x20],RDX MOV RDX,R14 CMP dword ptr [RBP + -0x3c],0x0 JZ 0x00198f3e SHR R13,0x2 MOV RAX,R13 MUL RCX SHR RDX,0x2 LAB_00198f3e: MOV qword ptr [R10 + 0x28],RDX MOV EAX,dword ptr [RBP + -0x38] MOV dword ptr [R10 + 0x3c],EAX MOV byte ptr [R10 + 0x3],0x1 MOVUPS xmmword ptr [R10 + 0x118],XMM0 LAB_00198f56: XOR EAX,EAX TEST R14D,R14D CMOVG EAX,R14D MOV dword ptr [R10 + 0x160],EAX LAB_00198f66: MOV EAX,R14D ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong init_simple_key_cache (char *param_1,uint param_2,ulong param_3,uint param_4,uint param_5,uint param_6) { pthread_mutex_t *__mutex; long *plVar1; int4 uVar2; bool bVar3; uint uVar4; int iVar5; int8 uVar6; ulong uVar7; int4 *puVar8; long lVar9; uint uVar10; long lVar11; ulong uVar12; ulong uVar13; ulong uVar14; ulong uVar15; ulong uVar16; long lVar17; uVar12 = (ulong)param_2; if ((*param_1 == '\0') || (uVar16 = 0, *(int *)(param_1 + 0x48) < 1)) { param_1[0x50] = '\0'; param_1[0x51] = '\0'; param_1[0x52] = '\0'; param_1[0x53] = '\0'; param_1[0x54] = '\0'; param_1[0x55] = '\0'; param_1[0x56] = '\0'; param_1[0x57] = '\0'; param_1[0x58] = '\0'; param_1[0x59] = '\0'; param_1[0x5a] = '\0'; param_1[0x5b] = '\0'; param_1[0x5c] = '\0'; param_1[0x5d] = '\0'; param_1[0x5e] = '\0'; param_1[0x5f] = '\0'; param_1[0x138] = '\0'; param_1[0x139] = '\0'; param_1[0x13a] = '\0'; param_1[0x13b] = '\0'; param_1[0x13c] = '\0'; param_1[0x13d] = '\0'; param_1[0x13e] = '\0'; param_1[0x13f] = '\0'; param_1[0x140] = '\0'; param_1[0x141] = '\0'; param_1[0x142] = '\0'; param_1[0x143] = '\0'; param_1[0x144] = '\0'; param_1[0x145] = '\0'; param_1[0x146] = '\0'; param_1[0x147] = '\0'; param_1[0x148] = '\0'; param_1[0x149] = '\0'; param_1[0x14a] = '\0'; param_1[0x14b] = '\0'; param_1[0x14c] = '\0'; param_1[0x14d] = '\0'; param_1[0x14e] = '\0'; param_1[0x14f] = '\0'; param_1[0x150] = '\0'; param_1[0x151] = '\0'; param_1[0x152] = '\0'; param_1[0x153] = '\0'; param_1[0x154] = '\0'; param_1[0x155] = '\0'; param_1[0x156] = '\0'; param_1[0x157] = '\0'; param_1[0x158] = '\0'; param_1[0x159] = '\0'; param_1[0x15a] = '\0'; param_1[0x15b] = '\0'; param_1[0x15c] = '\0'; param_1[0x15d] = '\0'; param_1[0x15e] = '\0'; param_1[0x15f] = '\0'; param_1[0x48] = -1; param_1[0x49] = -1; param_1[0x4a] = -1; param_1[0x4b] = -1; if (*param_1 == '\0') { param_1[0] = '\x01'; param_1[1] = '\0'; param_1[0x164] = '\x01'; param_1[0x165] = '\0'; param_1[0x166] = '\0'; param_1[0x167] = '\0'; param_1[2] = '\0'; param_1[0x70] = '\0'; param_1[0x71] = '\0'; param_1[0x72] = '\0'; param_1[0x73] = '\0'; param_1[0x74] = '\0'; param_1[0x75] = '\0'; param_1[0x76] = '\0'; param_1[0x77] = '\0'; param_1[0x110] = '\0'; param_1[0x111] = '\0'; param_1[0x112] = '\0'; param_1[0x113] = '\0'; param_1[0x114] = '\0'; param_1[0x115] = '\0'; param_1[0x116] = '\0'; param_1[0x117] = '\0'; param_1[0x168] = '\0'; __mutex = (pthread_mutex_t *)(param_1 + 0xc0); uVar6 = (**(code **)(PSI_server + 0x40))(key_KEY_CACHE_cache_lock,__mutex); *(int8 *)(param_1 + 0x100) = uVar6; *(pthread_mutex_t **)(param_1 + 0xf8) = __mutex; param_1[0xe8] = '\0'; param_1[0xe9] = '\0'; param_1[0xea] = '\0'; param_1[0xeb] = '\0'; param_1[0xec] = '\0'; param_1[0xed] = '\0'; param_1[0xee] = '\0'; param_1[0xef] = '\0'; param_1[0xf0] = '\0'; param_1[0xf1] = '\0'; param_1[0xf2] = '\0'; param_1[0xf3] = '\0'; param_1[0xf4] = '\0'; param_1[0xf5] = '\0'; param_1[0xf6] = '\0'; param_1[0xf7] = '\0'; pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr); param_1[0x108] = '\0'; param_1[0x109] = '\0'; param_1[0x10a] = '\0'; param_1[0x10b] = '\0'; param_1[0x10c] = '\0'; param_1[0x10d] = '\0'; param_1[0x10e] = '\0'; param_1[0x10f] = '\0'; } *(ulong *)(param_1 + 8) = param_3; *(uint *)(param_1 + 0x18) = param_2; uVar7 = param_3 / ((ulong)param_2 + 0xda); uVar10 = 0x80; if (0x80 < param_6) { uVar10 = param_6; } if (7 < uVar7) { uVar10 = uVar10 - 1 >> 1 | uVar10 - 1; uVar10 = uVar10 >> 2 | uVar10; uVar10 = uVar10 >> 4 | uVar10; uVar10 = uVar10 >> 8 | uVar10; uVar10 = (uVar10 >> 0x10 | uVar10) + 1; plVar1 = (long *)(param_1 + 0xa0); lVar11 = (ulong)uVar10 << 3; do { uVar4 = (int)uVar7 - 1; uVar4 = uVar4 >> 1 | uVar4; uVar4 = uVar4 >> 2 | uVar4; uVar4 = uVar4 >> 4 | uVar4; uVar4 = uVar4 >> 8 | uVar4; uVar4 = (uVar4 >> 0x10 | uVar4) * 2 + 2; uVar4 = uVar4 << ((ulong)uVar4 < (uVar7 >> 2) + uVar7); *(uint *)(param_1 + 0x38) = uVar4; uVar16 = uVar7 + 1; uVar15 = param_5 * uVar16; uVar13 = param_4 * uVar16; lVar9 = uVar16 * uVar12; lVar17 = uVar7 * 0x70 + 0x70; uVar14 = (uVar12 + 0xd0) * uVar7 + (ulong)uVar10 * 0x10 + (ulong)uVar4 * 8; do { uVar16 = uVar16 - 1; uVar15 = uVar15 - param_5; uVar13 = uVar13 - param_4; lVar9 = lVar9 - uVar12; lVar17 = lVar17 + -0x70; if (uVar16 < 9) break; bVar3 = param_3 < uVar14; uVar14 = uVar14 + (-0x70 - uVar12); } while (bVar3); *(long *)(param_1 + 0x10) = lVar9; lVar9 = my_large_malloc(param_1 + 0x10,0); *(long *)(param_1 + 0xa8) = lVar9; if (lVar9 != 0) { lVar9 = my_multi_malloc_large (key_memory_KEY_CACHE,0x20,plVar1,lVar17,param_1 + 0x80, (ulong)*(uint *)(param_1 + 0x38) << 3,param_1 + 0x88,uVar7 * 0x60, param_1 + 0x128,lVar11,param_1 + 0x130,lVar11,0); if (lVar9 != 0) { *(ulong *)(param_1 + 0x58) = uVar16; *(int *)(param_1 + 0x48) = (int)uVar16; *(int *)(param_1 + 0x40) = (int)uVar7 * 2; param_1[0x44] = '\0'; param_1[0x45] = '\0'; param_1[0x46] = '\0'; param_1[0x47] = '\0'; param_1[0x50] = '\0'; param_1[0x51] = '\0'; param_1[0x52] = '\0'; param_1[0x53] = '\0'; param_1[0x54] = '\0'; param_1[0x55] = '\0'; param_1[0x56] = '\0'; param_1[0x57] = '\0'; param_1[0x138] = '\0'; param_1[0x139] = '\0'; param_1[0x13a] = '\0'; param_1[0x13b] = '\0'; param_1[0x13c] = '\0'; param_1[0x13d] = '\0'; param_1[0x13e] = '\0'; param_1[0x13f] = '\0'; param_1[0x78] = '\0'; param_1[0x79] = '\0'; param_1[0x7a] = '\0'; param_1[0x7b] = '\0'; param_1[0x7c] = '\0'; param_1[0x7d] = '\0'; param_1[0x7e] = '\0'; param_1[0x7f] = '\0'; param_1[0x30] = '\0'; param_1[0x31] = '\0'; param_1[0x32] = '\0'; param_1[0x33] = '\0'; param_1[0x34] = '\0'; param_1[0x35] = '\0'; param_1[0x36] = '\0'; param_1[0x37] = '\0'; param_1[0x60] = '\0'; param_1[0x61] = '\0'; param_1[0x62] = '\0'; param_1[99] = '\0'; param_1[100] = '\0'; param_1[0x65] = '\0'; param_1[0x66] = '\0'; param_1[0x67] = '\0'; param_1[0x68] = '\0'; param_1[0x69] = '\0'; param_1[0x6a] = '\0'; param_1[0x6b] = '\0'; param_1[0x6c] = '\0'; param_1[0x6d] = '\0'; param_1[0x6e] = '\0'; param_1[0x6f] = '\0'; param_1[0x90] = '\0'; param_1[0x91] = '\0'; param_1[0x92] = '\0'; param_1[0x93] = '\0'; param_1[0x94] = '\0'; param_1[0x95] = '\0'; param_1[0x96] = '\0'; param_1[0x97] = '\0'; param_1[0x98] = '\0'; param_1[0x99] = '\0'; param_1[0x9a] = '\0'; param_1[0x9b] = '\0'; param_1[0x9c] = '\0'; param_1[0x9d] = '\0'; param_1[0x9e] = '\0'; param_1[0x9f] = '\0'; param_1[0xb0] = '\0'; param_1[0xb1] = '\0'; param_1[0xb2] = '\0'; param_1[0xb3] = '\0'; param_1[0xb4] = '\0'; param_1[0xb5] = '\0'; param_1[0xb6] = '\0'; param_1[0xb7] = '\0'; param_1[0xb8] = '\0'; param_1[0xb9] = '\0'; param_1[0xba] = '\0'; param_1[0xbb] = '\0'; param_1[0xbc] = '\0'; param_1[0xbd] = '\0'; param_1[0xbe] = '\0'; param_1[0xbf] = '\0'; uVar12 = uVar16; if (param_4 != 0) { uVar12 = uVar13 / 100 + 1; } *(ulong *)(param_1 + 0x20) = uVar12; uVar12 = uVar16; if (param_5 != 0) { uVar12 = uVar15 / 100; } *(ulong *)(param_1 + 0x28) = uVar12; *(uint *)(param_1 + 0x3c) = uVar10; param_1[3] = '\x01'; param_1[0x118] = '\0'; param_1[0x119] = '\0'; param_1[0x11a] = '\0'; param_1[0x11b] = '\0'; param_1[0x11c] = '\0'; param_1[0x11d] = '\0'; param_1[0x11e] = '\0'; param_1[0x11f] = '\0'; param_1[0x120] = '\0'; param_1[0x121] = '\0'; param_1[0x122] = '\0'; param_1[0x123] = '\0'; param_1[0x124] = '\0'; param_1[0x125] = '\0'; param_1[0x126] = '\0'; param_1[0x127] = '\0'; goto LAB_00198f56; } my_large_free(*(int8 *)(param_1 + 0xa8),*(int8 *)(param_1 + 0x10)); param_1[0xa8] = '\0'; param_1[0xa9] = '\0'; param_1[0xaa] = '\0'; param_1[0xab] = '\0'; param_1[0xac] = '\0'; param_1[0xad] = '\0'; param_1[0xae] = '\0'; param_1[0xaf] = '\0'; } if (uVar16 < 8) goto LAB_00198e1c; uVar7 = (uVar16 >> 2) * 3; uVar12 = (ulong)*(uint *)(param_1 + 0x18); } while( true ); } param_1[3] = '\0'; uVar16 = (ulong)*(uint *)(param_1 + 0x48); LAB_00198f56: iVar5 = 0; if (0 < (int)uVar16) { iVar5 = (int)uVar16; } *(int *)(param_1 + 0x160) = iVar5; } LAB_00198f66: return uVar16 & 0xffffffff; LAB_00198e1c: puVar8 = (int4 *)_my_thread_var(); *puVar8 = 0xc; my_error(5,0x1000,uVar16 * *(uint *)(param_1 + 0x18)); puVar8 = (int4 *)_my_thread_var(); uVar2 = *puVar8; param_1[0x48] = '\0'; param_1[0x49] = '\0'; param_1[0x4a] = '\0'; param_1[0x4b] = '\0'; param_1[0x160] = '\0'; param_1[0x161] = '\0'; param_1[0x162] = '\0'; param_1[0x163] = '\0'; if (*(long *)(param_1 + 0xa8) != 0) { my_large_free(*(long *)(param_1 + 0xa8),*(int8 *)(param_1 + 0x10)); param_1[0xa8] = '\0'; param_1[0xa9] = '\0'; param_1[0xaa] = '\0'; param_1[0xab] = '\0'; param_1[0xac] = '\0'; param_1[0xad] = '\0'; param_1[0xae] = '\0'; param_1[0xaf] = '\0'; } if (*plVar1 != 0) { my_free(); *plVar1 = 0; } puVar8 = (int4 *)_my_thread_var(); *puVar8 = uVar2; param_1[3] = '\0'; uVar16 = 0; goto LAB_00198f66; }
33,366
google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc
void StringReplace(const std::string &s, const std::string &oldsub, const std::string &newsub, bool replace_all, std::string *res) { if (oldsub.empty()) { res->append(s); // if empty, append the given string. return; } std::string::size_type start_pos = 0; std::string::size_type pos; do { pos = s.find(oldsub, start_pos); if (pos == std::string::npos) { break; } res->append(s, start_pos, pos - start_pos); res->append(newsub); start_pos = pos + oldsub.size(); // start searching again after the "old" } while (replace_all); res->append(s, start_pos, s.length() - start_pos); }
O0
cpp
google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): subq $0x58, %rsp movb %cl, %al movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) andb $0x1, %al movb %al, 0x3f(%rsp) movq %r8, 0x30(%rsp) movq 0x48(%rsp), %rdi callq 0x147f0 testb $0x1, %al jne 0x268a0 jmp 0x268b4 movq 0x30(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x19860 jmp 0x2697a movq $0x0, 0x28(%rsp) movq 0x50(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x28(%rsp), %rdx callq 0x14700 movq %rax, 0x20(%rsp) cmpq $-0x1, 0x20(%rsp) jne 0x268e0 jmp 0x26938 movq 0x30(%rsp), %rdi movq 0x50(%rsp), %rsi movq 0x28(%rsp), %rdx movq 0x20(%rsp), %rcx subq 0x28(%rsp), %rcx callq 0x13610 movq 0x30(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x19860 movq 0x20(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x48(%rsp), %rdi callq 0x147d0 movq %rax, %rcx movq 0x18(%rsp), %rax addq %rcx, %rax movq %rax, 0x28(%rsp) testb $0x1, 0x3f(%rsp) jne 0x268bd movq 0x30(%rsp), %rax movq %rax, (%rsp) movq 0x50(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x50(%rsp), %rdi callq 0x14810 movq (%rsp), %rdi movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rax, %rcx subq 0x28(%rsp), %rcx callq 0x13610 addq $0x58, %rsp retq nop
_ZN6google8protobuf13StringReplaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_bPS6_: sub rsp, 58h mov al, cl mov [rsp+58h+var_8], rdi mov [rsp+58h+var_10], rsi mov [rsp+58h+var_18], rdx and al, 1 mov [rsp+58h+var_19], al mov [rsp+58h+var_28], r8 mov rdi, [rsp+58h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_268A0 jmp short loc_268B4 loc_268A0: mov rdi, [rsp+58h+var_28] mov rsi, [rsp+58h+var_8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) jmp loc_2697A loc_268B4: mov [rsp+58h+var_30], 0 loc_268BD: mov rdi, [rsp+58h+var_8] mov rsi, [rsp+58h+var_10] mov rdx, [rsp+58h+var_30] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong) mov [rsp+58h+var_38], rax cmp [rsp+58h+var_38], 0FFFFFFFFFFFFFFFFh jnz short loc_268E0 jmp short loc_26938 loc_268E0: mov rdi, [rsp+58h+var_28] mov rsi, [rsp+58h+var_8] mov rdx, [rsp+58h+var_30] mov rcx, [rsp+58h+var_38] sub rcx, [rsp+58h+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) mov rdi, [rsp+58h+var_28] mov rsi, [rsp+58h+var_18] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) mov rax, [rsp+58h+var_38] mov [rsp+58h+var_40], rax mov rdi, [rsp+58h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rcx, rax mov rax, [rsp+58h+var_40] add rax, rcx mov [rsp+58h+var_30], rax test [rsp+58h+var_19], 1 jnz short loc_268BD loc_26938: mov rax, [rsp+58h+var_28] mov [rsp+58h+var_58], rax mov rax, [rsp+58h+var_8] mov [rsp+58h+var_50], rax mov rax, [rsp+58h+var_30] mov [rsp+58h+var_48], rax mov rdi, [rsp+58h+var_8] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rdi, [rsp+58h+var_58] mov rsi, [rsp+58h+var_50] mov rdx, [rsp+58h+var_48] mov rcx, rax sub rcx, [rsp+58h+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) loc_2697A: add rsp, 58h retn
long long google::protobuf::StringReplace(long long a1, long long a2, long long a3, char a4, long long a5) { long long v6; // rax long long v7; // [rsp+20h] [rbp-38h] long long v8; // [rsp+28h] [rbp-30h] char v10; // [rsp+3Fh] [rbp-19h] v10 = a4 & 1; if ( std::string::empty(a2) ) return std::string::append(a5, a1); v8 = 0LL; do { v7 = std::string::find(a1, a2, v8); if ( v7 == -1 ) break; std::string::append(a5, a1, v8, v7 - v8); std::string::append(a5, a3); v8 = std::string::size(a2) + v7; } while ( (v10 & 1) != 0 ); v6 = std::string::length(a1); return std::string::append(a5, a1, v8, v6 - v8); }
StringReplace: SUB RSP,0x58 MOV AL,CL MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x40],RDX AND AL,0x1 MOV byte ptr [RSP + 0x3f],AL MOV qword ptr [RSP + 0x30],R8 MOV RDI,qword ptr [RSP + 0x48] CALL 0x001147f0 TEST AL,0x1 JNZ 0x001268a0 JMP 0x001268b4 LAB_001268a0: MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x50] CALL 0x00119860 JMP 0x0012697a LAB_001268b4: MOV qword ptr [RSP + 0x28],0x0 LAB_001268bd: MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x28] CALL 0x00114700 MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],-0x1 JNZ 0x001268e0 JMP 0x00126938 LAB_001268e0: MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x20] SUB RCX,qword ptr [RSP + 0x28] CALL 0x00113610 MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x40] CALL 0x00119860 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x001147d0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] ADD RAX,RCX MOV qword ptr [RSP + 0x28],RAX TEST byte ptr [RSP + 0x3f],0x1 JNZ 0x001268bd LAB_00126938: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x50] CALL 0x00114810 MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] MOV RCX,RAX SUB RCX,qword ptr [RSP + 0x28] CALL 0x00113610 LAB_0012697a: ADD RSP,0x58 RET
/* google::protobuf::StringReplace(std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&, bool, std::__cxx11::string*) */ void google::protobuf::StringReplace (string *param_1,string *param_2,string *param_3,bool param_4,string *param_5) { ulong uVar1; long lVar2; long lVar3; int8 local_30; uVar1 = std::__cxx11::string::empty(param_2); if ((uVar1 & 1) == 0) { local_30 = 0; do { lVar2 = std::__cxx11::string::find(param_1,param_2,local_30); if (lVar2 == -1) break; std::__cxx11::string::append(param_5,(ulong)param_1,local_30); std::__cxx11::string::append(param_5,param_3); lVar3 = std::__cxx11::string::size(param_2); local_30 = lVar2 + lVar3; } while (param_4); std::__cxx11::string::length(param_1); std::__cxx11::string::append(param_5,(ulong)param_1,local_30); } else { std::__cxx11::string::append(param_5,param_1); } return; }
33,367
google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc
void StringReplace(const std::string &s, const std::string &oldsub, const std::string &newsub, bool replace_all, std::string *res) { if (oldsub.empty()) { res->append(s); // if empty, append the given string. return; } std::string::size_type start_pos = 0; std::string::size_type pos; do { pos = s.find(oldsub, start_pos); if (pos == std::string::npos) { break; } res->append(s, start_pos, pos - start_pos); res->append(newsub); start_pos = pos + oldsub.size(); // start searching again after the "old" } while (replace_all); res->append(s, start_pos, s.length() - start_pos); }
O3
cpp
google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movl %ecx, 0x4(%rsp) movq %rdi, %r14 movq 0x8(%rsi), %rcx testq %rcx, %rcx je 0x17a95 movq %rdx, %r15 movq %rsi, %r12 xorl %ebp, %ebp movq (%r12), %rsi movq %r14, %rdi movq %rbp, %rdx callq 0x14a1a cmpq $-0x1, %rax je 0x17ab2 movq %rax, %r13 movq %rax, %rcx subq %rbp, %rcx movq %rbx, %rdi movq %r14, %rsi movq %rbp, %rdx callq 0xf460 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x13a4e movq 0x8(%r12), %rcx addq %rcx, %r13 movq %r13, %rbp cmpb $0x0, 0x4(%rsp) jne 0x17a46 jmp 0x17ab5 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x13a4e movq %rbp, %r13 movq 0x8(%r14), %rcx subq %r13, %rcx movq %rbx, %rdi movq %r14, %rsi movq %r13, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xf460
_ZN6google8protobuf13StringReplaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_bPS6_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r8 mov [rsp+38h+var_34], ecx mov r14, rdi mov rcx, [rsi+8] test rcx, rcx jz short loc_17A95 mov r15, rdx mov r12, rsi xor ebp, ebp loc_17A46: mov rsi, [r12] mov rdi, r14 mov rdx, rbp call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_17AB2 mov r13, rax mov rcx, rax sub rcx, rbp mov rdi, rbx mov rsi, r14 mov rdx, rbp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rcx, [r12+8] add r13, rcx mov rbp, r13 cmp byte ptr [rsp+38h+var_34], 0 jnz short loc_17A46 jmp short loc_17AB5 loc_17A95: mov rsi, [r14] mov rdx, [r14+8] mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) loc_17AB2: mov r13, rbp loc_17AB5: mov rcx, [r14+8] sub rcx, r13 mov rdi, rbx mov rsi, r14 mov rdx, r13 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong)
_QWORD * google::protobuf::StringReplace(long long *a1, long long a2, long long a3, char a4, _QWORD *a5) { unsigned long long v6; // rcx unsigned long long v8; // rbp long long v9; // rax long long v10; // r13 unsigned long long v11; // r13 v6 = *(_QWORD *)(a2 + 8); if ( !v6 ) return std::string::_M_append(a5, (_BYTE *)*a1, a1[1]); v8 = 0LL; while ( 1 ) { v9 = std::string::find(a1, *(char **)a2, v8, v6); if ( v9 == -1 ) break; v10 = v9; std::string::append(a5, a1, v8, v9 - v8); std::string::_M_append(a5, *(_BYTE **)a3, *(_QWORD *)(a3 + 8)); v6 = *(_QWORD *)(a2 + 8); v11 = v6 + v10; v8 = v11; if ( !a4 ) return (_QWORD *)std::string::append(a5, a1, v11, a1[1] - v11); } v11 = v8; return (_QWORD *)std::string::append(a5, a1, v11, a1[1] - v11); }
StringReplace: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R8 MOV dword ptr [RSP + 0x4],ECX MOV R14,RDI MOV RCX,qword ptr [RSI + 0x8] TEST RCX,RCX JZ 0x00117a95 MOV R15,RDX MOV R12,RSI XOR EBP,EBP LAB_00117a46: MOV RSI,qword ptr [R12] MOV RDI,R14 MOV RDX,RBP CALL 0x00114a1a CMP RAX,-0x1 JZ 0x00117ab2 MOV R13,RAX MOV RCX,RAX SUB RCX,RBP MOV RDI,RBX MOV RSI,R14 MOV RDX,RBP CALL 0x0010f460 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x00113a4e MOV RCX,qword ptr [R12 + 0x8] ADD R13,RCX MOV RBP,R13 CMP byte ptr [RSP + 0x4],0x0 JNZ 0x00117a46 JMP 0x00117ab5 LAB_00117a95: MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00113a4e LAB_00117ab2: MOV R13,RBP LAB_00117ab5: MOV RCX,qword ptr [R14 + 0x8] SUB RCX,R13 MOV RDI,RBX MOV RSI,R14 MOV RDX,R13 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0010f460
/* google::protobuf::StringReplace(std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string const&, bool, std::__cxx11::string*) */ void google::protobuf::StringReplace (string *param_1,string *param_2,string *param_3,bool param_4,string *param_5) { long lVar1; ulong uVar2; ulong uVar3; uVar2 = *(ulong *)(param_2 + 8); if (uVar2 == 0) { std::__cxx11::string::_M_append(param_5,*(char **)param_1,*(ulong *)(param_1 + 8)); return; } uVar3 = 0; do { lVar1 = std::__cxx11::string::find(param_1,*(char **)param_2,uVar3,uVar2); if (lVar1 == -1) break; std::__cxx11::string::append(param_5,(ulong)param_1,uVar3); std::__cxx11::string::_M_append(param_5,*(char **)param_3,*(ulong *)(param_3 + 8)); uVar2 = *(ulong *)(param_2 + 8); uVar3 = lVar1 + uVar2; } while (param_4); std::__cxx11::string::append(param_5,(ulong)param_1,uVar3); return; }
33,368
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) const
monkey531[P]llama/common/./json.hpp
const_reference operator[](T* key) const { return operator[](typename object_t::key_type(key)); }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0x20b66 movq %rbx, %rdi movq %r14, %rsi callq 0x26914 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x264bb movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x264e4 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 movq %rbx, %rdi callq 0x19e00
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rdi, rbx mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string const&) mov rbx, rax lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_264BB mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_264BB: mov rax, rbx add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_264E4 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_264E4: mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( long long a1, long long a2) { long long v2; // rbx void *v4[2]; // [rsp+8h] [rbp-30h] BYREF long long v5; // [rsp+18h] [rbp-20h] BYREF std::string::basic_string<std::allocator<char>>(v4, a2); v2 = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( a1, v4); if ( v4[0] != &v5 ) operator delete(v4[0], v5 + 1); return v2; }
operator[]<char_const>: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R14 CALL 0x00120b66 LAB_00126492: MOV RDI,RBX MOV RSI,R14 CALL 0x00126914 LAB_0012649d: MOV RBX,RAX LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001264bb MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197a0 LAB_001264bb: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::operator[]<char const>(char const*) const */ basic_json * __thiscall nlohmann::json_abi_v3_11_3:: basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const> (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,char *param_1) { basic_json *pbVar1; allocator local_31; long *local_30 [2]; long local_20 [2]; std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31); /* try { // try from 00126492 to 0012649c has its CatchHandler @ 001264c6 */ pbVar1 = (basic_json *)operator[](this,(string *)local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return pbVar1; }
33,369
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) const
monkey531[P]llama/common/./json.hpp
const_reference operator[](T* key) const { return operator[](typename object_t::key_type(key)); }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0x20a94 movq %rbx, %rdi movq %r14, %rsi callq 0x3b9f6 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2cf0d movq 0x18(%rsp), %rsi incq %rsi callq 0x197b0 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2cf36 movq 0x18(%rsp), %rsi incq %rsi callq 0x197b0 movq %rbx, %rdi callq 0x19e10
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rdi, rbx mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_; 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[](std::string const&) mov rbx, rax lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2CF0D mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2CF0D: mov rax, rbx add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2CF36 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2CF36: mov rdi, rbx 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>::operator[]<char const>( long long a1, long long a2) { long long v2; // rbx void *v4[2]; // [rsp+8h] [rbp-30h] BYREF long long v5; // [rsp+18h] [rbp-20h] BYREF std::string::basic_string<std::allocator<char>>(v4, a2); v2 = 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[]( a1, v4); if ( v4[0] != &v5 ) operator delete(v4[0], v5 + 1); return v2; }
operator[]<char_const>: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R14 CALL 0x00120a94 LAB_0012cee4: MOV RDI,RBX MOV RSI,R14 CALL 0x0013b9f6 LAB_0012ceef: MOV RBX,RAX LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0012cf0d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197b0 LAB_0012cf0d: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::operator[]<char const>(char const*) const */ basic_json * __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> ::operator[]<char_const> (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,char *param_1) { basic_json *pbVar1; allocator local_31; long *local_30 [2]; long local_20 [2]; std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31); /* try { // try from 0012cee4 to 0012ceee has its CatchHandler @ 0012cf18 */ pbVar1 = (basic_json *)operator[](this,(string *)local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return pbVar1; }
33,370
wake_up_waiters
eloqsql/mysys/thr_lock.c
static void wake_up_waiters(THR_LOCK *lock) { THR_LOCK_DATA *data; enum thr_lock_type lock_type; DBUG_ENTER("wake_up_waiters"); check_locks(lock, "before waking up waiters", TL_UNLOCK, 1); if (!lock->write.data) /* If no active write locks */ { data=lock->write_wait.data; if (!lock->read.data) /* If no more locks in use */ { /* Release write-locks with TL_WRITE or TL_WRITE_ONLY priority first */ if (data && (data->type != TL_WRITE_LOW_PRIORITY || !lock->read_wait.data || lock->read_wait.data->type < TL_READ_HIGH_PRIORITY)) { if (lock->write_lock_count++ > max_write_lock_count) { /* Too many write locks in a row; Release all waiting read locks */ lock->write_lock_count=0; if (lock->read_wait.data) { DBUG_PRINT("info",("Freeing all read_locks because of max_write_lock_count")); free_all_read_locks(lock,0); goto end; } } for (;;) { if (((*data->prev)=data->next)) /* remove from wait-list */ data->next->prev= data->prev; else lock->write_wait.last=data->prev; (*lock->write.last)=data; /* Put in execute list */ data->prev=lock->write.last; data->next=0; lock->write.last= &data->next; if (data->type == TL_WRITE_CONCURRENT_INSERT && (*lock->check_status)(data->status_param)) data->type=TL_WRITE; /* Upgrade lock */ /* purecov: begin inspected */ DBUG_PRINT("lock",("giving write lock of type %d to thread: %lu", data->type, (ulong) data->owner->thread_id)); /* purecov: end */ { mysql_cond_t *cond= data->cond; data->cond=0; /* Mark thread free */ mysql_cond_signal(cond); /* Start waiting thread */ } if (data->type != TL_WRITE_ALLOW_WRITE || !lock->write_wait.data || lock->write_wait.data->type != TL_WRITE_ALLOW_WRITE) break; data=lock->write_wait.data; /* Free this too */ } if (data->type >= TL_WRITE_LOW_PRIORITY) goto end; /* Release possible read locks together with the write lock */ } if (lock->read_wait.data) free_all_read_locks(lock, data && (data->type == TL_WRITE_CONCURRENT_INSERT || data->type == TL_WRITE_ALLOW_WRITE)); else { DBUG_PRINT("lock",("No waiting read locks to free")); } } else if (data && (lock_type=data->type) <= TL_WRITE_DELAYED && ((lock_type != TL_WRITE_CONCURRENT_INSERT && lock_type != TL_WRITE_ALLOW_WRITE) || !lock->read_no_write_count)) { /* For DELAYED, ALLOW_READ, WRITE_ALLOW_WRITE or CONCURRENT_INSERT locks start WRITE locks together with the READ locks */ if (lock_type == TL_WRITE_CONCURRENT_INSERT && (*lock->check_status)(data->status_param)) { data->type=TL_WRITE; /* Upgrade lock */ if (lock->read_wait.data) free_all_read_locks(lock,0); goto end; } do { mysql_cond_t *cond= data->cond; if (((*data->prev)=data->next)) /* remove from wait-list */ data->next->prev= data->prev; else lock->write_wait.last=data->prev; (*lock->write.last)=data; /* Put in execute list */ data->prev=lock->write.last; lock->write.last= &data->next; data->next=0; /* Only one write lock */ data->cond=0; /* Mark thread free */ mysql_cond_signal(cond); /* Start waiting thread */ } while (lock_type == TL_WRITE_ALLOW_WRITE && (data=lock->write_wait.data) && data->type == TL_WRITE_ALLOW_WRITE); if (lock->read_wait.data) free_all_read_locks(lock, (lock_type == TL_WRITE_CONCURRENT_INSERT || lock_type == TL_WRITE_ALLOW_WRITE)); } else if (!data && lock->read_wait.data) free_all_read_locks(lock,0); } end: check_locks(lock, "after waking up waiters", TL_UNLOCK, 0); DBUG_VOID_RETURN; }
O3
c
wake_up_waiters: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax cmpq $0x0, 0x90(%rdi) je 0x5e8a4 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rdi, %rbx movq 0x80(%rdi), %r15 cmpq $0x0, 0x70(%rdi) je 0x5e91e testq %r15, %r15 je 0x5e9ee movl 0x40(%r15), %r13d cmpl $0x9, %r13d jg 0x5e895 leal -0x9(%r13), %r14d cmpl $-0x2, %r14d jb 0x5e8db cmpl $0x0, 0xa8(%rbx) jne 0x5e895 cmpl $0x8, %r13d jne 0x5eb49 movq 0x28(%r15), %rdi callq *0xd8(%rbx) testb %al, %al je 0x5eb49 movl $0xd, 0x40(%r15) cmpq $0x0, 0x60(%rbx) je 0x5e895 movq %rbx, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x5fec0 testq %r15, %r15 je 0x5ea65 cmpl $0xb, 0x40(%r15) jne 0x5e946 movq 0x60(%rbx), %rcx testq %rcx, %rcx je 0x5e946 movl $0xb, %eax cmpl $0x3, 0x40(%rcx) jg 0x5eca0 movq 0xa0(%rbx), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xa0(%rbx) leaq 0x2d5429(%rip), %rcx # 0x333d88 cmpq (%rcx), %rax jbe 0x5ea7e movq $0x0, 0xa0(%rbx) movq 0x60(%rbx), %r12 testq %r12, %r12 je 0x5ea7e leaq 0x60(%rbx), %rax movq 0x78(%rbx), %rcx movq %r12, (%rcx) movq 0x78(%rbx), %rcx movq %rcx, 0x10(%r12) movq 0x68(%rbx), %rcx movq %rcx, 0x78(%rbx) movq %rax, 0x68(%rbx) leaq 0x2d5881(%rip), %r15 # 0x334228 movq 0x20(%r12), %r14 cmpl $0x5, 0x40(%r12) jne 0x5e9ba incl 0xa8(%rbx) movq $0x0, 0x20(%r12) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0x5e9e3 movq %r14, %rdi callq 0x28040 movq 0x8(%r12), %r12 testq %r12, %r12 jne 0x5e9a7 jmp 0x5ed5c movq (%r15), %rax callq *0x170(%rax) jmp 0x5e9cc movq 0x60(%rbx), %r15 testq %r15, %r15 je 0x5e895 leaq 0x60(%rbx), %rax movq 0x78(%rbx), %rcx movq %r15, (%rcx) movq 0x78(%rbx), %rcx movq %rcx, 0x10(%r15) movq 0x68(%rbx), %rcx movq %rcx, 0x78(%rbx) movq %rax, 0x68(%rbx) leaq 0x2d5807(%rip), %r12 # 0x334228 movq 0x20(%r15), %r14 cmpl $0x5, 0x40(%r15) jne 0x5ea32 incl 0xa8(%rbx) movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0x5ea59 movq %r14, %rdi callq 0x28040 movq 0x8(%r15), %r15 testq %r15, %r15 jne 0x5ea21 jmp 0x5ed5c movq (%r12), %rax callq *0x170(%rax) jmp 0x5ea43 movq 0x60(%rbx), %r15 testq %r15, %r15 je 0x5e895 leaq 0x60(%rbx), %rcx movb $0x1, %r12b jmp 0x5ecbb leaq 0x88(%rbx), %r12 leaq 0x2d579c(%rip), %r13 # 0x334228 leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r12, %rdx movq %rcx, (%rdx) movq 0x98(%rbx), %rcx movq %r15, (%rcx) movq 0x98(%rbx), %rcx movq %rcx, 0x10(%r15) movq $0x0, 0x8(%r15) movq %rax, 0x98(%rbx) cmpl $0x8, 0x40(%r15) jne 0x5eaee movq 0x28(%r15), %rdi callq *0xd8(%rbx) testb %al, %al je 0x5eaee movl $0xd, 0x40(%r15) movq 0x20(%r15), %r14 movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0x5eb3d movq %r14, %rdi callq 0x28040 movl 0x40(%r15), %eax cmpl $0x7, %eax jne 0x5ec97 movq 0x80(%rbx), %r15 movl $0x7, %eax testq %r15, %r15 je 0x5eca0 cmpl $0x7, 0x40(%r15) je 0x5ea8c jmp 0x5eca0 movq (%r13), %rax callq *0x170(%rax) jmp 0x5eb03 movl %r14d, -0x2c(%rbp) leaq 0x88(%rbx), %r12 movq 0x20(%r15), %r14 leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r12, %rdx movq %rcx, (%rdx) movq 0x98(%rbx), %rcx movq %r15, (%rcx) movq 0x98(%rbx), %rcx movq %rcx, 0x10(%r15) movq %rax, 0x98(%rbx) xorl %eax, %eax movq %rax, 0x8(%r15) movq %rax, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0x5ebcb movq %r14, %rdi callq 0x28040 cmpl $0x7, %r13d jne 0x5ebdd movq 0x80(%rbx), %r15 testq %r15, %r15 je 0x5ebdd cmpl $0x7, 0x40(%r15) je 0x5eb54 jmp 0x5ebdd leaq 0x2d5656(%rip), %rax # 0x334228 movq (%rax), %rax callq *0x170(%rax) jmp 0x5eba8 movq 0x60(%rbx), %r15 testq %r15, %r15 movl -0x2c(%rbp), %r12d je 0x5e895 leaq 0x60(%rbx), %rax leaq 0x78(%rbx), %r13 movq 0x78(%rbx), %rcx movq %r15, (%rcx) movq 0x78(%rbx), %rcx movq %rcx, 0x10(%r15) movq 0x68(%rbx), %rcx movq %rcx, 0x78(%rbx) movq %rax, 0x68(%rbx) movq 0x20(%r15), %r14 cmpl $0x5, 0x40(%r15) jne 0x5ec28 cmpl $-0x2, %r12d jae 0x5ec43 incl 0xa8(%rbx) movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0x5ec85 movq %r14, %rdi callq 0x28040 jmp 0x5ec77 leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r13, %rdx movq %rcx, (%rdx) movq 0x68(%rbx), %rcx movq %r15, (%rcx) movq 0x68(%rbx), %rcx movq %rcx, 0x10(%r15) movq %rax, 0x68(%rbx) movq 0x8(%r15), %r15 testq %r15, %r15 jne 0x5ec11 jmp 0x5ed5c leaq 0x2d559c(%rip), %rax # 0x334228 movq (%rax), %rax callq *0x170(%rax) jmp 0x5ec39 cmpl $0xa, %eax jg 0x5e895 movq 0x60(%rbx), %r15 testq %r15, %r15 je 0x5e895 leaq 0x60(%rbx), %rcx addl $-0x9, %eax cmpl $-0x2, %eax setb %r12b leaq 0x78(%rbx), %r13 movq 0x78(%rbx), %rax movq %r15, (%rax) movq 0x78(%rbx), %rax movq %rax, 0x10(%r15) movq 0x68(%rbx), %rax movq %rax, 0x78(%rbx) movq %rcx, 0x68(%rbx) movq 0x20(%r15), %r14 cmpl $0x5, 0x40(%r15) jne 0x5ecf0 testb %r12b, %r12b je 0x5ed0b incl 0xa8(%rbx) movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0x5ed4a movq %r14, %rdi callq 0x28040 jmp 0x5ed3f leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r13, %rdx movq %rcx, (%rdx) movq 0x68(%rbx), %rcx movq %r15, (%rcx) movq 0x68(%rbx), %rcx movq %rcx, 0x10(%r15) movq %rax, 0x68(%rbx) movq 0x8(%r15), %r15 testq %r15, %r15 jne 0x5ecda jmp 0x5ed5c leaq 0x2d54d7(%rip), %rax # 0x334228 movq (%rax), %rax callq *0x170(%rax) jmp 0x5ed01 movq 0x68(%rbx), %rax movq $0x0, (%rax) cmpq $0x0, 0x60(%rbx) jne 0x5e895 movq $0x0, 0xa0(%rbx) jmp 0x5e895
wake_up_waiters: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax cmp qword ptr [rdi+90h], 0 jz short loc_5E8A4 loc_5E895: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5E8A4: mov rbx, rdi mov r15, [rdi+80h] cmp qword ptr [rdi+70h], 0 jz short loc_5E91E test r15, r15 jz loc_5E9EE mov r13d, [r15+40h] cmp r13d, 9 jg short loc_5E895 lea r14d, [r13-9] cmp r14d, 0FFFFFFFEh jb short loc_5E8DB cmp dword ptr [rbx+0A8h], 0 jnz short loc_5E895 loc_5E8DB: cmp r13d, 8 jnz loc_5EB49 mov rdi, [r15+28h] call qword ptr [rbx+0D8h] test al, al jz loc_5EB49 mov dword ptr [r15+40h], 0Dh cmp qword ptr [rbx+60h], 0 jz short loc_5E895 mov rdi, rbx xor esi, esi add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp free_all_read_locks loc_5E91E: test r15, r15 jz loc_5EA65 cmp dword ptr [r15+40h], 0Bh jnz short loc_5E946 mov rcx, [rbx+60h] test rcx, rcx jz short loc_5E946 mov eax, 0Bh cmp dword ptr [rcx+40h], 3 jg loc_5ECA0 loc_5E946: mov rax, [rbx+0A0h] lea rcx, [rax+1] mov [rbx+0A0h], rcx lea rcx, max_write_lock_count cmp rax, [rcx] jbe loc_5EA7E mov qword ptr [rbx+0A0h], 0 mov r12, [rbx+60h] test r12, r12 jz loc_5EA7E lea rax, [rbx+60h] mov rcx, [rbx+78h] mov [rcx], r12 mov rcx, [rbx+78h] mov [r12+10h], rcx mov rcx, [rbx+68h] mov [rbx+78h], rcx mov [rbx+68h], rax lea r15, PSI_server loc_5E9A7: mov r14, [r12+20h] cmp dword ptr [r12+40h], 5 jnz short loc_5E9BA inc dword ptr [rbx+0A8h] loc_5E9BA: mov qword ptr [r12+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_5E9E3 loc_5E9CC: mov rdi, r14 call _pthread_cond_signal mov r12, [r12+8] test r12, r12 jnz short loc_5E9A7 jmp loc_5ED5C loc_5E9E3: mov rax, [r15] call qword ptr [rax+170h] jmp short loc_5E9CC loc_5E9EE: mov r15, [rbx+60h] test r15, r15 jz loc_5E895 lea rax, [rbx+60h] mov rcx, [rbx+78h] mov [rcx], r15 mov rcx, [rbx+78h] mov [r15+10h], rcx mov rcx, [rbx+68h] mov [rbx+78h], rcx mov [rbx+68h], rax lea r12, PSI_server loc_5EA21: mov r14, [r15+20h] cmp dword ptr [r15+40h], 5 jnz short loc_5EA32 inc dword ptr [rbx+0A8h] loc_5EA32: mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_5EA59 loc_5EA43: mov rdi, r14 call _pthread_cond_signal mov r15, [r15+8] test r15, r15 jnz short loc_5EA21 jmp loc_5ED5C loc_5EA59: mov rax, [r12] call qword ptr [rax+170h] jmp short loc_5EA43 loc_5EA65: mov r15, [rbx+60h] test r15, r15 jz loc_5E895 lea rcx, [rbx+60h] mov r12b, 1 jmp loc_5ECBB loc_5EA7E: lea r12, [rbx+88h] lea r13, PSI_server loc_5EA8C: lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r12 mov [rdx], rcx mov rcx, [rbx+98h] mov [rcx], r15 mov rcx, [rbx+98h] mov [r15+10h], rcx mov qword ptr [r15+8], 0 mov [rbx+98h], rax cmp dword ptr [r15+40h], 8 jnz short loc_5EAEE mov rdi, [r15+28h] call qword ptr [rbx+0D8h] test al, al jz short loc_5EAEE mov dword ptr [r15+40h], 0Dh loc_5EAEE: mov r14, [r15+20h] mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_5EB3D loc_5EB03: mov rdi, r14 call _pthread_cond_signal mov eax, [r15+40h] cmp eax, 7 jnz loc_5EC97 mov r15, [rbx+80h] mov eax, 7 test r15, r15 jz loc_5ECA0 cmp dword ptr [r15+40h], 7 jz loc_5EA8C jmp loc_5ECA0 loc_5EB3D: mov rax, [r13+0] call qword ptr [rax+170h] jmp short loc_5EB03 loc_5EB49: mov [rbp+var_2C], r14d lea r12, [rbx+88h] loc_5EB54: mov r14, [r15+20h] lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r12 mov [rdx], rcx mov rcx, [rbx+98h] mov [rcx], r15 mov rcx, [rbx+98h] mov [r15+10h], rcx mov [rbx+98h], rax xor eax, eax mov [r15+8], rax mov [r15+20h], rax mov rdi, [r14+30h] test rdi, rdi jnz short loc_5EBCB loc_5EBA8: mov rdi, r14 call _pthread_cond_signal cmp r13d, 7 jnz short loc_5EBDD mov r15, [rbx+80h] test r15, r15 jz short loc_5EBDD cmp dword ptr [r15+40h], 7 jz short loc_5EB54 jmp short loc_5EBDD loc_5EBCB: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_5EBA8 loc_5EBDD: mov r15, [rbx+60h] test r15, r15 mov r12d, [rbp+var_2C] jz loc_5E895 lea rax, [rbx+60h] lea r13, [rbx+78h] mov rcx, [rbx+78h] mov [rcx], r15 mov rcx, [rbx+78h] mov [r15+10h], rcx mov rcx, [rbx+68h] mov [rbx+78h], rcx mov [rbx+68h], rax loc_5EC11: mov r14, [r15+20h] cmp dword ptr [r15+40h], 5 jnz short loc_5EC28 cmp r12d, 0FFFFFFFEh jnb short loc_5EC43 inc dword ptr [rbx+0A8h] loc_5EC28: mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_5EC85 loc_5EC39: mov rdi, r14 call _pthread_cond_signal jmp short loc_5EC77 loc_5EC43: lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r13 mov [rdx], rcx mov rcx, [rbx+68h] mov [rcx], r15 mov rcx, [rbx+68h] mov [r15+10h], rcx mov [rbx+68h], rax loc_5EC77: mov r15, [r15+8] test r15, r15 jnz short loc_5EC11 jmp loc_5ED5C loc_5EC85: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_5EC39 loc_5EC97: cmp eax, 0Ah jg loc_5E895 loc_5ECA0: mov r15, [rbx+60h] test r15, r15 jz loc_5E895 lea rcx, [rbx+60h] add eax, 0FFFFFFF7h cmp eax, 0FFFFFFFEh setb r12b loc_5ECBB: lea r13, [rbx+78h] mov rax, [rbx+78h] mov [rax], r15 mov rax, [rbx+78h] mov [r15+10h], rax mov rax, [rbx+68h] mov [rbx+78h], rax mov [rbx+68h], rcx loc_5ECDA: mov r14, [r15+20h] cmp dword ptr [r15+40h], 5 jnz short loc_5ECF0 test r12b, r12b jz short loc_5ED0B inc dword ptr [rbx+0A8h] loc_5ECF0: mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_5ED4A loc_5ED01: mov rdi, r14 call _pthread_cond_signal jmp short loc_5ED3F loc_5ED0B: lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r13 mov [rdx], rcx mov rcx, [rbx+68h] mov [rcx], r15 mov rcx, [rbx+68h] mov [r15+10h], rcx mov [rbx+68h], rax loc_5ED3F: mov r15, [r15+8] test r15, r15 jnz short loc_5ECDA jmp short loc_5ED5C loc_5ED4A: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_5ED01 loc_5ED5C: mov rax, [rbx+68h] mov qword ptr [rax], 0 cmp qword ptr [rbx+60h], 0 jnz loc_5E895 mov qword ptr [rbx+0A0h], 0 jmp loc_5E895
long long wake_up_waiters(long long a1) { long long result; // rax long long v3; // r15 int v4; // r13d long long v5; // rcx unsigned long long v6; // rax long long v7; // r12 long long v8; // r14 long long v9; // rdi long long v10; // r15 long long v11; // r14 long long v12; // rdi long long v13; // r15 long long v14; // rcx bool v15; // r12 long long v16; // rcx _QWORD *v17; // rdx long long v18; // r14 long long v19; // rdi long long v20; // r14 long long v21; // rcx _QWORD *v22; // rdx long long v23; // rdi long long v24; // r15 long long v25; // r14 long long v26; // rdi long long v27; // rcx _QWORD *v28; // rdx long long v29; // r14 long long v30; // rdi long long v31; // rcx _QWORD *v32; // rdx if ( *(_QWORD *)(a1 + 144) ) return result; v3 = *(_QWORD *)(a1 + 128); if ( !*(_QWORD *)(a1 + 112) ) { if ( v3 ) { if ( *(_DWORD *)(v3 + 64) != 11 || (v5 = *(_QWORD *)(a1 + 96)) == 0 || (result = 11LL, *(int *)(v5 + 64) <= 3) ) { v6 = *(_QWORD *)(a1 + 160); *(_QWORD *)(a1 + 160) = v6 + 1; if ( v6 > max_write_lock_count ) { *(_QWORD *)(a1 + 160) = 0LL; v7 = *(_QWORD *)(a1 + 96); if ( v7 ) { **(_QWORD **)(a1 + 120) = v7; *(_QWORD *)(v7 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = a1 + 96; do { v8 = *(_QWORD *)(v7 + 32); if ( *(_DWORD *)(v7 + 64) == 5 ) ++*(_DWORD *)(a1 + 168); *(_QWORD *)(v7 + 32) = 0LL; v9 = *(_QWORD *)(v8 + 48); if ( v9 ) (*((void ( **)(long long))PSI_server + 46))(v9); pthread_cond_signal(v8); v7 = *(_QWORD *)(v7 + 8); } while ( v7 ); LABEL_80: result = *(_QWORD *)(a1 + 104); *(_QWORD *)result = 0LL; if ( !*(_QWORD *)(a1 + 96) ) *(_QWORD *)(a1 + 160) = 0LL; return result; } } while ( 1 ) { v16 = *(_QWORD *)(v3 + 8); **(_QWORD **)(v3 + 16) = v16; v17 = (_QWORD *)(v16 + 16); if ( !v16 ) v17 = (_QWORD *)(a1 + 136); *v17 = *(_QWORD *)(v3 + 16); **(_QWORD **)(a1 + 152) = v3; *(_QWORD *)(v3 + 16) = *(_QWORD *)(a1 + 152); *(_QWORD *)(v3 + 8) = 0LL; *(_QWORD *)(a1 + 152) = v3 + 8; if ( *(_DWORD *)(v3 + 64) == 8 && (*(unsigned __int8 ( **)(_QWORD))(a1 + 216))(*(_QWORD *)(v3 + 40)) ) *(_DWORD *)(v3 + 64) = 13; v18 = *(_QWORD *)(v3 + 32); *(_QWORD *)(v3 + 32) = 0LL; v19 = *(_QWORD *)(v18 + 48); if ( v19 ) (*((void ( **)(long long))PSI_server + 46))(v19); pthread_cond_signal(v18); result = *(unsigned int *)(v3 + 64); if ( (_DWORD)result != 7 ) break; v3 = *(_QWORD *)(a1 + 128); result = 7LL; if ( !v3 || *(_DWORD *)(v3 + 64) != 7 ) goto LABEL_67; } if ( (int)result > 10 ) return result; } LABEL_67: v13 = *(_QWORD *)(a1 + 96); if ( !v13 ) return result; v14 = a1 + 96; v15 = (unsigned int)(result - 9) < 0xFFFFFFFE; } else { v13 = *(_QWORD *)(a1 + 96); if ( !v13 ) return result; v14 = a1 + 96; v15 = 1; } **(_QWORD **)(a1 + 120) = v13; *(_QWORD *)(v13 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v14; while ( 1 ) { v29 = *(_QWORD *)(v13 + 32); if ( *(_DWORD *)(v13 + 64) == 5 ) { if ( !v15 ) { v31 = *(_QWORD *)(v13 + 8); **(_QWORD **)(v13 + 16) = v31; v32 = (_QWORD *)(v31 + 16); if ( !v31 ) v32 = (_QWORD *)(a1 + 120); *v32 = *(_QWORD *)(v13 + 16); **(_QWORD **)(a1 + 104) = v13; *(_QWORD *)(v13 + 16) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v13 + 8; goto LABEL_79; } ++*(_DWORD *)(a1 + 168); } *(_QWORD *)(v13 + 32) = 0LL; v30 = *(_QWORD *)(v29 + 48); if ( v30 ) (*((void ( **)(long long))PSI_server + 46))(v30); pthread_cond_signal(v29); LABEL_79: v13 = *(_QWORD *)(v13 + 8); if ( !v13 ) goto LABEL_80; } } if ( !v3 ) { v10 = *(_QWORD *)(a1 + 96); if ( !v10 ) return result; **(_QWORD **)(a1 + 120) = v10; *(_QWORD *)(v10 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = a1 + 96; do { v11 = *(_QWORD *)(v10 + 32); if ( *(_DWORD *)(v10 + 64) == 5 ) ++*(_DWORD *)(a1 + 168); *(_QWORD *)(v10 + 32) = 0LL; v12 = *(_QWORD *)(v11 + 48); if ( v12 ) (*((void ( **)(long long))PSI_server + 46))(v12); pthread_cond_signal(v11); v10 = *(_QWORD *)(v10 + 8); } while ( v10 ); goto LABEL_80; } v4 = *(_DWORD *)(v3 + 64); if ( v4 <= 9 && ((unsigned int)(v4 - 9) < 0xFFFFFFFE || !*(_DWORD *)(a1 + 168)) ) { if ( v4 == 8 ) { result = (*(long long ( **)(_QWORD))(a1 + 216))(*(_QWORD *)(v3 + 40)); if ( (_BYTE)result ) { *(_DWORD *)(v3 + 64) = 13; if ( *(_QWORD *)(a1 + 96) ) return free_all_read_locks(a1, 0LL); return result; } } do { v20 = *(_QWORD *)(v3 + 32); v21 = *(_QWORD *)(v3 + 8); **(_QWORD **)(v3 + 16) = v21; v22 = (_QWORD *)(v21 + 16); if ( !v21 ) v22 = (_QWORD *)(a1 + 136); *v22 = *(_QWORD *)(v3 + 16); **(_QWORD **)(a1 + 152) = v3; *(_QWORD *)(v3 + 16) = *(_QWORD *)(a1 + 152); *(_QWORD *)(a1 + 152) = v3 + 8; *(_QWORD *)(v3 + 8) = 0LL; *(_QWORD *)(v3 + 32) = 0LL; v23 = *(_QWORD *)(v20 + 48); if ( v23 ) (*((void ( **)(long long))PSI_server + 46))(v23); result = pthread_cond_signal(v20); if ( v4 != 7 ) break; v3 = *(_QWORD *)(a1 + 128); if ( !v3 ) break; } while ( *(_DWORD *)(v3 + 64) == 7 ); v24 = *(_QWORD *)(a1 + 96); if ( v24 ) { **(_QWORD **)(a1 + 120) = v24; *(_QWORD *)(v24 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = a1 + 96; while ( 1 ) { v25 = *(_QWORD *)(v24 + 32); if ( *(_DWORD *)(v24 + 64) == 5 ) { if ( (unsigned int)(v4 - 9) >= 0xFFFFFFFE ) { v27 = *(_QWORD *)(v24 + 8); **(_QWORD **)(v24 + 16) = v27; v28 = (_QWORD *)(v27 + 16); if ( !v27 ) v28 = (_QWORD *)(a1 + 120); *v28 = *(_QWORD *)(v24 + 16); **(_QWORD **)(a1 + 104) = v24; *(_QWORD *)(v24 + 16) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v24 + 8; goto LABEL_64; } ++*(_DWORD *)(a1 + 168); } *(_QWORD *)(v24 + 32) = 0LL; v26 = *(_QWORD *)(v25 + 48); if ( v26 ) (*((void ( **)(long long))PSI_server + 46))(v26); pthread_cond_signal(v25); LABEL_64: v24 = *(_QWORD *)(v24 + 8); if ( !v24 ) goto LABEL_80; } } } return result; }
wake_up_waiters: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX CMP qword ptr [RDI + 0x90],0x0 JZ 0x0015e8a4 LAB_0015e895: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015e8a4: MOV RBX,RDI MOV R15,qword ptr [RDI + 0x80] CMP qword ptr [RDI + 0x70],0x0 JZ 0x0015e91e TEST R15,R15 JZ 0x0015e9ee MOV R13D,dword ptr [R15 + 0x40] CMP R13D,0x9 JG 0x0015e895 LEA R14D,[R13 + -0x9] CMP R14D,-0x2 JC 0x0015e8db CMP dword ptr [RBX + 0xa8],0x0 JNZ 0x0015e895 LAB_0015e8db: CMP R13D,0x8 JNZ 0x0015eb49 MOV RDI,qword ptr [R15 + 0x28] CALL qword ptr [RBX + 0xd8] TEST AL,AL JZ 0x0015eb49 MOV dword ptr [R15 + 0x40],0xd CMP qword ptr [RBX + 0x60],0x0 JZ 0x0015e895 MOV RDI,RBX XOR ESI,ESI ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0015fec0 LAB_0015e91e: TEST R15,R15 JZ 0x0015ea65 CMP dword ptr [R15 + 0x40],0xb JNZ 0x0015e946 MOV RCX,qword ptr [RBX + 0x60] TEST RCX,RCX JZ 0x0015e946 MOV EAX,0xb CMP dword ptr [RCX + 0x40],0x3 JG 0x0015eca0 LAB_0015e946: MOV RAX,qword ptr [RBX + 0xa0] LEA RCX,[RAX + 0x1] MOV qword ptr [RBX + 0xa0],RCX LEA RCX,[0x433d88] CMP RAX,qword ptr [RCX] JBE 0x0015ea7e MOV qword ptr [RBX + 0xa0],0x0 MOV R12,qword ptr [RBX + 0x60] TEST R12,R12 JZ 0x0015ea7e LEA RAX,[RBX + 0x60] MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [RCX],R12 MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [R12 + 0x10],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x68],RAX LEA R15,[0x434228] LAB_0015e9a7: MOV R14,qword ptr [R12 + 0x20] CMP dword ptr [R12 + 0x40],0x5 JNZ 0x0015e9ba INC dword ptr [RBX + 0xa8] LAB_0015e9ba: MOV qword ptr [R12 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x0015e9e3 LAB_0015e9cc: MOV RDI,R14 CALL 0x00128040 MOV R12,qword ptr [R12 + 0x8] TEST R12,R12 JNZ 0x0015e9a7 JMP 0x0015ed5c LAB_0015e9e3: MOV RAX,qword ptr [R15] CALL qword ptr [RAX + 0x170] JMP 0x0015e9cc LAB_0015e9ee: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 JZ 0x0015e895 LEA RAX,[RBX + 0x60] MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [R15 + 0x10],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x68],RAX LEA R12,[0x434228] LAB_0015ea21: MOV R14,qword ptr [R15 + 0x20] CMP dword ptr [R15 + 0x40],0x5 JNZ 0x0015ea32 INC dword ptr [RBX + 0xa8] LAB_0015ea32: MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x0015ea59 LAB_0015ea43: MOV RDI,R14 CALL 0x00128040 MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x0015ea21 JMP 0x0015ed5c LAB_0015ea59: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x170] JMP 0x0015ea43 LAB_0015ea65: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 JZ 0x0015e895 LEA RCX,[RBX + 0x60] MOV R12B,0x1 JMP 0x0015ecbb LAB_0015ea7e: LEA R12,[RBX + 0x88] LEA R13,[0x434228] LAB_0015ea8c: LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R12 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [R15 + 0x8],0x0 MOV qword ptr [RBX + 0x98],RAX CMP dword ptr [R15 + 0x40],0x8 JNZ 0x0015eaee MOV RDI,qword ptr [R15 + 0x28] CALL qword ptr [RBX + 0xd8] TEST AL,AL JZ 0x0015eaee MOV dword ptr [R15 + 0x40],0xd LAB_0015eaee: MOV R14,qword ptr [R15 + 0x20] MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x0015eb3d LAB_0015eb03: MOV RDI,R14 CALL 0x00128040 MOV EAX,dword ptr [R15 + 0x40] CMP EAX,0x7 JNZ 0x0015ec97 MOV R15,qword ptr [RBX + 0x80] MOV EAX,0x7 TEST R15,R15 JZ 0x0015eca0 CMP dword ptr [R15 + 0x40],0x7 JZ 0x0015ea8c JMP 0x0015eca0 LAB_0015eb3d: MOV RAX,qword ptr [R13] CALL qword ptr [RAX + 0x170] JMP 0x0015eb03 LAB_0015eb49: MOV dword ptr [RBP + -0x2c],R14D LEA R12,[RBX + 0x88] LAB_0015eb54: MOV R14,qword ptr [R15 + 0x20] LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R12 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [RBX + 0x98],RAX XOR EAX,EAX MOV qword ptr [R15 + 0x8],RAX MOV qword ptr [R15 + 0x20],RAX MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x0015ebcb LAB_0015eba8: MOV RDI,R14 CALL 0x00128040 CMP R13D,0x7 JNZ 0x0015ebdd MOV R15,qword ptr [RBX + 0x80] TEST R15,R15 JZ 0x0015ebdd CMP dword ptr [R15 + 0x40],0x7 JZ 0x0015eb54 JMP 0x0015ebdd LAB_0015ebcb: LEA RAX,[0x434228] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0015eba8 LAB_0015ebdd: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 MOV R12D,dword ptr [RBP + -0x2c] JZ 0x0015e895 LEA RAX,[RBX + 0x60] LEA R13,[RBX + 0x78] MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [R15 + 0x10],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x68],RAX LAB_0015ec11: MOV R14,qword ptr [R15 + 0x20] CMP dword ptr [R15 + 0x40],0x5 JNZ 0x0015ec28 CMP R12D,-0x2 JNC 0x0015ec43 INC dword ptr [RBX + 0xa8] LAB_0015ec28: MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x0015ec85 LAB_0015ec39: MOV RDI,R14 CALL 0x00128040 JMP 0x0015ec77 LAB_0015ec43: LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R13 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [RBX + 0x68],RAX LAB_0015ec77: MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x0015ec11 JMP 0x0015ed5c LAB_0015ec85: LEA RAX,[0x434228] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0015ec39 LAB_0015ec97: CMP EAX,0xa JG 0x0015e895 LAB_0015eca0: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 JZ 0x0015e895 LEA RCX,[RBX + 0x60] ADD EAX,-0x9 CMP EAX,-0x2 SETC R12B LAB_0015ecbb: LEA R13,[RBX + 0x78] MOV RAX,qword ptr [RBX + 0x78] MOV qword ptr [RAX],R15 MOV RAX,qword ptr [RBX + 0x78] MOV qword ptr [R15 + 0x10],RAX MOV RAX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RAX MOV qword ptr [RBX + 0x68],RCX LAB_0015ecda: MOV R14,qword ptr [R15 + 0x20] CMP dword ptr [R15 + 0x40],0x5 JNZ 0x0015ecf0 TEST R12B,R12B JZ 0x0015ed0b INC dword ptr [RBX + 0xa8] LAB_0015ecf0: MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x0015ed4a LAB_0015ed01: MOV RDI,R14 CALL 0x00128040 JMP 0x0015ed3f LAB_0015ed0b: LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R13 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [RBX + 0x68],RAX LAB_0015ed3f: MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x0015ecda JMP 0x0015ed5c LAB_0015ed4a: LEA RAX,[0x434228] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0015ed01 LAB_0015ed5c: MOV RAX,qword ptr [RBX + 0x68] MOV qword ptr [RAX],0x0 CMP qword ptr [RBX + 0x60],0x0 JNZ 0x0015e895 MOV qword ptr [RBX + 0xa0],0x0 JMP 0x0015e895
void wake_up_waiters(long param_1) { ulong uVar1; pthread_cond_t *ppVar2; char cVar3; int iVar4; int8 *puVar5; long lVar6; long lVar7; bool bVar8; if (*(long *)(param_1 + 0x90) != 0) { return; } lVar7 = *(long *)(param_1 + 0x80); if (*(long *)(param_1 + 0x70) == 0) { if (lVar7 == 0) { lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } bVar8 = true; } else { if (((*(int *)(lVar7 + 0x40) != 0xb) || (*(long *)(param_1 + 0x60) == 0)) || (iVar4 = 0xb, *(int *)(*(long *)(param_1 + 0x60) + 0x40) < 4)) { uVar1 = *(ulong *)(param_1 + 0xa0); *(ulong *)(param_1 + 0xa0) = uVar1 + 1; if (max_write_lock_count < uVar1) { *(int8 *)(param_1 + 0xa0) = 0; lVar6 = *(long *)(param_1 + 0x60); if (lVar6 != 0) { **(long **)(param_1 + 0x78) = lVar6; *(int8 *)(lVar6 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar6 + 0x20); if (*(int *)(lVar6 + 0x40) == 5) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; } *(int8 *)(lVar6 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); lVar6 = *(long *)(lVar6 + 8); } while (lVar6 != 0); goto LAB_0015ed5c; } } while( true ) { lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x88); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x98) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x98); *(int8 *)(lVar7 + 8) = 0; *(long *)(param_1 + 0x98) = lVar7 + 8; if ((*(int *)(lVar7 + 0x40) == 8) && (cVar3 = (**(code **)(param_1 + 0xd8))(*(int8 *)(lVar7 + 0x28)), cVar3 != '\0')) { *(int4 *)(lVar7 + 0x40) = 0xd; } ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); iVar4 = *(int *)(lVar7 + 0x40); if (iVar4 != 7) break; lVar7 = *(long *)(param_1 + 0x80); iVar4 = 7; if ((lVar7 == 0) || (*(int *)(lVar7 + 0x40) != 7)) goto LAB_0015eca0; } if (10 < iVar4) { return; } } LAB_0015eca0: lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } bVar8 = iVar4 - 9U < 0xfffffffe; } **(long **)(param_1 + 0x78) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); if (*(int *)(lVar7 + 0x40) == 5) { if (bVar8) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; goto LAB_0015ecf0; } lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x78); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x68) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = lVar7 + 8; } else { LAB_0015ecf0: *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); } lVar7 = *(long *)(lVar7 + 8); } while (lVar7 != 0); } else if (lVar7 == 0) { lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } **(long **)(param_1 + 0x78) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); if (*(int *)(lVar7 + 0x40) == 5) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; } *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); lVar7 = *(long *)(lVar7 + 8); } while (lVar7 != 0); } else { iVar4 = *(int *)(lVar7 + 0x40); if (9 < iVar4) { return; } if ((0xfffffffd < iVar4 - 9U) && (*(int *)(param_1 + 0xa8) != 0)) { return; } if ((iVar4 == 8) && (cVar3 = (**(code **)(param_1 + 0xd8))(*(int8 *)(lVar7 + 0x28)), cVar3 != '\0')) { *(int4 *)(lVar7 + 0x40) = 0xd; if (*(long *)(param_1 + 0x60) == 0) { return; } free_all_read_locks(param_1,0); return; } do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x88); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x98) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x98); *(long *)(param_1 + 0x98) = lVar7 + 8; *(int8 *)(lVar7 + 8) = 0; *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); } while (((iVar4 == 7) && (lVar7 = *(long *)(param_1 + 0x80), lVar7 != 0)) && (*(int *)(lVar7 + 0x40) == 7)); lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } **(long **)(param_1 + 0x78) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); if (*(int *)(lVar7 + 0x40) == 5) { if (iVar4 - 9U < 0xfffffffe) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; goto LAB_0015ec28; } lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x78); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x68) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = lVar7 + 8; } else { LAB_0015ec28: *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); } lVar7 = *(long *)(lVar7 + 8); } while (lVar7 != 0); } LAB_0015ed5c: **(int8 **)(param_1 + 0x68) = 0; if (*(long *)(param_1 + 0x60) == 0) { *(int8 *)(param_1 + 0xa0) = 0; } return; }
33,371
ftxui::separatorCharacter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/dom/separator.cpp
Element separatorCharacter(std::string value) { return std::make_shared<Separator>(std::move(value)); }
O1
cpp
ftxui::separatorCharacter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rsi, %r12 movq %rdi, %r14 movl $0x90, %edi callq 0xb3e0 movq %rax, %rbx movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%rbx) leaq 0x33fe8(%rip), %rax # 0x586a0 movq %rax, (%rbx) leaq 0x10(%rbx), %r15 leaq 0x10(%rsp), %r13 movq %r13, -0x10(%r13) movq (%r12), %rcx leaq 0x10(%r12), %rax cmpq %rax, %rcx je 0x246e4 movq %rcx, (%rsp) movq (%rax), %rcx movq %rcx, 0x10(%rsp) jmp 0x246ec movups (%rax), %xmm0 movups %xmm0, (%r13) movq 0x8(%r12), %rcx movq %rcx, 0x8(%rsp) movq %rax, (%r12) movq $0x0, 0x8(%r12) movb $0x0, 0x10(%r12) movq %r15, %rdi callq 0x240c8 leaq 0x33fd8(%rip), %rax # 0x586f0 movq %rax, 0x10(%rbx) movq %rbx, %rax subq $-0x80, %rax movq %rax, 0x70(%rbx) movq (%rsp), %rcx cmpq %r13, %rcx je 0x24742 movq %rcx, 0x70(%rbx) movq 0x10(%rsp), %rax movq %rax, 0x80(%rbx) jmp 0x2474a movups (%r13), %xmm0 movups %xmm0, (%rax) movq 0x8(%rsp), %rax movq %rax, 0x78(%rbx) movq %r15, (%r14) movq %rbx, 0x8(%r14) movq %r14, %rax addq $0x20, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq (%rsp), %rdi cmpq %r13, %rdi je 0x24784 movq 0x10(%rsp), %rsi incq %rsi callq 0xb400 movl $0x90, %esi movq %rbx, %rdi callq 0xb400 movq %r14, %rdi callq 0xb780
_ZN5ftxui18separatorCharacterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push r13 push r12 push rbx sub rsp, 20h mov r12, rsi mov r14, rdi mov edi, 90h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov rax, 100000001h mov [rbx+8], rax lea rax, off_586A0 mov [rbx], rax lea r15, [rbx+10h] lea r13, [rsp+48h+var_38] mov [r13-10h], r13 mov rcx, [r12] lea rax, [r12+10h] cmp rcx, rax jz short loc_246E4 mov [rsp+48h+var_48], rcx mov rcx, [rax] mov [rsp+48h+var_38], rcx jmp short loc_246EC loc_246E4: movups xmm0, xmmword ptr [rax] movups xmmword ptr [r13+0], xmm0 loc_246EC: mov rcx, [r12+8] mov [rsp+48h+var_40], rcx mov [r12], rax mov qword ptr [r12+8], 0 mov byte ptr [r12+10h], 0 mov rdi, r15; this call _ZN5ftxui4NodeC2Ev; ftxui::Node::Node(void) lea rax, off_586F0 mov [rbx+10h], rax mov rax, rbx sub rax, 0FFFFFFFFFFFFFF80h mov [rbx+70h], rax mov rcx, [rsp+48h+var_48] cmp rcx, r13 jz short loc_24742 mov [rbx+70h], rcx mov rax, [rsp+48h+var_38] mov [rbx+80h], rax jmp short loc_2474A loc_24742: movups xmm0, xmmword ptr [r13+0] movups xmmword ptr [rax], xmm0 loc_2474A: mov rax, [rsp+48h+var_40] mov [rbx+78h], rax mov [r14], r15 mov [r14+8], rbx mov rax, r14 add rsp, 20h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, [rsp+0]; void * cmp rdi, r13 jz short loc_24784 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_24784: mov esi, 90h; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, r14 call __Unwind_Resume
ftxui::Node ** ftxui::separatorCharacter(ftxui::Node **a1, long long a2) { long long v2; // rbx ftxui::Node *v3; // r15 _OWORD *v4; // rax _OWORD *v6; // [rsp+0h] [rbp-48h] long long v7; // [rsp+8h] [rbp-40h] _OWORD v8[3]; // [rsp+10h] [rbp-38h] BYREF v2 = operator new(0x90uLL); *(_QWORD *)(v2 + 8) = 0x100000001LL; *(_QWORD *)v2 = off_586A0; v3 = (ftxui::Node *)(v2 + 16); v6 = v8; v4 = (_OWORD *)(a2 + 16); if ( *(_QWORD *)a2 == a2 + 16 ) { v8[0] = *v4; } else { v6 = *(_OWORD **)a2; *(_QWORD *)&v8[0] = *(_QWORD *)v4; } v7 = *(_QWORD *)(a2 + 8); *(_QWORD *)a2 = v4; *(_QWORD *)(a2 + 8) = 0LL; *(_BYTE *)(a2 + 16) = 0; ftxui::Node::Node(v3); *(_QWORD *)(v2 + 16) = off_586F0; *(_QWORD *)(v2 + 112) = v2 + 128; if ( v6 == v8 ) { *(_OWORD *)(v2 + 128) = v8[0]; } else { *(_QWORD *)(v2 + 112) = v6; *(_QWORD *)(v2 + 128) = *(_QWORD *)&v8[0]; } *(_QWORD *)(v2 + 120) = v7; *a1 = v3; a1[1] = (ftxui::Node *)v2; return a1; }
separatorCharacter: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x20 MOV R12,RSI MOV R14,RDI MOV EDI,0x90 CALL 0x0010b3e0 MOV RBX,RAX MOV RAX,0x100000001 MOV qword ptr [RBX + 0x8],RAX LEA RAX,[0x1586a0] MOV qword ptr [RBX],RAX LEA R15,[RBX + 0x10] LEA R13,[RSP + 0x10] MOV qword ptr [R13 + -0x10],R13 MOV RCX,qword ptr [R12] LEA RAX,[R12 + 0x10] CMP RCX,RAX JZ 0x001246e4 MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX] MOV qword ptr [RSP + 0x10],RCX JMP 0x001246ec LAB_001246e4: MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [R13],XMM0 LAB_001246ec: MOV RCX,qword ptr [R12 + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [R12],RAX MOV qword ptr [R12 + 0x8],0x0 MOV byte ptr [R12 + 0x10],0x0 LAB_00124709: MOV RDI,R15 CALL 0x001240c8 LAB_00124711: LEA RAX,[0x1586f0] MOV qword ptr [RBX + 0x10],RAX MOV RAX,RBX SUB RAX,-0x80 MOV qword ptr [RBX + 0x70],RAX MOV RCX,qword ptr [RSP] CMP RCX,R13 JZ 0x00124742 MOV qword ptr [RBX + 0x70],RCX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RBX + 0x80],RAX JMP 0x0012474a LAB_00124742: MOVUPS XMM0,xmmword ptr [R13] MOVUPS xmmword ptr [RAX],XMM0 LAB_0012474a: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RBX + 0x78],RAX MOV qword ptr [R14],R15 MOV qword ptr [R14 + 0x8],RBX MOV RAX,R14 ADD RSP,0x20 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* ftxui::separatorCharacter(std::__cxx11::string) */ ftxui * __thiscall ftxui::separatorCharacter(ftxui *this,long *param_2) { long *plVar1; long lVar2; int8 *puVar3; long *local_48; long local_38; long lStack_30; puVar3 = (int8 *)operator_new(0x90); puVar3[1] = 0x100000001; *puVar3 = &PTR___Sp_counted_ptr_inplace_001586a0; plVar1 = param_2 + 2; if ((long *)*param_2 == plVar1) { local_38 = *plVar1; lStack_30 = param_2[3]; local_48 = &local_38; } else { local_38 = *plVar1; local_48 = (long *)*param_2; } lVar2 = param_2[1]; *param_2 = (long)plVar1; param_2[1] = 0; *(int1 *)(param_2 + 2) = 0; /* try { // try from 00124709 to 00124710 has its CatchHandler @ 0012476b */ Node::Node((Node *)(puVar3 + 2)); puVar3[2] = &PTR__Separator_001586f0; puVar3[0xe] = puVar3 + 0x10; if (local_48 == &local_38) { puVar3[0x10] = local_38; puVar3[0x11] = lStack_30; } else { puVar3[0xe] = local_48; puVar3[0x10] = local_38; } puVar3[0xf] = lVar2; *(Node **)this = (Node *)(puVar3 + 2); *(int8 **)(this + 8) = puVar3; return this; }
33,372
minja::Value::operator*(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
Value operator*(const Value& rhs) const { if (is_string() && rhs.is_number_integer()) { std::ostringstream out; for (int64_t i = 0, n = rhs.get<int64_t>(); i < n; ++i) { out << to_str(); } return out.str(); } else if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() * rhs.get<int64_t>(); else return get<double>() * rhs.get<double>(); }
O3
cpp
minja::Value::operator*(minja::Value const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1a8, %rsp # imm = 0x1A8 movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al cmpb $0x3, %al jne 0x9acf9 movb 0x40(%r15), %al addb $-0x5, %al cmpb $0x1, %al ja 0x9ad50 leaq 0x30(%rsp), %rdi callq 0x1bda0 movq %r15, %rdi callq 0x89e32 movq %rax, %r15 testq %rax, %rax jle 0x9ac9f leaq 0x18(%rsp), %rbp leaq 0x8(%rsp), %r12 leaq 0x30(%rsp), %r13 movq %r12, %rdi movq %r14, %rsi callq 0x9a6a6 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r13, %rdi callq 0x1bbc0 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x9ac9a movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 decq %r15 jne 0x9ac66 leaq 0x38(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x1c020 leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x8de04 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9acd6 movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 movq 0x9528b(%rip), %rsi # 0x12ff68 leaq 0x30(%rsp), %rdi callq 0x1b560 leaq 0xa0(%rsp), %rdi callq 0x1b300 jmp 0x9ad9b addb $-0x5, %al cmpb $0x1, %al ja 0x9ad50 movb 0x40(%r15), %al addb $-0x5, %al cmpb $0x1, %al ja 0x9ad50 movq %r14, %rdi callq 0x89e32 movq %rax, %r14 movq %r15, %rdi callq 0x89e32 imulq %rax, %r14 leaq 0x40(%rbx), %r15 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r15, %rdi movq %r14, %rsi callq 0x6421a movq %r15, %rdi jmp 0x9ad91 movq %r14, %rdi callq 0x89f7c movsd %xmm0, 0x28(%rsp) movq %r15, %rdi callq 0x89f7c mulsd 0x28(%rsp), %xmm0 leaq 0x40(%rbx), %r14 xorps %xmm1, %xmm1 movups %xmm1, (%rbx) movups %xmm1, 0x10(%rbx) movups %xmm1, 0x20(%rbx) movups %xmm1, 0x30(%rbx) movups %xmm1, 0x40(%rbx) movq %r14, %rdi callq 0x637e2 movq %r14, %rdi movl $0x1, %esi callq 0x5c5ee movq %rbx, %rax addq $0x1a8, %rsp # imm = 0x1A8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi jne 0x9add9 jmp 0x9ade6 jmp 0x9adc7 jmp 0x9adc7 movq %rax, %rbx jmp 0x9ade6 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x9ade6 movq 0x18(%rsp), %rsi incq %rsi callq 0x1ba60 movq 0x9517b(%rip), %rsi # 0x12ff68 leaq 0x30(%rsp), %rdi callq 0x1b560 leaq 0xa0(%rsp), %rdi callq 0x1b300 movq %rbx, %rdi callq 0x1c250
_ZNK5minja5ValuemlERKS0_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1A8h mov r15, rdx mov r14, rsi mov rbx, rdi mov al, [rsi+40h] cmp al, 3 jnz loc_9ACF9 mov al, [r15+40h] add al, 0FBh cmp al, 1 ja loc_9AD50 lea rdi, [rsp+1D8h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rdi, r15 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax test rax, rax jle short loc_9AC9F lea rbp, [rsp+1D8h+var_1C0] lea r12, [rsp+1D8h+var_1D0] lea r13, [rsp+1D8h+var_1A8] loc_9AC66: mov rdi, r12 mov rsi, r14 call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void) mov rsi, [rsp+1D8h+var_1D0] mov rdx, [rsp+1D8h+var_1C8] mov rdi, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, rbp jz short loc_9AC9A mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9AC9A: dec r15 jnz short loc_9AC66 loc_9AC9F: lea rsi, [rsp+1D8h+var_1A0] lea rdi, [rsp+1D8h+var_1D0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rsi, [rsp+1D8h+var_1D0] mov rdi, rbx call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) lea rax, [rsp+1D8h+var_1C0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9ACD6 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9ACD6: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1D8h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+1D8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() jmp loc_9AD9B loc_9ACF9: add al, 0FBh cmp al, 1 ja short loc_9AD50 mov al, [r15+40h] add al, 0FBh cmp al, 1 ja short loc_9AD50 mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r14, rax mov rdi, r15 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) imul r14, rax lea r15, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r15 mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) mov rdi, r15 jmp short loc_9AD91 loc_9AD50: mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+1D8h+var_1B0], xmm0 mov rdi, r15 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) mulsd xmm0, [rsp+1D8h+var_1B0] lea r14, [rbx+40h] xorps xmm1, xmm1 movups xmmword ptr [rbx], xmm1 movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx+20h], xmm1 movups xmmword ptr [rbx+30h], xmm1 movups xmmword ptr [rbx+40h], xmm1 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) mov rdi, r14 loc_9AD91: mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_9AD9B: mov rax, rbx add rsp, 1A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h] cmp rdi, rax jnz short loc_9ADD9 jmp short loc_9ADE6 jmp short loc_9ADC7 jmp short $+2 loc_9ADC7: mov rbx, rax jmp short loc_9ADE6 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, rbp jz short loc_9ADE6 loc_9ADD9: mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9ADE6: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_28] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_98]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long minja::Value::operator*(long long a1, long long a2, long long a3) { char v5; // al long long v6; // r15 long long v7; // r14 long long v8; // rax char *v9; // rdi double v10; // xmm0_8 void *v12[2]; // [rsp+8h] [rbp-1D0h] BYREF _QWORD v13[2]; // [rsp+18h] [rbp-1C0h] BYREF double v14; // [rsp+28h] [rbp-1B0h] _BYTE v15[8]; // [rsp+30h] [rbp-1A8h] BYREF _BYTE v16[104]; // [rsp+38h] [rbp-1A0h] BYREF _BYTE v17[312]; // [rsp+A0h] [rbp-138h] BYREF v5 = *(_BYTE *)(a2 + 64); if ( v5 != 3 ) { if ( (unsigned __int8)(v5 - 5) <= 1u && (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) <= 1u ) { v7 = minja::Value::get<long>(a2); v8 = minja::Value::get<long>(a3); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v8 * v7); v9 = (char *)(a1 + 64); LABEL_14: 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(v9); return a1; } LABEL_13: v14 = minja::Value::get<double>(a2); v10 = minja::Value::get<double>(a3) * v14; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v10); v9 = (char *)(a1 + 64); goto LABEL_14; } if ( (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u ) goto LABEL_13; std::ostringstream::basic_ostringstream(v15); v6 = minja::Value::get<long>(a3); if ( v6 > 0 ) { do { minja::Value::to_str[abi:cxx11](v12, a2); std::__ostream_insert<char,std::char_traits<char>>(v15, v12[0], v12[1]); if ( v12[0] != v13 ) operator delete(v12[0], v13[0] + 1LL); --v6; } while ( v6 ); } std::stringbuf::str(v12, v16); minja::Value::Value(a1, (long long)v12); if ( v12[0] != v13 ) operator delete(v12[0], v13[0] + 1LL); std::ostringstream::~ostringstream(v15, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v17); return a1; }
operator*: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1a8 MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] CMP AL,0x3 JNZ 0x0019acf9 MOV AL,byte ptr [R15 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0019ad50 LEA RDI,[RSP + 0x30] CALL 0x0011bda0 LAB_0019ac47: MOV RDI,R15 CALL 0x00189e32 MOV R15,RAX TEST RAX,RAX JLE 0x0019ac9f LEA RBP,[RSP + 0x18] LEA R12,[RSP + 0x8] LEA R13,[RSP + 0x30] LAB_0019ac66: MOV RDI,R12 MOV RSI,R14 CALL 0x0019a6a6 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0019ac7b: MOV RDI,R13 CALL 0x0011bbc0 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBP JZ 0x0019ac9a MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011ba60 LAB_0019ac9a: DEC R15 JNZ 0x0019ac66 LAB_0019ac9f: LEA RSI,[RSP + 0x38] LAB_0019aca4: LEA RDI,[RSP + 0x8] CALL 0x0011c020 LAB_0019acae: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0018de04 LAB_0019acbb: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019acd6 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011ba60 LAB_0019acd6: MOV RSI,qword ptr [0x0022ff68] LEA RDI,[RSP + 0x30] CALL 0x0011b560 LEA RDI,[RSP + 0xa0] CALL 0x0011b300 JMP 0x0019ad9b LAB_0019acf9: ADD AL,0xfb CMP AL,0x1 JA 0x0019ad50 MOV AL,byte ptr [R15 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0019ad50 MOV RDI,R14 CALL 0x00189e32 MOV R14,RAX MOV RDI,R15 CALL 0x00189e32 IMUL R14,RAX LEA R15,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R15 MOV RSI,R14 CALL 0x0016421a MOV RDI,R15 JMP 0x0019ad91 LAB_0019ad50: MOV RDI,R14 CALL 0x00189f7c MOVSD qword ptr [RSP + 0x28],XMM0 MOV RDI,R15 CALL 0x00189f7c MULSD XMM0,qword ptr [RSP + 0x28] LEA R14,[RBX + 0x40] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX + 0x20],XMM1 MOVUPS xmmword ptr [RBX + 0x30],XMM1 MOVUPS xmmword ptr [RBX + 0x40],XMM1 MOV RDI,R14 CALL 0x001637e2 MOV RDI,R14 LAB_0019ad91: MOV ESI,0x1 CALL 0x0015c5ee LAB_0019ad9b: MOV RAX,RBX ADD RSP,0x1a8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator*(Value *this,Value *param_1) { long lVar1; long lVar2; Value *in_RDX; double dVar3; long *local_1d0; long local_1c8; long local_1c0 [2]; double local_1b0; ostringstream local_1a8 [112]; ios_base local_138 [264]; if (param_1[0x40] == (Value)0x3) { if ((byte)((char)in_RDX[0x40] - 5U) < 2) { std::__cxx11::ostringstream::ostringstream(local_1a8); /* try { // try from 0019ac47 to 0019ac4e has its CatchHandler @ 0019adc5 */ lVar1 = get<long>(in_RDX); if (0 < lVar1) { do { /* try { // try from 0019ac66 to 0019ac70 has its CatchHandler @ 0019adc7 */ to_str_abi_cxx11_(); /* try { // try from 0019ac7b to 0019ac82 has its CatchHandler @ 0019adcc */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,(char *)local_1d0,local_1c8); if (local_1d0 != local_1c0) { operator_delete(local_1d0,local_1c0[0] + 1); } lVar1 = lVar1 + -1; } while (lVar1 != 0); } /* try { // try from 0019aca4 to 0019acad has its CatchHandler @ 0019adc3 */ std::__cxx11::stringbuf::str(); /* try { // try from 0019acae to 0019acba has its CatchHandler @ 0019adb0 */ Value(this,(string *)&local_1d0); if (local_1d0 != local_1c0) { operator_delete(local_1d0,local_1c0[0] + 1); } std::__cxx11::ostringstream::~ostringstream(local_1a8); std::ios_base::~ios_base(local_138); return this; } } else if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar1 = get<long>(param_1); lVar2 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (this + 0x40,lVar1 * lVar2); goto LAB_0019ad91; } local_1b0 = get<double>(param_1); dVar3 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar3 * local_1b0,this + 0x40); LAB_0019ad91: nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((bool)((char)this + '@')); return this; }
33,373
stbi__psd_info(stbi__context*, int*, int*, int*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp) { int channelCount, dummy, depth; if (!x) x = &dummy; if (!y) y = &dummy; if (!comp) comp = &dummy; if (stbi__get32be(s) != 0x38425053) { stbi__rewind( s ); return 0; } if (stbi__get16be(s) != 1) { stbi__rewind( s ); return 0; } stbi__skip(s, 6); channelCount = stbi__get16be(s); if (channelCount < 0 || channelCount > 16) { stbi__rewind( s ); return 0; } *y = stbi__get32be(s); *x = stbi__get32be(s); depth = stbi__get16be(s); if (depth != 8 && depth != 16) { stbi__rewind( s ); return 0; } if (stbi__get16be(s) != 3) { stbi__rewind( s ); return 0; } *comp = 4; return 1; }
O0
c
stbi__psd_info(stbi__context*, int*, int*, int*): subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movq %rdx, 0x18(%rsp) movq %rcx, 0x10(%rsp) cmpq $0x0, 0x20(%rsp) jne 0xa4c5a leaq 0x8(%rsp), %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x18(%rsp) jne 0xa4c6c leaq 0x8(%rsp), %rax movq %rax, 0x18(%rsp) cmpq $0x0, 0x10(%rsp) jne 0xa4c7e leaq 0x8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x28(%rsp), %rdi callq 0x92790 cmpl $0x38425053, %eax # imm = 0x38425053 je 0xa4ca6 movq 0x28(%rsp), %rdi callq 0x907c0 movl $0x0, 0x34(%rsp) jmp 0xa4d9a movq 0x28(%rsp), %rdi callq 0x927d0 cmpl $0x1, %eax je 0xa4ccc movq 0x28(%rsp), %rdi callq 0x907c0 movl $0x0, 0x34(%rsp) jmp 0xa4d9a movq 0x28(%rsp), %rdi movl $0x6, %esi callq 0x926c0 movq 0x28(%rsp), %rdi callq 0x927d0 movl %eax, 0xc(%rsp) cmpl $0x0, 0xc(%rsp) jl 0xa4cf7 cmpl $0x10, 0xc(%rsp) jle 0xa4d0e movq 0x28(%rsp), %rdi callq 0x907c0 movl $0x0, 0x34(%rsp) jmp 0xa4d9a movq 0x28(%rsp), %rdi callq 0x92790 movl %eax, %ecx movq 0x18(%rsp), %rax movl %ecx, (%rax) movq 0x28(%rsp), %rdi callq 0x92790 movl %eax, %ecx movq 0x20(%rsp), %rax movl %ecx, (%rax) movq 0x28(%rsp), %rdi callq 0x927d0 movl %eax, 0x4(%rsp) cmpl $0x8, 0x4(%rsp) je 0xa4d64 cmpl $0x10, 0x4(%rsp) je 0xa4d64 movq 0x28(%rsp), %rdi callq 0x907c0 movl $0x0, 0x34(%rsp) jmp 0xa4d9a movq 0x28(%rsp), %rdi callq 0x927d0 cmpl $0x3, %eax je 0xa4d87 movq 0x28(%rsp), %rdi callq 0x907c0 movl $0x0, 0x34(%rsp) jmp 0xa4d9a movq 0x10(%rsp), %rax movl $0x4, (%rax) movl $0x1, 0x34(%rsp) movl 0x34(%rsp), %eax addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_ZL14stbi__psd_infoP13stbi__contextPiS1_S1_: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov [rsp+38h+var_20], rdx mov [rsp+38h+var_28], rcx cmp [rsp+38h+var_18], 0 jnz short loc_A4C5A lea rax, [rsp+38h+var_30] mov [rsp+38h+var_18], rax loc_A4C5A: cmp [rsp+38h+var_20], 0 jnz short loc_A4C6C lea rax, [rsp+38h+var_30] mov [rsp+38h+var_20], rax loc_A4C6C: cmp [rsp+38h+var_28], 0 jnz short loc_A4C7E lea rax, [rsp+38h+var_30] mov [rsp+38h+var_28], rax loc_A4C7E: mov rdi, [rsp+38h+var_10] call _ZL13stbi__get32beP13stbi__context; stbi__get32be(stbi__context *) cmp eax, 38425053h jz short loc_A4CA6 mov rdi, [rsp+38h+var_10] call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *) mov [rsp+38h+var_4], 0 jmp loc_A4D9A loc_A4CA6: mov rdi, [rsp+38h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) cmp eax, 1 jz short loc_A4CCC mov rdi, [rsp+38h+var_10] call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *) mov [rsp+38h+var_4], 0 jmp loc_A4D9A loc_A4CCC: mov rdi, [rsp+38h+var_10] mov esi, 6 call _ZL10stbi__skipP13stbi__contexti; stbi__skip(stbi__context *,int) mov rdi, [rsp+38h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov [rsp+38h+var_2C], eax cmp [rsp+38h+var_2C], 0 jl short loc_A4CF7 cmp [rsp+38h+var_2C], 10h jle short loc_A4D0E loc_A4CF7: mov rdi, [rsp+38h+var_10] call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *) mov [rsp+38h+var_4], 0 jmp loc_A4D9A loc_A4D0E: mov rdi, [rsp+38h+var_10] call _ZL13stbi__get32beP13stbi__context; stbi__get32be(stbi__context *) mov ecx, eax mov rax, [rsp+38h+var_20] mov [rax], ecx mov rdi, [rsp+38h+var_10] call _ZL13stbi__get32beP13stbi__context; stbi__get32be(stbi__context *) mov ecx, eax mov rax, [rsp+38h+var_18] mov [rax], ecx mov rdi, [rsp+38h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) mov [rsp+38h+var_34], eax cmp [rsp+38h+var_34], 8 jz short loc_A4D64 cmp [rsp+38h+var_34], 10h jz short loc_A4D64 mov rdi, [rsp+38h+var_10] call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *) mov [rsp+38h+var_4], 0 jmp short loc_A4D9A loc_A4D64: mov rdi, [rsp+38h+var_10] call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *) cmp eax, 3 jz short loc_A4D87 mov rdi, [rsp+38h+var_10] call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *) mov [rsp+38h+var_4], 0 jmp short loc_A4D9A loc_A4D87: mov rax, [rsp+38h+var_28] mov dword ptr [rax], 4 mov [rsp+38h+var_4], 1 loc_A4D9A: mov eax, [rsp+38h+var_4] add rsp, 38h retn
long long stbi__psd_info(_QWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4) { int v4; // eax int v5; // eax int v7; // [rsp+4h] [rbp-34h] _BYTE v8[4]; // [rsp+8h] [rbp-30h] BYREF unsigned int v9; // [rsp+Ch] [rbp-2Ch] _DWORD *v10; // [rsp+10h] [rbp-28h] _DWORD *v11; // [rsp+18h] [rbp-20h] _DWORD *v12; // [rsp+20h] [rbp-18h] _QWORD *v13; // [rsp+28h] [rbp-10h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; if ( !a2 ) v12 = v8; if ( !v11 ) v11 = v8; if ( !v10 ) v10 = v8; if ( (unsigned int)stbi__get32be((long long)v13) == 943870035 && (unsigned int)stbi__get16be((long long)v13) == 1 && (stbi__skip((long long)v13, 6), v9 = stbi__get16be((long long)v13), v9 <= 0x10) && ((v4 = stbi__get32be((long long)v13), *v11 = v4, v5 = stbi__get32be((long long)v13), *v12 = v5, v7 = stbi__get16be((long long)v13), v7 == 8) || v7 == 16) && (unsigned int)stbi__get16be((long long)v13) == 3 ) { *v10 = 4; return 1; } else { stbi__rewind(v13); return 0; } }
stbi__psd_info: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RSP + 0x18],RDX MOV qword ptr [RSP + 0x10],RCX CMP qword ptr [RSP + 0x20],0x0 JNZ 0x001a4c5a LEA RAX,[RSP + 0x8] MOV qword ptr [RSP + 0x20],RAX LAB_001a4c5a: CMP qword ptr [RSP + 0x18],0x0 JNZ 0x001a4c6c LEA RAX,[RSP + 0x8] MOV qword ptr [RSP + 0x18],RAX LAB_001a4c6c: CMP qword ptr [RSP + 0x10],0x0 JNZ 0x001a4c7e LEA RAX,[RSP + 0x8] MOV qword ptr [RSP + 0x10],RAX LAB_001a4c7e: MOV RDI,qword ptr [RSP + 0x28] CALL 0x00192790 CMP EAX,0x38425053 JZ 0x001a4ca6 MOV RDI,qword ptr [RSP + 0x28] CALL 0x001907c0 MOV dword ptr [RSP + 0x34],0x0 JMP 0x001a4d9a LAB_001a4ca6: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001927d0 CMP EAX,0x1 JZ 0x001a4ccc MOV RDI,qword ptr [RSP + 0x28] CALL 0x001907c0 MOV dword ptr [RSP + 0x34],0x0 JMP 0x001a4d9a LAB_001a4ccc: MOV RDI,qword ptr [RSP + 0x28] MOV ESI,0x6 CALL 0x001926c0 MOV RDI,qword ptr [RSP + 0x28] CALL 0x001927d0 MOV dword ptr [RSP + 0xc],EAX CMP dword ptr [RSP + 0xc],0x0 JL 0x001a4cf7 CMP dword ptr [RSP + 0xc],0x10 JLE 0x001a4d0e LAB_001a4cf7: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001907c0 MOV dword ptr [RSP + 0x34],0x0 JMP 0x001a4d9a LAB_001a4d0e: MOV RDI,qword ptr [RSP + 0x28] CALL 0x00192790 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX],ECX MOV RDI,qword ptr [RSP + 0x28] CALL 0x00192790 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x20] MOV dword ptr [RAX],ECX MOV RDI,qword ptr [RSP + 0x28] CALL 0x001927d0 MOV dword ptr [RSP + 0x4],EAX CMP dword ptr [RSP + 0x4],0x8 JZ 0x001a4d64 CMP dword ptr [RSP + 0x4],0x10 JZ 0x001a4d64 MOV RDI,qword ptr [RSP + 0x28] CALL 0x001907c0 MOV dword ptr [RSP + 0x34],0x0 JMP 0x001a4d9a LAB_001a4d64: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001927d0 CMP EAX,0x3 JZ 0x001a4d87 MOV RDI,qword ptr [RSP + 0x28] CALL 0x001907c0 MOV dword ptr [RSP + 0x34],0x0 JMP 0x001a4d9a LAB_001a4d87: MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX],0x4 MOV dword ptr [RSP + 0x34],0x1 LAB_001a4d9a: MOV EAX,dword ptr [RSP + 0x34] ADD RSP,0x38 RET
/* stbi__psd_info(stbi__context*, int*, int*, int*) */ int4 stbi__psd_info(stbi__context *param_1,int *param_2,int *param_3,int *param_4) { int iVar1; int local_30; int local_2c; int *local_28; int *local_20; int *local_18; stbi__context *local_10; int4 local_4; local_18 = param_2; if (param_2 == (int *)0x0) { local_18 = &local_30; } local_20 = param_3; if (param_3 == (int *)0x0) { local_20 = &local_30; } local_28 = param_4; if (param_4 == (int *)0x0) { local_28 = &local_30; } local_10 = param_1; iVar1 = stbi__get32be(param_1); if (iVar1 == 0x38425053) { iVar1 = stbi__get16be(local_10); if (iVar1 == 1) { stbi__skip(local_10,6); local_2c = stbi__get16be(local_10); if ((local_2c < 0) || (0x10 < local_2c)) { stbi__rewind(local_10); local_4 = 0; } else { iVar1 = stbi__get32be(local_10); *local_20 = iVar1; iVar1 = stbi__get32be(local_10); *local_18 = iVar1; iVar1 = stbi__get16be(local_10); if ((iVar1 == 8) || (iVar1 == 0x10)) { iVar1 = stbi__get16be(local_10); if (iVar1 == 3) { *local_28 = 4; local_4 = 1; } else { stbi__rewind(local_10); local_4 = 0; } } else { stbi__rewind(local_10); local_4 = 0; } } } else { stbi__rewind(local_10); local_4 = 0; } } else { stbi__rewind(local_10); local_4 = 0; } return local_4; }
33,374
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_object(unsigned long)
monkey531[P]llama/common/json.hpp
bool start_object(std::size_t len) { ref_stack.push_back(handle_value(BasicJsonType::value_t::object)); if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back())); } return true; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_object(unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r15 movq %rdi, %r14 leaq 0x8(%rdi), %rbx leaq 0x8(%rsp), %rsi movb $0x1, (%rsi) callq 0x48a5c leaq 0x28(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x48b3c cmpq $-0x1, %r15 je 0x486fd movq 0x10(%r14), %rax movq -0x8(%rax), %rdi callq 0x451ec cmpq %r15, %rax jb 0x4870a movb $0x1, %al addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x244f0 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x4535f leaq 0x6baf9(%rip), %rsi # 0xb4222 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x45301 movq 0x10(%r14), %rax movq -0x8(%rax), %rcx movb $0x1, %bpl leaq 0x28(%rsp), %rdx movq %rbx, %rdi movl $0x198, %esi # imm = 0x198 callq 0x45214 xorl %ebp, %ebp leaq 0xb775a(%rip), %rsi # 0xffeb8 leaq -0x5121(%rip), %rdx # 0x43644 movq %rbx, %rdi callq 0x251c0 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x254d8 jmp 0x48782 movq %rax, %r14 movb $0x1, %bpl leaq 0x8(%rsp), %rdi callq 0x254d8 testb %bpl, %bpl jne 0x48796 jmp 0x4879e movq %rax, %r14 movq %rbx, %rdi callq 0x24780 movq %r14, %rdi callq 0x25250
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12start_objectEm: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r15, rsi mov r14, rdi lea rbx, [rdi+8] lea rsi, [rsp+68h+var_60] mov byte ptr [rsi], 1 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEEPSF_OT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&) lea rsi, [rsp+68h+var_40] mov [rsi], rax mov rdi, rbx call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE12emplace_backIJSE_EEERSE_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * &&) cmp r15, 0FFFFFFFFFFFFFFFFh jz short loc_486FD mov rax, [r14+10h] mov rdi, [rax-8] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) cmp rax, r15 jb short loc_4870A loc_486FD: mov al, 1 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_4870A: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_60]; this mov rsi, r15; unsigned __int64 call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aExcessiveObjec; "excessive object size: " lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA24_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(char const(&)[24],std::string &&) mov rax, [r14+10h] mov rcx, [rax-8] mov bpl, 1 lea rdx, [rsp+68h+var_40] mov rdi, rbx; this mov esi, 198h; int call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+68h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_48782 mov r14, rax mov bpl, 1 loc_48782: lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_48796 jmp short loc_4879E mov r14, rax loc_48796: mov rdi, rbx; void * call ___cxa_free_exception loc_4879E: mov rdi, r14 call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_object( long long a1, unsigned long long a2) { nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx _BYTE v4[32]; // [rsp+8h] [rbp-60h] BYREF _QWORD v5[8]; // [rsp+28h] [rbp-40h] BYREF v4[0] = 1; v5[0] = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, v4); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>(a1 + 8); if ( a2 != -1LL && nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::max_size(*(unsigned __int8 **)(*(_QWORD *)(a1 + 16) - 8LL)) < a2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v4, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>( (long long)v5, (long long)"excessive object size: ", (long long)v4); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408, (long long)v5, *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL)); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return 1; }
start_object: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R15,RSI MOV R14,RDI LEA RBX,[RDI + 0x8] LEA RSI,[RSP + 0x8] MOV byte ptr [RSI],0x1 CALL 0x00148a5c LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x00148b3c CMP R15,-0x1 JZ 0x001486fd MOV RAX,qword ptr [R14 + 0x10] MOV RDI,qword ptr [RAX + -0x8] CALL 0x001451ec CMP RAX,R15 JC 0x0014870a LAB_001486fd: MOV AL,0x1 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0014870a: PUSH 0x20 POP RDI CALL 0x001244f0 MOV RBX,RAX LAB_00148715: LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x0014535f LAB_00148722: LEA RSI,[0x1b4222] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x00145301 MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RAX + -0x8] MOV BPL,0x1 LAB_00148743: LEA RDX,[RSP + 0x28] MOV RDI,RBX MOV ESI,0x198 CALL 0x00145214 XOR EBP,EBP LEA RSI,[0x1ffeb8] LEA RDX,[0x143644] MOV RDI,RBX CALL 0x001251c0
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::start_object(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::start_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong param_1) { ulong uVar1; int8 uVar2; __cxx11 local_60 [32]; basic_json *local_40 [4]; local_60[0] = (__cxx11)0x1; local_40[0] = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_60); std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*> ((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),local_40); if (param_1 != 0xffffffffffffffff) { uVar1 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8)); if (uVar1 < param_1) { uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 00148715 to 00148721 has its CatchHandler @ 00148793 */ std::__cxx11::to_string(local_60,param_1); /* try { // try from 00148722 to 00148737 has its CatchHandler @ 0014877c */ concat<std::__cxx11::string,char_const(&)[24],std::__cxx11::string> ((detail *)local_40,"excessive object size: ",(string *)local_60); /* try { // try from 00148743 to 0014876c has its CatchHandler @ 0014876d */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x198,local_40,*(int8 *)(*(long *)(this + 0x10) + -8)); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&out_of_range::typeinfo,exception::~exception); } } return 1; }
33,375
tree_search
eloqsql/mysys/tree.c
void *tree_search(TREE *tree, void *key, void *custom_arg) { int cmp; TREE_ELEMENT *element=tree->root; for (;;) { if (element == &null_element) return (void*) 0; if ((cmp = (*tree->compare)(custom_arg, ELEMENT_KEY(tree,element), key)) == 0) return ELEMENT_KEY(tree,element); if (cmp < 0) element=element->right; else element=element->left; } }
O0
c
tree_search: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) leaq 0x1c478a(%rip), %rax # 0x2bfdf0 cmpq %rax, -0x30(%rbp) jne 0xfb679 movq $0x0, -0x8(%rbp) jmp 0xfb738 movq -0x10(%rbp), %rax movq 0x228(%rax), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x208(%rax) je 0xfb6b4 movq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x208(%rcx), %ecx addq %rcx, %rax movq %rax, -0x48(%rbp) jmp 0xfb6c0 movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x48(%rbp) movq -0x40(%rbp), %rax movq -0x38(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x18(%rbp), %rdx callq *%rax movl %eax, -0x24(%rbp) cmpl $0x0, %eax jne 0xfb714 movq -0x10(%rbp), %rax cmpl $0x0, 0x208(%rax) je 0xfb6fe movq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x208(%rcx), %ecx addq %rcx, %rax movq %rax, -0x50(%rbp) jmp 0xfb70a movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xfb738 cmpl $0x0, -0x24(%rbp) jge 0xfb728 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x30(%rbp) jmp 0xfb733 movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) jmp 0xfb65f movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
tree_search: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_30], rax loc_FB65F: lea rax, null_element cmp [rbp+var_30], rax jnz short loc_FB679 mov [rbp+var_8], 0 jmp loc_FB738 loc_FB679: mov rax, [rbp+var_10] mov rax, [rax+228h] mov [rbp+var_40], rax mov rax, [rbp+var_20] mov [rbp+var_38], rax mov rax, [rbp+var_10] cmp dword ptr [rax+208h], 0 jz short loc_FB6B4 mov rax, [rbp+var_30] mov rcx, [rbp+var_10] mov ecx, [rcx+208h] add rax, rcx mov [rbp+var_48], rax jmp short loc_FB6C0 loc_FB6B4: mov rax, [rbp+var_30] mov rax, [rax+18h] mov [rbp+var_48], rax loc_FB6C0: mov rax, [rbp+var_40] mov rdi, [rbp+var_38] mov rsi, [rbp+var_48] mov rdx, [rbp+var_18] call rax mov [rbp+var_24], eax cmp eax, 0 jnz short loc_FB714 mov rax, [rbp+var_10] cmp dword ptr [rax+208h], 0 jz short loc_FB6FE mov rax, [rbp+var_30] mov rcx, [rbp+var_10] mov ecx, [rcx+208h] add rax, rcx mov [rbp+var_50], rax jmp short loc_FB70A loc_FB6FE: mov rax, [rbp+var_30] mov rax, [rax+18h] mov [rbp+var_50], rax loc_FB70A: mov rax, [rbp+var_50] mov [rbp+var_8], rax jmp short loc_FB738 loc_FB714: cmp [rbp+var_24], 0 jge short loc_FB728 mov rax, [rbp+var_30] mov rax, [rax+8] mov [rbp+var_30], rax jmp short loc_FB733 loc_FB728: mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_30], rax loc_FB733: jmp loc_FB65F loc_FB738: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
long long * tree_search(long long ***a1, long long a2, long long a3) { int v3; // eax long long *v6; // [rsp+10h] [rbp-40h] long long **v7; // [rsp+20h] [rbp-30h] v7 = *a1; while ( 1 ) { if ( v7 == (long long **)&null_element ) return 0LL; v6 = (long long *)a1[69]; v3 = *((_DWORD *)a1 + 130) ? ((long long ( *)(long long, char *, long long))v6)(a3, (char *)v7 + *((unsigned int *)a1 + 130), a2) : ((long long ( *)(long long, long long *, long long))v6)(a3, v7[3], a2); if ( !v3 ) break; if ( v3 >= 0 ) v7 = (long long **)*v7; else v7 = (long long **)v7[1]; } if ( *((_DWORD *)a1 + 130) ) return (long long *)((char *)v7 + *((unsigned int *)a1 + 130)); else return v7[3]; }
tree_search: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX LAB_001fb65f: LEA RAX,[0x3bfdf0] CMP qword ptr [RBP + -0x30],RAX JNZ 0x001fb679 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001fb738 LAB_001fb679: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x228] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x208],0x0 JZ 0x001fb6b4 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x208] ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX JMP 0x001fb6c0 LAB_001fb6b4: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x48],RAX LAB_001fb6c0: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RBP + -0x18] CALL RAX MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 JNZ 0x001fb714 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x208],0x0 JZ 0x001fb6fe MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x208] ADD RAX,RCX MOV qword ptr [RBP + -0x50],RAX JMP 0x001fb70a LAB_001fb6fe: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x50],RAX LAB_001fb70a: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x8],RAX JMP 0x001fb738 LAB_001fb714: CMP dword ptr [RBP + -0x24],0x0 JGE 0x001fb728 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x30],RAX JMP 0x001fb733 LAB_001fb728: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX LAB_001fb733: JMP 0x001fb65f LAB_001fb738: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
long tree_search(int8 *param_1,int8 param_2,int8 param_3) { int iVar1; long local_58; long local_50; int8 *local_38; local_38 = (int8 *)*param_1; while( true ) { if (local_38 == (int8 *)null_element) { return 0; } if (*(int *)(param_1 + 0x41) == 0) { local_50 = local_38[3]; } else { local_50 = (long)local_38 + (ulong)*(uint *)(param_1 + 0x41); } iVar1 = (*(code *)param_1[0x45])(param_3,local_50,param_2); if (iVar1 == 0) break; if (iVar1 < 0) { local_38 = (int8 *)local_38[1]; } else { local_38 = (int8 *)*local_38; } } if (*(int *)(param_1 + 0x41) == 0) { local_58 = local_38[3]; } else { local_58 = (long)local_38 + (ulong)*(uint *)(param_1 + 0x41); } return local_58; }
33,376
tree_search
eloqsql/mysys/tree.c
void *tree_search(TREE *tree, void *key, void *custom_arg) { int cmp; TREE_ELEMENT *element=tree->root; for (;;) { if (element == &null_element) return (void*) 0; if ((cmp = (*tree->compare)(custom_arg, ELEMENT_KEY(tree,element), key)) == 0) return ELEMENT_KEY(tree,element); if (cmp < 0) element=element->right; else element=element->left; } }
O3
c
tree_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq (%rdi), %rbx leaq 0x2e0b7e(%rip), %r13 # 0x385bc0 cmpq %r13, %rbx je 0xa5082 movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r15 movl 0x208(%r15), %esi testq %rsi, %rsi je 0xa5061 addq %rbx, %rsi jmp 0xa5065 movq 0x18(%rbx), %rsi movq %r14, %rdi movq %r12, %rdx callq *0x228(%r15) testl %eax, %eax je 0xa5086 shrl $0x1f, %eax movq (%rbx,%rax,8), %rbx cmpq %r13, %rbx jne 0xa5050 xorl %ebx, %ebx jmp 0xa509b movl 0x208(%r15), %eax testq %rax, %rax je 0xa5097 addq %rax, %rbx jmp 0xa509b movq 0x18(%rbx), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
tree_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, [rdi] lea r13, null_element cmp rbx, r13 jz short loc_A5082 mov r14, rdx mov r12, rsi mov r15, rdi loc_A5050: mov esi, [r15+208h] test rsi, rsi jz short loc_A5061 add rsi, rbx jmp short loc_A5065 loc_A5061: mov rsi, [rbx+18h] loc_A5065: mov rdi, r14 mov rdx, r12 call qword ptr [r15+228h] test eax, eax jz short loc_A5086 shr eax, 1Fh mov rbx, [rbx+rax*8] cmp rbx, r13 jnz short loc_A5050 loc_A5082: xor ebx, ebx jmp short loc_A509B loc_A5086: mov eax, [r15+208h] test rax, rax jz short loc_A5097 add rbx, rax jmp short loc_A509B loc_A5097: mov rbx, [rbx+18h] loc_A509B: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char * tree_search(long long a1, long long a2, long long a3) { _QWORD *v3; // rbx char *v6; // rsi unsigned int v7; // eax v3 = *(_QWORD **)a1; if ( *(_UNKNOWN **)a1 == &null_element ) return 0LL; while ( 1 ) { v6 = *(_DWORD *)(a1 + 520) ? (char *)v3 + *(unsigned int *)(a1 + 520) : (char *)v3[3]; v7 = (*(long long ( **)(long long, char *, long long))(a1 + 552))(a3, v6, a2); if ( !v7 ) break; v3 = (_QWORD *)v3[v7 >> 31]; if ( v3 == (_QWORD *)&null_element ) return 0LL; } if ( *(_DWORD *)(a1 + 520) ) return (char *)v3 + *(unsigned int *)(a1 + 520); else return (char *)v3[3]; }
tree_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,qword ptr [RDI] LEA R13,[0x485bc0] CMP RBX,R13 JZ 0x001a5082 MOV R14,RDX MOV R12,RSI MOV R15,RDI LAB_001a5050: MOV ESI,dword ptr [R15 + 0x208] TEST RSI,RSI JZ 0x001a5061 ADD RSI,RBX JMP 0x001a5065 LAB_001a5061: MOV RSI,qword ptr [RBX + 0x18] LAB_001a5065: MOV RDI,R14 MOV RDX,R12 CALL qword ptr [R15 + 0x228] TEST EAX,EAX JZ 0x001a5086 SHR EAX,0x1f MOV RBX,qword ptr [RBX + RAX*0x8] CMP RBX,R13 JNZ 0x001a5050 LAB_001a5082: XOR EBX,EBX JMP 0x001a509b LAB_001a5086: MOV EAX,dword ptr [R15 + 0x208] TEST RAX,RAX JZ 0x001a5097 ADD RBX,RAX JMP 0x001a509b LAB_001a5097: MOV RBX,qword ptr [RBX + 0x18] LAB_001a509b: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 * tree_search(long *param_1,int8 param_2,int8 param_3) { uint uVar1; int1 *puVar2; int1 *puVar3; puVar2 = (int1 *)*param_1; if (puVar2 != null_element) { do { if ((ulong)*(uint *)(param_1 + 0x41) == 0) { puVar3 = *(int1 **)(puVar2 + 0x18); } else { puVar3 = puVar2 + *(uint *)(param_1 + 0x41); } uVar1 = (*(code *)param_1[0x45])(param_3,puVar3,param_2); if (uVar1 == 0) { if ((ulong)*(uint *)(param_1 + 0x41) != 0) { return puVar2 + *(uint *)(param_1 + 0x41); } return *(int1 **)(puVar2 + 0x18); } puVar2 = *(int1 **)(puVar2 + (ulong)(uVar1 >> 0x1f) * 8); } while (puVar2 != null_element); } return (int1 *)0x0; }
33,377
ankerl::nanobench::Result::medianAbsolutePercentError(ankerl::nanobench::Result::Measure) const
BadAccessGuards/build_O0/_deps/nanobench-src/src/include/nanobench.h
double Result::medianAbsolutePercentError(Measure m) const { // create copy auto data = mNameToMeasurements[detail::u(m)]; // calculates MdAPE which is the median of percentage error // see https://support.numxl.com/hc/en-us/articles/115001223503-MdAPE-Median-Absolute-Percentage-Error auto med = calcMedian(data); // transform the data to absolute error for (auto& x : data) { x = (x - med) / x; if (x < 0) { x = -x; } } return calcMedian(data); }
O0
c
ankerl::nanobench::Result::medianAbsolutePercentError(ankerl::nanobench::Result::Measure) const: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax addq $0x118, %rax # imm = 0x118 movq %rax, -0x78(%rbp) movq -0x10(%rbp), %rdi callq 0x1df80 movq -0x78(%rbp), %rdi movq %rax, %rsi callq 0x1e180 movq %rax, %rsi leaq -0x28(%rbp), %rdi movq %rdi, -0x70(%rbp) callq 0x1e1a0 movq -0x70(%rbp), %rdi callq 0x1e290 movsd %xmm0, -0x68(%rbp) jmp 0x17986 movsd -0x68(%rbp), %xmm0 movsd %xmm0, -0x30(%rbp) leaq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rdi callq 0x1e430 movq %rax, -0x50(%rbp) movq -0x48(%rbp), %rdi callq 0x1e460 movq %rax, -0x58(%rbp) leaq -0x50(%rbp), %rdi leaq -0x58(%rbp), %rsi callq 0x1e490 testb $0x1, %al jne 0x179c8 jmp 0x17a4f leaq -0x50(%rbp), %rdi callq 0x1e4d0 movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movsd (%rax), %xmm0 subsd -0x30(%rbp), %xmm0 movq -0x60(%rbp), %rax divsd (%rax), %xmm0 movq -0x60(%rbp), %rax movsd %xmm0, (%rax) movq -0x60(%rbp), %rax xorps %xmm0, %xmm0 ucomisd (%rax), %xmm0 jbe 0x17a3f movq -0x60(%rbp), %rax movsd (%rax), %xmm0 movq %xmm0, %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movq -0x60(%rbp), %rax movsd %xmm0, (%rax) jmp 0x17a3f movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x28(%rbp), %rdi callq 0x1e370 jmp 0x17a76 jmp 0x17a41 leaq -0x50(%rbp), %rdi callq 0x1e4f0 jmp 0x179b2 leaq -0x28(%rbp), %rdi callq 0x1e290 movsd %xmm0, -0x80(%rbp) jmp 0x17a5f leaq -0x28(%rbp), %rdi callq 0x1e370 movsd -0x80(%rbp), %xmm0 addq $0x80, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x47a0 nop
_ZNK6ankerl9nanobench6Result26medianAbsolutePercentErrorENS1_7MeasureE: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] add rax, 118h mov [rbp+var_78], rax mov rdi, [rbp+var_10] call _ZN6ankerl9nanobench6detail1uINS0_6Result7MeasureEEENSt15underlying_typeIT_E4typeES6_; ankerl::nanobench::detail::u<ankerl::nanobench::Result::Measure>(ankerl::nanobench::Result::Measure) mov rdi, [rbp+var_78] mov rsi, rax call _ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm; std::vector<std::vector<double>>::operator[](ulong) mov rsi, rax lea rdi, [rbp+var_28] mov [rbp+var_70], rdi call _ZNSt6vectorIdSaIdEEC2ERKS1_; std::vector<double>::vector(std::vector<double> const&) mov rdi, [rbp+var_70] call _ZN6ankerl9nanobench10calcMedianERSt6vectorIdSaIdEE; ankerl::nanobench::calcMedian(std::vector<double> &) movsd [rbp+var_68], xmm0 jmp short $+2 loc_17986: movsd xmm0, [rbp+var_68] movsd [rbp+var_30], xmm0 lea rax, [rbp+var_28] mov [rbp+var_48], rax mov rdi, [rbp+var_48] call _ZNSt6vectorIdSaIdEE5beginEv; std::vector<double>::begin(void) mov [rbp+var_50], rax mov rdi, [rbp+var_48] call _ZNSt6vectorIdSaIdEE3endEv; std::vector<double>::end(void) mov [rbp+var_58], rax loc_179B2: lea rdi, [rbp+var_50] lea rsi, [rbp+var_58] call _ZN9__gnu_cxxneIPdSt6vectorIdSaIdEEEEbRKNS_17__normal_iteratorIT_T0_EESA_; __gnu_cxx::operator!=<double *,std::vector<double>>(__gnu_cxx::__normal_iterator<double *,std::vector<double>> const&,__gnu_cxx::__normal_iterator<double *,std::vector<double>> const&) test al, 1 jnz short loc_179C8 jmp loc_17A4F loc_179C8: lea rdi, [rbp+var_50] call _ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEdeEv; __gnu_cxx::__normal_iterator<double *,std::vector<double>>::operator*(void) mov [rbp+var_60], rax mov rax, [rbp+var_60] movsd xmm0, qword ptr [rax] subsd xmm0, [rbp+var_30] mov rax, [rbp+var_60] divsd xmm0, qword ptr [rax] mov rax, [rbp+var_60] movsd qword ptr [rax], xmm0 mov rax, [rbp+var_60] xorps xmm0, xmm0 ucomisd xmm0, qword ptr [rax] jbe short loc_17A3F mov rax, [rbp+var_60] movsd xmm0, qword ptr [rax] movq rax, xmm0 mov rcx, 8000000000000000h xor rax, rcx movq xmm0, rax mov rax, [rbp+var_60] movsd qword ptr [rax], xmm0 jmp short loc_17A3F mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_28] call _ZNSt6vectorIdSaIdEED2Ev; std::vector<double>::~vector() jmp short loc_17A76 loc_17A3F: jmp short $+2 loc_17A41: lea rdi, [rbp+var_50] call _ZN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEppEv; __gnu_cxx::__normal_iterator<double *,std::vector<double>>::operator++(void) jmp loc_179B2 loc_17A4F: lea rdi, [rbp+var_28] call _ZN6ankerl9nanobench10calcMedianERSt6vectorIdSaIdEE; ankerl::nanobench::calcMedian(std::vector<double> &) movsd [rbp+var_80], xmm0 jmp short $+2 loc_17A5F: lea rdi, [rbp+var_28] call _ZNSt6vectorIdSaIdEED2Ev; std::vector<double>::~vector() movsd xmm0, [rbp+var_80] add rsp, 80h pop rbp retn loc_17A76: mov rdi, [rbp+var_38] call __Unwind_Resume
double ankerl::nanobench::Result::medianAbsolutePercentError(long long a1, long long a2) { long long v2; // rax long long v3; // rsi double v5; // [rsp+0h] [rbp-80h] double *v6; // [rsp+20h] [rbp-60h] long long v7; // [rsp+28h] [rbp-58h] BYREF _QWORD v8[2]; // [rsp+30h] [rbp-50h] BYREF double v9; // [rsp+50h] [rbp-30h] _BYTE v10[24]; // [rsp+58h] [rbp-28h] BYREF long long v11; // [rsp+70h] [rbp-10h] long long v12; // [rsp+78h] [rbp-8h] v12 = a1; v11 = a2; v2 = ankerl::nanobench::detail::u<ankerl::nanobench::Result::Measure>(a2); v3 = std::vector<std::vector<double>>::operator[](a1 + 280, v2); std::vector<double>::vector(v10, v3); v9 = ankerl::nanobench::calcMedian(v10); v8[1] = v10; v8[0] = std::vector<double>::begin(v10); v7 = std::vector<double>::end(v10); while ( (__gnu_cxx::operator!=<double *,std::vector<double>>(v8, &v7) & 1) != 0 ) { v6 = (double *)__gnu_cxx::__normal_iterator<double *,std::vector<double>>::operator*(v8); *v6 = (*v6 - v9) / *v6; if ( *v6 < 0.0 ) *(_QWORD *)v6 ^= 0x8000000000000000LL; __gnu_cxx::__normal_iterator<double *,std::vector<double>>::operator++(v8); } v5 = ankerl::nanobench::calcMedian(v10); std::vector<double>::~vector(v10); return v5; }
medianAbsolutePercentError: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x118 MOV qword ptr [RBP + -0x78],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0011df80 MOV RDI,qword ptr [RBP + -0x78] MOV RSI,RAX CALL 0x0011e180 MOV RSI,RAX LEA RDI,[RBP + -0x28] MOV qword ptr [RBP + -0x70],RDI CALL 0x0011e1a0 MOV RDI,qword ptr [RBP + -0x70] LAB_0011797a: CALL 0x0011e290 MOVSD qword ptr [RBP + -0x68],XMM0 JMP 0x00117986 LAB_00117986: MOVSD XMM0,qword ptr [RBP + -0x68] MOVSD qword ptr [RBP + -0x30],XMM0 LEA RAX,[RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x48] CALL 0x0011e430 MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x48] CALL 0x0011e460 MOV qword ptr [RBP + -0x58],RAX LAB_001179b2: LEA RDI,[RBP + -0x50] LEA RSI,[RBP + -0x58] CALL 0x0011e490 TEST AL,0x1 JNZ 0x001179c8 JMP 0x00117a4f LAB_001179c8: LEA RDI,[RBP + -0x50] CALL 0x0011e4d0 MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] MOVSD XMM0,qword ptr [RAX] SUBSD XMM0,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x60] DIVSD XMM0,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x60] MOVSD qword ptr [RAX],XMM0 MOV RAX,qword ptr [RBP + -0x60] XORPS XMM0,XMM0 UCOMISD XMM0,qword ptr [RAX] JBE 0x00117a3f MOV RAX,qword ptr [RBP + -0x60] MOVSD XMM0,qword ptr [RAX] MOVQ RAX,XMM0 MOV RCX,-0x8000000000000000 XOR RAX,RCX MOVQ XMM0,RAX MOV RAX,qword ptr [RBP + -0x60] MOVSD qword ptr [RAX],XMM0 JMP 0x00117a3f LAB_00117a3f: JMP 0x00117a41 LAB_00117a41: LEA RDI,[RBP + -0x50] CALL 0x0011e4f0 JMP 0x001179b2 LAB_00117a4f: LEA RDI,[RBP + -0x28] CALL 0x0011e290 LAB_00117a58: MOVSD qword ptr [RBP + -0x80],XMM0 JMP 0x00117a5f LAB_00117a5f: LEA RDI,[RBP + -0x28] CALL 0x0011e370 MOVSD XMM0,qword ptr [RBP + -0x80] ADD RSP,0x80 POP RBP RET
/* ankerl::nanobench::Result::medianAbsolutePercentError(ankerl::nanobench::Result::Measure) const */ int8 __thiscall ankerl::nanobench::Result::medianAbsolutePercentError(Result *this,int8 param_2) { bool bVar1; ulong uVar2; vector *pvVar3; double *pdVar4; int8 uVar5; int8 local_60; int8 local_58; vector<double,std::allocator<double>> *local_50; double local_38; vector<double,std::allocator<double>> local_30 [24]; int8 local_18; Result *local_10; local_18 = param_2; local_10 = this; uVar2 = detail::u<ankerl::nanobench::Result::Measure>(param_2); pvVar3 = (vector *) std:: vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> ::operator[]((vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> *)(this + 0x118),uVar2); std::vector<double,std::allocator<double>>::vector(local_30,pvVar3); /* try { // try from 0011797a to 00117a57 has its CatchHandler @ 00117a28 */ local_38 = (double)calcMedian((vector *)local_30); local_50 = local_30; local_58 = std::vector<double,std::allocator<double>>::begin(local_50); local_60 = std::vector<double,std::allocator<double>>::end(local_50); while( true ) { bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_58,(__normal_iterator *)&local_60); if (!bVar1) break; pdVar4 = (double *) __gnu_cxx::__normal_iterator<double*,std::vector<double,std::allocator<double>>>:: operator*((__normal_iterator<double*,std::vector<double,std::allocator<double>>> *) &local_58); *pdVar4 = (*pdVar4 - local_38) / *pdVar4; if (*pdVar4 <= 0.0 && *pdVar4 != 0.0) { *pdVar4 = -*pdVar4; } __gnu_cxx::__normal_iterator<double*,std::vector<double,std::allocator<double>>>::operator++ ((__normal_iterator<double*,std::vector<double,std::allocator<double>>> *)&local_58); } uVar5 = calcMedian((vector *)local_30); std::vector<double,std::allocator<double>>::~vector(local_30); return uVar5; }
33,378
my_rw_wrlock
eloqsql/mysys/thr_rwlock.c
int my_rw_wrlock(my_rw_lock_t *rwp) { pthread_mutex_lock(&rwp->lock); rwp->waiters++; /* another writer queued */ my_rw_lock_assert_not_write_owner(rwp); while (rwp->state) pthread_cond_wait(&rwp->writers, &rwp->lock); rwp->state = -1; rwp->waiters--; #ifdef SAFE_MUTEX rwp->write_thread= pthread_self(); #endif pthread_mutex_unlock(&rwp->lock); return(0); }
O0
c
my_rw_wrlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x243f0 movq -0x8(%rbp), %rax movl 0x8c(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x8c(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x88(%rax) je 0x34968 movq -0x8(%rbp), %rdi addq $0x58, %rdi movq -0x8(%rbp), %rsi callq 0x24470 jmp 0x34948 movq -0x8(%rbp), %rax movl $0xffffffff, 0x88(%rax) # imm = 0xFFFFFFFF movq -0x8(%rbp), %rax movl 0x8c(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x8c(%rax) movq -0x8(%rbp), %rdi callq 0x241e0 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
my_rw_wrlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] call _pthread_mutex_lock mov rax, [rbp+var_8] mov ecx, [rax+8Ch] add ecx, 1 mov [rax+8Ch], ecx loc_34948: mov rax, [rbp+var_8] cmp dword ptr [rax+88h], 0 jz short loc_34968 mov rdi, [rbp+var_8] add rdi, 58h ; 'X' mov rsi, [rbp+var_8] call _pthread_cond_wait jmp short loc_34948 loc_34968: mov rax, [rbp+var_8] mov dword ptr [rax+88h], 0FFFFFFFFh mov rax, [rbp+var_8] mov ecx, [rax+8Ch] add ecx, 0FFFFFFFFh mov [rax+8Ch], ecx mov rdi, [rbp+var_8] call _pthread_mutex_unlock xor eax, eax add rsp, 10h pop rbp retn
long long my_rw_wrlock(long long a1) { pthread_mutex_lock(a1); ++*(_DWORD *)(a1 + 140); while ( *(_DWORD *)(a1 + 136) ) pthread_cond_wait(a1 + 88, a1); *(_DWORD *)(a1 + 136) = -1; --*(_DWORD *)(a1 + 140); pthread_mutex_unlock(a1); return 0LL; }
my_rw_wrlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] CALL 0x001243f0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x8c] ADD ECX,0x1 MOV dword ptr [RAX + 0x8c],ECX LAB_00134948: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x88],0x0 JZ 0x00134968 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x58 MOV RSI,qword ptr [RBP + -0x8] CALL 0x00124470 JMP 0x00134948 LAB_00134968: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x88],0xffffffff MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x8c] ADD ECX,-0x1 MOV dword ptr [RAX + 0x8c],ECX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001241e0 XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 my_rw_wrlock(pthread_mutex_t *param_1) { pthread_mutex_lock(param_1); *(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + 1; while (*(int *)((long)param_1 + 0x88) != 0) { pthread_cond_wait((pthread_cond_t *)((long)param_1 + 0x58),param_1); } *(int4 *)((long)param_1 + 0x88) = 0xffffffff; *(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + -1; pthread_mutex_unlock(param_1); return 0; }
33,379
my_mb_wc_sjis
eloqsql/strings/ctype-sjis.c
static int my_mb_wc_sjis(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e){ int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) /* ASCII: [00..7F] -> [U+0000..U+007F] */ { *pwc= hi; return 1; } /* JIS-X-0201 Half width Katakana: [A1..DF] -> [U+FF61..U+FF9F] */ if (hi >= 0xA1 && hi <= 0xDF) { *pwc= sjis_to_unicode[hi]; return 1; } if (s + 2 > e) return MY_CS_TOOSMALL2; /* JIS-X-0208 [81..9F,E0..FC][40..7E,80..FC] */ if (!(pwc[0]= sjis_to_unicode[(hi << 8) + s[1]])) return (issjishead(hi) && issjistail(s[1])) ? -2 : MY_CS_ILSEQ; return 2; }
O0
c
my_mb_wc_sjis: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x4831a movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x48478 movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x80, %eax jge 0x48342 movslq -0x2c(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x48478 cmpl $0xa1, -0x2c(%rbp) jl 0x48378 cmpl $0xdf, -0x2c(%rbp) jg 0x48378 movslq -0x2c(%rbp), %rcx leaq 0x232611(%rip), %rax # 0x27a970 movzwl (%rax,%rcx,2), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x48478 movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x48392 movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x48478 movl -0x2c(%rbp), %eax shll $0x8, %eax movq -0x20(%rbp), %rcx movzbl 0x1(%rcx), %ecx addl %ecx, %eax movslq %eax, %rcx leaq 0x2325c4(%rip), %rax # 0x27a970 movzwl (%rax,%rcx,2), %eax movq -0x18(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x48471 movl -0x2c(%rbp), %eax movzbl %al, %ecx movl $0x81, %eax cmpl %ecx, %eax jg 0x483dd movl -0x2c(%rbp), %eax movzbl %al, %eax cmpl $0x9f, %eax jle 0x48404 movl -0x2c(%rbp), %eax movzbl %al, %edx xorl %eax, %eax movl $0xe0, %ecx cmpl %edx, %ecx movb %al, -0x2d(%rbp) jg 0x4845c movl -0x2c(%rbp), %eax movzbl %al, %ecx xorl %eax, %eax cmpl $0xfc, %ecx movb %al, -0x2d(%rbp) jg 0x4845c movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movl $0x40, %eax cmpl %ecx, %eax jg 0x48427 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movb $0x1, %al cmpl $0x7e, %ecx movb %al, -0x2e(%rbp) jle 0x48456 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %edx xorl %eax, %eax movl $0x80, %ecx cmpl %edx, %ecx movb %al, -0x2f(%rbp) jg 0x48450 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xfc, %eax setle %al movb %al, -0x2f(%rbp) movb -0x2f(%rbp), %al movb %al, -0x2e(%rbp) movb -0x2e(%rbp), %al movb %al, -0x2d(%rbp) movb -0x2d(%rbp), %dl xorl %eax, %eax movl $0xfffffffe, %ecx # imm = 0xFFFFFFFE testb $0x1, %dl cmovnel %ecx, %eax movl %eax, -0x4(%rbp) jmp 0x48478 movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
my_mb_wc_sjis: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_4831A mov [rbp+var_4], 0FFFFFF9Bh jmp loc_48478 loc_4831A: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov [rbp+var_2C], eax cmp eax, 80h jge short loc_48342 movsxd rcx, [rbp+var_2C] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_48478 loc_48342: cmp [rbp+var_2C], 0A1h jl short loc_48378 cmp [rbp+var_2C], 0DFh jg short loc_48378 movsxd rcx, [rbp+var_2C] lea rax, sjis_to_unicode movzx eax, word ptr [rax+rcx*2] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_48478 loc_48378: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_48392 mov [rbp+var_4], 0FFFFFF9Ah jmp loc_48478 loc_48392: mov eax, [rbp+var_2C] shl eax, 8 mov rcx, [rbp+var_20] movzx ecx, byte ptr [rcx+1] add eax, ecx movsxd rcx, eax lea rax, sjis_to_unicode movzx eax, word ptr [rax+rcx*2] mov rcx, [rbp+var_18] mov [rcx], rax cmp rax, 0 jnz loc_48471 mov eax, [rbp+var_2C] movzx ecx, al mov eax, 81h cmp eax, ecx jg short loc_483DD mov eax, [rbp+var_2C] movzx eax, al cmp eax, 9Fh jle short loc_48404 loc_483DD: mov eax, [rbp+var_2C] movzx edx, al xor eax, eax mov ecx, 0E0h cmp ecx, edx mov [rbp+var_2D], al jg short loc_4845C mov eax, [rbp+var_2C] movzx ecx, al xor eax, eax cmp ecx, 0FCh mov [rbp+var_2D], al jg short loc_4845C loc_48404: mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov eax, 40h ; '@' cmp eax, ecx jg short loc_48427 mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov al, 1 cmp ecx, 7Eh ; '~' mov [rbp+var_2E], al jle short loc_48456 loc_48427: mov rax, [rbp+var_20] movzx edx, byte ptr [rax+1] xor eax, eax mov ecx, 80h cmp ecx, edx mov [rbp+var_2F], al jg short loc_48450 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0FCh setle al mov [rbp+var_2F], al loc_48450: mov al, [rbp+var_2F] mov [rbp+var_2E], al loc_48456: mov al, [rbp+var_2E] mov [rbp+var_2D], al loc_4845C: mov dl, [rbp+var_2D] xor eax, eax mov ecx, 0FFFFFFFEh test dl, 1 cmovnz eax, ecx mov [rbp+var_4], eax jmp short loc_48478 loc_48471: mov [rbp+var_4], 2 loc_48478: mov eax, [rbp+var_4] pop rbp retn
long long my_mb_wc_sjis(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { long long v4; // rax unsigned int v5; // eax bool v7; // [rsp+1h] [rbp-2Fh] char v8; // [rsp+2h] [rbp-2Eh] char v9; // [rsp+3h] [rbp-2Dh] unsigned int v10; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { v10 = *a3; if ( v10 >= 0x80 ) { if ( *a3 < 0xA1u || *a3 > 0xDFu ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { v4 = sjis_to_unicode[a3[1] + (v10 << 8)]; *a2 = v4; if ( v4 ) { return 2; } else { if ( (unsigned __int8)v10 >= 0x81u && (unsigned __int8)v10 <= 0x9Fu || (v9 = 0, (unsigned __int8)v10 >= 0xE0u) && (v9 = 0, (unsigned __int8)v10 <= 0xFCu) ) { if ( a3[1] < 0x40u || (v8 = 1, a3[1] > 0x7Eu) ) { v7 = 0; if ( a3[1] >= 0x80u ) v7 = a3[1] <= 0xFCu; v8 = v7; } v9 = v8; } v5 = 0; if ( (v9 & 1) != 0 ) return (unsigned int)-2; return v5; } } else { return (unsigned int)-102; } } else { *a2 = sjis_to_unicode[*a3]; return 1; } } else { *a2 = *a3; return 1; } } else { return (unsigned int)-101; } }
my_mb_wc_sjis: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0014831a MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00148478 LAB_0014831a: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x80 JGE 0x00148342 MOVSXD RCX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x00148478 LAB_00148342: CMP dword ptr [RBP + -0x2c],0xa1 JL 0x00148378 CMP dword ptr [RBP + -0x2c],0xdf JG 0x00148378 MOVSXD RCX,dword ptr [RBP + -0x2c] LEA RAX,[0x37a970] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x00148478 LAB_00148378: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x00148392 MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x00148478 LAB_00148392: MOV EAX,dword ptr [RBP + -0x2c] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RCX + 0x1] ADD EAX,ECX MOVSXD RCX,EAX LEA RAX,[0x37a970] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x00148471 MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL MOV EAX,0x81 CMP EAX,ECX JG 0x001483dd MOV EAX,dword ptr [RBP + -0x2c] MOVZX EAX,AL CMP EAX,0x9f JLE 0x00148404 LAB_001483dd: MOV EAX,dword ptr [RBP + -0x2c] MOVZX EDX,AL XOR EAX,EAX MOV ECX,0xe0 CMP ECX,EDX MOV byte ptr [RBP + -0x2d],AL JG 0x0014845c MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL XOR EAX,EAX CMP ECX,0xfc MOV byte ptr [RBP + -0x2d],AL JG 0x0014845c LAB_00148404: MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV EAX,0x40 CMP EAX,ECX JG 0x00148427 MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV AL,0x1 CMP ECX,0x7e MOV byte ptr [RBP + -0x2e],AL JLE 0x00148456 LAB_00148427: MOV RAX,qword ptr [RBP + -0x20] MOVZX EDX,byte ptr [RAX + 0x1] XOR EAX,EAX MOV ECX,0x80 CMP ECX,EDX MOV byte ptr [RBP + -0x2f],AL JG 0x00148450 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xfc SETLE AL MOV byte ptr [RBP + -0x2f],AL LAB_00148450: MOV AL,byte ptr [RBP + -0x2f] MOV byte ptr [RBP + -0x2e],AL LAB_00148456: MOV AL,byte ptr [RBP + -0x2e] MOV byte ptr [RBP + -0x2d],AL LAB_0014845c: MOV DL,byte ptr [RBP + -0x2d] XOR EAX,EAX MOV ECX,0xfffffffe TEST DL,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x00148478 LAB_00148471: MOV dword ptr [RBP + -0x4],0x2 LAB_00148478: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_mb_wc_sjis(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { ushort uVar1; bool bVar2; uint uVar3; int4 local_c; if (param_3 < param_4) { uVar3 = (uint)*param_3; if (uVar3 < 0x80) { *param_2 = (long)(int)uVar3; local_c = 1; } else if ((uVar3 < 0xa1) || (0xdf < uVar3)) { if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { uVar1 = *(ushort *)(sjis_to_unicode + (long)(int)(uVar3 * 0x100 + (uint)param_3[1]) * 2); *param_2 = (ulong)uVar1; if ((ulong)uVar1 == 0) { if ((((0x80 < uVar3) && (uVar3 < 0xa0)) || ((bVar2 = false, 0xdf < uVar3 && (bVar2 = false, uVar3 < 0xfd)))) && (((param_3[1] < 0x40 || (bVar2 = true, 0x7e < param_3[1])) && (bVar2 = false, 0x7f < param_3[1])))) { bVar2 = param_3[1] < 0xfd; } local_c = 0; if (bVar2) { local_c = 0xfffffffe; } } else { local_c = 2; } } } else { *param_2 = (ulong)*(ushort *)(sjis_to_unicode + (long)(int)uVar3 * 2); local_c = 1; } } else { local_c = 0xffffff9b; } return local_c; }
33,380
my_wc_mb_sjis
eloqsql/strings/ctype-sjis.c
static int my_wc_mb_sjis(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */ { /* This branch is for performance purposes on ASCII range, to avoid using unicode_to_cp932[]: about 10% improvement. */ if (wc == 0x5c) { /* Special case when converting from Unicode to SJIS: U+005C -> [81][5F] FULL WIDTH REVERSE SOLIDUS */ code= MB2(0x815F); goto mb; } if (s >= e) return MY_CS_TOOSMALL; s[0]= (uchar) wc; /* ASCII */ return 1; } if (wc > 0xFFFF || !(code= unicode_to_sjis[wc])) /* Bad Unicode code point */ return MY_CS_ILUNI; if (code <= 0xFF) { /* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */ if (s >= e) return MY_CS_TOOSMALL; s[0]= code; return 1; } mb: if (s + 2 > e) return MY_CS_TOOSMALL2; MY_PUT_MB2(s, code); /* JIS-X-0208 */ return 2; }
O0
c
my_wc_mb_sjis: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x18(%rbp), %rax cmpl $0x80, %eax jge 0x55c40 cmpq $0x5c, -0x18(%rbp) jne 0x55c12 movl $0x815f, -0x2c(%rbp) # imm = 0x815F jmp 0x55c9c movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x55c28 movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x55cd9 movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x55cd9 cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF ja 0x55c61 movq -0x18(%rbp), %rcx leaq 0x2bb12b(%rip), %rax # 0x310d80 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x55c6a movl $0x0, -0x4(%rbp) jmp 0x55cd9 cmpl $0xff, -0x2c(%rbp) jg 0x55c9a movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x55c86 movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x55cd9 movl -0x2c(%rbp), %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x55cd9 jmp 0x55c9c movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x55cb3 movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x55cd9 movl -0x2c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x2c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
my_wc_mb_sjis: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_18] cmp eax, 80h jge short loc_55C40 cmp [rbp+var_18], 5Ch ; '\' jnz short loc_55C12 mov [rbp+var_2C], 815Fh jmp loc_55C9C loc_55C12: mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_55C28 mov [rbp+var_4], 0FFFFFF9Bh jmp loc_55CD9 loc_55C28: mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp loc_55CD9 loc_55C40: cmp [rbp+var_18], 0FFFFh ja short loc_55C61 mov rcx, [rbp+var_18] lea rax, unicode_to_sjis movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_55C6A loc_55C61: mov [rbp+var_4], 0 jmp short loc_55CD9 loc_55C6A: cmp [rbp+var_2C], 0FFh jg short loc_55C9A mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_55C86 mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_55CD9 loc_55C86: mov eax, [rbp+var_2C] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp short loc_55CD9 loc_55C9A: jmp short $+2 loc_55C9C: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_55CB3 mov [rbp+var_4], 0FFFFFF9Ah jmp short loc_55CD9 loc_55CB3: mov eax, [rbp+var_2C] sar eax, 8 mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov eax, [rbp+var_2C] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov [rbp+var_4], 2 loc_55CD9: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_sjis(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { __int16 v5; // [rsp+0h] [rbp-2Ch] if ( (int)a2 >= 128 ) { if ( a2 > 0xFFFF || (v5 = unicode_to_sjis[a2]) == 0 ) return 0; if ( unicode_to_sjis[a2] > 0xFFu ) goto LABEL_14; if ( (unsigned long long)a3 < a4 ) { *a3 = v5; return 1; } else { return (unsigned int)-101; } } else { if ( a2 == 92 ) { v5 = -32417; LABEL_14: if ( (unsigned long long)(a3 + 2) <= a4 ) { *a3 = HIBYTE(v5); a3[1] = v5; return 2; } else { return (unsigned int)-102; } } if ( (unsigned long long)a3 < a4 ) { *a3 = a2; return 1; } else { return (unsigned int)-101; } } }
my_wc_mb_sjis: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x18] CMP EAX,0x80 JGE 0x00155c40 CMP qword ptr [RBP + -0x18],0x5c JNZ 0x00155c12 MOV dword ptr [RBP + -0x2c],0x815f JMP 0x00155c9c LAB_00155c12: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x00155c28 MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00155cd9 LAB_00155c28: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x00155cd9 LAB_00155c40: CMP qword ptr [RBP + -0x18],0xffff JA 0x00155c61 MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x410d80] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x00155c6a LAB_00155c61: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00155cd9 LAB_00155c6a: CMP dword ptr [RBP + -0x2c],0xff JG 0x00155c9a MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x00155c86 MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00155cd9 LAB_00155c86: MOV EAX,dword ptr [RBP + -0x2c] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x00155cd9 LAB_00155c9a: JMP 0x00155c9c LAB_00155c9c: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x00155cb3 MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x00155cd9 LAB_00155cb3: MOV EAX,dword ptr [RBP + -0x2c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV dword ptr [RBP + -0x4],0x2 LAB_00155cd9: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_wc_mb_sjis(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4) { ushort local_34; int4 local_c; if ((int)param_2 < 0x80) { if (param_2 != 0x5c) { if (param_4 <= param_3) { return 0xffffff9b; } *param_3 = (char)param_2; return 1; } local_34 = 0x815f; } else { if ((0xffff < param_2) || (local_34 = *(ushort *)(unicode_to_sjis + param_2 * 2), local_34 == 0) ) { return 0; } if (local_34 < 0x100) { if (param_4 <= param_3) { return 0xffffff9b; } *param_3 = (char)local_34; return 1; } } if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { *param_3 = (char)(local_34 >> 8); param_3[1] = (char)local_34; local_c = 2; } return local_c; }
33,381
my_wildcmp_uca_impl
eloqsql/strings/ctype-uca.c
static int my_wildcmp_uca_impl(CHARSET_INFO *cs, const char *str,const char *str_end, const char *wildstr,const char *wildend, int escape, int w_one, int w_many, int recurse_level) { int result= -1; /* Not found, using wildcards */ my_wc_t s_wc, w_wc; int scan; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; if (my_string_stack_guard && my_string_stack_guard(recurse_level)) return 1; while (wildstr != wildend) { while (1) { my_bool escaped= 0; if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr, (const uchar*)wildend)) <= 0) return 1; if (w_wc == (my_wc_t) w_many) { result= 1; /* Found an anchor char */ break; } wildstr+= scan; if (w_wc == (my_wc_t) escape && wildstr < wildend) { if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr, (const uchar*)wildend)) <= 0) return 1; wildstr+= scan; escaped= 1; } if ((scan= mb_wc(cs, &s_wc, (const uchar*)str, (const uchar*)str_end)) <= 0) return 1; str+= scan; if (!escaped && w_wc == (my_wc_t) w_one) { result= 1; /* Found an anchor char */ } else { if (my_uca_charcmp(cs,s_wc,w_wc)) return 1; /* No match */ } if (wildstr == wildend) return (str != str_end); /* Match if both are at end */ } if (w_wc == (my_wc_t) w_many) { /* Found w_many */ /* Remove any '%' and '_' from the wild search string */ for ( ; wildstr != wildend ; ) { if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr, (const uchar*)wildend)) <= 0) return 1; if (w_wc == (my_wc_t) w_many) { wildstr+= scan; continue; } if (w_wc == (my_wc_t) w_one) { wildstr+= scan; if ((scan= mb_wc(cs, &s_wc, (const uchar*)str, (const uchar*)str_end)) <= 0) return 1; str+= scan; continue; } break; /* Not a wild character */ } if (wildstr == wildend) return 0; /* Ok if w_many is last */ if (str == str_end) return -1; if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr, (const uchar*)wildend)) <= 0) return 1; wildstr+= scan; if (w_wc == (my_wc_t) escape) { if (wildstr < wildend) { if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr, (const uchar*)wildend)) <= 0) return 1; wildstr+= scan; } } while (1) { /* Skip until the first character from wildstr is found */ while (str != str_end) { if ((scan= mb_wc(cs, &s_wc, (const uchar*)str, (const uchar*)str_end)) <= 0) return 1; if (!my_uca_charcmp(cs,s_wc,w_wc)) break; str+= scan; } if (str == str_end) return -1; str+= scan; result= my_wildcmp_uca_impl(cs, str, str_end, wildstr, wildend, escape, w_one, w_many, recurse_level + 1); if (result <= 0) return result; } } } return (str != str_end ? 1 : 0); }
O3
c
my_wildcmp_uca_impl: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r9d, -0x54(%rbp) movq %r8, %r12 movq %rcx, %r13 movq %rdx, -0x40(%rbp) movq %rsi, -0x30(%rbp) movq %rdi, %r15 movl 0x20(%rbp), %eax movq %rax, -0x60(%rbp) movq 0xb8(%rdi), %rax movq 0x28(%rax), %r14 leaq 0xb508cb(%rip), %rax # 0xc08998 movq (%rax), %rax testq %rax, %rax je 0xb80e7 movl 0x20(%rbp), %edi callq *%rax movl $0x1, %ebx testl %eax, %eax jne 0xb8364 cmpq %r12, %r13 je 0xb81e8 movl 0x18(%rbp), %eax movl 0x10(%rbp), %ecx cltq movq %rax, -0x78(%rbp) movslq -0x54(%rbp), %rax movq %rax, -0x70(%rbp) movslq %ecx, %rax movq %rax, -0x68(%rbp) movq %r14, -0x48(%rbp) movq %r15, %rdi leaq -0x38(%rbp), %rsi movq %r13, %rdx movq %r12, %rcx callq *%r14 testl %eax, %eax jle 0xb835f movq -0x38(%rbp), %rcx cmpq -0x78(%rbp), %rcx je 0xb81fa movl %eax, %eax addq %rax, %r13 cmpq -0x70(%rbp), %rcx jne 0xb8196 cmpq %r12, %r13 jae 0xb8196 movq %r15, %rdi leaq -0x38(%rbp), %rsi movq %r13, %rdx movq %r12, %rcx callq *%r14 testl %eax, %eax jle 0xb835f movl %eax, %ebx movq %r15, %rdi leaq -0x50(%rbp), %rsi movq %r14, %rax movq -0x30(%rbp), %r14 movq %r14, %rdx movq -0x40(%rbp), %rcx callq *%rax testl %eax, %eax jle 0xb835f movl %ebx, %ecx addq %rcx, %r13 movl %eax, %eax addq %rax, %r14 movq %r14, -0x30(%rbp) movq -0x38(%rbp), %rdx movq -0x48(%rbp), %r14 jmp 0xb81c6 movq %r15, %rdi leaq -0x50(%rbp), %rsi movq -0x30(%rbp), %rbx movq %rbx, %rdx movq -0x40(%rbp), %rcx callq *%r14 testl %eax, %eax jle 0xb835f movl %eax, %eax addq %rax, %rbx movq %rbx, -0x30(%rbp) movq -0x38(%rbp), %rdx cmpq -0x68(%rbp), %rdx je 0xb81df movq -0x50(%rbp), %rsi movq %r15, %rdi callq 0xbcb84 movl $0x1, %ebx testl %eax, %eax jne 0xb8364 cmpq %r12, %r13 jne 0xb810f xorl %ebx, %ebx movq -0x40(%rbp), %rax cmpq %rax, -0x30(%rbp) setne %bl jmp 0xb8364 xorl %ebx, %ebx cmpq %r12, %r13 je 0xb8364 movq %r15, %rdi leaq -0x38(%rbp), %rsi movq %r13, %rdx movq %r12, %rcx callq *%r14 testl %eax, %eax jle 0xb835f movl %eax, %r14d movq -0x38(%rbp), %rax cmpq -0x78(%rbp), %rax jne 0xb823e movl %r14d, %eax addq %rax, %r13 cmpq %r12, %r13 movq -0x48(%rbp), %r14 jne 0xb8205 jmp 0xb8364 cmpq -0x68(%rbp), %rax jne 0xb826c movq %r15, %rdi leaq -0x50(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x40(%rbp), %rcx callq *-0x48(%rbp) testl %eax, %eax jle 0xb835f movl %r14d, %ecx addq %rcx, %r13 movl %eax, %eax addq %rax, -0x30(%rbp) jmp 0xb8230 movq -0x40(%rbp), %rax cmpq %rax, -0x30(%rbp) je 0xb8375 leaq -0x38(%rbp), %rsi movq %r15, %rdi movq %r13, %rdx movq %r12, %rcx movq -0x48(%rbp), %r14 callq *%r14 testl %eax, %eax jle 0xb835f movl %eax, %eax addq %rax, %r13 movq -0x70(%rbp), %rax cmpq %rax, -0x38(%rbp) jne 0xb82c7 cmpq %r12, %r13 jae 0xb82c7 leaq -0x38(%rbp), %rsi movq %r15, %rdi movq %r13, %rdx movq %r12, %rcx callq *%r14 testl %eax, %eax jle 0xb835f movl %eax, %eax addq %rax, %r13 movq -0x60(%rbp), %rax incl %eax movq %rax, -0x60(%rbp) movq -0x30(%rbp), %rbx movq -0x40(%rbp), %rcx cmpq %rcx, %rbx je 0xb8375 movq %r15, %rdi leaq -0x50(%rbp), %rsi movq %rbx, %rdx callq *%r14 testl %eax, %eax jle 0xb835f movl %eax, %r14d movq -0x50(%rbp), %rsi movq -0x38(%rbp), %rdx movq %r15, %rdi callq 0xbcb84 movl %r14d, %ecx addq %rcx, %rbx testl %eax, %eax je 0xb831f movq -0x40(%rbp), %rcx cmpq %rcx, %rbx movq -0x48(%rbp), %r14 jne 0xb82e2 jmp 0xb8375 subq $0x8, %rsp movq %r15, %rdi movq %rbx, -0x30(%rbp) movq %rbx, %rsi movq -0x40(%rbp), %rdx movq %r13, %rcx movq %r12, %r8 movl -0x54(%rbp), %r9d pushq -0x60(%rbp) movl 0x18(%rbp), %eax pushq %rax movl 0x10(%rbp), %eax pushq %rax callq 0xb808e addq $0x20, %rsp movl %eax, %ebx testl %eax, %eax movq -0x48(%rbp), %r14 jg 0xb82d1 jmp 0xb8364 movl $0x1, %ebx movl %ebx, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %ebx # imm = 0xFFFFFFFF jmp 0xb8364
my_wildcmp_uca_impl: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rbp+var_54], r9d mov r12, r8 mov r13, rcx mov [rbp+var_40], rdx mov [rbp+var_30], rsi mov r15, rdi mov eax, [rbp+arg_10] mov [rbp+var_60], rax mov rax, [rdi+0B8h] mov r14, [rax+28h] lea rax, my_string_stack_guard mov rax, [rax] test rax, rax jz short loc_B80E7 mov edi, [rbp+arg_10] call rax mov ebx, 1 test eax, eax jnz loc_B8364 loc_B80E7: cmp r13, r12 jz loc_B81E8 mov eax, [rbp+arg_8] mov ecx, [rbp+arg_0] cdqe mov [rbp+var_78], rax movsxd rax, [rbp+var_54] mov [rbp+var_70], rax movsxd rax, ecx mov [rbp+var_68], rax mov [rbp+var_48], r14 loc_B810F: mov rdi, r15 lea rsi, [rbp+var_38] mov rdx, r13 mov rcx, r12 call r14 test eax, eax jle loc_B835F mov rcx, [rbp+var_38] cmp rcx, [rbp+var_78] jz loc_B81FA mov eax, eax add r13, rax cmp rcx, [rbp+var_70] jnz short loc_B8196 cmp r13, r12 jnb short loc_B8196 mov rdi, r15 lea rsi, [rbp+var_38] mov rdx, r13 mov rcx, r12 call r14 test eax, eax jle loc_B835F mov ebx, eax mov rdi, r15 lea rsi, [rbp+var_50] mov rax, r14 mov r14, [rbp+var_30] mov rdx, r14 mov rcx, [rbp+var_40] call rax test eax, eax jle loc_B835F mov ecx, ebx add r13, rcx mov eax, eax add r14, rax mov [rbp+var_30], r14 mov rdx, [rbp+var_38] mov r14, [rbp+var_48] jmp short loc_B81C6 loc_B8196: mov rdi, r15 lea rsi, [rbp+var_50] mov rbx, [rbp+var_30] mov rdx, rbx mov rcx, [rbp+var_40] call r14 test eax, eax jle loc_B835F mov eax, eax add rbx, rax mov [rbp+var_30], rbx mov rdx, [rbp+var_38] cmp rdx, [rbp+var_68] jz short loc_B81DF loc_B81C6: mov rsi, [rbp+var_50] mov rdi, r15 call my_uca_charcmp mov ebx, 1 test eax, eax jnz loc_B8364 loc_B81DF: cmp r13, r12 jnz loc_B810F loc_B81E8: xor ebx, ebx mov rax, [rbp+var_40] cmp [rbp+var_30], rax setnz bl jmp loc_B8364 loc_B81FA: xor ebx, ebx cmp r13, r12 jz loc_B8364 loc_B8205: mov rdi, r15 lea rsi, [rbp+var_38] mov rdx, r13 mov rcx, r12 call r14 test eax, eax jle loc_B835F mov r14d, eax mov rax, [rbp+var_38] cmp rax, [rbp+var_78] jnz short loc_B823E mov eax, r14d add r13, rax loc_B8230: cmp r13, r12 mov r14, [rbp+var_48] jnz short loc_B8205 jmp loc_B8364 loc_B823E: cmp rax, [rbp+var_68] jnz short loc_B826C mov rdi, r15 lea rsi, [rbp+var_50] mov rdx, [rbp+var_30] mov rcx, [rbp+var_40] call [rbp+var_48] test eax, eax jle loc_B835F mov ecx, r14d add r13, rcx mov eax, eax add [rbp+var_30], rax jmp short loc_B8230 loc_B826C: mov rax, [rbp+var_40] cmp [rbp+var_30], rax jz loc_B8375 lea rsi, [rbp+var_38] mov rdi, r15 mov rdx, r13 mov rcx, r12 mov r14, [rbp+var_48] call r14 test eax, eax jle loc_B835F mov eax, eax add r13, rax mov rax, [rbp+var_70] cmp [rbp+var_38], rax jnz short loc_B82C7 cmp r13, r12 jnb short loc_B82C7 lea rsi, [rbp+var_38] mov rdi, r15 mov rdx, r13 mov rcx, r12 call r14 test eax, eax jle loc_B835F mov eax, eax add r13, rax loc_B82C7: mov rax, [rbp+var_60] inc eax mov [rbp+var_60], rax loc_B82D1: mov rbx, [rbp+var_30] mov rcx, [rbp+var_40] cmp rbx, rcx jz loc_B8375 loc_B82E2: mov rdi, r15 lea rsi, [rbp+var_50] mov rdx, rbx call r14 test eax, eax jle short loc_B835F mov r14d, eax mov rsi, [rbp+var_50] mov rdx, [rbp+var_38] mov rdi, r15 call my_uca_charcmp mov ecx, r14d add rbx, rcx test eax, eax jz short loc_B831F mov rcx, [rbp+var_40] cmp rbx, rcx mov r14, [rbp+var_48] jnz short loc_B82E2 jmp short loc_B8375 loc_B831F: sub rsp, 8 mov rdi, r15 mov [rbp+var_30], rbx mov rsi, rbx mov rdx, [rbp+var_40] mov rcx, r13 mov r8, r12 mov r9d, [rbp+var_54] push [rbp+var_60] mov eax, [rbp+arg_8] push rax mov eax, [rbp+arg_0] push rax call my_wildcmp_uca_impl add rsp, 20h mov ebx, eax test eax, eax mov r14, [rbp+var_48] jg loc_B82D1 jmp short loc_B8364 loc_B835F: mov ebx, 1 loc_B8364: mov eax, ebx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B8375: mov ebx, 0FFFFFFFFh jmp short loc_B8364
long long my_wildcmp_uca_impl( long long a1, long long a2, long long a3, unsigned long long a4, unsigned long long a5, int a6, int a7, int a8, unsigned int a9) { long long ( *v11)(long long, long long *, unsigned long long, unsigned long long); // r14 unsigned int v12; // ebx int v13; // eax int v14; // eax unsigned int v15; // ebx long long ( *v16)(long long, long long *, long long, long long); // rax long long v17; // r14 int v18; // eax long long v19; // rdx long long v20; // rbx int v21; // eax int v22; // eax unsigned int v23; // r14d int v24; // eax long long ( *v25)(long long, long long *, unsigned long long, unsigned long long); // r14 int v26; // eax unsigned long long v27; // r13 int v28; // eax long long v29; // rbx int v30; // eax long long v33; // [rsp+30h] [rbp-50h] BYREF long long ( *v34)(long long, long long *, unsigned long long, unsigned long long); // [rsp+38h] [rbp-48h] long long v35; // [rsp+40h] [rbp-40h] long long v36; // [rsp+48h] [rbp-38h] BYREF long long v37; // [rsp+50h] [rbp-30h] v35 = a3; v37 = a2; v11 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 40LL); if ( !my_string_stack_guard || (v12 = 1, !(unsigned int)my_string_stack_guard(a9)) ) { if ( a4 != a5 ) { v34 = v11; while ( 1 ) { v13 = v11(a1, &v36, a4, a5); if ( v13 <= 0 ) return 1; if ( v36 == a8 ) { v12 = 0; if ( a4 == a5 ) return v12; while ( 1 ) { v22 = v11(a1, &v36, a4, a5); if ( v22 <= 0 ) return 1; v23 = v22; if ( v36 == a8 ) { a4 += (unsigned int)v22; } else { if ( v36 != a7 ) { if ( v37 == v35 ) return (unsigned int)-1; v25 = v34; v26 = v34(a1, &v36, a4, a5); if ( v26 <= 0 ) return 1; v27 = (unsigned int)v26 + a4; if ( v36 == a6 && v27 < a5 ) { v28 = v25(a1, &v36, v27, a5); if ( v28 <= 0 ) return 1; LODWORD(v27) = v28 + v27; } LABEL_32: v29 = v37; if ( v37 == v35 ) return (unsigned int)-1; while ( 1 ) { v30 = ((long long ( *)(long long, long long *, long long))v25)(a1, &v33, v29); if ( v30 <= 0 ) return 1; v29 += (unsigned int)v30; if ( !(unsigned int)my_uca_charcmp(a1, v33, v36) ) { v37 = v29; v12 = my_wildcmp_uca_impl(a1, v29, v35, v27, a5, a6, a7, a8, a9 + 1); v25 = v34; if ( (int)v12 > 0 ) goto LABEL_32; return v12; } v25 = v34; if ( v29 == v35 ) return (unsigned int)-1; } } v24 = v34(a1, &v33, v37, v35); if ( v24 <= 0 ) return 1; a4 += v23; v37 += (unsigned int)v24; } v11 = v34; if ( a4 == a5 ) return v12; } } a4 += (unsigned int)v13; if ( v36 == a6 && a4 < a5 ) break; v20 = v37; v21 = v11(a1, &v33, v37, v35); if ( v21 <= 0 ) return 1; v37 = (unsigned int)v21 + v20; v19 = v36; if ( v36 != a7 ) goto LABEL_14; LABEL_15: if ( a4 == a5 ) return v37 != v35; } v14 = v11(a1, &v36, a4, a5); if ( v14 <= 0 ) return 1; v15 = v14; v16 = (long long ( *)(long long, long long *, long long, long long))v11; v17 = v37; v18 = v16(a1, &v33, v37, v35); if ( v18 <= 0 ) return 1; a4 += v15; v37 = (unsigned int)v18 + v17; v19 = v36; v11 = v34; LABEL_14: v12 = 1; if ( (unsigned int)my_uca_charcmp(a1, v33, v19) ) return v12; goto LABEL_15; } return v37 != v35; } return v12; }
my_wildcmp_uca_impl: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV dword ptr [RBP + -0x54],R9D MOV R12,R8 MOV R13,RCX MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RBP + -0x30],RSI MOV R15,RDI MOV EAX,dword ptr [RBP + 0x20] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RDI + 0xb8] MOV R14,qword ptr [RAX + 0x28] LEA RAX,[0xd08998] MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x001b80e7 MOV EDI,dword ptr [RBP + 0x20] CALL RAX MOV EBX,0x1 TEST EAX,EAX JNZ 0x001b8364 LAB_001b80e7: CMP R13,R12 JZ 0x001b81e8 MOV EAX,dword ptr [RBP + 0x18] MOV ECX,dword ptr [RBP + 0x10] CDQE MOV qword ptr [RBP + -0x78],RAX MOVSXD RAX,dword ptr [RBP + -0x54] MOV qword ptr [RBP + -0x70],RAX MOVSXD RAX,ECX MOV qword ptr [RBP + -0x68],RAX MOV qword ptr [RBP + -0x48],R14 LAB_001b810f: MOV RDI,R15 LEA RSI,[RBP + -0x38] MOV RDX,R13 MOV RCX,R12 CALL R14 TEST EAX,EAX JLE 0x001b835f MOV RCX,qword ptr [RBP + -0x38] CMP RCX,qword ptr [RBP + -0x78] JZ 0x001b81fa MOV EAX,EAX ADD R13,RAX CMP RCX,qword ptr [RBP + -0x70] JNZ 0x001b8196 CMP R13,R12 JNC 0x001b8196 MOV RDI,R15 LEA RSI,[RBP + -0x38] MOV RDX,R13 MOV RCX,R12 CALL R14 TEST EAX,EAX JLE 0x001b835f MOV EBX,EAX MOV RDI,R15 LEA RSI,[RBP + -0x50] MOV RAX,R14 MOV R14,qword ptr [RBP + -0x30] MOV RDX,R14 MOV RCX,qword ptr [RBP + -0x40] CALL RAX TEST EAX,EAX JLE 0x001b835f MOV ECX,EBX ADD R13,RCX MOV EAX,EAX ADD R14,RAX MOV qword ptr [RBP + -0x30],R14 MOV RDX,qword ptr [RBP + -0x38] MOV R14,qword ptr [RBP + -0x48] JMP 0x001b81c6 LAB_001b8196: MOV RDI,R15 LEA RSI,[RBP + -0x50] MOV RBX,qword ptr [RBP + -0x30] MOV RDX,RBX MOV RCX,qword ptr [RBP + -0x40] CALL R14 TEST EAX,EAX JLE 0x001b835f MOV EAX,EAX ADD RBX,RAX MOV qword ptr [RBP + -0x30],RBX MOV RDX,qword ptr [RBP + -0x38] CMP RDX,qword ptr [RBP + -0x68] JZ 0x001b81df LAB_001b81c6: MOV RSI,qword ptr [RBP + -0x50] MOV RDI,R15 CALL 0x001bcb84 MOV EBX,0x1 TEST EAX,EAX JNZ 0x001b8364 LAB_001b81df: CMP R13,R12 JNZ 0x001b810f LAB_001b81e8: XOR EBX,EBX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RBP + -0x30],RAX SETNZ BL JMP 0x001b8364 LAB_001b81fa: XOR EBX,EBX CMP R13,R12 JZ 0x001b8364 LAB_001b8205: MOV RDI,R15 LEA RSI,[RBP + -0x38] MOV RDX,R13 MOV RCX,R12 CALL R14 TEST EAX,EAX JLE 0x001b835f MOV R14D,EAX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x78] JNZ 0x001b823e MOV EAX,R14D ADD R13,RAX LAB_001b8230: CMP R13,R12 MOV R14,qword ptr [RBP + -0x48] JNZ 0x001b8205 JMP 0x001b8364 LAB_001b823e: CMP RAX,qword ptr [RBP + -0x68] JNZ 0x001b826c MOV RDI,R15 LEA RSI,[RBP + -0x50] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x40] CALL qword ptr [RBP + -0x48] TEST EAX,EAX JLE 0x001b835f MOV ECX,R14D ADD R13,RCX MOV EAX,EAX ADD qword ptr [RBP + -0x30],RAX JMP 0x001b8230 LAB_001b826c: MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RBP + -0x30],RAX JZ 0x001b8375 LEA RSI,[RBP + -0x38] MOV RDI,R15 MOV RDX,R13 MOV RCX,R12 MOV R14,qword ptr [RBP + -0x48] CALL R14 TEST EAX,EAX JLE 0x001b835f MOV EAX,EAX ADD R13,RAX MOV RAX,qword ptr [RBP + -0x70] CMP qword ptr [RBP + -0x38],RAX JNZ 0x001b82c7 CMP R13,R12 JNC 0x001b82c7 LEA RSI,[RBP + -0x38] MOV RDI,R15 MOV RDX,R13 MOV RCX,R12 CALL R14 TEST EAX,EAX JLE 0x001b835f MOV EAX,EAX ADD R13,RAX LAB_001b82c7: MOV RAX,qword ptr [RBP + -0x60] INC EAX MOV qword ptr [RBP + -0x60],RAX LAB_001b82d1: MOV RBX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x40] CMP RBX,RCX JZ 0x001b8375 LAB_001b82e2: MOV RDI,R15 LEA RSI,[RBP + -0x50] MOV RDX,RBX CALL R14 TEST EAX,EAX JLE 0x001b835f MOV R14D,EAX MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x38] MOV RDI,R15 CALL 0x001bcb84 MOV ECX,R14D ADD RBX,RCX TEST EAX,EAX JZ 0x001b831f MOV RCX,qword ptr [RBP + -0x40] CMP RBX,RCX MOV R14,qword ptr [RBP + -0x48] JNZ 0x001b82e2 JMP 0x001b8375 LAB_001b831f: SUB RSP,0x8 MOV RDI,R15 MOV qword ptr [RBP + -0x30],RBX MOV RSI,RBX MOV RDX,qword ptr [RBP + -0x40] MOV RCX,R13 MOV R8,R12 MOV R9D,dword ptr [RBP + -0x54] PUSH qword ptr [RBP + -0x60] MOV EAX,dword ptr [RBP + 0x18] PUSH RAX MOV EAX,dword ptr [RBP + 0x10] PUSH RAX CALL 0x001b808e ADD RSP,0x20 MOV EBX,EAX TEST EAX,EAX MOV R14,qword ptr [RBP + -0x48] JG 0x001b82d1 JMP 0x001b8364 LAB_001b835f: MOV EBX,0x1 LAB_001b8364: MOV EAX,EBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001b8375: MOV EBX,0xffffffff JMP 0x001b8364
uint my_wildcmp_uca_impl(long param_1,long param_2,long param_3,ulong param_4,ulong param_5, int param_6,int param_7,int param_8,int param_9) { int iVar1; uint uVar2; uint uVar3; long lVar4; code *pcVar5; int8 local_58; code *local_50; long local_48; long local_40; long local_38; pcVar5 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); local_48 = param_3; local_38 = param_2; if ((my_string_stack_guard != (code *)0x0) && (iVar1 = (*my_string_stack_guard)(param_9), iVar1 != 0)) { return 1; } if (param_4 != param_5) { local_50 = pcVar5; do { uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5); lVar4 = local_38; if ((int)uVar2 < 1) { return 1; } if (local_40 == param_8) { do { if (param_4 == param_5) { return 0; } uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5); pcVar5 = local_50; if ((int)uVar2 < 1) { return 1; } if (local_40 != param_8) { if (local_40 != param_7) { if (local_38 == local_48) { return 0xffffffff; } uVar2 = (*local_50)(param_1,&local_40,param_4,param_5); if (0 < (int)uVar2) { param_4 = param_4 + uVar2; if ((local_40 == param_6) && (param_4 < param_5)) { uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5); if ((int)uVar2 < 1) { return 1; } param_4 = param_4 + uVar2; } do { lVar4 = local_38; if (local_38 == local_48) { return 0xffffffff; } while( true ) { uVar2 = (*pcVar5)(param_1,&local_58,lVar4); if ((int)uVar2 < 1) { return 1; } iVar1 = my_uca_charcmp(param_1,local_58,local_40); lVar4 = lVar4 + (ulong)uVar2; if (iVar1 == 0) break; pcVar5 = local_50; if (lVar4 == local_48) { return 0xffffffff; } } local_38 = lVar4; uVar2 = my_wildcmp_uca_impl(param_1,lVar4,local_48,param_4,param_5,param_6,param_7 ,param_8,param_9 + 1); pcVar5 = local_50; if ((int)uVar2 < 1) { return uVar2; } } while( true ); } return 1; } uVar3 = (*local_50)(param_1,&local_58,local_38,local_48); if ((int)uVar3 < 1) { return 1; } local_38 = local_38 + (ulong)uVar3; } param_4 = param_4 + uVar2; pcVar5 = local_50; } while( true ); } param_4 = param_4 + uVar2; if ((local_40 == param_6) && (param_4 < param_5)) { uVar2 = (*pcVar5)(param_1,&local_40,param_4,param_5); lVar4 = local_38; if ((int)uVar2 < 1) { return 1; } uVar3 = (*pcVar5)(param_1,&local_58,local_38,local_48); if ((int)uVar3 < 1) { return 1; } param_4 = param_4 + uVar2; local_38 = lVar4 + (ulong)uVar3; pcVar5 = local_50; LAB_001b81c6: iVar1 = my_uca_charcmp(param_1,local_58,local_40); if (iVar1 != 0) { return 1; } } else { uVar2 = (*pcVar5)(param_1,&local_58,local_38,local_48); if ((int)uVar2 < 1) { return 1; } local_38 = lVar4 + (ulong)uVar2; if (local_40 != param_7) goto LAB_001b81c6; } } while (param_4 != param_5); } return (uint)(local_38 != local_48); }
33,382
my_instr_bin
eloqsql/strings/ctype-bin.c
static uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; if (s_length <= b_length) { if (!s_length) { if (nmatch) { match->beg= 0; match->end= 0; match->mb_len= 0; } return 1; /* Empty string is always found */ } str= (const uchar*) b; search= (const uchar*) s; end= (const uchar*) b+b_length-s_length+1; search_end= (const uchar*) s + s_length; skip: while (str != end) { if ( (*str++) == (*search)) { register const uchar *i,*j; i= str; j= search+1; while (j != search_end) if ((*i++) != (*j++)) goto skip; if (nmatch > 0) { match[0].beg= 0; match[0].end= (uint) (str- (const uchar*)b-1); match[0].mb_len= match[0].end; if (nmatch > 1) { match[1].beg= match[0].end; match[1].end= (uint)(match[0].end+s_length); match[1].mb_len= match[1].end-match[1].beg; } } return 2; } } } return 0; }
O3
c
my_instr_bin: xorl %eax, %eax cmpq %rdx, %r8 ja 0x2ff92 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx movl 0x10(%rbp), %r10d testq %r8, %r8 je 0x2ff5d addq %rsi, %rdx subq %r8, %rdx incq %rdx movq %rsi, %rdi cmpq %rdx, %rdi je 0x2ff8c movq %rdi, %r11 incq %rdi movb (%r11), %bl cmpb (%rcx), %bl jne 0x2fef4 movl $0x1, %ebx cmpq %rbx, %r8 je 0x2ff27 movb (%r11,%rbx), %r14b leaq 0x1(%rbx), %r15 cmpb (%rcx,%rbx), %r14b movq %r15, %rbx je 0x2ff0f jmp 0x2fef4 movl $0x2, %eax testl %r10d, %r10d je 0x2ff8c movl $0x0, (%r9) notl %esi addl %esi, %edi movl %edi, 0x4(%r9) movl %edi, 0x8(%r9) cmpl $0x1, %r10d je 0x2ff8c movl %edi, 0xc(%r9) addl %r8d, %edi movl $0x14, %ecx movl $0x10, %edx jmp 0x2ff7d testl %r10d, %r10d je 0x2ff87 movl $0x0, (%r9) movl $0x1, %eax movl $0x8, %ecx xorl %edi, %edi movl $0x4, %edx xorl %r8d, %r8d movl %edi, (%r9,%rdx) movl %r8d, (%r9,%rcx) jmp 0x2ff8c movl $0x1, %eax popq %rbx popq %r14 popq %r15 popq %rbp retq
my_instr_bin: xor eax, eax cmp r8, rdx ja locret_2FF92 push rbp mov rbp, rsp push r15 push r14 push rbx mov r10d, [rbp+10h] test r8, r8 jz short loc_2FF5D add rdx, rsi sub rdx, r8 inc rdx mov rdi, rsi loc_2FEF4: cmp rdi, rdx jz loc_2FF8C mov r11, rdi inc rdi mov bl, [r11] cmp bl, [rcx] jnz short loc_2FEF4 mov ebx, 1 loc_2FF0F: cmp r8, rbx jz short loc_2FF27 mov r14b, [r11+rbx] lea r15, [rbx+1] cmp r14b, [rcx+rbx] mov rbx, r15 jz short loc_2FF0F jmp short loc_2FEF4 loc_2FF27: mov eax, 2 test r10d, r10d jz short loc_2FF8C mov dword ptr [r9], 0 not esi add edi, esi mov [r9+4], edi mov [r9+8], edi cmp r10d, 1 jz short loc_2FF8C mov [r9+0Ch], edi add edi, r8d mov ecx, 14h mov edx, 10h jmp short loc_2FF7D loc_2FF5D: test r10d, r10d jz short loc_2FF87 mov dword ptr [r9], 0 mov eax, 1 mov ecx, 8 xor edi, edi mov edx, 4 xor r8d, r8d loc_2FF7D: mov [r9+rdx], edi mov [r9+rcx], r8d jmp short loc_2FF8C loc_2FF87: mov eax, 1 loc_2FF8C: pop rbx pop r14 pop r15 pop rbp locret_2FF92: retn
long long my_instr_bin( long long a1, _BYTE *a2, unsigned long long a3, _BYTE *a4, unsigned long long a5, _DWORD *a6, int a7) { long long result; // rax long long v8; // rdx _BYTE *v9; // rdi _BYTE *v10; // r11 long long v11; // rbx bool v12; // zf int v13; // edi int v14; // edi long long v15; // rcx long long v16; // rdx result = 0LL; if ( a5 <= a3 ) { if ( a5 ) { v8 = (long long)&a2[a3 - a5 + 1]; v9 = a2; LABEL_4: while ( v9 != (_BYTE *)v8 ) { v10 = v9++; if ( *v10 == *a4 ) { v11 = 1LL; while ( a5 != v11 ) { v12 = v10[v11] == a4[v11]; ++v11; if ( !v12 ) goto LABEL_4; } result = 2LL; if ( a7 ) { *a6 = 0; v13 = ~(_DWORD)a2 + (_DWORD)v9; a6[1] = v13; a6[2] = v13; if ( a7 != 1 ) { a6[3] = v13; v14 = a5 + v13; v15 = 5LL; v16 = 4LL; goto LABEL_15; } } return result; } } } else if ( a7 ) { *a6 = 0; result = 1LL; v15 = 2LL; v14 = 0; v16 = 1LL; LODWORD(a5) = 0; LABEL_15: a6[v16] = v14; a6[v15] = a5; } else { return 1LL; } } return result; }
my_instr_bin: XOR EAX,EAX CMP R8,RDX JA 0x0012ff92 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX MOV R10D,dword ptr [RBP + 0x10] TEST R8,R8 JZ 0x0012ff5d ADD RDX,RSI SUB RDX,R8 INC RDX MOV RDI,RSI LAB_0012fef4: CMP RDI,RDX JZ 0x0012ff8c MOV R11,RDI INC RDI MOV BL,byte ptr [R11] CMP BL,byte ptr [RCX] JNZ 0x0012fef4 MOV EBX,0x1 LAB_0012ff0f: CMP R8,RBX JZ 0x0012ff27 MOV R14B,byte ptr [R11 + RBX*0x1] LEA R15,[RBX + 0x1] CMP R14B,byte ptr [RCX + RBX*0x1] MOV RBX,R15 JZ 0x0012ff0f JMP 0x0012fef4 LAB_0012ff27: MOV EAX,0x2 TEST R10D,R10D JZ 0x0012ff8c MOV dword ptr [R9],0x0 NOT ESI ADD EDI,ESI MOV dword ptr [R9 + 0x4],EDI MOV dword ptr [R9 + 0x8],EDI CMP R10D,0x1 JZ 0x0012ff8c MOV dword ptr [R9 + 0xc],EDI ADD EDI,R8D MOV ECX,0x14 MOV EDX,0x10 JMP 0x0012ff7d LAB_0012ff5d: TEST R10D,R10D JZ 0x0012ff87 MOV dword ptr [R9],0x0 MOV EAX,0x1 MOV ECX,0x8 XOR EDI,EDI MOV EDX,0x4 XOR R8D,R8D LAB_0012ff7d: MOV dword ptr [R9 + RDX*0x1],EDI MOV dword ptr [R9 + RCX*0x1],R8D JMP 0x0012ff8c LAB_0012ff87: MOV EAX,0x1 LAB_0012ff8c: POP RBX POP R14 POP R15 POP RBP LAB_0012ff92: RET
int8 my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5, int4 *param_6,int param_7) { char *pcVar1; char *pcVar2; int8 uVar3; long lVar4; long lVar5; ulong uVar6; int iVar7; char *pcVar8; char *pcVar9; uVar3 = 0; if (param_5 <= param_3) { if (param_5 == 0) { if (param_7 == 0) { uVar3 = 1; } else { *param_6 = 0; uVar3 = 1; lVar4 = 8; iVar7 = 0; lVar5 = 4; param_5 = 0; LAB_0012ff7d: *(int *)((long)param_6 + lVar5) = iVar7; *(int *)((long)param_6 + lVar4) = (int)param_5; } } else { pcVar9 = param_2; while (pcVar8 = pcVar9, pcVar8 != param_2 + (param_3 - param_5) + 1) { pcVar9 = pcVar8 + 1; if (*pcVar8 == *param_4) { uVar6 = 1; do { if (param_5 == uVar6) { uVar3 = 2; if (param_7 == 0) { return 2; } *param_6 = 0; iVar7 = (int)pcVar9 + ~(uint)param_2; param_6[1] = iVar7; param_6[2] = iVar7; if (param_7 == 1) { return 2; } param_6[3] = iVar7; iVar7 = iVar7 + (int)param_5; lVar4 = 0x14; lVar5 = 0x10; goto LAB_0012ff7d; } pcVar1 = pcVar8 + uVar6; pcVar2 = param_4 + uVar6; uVar6 = uVar6 + 1; } while (*pcVar1 == *pcVar2); } } } } return uVar3; }
33,383
testing::internal::ForkingDeathTest::Wait()
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-death-test.cc
int ForkingDeathTest::Wait() { if (!spawned()) return 0; ReadAndInterpretStatusByte(); int status_value; GTEST_DEATH_TEST_CHECK_SYSCALL_(waitpid(child_pid_, &status_value, 0)); set_status(status_value); return status_value; }
O3
cpp
testing::internal::ForkingDeathTest::Wait(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 xorl %eax, %eax cmpb $0x1, 0x28(%rdi) jne 0x1061d movq %rdi, %rbx callq 0xf144 leaq 0xc(%rsp), %r14 movl 0x3c(%rbx), %edi movq %r14, %rsi xorl %edx, %edx callq 0x83d0 cmpl $-0x1, %eax jne 0x10616 callq 0x8070 cmpl $0x4, (%rax) je 0x105a0 leaq 0xe8(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0x31b3e(%rip), %rsi # 0x4210d leaq 0x31b4a(%rip), %rdx # 0x42120 leaq 0xd8(%rsp), %rbx movq %rbx, %rdi callq 0x3911e leaq 0x31a39(%rip), %rsi # 0x42026 movq %rbx, %rdi callq 0x8a50 leaq 0x68(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x1062f movups (%rcx), %xmm0 movups %xmm0, (%r15) jmp 0x1063c movl 0xc(%rsp), %eax movl %eax, 0x2c(%rbx) addq $0x118, %rsp # imm = 0x118 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rdx, 0x58(%rsp) movq (%rcx), %rdx movq %rdx, 0x68(%rsp) movq 0x8(%rax), %rdx leaq 0x58(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x31ac2(%rip), %rsi # 0x42121 callq 0x8a50 leaq 0x48(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x10687 movups (%rcx), %xmm0 movups %xmm0, (%r12) jmp 0x10694 movq %rdx, 0x38(%rsp) movq (%rcx), %rdx movq %rdx, 0x48(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x40(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x34(%rsp), %rsi movl $0x43d, (%rsi) # imm = 0x43D leaq 0xb8(%rsp), %rdi callq 0x31e77 leaq 0xf8(%rsp), %rdi leaq 0x38(%rsp), %rsi leaq 0xb8(%rsp), %rdx callq 0x31dcf leaq 0x3302f(%rip), %rsi # 0x43714 leaq 0xf8(%rsp), %rdi callq 0x8a50 leaq 0x88(%rsp), %r13 movq %r13, -0x10(%r13) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x10717 movups (%rcx), %xmm0 movups %xmm0, (%r13) jmp 0x10727 movq %rdx, 0x78(%rsp) movq (%rcx), %rdx movq %rdx, 0x88(%rsp) movq 0x8(%rax), %rdx leaq 0x78(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x31b69(%rip), %rsi # 0x422b3 callq 0x8a50 leaq 0xa8(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x10773 movups (%rcx), %xmm0 movups %xmm0, (%rbp) jmp 0x10786 movq %rdx, 0x98(%rsp) movq (%rcx), %rdx movq %rdx, 0xa8(%rsp) movq 0x8(%rax), %rdx leaq 0x98(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x31b92(%rip), %rsi # 0x4233e callq 0x8a50 leaq 0x20(%rsp), %rcx movq %rcx, -0x10(%rcx) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x107d6 movups (%rcx), %xmm0 leaq 0x20(%rsp), %rdx movups %xmm0, (%rdx) jmp 0x107e3 movq %rdx, 0x10(%rsp) movq (%rcx), %rdx movq %rdx, 0x20(%rsp) movq 0x8(%rax), %rdx leaq 0x10(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) callq 0xf01b movq %rax, %rbx movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x10828 movq 0x20(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10828 movq %rax, %rbx movq 0x98(%rsp), %rdi cmpq %rbp, %rdi je 0x1084a movq 0xa8(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x1084a movq %rax, %rbx movq 0x78(%rsp), %rdi cmpq %r13, %rdi je 0x10869 movq 0x88(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10869 movq %rax, %rbx leaq 0x108(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1088f movq 0x108(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x1088f movq %rax, %rbx leaq 0xc8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x108b5 movq 0xc8(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x108b5 movq %rax, %rbx movq 0x38(%rsp), %rdi cmpq %r12, %rdi je 0x108d1 movq 0x48(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x108d1 movq %rax, %rbx movq 0x58(%rsp), %rdi cmpq %r15, %rdi je 0x108ed movq 0x68(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x108ed movq %rax, %rbx movq 0xd8(%rsp), %rdi cmpq %r14, %rdi je 0x1090a movq 0xe8(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN7testing8internal16ForkingDeathTest4WaitEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 118h xor eax, eax cmp byte ptr [rdi+28h], 1 jnz loc_1061D mov rbx, rdi call _ZN7testing8internal13DeathTestImpl26ReadAndInterpretStatusByteEv; testing::internal::DeathTestImpl::ReadAndInterpretStatusByte(void) lea r14, [rsp+148h+var_13C] loc_105A0: mov edi, [rbx+3Ch] mov rsi, r14 xor edx, edx call _waitpid cmp eax, 0FFFFFFFFh jnz short loc_10616 call ___errno_location cmp dword ptr [rax], 4 jz short loc_105A0 lea r14, [rsp+148h+var_60] mov [r14-10h], r14 lea rsi, aCheckFailedFil; "CHECK failed: File " lea rdx, aCheckFailedFil+13h; "" lea rbx, [rsp+148h+var_70] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rsp+148h+var_E0] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_1062F movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 jmp short loc_1063C loc_10616: mov eax, [rsp+148h+var_13C] mov [rbx+2Ch], eax loc_1061D: add rsp, 118h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1062F: mov [rsp+148h+var_F0], rdx mov rdx, [rcx] mov [rsp+148h+var_E0], rdx loc_1063C: mov rdx, [rax+8] lea rdi, [rsp+148h+var_F0] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aLine; ", line " call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r12, [rsp+148h+var_100] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_10687 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 jmp short loc_10694 loc_10687: mov [rsp+148h+var_110], rdx mov rdx, [rcx] mov [rsp+148h+var_100], rdx loc_10694: mov rdx, [rax+8] mov [rsp+148h+var_108], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, [rsp+148h+var_114] mov dword ptr [rsi], 43Dh lea rdi, [rsp+148h+var_90] call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&) lea rdi, [rsp+148h+var_50] lea rsi, [rsp+148h+var_110] lea rdx, [rsp+148h+var_90] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) lea rsi, asc_43713+1; ": " lea rdi, [rsp+148h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r13, [rsp+148h+var_C0] mov [r13-10h], r13 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_10717 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r13+0], xmm0 jmp short loc_10727 loc_10717: mov [rsp+148h+var_D0], rdx mov rdx, [rcx] mov [rsp+148h+var_C0], rdx loc_10727: mov rdx, [rax+8] lea rdi, [rsp+148h+var_D0] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aWaitpidChildPi; "waitpid(child_pid_, &status_value, 0)" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rbp, [rsp+148h+var_A0] mov [rbp-10h], rbp mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_10773 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbp+0], xmm0 jmp short loc_10786 loc_10773: mov [rsp+148h+var_B0], rdx mov rdx, [rcx] mov [rsp+148h+var_A0], rdx loc_10786: mov rdx, [rax+8] lea rdi, [rsp+148h+var_B0] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aFcntlPipeFd1FS+1Dh; " != -1" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rcx, [rsp+148h+var_128] mov [rcx-10h], rcx mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_107D6 movups xmm0, xmmword ptr [rcx] lea rdx, [rsp+148h+var_128] movups xmmword ptr [rdx], xmm0 jmp short loc_107E3 loc_107D6: mov [rsp+148h+var_138], rdx mov rdx, [rcx] mov [rsp+148h+var_128], rdx loc_107E3: mov rdx, [rax+8] lea rdi, [rsp+148h+var_138] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 call _ZN7testing8internalL14DeathTestAbortERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::DeathTestAbort(std::string const&) mov rbx, rax mov rdi, [rsp+148h+var_138]; void * lea rax, [rsp+148h+var_128] cmp rdi, rax jz short loc_10828 mov rsi, [rsp+148h+var_128] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10828 mov rbx, rax loc_10828: mov rdi, [rsp+148h+var_B0]; void * cmp rdi, rbp jz short loc_1084A mov rsi, [rsp+148h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1084A mov rbx, rax loc_1084A: mov rdi, [rsp+148h+var_D0]; void * cmp rdi, r13 jz short loc_10869 mov rsi, [rsp+148h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10869 mov rbx, rax loc_10869: lea rax, [rsp+148h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1088F mov rsi, [rsp+148h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1088F mov rbx, rax loc_1088F: lea rax, [rsp+148h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_108B5 mov rsi, [rsp+148h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_108B5 mov rbx, rax loc_108B5: mov rdi, [rsp+148h+var_110]; void * cmp rdi, r12 jz short loc_108D1 mov rsi, [rsp+148h+var_100] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_108D1 mov rbx, rax loc_108D1: mov rdi, [rsp+148h+var_F0]; void * cmp rdi, r15 jz short loc_108ED mov rsi, [rsp+148h+var_E0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_108ED mov rbx, rax loc_108ED: mov rdi, [rsp+148h+var_70]; void * cmp rdi, r14 jz short loc_1090A mov rsi, [rsp+148h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1090A: mov rdi, rbx call __Unwind_Resume
long long testing::internal::ForkingDeathTest::Wait(testing::internal::ForkingDeathTest *this) { long long result; // rax long long v2; // rax __int128 *v3; // rcx long long v4; // rax __int128 *v5; // rcx long long v6; // rax __int128 *v7; // rcx long long v8; // rax __int128 *v9; // rcx long long v10; // rax long long v11; // r8 long long v12; // r9 __int128 *v13; // rcx long long v14; // rdx long long v15; // rbx char v16; // [rsp+0h] [rbp-148h] unsigned int v17; // [rsp+Ch] [rbp-13Ch] BYREF void *v18; // [rsp+10h] [rbp-138h] BYREF long long v19; // [rsp+18h] [rbp-130h] __int128 v20; // [rsp+20h] [rbp-128h] BYREF int v21; // [rsp+34h] [rbp-114h] BYREF void *v22[2]; // [rsp+38h] [rbp-110h] BYREF __int128 v23; // [rsp+48h] [rbp-100h] BYREF void *v24[2]; // [rsp+58h] [rbp-F0h] BYREF __int128 v25; // [rsp+68h] [rbp-E0h] BYREF void *v26[2]; // [rsp+78h] [rbp-D0h] BYREF __int128 v27; // [rsp+88h] [rbp-C0h] BYREF void *v28[2]; // [rsp+98h] [rbp-B0h] BYREF __int128 v29; // [rsp+A8h] [rbp-A0h] BYREF void *v30[2]; // [rsp+B8h] [rbp-90h] BYREF long long v31; // [rsp+C8h] [rbp-80h] BYREF void *v32[2]; // [rsp+D8h] [rbp-70h] BYREF _QWORD v33[2]; // [rsp+E8h] [rbp-60h] BYREF void *v34[2]; // [rsp+F8h] [rbp-50h] BYREF long long v35; // [rsp+108h] [rbp-40h] BYREF result = 0LL; if ( *((_BYTE *)this + 40) == 1 ) { testing::internal::DeathTestImpl::ReadAndInterpretStatusByte(this); while ( (unsigned int)waitpid(*((unsigned int *)this + 15), &v17, 0LL) == -1 ) { if ( *(_DWORD *)__errno_location() != 4 ) { v32[0] = v33; std::string::_M_construct<char const*>(v32, "CHECK failed: File ", ""); v2 = std::string::append( v32, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/sr" "c/gtest-death-test.cc"); v24[0] = &v25; v3 = (__int128 *)(v2 + 16); if ( *(_QWORD *)v2 == v2 + 16 ) { v25 = *v3; } else { v24[0] = *(void **)v2; *(_QWORD *)&v25 = *(_QWORD *)v3; } v24[1] = *(void **)(v2 + 8); *(_QWORD *)v2 = v3; *(_QWORD *)(v2 + 8) = 0LL; *(_BYTE *)(v2 + 16) = 0; v4 = std::string::append(v24, ", line "); v22[0] = &v23; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v23 = *v5; } else { v22[0] = *(void **)v4; *(_QWORD *)&v23 = *(_QWORD *)v5; } v22[1] = *(void **)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; v21 = 1085; testing::internal::StreamableToString<int>(v30, &v21); std::operator+<char>(v34, v22, v30); v6 = std::string::append(v34, ": "); v26[0] = &v27; v7 = (__int128 *)(v6 + 16); if ( *(_QWORD *)v6 == v6 + 16 ) { v27 = *v7; } else { v26[0] = *(void **)v6; *(_QWORD *)&v27 = *(_QWORD *)v7; } v26[1] = *(void **)(v6 + 8); *(_QWORD *)v6 = v7; *(_QWORD *)(v6 + 8) = 0LL; *(_BYTE *)(v6 + 16) = 0; v8 = std::string::append(v26, "waitpid(child_pid_, &status_value, 0)"); v28[0] = &v29; v9 = (__int128 *)(v8 + 16); if ( *(_QWORD *)v8 == v8 + 16 ) { v29 = *v9; } else { v28[0] = *(void **)v8; *(_QWORD *)&v29 = *(_QWORD *)v9; } v28[1] = *(void **)(v8 + 8); *(_QWORD *)v8 = v9; *(_QWORD *)(v8 + 8) = 0LL; *(_BYTE *)(v8 + 16) = 0; v10 = std::string::append(v28, " != -1"); v18 = &v20; v13 = (__int128 *)(v10 + 16); if ( *(_QWORD *)v10 == v10 + 16 ) { v20 = *v13; } else { v18 = *(void **)v10; *(_QWORD *)&v20 = *(_QWORD *)v13; } v19 = *(_QWORD *)(v10 + 8); v14 = v19; *(_QWORD *)v10 = v13; *(_QWORD *)(v10 + 8) = 0LL; *(_BYTE *)(v10 + 16) = 0; v15 = testing::internal::DeathTestAbort( (testing::UnitTest *)&v18, (long long)" != -1", v14, (long long)v13, v11, v12, v16); if ( v18 != &v20 ) operator delete(v18, v20 + 1); if ( v28[0] != &v29 ) operator delete(v28[0], v29 + 1); if ( v26[0] != &v27 ) operator delete(v26[0], v27 + 1); if ( v34[0] != &v35 ) operator delete(v34[0], v35 + 1); if ( v30[0] != &v31 ) operator delete(v30[0], v31 + 1); if ( v22[0] != &v23 ) operator delete(v22[0], v23 + 1); if ( v24[0] != &v25 ) operator delete(v24[0], v25 + 1); if ( v32[0] != v33 ) operator delete(v32[0], v33[0] + 1LL); _Unwind_Resume(v15); } } result = v17; *((_DWORD *)this + 11) = v17; } return result; }
Wait: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x118 XOR EAX,EAX CMP byte ptr [RDI + 0x28],0x1 JNZ 0x0011061d MOV RBX,RDI CALL 0x0010f144 LEA R14,[RSP + 0xc] LAB_001105a0: MOV EDI,dword ptr [RBX + 0x3c] MOV RSI,R14 XOR EDX,EDX CALL 0x001083d0 CMP EAX,-0x1 JNZ 0x00110616 CALL 0x00108070 CMP dword ptr [RAX],0x4 JZ 0x001105a0 LEA R14,[RSP + 0xe8] MOV qword ptr [R14 + -0x10],R14 LEA RSI,[0x14210d] LEA RDX,[0x142120] LEA RBX,[RSP + 0xd8] MOV RDI,RBX CALL 0x0013911e LAB_001105e6: LEA RSI,[0x142026] MOV RDI,RBX CALL 0x00108a50 LEA R15,[RSP + 0x68] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x0011062f MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 JMP 0x0011063c LAB_00110616: MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [RBX + 0x2c],EAX LAB_0011061d: ADD RSP,0x118 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011062f: MOV qword ptr [RSP + 0x58],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x68],RDX LAB_0011063c: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x58] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00110658: LEA RSI,[0x142121] CALL 0x00108a50 LEA R12,[RSP + 0x48] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x00110687 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 JMP 0x00110694 LAB_00110687: MOV qword ptr [RSP + 0x38],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x48],RDX LAB_00110694: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x40],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RSI,[RSP + 0x34] MOV dword ptr [RSI],0x43d LAB_001106b7: LEA RDI,[RSP + 0xb8] CALL 0x00131e77 LAB_001106c4: LEA RDI,[RSP + 0xf8] LEA RSI,[RSP + 0x38] LEA RDX,[RSP + 0xb8] CALL 0x00131dcf LAB_001106de: LEA RSI,[0x143714] LEA RDI,[RSP + 0xf8] CALL 0x00108a50 LEA R13,[RSP + 0x88] MOV qword ptr [R13 + -0x10],R13 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x00110717 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R13],XMM0 JMP 0x00110727 LAB_00110717: MOV qword ptr [RSP + 0x78],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x88],RDX LAB_00110727: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00110743: LEA RSI,[0x1422b3] CALL 0x00108a50 LEA RBP,[RSP + 0xa8] MOV qword ptr [RBP + -0x10],RBP MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x00110773 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBP],XMM0 JMP 0x00110786 LAB_00110773: MOV qword ptr [RSP + 0x98],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0xa8],RDX LAB_00110786: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x98] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_001107a5: LEA RSI,[0x14233e] CALL 0x00108a50 LEA RCX,[RSP + 0x20] MOV qword ptr [RCX + -0x10],RCX MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x001107d6 MOVUPS XMM0,xmmword ptr [RCX] LEA RDX,[RSP + 0x20] MOVUPS xmmword ptr [RDX],XMM0 JMP 0x001107e3 LAB_001107d6: MOV qword ptr [RSP + 0x10],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x20],RDX LAB_001107e3: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x10] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_001107ff: CALL 0x0010f01b LAB_00110804: MOV RBX,RAX MOV RDI,qword ptr [RSP + 0x10] LEA RAX,[RSP + 0x20] CMP RDI,RAX JZ 0x00110828 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x001084e0 JMP 0x00110828 LAB_00110828: MOV RDI,qword ptr [RSP + 0x98] CMP RDI,RBP JZ 0x0011084a MOV RSI,qword ptr [RSP + 0xa8] INC RSI CALL 0x001084e0 JMP 0x0011084a LAB_0011084a: MOV RDI,qword ptr [RSP + 0x78] CMP RDI,R13 JZ 0x00110869 MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x001084e0 JMP 0x00110869 LAB_00110869: LEA RAX,[RSP + 0x108] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0011088f MOV RSI,qword ptr [RSP + 0x108] INC RSI CALL 0x001084e0 JMP 0x0011088f LAB_0011088f: LEA RAX,[RSP + 0xc8] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001108b5 MOV RSI,qword ptr [RSP + 0xc8] INC RSI CALL 0x001084e0 JMP 0x001108b5 LAB_001108b5: MOV RDI,qword ptr [RSP + 0x38] CMP RDI,R12 JZ 0x001108d1 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x001084e0 JMP 0x001108d1 LAB_001108d1: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R15 JZ 0x001108ed MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x001084e0 JMP 0x001108ed LAB_001108ed: MOV RDI,qword ptr [RSP + 0xd8] CMP RDI,R14 JZ 0x0011090a MOV RSI,qword ptr [RSP + 0xe8] INC RSI CALL 0x001084e0 LAB_0011090a: MOV RDI,RBX CALL 0x00108990
/* testing::internal::ForkingDeathTest::Wait() */ int __thiscall testing::internal::ForkingDeathTest::Wait(ForkingDeathTest *this) { __pid_t _Var1; int iVar2; int *piVar3; long *plVar4; int8 uVar5; long *plVar6; int local_13c; long *local_138; long local_130; long local_128; long lStack_120; int local_114; long *local_110; long local_108; long local_100; long lStack_f8; long *local_f0; long local_e8; long local_e0; long lStack_d8; long *local_d0; long local_c8; long local_c0; long lStack_b8; long *local_b0; long local_a8; long local_a0; long lStack_98; long *local_90 [2]; long local_80 [2]; long *local_70 [2]; long local_60 [2]; long *local_50 [2]; long local_40 [2]; iVar2 = 0; if (this[0x28] == (ForkingDeathTest)0x1) { DeathTestImpl::ReadAndInterpretStatusByte((DeathTestImpl *)this); while( true ) { _Var1 = waitpid(*(__pid_t *)(this + 0x3c),&local_13c,0); if (_Var1 != -1) break; piVar3 = __errno_location(); if (*piVar3 != 4) { local_70[0] = local_60; std::__cxx11::string::_M_construct<char_const*>(local_70,"CHECK failed: File ",""); /* try { // try from 001105e6 to 001105f4 has its CatchHandler @ 001108ea */ plVar4 = (long *)std::__cxx11::string::append((char *)local_70); local_f0 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_f0 == plVar6) { local_e0 = *plVar6; lStack_d8 = plVar4[3]; local_f0 = &local_e0; } else { local_e0 = *plVar6; } local_e8 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 00110658 to 00110663 has its CatchHandler @ 001108ce */ plVar4 = (long *)std::__cxx11::string::append((char *)&local_f0); local_110 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_110 == plVar6) { local_100 = *plVar6; lStack_f8 = plVar4[3]; local_110 = &local_100; } else { local_100 = *plVar6; } local_108 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; local_114 = 0x43d; /* try { // try from 001106b7 to 001106c3 has its CatchHandler @ 001108b2 */ StreamableToString<int>((internal *)local_90,&local_114); /* try { // try from 001106c4 to 001106dd has its CatchHandler @ 0011088c */ std::operator+((string *)local_50,(string *)&local_110); /* try { // try from 001106de to 001106f1 has its CatchHandler @ 00110866 */ plVar4 = (long *)std::__cxx11::string::append((char *)local_50); local_d0 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_d0 == plVar6) { local_c0 = *plVar6; lStack_b8 = plVar4[3]; local_d0 = &local_c0; } else { local_c0 = *plVar6; } local_c8 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 00110743 to 0011074e has its CatchHandler @ 00110847 */ plVar4 = (long *)std::__cxx11::string::append((char *)&local_d0); local_b0 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_b0 == plVar6) { local_a0 = *plVar6; lStack_98 = plVar4[3]; local_b0 = &local_a0; } else { local_a0 = *plVar6; } local_a8 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 001107a5 to 001107b0 has its CatchHandler @ 00110825 */ plVar4 = (long *)std::__cxx11::string::append((char *)&local_b0); local_138 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_138 == plVar6) { local_128 = *plVar6; lStack_120 = plVar4[3]; local_138 = &local_128; } else { local_128 = *plVar6; } local_130 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 001107ff to 00110803 has its CatchHandler @ 00110804 */ uVar5 = DeathTestAbort((string *)&local_138); /* catch() { ... } // from try @ 001107ff with catch @ 00110804 */ if (local_138 != &local_128) { operator_delete(local_138,local_128 + 1); } if (local_b0 != &local_a0) { operator_delete(local_b0,local_a0 + 1); } if (local_d0 != &local_c0) { operator_delete(local_d0,local_c0 + 1); } if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } if (local_90[0] != local_80) { operator_delete(local_90[0],local_80[0] + 1); } if (local_110 != &local_100) { operator_delete(local_110,local_100 + 1); } if (local_f0 != &local_e0) { operator_delete(local_f0,local_e0 + 1); } if (local_70[0] != local_60) { operator_delete(local_70[0],local_60[0] + 1); } /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar5); } } *(int *)(this + 0x2c) = local_13c; iVar2 = local_13c; } return iVar2; }
33,384
LefDefParser::lefwLayerRoutingMinenclosedarea(int, double*, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerRoutingMinenclosedarea(int numMinenclosed, double *area, double *width) { int i; if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING) return LEFW_BAD_ORDER; if (!lefwIsRouting) return LEFW_BAD_DATA; // only routing calls this func if (prtSemiColon) { // the previous statement hasn't written the ; yet if (lefwWriteEncrypt) encPrint(lefwFile, (char*) ";\n"); else fprintf(lefwFile, ";\n"); prtSemiColon = 0; } if (lefwWriteEncrypt) { for (i = 0; i < numMinenclosed; i++) { encPrint(lefwFile, (char*) " MINENCLOSEDAREA %.11g ", area[i]); if (width[i] != 0) encPrint(lefwFile, (char*) "WIDTH %.11g ", width[i]); encPrint(lefwFile, (char*) ";\n"); } } else { for (i = 0; i < numMinenclosed; i++) { fprintf(lefwFile, " MINENCLOSEDAREA %.11g ", area[i]); if (width[i] != 0) fprintf(lefwFile, "WIDTH %.11g ", width[i]); fprintf(lefwFile, ";\n"); } } lefwLines++; return LEFW_OK; }
O3
cpp
LefDefParser::lefwLayerRoutingMinenclosedarea(int, double*, double*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax leaq 0x1a1d5(%rip), %r12 # 0x24e00 movq (%r12), %rcx testq %rcx, %rcx je 0xac89 movq %rdx, %rbx movq %rsi, %r14 movl %edi, %ebp leaq 0x1a40d(%rip), %rax # 0x25050 movl (%rax), %edx cmpl $0x1f, %edx je 0xac58 movl $0x2, %eax cmpl $0x7, %edx jne 0xada0 leaq 0x1a465(%rip), %rax # 0x250c4 cmpl $0x0, (%rax) je 0xac93 cmpb $0x1, 0x1a489(%rip) # 0x250f4 jne 0xacba cmpb $0x1, 0x1a478(%rip) # 0x250ec jne 0xac9d leaq 0xf593(%rip), %rsi # 0x1a210 movq %rcx, %rdi xorl %eax, %eax callq 0x18c35 jmp 0xacb3 movl $0x1, %eax jmp 0xada0 movl $0x3, %eax jmp 0xada0 leaq 0xf56c(%rip), %rdi # 0x1a210 movl $0x2, %esi movl $0x1, %edx callq 0x1110 movb $0x0, 0x1a43a(%rip) # 0x250f4 cmpb $0x0, 0x1a42b(%rip) # 0x250ec je 0xad2b testl %ebp, %ebp jle 0xad95 movl %ebp, %ebp leaq 0xf53c(%rip), %r13 # 0x1a210 xorl %r15d, %r15d movq (%r12), %rdi movsd (%r14,%r15,8), %xmm0 leaq 0xfe5b(%rip), %rsi # 0x1ab43 movb $0x1, %al callq 0x18c35 movsd (%rbx,%r15,8), %xmm0 ucomisd 0xe7eb(%rip), %xmm0 # 0x194e8 jne 0xad01 jnp 0xad13 movq (%r12), %rdi leaq 0xf9de(%rip), %rsi # 0x1a6ea movb $0x1, %al callq 0x18c35 movq (%r12), %rdi movq %r13, %rsi xorl %eax, %eax callq 0x18c35 incq %r15 cmpq %r15, %rbp jne 0xacd7 jmp 0xad95 testl %ebp, %ebp jle 0xad95 movl %ebp, %ebp xorl %r15d, %r15d leaq 0xf4d5(%rip), %r13 # 0x1a210 movq (%r12), %rdi movsd (%r14,%r15,8), %xmm0 leaq 0xfdf7(%rip), %rsi # 0x1ab43 movb $0x1, %al callq 0x10f0 movsd (%rbx,%r15,8), %xmm0 ucomisd 0xe787(%rip), %xmm0 # 0x194e8 jne 0xad65 jnp 0xad77 movq (%r12), %rdi leaq 0xf97a(%rip), %rsi # 0x1a6ea movb $0x1, %al callq 0x10f0 movq (%r12), %rcx movl $0x2, %esi movl $0x1, %edx movq %r13, %rdi callq 0x1110 incq %r15 cmpq %r15, %rbp jne 0xad3b leaq 0x1a2b0(%rip), %rax # 0x2504c incl (%rax) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12LefDefParser31lefwLayerRoutingMinenclosedareaEiPdS0_: push rbp push r15 push r14 push r13 push r12 push rbx push rax lea r12, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rcx, [r12] test rcx, rcx jz short loc_AC89 mov rbx, rdx mov r14, rsi mov ebp, edi lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov edx, [rax] cmp edx, 1Fh jz short loc_AC58 mov eax, 2 cmp edx, 7 jnz loc_ADA0 loc_AC58: lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting cmp dword ptr [rax], 0 jz short loc_AC93 cmp cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon jnz short loc_ACBA cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_AC9D lea rsi, aDividercharS+11h; ";\n" mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_ACB3 loc_AC89: mov eax, 1 jmp loc_ADA0 loc_AC93: mov eax, 3 jmp loc_ADA0 loc_AC9D: lea rdi, aDividercharS+11h; ";\n" mov esi, 2 mov edx, 1 call _fwrite loc_ACB3: mov cs:_ZN12LefDefParserL12prtSemiColonE, 0; LefDefParser::prtSemiColon loc_ACBA: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_AD2B test ebp, ebp jle loc_AD95 mov ebp, ebp lea r13, aDividercharS+11h; ";\n" xor r15d, r15d loc_ACD7: mov rdi, [r12] movsd xmm0, qword ptr [r14+r15*8] lea rsi, aMinenclosedare; " MINENCLOSEDAREA %.11g " mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) movsd xmm0, qword ptr [rbx+r15*8] ucomisd xmm0, cs:qword_194E8 jnz short loc_AD01 jnp short loc_AD13 loc_AD01: mov rdi, [r12] lea rsi, aMinimumcut11gW+14h; "WIDTH %.11g " mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) loc_AD13: mov rdi, [r12] mov rsi, r13 xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) inc r15 cmp rbp, r15 jnz short loc_ACD7 jmp short loc_AD95 loc_AD2B: test ebp, ebp jle short loc_AD95 mov ebp, ebp xor r15d, r15d lea r13, aDividercharS+11h; ";\n" loc_AD3B: mov rdi, [r12] movsd xmm0, qword ptr [r14+r15*8] lea rsi, aMinenclosedare; " MINENCLOSEDAREA %.11g " mov al, 1 call _fprintf movsd xmm0, qword ptr [rbx+r15*8] ucomisd xmm0, cs:qword_194E8 jnz short loc_AD65 jnp short loc_AD77 loc_AD65: mov rdi, [r12] lea rsi, aMinimumcut11gW+14h; "WIDTH %.11g " mov al, 1 call _fprintf loc_AD77: mov rcx, [r12] mov esi, 2 mov edx, 1 mov rdi, r13 call _fwrite inc r15 cmp rbp, r15 jnz short loc_AD3B loc_AD95: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] xor eax, eax loc_ADA0: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long LefDefParser::lefwLayerRoutingMinenclosedarea( LefDefParser *this, long long a2, double *a3, double *a4, int a5, int a6) { int v6; // ecx unsigned int v8; // edx long long result; // rax long long v10; // r15 int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d long long v15; // r15 double v16; // xmm0_8 v6 = LefDefParser::lefwFile; if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; v8 = LefDefParser::lefwState; if ( LefDefParser::lefwState == 31 || (result = 2LL, LefDefParser::lefwState == 7) ) { if ( LefDefParser::lefwIsRouting ) { if ( LefDefParser::prtSemiColon == 1 ) { if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)";\n", LefDefParser::lefwState, LefDefParser::lefwFile, a5, a6); else fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); LefDefParser::prtSemiColon = 0; } if ( LefDefParser::lefwWriteEncrypt ) { if ( (int)this > 0 ) { v10 = 0LL; do { LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" MINENCLOSEDAREA %.11g ", v8, v6, a5, a6); if ( a3[v10] != 0.0 ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"WIDTH %.11g ", v11, v12, v13, v14); LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v11, v12, v13, v14); ++v10; } while ( (unsigned int)this != v10 ); } } else if ( (int)this > 0 ) { v15 = 0LL; do { fprintf(*(_QWORD *)&LefDefParser::lefwFile, " MINENCLOSEDAREA %.11g ", *(double *)(a2 + 8 * v15)); v16 = a3[v15]; if ( v16 != 0.0 ) fprintf(*(_QWORD *)&LefDefParser::lefwFile, "WIDTH %.11g ", v16); fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); ++v15; } while ( (unsigned int)this != v15 ); } ++LefDefParser::lefwLines; return 0LL; } else { return 3LL; } } return result; }
lefwLayerRoutingMinenclosedarea: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX LEA R12,[0x124e00] MOV RCX,qword ptr [R12] TEST RCX,RCX JZ 0x0010ac89 MOV RBX,RDX MOV R14,RSI MOV EBP,EDI LEA RAX,[0x125050] MOV EDX,dword ptr [RAX] CMP EDX,0x1f JZ 0x0010ac58 MOV EAX,0x2 CMP EDX,0x7 JNZ 0x0010ada0 LAB_0010ac58: LEA RAX,[0x1250c4] CMP dword ptr [RAX],0x0 JZ 0x0010ac93 CMP byte ptr [0x001250f4],0x1 JNZ 0x0010acba CMP byte ptr [0x001250ec],0x1 JNZ 0x0010ac9d LEA RSI,[0x11a210] MOV RDI,RCX XOR EAX,EAX CALL 0x00118c35 JMP 0x0010acb3 LAB_0010ac89: MOV EAX,0x1 JMP 0x0010ada0 LAB_0010ac93: MOV EAX,0x3 JMP 0x0010ada0 LAB_0010ac9d: LEA RDI,[0x11a210] MOV ESI,0x2 MOV EDX,0x1 CALL 0x00101110 LAB_0010acb3: MOV byte ptr [0x001250f4],0x0 LAB_0010acba: CMP byte ptr [0x001250ec],0x0 JZ 0x0010ad2b TEST EBP,EBP JLE 0x0010ad95 MOV EBP,EBP LEA R13,[0x11a210] XOR R15D,R15D LAB_0010acd7: MOV RDI,qword ptr [R12] MOVSD XMM0,qword ptr [R14 + R15*0x8] LEA RSI,[0x11ab43] MOV AL,0x1 CALL 0x00118c35 MOVSD XMM0,qword ptr [RBX + R15*0x8] UCOMISD XMM0,qword ptr [0x001194e8] JNZ 0x0010ad01 JNP 0x0010ad13 LAB_0010ad01: MOV RDI,qword ptr [R12] LEA RSI,[0x11a6ea] MOV AL,0x1 CALL 0x00118c35 LAB_0010ad13: MOV RDI,qword ptr [R12] MOV RSI,R13 XOR EAX,EAX CALL 0x00118c35 INC R15 CMP RBP,R15 JNZ 0x0010acd7 JMP 0x0010ad95 LAB_0010ad2b: TEST EBP,EBP JLE 0x0010ad95 MOV EBP,EBP XOR R15D,R15D LEA R13,[0x11a210] LAB_0010ad3b: MOV RDI,qword ptr [R12] MOVSD XMM0,qword ptr [R14 + R15*0x8] LEA RSI,[0x11ab43] MOV AL,0x1 CALL 0x001010f0 MOVSD XMM0,qword ptr [RBX + R15*0x8] UCOMISD XMM0,qword ptr [0x001194e8] JNZ 0x0010ad65 JNP 0x0010ad77 LAB_0010ad65: MOV RDI,qword ptr [R12] LEA RSI,[0x11a6ea] MOV AL,0x1 CALL 0x001010f0 LAB_0010ad77: MOV RCX,qword ptr [R12] MOV ESI,0x2 MOV EDX,0x1 MOV RDI,R13 CALL 0x00101110 INC R15 CMP RBP,R15 JNZ 0x0010ad3b LAB_0010ad95: LEA RAX,[0x12504c] INC dword ptr [RAX] XOR EAX,EAX LAB_0010ada0: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* LefDefParser::lefwLayerRoutingMinenclosedarea(int, double*, double*) */ int8 LefDefParser::lefwLayerRoutingMinenclosedarea(int param_1,double *param_2,double *param_3) { int8 uVar1; ulong uVar2; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else if ((lefwState == 0x1f) || (uVar1 = 2, lefwState == 7)) { if (lefwIsRouting == 0) { uVar1 = 3; } else { if (prtSemiColon == '\x01') { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile,";\n"); } else { fwrite(";\n",2,1,lefwFile); } prtSemiColon = '\0'; } if (lefwWriteEncrypt == '\0') { if (0 < param_1) { uVar2 = 0; do { fprintf(lefwFile," MINENCLOSEDAREA %.11g ",param_2[uVar2]); if ((param_3[uVar2] != _DAT_001194e8) || (NAN(param_3[uVar2]) || NAN(_DAT_001194e8))) { fprintf(lefwFile,"WIDTH %.11g "); } fwrite(";\n",2,1,lefwFile); uVar2 = uVar2 + 1; } while ((uint)param_1 != uVar2); } } else if (0 < param_1) { uVar2 = 0; do { encPrint(lefwFile," MINENCLOSEDAREA %.11g ",param_2[uVar2]); if ((param_3[uVar2] != _DAT_001194e8) || (NAN(param_3[uVar2]) || NAN(_DAT_001194e8))) { encPrint(lefwFile,"WIDTH %.11g "); } encPrint(lefwFile,";\n"); uVar2 = uVar2 + 1; } while ((uint)param_1 != uVar2); } lefwLines = lefwLines + 1; uVar1 = 0; } } return uVar1; }
33,385
engine_event
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/engine.c
static int32_t _engine_event (PENGINE_T engine, uint16_t event) { uint16_t idx ; uint16_t event_id ; log_event (engine, event) ; event_id = state_event (engine, event, &idx) ; if (idx != STATEMACHINE_INVALID_STATE) { uint16_t cond = (event_id & STATES_EVENT_COND_MASK) >> STATES_EVENT_COND_OFFSET ; do { queue_all_deferred (engine) ; if (state_transition (engine, idx, cond) != ENGINE_OK) break ; /* lock the PREVIOUS state if the PREVIOUS_PIN flag is set */ if (event_id & STATES_EVENT_PREVIOUS_PIN) engine->prev_pin = 1 ; log_event (engine, STATEMACHINE_STATE_START) ; event_id = state_event (engine, STATEMACHINE_STATE_START, &idx) ; cond = (event_id & STATES_EVENT_COND_MASK) >> STATES_EVENT_COND_OFFSET ; /* _state_start may continue to transition the state machine */ } while (idx != STATEMACHINE_INVALID_STATE) ; } return ENGINE_OK ; }
O3
c
engine_event: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %r14d movq %rdi, %rbx callq 0xecd5 leaq -0x2a(%rbp), %r15 movq %rbx, %rdi movl %r14d, %esi movq %r15, %rdx callq 0xf141 movzwl (%r15), %r14d cmpw $-0x1, %r14w je 0xfc68 movl %eax, %r13d leal 0x12b77(%rip), %eax # 0x226c8 subl 0x2e489(%rip), %eax # 0x3dfe0 shrl $0x4, %eax movzwl %ax, %eax movl %eax, -0x30(%rbp) leaq 0x16b17(%rip), %r12 # 0x2667e movq 0x80(%rbx), %r15 testq %r15, %r15 je 0xfbe3 testb $0x1, 0x2e7fe(%rip) # 0x3e378 je 0xfba2 movzwl 0xc(%r15), %edi callq 0x816a movl 0x88(%rbx), %r8d movq %rbx, %rdi movl $0x1, %esi movq %r12, %rdx movq %rax, %rcx xorl %eax, %eax callq 0xe379 movzwl 0xc(%r15), %esi movl 0x8(%r15), %edx movq %rbx, %rdi callq 0xfd43 movq (%r15), %rax movq %rax, 0x80(%rbx) xorl %edi, %edi movq %r15, %rsi callq 0xd999 movl 0x88(%rbx), %eax decl %eax movl %eax, 0x88(%rbx) movq 0x80(%rbx), %r15 testq %r15, %r15 jne 0xfb73 jmp 0xfbe9 movl 0x88(%rbx), %eax testl %eax, %eax je 0xfc0e leaq 0x30d54(%rip), %rax # 0x40948 movq (%rax), %rax testq %rax, %rax je 0xfc0e movq 0x18(%rax), %rax testq %rax, %rax je 0xfc0e leaq 0x16a96(%rip), %rdi # 0x266a2 callq *%rax movl %r13d, %eax shrl $0xc, %eax andl $0x7, %eax movzwl %r14w, %esi movzwl %ax, %edx movq %rbx, %rdi callq 0xedbf testl %eax, %eax jne 0xfc68 testw %r13w, %r13w jns 0xfc37 movl $0x1, 0x7c(%rbx) movq %rbx, %rdi movl -0x30(%rbp), %r14d movl %r14d, %esi callq 0xecd5 movq %rbx, %rdi movl %r14d, %esi leaq -0x2a(%rbp), %rdx callq 0xf141 movl %eax, %r13d movzwl -0x2a(%rbp), %r14d cmpw $-0x1, %r14w jne 0xfb67 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_engine_event: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14d, esi mov rbx, rdi call log_event lea r15, [rbp+var_2A] mov rdi, rbx mov esi, r14d mov rdx, r15 call state_event movzx r14d, word ptr [r15] cmp r14w, 0FFFFh jz loc_FC68 mov r13d, eax lea eax, __engine_event__state_start sub eax, dword ptr cs:__engine_event_base___ptr_0 shr eax, 4 movzx eax, ax mov [rbp+var_30], eax lea r12, aDbgRemoveDefer; "[dbg] remove deferred event %s (%d)" loc_FB67: mov r15, [rbx+80h] test r15, r15 jz short loc_FBE3 loc_FB73: test byte ptr cs:_engine_log_filter, 1 jz short loc_FBA2 movzx edi, word ptr [r15+0Ch] call parts_get_event_name mov r8d, [rbx+88h] mov rdi, rbx mov esi, 1 mov rdx, r12 mov rcx, rax xor eax, eax call engine_log loc_FBA2: movzx esi, word ptr [r15+0Ch] mov edx, [r15+8] mov rdi, rbx call engine_queue_event mov rax, [r15] mov [rbx+80h], rax xor edi, edi mov rsi, r15 call engine_port_free mov eax, [rbx+88h] dec eax mov [rbx+88h], eax mov r15, [rbx+80h] test r15, r15 jnz short loc_FB73 jmp short loc_FBE9 loc_FBE3: mov eax, [rbx+88h] loc_FBE9: test eax, eax jz short loc_FC0E lea rax, _qoraal_instance mov rax, [rax] test rax, rax jz short loc_FC0E mov rax, [rax+18h] test rax, rax jz short loc_FC0E lea rdi, aQueueAllDeferr; "queue_all_deferred invalid!" call rax loc_FC0E: mov eax, r13d shr eax, 0Ch and eax, 7 movzx esi, r14w movzx edx, ax mov rdi, rbx call state_transition test eax, eax jnz short loc_FC68 test r13w, r13w jns short loc_FC37 mov dword ptr [rbx+7Ch], 1 loc_FC37: mov rdi, rbx mov r14d, [rbp+var_30] mov esi, r14d call log_event mov rdi, rbx mov esi, r14d lea rdx, [rbp+var_2A] call state_event mov r13d, eax movzx r14d, [rbp+var_2A] cmp r14w, 0FFFFh jnz loc_FB67 loc_FC68: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
__int16 engine_event( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14) { char v14; // al long long v15; // rcx long long v16; // r8 long long v17; // r9 __m128 v18; // xmm4 __m128 v19; // xmm5 unsigned int v20; // eax long long v21; // rcx long long v22; // r8 long long v23; // r9 __m128 v24; // xmm4 __m128 v25; // xmm5 unsigned __int16 v26; // r14 unsigned int v27; // r13d long long v28; // r15 char *event_name; // rax long long v30; // r9 __m128 v31; // xmm4 __m128 v32; // xmm5 int v33; // eax double ( *v34)(char *); // rax long long v35; // rdx long long v36; // rcx long long v37; // r8 long long v38; // r9 double v39; // xmm4_8 double v40; // xmm5_8 int v41; // r14d long long v42; // rcx long long v43; // r8 long long v44; // r9 __m128 v45; // xmm4 __m128 v46; // xmm5 unsigned int v48; // [rsp+0h] [rbp-30h] _WORD v49[21]; // [rsp+6h] [rbp-2Ah] BYREF log_event((unsigned int *)a1, a2, a7, a8, a9, a10, a11, a12, a13, a14, a3, a4, a5, a6, v14); LOWORD(v20) = state_event(a1, a2, v49, a7, a8, a9, a10, v18, v19, a13, a14, v15, v16, v17); v26 = v49[0]; if ( v49[0] != 0xFFFF ) { v27 = v20; v48 = (unsigned __int16)(((unsigned int)_engine_event__state_start - (unsigned int)_engine_event_base__) >> 4); do { v28 = *(_QWORD *)(a1 + 128); if ( v28 ) { do { if ( (engine_log_filter & 1) != 0 ) { event_name = parts_get_event_name(*(_WORD *)(v28 + 12)); engine_log( (unsigned int *)a1, 1, (long long)aDbgRemoveDefer, (long long)event_name, *(unsigned int *)(a1 + 136), v30, a7, a8, a9, a10, v31, v32, a13, a14, v48); } engine_queue_event(a1, *(unsigned __int16 *)(v28 + 12), *(unsigned int *)(v28 + 8)); *(_QWORD *)(a1 + 128) = *(_QWORD *)v28; engine_port_free(0, v28); v33 = *(_DWORD *)(a1 + 136) - 1; *(_DWORD *)(a1 + 136) = v33; v28 = *(_QWORD *)(a1 + 128); } while ( v28 ); } else { v33 = *(_DWORD *)(a1 + 136); } if ( v33 ) { if ( qoraal_instance ) { v34 = *(double ( **)(char *))(qoraal_instance + 24); if ( v34 ) *(double *)a7.m128_u64 = v34(aQueueAllDeferr); } } v20 = state_transition(a1, v26, (v27 >> 12) & 7, a7, a8, a9, a10, v24, v25, a13, a14, v21, v22, v23); if ( v20 ) break; if ( (v27 & 0x8000u) != 0 ) *(_DWORD *)(a1 + 124) = 1; v41 = v48; log_event((unsigned int *)a1, v48, a7, a8, a9, a10, v39, v40, a13, a14, v35, v36, v37, v38, v48); LOWORD(v20) = state_event(a1, v41, v49, a7, a8, a9, a10, v45, v46, a13, a14, v42, v43, v44); v27 = v20; v26 = v49[0]; } while ( v49[0] != 0xFFFF ); } return v20; }
_engine_event: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14D,ESI MOV RBX,RDI CALL 0x0010ecd5 LEA R15,[RBP + -0x2a] MOV RDI,RBX MOV ESI,R14D MOV RDX,R15 CALL 0x0010f141 MOVZX R14D,word ptr [R15] CMP R14W,-0x1 JZ 0x0010fc68 MOV R13D,EAX LEA EAX,[0x1226c8] SUB EAX,dword ptr [0x0013dfe0] SHR EAX,0x4 MOVZX EAX,AX MOV dword ptr [RBP + -0x30],EAX LEA R12,[0x12667e] LAB_0010fb67: MOV R15,qword ptr [RBX + 0x80] TEST R15,R15 JZ 0x0010fbe3 LAB_0010fb73: TEST byte ptr [0x0013e378],0x1 JZ 0x0010fba2 MOVZX EDI,word ptr [R15 + 0xc] CALL 0x0010816a MOV R8D,dword ptr [RBX + 0x88] MOV RDI,RBX MOV ESI,0x1 MOV RDX,R12 MOV RCX,RAX XOR EAX,EAX CALL 0x0010e379 LAB_0010fba2: MOVZX ESI,word ptr [R15 + 0xc] MOV EDX,dword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x0010fd43 MOV RAX,qword ptr [R15] MOV qword ptr [RBX + 0x80],RAX XOR EDI,EDI MOV RSI,R15 CALL 0x0010d999 MOV EAX,dword ptr [RBX + 0x88] DEC EAX MOV dword ptr [RBX + 0x88],EAX MOV R15,qword ptr [RBX + 0x80] TEST R15,R15 JNZ 0x0010fb73 JMP 0x0010fbe9 LAB_0010fbe3: MOV EAX,dword ptr [RBX + 0x88] LAB_0010fbe9: TEST EAX,EAX JZ 0x0010fc0e LEA RAX,[0x140948] MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x0010fc0e MOV RAX,qword ptr [RAX + 0x18] TEST RAX,RAX JZ 0x0010fc0e LEA RDI,[0x1266a2] CALL RAX LAB_0010fc0e: MOV EAX,R13D SHR EAX,0xc AND EAX,0x7 MOVZX ESI,R14W MOVZX EDX,AX MOV RDI,RBX CALL 0x0010edbf TEST EAX,EAX JNZ 0x0010fc68 TEST R13W,R13W JNS 0x0010fc37 MOV dword ptr [RBX + 0x7c],0x1 LAB_0010fc37: MOV RDI,RBX MOV R14D,dword ptr [RBP + -0x30] MOV ESI,R14D CALL 0x0010ecd5 MOV RDI,RBX MOV ESI,R14D LEA RDX,[RBP + -0x2a] CALL 0x0010f141 MOV R13D,EAX MOVZX R14D,word ptr [RBP + -0x2a] CMP R14W,-0x1 JNZ 0x0010fb67 LAB_0010fc68: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void _engine_event(long param_1,int4 param_2) { ulong uVar1; uint uVar2; int iVar3; int8 in_RAX; int8 uVar4; short sVar5; int8 *puVar6; int8 local_38; int4 uVar7; uVar7 = (int4)((ulong)in_RAX >> 0x30); log_event(); local_38._4_4_ = uVar7; uVar2 = state_event(param_1,param_2,(long)&local_38 + 6); if (local_38._6_2_ != -1) { sVar5 = local_38._6_2_; local_38 = CONCAT44(local_38._4_4_, 0x1226c8U - (int)PTR___engine_event__console_char_0013dfe0 >> 4) & 0xffffffff0000ffff; do { puVar6 = *(int8 **)(param_1 + 0x80); if (puVar6 == (int8 *)0x0) { iVar3 = *(int *)(param_1 + 0x88); } else { do { if (((byte)_engine_log_filter & 1) != 0) { uVar4 = parts_get_event_name(*(int2 *)((long)puVar6 + 0xc)); engine_log(param_1,1,s__dbg__remove_deferred_event__s___0012667e,uVar4, *(int4 *)(param_1 + 0x88)); } engine_queue_event(param_1,*(int2 *)((long)puVar6 + 0xc),*(int4 *)(puVar6 + 1) ); *(int8 *)(param_1 + 0x80) = *puVar6; engine_port_free(0,puVar6); iVar3 = *(int *)(param_1 + 0x88) + -1; *(int *)(param_1 + 0x88) = iVar3; puVar6 = *(int8 **)(param_1 + 0x80); } while (puVar6 != (int8 *)0x0); } if (((iVar3 != 0) && (_qoraal_instance != 0)) && (*(code **)(_qoraal_instance + 0x18) != (code *)0x0)) { (**(code **)(_qoraal_instance + 0x18))(s_queue_all_deferred_invalid__001266a2); } iVar3 = state_transition(param_1,sVar5,uVar2 >> 0xc & 7); uVar1 = local_38; if (iVar3 != 0) { return; } if ((short)uVar2 < 0) { *(int4 *)(param_1 + 0x7c) = 1; } log_event(param_1,local_38 & 0xffffffff); uVar2 = state_event(param_1,uVar1 & 0xffffffff,(long)&local_38 + 6); sVar5 = local_38._6_2_; } while (local_38._6_2_ != -1); } return; }
33,386
skip_all
eloqsql/unittest/mytap/tap.c
void skip_all(char const *reason, ...) { va_list ap; va_start(ap, reason); fprintf(tapout, "1..0 # skip "); vfprintf(tapout, reason, ap); fflush(tapout); va_end(ap); exit(0); }
O0
c
skip_all: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp testb %al, %al je 0xd9e05 movaps %xmm0, -0xa0(%rbp) movaps %xmm1, -0x90(%rbp) movaps %xmm2, -0x80(%rbp) movaps %xmm3, -0x70(%rbp) movaps %xmm4, -0x60(%rbp) movaps %xmm5, -0x50(%rbp) movaps %xmm6, -0x40(%rbp) movaps %xmm7, -0x30(%rbp) movq %r9, -0xa8(%rbp) movq %r8, -0xb0(%rbp) movq %rcx, -0xb8(%rbp) movq %rdx, -0xc0(%rbp) movq %rsi, -0xc8(%rbp) movq %rdi, -0x8(%rbp) leaq -0x20(%rbp), %rax leaq -0xd0(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq 0x1e3179(%rip), %rax # 0x2bcfd0 movq (%rax), %rdi leaq 0x79f60(%rip), %rsi # 0x153dc1 movb $0x0, %al callq 0x2a180 movq 0x1e3161(%rip), %rax # 0x2bcfd0 movq (%rax), %rdi movq -0x8(%rbp), %rsi leaq -0x20(%rbp), %rdx callq 0x2a7e0 movq 0x1e314a(%rip), %rax # 0x2bcfd0 movq (%rax), %rdi callq 0x2a3e0 leaq -0x20(%rbp), %rax xorl %edi, %edi callq 0x2a500 nopl (%rax)
skip_all: push rbp mov rbp, rsp sub rsp, 0D0h test al, al jz short loc_D9E05 movaps [rbp+var_A0], xmm0 movaps [rbp+var_90], xmm1 movaps [rbp+var_80], xmm2 movaps [rbp+var_70], xmm3 movaps [rbp+var_60], xmm4 movaps [rbp+var_50], xmm5 movaps [rbp+var_40], xmm6 movaps [rbp+var_30], xmm7 loc_D9E05: mov [rbp+var_A8], r9 mov [rbp+var_B0], r8 mov [rbp+var_B8], rcx mov [rbp+var_C0], rdx mov [rbp+var_C8], rsi mov [rbp+var_8], rdi lea rax, [rbp+var_20] lea rcx, [rbp+var_D0] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov rax, cs:stdout_ptr mov rdi, [rax] lea rsi, a10Skip; "1..0 # skip " mov al, 0 call _fprintf mov rax, cs:stdout_ptr mov rdi, [rax] mov rsi, [rbp+var_8] lea rdx, [rbp+var_20] call _vfprintf mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush lea rax, [rbp+var_20] xor edi, edi call _exit
void __noreturn skip_all( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v15; // [rsp+0h] [rbp-D0h] BYREF long long v16; // [rsp+8h] [rbp-C8h] long long v17; // [rsp+10h] [rbp-C0h] long long v18; // [rsp+18h] [rbp-B8h] long long v19; // [rsp+20h] [rbp-B0h] long long v20; // [rsp+28h] [rbp-A8h] __m128 v21; // [rsp+30h] [rbp-A0h] __m128 v22; // [rsp+40h] [rbp-90h] __m128 v23; // [rsp+50h] [rbp-80h] __m128 v24; // [rsp+60h] [rbp-70h] __m128 v25; // [rsp+70h] [rbp-60h] __m128 v26; // [rsp+80h] [rbp-50h] __m128 v27; // [rsp+90h] [rbp-40h] __m128 v28; // [rsp+A0h] [rbp-30h] _DWORD v29[2]; // [rsp+B0h] [rbp-20h] BYREF char *v30; // [rsp+B8h] [rbp-18h] char *v31; // [rsp+C0h] [rbp-10h] long long v32; // [rsp+C8h] [rbp-8h] v21 = a7; v22 = a8; v23 = a9; v24 = a10; v25 = a11; v26 = a12; v27 = a13; v28 = a14; v20 = a6; v19 = a5; v18 = a4; v17 = a3; v16 = a2; v32 = a1; v31 = &v15; v30 = &a15; v29[1] = 48; v29[0] = 8; fprintf(stdout, "1..0 # skip "); vfprintf(stdout, v32, v29); fflush(stdout); exit(0LL); }
skip_all: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 TEST AL,AL JZ 0x001d9e05 MOVAPS xmmword ptr [RBP + -0xa0],XMM0 MOVAPS xmmword ptr [RBP + -0x90],XMM1 MOVAPS xmmword ptr [RBP + -0x80],XMM2 MOVAPS xmmword ptr [RBP + -0x70],XMM3 MOVAPS xmmword ptr [RBP + -0x60],XMM4 MOVAPS xmmword ptr [RBP + -0x50],XMM5 MOVAPS xmmword ptr [RBP + -0x40],XMM6 MOVAPS xmmword ptr [RBP + -0x30],XMM7 LAB_001d9e05: MOV qword ptr [RBP + -0xa8],R9 MOV qword ptr [RBP + -0xb0],R8 MOV qword ptr [RBP + -0xb8],RCX MOV qword ptr [RBP + -0xc0],RDX MOV qword ptr [RBP + -0xc8],RSI MOV qword ptr [RBP + -0x8],RDI LEA RAX,[RBP + -0x20] LEA RCX,[RBP + -0xd0] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV RAX,qword ptr [0x003bcfd0] MOV RDI,qword ptr [RAX] LEA RSI,[0x253dc1] MOV AL,0x0 CALL 0x0012a180 MOV RAX,qword ptr [0x003bcfd0] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x8] LEA RDX,[RBP + -0x20] CALL 0x0012a7e0 MOV RAX,qword ptr [0x003bcfd0] MOV RDI,qword ptr [RAX] CALL 0x0012a3e0 LEA RAX,[RBP + -0x20] XOR EDI,EDI CALL 0x0012a500
void skip_all(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, char *param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_d8 [8]; int8 local_d0; 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; int4 local_28; int4 local_24; int1 *local_20; int1 *local_18; char *local_10; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_18 = local_d8; local_20 = &stack0x00000008; local_24 = 0x30; local_28 = 8; local_d0 = param_10; local_c8 = param_11; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; local_10 = param_9; fprintf(*(FILE **)PTR_stdout_003bcfd0,"1..0 # skip "); vfprintf(*(FILE **)PTR_stdout_003bcfd0,local_10,&local_28); fflush(*(FILE **)PTR_stdout_003bcfd0); /* WARNING: Subroutine does not return */ exit(0); }
33,387
coro::detail::sync_wait_event::wait()
AlayaLite/build_O3/_deps/libcoro-src/src/sync_wait.cpp
auto sync_wait_event::wait() noexcept -> void { std::unique_lock<std::mutex> lk{m_mutex}; m_cv.wait(lk, [this] { return m_set.load(std::memory_order::seq_cst); }); }
O3
cpp
coro::detail::sync_wait_event::wait(): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq %rsp, %rdi movq %rbx, (%rdi) movb $0x0, 0x8(%rdi) callq 0x5e6c movb $0x1, 0x8(%rsp) movb 0x58(%rbx), %al testb $0x1, %al jne 0x5e3c leaq 0x28(%rbx), %r14 movq %rsp, %r15 movq %r14, %rdi movq %r15, %rsi callq 0x3080 movb 0x58(%rbx), %al testb $0x1, %al je 0x5e2a movq %rsp, %rdi callq 0x5e56 addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rdi callq 0x4a0a
_ZN4coro6detail15sync_wait_event4waitEv: push r15 push r14 push rbx sub rsp, 10h mov rbx, rdi mov rdi, rsp mov [rdi], rbx mov byte ptr [rdi+8], 0 call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void) mov [rsp+28h+var_20], 1 mov al, [rbx+58h] test al, 1 jnz short loc_5E3C lea r14, [rbx+28h] mov r15, rsp loc_5E2A: mov rdi, r14 mov rsi, r15 call __ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE; std::condition_variable::wait(std::unique_lock<std::mutex> &) mov al, [rbx+58h] test al, 1 jz short loc_5E2A loc_5E3C: mov rdi, rsp call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() add rsp, 10h pop rbx pop r14 pop r15 retn mov rdi, rax call __clang_call_terminate
long long coro::detail::sync_wait_event::wait(coro::detail::sync_wait_event *this, long long a2) { coro::detail::sync_wait_event *v3; // [rsp+0h] [rbp-28h] BYREF char v4; // [rsp+8h] [rbp-20h] v3 = this; v4 = 0; std::unique_lock<std::mutex>::lock(&v3, a2); v4 = 1; while ( (*((_BYTE *)this + 88) & 1) == 0 ) std::condition_variable::wait((char *)this + 40, &v3); return std::unique_lock<std::mutex>::~unique_lock(&v3); }
wait: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RDI,RSP MOV qword ptr [RDI],RBX MOV byte ptr [RDI + 0x8],0x0 LAB_00105e12: CALL 0x00105e6c MOV byte ptr [RSP + 0x8],0x1 MOV AL,byte ptr [RBX + 0x58] TEST AL,0x1 JNZ 0x00105e3c LEA R14,[RBX + 0x28] MOV R15,RSP LAB_00105e2a: MOV RDI,R14 MOV RSI,R15 CALL 0x00103080 MOV AL,byte ptr [RBX + 0x58] TEST AL,0x1 JZ 0x00105e2a LAB_00105e3c: MOV RDI,RSP CALL 0x00105e56 ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* coro::detail::sync_wait_event::wait() */ void __thiscall coro::detail::sync_wait_event::wait(sync_wait_event *this) { sync_wait_event *local_28; int1 local_20; local_20 = 0; local_28 = this; /* try { // try from 00105e12 to 00105e16 has its CatchHandler @ 00105e4e */ std::unique_lock<std::mutex>::lock(); local_20 = 1; if (((byte)this[0x58] & 1) == 0) { do { std::condition_variable::wait((unique_lock *)(this + 0x28)); } while (((byte)this[0x58] & 1) == 0); } std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_28); return; }
33,388
sp_make_key
eloqsql/storage/myisam/sp_key.c
uint sp_make_key(register MI_INFO *info, uint keynr, uchar *key, const uchar *record, my_off_t filepos) { HA_KEYSEG *keyseg; MI_KEYDEF *keyinfo = &info->s->keyinfo[keynr]; uint len = 0; uchar *pos; uint dlen; uchar *dptr; double mbr[SPDIMS * 2]; uint i; keyseg = &keyinfo->seg[-1]; pos = (uchar*)record + keyseg->start; dlen = _mi_calc_blob_length(keyseg->bit_start, pos); memcpy(&dptr, pos + keyseg->bit_start, sizeof(char*)); if (!dptr) { my_errno= HA_ERR_NULL_IN_SPATIAL; return 0; } sp_mbr_from_wkb(dptr + 4, dlen - 4, SPDIMS, mbr); /* SRID */ for (i = 0, keyseg = keyinfo->seg; keyseg->type; keyseg++, i++) { uint length = keyseg->length, start= keyseg->start; double val; DBUG_ASSERT(length == sizeof(double)); DBUG_ASSERT(!(start % sizeof(double))); DBUG_ASSERT(start < sizeof(mbr)); DBUG_ASSERT(keyseg->type == HA_KEYTYPE_DOUBLE); val= mbr[start / sizeof (double)]; if (isnan(val)) { bzero(key, length); key+= length; len+= length; continue; } if (keyseg->flag & HA_SWAP_KEY) { uchar buf[sizeof(double)]; float8store(buf, val); pos= &buf[length]; while (pos > buf) *key++ = *--pos; } else { float8store((uchar *)key, val); key += length; } len+= length; } _mi_dpointer(info, key, filepos); return len; }
O0
c
sp_make_key: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x20(%rbp) movl %esi, -0x24(%rbp) movq %rdx, -0x30(%rbp) movq %rcx, -0x38(%rbp) movq %r8, -0x40(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq 0x218(%rax), %rax movl -0x24(%rbp), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq %rax, -0x50(%rbp) movl $0x0, -0x54(%rbp) movq -0x50(%rbp), %rax movq 0x28(%rax), %rax addq $-0x20, %rax movq %rax, -0x48(%rbp) movq -0x38(%rbp), %rax movq -0x48(%rbp), %rcx movl 0x8(%rcx), %ecx addq %rcx, %rax movq %rax, -0x60(%rbp) movq -0x48(%rbp), %rax movzbl 0x1a(%rax), %edi movq -0x60(%rbp), %rsi callq 0xae7c0 movl %eax, -0x64(%rbp) movq -0x60(%rbp), %rax movq -0x48(%rbp), %rcx movzbl 0x1a(%rcx), %ecx movslq %ecx, %rcx movq (%rax,%rcx), %rax movq %rax, -0x70(%rbp) cmpq $0x0, -0x70(%rbp) jne 0xd97e9 callq 0xf9990 movl $0x9e, (%rax) movl $0x0, -0x14(%rbp) jmp 0xd9982 movq -0x70(%rbp), %rdi addq $0x4, %rdi movl -0x64(%rbp), %esi subl $0x4, %esi leaq -0x90(%rbp), %rcx movl $0x2, %edx callq 0xd99c0 movl $0x0, -0x94(%rbp) movq -0x50(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax cmpb $0x0, 0x18(%rax) je 0xd996b movq -0x48(%rbp), %rax movzwl 0x14(%rax), %eax movl %eax, -0x98(%rbp) movq -0x48(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x9c(%rbp) jmp 0xd9849 jmp 0xd984b jmp 0xd984d jmp 0xd984f jmp 0xd9851 jmp 0xd9853 jmp 0xd9855 movl -0x9c(%rbp), %eax shrq $0x3, %rax movsd -0x90(%rbp,%rax,8), %xmm0 movsd %xmm0, -0xa8(%rbp) movsd -0xa8(%rbp), %xmm0 ucomisd %xmm0, %xmm0 setp %al testb $0x1, %al jne 0xd9885 jmp 0xd98bc movq -0x30(%rbp), %rdi movl -0x98(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x292a0 movl -0x98(%rbp), %ecx movq -0x30(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x30(%rbp) movl -0x98(%rbp), %eax addl -0x54(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0xd994b movq -0x48(%rbp), %rax movzwl 0x12(%rax), %eax andl $0x40, %eax cmpl $0x0, %eax je 0xd991e movq -0xa8(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x98(%rbp), %eax movl %eax, %ecx leaq -0x10(%rbp), %rax addq %rcx, %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax leaq -0x10(%rbp), %rcx cmpq %rcx, %rax jbe 0xd991c movq -0x60(%rbp), %rax movq %rax, %rcx addq $-0x1, %rcx movq %rcx, -0x60(%rbp) movb -0x1(%rax), %cl movq -0x30(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x30(%rbp) movb %cl, (%rax) jmp 0xd98ea jmp 0xd993f movq -0x30(%rbp), %rax movq -0xa8(%rbp), %rcx movq %rcx, (%rax) movl -0x98(%rbp), %ecx movq -0x30(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x30(%rbp) movl -0x98(%rbp), %eax addl -0x54(%rbp), %eax movl %eax, -0x54(%rbp) movq -0x48(%rbp), %rax addq $0x20, %rax movq %rax, -0x48(%rbp) movl -0x94(%rbp), %eax addl $0x1, %eax movl %eax, -0x94(%rbp) jmp 0xd981e movq -0x20(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x40(%rbp), %rdx callq 0xc41e0 movl -0x54(%rbp), %eax movl %eax, -0x14(%rbp) movl -0x14(%rbp), %eax movl %eax, -0xac(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xd99ac movl -0xac(%rbp), %eax addq $0xb0, %rsp popq %rbp retq callq 0x29250 nopw %cs:(%rax,%rax)
sp_make_key: push rbp mov rbp, rsp sub rsp, 0B0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_20], rdi mov [rbp+var_24], esi mov [rbp+var_30], rdx mov [rbp+var_38], rcx mov [rbp+var_40], r8 mov rax, [rbp+var_20] mov rax, [rax] mov rax, [rax+218h] mov ecx, [rbp+var_24] imul rcx, 70h ; 'p' add rax, rcx mov [rbp+var_50], rax mov [rbp+var_54], 0 mov rax, [rbp+var_50] mov rax, [rax+28h] add rax, 0FFFFFFFFFFFFFFE0h mov [rbp+var_48], rax mov rax, [rbp+var_38] mov rcx, [rbp+var_48] mov ecx, [rcx+8] add rax, rcx mov [rbp+var_60], rax mov rax, [rbp+var_48] movzx edi, byte ptr [rax+1Ah] mov rsi, [rbp+var_60] call _mi_calc_blob_length mov [rbp+var_64], eax mov rax, [rbp+var_60] mov rcx, [rbp+var_48] movzx ecx, byte ptr [rcx+1Ah] movsxd rcx, ecx mov rax, [rax+rcx] mov [rbp+var_70], rax cmp [rbp+var_70], 0 jnz short loc_D97E9 call _my_thread_var mov dword ptr [rax], 9Eh mov [rbp+var_14], 0 jmp loc_D9982 loc_D97E9: mov rdi, [rbp+var_70] add rdi, 4 mov esi, [rbp+var_64] sub esi, 4 lea rcx, [rbp+var_90] mov edx, 2 call sp_mbr_from_wkb_0 mov [rbp+var_94], 0 mov rax, [rbp+var_50] mov rax, [rax+28h] mov [rbp+var_48], rax loc_D981E: mov rax, [rbp+var_48] cmp byte ptr [rax+18h], 0 jz loc_D996B mov rax, [rbp+var_48] movzx eax, word ptr [rax+14h] mov [rbp+var_98], eax mov rax, [rbp+var_48] mov eax, [rax+8] mov [rbp+var_9C], eax jmp short $+2 loc_D9849: jmp short $+2 loc_D984B: jmp short $+2 loc_D984D: jmp short $+2 loc_D984F: jmp short $+2 loc_D9851: jmp short $+2 loc_D9853: jmp short $+2 loc_D9855: mov eax, [rbp+var_9C] shr rax, 3 movsd xmm0, [rbp+rax*8+var_90] movsd [rbp+var_A8], xmm0 movsd xmm0, [rbp+var_A8] ucomisd xmm0, xmm0 setp al test al, 1 jnz short loc_D9885 jmp short loc_D98BC loc_D9885: mov rdi, [rbp+var_30] mov eax, [rbp+var_98] mov edx, eax xor esi, esi call _memset mov ecx, [rbp+var_98] mov rax, [rbp+var_30] mov ecx, ecx add rax, rcx mov [rbp+var_30], rax mov eax, [rbp+var_98] add eax, [rbp+var_54] mov [rbp+var_54], eax jmp loc_D994B loc_D98BC: mov rax, [rbp+var_48] movzx eax, word ptr [rax+12h] and eax, 40h cmp eax, 0 jz short loc_D991E mov rax, [rbp+var_A8] mov [rbp+var_10], rax mov eax, [rbp+var_98] mov ecx, eax lea rax, [rbp+var_10] add rax, rcx mov [rbp+var_60], rax loc_D98EA: mov rax, [rbp+var_60] lea rcx, [rbp+var_10] cmp rax, rcx jbe short loc_D991C mov rax, [rbp+var_60] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_60], rcx mov cl, [rax-1] mov rax, [rbp+var_30] mov rdx, rax add rdx, 1 mov [rbp+var_30], rdx mov [rax], cl jmp short loc_D98EA loc_D991C: jmp short loc_D993F loc_D991E: mov rax, [rbp+var_30] mov rcx, [rbp+var_A8] mov [rax], rcx mov ecx, [rbp+var_98] mov rax, [rbp+var_30] mov ecx, ecx add rax, rcx mov [rbp+var_30], rax loc_D993F: mov eax, [rbp+var_98] add eax, [rbp+var_54] mov [rbp+var_54], eax loc_D994B: mov rax, [rbp+var_48] add rax, 20h ; ' ' mov [rbp+var_48], rax mov eax, [rbp+var_94] add eax, 1 mov [rbp+var_94], eax jmp loc_D981E loc_D996B: mov rdi, [rbp+var_20] mov rsi, [rbp+var_30] mov rdx, [rbp+var_40] call _mi_dpointer mov eax, [rbp+var_54] mov [rbp+var_14], eax loc_D9982: mov eax, [rbp+var_14] mov [rbp+var_AC], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_D99AC mov eax, [rbp+var_AC] add rsp, 0B0h pop rbp retn loc_D99AC: call ___stack_chk_fail
long long sp_make_key(long long a1, unsigned int a2, _BYTE *a3, long long a4, unsigned long long a5) { long long v5; // rdi unsigned __int8 *v6; // rax char v7; // cl _BYTE *v8; // rax unsigned int v10; // [rsp+18h] [rbp-98h] int v11; // [rsp+1Ch] [rbp-94h] _QWORD v12[4]; // [rsp+20h] [rbp-90h] BYREF long long v13; // [rsp+40h] [rbp-70h] int v14; // [rsp+4Ch] [rbp-64h] unsigned __int8 *v15; // [rsp+50h] [rbp-60h] unsigned int v16; // [rsp+5Ch] [rbp-54h] long long v17; // [rsp+60h] [rbp-50h] long long v18; // [rsp+68h] [rbp-48h] unsigned long long v19; // [rsp+70h] [rbp-40h] long long v20; // [rsp+78h] [rbp-38h] _BYTE *v21; // [rsp+80h] [rbp-30h] unsigned int v22; // [rsp+8Ch] [rbp-24h] long long v23; // [rsp+90h] [rbp-20h] _QWORD v25[2]; // [rsp+A0h] [rbp-10h] BYREF v25[1] = __readfsqword(0x28u); v23 = a1; v22 = a2; v21 = a3; v20 = a4; v19 = a5; v17 = 112LL * a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL); v16 = 0; v18 = *(_QWORD *)(v17 + 40) - 32LL; v15 = (unsigned __int8 *)(*(unsigned int *)(v18 + 8) + a4); v5 = *(unsigned __int8 *)(v18 + 26); v14 = mi_calc_blob_length(v5, v15); v13 = *(_QWORD *)&v15[*(unsigned __int8 *)(v18 + 26)]; if ( v13 ) { sp_mbr_from_wkb_0(v13 + 4, (unsigned int)(v14 - 4), 2LL, v12); v11 = 0; v18 = *(_QWORD *)(v17 + 40); while ( *(_BYTE *)(v18 + 24) ) { v10 = *(unsigned __int16 *)(v18 + 20); if ( (*(_WORD *)(v18 + 18) & 0x40) != 0 ) { v25[0] = v12[(unsigned long long)*(unsigned int *)(v18 + 8) >> 3]; v15 = (unsigned __int8 *)v25 + v10; while ( v15 > (unsigned __int8 *)v25 ) { v6 = v15--; v7 = *(v6 - 1); v8 = v21++; *v8 = v7; } } else { *(_QWORD *)v21 = v12[(unsigned long long)*(unsigned int *)(v18 + 8) >> 3]; v21 += v10; } v16 += v10; v18 += 32LL; ++v11; } mi_dpointer(v23, v21, v19); return v16; } else { *(_DWORD *)my_thread_var(v5, (const char *)v15) = 158; return 0; } }
sp_make_key: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x20],RDI MOV dword ptr [RBP + -0x24],ESI MOV qword ptr [RBP + -0x30],RDX MOV qword ptr [RBP + -0x38],RCX MOV qword ptr [RBP + -0x40],R8 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV ECX,dword ptr [RBP + -0x24] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV qword ptr [RBP + -0x50],RAX MOV dword ptr [RBP + -0x54],0x0 MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX + 0x28] ADD RAX,-0x20 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RCX + 0x8] ADD RAX,RCX MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x48] MOVZX EDI,byte ptr [RAX + 0x1a] MOV RSI,qword ptr [RBP + -0x60] CALL 0x001ae7c0 MOV dword ptr [RBP + -0x64],EAX MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x48] MOVZX ECX,byte ptr [RCX + 0x1a] MOVSXD RCX,ECX MOV RAX,qword ptr [RAX + RCX*0x1] MOV qword ptr [RBP + -0x70],RAX CMP qword ptr [RBP + -0x70],0x0 JNZ 0x001d97e9 CALL 0x001f9990 MOV dword ptr [RAX],0x9e MOV dword ptr [RBP + -0x14],0x0 JMP 0x001d9982 LAB_001d97e9: MOV RDI,qword ptr [RBP + -0x70] ADD RDI,0x4 MOV ESI,dword ptr [RBP + -0x64] SUB ESI,0x4 LEA RCX,[RBP + -0x90] MOV EDX,0x2 CALL 0x001d99c0 MOV dword ptr [RBP + -0x94],0x0 MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x48],RAX LAB_001d981e: MOV RAX,qword ptr [RBP + -0x48] CMP byte ptr [RAX + 0x18],0x0 JZ 0x001d996b MOV RAX,qword ptr [RBP + -0x48] MOVZX EAX,word ptr [RAX + 0x14] MOV dword ptr [RBP + -0x98],EAX MOV RAX,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x9c],EAX JMP 0x001d9849 LAB_001d9849: JMP 0x001d984b LAB_001d984b: JMP 0x001d984d LAB_001d984d: JMP 0x001d984f LAB_001d984f: JMP 0x001d9851 LAB_001d9851: JMP 0x001d9853 LAB_001d9853: JMP 0x001d9855 LAB_001d9855: MOV EAX,dword ptr [RBP + -0x9c] SHR RAX,0x3 MOVSD XMM0,qword ptr [RBP + RAX*0x8 + -0x90] MOVSD qword ptr [RBP + -0xa8],XMM0 MOVSD XMM0,qword ptr [RBP + -0xa8] UCOMISD XMM0,XMM0 SETP AL TEST AL,0x1 JNZ 0x001d9885 JMP 0x001d98bc LAB_001d9885: MOV RDI,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x98] MOV EDX,EAX XOR ESI,ESI CALL 0x001292a0 MOV ECX,dword ptr [RBP + -0x98] MOV RAX,qword ptr [RBP + -0x30] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV EAX,dword ptr [RBP + -0x98] ADD EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x54],EAX JMP 0x001d994b LAB_001d98bc: MOV RAX,qword ptr [RBP + -0x48] MOVZX EAX,word ptr [RAX + 0x12] AND EAX,0x40 CMP EAX,0x0 JZ 0x001d991e MOV RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0x10],RAX MOV EAX,dword ptr [RBP + -0x98] MOV ECX,EAX LEA RAX,[RBP + -0x10] ADD RAX,RCX MOV qword ptr [RBP + -0x60],RAX LAB_001d98ea: MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[RBP + -0x10] CMP RAX,RCX JBE 0x001d991c MOV RAX,qword ptr [RBP + -0x60] MOV RCX,RAX ADD RCX,-0x1 MOV qword ptr [RBP + -0x60],RCX MOV CL,byte ptr [RAX + -0x1] MOV RAX,qword ptr [RBP + -0x30] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x30],RDX MOV byte ptr [RAX],CL JMP 0x001d98ea LAB_001d991c: JMP 0x001d993f LAB_001d991e: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0xa8] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0x98] MOV RAX,qword ptr [RBP + -0x30] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX LAB_001d993f: MOV EAX,dword ptr [RBP + -0x98] ADD EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x54],EAX LAB_001d994b: MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x20 MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0x94] ADD EAX,0x1 MOV dword ptr [RBP + -0x94],EAX JMP 0x001d981e LAB_001d996b: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x40] CALL 0x001c41e0 MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x14],EAX LAB_001d9982: MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0xac],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001d99ac MOV EAX,dword ptr [RBP + -0xac] ADD RSP,0xb0 POP RBP RET LAB_001d99ac: CALL 0x00129250
int sp_make_key(long *param_1,uint param_2,double *param_3,long param_4,int8 param_5) { double dVar1; long lVar2; double *pdVar3; double *pdVar4; uint uVar5; int4 *puVar6; long in_FS_OFFSET; double local_98 [4]; long local_78; int local_6c; double *local_68; int local_5c; long local_58; long local_50; int8 local_48; long local_40; double *local_38; uint local_2c; long *local_28; int local_1c; double local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_58 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70; local_5c = 0; lVar2 = *(long *)(local_58 + 0x28); local_50 = lVar2 + -0x20; local_68 = (double *)(param_4 + (ulong)*(uint *)(lVar2 + -0x18)); local_48 = param_5; local_40 = param_4; local_38 = param_3; local_2c = param_2; local_28 = param_1; local_6c = _mi_calc_blob_length(*(int1 *)(lVar2 + -6),local_68); local_78 = *(long *)((long)local_68 + (long)(int)(uint)*(byte *)(local_50 + 0x1a)); if (local_78 == 0) { puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x9e; local_1c = 0; } else { sp_mbr_from_wkb(local_78 + 4,local_6c + -4,2,local_98); for (local_50 = *(long *)(local_58 + 0x28); *(char *)(local_50 + 0x18) != '\0'; local_50 = local_50 + 0x20) { uVar5 = (uint)*(ushort *)(local_50 + 0x14); dVar1 = local_98[*(uint *)(local_50 + 8) >> 3]; if (NAN(dVar1)) { memset(local_38,0,(ulong)uVar5); local_38 = (double *)((long)local_38 + (ulong)uVar5); local_5c = uVar5 + local_5c; } else { if ((*(ushort *)(local_50 + 0x12) & 0x40) == 0) { *local_38 = dVar1; local_38 = (double *)((long)local_38 + (ulong)uVar5); } else { local_18 = dVar1; local_68 = (double *)((long)&local_18 + (ulong)uVar5); while (pdVar4 = local_38, pdVar3 = local_68, &local_18 < local_68) { local_68 = (double *)((long)local_68 + -1); local_38 = (double *)((long)local_38 + 1); *(int1 *)pdVar4 = *(int1 *)((long)pdVar3 + -1); } } local_5c = uVar5 + local_5c; } } _mi_dpointer(local_28,local_38,local_48); local_1c = local_5c; } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_1c; }
33,389
mysql_query_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_query_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_query, (parms->mysql, parms->q), parms->mysql, int, r_int) }
O0
c
mysql_query_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi callq 0x38a70 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
mysql_query_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+8] call mysql_query mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_query_start_internal(long long a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL); v2[2] = mysql_query(*(_QWORD *)a1, *(const char **)(a1 + 8)); result = v2; *v2 = 0; return result; }
mysql_query_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] CALL 0x00138a70 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_query_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_query(*param_1,param_1[1]); puVar1[2] = uVar2; *puVar1 = 0; return; }
33,390
LefDefParser::lefiPin::addAntennaPartialMetalSideArea(double, char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp
void lefiPin::addAntennaPartialMetalSideArea(double val, const char *layer) { int len; if (numAntennaPartialMetalSideArea_ == antennaPartialMetalSideAreaAllocated_) { int i; int max; int lim = numAntennaPartialMetalSideArea_; double *nd; char **nl; if (antennaPartialMetalSideAreaAllocated_ == 0) max = antennaPartialMetalSideAreaAllocated_ = 2; else max = antennaPartialMetalSideAreaAllocated_ *= 2; nd = (double*) lefMalloc(sizeof(double) * max); nl = (char**) lefMalloc(sizeof(double) * max); for (i = 0; i < lim; i++) { nl[i] = antennaPartialMetalSideAreaLayer_[i]; nd[i] = antennaPartialMetalSideArea_[i]; } lefFree((char*) (antennaPartialMetalSideAreaLayer_)); lefFree((char*) (antennaPartialMetalSideArea_)); antennaPartialMetalSideAreaLayer_ = nl; antennaPartialMetalSideArea_ = nd; } antennaPartialMetalSideArea_[numAntennaPartialMetalSideArea_] = val; if (layer) { // layer can be null, since it is optional len = strlen(layer) + 1; antennaPartialMetalSideAreaLayer_[numAntennaPartialMetalSideArea_] = (char*) lefMalloc(len); strcpy(antennaPartialMetalSideAreaLayer_[numAntennaPartialMetalSideArea_], layer); } else antennaPartialMetalSideAreaLayer_[numAntennaPartialMetalSideArea_] = NULL; numAntennaPartialMetalSideArea_ += 1; }
O3
cpp
LefDefParser::lefiPin::addAntennaPartialMetalSideArea(double, char const*): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx movl 0x1e0(%rdi), %r13d cmpl 0x1e4(%rdi), %r13d jne 0x2a7a0 movsd %xmm0, 0x8(%rsp) leal (,%r13,2), %eax testl %r13d, %r13d movl $0x2, %ecx cmovnel %eax, %ecx movl %ecx, 0x1e4(%rbx) movslq %ecx, %r12 shlq $0x3, %r12 movq %r12, %rdi callq 0x24985 movq %rax, %r15 movq %r12, %rdi callq 0x24985 movq %rax, %r12 testl %r13d, %r13d jle 0x2a76b xorl %eax, %eax movq 0x1f0(%rbx), %rcx movq (%rcx,%rax,8), %rcx movq %rcx, (%r12,%rax,8) movq 0x1e8(%rbx), %rcx movsd (%rcx,%rax,8), %xmm0 movsd %xmm0, (%r15,%rax,8) incq %rax cmpq %rax, %r13 jne 0x2a742 movq 0x1f0(%rbx), %rdi callq 0x26040 movq 0x1e8(%rbx), %rdi callq 0x26040 movq %r12, 0x1f0(%rbx) movq %r15, 0x1e8(%rbx) movl 0x1e0(%rbx), %r13d movsd 0x8(%rsp), %xmm0 jmp 0x2a7a7 movq 0x1e8(%rbx), %r15 movslq %r13d, %rax movsd %xmm0, (%r15,%rax,8) testq %r14, %r14 je 0x2a7f5 movq %r14, %rdi callq 0x20d0 incl %eax movslq %eax, %rdi callq 0x24985 movq 0x1f0(%rbx), %rcx movslq 0x1e0(%rbx), %rdx movq %rax, (%rcx,%rdx,8) movq 0x1f0(%rbx), %rax movq (%rax,%rdx,8), %rdi movq %r14, %rsi callq 0x21b0 movl 0x1e0(%rbx), %r13d jmp 0x2a804 movq 0x1f0(%rbx), %rcx movq $0x0, (%rcx,%rax,8) incl %r13d movl %r13d, 0x1e0(%rbx) addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN12LefDefParser7lefiPin30addAntennaPartialMetalSideAreaEdPKc: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r14, rsi mov rbx, rdi mov r13d, [rdi+1E0h] cmp r13d, [rdi+1E4h] jnz loc_2A7A0 movsd [rsp+38h+var_30], xmm0 lea eax, ds:0[r13*2] test r13d, r13d mov ecx, 2 cmovnz ecx, eax mov [rbx+1E4h], ecx movsxd r12, ecx shl r12, 3 mov rdi, r12; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov r15, rax mov rdi, r12; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov r12, rax test r13d, r13d jle short loc_2A76B xor eax, eax loc_2A742: mov rcx, [rbx+1F0h] mov rcx, [rcx+rax*8] mov [r12+rax*8], rcx mov rcx, [rbx+1E8h] movsd xmm0, qword ptr [rcx+rax*8] movsd qword ptr [r15+rax*8], xmm0 inc rax cmp r13, rax jnz short loc_2A742 loc_2A76B: mov rdi, [rbx+1F0h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+1E8h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov [rbx+1F0h], r12 mov [rbx+1E8h], r15 mov r13d, [rbx+1E0h] movsd xmm0, [rsp+38h+var_30] jmp short loc_2A7A7 loc_2A7A0: mov r15, [rbx+1E8h] loc_2A7A7: movsxd rax, r13d movsd qword ptr [r15+rax*8], xmm0 test r14, r14 jz short loc_2A7F5 mov rdi, r14 call _strlen inc eax movsxd rdi, eax; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov rcx, [rbx+1F0h] movsxd rdx, dword ptr [rbx+1E0h] mov [rcx+rdx*8], rax mov rax, [rbx+1F0h] mov rdi, [rax+rdx*8] mov rsi, r14 call _strcpy mov r13d, [rbx+1E0h] jmp short loc_2A804 loc_2A7F5: mov rcx, [rbx+1F0h] mov qword ptr [rcx+rax*8], 0 loc_2A804: inc r13d mov [rbx+1E0h], r13d add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long LefDefParser::lefiPin::addAntennaPartialMetalSideArea( LefDefParser::lefiPin *this, double a2, char *a3) { long long v3; // r13 int v4; // ecx LefDefParser *v5; // r12 long long v6; // r15 long long v7; // r12 long long i; // rax long long result; // rax int v10; // eax long long v11; // rax long long v12; // rdx v3 = *((unsigned int *)this + 120); if ( (_DWORD)v3 == *((_DWORD *)this + 121) ) { v4 = 2; if ( (_DWORD)v3 ) v4 = 2 * v3; *((_DWORD *)this + 121) = v4; v5 = (LefDefParser *)(8LL * v4); v6 = LefDefParser::lefMalloc(v5); v7 = LefDefParser::lefMalloc(v5); if ( (int)v3 > 0 ) { for ( i = 0LL; i != v3; ++i ) { *(_QWORD *)(v7 + 8 * i) = *(_QWORD *)(*((_QWORD *)this + 62) + 8 * i); *(_QWORD *)(v6 + 8 * i) = *(_QWORD *)(*((_QWORD *)this + 61) + 8 * i); } } LefDefParser::lefFree(*((LefDefParser **)this + 62), a3); LefDefParser::lefFree(*((LefDefParser **)this + 61), a3); *((_QWORD *)this + 62) = v7; *((_QWORD *)this + 61) = v6; LODWORD(v3) = *((_DWORD *)this + 120); } else { v6 = *((_QWORD *)this + 61); } result = (int)v3; *(double *)(v6 + 8LL * (int)v3) = a2; if ( a3 ) { v10 = strlen(a3); v11 = LefDefParser::lefMalloc((LefDefParser *)(v10 + 1)); v12 = *((int *)this + 120); *(_QWORD *)(*((_QWORD *)this + 62) + 8 * v12) = v11; result = strcpy(*(_QWORD *)(*((_QWORD *)this + 62) + 8 * v12), a3); LODWORD(v3) = *((_DWORD *)this + 120); } else { *(_QWORD *)(*((_QWORD *)this + 62) + 8LL * (int)v3) = 0LL; } *((_DWORD *)this + 120) = v3 + 1; return result; }
addAntennaPartialMetalSideArea: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RSI MOV RBX,RDI MOV R13D,dword ptr [RDI + 0x1e0] CMP R13D,dword ptr [RDI + 0x1e4] JNZ 0x0012a7a0 MOVSD qword ptr [RSP + 0x8],XMM0 LEA EAX,[R13*0x2] TEST R13D,R13D MOV ECX,0x2 CMOVNZ ECX,EAX MOV dword ptr [RBX + 0x1e4],ECX MOVSXD R12,ECX SHL R12,0x3 MOV RDI,R12 CALL 0x00124985 MOV R15,RAX MOV RDI,R12 CALL 0x00124985 MOV R12,RAX TEST R13D,R13D JLE 0x0012a76b XOR EAX,EAX LAB_0012a742: MOV RCX,qword ptr [RBX + 0x1f0] MOV RCX,qword ptr [RCX + RAX*0x8] MOV qword ptr [R12 + RAX*0x8],RCX MOV RCX,qword ptr [RBX + 0x1e8] MOVSD XMM0,qword ptr [RCX + RAX*0x8] MOVSD qword ptr [R15 + RAX*0x8],XMM0 INC RAX CMP R13,RAX JNZ 0x0012a742 LAB_0012a76b: MOV RDI,qword ptr [RBX + 0x1f0] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x1e8] CALL 0x00126040 MOV qword ptr [RBX + 0x1f0],R12 MOV qword ptr [RBX + 0x1e8],R15 MOV R13D,dword ptr [RBX + 0x1e0] MOVSD XMM0,qword ptr [RSP + 0x8] JMP 0x0012a7a7 LAB_0012a7a0: MOV R15,qword ptr [RBX + 0x1e8] LAB_0012a7a7: MOVSXD RAX,R13D MOVSD qword ptr [R15 + RAX*0x8],XMM0 TEST R14,R14 JZ 0x0012a7f5 MOV RDI,R14 CALL 0x001020d0 INC EAX MOVSXD RDI,EAX CALL 0x00124985 MOV RCX,qword ptr [RBX + 0x1f0] MOVSXD RDX,dword ptr [RBX + 0x1e0] MOV qword ptr [RCX + RDX*0x8],RAX MOV RAX,qword ptr [RBX + 0x1f0] MOV RDI,qword ptr [RAX + RDX*0x8] MOV RSI,R14 CALL 0x001021b0 MOV R13D,dword ptr [RBX + 0x1e0] JMP 0x0012a804 LAB_0012a7f5: MOV RCX,qword ptr [RBX + 0x1f0] MOV qword ptr [RCX + RAX*0x8],0x0 LAB_0012a804: INC R13D MOV dword ptr [RBX + 0x1e0],R13D ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* LefDefParser::lefiPin::addAntennaPartialMetalSideArea(double, char const*) */ void __thiscall LefDefParser::lefiPin::addAntennaPartialMetalSideArea(lefiPin *this,double param_1,char *param_2) { long lVar1; long lVar2; ulong uVar3; size_t sVar4; int8 uVar5; int iVar6; char *pcVar7; uint uVar8; uVar8 = *(uint *)(this + 0x1e0); pcVar7 = param_2; if (uVar8 == *(uint *)(this + 0x1e4)) { iVar6 = 2; if (uVar8 != 0) { iVar6 = uVar8 * 2; } *(int *)(this + 0x1e4) = iVar6; lVar1 = lefMalloc((LefDefParser *)((long)iVar6 << 3),(ulong)param_2); lVar2 = lefMalloc((LefDefParser *)((long)iVar6 << 3),(ulong)pcVar7); if (0 < (int)uVar8) { uVar3 = 0; do { *(int8 *)(lVar2 + uVar3 * 8) = *(int8 *)(*(long *)(this + 0x1f0) + uVar3 * 8); *(int8 *)(lVar1 + uVar3 * 8) = *(int8 *)(*(long *)(this + 0x1e8) + uVar3 * 8); uVar3 = uVar3 + 1; } while (uVar8 != uVar3); } lefFree(*(void **)(this + 0x1f0)); lefFree(*(void **)(this + 0x1e8)); *(long *)(this + 0x1f0) = lVar2; *(long *)(this + 0x1e8) = lVar1; uVar8 = *(uint *)(this + 0x1e0); } else { lVar1 = *(long *)(this + 0x1e8); } *(double *)(lVar1 + (long)(int)uVar8 * 8) = param_1; if (param_2 == (char *)0x0) { *(int8 *)(*(long *)(this + 0x1f0) + (long)(int)uVar8 * 8) = 0; } else { sVar4 = strlen(param_2); uVar5 = lefMalloc((LefDefParser *)(long)((int)sVar4 + 1),(ulong)pcVar7); iVar6 = *(int *)(this + 0x1e0); *(int8 *)(*(long *)(this + 0x1f0) + (long)iVar6 * 8) = uVar5; strcpy(*(char **)(*(long *)(this + 0x1f0) + (long)iVar6 * 8),param_2); uVar8 = *(uint *)(this + 0x1e0); } *(uint *)(this + 0x1e0) = uVar8 + 1; return; }
33,391
my_strtoll
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static long long my_strtoll(const char *str, size_t len, const char **end, int *err) { unsigned long long uval = 0; const char *p = str; const char *end_str = p + len; int neg; while (p < end_str && isspace(*p)) p++; if (p == end_str) { *end = p; *err = ERANGE; return 0; } neg = *p == '-'; if (neg) p++; uval = my_strtoull(p, (end_str - p), &p, err); *end = p; if (*err) return uval; if (!neg) { /* Overflow of the long long range. */ if (uval > LONGLONG_MAX) { *end = p - 1; uval = LONGLONG_MAX; *err = ERANGE; } return uval; } if (uval == (unsigned long long) LONGLONG_MIN) return LONGLONG_MIN; if (uval > LONGLONG_MAX) { *end = p - 1; uval = LONGLONG_MIN; *err = ERANGE; } return -1LL * uval; }
O0
c
my_strtoll: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq $0x0, -0x30(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x45(%rbp) jae 0x3db77 callq 0x17650 movq (%rax), %rax movq -0x38(%rbp), %rcx movsbl (%rcx), %ecx movslq %ecx, %rcx movzwl (%rax,%rcx,2), %eax andl $0x2000, %eax # imm = 0x2000 cmpl $0x0, %eax setne %al movb %al, -0x45(%rbp) movb -0x45(%rbp), %al testb $0x1, %al jne 0x3db80 jmp 0x3db8e movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0x3db44 movq -0x38(%rbp), %rax cmpq -0x40(%rbp), %rax jne 0x3dbba movq -0x38(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rax movl $0x22, (%rax) movq $0x0, -0x8(%rbp) jmp 0x3dcc9 movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax sete %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x44(%rbp) cmpl $0x0, -0x44(%rbp) je 0x3dbe1 movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x38(%rbp), %rax subq %rax, %rsi movq -0x28(%rbp), %rcx leaq -0x38(%rbp), %rdx callq 0x3cae0 movq %rax, -0x30(%rbp) movq -0x38(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rax cmpl $0x0, (%rax) je 0x3dc22 movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x3dcc9 cmpl $0x0, -0x44(%rbp) jne 0x3dc69 movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF cmpq %rax, -0x30(%rbp) jbe 0x3dc5f movq -0x38(%rbp), %rcx addq $-0x1, %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movl $0x22, (%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x3dcc9 movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 cmpq %rax, -0x30(%rbp) jne 0x3dc89 movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, -0x8(%rbp) jmp 0x3dcc9 movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF cmpq %rax, -0x30(%rbp) jbe 0x3dcc0 movq -0x38(%rbp), %rcx addq $-0x1, %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movl $0x22, (%rax) imulq $-0x1, -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_strtoll: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], 0 mov rax, [rbp+var_10] mov [rbp+var_38], rax mov rax, [rbp+var_38] add rax, [rbp+var_18] mov [rbp+var_40], rax loc_3DB44: mov rcx, [rbp+var_38] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_45], al jnb short loc_3DB77 call ___ctype_b_loc mov rax, [rax] mov rcx, [rbp+var_38] movsx ecx, byte ptr [rcx] movsxd rcx, ecx movzx eax, word ptr [rax+rcx*2] and eax, 2000h cmp eax, 0 setnz al mov [rbp+var_45], al loc_3DB77: mov al, [rbp+var_45] test al, 1 jnz short loc_3DB80 jmp short loc_3DB8E loc_3DB80: mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp short loc_3DB44 loc_3DB8E: mov rax, [rbp+var_38] cmp rax, [rbp+var_40] jnz short loc_3DBBA mov rcx, [rbp+var_38] mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_28] mov dword ptr [rax], 22h ; '"' mov [rbp+var_8], 0 jmp loc_3DCC9 loc_3DBBA: mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' setz al and al, 1 movzx eax, al mov [rbp+var_44], eax cmp [rbp+var_44], 0 jz short loc_3DBE1 mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax loc_3DBE1: mov rdi, [rbp+var_38] mov rsi, [rbp+var_40] mov rax, [rbp+var_38] sub rsi, rax mov rcx, [rbp+var_28] lea rdx, [rbp+var_38] call my_strtoull mov [rbp+var_30], rax mov rcx, [rbp+var_38] mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_28] cmp dword ptr [rax], 0 jz short loc_3DC22 mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp loc_3DCC9 loc_3DC22: cmp [rbp+var_44], 0 jnz short loc_3DC69 mov rax, 7FFFFFFFFFFFFFFFh cmp [rbp+var_30], rax jbe short loc_3DC5F mov rcx, [rbp+var_38] add rcx, 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_20] mov [rax], rcx mov rax, 7FFFFFFFFFFFFFFFh mov [rbp+var_30], rax mov rax, [rbp+var_28] mov dword ptr [rax], 22h ; '"' loc_3DC5F: mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_3DCC9 loc_3DC69: mov rax, 8000000000000000h cmp [rbp+var_30], rax jnz short loc_3DC89 mov rax, 8000000000000000h mov [rbp+var_8], rax jmp short loc_3DCC9 loc_3DC89: mov rax, 7FFFFFFFFFFFFFFFh cmp [rbp+var_30], rax jbe short loc_3DCC0 mov rcx, [rbp+var_38] add rcx, 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_20] mov [rax], rcx mov rax, 8000000000000000h mov [rbp+var_30], rax mov rax, [rbp+var_28] mov dword ptr [rax], 22h ; '"' loc_3DCC0: imul rax, [rbp+var_30], -1 mov [rbp+var_8], rax loc_3DCC9: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
unsigned long long my_strtoll(char *a1, long long a2, _QWORD *a3, _DWORD *a4) { bool v5; // [rsp+Bh] [rbp-45h] BOOL v6; // [rsp+Ch] [rbp-44h] char *v7; // [rsp+10h] [rbp-40h] char *v8; // [rsp+18h] [rbp-38h] BYREF unsigned long long v9; // [rsp+20h] [rbp-30h] _DWORD *v10; // [rsp+28h] [rbp-28h] _QWORD *v11; // [rsp+30h] [rbp-20h] long long v12; // [rsp+38h] [rbp-18h] char *v13; // [rsp+40h] [rbp-10h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; v9 = 0LL; v8 = a1; v7 = &a1[a2]; while ( 1 ) { v5 = 0; if ( v8 < v7 ) v5 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * *v8) & 0x2000) != 0; if ( !v5 ) break; ++v8; } if ( v8 == v7 ) { *v11 = v8; *v10 = 34; return 0LL; } else { v6 = *v8 == 45; if ( *v8 == 45 ) ++v8; v9 = my_strtoull(v8, v7 - v8, &v8, v10); *v11 = v8; if ( *v10 ) { return v9; } else if ( v6 ) { if ( v9 == 0x8000000000000000LL ) { return 0x8000000000000000LL; } else { if ( v9 > 0x7FFFFFFFFFFFFFFFLL ) { *v11 = v8 - 1; v9 = 0x8000000000000000LL; *v10 = 34; } return -(long long)v9; } } else { if ( v9 > 0x7FFFFFFFFFFFFFFFLL ) { *v11 = v8 - 1; v9 = 0x7FFFFFFFFFFFFFFFLL; *v10 = 34; } return v9; } } }
my_strtoll: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX LAB_0013db44: MOV RCX,qword ptr [RBP + -0x38] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x45],AL JNC 0x0013db77 CALL 0x00117650 MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x38] MOVSX ECX,byte ptr [RCX] MOVSXD RCX,ECX MOVZX EAX,word ptr [RAX + RCX*0x2] AND EAX,0x2000 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x45],AL LAB_0013db77: MOV AL,byte ptr [RBP + -0x45] TEST AL,0x1 JNZ 0x0013db80 JMP 0x0013db8e LAB_0013db80: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x0013db44 LAB_0013db8e: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x40] JNZ 0x0013dbba MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],0x22 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013dcc9 LAB_0013dbba: MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d SETZ AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x44],EAX CMP dword ptr [RBP + -0x44],0x0 JZ 0x0013dbe1 MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX LAB_0013dbe1: MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x38] SUB RSI,RAX MOV RCX,qword ptr [RBP + -0x28] LEA RDX,[RBP + -0x38] CALL 0x0013cae0 MOV qword ptr [RBP + -0x30],RAX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x0 JZ 0x0013dc22 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x0013dcc9 LAB_0013dc22: CMP dword ptr [RBP + -0x44],0x0 JNZ 0x0013dc69 MOV RAX,0x7fffffffffffffff CMP qword ptr [RBP + -0x30],RAX JBE 0x0013dc5f MOV RCX,qword ptr [RBP + -0x38] ADD RCX,-0x1 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,0x7fffffffffffffff MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],0x22 LAB_0013dc5f: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x0013dcc9 LAB_0013dc69: MOV RAX,-0x8000000000000000 CMP qword ptr [RBP + -0x30],RAX JNZ 0x0013dc89 MOV RAX,-0x8000000000000000 MOV qword ptr [RBP + -0x8],RAX JMP 0x0013dcc9 LAB_0013dc89: MOV RAX,0x7fffffffffffffff CMP qword ptr [RBP + -0x30],RAX JBE 0x0013dcc0 MOV RCX,qword ptr [RBP + -0x38] ADD RCX,-0x1 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,-0x8000000000000000 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],0x22 LAB_0013dcc0: IMUL RAX,qword ptr [RBP + -0x30],-0x1 MOV qword ptr [RBP + -0x8],RAX LAB_0013dcc9: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
ulong my_strtoll(char *param_1,long param_2,int8 *param_3,int *param_4) { char cVar1; char *pcVar2; ushort **ppuVar3; bool bVar4; char *local_40; ulong local_38; int *local_30; int8 *local_28; long local_20; char *local_18; ulong local_10; local_38 = 0; pcVar2 = param_1 + param_2; local_40 = param_1; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; while( true ) { bVar4 = false; if (local_40 < pcVar2) { ppuVar3 = __ctype_b_loc(); bVar4 = ((*ppuVar3)[(int)*local_40] & 0x2000) != 0; } if (!bVar4) break; local_40 = local_40 + 1; } if (local_40 == pcVar2) { *local_28 = local_40; *local_30 = 0x22; local_10 = 0; } else { cVar1 = *local_40; if (cVar1 == '-') { local_40 = local_40 + 1; } local_38 = my_strtoull(local_40,(long)pcVar2 - (long)local_40,&local_40,local_30); *local_28 = local_40; local_10 = local_38; if (*local_30 == 0) { if (cVar1 == '-') { if (local_38 == 0x8000000000000000) { local_10 = 0x8000000000000000; } else { if (0x7fffffffffffffff < local_38) { *local_28 = local_40 + -1; local_38 = 0x8000000000000000; *local_30 = 0x22; } local_10 = -local_38; } } else { if (0x7fffffffffffffff < local_38) { *local_28 = local_40 + -1; local_38 = 0x7fffffffffffffff; *local_30 = 0x22; } local_10 = local_38; } } } return local_10; }
33,392
minja::Value::operator-(minja::Value const&) const
monkey531[P]llama/common/./minja.hpp
Value operator-(const Value& rhs) const { if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() - rhs.get<int64_t>(); else return get<double>() - rhs.get<double>(); }
O3
cpp
minja::Value::operator-(minja::Value const&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al cmpb $0x1, %al ja 0x5853f movb 0x40(%r14), %al addb $-0x5, %al cmpb $0x1, %al ja 0x5853f movq %rsi, %rdi callq 0x3da46 movq %rax, %r15 movq %r14, %rdi callq 0x3da46 subq %rax, %r15 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %r15, %rsi callq 0x3ec0c jmp 0x5858b movq %rsi, %rdi callq 0x3db90 movsd %xmm0, 0x8(%rsp) movq %r14, %rdi callq 0x3db90 movsd 0x8(%rsp), %xmm1 subsd %xmm0, %xmm1 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movapd %xmm1, %xmm0 callq 0x3f576 movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK5minja5ValuemiERKS0_: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rdi mov al, [rsi+40h] add al, 0FBh cmp al, 1 ja short loc_5853F mov al, [r14+40h] add al, 0FBh cmp al, 1 ja short loc_5853F mov rdi, rsi call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) sub r15, rax lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_5858B loc_5853F: mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+28h+var_20], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd xmm1, [rsp+28h+var_20] subsd xmm1, xmm0 lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 movapd xmm0, xmm1 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_5858B: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn
long long minja::Value::operator-(long long a1, long long a2, long long a3) { long long v4; // r15 long long v5; // rax char *v6; // r14 double v7; // xmm1_8 double v9; // [rsp+8h] [rbp-20h] if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u ) { v9 = minja::Value::get<double>(a2); v7 = v9 - minja::Value::get<double>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v7); } else { v4 = minja::Value::get<long>(a2); v5 = minja::Value::get<long>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( a1 + 64, v4 - 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(v6); return a1; }
operator-: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0015853f MOV AL,byte ptr [R14 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x0015853f MOV RDI,RSI CALL 0x0013da46 MOV R15,RAX MOV RDI,R14 CALL 0x0013da46 SUB R15,RAX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,R15 CALL 0x0013ec0c JMP 0x0015858b LAB_0015853f: MOV RDI,RSI CALL 0x0013db90 MOVSD qword ptr [RSP + 0x8],XMM0 MOV RDI,R14 CALL 0x0013db90 MOVSD XMM1,qword ptr [RSP + 0x8] SUBSD XMM1,XMM0 LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOVAPD XMM0,XMM1 CALL 0x0013f576 LAB_0015858b: MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator-(Value *this,Value *param_1) { long lVar1; long lVar2; Value *in_RDX; double dVar3; double dVar4; if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar1 = get<long>(param_1); lVar2 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (this + 0x40,lVar1 - lVar2); } else { dVar3 = get<double>(param_1); dVar4 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar3 - dVar4,this + 0x40); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((bool)((char)this + '@')); return this; }
33,393
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O0
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1c995e(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x190(%rax), %rax movq -0x8(%rbp), %rcx movq 0x40(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x2a220 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0xf67ad leaq 0x1c991e(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x198(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_mutex_lock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+190h] mov rcx, [rbp+var_8] mov rsi, [rcx+40h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call _pthread_mutex_lock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_F67AD lea rax, PSI_server mov rax, [rax] mov rax, [rax+198h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_F67AD: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[50])( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(v9); if ( v5 ) ((void ( *)(long long, _QWORD))PSI_server[51])(v5, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x190] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a220 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x001f67ad LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x198] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_001f67ad: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; pthread_mutex_t *local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
33,394
js_array_with
bluesky950520[P]quickjs/quickjs.c
static JSValue js_array_with(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue arr, obj, ret, *arrp, *pval; JSObject *p; int64_t i, len, idx; uint32_t count32; ret = JS_EXCEPTION; arr = JS_UNDEFINED; obj = JS_ToObject(ctx, this_val); if (js_get_length64(ctx, &len, obj)) goto exception; if (len > UINT32_MAX) { JS_ThrowRangeError(ctx, "invalid array length"); goto exception; } if (JS_ToInt64Sat(ctx, &idx, argv[0])) goto exception; if (idx < 0) idx = len + idx; if (idx < 0 || idx >= len) { JS_ThrowRangeError(ctx, "invalid array index: %" PRId64, idx); goto exception; } arr = JS_NewArray(ctx); if (JS_IsException(arr)) goto exception; p = JS_VALUE_GET_OBJ(arr); if (expand_fast_array(ctx, p, len) < 0) goto exception; p->u.array.count = len; i = 0; pval = p->u.array.u.values; if (js_get_fast_array(ctx, obj, &arrp, &count32) && count32 == len) { for (; i < idx; i++, pval++) *pval = js_dup(arrp[i]); *pval = js_dup(argv[1]); for (i++, pval++; i < len; i++, pval++) *pval = js_dup(arrp[i]); } else { for (; i < idx; i++, pval++) if (-1 == JS_TryGetPropertyInt64(ctx, obj, i, pval)) goto fill_and_fail; *pval = js_dup(argv[1]); for (i++, pval++; i < len; i++, pval++) { if (-1 == JS_TryGetPropertyInt64(ctx, obj, i, pval)) { fill_and_fail: for (; i < len; i++, pval++) *pval = JS_UNDEFINED; goto exception; } } } if (JS_SetProperty(ctx, arr, JS_ATOM_length, js_int64(len)) < 0) goto exception; ret = arr; arr = JS_UNDEFINED; exception: JS_FreeValue(ctx, arr); JS_FreeValue(ctx, obj); return ret; }
O1
c
js_array_with: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %r8, %rbp movq %rdi, %rbx movl $0x0, 0x50(%rsp) callq 0x26ddd movq %rax, %r14 movq %rdx, %r15 leaq 0x48(%rsp), %rsi movq %rbx, %rdi movq %rax, %rdx movq %r15, %rcx callq 0x22adc movl $0x6, %r12d movl $0x3, %r13d testl %eax, %eax je 0x742f7 xorl %ebp, %ebp jmp 0x7438e movq 0x48(%rsp), %rcx movabsq $0x100000000, %rax # imm = 0x100000000 cmpq %rax, %rcx jl 0x74320 leaq 0x2ae8c(%rip), %rsi # 0x9f19e xorl %ebp, %ebp movq %rbx, %rdi xorl %eax, %eax callq 0x20add jmp 0x7438e movq %rcx, 0x38(%rsp) movq (%rbp), %rdx movq 0x8(%rbp), %rcx movq %rdx, 0x20(%rsp) cmpl $-0x9, %ecx jb 0x7433e movq 0x20(%rsp), %rax incl (%rax) leaq 0x60(%rsp), %rsi movq %rbx, %rdi callq 0x277bc testl %eax, %eax jne 0x742f0 movq 0x60(%rsp), %rax testq %rax, %rax movq 0x38(%rsp), %rcx jns 0x74366 addq %rcx, %rax movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rdx testq %rdx, %rdx setns %al cmpq %rcx, %rdx setl %cl testb %cl, %al jne 0x743c3 leaq 0x2da02(%rip), %rsi # 0xa1d84 xorl %ebp, %ebp movq %rbx, %rdi xorl %eax, %eax callq 0x20add movq 0x50(%rsp), %rsi movq 0x18(%rbx), %rdi movq %r13, %rdx callq 0x1d8c6 movq 0x18(%rbx), %rdi movq %r14, %rsi movq %r15, %rdx callq 0x1d8c6 movq %rbp, %rax movq %r12, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rdx, 0x40(%rsp) movq 0x38(%rbx), %rsi incl (%rsi) movq %rbx, %rdi movl $0x2, %edx callq 0xf516 movq %rax, 0x50(%rsp) cmpl $0x6, %edx jne 0x743ec xorl %ebp, %ebp movq %rdx, %r13 jmp 0x7438e movq %rdx, 0x30(%rsp) movq 0x50(%rsp), %rsi movq %rbx, %rdi movq %rsi, 0x58(%rsp) movq 0x38(%rsp), %rdx callq 0x3dbb8 testl %eax, %eax js 0x7467e movq 0x58(%rsp), %rax movq 0x38(%rsp), %r11 movl %r11d, 0x40(%rax) movq 0x38(%rax), %r8 movq %r14, 0x20(%rsp) cmpl $-0x1, %r15d jne 0x7444e movq 0x20(%rsp), %rax cmpw $0x2, 0x6(%rax) movq 0x40(%rsp), %r9 jne 0x74448 testb $0x8, 0x5(%rax) jne 0x7468a xorl %ecx, %ecx xorl %edx, %edx jmp 0x74457 xorl %ecx, %ecx xorl %edx, %edx movq 0x40(%rsp), %r9 testb %dl, %dl je 0x744a6 cmpq %rcx, %r11 jne 0x744a6 testq %r9, %r9 jle 0x7454a leaq 0x8(%rax), %rcx movq %r9, %rdx movq -0x8(%rcx), %rsi movq (%rcx), %rdi movq %rsi, 0x20(%rsp) cmpl $-0x9, %edi jb 0x74489 movq 0x20(%rsp), %r10 incl (%r10) movq %rsi, (%r8) movq %rdi, 0x8(%r8) addq $0x10, %r8 addq $0x10, %rcx decq %rdx jne 0x74470 leaq 0x1(%r9), %rcx jmp 0x7454f testq %r9, %r9 jle 0x744ee xorl %eax, %eax movq %r8, 0x58(%rsp) movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %rax, 0x38(%rsp) movq %rax, %rcx callq 0x4d6d1 cmpl $-0x1, %eax je 0x74644 movq 0x38(%rsp), %rax incq %rax movq 0x58(%rsp), %r8 addq $0x10, %r8 movq 0x40(%rsp), %rcx cmpq %rax, %rcx jne 0x744ad jmp 0x744f0 xorl %ecx, %ecx movq 0x10(%rbp), %rax movq 0x18(%rbp), %rsi movq %rax, 0x20(%rsp) cmpl $-0x9, %esi jb 0x74509 movq 0x20(%rsp), %rdx incl (%rdx) movq %rax, (%r8) movq %rsi, 0x8(%r8) incq %rcx cmpq 0x48(%rsp), %rcx jge 0x745bf addq $0x10, %r8 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %rcx, 0x40(%rsp) movq %r8, %rbp callq 0x4d6d1 movq %rbp, %r8 movq 0x40(%rsp), %rcx cmpl $-0x1, %eax jne 0x74510 jmp 0x7464e movl $0x1, %ecx movq 0x10(%rbp), %rdx movq 0x18(%rbp), %rsi movq %rdx, 0x20(%rsp) cmpl $-0x9, %esi jb 0x74568 movq 0x20(%rsp), %rdi incl (%rdi) movq %rdx, (%r8) movq %rsi, 0x8(%r8) cmpq %r11, %rcx jge 0x745bf xorl %edx, %edx testq %r9, %r9 cmovgq %r9, %rdx movq %rdx, %rcx notq %rcx addq %r11, %rcx shlq $0x4, %rdx addq %rdx, %rax movl $0x18, %edx movq -0x8(%rax,%rdx), %rsi movq (%rax,%rdx), %rdi movq %rsi, 0x20(%rsp) cmpl $-0x9, %edi jb 0x745ad movq 0x20(%rsp), %r9 incl (%r9) movq %rsi, -0x8(%r8,%rdx) movq %rdi, (%r8,%rdx) addq $0x10, %rdx decq %rcx jne 0x74592 movq 0x48(%rsp), %rax movslq %eax, %rcx xorl %edx, %edx cmpq %rax, %rcx cvtsi2sd %rax, %xmm0 movl %ecx, %eax movq %xmm0, %r8 cmoveq %rax, %r8 movl $0x7, %r9d cmoveq %rdx, %r9 movq 0x50(%rsp), %rbp movq %rbp, 0x20(%rsp) movq 0x30(%rsp), %rdx movq %rdx, 0x28(%rsp) movups 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) movq $0x0, 0x18(%rsp) movl $0x4000, 0x10(%rsp) # imm = 0x4000 movq %rbx, %rdi movq %rbp, %rsi movl $0x32, %ecx callq 0x24388 testl %eax, %eax js 0x7463a movl $0x0, 0x50(%rsp) movq 0x30(%rsp), %r12 jmp 0x7438e movq 0x30(%rsp), %r13 jmp 0x742f0 movq 0x38(%rsp), %rcx movq 0x58(%rsp), %r8 cmpq 0x48(%rsp), %rcx jge 0x7467e xorl %ebp, %ebp movq 0x30(%rsp), %r13 movl $0x0, (%r8) movq $0x3, 0x8(%r8) incq %rcx addq $0x10, %r8 cmpq 0x48(%rsp), %rcx jl 0x7465c jmp 0x7438e xorl %ebp, %ebp movq 0x30(%rsp), %r13 jmp 0x7438e movl 0x40(%rax), %ecx movq 0x38(%rax), %rax movb $0x1, %dl jmp 0x74457
js_array_with: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov rbp, r8 mov rbx, rdi mov dword ptr [rsp+98h+var_48], 0 call JS_ToObject mov r14, rax mov r15, rdx lea rsi, [rsp+98h+var_50] mov rdi, rbx mov rdx, rax mov rcx, r15 call js_get_length64 mov r12d, 6 mov r13d, 3 test eax, eax jz short loc_742F7 loc_742F0: xor ebp, ebp jmp loc_7438E loc_742F7: mov rcx, [rsp+98h+var_50] mov rax, 100000000h cmp rcx, rax jl short loc_74320 lea rsi, aInvalidArrayLe; "invalid array length" xor ebp, ebp mov rdi, rbx xor eax, eax call JS_ThrowRangeError jmp short loc_7438E loc_74320: mov [rsp+98h+var_60], rcx mov rdx, [rbp+0] mov rcx, [rbp+8] mov qword ptr [rsp+98h+var_78], rdx cmp ecx, 0FFFFFFF7h jb short loc_7433E mov rax, qword ptr [rsp+98h+var_78] inc dword ptr [rax] loc_7433E: lea rsi, [rsp+98h+var_38] mov rdi, rbx call JS_ToInt64SatFree test eax, eax jnz short loc_742F0 mov rax, [rsp+98h+var_38] test rax, rax mov rcx, [rsp+98h+var_60] jns short loc_74366 add rax, rcx mov [rsp+98h+var_38], rax loc_74366: mov rdx, [rsp+98h+var_38] test rdx, rdx setns al cmp rdx, rcx setl cl test al, cl jnz short loc_743C3 lea rsi, aInvalidArrayIn_0; "invalid array index: %ld" xor ebp, ebp mov rdi, rbx xor eax, eax call JS_ThrowRangeError loc_7438E: mov rsi, [rsp+98h+var_48] mov rdi, [rbx+18h] mov rdx, r13 call JS_FreeValueRT mov rdi, [rbx+18h] mov rsi, r14 mov rdx, r15 call JS_FreeValueRT mov rax, rbp mov rdx, r12 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_743C3: mov [rsp+98h+var_58], rdx mov rsi, [rbx+38h] inc dword ptr [rsi] mov rdi, rbx mov edx, 2 call JS_NewObjectFromShape mov [rsp+98h+var_48], rax cmp edx, 6 jnz short loc_743EC xor ebp, ebp mov r13, rdx jmp short loc_7438E loc_743EC: mov [rsp+98h+var_68], rdx mov rsi, [rsp+98h+var_48] mov rdi, rbx mov [rsp+98h+var_40], rsi mov rdx, [rsp+98h+var_60] call expand_fast_array test eax, eax js loc_7467E mov rax, [rsp+98h+var_40] mov r11, [rsp+98h+var_60] mov [rax+40h], r11d mov r8, [rax+38h] mov qword ptr [rsp+98h+var_78], r14 cmp r15d, 0FFFFFFFFh jnz short loc_7444E mov rax, qword ptr [rsp+98h+var_78] cmp word ptr [rax+6], 2 mov r9, [rsp+98h+var_58] jnz short loc_74448 test byte ptr [rax+5], 8 jnz loc_7468A loc_74448: xor ecx, ecx xor edx, edx jmp short loc_74457 loc_7444E: xor ecx, ecx xor edx, edx mov r9, [rsp+98h+var_58] loc_74457: test dl, dl jz short loc_744A6 cmp r11, rcx jnz short loc_744A6 test r9, r9 jle loc_7454A lea rcx, [rax+8] mov rdx, r9 loc_74470: mov rsi, [rcx-8] mov rdi, [rcx] mov qword ptr [rsp+98h+var_78], rsi cmp edi, 0FFFFFFF7h jb short loc_74489 mov r10, qword ptr [rsp+98h+var_78] inc dword ptr [r10] loc_74489: mov [r8], rsi mov [r8+8], rdi add r8, 10h add rcx, 10h dec rdx jnz short loc_74470 lea rcx, [r9+1] jmp loc_7454F loc_744A6: test r9, r9 jle short loc_744EE xor eax, eax loc_744AD: mov [rsp+98h+var_40], r8 mov rdi, rbx mov rsi, r14 mov rdx, r15 mov [rsp+98h+var_60], rax mov rcx, rax call JS_TryGetPropertyInt64 cmp eax, 0FFFFFFFFh jz loc_74644 mov rax, [rsp+98h+var_60] inc rax mov r8, [rsp+98h+var_40] add r8, 10h mov rcx, [rsp+98h+var_58] cmp rcx, rax jnz short loc_744AD jmp short loc_744F0 loc_744EE: xor ecx, ecx loc_744F0: mov rax, [rbp+10h] mov rsi, [rbp+18h] mov qword ptr [rsp+98h+var_78], rax cmp esi, 0FFFFFFF7h jb short loc_74509 mov rdx, qword ptr [rsp+98h+var_78] inc dword ptr [rdx] loc_74509: mov [r8], rax mov [r8+8], rsi loc_74510: inc rcx cmp rcx, [rsp+98h+var_50] jge loc_745BF add r8, 10h mov rdi, rbx mov rsi, r14 mov rdx, r15 mov [rsp+98h+var_58], rcx mov rbp, r8 call JS_TryGetPropertyInt64 mov r8, rbp mov rcx, [rsp+98h+var_58] cmp eax, 0FFFFFFFFh jnz short loc_74510 jmp loc_7464E loc_7454A: mov ecx, 1 loc_7454F: mov rdx, [rbp+10h] mov rsi, [rbp+18h] mov qword ptr [rsp+98h+var_78], rdx cmp esi, 0FFFFFFF7h jb short loc_74568 mov rdi, qword ptr [rsp+98h+var_78] inc dword ptr [rdi] loc_74568: mov [r8], rdx mov [r8+8], rsi cmp rcx, r11 jge short loc_745BF xor edx, edx test r9, r9 cmovg rdx, r9 mov rcx, rdx not rcx add rcx, r11 shl rdx, 4 add rax, rdx mov edx, 18h loc_74592: mov rsi, [rax+rdx-8] mov rdi, [rax+rdx] mov qword ptr [rsp+98h+var_78], rsi cmp edi, 0FFFFFFF7h jb short loc_745AD mov r9, qword ptr [rsp+98h+var_78] inc dword ptr [r9] loc_745AD: mov [r8+rdx-8], rsi mov [r8+rdx], rdi add rdx, 10h dec rcx jnz short loc_74592 loc_745BF: mov rax, [rsp+98h+var_50] movsxd rcx, eax xor edx, edx cmp rcx, rax cvtsi2sd xmm0, rax mov eax, ecx movq r8, xmm0 cmovz r8, rax mov r9d, 7 cmovz r9, rdx mov rbp, [rsp+98h+var_48] mov qword ptr [rsp+98h+var_78], rbp mov rdx, [rsp+98h+var_68] mov qword ptr [rsp+98h+var_78+8], rdx movups xmm0, [rsp+98h+var_78] movups [rsp+98h+var_98], xmm0 mov [rsp+98h+var_80], 0 mov [rsp+98h+var_88], 4000h mov rdi, rbx mov rsi, rbp mov ecx, 32h ; '2' call JS_SetPropertyInternal2 test eax, eax js short loc_7463A mov dword ptr [rsp+98h+var_48], 0 mov r12, [rsp+98h+var_68] jmp loc_7438E loc_7463A: mov r13, [rsp+98h+var_68] jmp loc_742F0 loc_74644: mov rcx, [rsp+98h+var_60] mov r8, [rsp+98h+var_40] loc_7464E: cmp rcx, [rsp+98h+var_50] jge short loc_7467E xor ebp, ebp mov r13, [rsp+98h+var_68] loc_7465C: mov dword ptr [r8], 0 mov qword ptr [r8+8], 3 inc rcx add r8, 10h cmp rcx, [rsp+98h+var_50] jl short loc_7465C jmp loc_7438E loc_7467E: xor ebp, ebp mov r13, [rsp+98h+var_68] jmp loc_7438E loc_7468A: mov ecx, [rax+40h] mov rax, [rax+38h] mov dl, 1 jmp loc_74457
_DWORD * js_array_with( 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) { _DWORD *v16; // r14 long long v17; // rdx long long v18; // r15 long long v19; // rdx long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 long long v24; // r13 _DWORD *v25; // rbp _DWORD *v26; // rdx long long v27; // rcx long long v28; // r8 long long v29; // r9 __m128 v30; // xmm4 __m128 v31; // xmm5 long long v32; // rcx _DWORD *v34; // rsi unsigned long long v35; // rdx double v36; // xmm4_8 double v37; // xmm5_8 _DWORD *v38; // rax _QWORD *v39; // r8 long long v40; // r9 long long v41; // rcx char v42; // dl long long *v43; // rcx long long v44; // rdx long long v45; // rsi long long v46; // rdi long long v47; // rcx unsigned long long v48; // rax long long v49; // rcx long long v50; // rax long long v51; // rsi signed long long v52; // rcx _QWORD *v53; // rbp int PropertyInt64; // eax long long v55; // rdx long long v56; // rsi long long v57; // rdx long long v58; // rcx _DWORD *v59; // rax long long v60; // rdx long long v61; // rsi long long v62; // rdi double v63; // r8 long long v64; // r9 char v65; // [rsp+0h] [rbp-98h] __m128 v66; // [rsp+20h] [rbp-78h] unsigned long long v67; // [rsp+30h] [rbp-68h] long long v68; // [rsp+38h] [rbp-60h] unsigned long long v69; // [rsp+38h] [rbp-60h] long long v70; // [rsp+40h] [rbp-58h] signed long long v71; // [rsp+40h] [rbp-58h] long long v72; // [rsp+48h] [rbp-50h] BYREF _DWORD *v73; // [rsp+50h] [rbp-48h] _DWORD *v74; // [rsp+58h] [rbp-40h] unsigned long long v75[7]; // [rsp+60h] [rbp-38h] BYREF LODWORD(v73) = 0; v16 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v18 = v17; v24 = 3LL; if ( (unsigned int)js_get_length64(a1, &v72, (int)v16, v17) ) goto LABEL_2; if ( v72 >= 0x100000000LL ) { v25 = 0LL; JS_ThrowRangeError( a1, (long long)"invalid array length", v19, v72, v20, v21, a7, a8, a9, a10, v22, v23, a13, a14, v65); goto LABEL_12; } v68 = v72; v26 = *(_DWORD **)a5; v27 = *(_QWORD *)(a5 + 8); if ( (unsigned int)v27 >= 0xFFFFFFF7 ) ++**(_DWORD **)a5; if ( (unsigned int)JS_ToInt64SatFree(a1, v75, (long long)v26, v27) ) goto LABEL_2; v32 = v68; if ( (v75[0] & 0x8000000000000000LL) != 0LL ) v75[0] += v68; if ( (signed long long)v75[0] >= v68 || (v75[0] & 0x8000000000000000LL) != 0LL ) { v25 = 0LL; LOBYTE(v32) = (signed long long)v75[0] < v68; JS_ThrowRangeError( a1, (long long)"invalid array index: %ld", v75[0], v32, v28, v29, a7, a8, a9, a10, v30, v31, a13, a14, v65); goto LABEL_12; } v70 = v75[0]; v34 = *(_DWORD **)(a1 + 56); ++*v34; v73 = (_DWORD *)JS_NewObjectFromShape(a1, v34, 2u); if ( (_DWORD)v35 == 6 ) { v25 = 0LL; v24 = v35; goto LABEL_12; } v67 = v35; v74 = v73; if ( (int)expand_fast_array(a1, (long long)v73, v68) < 0 ) goto LABEL_63; v38 = v74; v74[16] = v68; v39 = (_QWORD *)*((_QWORD *)v38 + 7); if ( (_DWORD)v18 == -1 ) { v38 = v16; v40 = v70; if ( *((_WORD *)v16 + 3) == 2 && (*((_BYTE *)v16 + 5) & 8) != 0 ) { v41 = (unsigned int)v16[16]; v38 = (_DWORD *)*((_QWORD *)v16 + 7); v42 = 1; } else { v41 = 0LL; v42 = 0; } } else { v41 = 0LL; v42 = 0; v40 = v70; } if ( v42 && v68 == v41 ) { if ( v40 <= 0 ) { v47 = 1LL; } else { v43 = (long long *)(v38 + 2); v44 = v40; do { v45 = *(v43 - 1); v46 = *v43; if ( (unsigned int)*v43 >= 0xFFFFFFF7 ) ++*(_DWORD *)*(v43 - 1); *v39 = v45; v39[1] = v46; v39 += 2; v43 += 2; --v44; } while ( v44 ); v47 = v40 + 1; } v55 = *(_QWORD *)(a5 + 16); v56 = *(_QWORD *)(a5 + 24); if ( (unsigned int)v56 >= 0xFFFFFFF7 ) ++**(_DWORD **)(a5 + 16); *v39 = v55; v39[1] = v56; if ( v47 < v68 ) { v57 = 0LL; if ( v40 > 0 ) v57 = v40; v58 = v68 + ~v57; v59 = &v38[4 * v57]; v60 = 24LL; do { v61 = *(_QWORD *)&v59[(unsigned long long)v60 / 4 - 2]; v62 = *(_QWORD *)&v59[(unsigned long long)v60 / 4]; if ( (unsigned int)v62 >= 0xFFFFFFF7 ) ++**(_DWORD **)&v59[(unsigned long long)v60 / 4 - 2]; v39[(unsigned long long)v60 / 8 - 1] = v61; v39[(unsigned long long)v60 / 8] = v62; v60 += 16LL; --v58; } while ( v58 ); } LABEL_51: v63 = (double)(int)v72; if ( (int)v72 == v72 ) *(_QWORD *)&v63 = (unsigned int)v72; v64 = 7LL; if ( (int)v72 == v72 ) v64 = 0LL; v25 = v73; v66.m128_u64[0] = (unsigned long long)v73; v66.m128_u64[1] = v67; if ( (int)JS_SetPropertyInternal2( a1, (long long)v73, v67, 0x32u, *(_DWORD **)&v63, v64, v66, a8, a9, a10, v36, v37, a13, a14, (long long)v73, v67, 0x4000u, 0LL) >= 0 ) { LODWORD(v73) = 0; goto LABEL_12; } v24 = v67; LABEL_2: v25 = 0LL; goto LABEL_12; } if ( v40 <= 0 ) { v49 = 0LL; LABEL_35: v50 = *(_QWORD *)(a5 + 16); v51 = *(_QWORD *)(a5 + 24); if ( (unsigned int)v51 >= 0xFFFFFFF7 ) ++**(_DWORD **)(a5 + 16); *v39 = v50; v39[1] = v51; while ( 1 ) { v52 = v49 + 1; if ( v52 >= v72 ) goto LABEL_51; v71 = v52; v53 = v39 + 2; PropertyInt64 = JS_TryGetPropertyInt64(a1, (long long)v16, v18, v52, (long long)(v39 + 2)); v39 = v53; v49 = v71; if ( PropertyInt64 == -1 ) goto LABEL_59; } } v48 = 0LL; while ( 1 ) { v74 = v39; v69 = v48; if ( (unsigned int)JS_TryGetPropertyInt64(a1, (long long)v16, v18, v48, (long long)v39) == -1 ) break; v48 = v69 + 1; v39 = v74 + 4; v49 = v70; if ( v70 == v69 + 1 ) goto LABEL_35; } v49 = v69; v39 = v74; LABEL_59: if ( v49 >= v72 ) { LABEL_63: v25 = 0LL; v24 = v67; goto LABEL_12; } v25 = 0LL; v24 = v67; do { *(_DWORD *)v39 = 0; v39[1] = 3LL; ++v49; v39 += 2; } while ( v49 < v72 ); LABEL_12: JS_FreeValueRT(*(_QWORD *)(a1 + 24), v73, v24); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v16, v18); return v25; }
js_array_with: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV RBP,R8 MOV RBX,RDI MOV dword ptr [RSP + 0x50],0x0 CALL 0x00126ddd MOV R14,RAX MOV R15,RDX LEA RSI,[RSP + 0x48] MOV RDI,RBX MOV RDX,RAX MOV RCX,R15 CALL 0x00122adc MOV R12D,0x6 MOV R13D,0x3 TEST EAX,EAX JZ 0x001742f7 LAB_001742f0: XOR EBP,EBP JMP 0x0017438e LAB_001742f7: MOV RCX,qword ptr [RSP + 0x48] MOV RAX,0x100000000 CMP RCX,RAX JL 0x00174320 LEA RSI,[0x19f19e] XOR EBP,EBP MOV RDI,RBX XOR EAX,EAX CALL 0x00120add JMP 0x0017438e LAB_00174320: MOV qword ptr [RSP + 0x38],RCX MOV RDX,qword ptr [RBP] MOV RCX,qword ptr [RBP + 0x8] MOV qword ptr [RSP + 0x20],RDX CMP ECX,-0x9 JC 0x0017433e MOV RAX,qword ptr [RSP + 0x20] INC dword ptr [RAX] LAB_0017433e: LEA RSI,[RSP + 0x60] MOV RDI,RBX CALL 0x001277bc TEST EAX,EAX JNZ 0x001742f0 MOV RAX,qword ptr [RSP + 0x60] TEST RAX,RAX MOV RCX,qword ptr [RSP + 0x38] JNS 0x00174366 ADD RAX,RCX MOV qword ptr [RSP + 0x60],RAX LAB_00174366: MOV RDX,qword ptr [RSP + 0x60] TEST RDX,RDX SETNS AL CMP RDX,RCX SETL CL TEST AL,CL JNZ 0x001743c3 LEA RSI,[0x1a1d84] XOR EBP,EBP MOV RDI,RBX XOR EAX,EAX CALL 0x00120add LAB_0017438e: MOV RSI,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RBX + 0x18] MOV RDX,R13 CALL 0x0011d8c6 MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R14 MOV RDX,R15 CALL 0x0011d8c6 MOV RAX,RBP MOV RDX,R12 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001743c3: MOV qword ptr [RSP + 0x40],RDX MOV RSI,qword ptr [RBX + 0x38] INC dword ptr [RSI] MOV RDI,RBX MOV EDX,0x2 CALL 0x0010f516 MOV qword ptr [RSP + 0x50],RAX CMP EDX,0x6 JNZ 0x001743ec XOR EBP,EBP MOV R13,RDX JMP 0x0017438e LAB_001743ec: MOV qword ptr [RSP + 0x30],RDX MOV RSI,qword ptr [RSP + 0x50] MOV RDI,RBX MOV qword ptr [RSP + 0x58],RSI MOV RDX,qword ptr [RSP + 0x38] CALL 0x0013dbb8 TEST EAX,EAX JS 0x0017467e MOV RAX,qword ptr [RSP + 0x58] MOV R11,qword ptr [RSP + 0x38] MOV dword ptr [RAX + 0x40],R11D MOV R8,qword ptr [RAX + 0x38] MOV qword ptr [RSP + 0x20],R14 CMP R15D,-0x1 JNZ 0x0017444e MOV RAX,qword ptr [RSP + 0x20] CMP word ptr [RAX + 0x6],0x2 MOV R9,qword ptr [RSP + 0x40] JNZ 0x00174448 TEST byte ptr [RAX + 0x5],0x8 JNZ 0x0017468a LAB_00174448: XOR ECX,ECX XOR EDX,EDX JMP 0x00174457 LAB_0017444e: XOR ECX,ECX XOR EDX,EDX MOV R9,qword ptr [RSP + 0x40] LAB_00174457: TEST DL,DL JZ 0x001744a6 CMP R11,RCX JNZ 0x001744a6 TEST R9,R9 JLE 0x0017454a LEA RCX,[RAX + 0x8] MOV RDX,R9 LAB_00174470: MOV RSI,qword ptr [RCX + -0x8] MOV RDI,qword ptr [RCX] MOV qword ptr [RSP + 0x20],RSI CMP EDI,-0x9 JC 0x00174489 MOV R10,qword ptr [RSP + 0x20] INC dword ptr [R10] LAB_00174489: MOV qword ptr [R8],RSI MOV qword ptr [R8 + 0x8],RDI ADD R8,0x10 ADD RCX,0x10 DEC RDX JNZ 0x00174470 LEA RCX,[R9 + 0x1] JMP 0x0017454f LAB_001744a6: TEST R9,R9 JLE 0x001744ee XOR EAX,EAX LAB_001744ad: MOV qword ptr [RSP + 0x58],R8 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV qword ptr [RSP + 0x38],RAX MOV RCX,RAX CALL 0x0014d6d1 CMP EAX,-0x1 JZ 0x00174644 MOV RAX,qword ptr [RSP + 0x38] INC RAX MOV R8,qword ptr [RSP + 0x58] ADD R8,0x10 MOV RCX,qword ptr [RSP + 0x40] CMP RCX,RAX JNZ 0x001744ad JMP 0x001744f0 LAB_001744ee: XOR ECX,ECX LAB_001744f0: MOV RAX,qword ptr [RBP + 0x10] MOV RSI,qword ptr [RBP + 0x18] MOV qword ptr [RSP + 0x20],RAX CMP ESI,-0x9 JC 0x00174509 MOV RDX,qword ptr [RSP + 0x20] INC dword ptr [RDX] LAB_00174509: MOV qword ptr [R8],RAX MOV qword ptr [R8 + 0x8],RSI LAB_00174510: INC RCX CMP RCX,qword ptr [RSP + 0x48] JGE 0x001745bf ADD R8,0x10 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV qword ptr [RSP + 0x40],RCX MOV RBP,R8 CALL 0x0014d6d1 MOV R8,RBP MOV RCX,qword ptr [RSP + 0x40] CMP EAX,-0x1 JNZ 0x00174510 JMP 0x0017464e LAB_0017454a: MOV ECX,0x1 LAB_0017454f: MOV RDX,qword ptr [RBP + 0x10] MOV RSI,qword ptr [RBP + 0x18] MOV qword ptr [RSP + 0x20],RDX CMP ESI,-0x9 JC 0x00174568 MOV RDI,qword ptr [RSP + 0x20] INC dword ptr [RDI] LAB_00174568: MOV qword ptr [R8],RDX MOV qword ptr [R8 + 0x8],RSI CMP RCX,R11 JGE 0x001745bf XOR EDX,EDX TEST R9,R9 CMOVG RDX,R9 MOV RCX,RDX NOT RCX ADD RCX,R11 SHL RDX,0x4 ADD RAX,RDX MOV EDX,0x18 LAB_00174592: MOV RSI,qword ptr [RAX + RDX*0x1 + -0x8] MOV RDI,qword ptr [RAX + RDX*0x1] MOV qword ptr [RSP + 0x20],RSI CMP EDI,-0x9 JC 0x001745ad MOV R9,qword ptr [RSP + 0x20] INC dword ptr [R9] LAB_001745ad: MOV qword ptr [R8 + RDX*0x1 + -0x8],RSI MOV qword ptr [R8 + RDX*0x1],RDI ADD RDX,0x10 DEC RCX JNZ 0x00174592 LAB_001745bf: MOV RAX,qword ptr [RSP + 0x48] MOVSXD RCX,EAX XOR EDX,EDX CMP RCX,RAX CVTSI2SD XMM0,RAX MOV EAX,ECX MOVQ R8,XMM0 CMOVZ R8,RAX MOV R9D,0x7 CMOVZ R9,RDX MOV RBP,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x20],RBP MOV RDX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x28],RDX MOVUPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x18],0x0 MOV dword ptr [RSP + 0x10],0x4000 MOV RDI,RBX MOV RSI,RBP MOV ECX,0x32 CALL 0x00124388 TEST EAX,EAX JS 0x0017463a MOV dword ptr [RSP + 0x50],0x0 MOV R12,qword ptr [RSP + 0x30] JMP 0x0017438e LAB_0017463a: MOV R13,qword ptr [RSP + 0x30] JMP 0x001742f0 LAB_00174644: MOV RCX,qword ptr [RSP + 0x38] MOV R8,qword ptr [RSP + 0x58] LAB_0017464e: CMP RCX,qword ptr [RSP + 0x48] JGE 0x0017467e XOR EBP,EBP MOV R13,qword ptr [RSP + 0x30] LAB_0017465c: MOV dword ptr [R8],0x0 MOV qword ptr [R8 + 0x8],0x3 INC RCX ADD R8,0x10 CMP RCX,qword ptr [RSP + 0x48] JL 0x0017465c JMP 0x0017438e LAB_0017467e: XOR EBP,EBP MOV R13,qword ptr [RSP + 0x30] JMP 0x0017438e LAB_0017468a: MOV ECX,dword ptr [RAX + 0x40] MOV RAX,qword ptr [RAX + 0x38] MOV DL,0x1 JMP 0x00174457
int1 [16] js_array_with(long param_1) { int *piVar1; ulong uVar2; int iVar3; int8 *puVar4; ulong uVar5; int8 *puVar6; long lVar7; ulong uVar9; long lVar10; int8 *puVar11; int8 *in_R8; int8 *puVar12; double dVar13; int8 uVar14; int8 uVar15; int8 uVar16; bool bVar17; int1 auVar18 [16]; int1 auVar19 [16]; int4 local_78; ulong local_50; int8 *local_48; int8 *local_40; ulong local_38; int8 uVar8; local_48 = (int8 *)((ulong)local_48 & 0xffffffff00000000); auVar18 = JS_ToObject(); uVar8 = auVar18._8_8_; puVar4 = auVar18._0_8_; iVar3 = js_get_length64(param_1,&local_50,puVar4,uVar8); uVar5 = local_50; uVar15 = 6; uVar16 = 3; if (iVar3 == 0) { if (0xffffffff < (long)local_50) { puVar11 = (int8 *)0x0; JS_ThrowRangeError(param_1,"invalid array length"); auVar19._8_8_ = 3; auVar19._0_8_ = local_48; goto LAB_0017438e; } if (0xfffffff6 < (uint)in_R8[1]) { *(int *)*in_R8 = *(int *)*in_R8 + 1; } iVar3 = JS_ToInt64SatFree(param_1,&local_38); if (iVar3 == 0) { if ((long)local_38 < 0) { local_38 = local_38 + uVar5; } uVar2 = local_38; if ((long)local_38 < 0 || (long)uVar5 <= (long)local_38) { puVar11 = (int8 *)0x0; JS_ThrowRangeError(param_1,"invalid array index: %ld"); auVar19._8_8_ = 3; auVar19._0_8_ = local_48; goto LAB_0017438e; } piVar1 = *(int **)(param_1 + 0x38); *piVar1 = *piVar1 + 1; auVar19 = JS_NewObjectFromShape(param_1,piVar1,2); uVar16 = auVar19._8_8_; local_48 = auVar19._0_8_; if (auVar19._8_4_ == 6) { puVar11 = (int8 *)0x0; goto LAB_0017438e; } local_40 = local_48; iVar3 = expand_fast_array(param_1,local_48,uVar5); if (-1 < iVar3) { *(int *)(local_40 + 8) = (int)uVar5; puVar12 = (int8 *)local_40[7]; if (auVar18._8_4_ == -1) { if ((*(short *)((long)puVar4 + 6) == 2) && ((*(byte *)((long)puVar4 + 5) & 8) != 0)) { uVar9 = (ulong)*(uint *)(puVar4 + 8); bVar17 = true; puVar11 = (int8 *)puVar4[7]; } else { uVar9 = 0; bVar17 = false; puVar11 = puVar4; } } else { uVar9 = 0; bVar17 = false; puVar11 = local_40; } if ((bVar17) && (uVar5 == uVar9)) { if ((long)uVar2 < 1) { lVar7 = 1; } else { puVar6 = puVar11 + 1; uVar9 = uVar2; do { piVar1 = (int *)puVar6[-1]; uVar14 = *puVar6; if (0xfffffff6 < (uint)uVar14) { *piVar1 = *piVar1 + 1; } *puVar12 = piVar1; puVar12[1] = uVar14; puVar12 = puVar12 + 2; puVar6 = puVar6 + 2; uVar9 = uVar9 - 1; } while (uVar9 != 0); lVar7 = uVar2 + 1; } piVar1 = (int *)in_R8[2]; uVar14 = in_R8[3]; if (0xfffffff6 < (uint)uVar14) { *piVar1 = *piVar1 + 1; } *puVar12 = piVar1; puVar12[1] = uVar14; if (lVar7 < (long)uVar5) { uVar9 = 0; if (0 < (long)uVar2) { uVar9 = uVar2; } lVar7 = ~uVar9 + uVar5; lVar10 = 0x18; do { piVar1 = *(int **)((long)puVar11 + lVar10 + uVar9 * 0x10 + -8); uVar14 = *(int8 *)((long)puVar11 + lVar10 + uVar9 * 0x10); if (0xfffffff6 < (uint)uVar14) { *piVar1 = *piVar1 + 1; } *(int **)((long)puVar12 + lVar10 + -8) = piVar1; *(int8 *)((long)puVar12 + lVar10) = uVar14; lVar10 = lVar10 + 0x10; lVar7 = lVar7 + -1; } while (lVar7 != 0); } LAB_001745bf: puVar11 = local_48; bVar17 = (long)(int)local_50 == local_50; dVar13 = (double)(long)local_50; if (bVar17) { dVar13 = (double)(local_50 & 0xffffffff); } uVar14 = 7; if (bVar17) { uVar14 = 0; } local_78 = SUB84(local_48,0); iVar3 = JS_SetPropertyInternal2 (param_1,local_48,uVar16,0x32,dVar13,uVar14,local_78,auVar19._8_4_, 0x4000,0); if (-1 < iVar3) { local_48 = (int8 *)((ulong)local_48 & 0xffffffff00000000); auVar19._8_8_ = 3; auVar19._0_8_ = local_48; uVar15 = uVar16; goto LAB_0017438e; } goto LAB_001742f0; } if ((long)uVar2 < 1) { uVar2 = 0; } else { uVar5 = 0; do { local_40 = puVar12; iVar3 = JS_TryGetPropertyInt64(param_1,puVar4,uVar8,uVar5); puVar12 = local_40; if (iVar3 == -1) goto LAB_0017464e; uVar5 = uVar5 + 1; puVar12 = local_40 + 2; } while (uVar2 != uVar5); } uVar5 = uVar2; piVar1 = (int *)in_R8[2]; uVar14 = in_R8[3]; if (0xfffffff6 < (uint)uVar14) { *piVar1 = *piVar1 + 1; } *puVar12 = piVar1; puVar12[1] = uVar14; do { uVar5 = uVar5 + 1; if ((long)local_50 <= (long)uVar5) goto LAB_001745bf; puVar12 = puVar12 + 2; iVar3 = JS_TryGetPropertyInt64(param_1,puVar4,uVar8); } while (iVar3 != -1); LAB_0017464e: auVar19._8_8_ = uVar16; auVar19._0_8_ = local_48; if ((long)uVar5 < (long)local_50) { puVar11 = (int8 *)0x0; do { *(int4 *)puVar12 = 0; puVar12[1] = 3; uVar5 = uVar5 + 1; puVar12 = puVar12 + 2; } while ((long)uVar5 < (long)local_50); goto LAB_0017438e; } } auVar19._8_8_ = uVar16; auVar19._0_8_ = local_48; puVar11 = (int8 *)0x0; goto LAB_0017438e; } } LAB_001742f0: auVar19._8_8_ = uVar16; auVar19._0_8_ = local_48; puVar11 = (int8 *)0x0; LAB_0017438e: local_48 = auVar19._0_8_; JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_48,auVar19._8_8_); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),puVar4,uVar8); auVar18._8_8_ = uVar15; auVar18._0_8_ = puVar11; return auVar18; }
33,395
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); }
O0
c
unpack_filename: pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rsi leaq -0x238(%rbp), %rdx callq 0x392a0 movq %rax, -0x228(%rbp) leaq -0x210(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x286e0 movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movq %rax, -0x240(%rbp) movq -0x220(%rbp), %rdi addq -0x228(%rbp), %rdi callq 0x25150 movq %rax, %rcx movq -0x240(%rbp), %rax addq %rcx, %rax cmpq $0x200, %rax # imm = 0x200 jae 0x28a94 leaq -0x210(%rbp), %rdi addq -0x230(%rbp), %rdi movq -0x220(%rbp), %rsi addq -0x228(%rbp), %rsi callq 0x25330 movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x28990 movq %rax, -0x228(%rbp) jmp 0x28aae movq -0x218(%rbp), %rdi movq -0x220(%rbp), %rsi callq 0x28990 movq %rax, -0x228(%rbp) jmp 0x28ab0 movq -0x228(%rbp), %rax movq %rax, -0x248(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x28ae0 movq -0x248(%rbp), %rax addq $0x250, %rsp # imm = 0x250 popq %rbp retq callq 0x25390 nopw %cs:(%rax,%rax) nop
unpack_filename: push rbp mov rbp, rsp sub rsp, 250h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi lea rdi, [rbp+var_210] mov rsi, [rbp+var_220] lea rdx, [rbp+var_238] call dirname_part mov [rbp+var_228], rax lea rdi, [rbp+var_210] lea rsi, [rbp+var_210] call unpack_dirname mov [rbp+var_230], rax mov rax, [rbp+var_230] mov [rbp+var_240], rax mov rdi, [rbp+var_220] add rdi, [rbp+var_228] call _strlen mov rcx, rax mov rax, [rbp+var_240] add rax, rcx cmp rax, 200h jnb short loc_28A94 lea rdi, [rbp+var_210] add rdi, [rbp+var_230] mov rsi, [rbp+var_220] add rsi, [rbp+var_228] call _stpcpy mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call system_filename mov [rbp+var_228], rax jmp short loc_28AAE loc_28A94: mov rdi, [rbp+var_218] mov rsi, [rbp+var_220] call system_filename mov [rbp+var_228], rax loc_28AAE: jmp short $+2 loc_28AB0: mov rax, [rbp+var_228] mov [rbp+var_248], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_28AE0 mov rax, [rbp+var_248] add rsp, 250h pop rbp retn loc_28AE0: call ___stack_chk_fail
long long unpack_filename(long long a1, long long a2) { long long v3; // [rsp+10h] [rbp-240h] _BYTE v4[8]; // [rsp+18h] [rbp-238h] BYREF long long v5; // [rsp+20h] [rbp-230h] long long v6; // [rsp+28h] [rbp-228h] long long v7; // [rsp+30h] [rbp-220h] long long v8; // [rsp+38h] [rbp-218h] _BYTE v9[520]; // [rsp+40h] [rbp-210h] BYREF unsigned long long v10; // [rsp+248h] [rbp-8h] v10 = __readfsqword(0x28u); v8 = a1; v7 = a2; v6 = dirname_part(v9, a2, v4); v5 = unpack_dirname((long long)v9, v9); v3 = v5; if ( (unsigned long long)(strlen(v6 + v7) + v3) >= 0x200 ) return system_filename(v8, v7); stpcpy(&v9[v5], v6 + v7); return system_filename(v8, (long long)v9); }
unpack_filename: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x220] LEA RDX,[RBP + -0x238] CALL 0x001392a0 MOV qword ptr [RBP + -0x228],RAX LEA RDI,[RBP + -0x210] LEA RSI,[RBP + -0x210] CALL 0x001286e0 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x240],RAX MOV RDI,qword ptr [RBP + -0x220] ADD RDI,qword ptr [RBP + -0x228] CALL 0x00125150 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x240] ADD RAX,RCX CMP RAX,0x200 JNC 0x00128a94 LEA RDI,[RBP + -0x210] ADD RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x220] ADD RSI,qword ptr [RBP + -0x228] CALL 0x00125330 MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x00128990 MOV qword ptr [RBP + -0x228],RAX JMP 0x00128aae LAB_00128a94: MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x220] CALL 0x00128990 MOV qword ptr [RBP + -0x228],RAX LAB_00128aae: JMP 0x00128ab0 LAB_00128ab0: MOV RAX,qword ptr [RBP + -0x228] MOV qword ptr [RBP + -0x248],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00128ae0 MOV RAX,qword ptr [RBP + -0x248] ADD RSP,0x250 POP RBP RET LAB_00128ae0: CALL 0x00125390
int8 unpack_filename(int8 param_1,long param_2) { long lVar1; size_t sVar2; long in_FS_OFFSET; int1 local_240 [8]; long local_238; long local_230; long local_228; int8 local_220; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_228 = param_2; local_220 = param_1; local_230 = dirname_part(local_218,param_2,local_240); lVar1 = unpack_dirname(local_218,local_218); local_238 = lVar1; sVar2 = strlen((char *)(local_228 + local_230)); if (lVar1 + sVar2 < 0x200) { stpcpy(local_218 + local_238,(char *)(local_228 + local_230)); local_230 = system_filename(local_220,local_218); } else { local_230 = system_filename(local_220,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_230; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
33,396
translog_write_variable_record_1group
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_variable_record_1group(LSN *lsn, enum translog_record_type type, MARIA_HA *tbl_info, SHORT_TRANSACTION_ID short_trid, struct st_translog_parts *parts, struct st_translog_buffer *buffer_to_flush, uint16 header_length, TRN *trn, void *hook_arg) { TRANSLOG_ADDRESS horizon; struct st_buffer_cursor cursor; int rc= 0; uint i; translog_size_t record_rest, full_pages, first_page; uint additional_chunk3_page= 0; uchar chunk0_header[1 + 2 + 5 + 2]; DBUG_ENTER("translog_write_variable_record_1group"); translog_lock_assert_owner(); if (buffer_to_flush) translog_buffer_lock_assert_owner(buffer_to_flush); set_lsn(lsn, horizon= log_descriptor.horizon); if (translog_set_lsn_for_files(LSN_FILE_NO(*lsn), LSN_FILE_NO(*lsn), *lsn, TRUE) || (log_record_type_descriptor[type].inwrite_hook && (*log_record_type_descriptor[type].inwrite_hook)(type, trn, tbl_info, lsn, hook_arg))) { translog_unlock(); if (buffer_to_flush != NULL) { translog_buffer_flush(buffer_to_flush); translog_buffer_unlock(buffer_to_flush); } DBUG_RETURN(1); } cursor= log_descriptor.bc; cursor.chaser= 1; /* Advance pointer to be able unlock the loghandler */ first_page= translog_get_current_page_rest(); record_rest= parts->record_length - (first_page - header_length); full_pages= record_rest / log_descriptor.page_capacity_chunk_2; record_rest= (record_rest % log_descriptor.page_capacity_chunk_2); if (record_rest + 1 == log_descriptor.page_capacity_chunk_2) { DBUG_PRINT("info", ("2 chunks type 3 is needed")); /* We will write 2 chunks type 3 at the end of this group */ additional_chunk3_page= 1; record_rest= 1; } DBUG_PRINT("info", ("first_page: %u (%u) full_pages: %u (%lu) " "additional: %u (%u) rest %u = %u", first_page, first_page - header_length, full_pages, (ulong) full_pages * log_descriptor.page_capacity_chunk_2, additional_chunk3_page, additional_chunk3_page * (log_descriptor.page_capacity_chunk_2 - 1), record_rest, parts->record_length)); /* record_rest + 3 is chunk type 3 overhead + record_rest */ rc= translog_advance_pointer((int)(full_pages + additional_chunk3_page), (record_rest ? record_rest + 3 : 0), &cursor.buffs); log_descriptor.bc.buffer->last_lsn= *lsn; DBUG_PRINT("info", ("last_lsn set to " LSN_FMT " buffer: %p", LSN_IN_PARTS(log_descriptor.bc.buffer->last_lsn), log_descriptor.bc.buffer)); translog_unlock(); /* Check if we switched buffer and need process it (current buffer is unlocked already => we will not delay other threads */ if (buffer_to_flush != NULL) { if (!rc) rc= translog_buffer_flush(buffer_to_flush); translog_buffer_unlock(buffer_to_flush); } if (rc) { //translog_advance_pointer decreased writers so it is OK DBUG_ASSERT(cursor.buffs.unlck_ptr == cursor.buffs.wrt_ptr); DBUG_RETURN(1); } translog_write_variable_record_1group_header(parts, type, short_trid, header_length, chunk0_header); /* fill the pages */ translog_write_parts_on_page(&horizon, &cursor, first_page, parts); DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon), LSN_IN_PARTS(horizon))); for (i= 0; i < full_pages; i++) { if (translog_write_variable_record_chunk2_page(parts, &horizon, &cursor)) goto error; DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon), LSN_IN_PARTS(horizon))); } if (additional_chunk3_page) { if (translog_write_variable_record_chunk3_page(parts, log_descriptor. page_capacity_chunk_2 - 2, &horizon, &cursor)) goto error; DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon), LSN_IN_PARTS(horizon))); DBUG_ASSERT(cursor.current_page_fill == TRANSLOG_PAGE_SIZE); } if (translog_write_variable_record_chunk3_page(parts, record_rest, &horizon, &cursor)) goto error; DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, (uint) LSN_FILE_NO(log_descriptor.horizon), (uint) LSN_OFFSET(log_descriptor.horizon), (uint) LSN_FILE_NO(horizon), (uint) LSN_OFFSET(horizon))); translog_buffer_lock(cursor.buffer); translog_buffer_decrease_writers(cursor.buffer); used_buffs_register_unlock(&cursor.buffs, cursor.buffer); translog_buffer_unlock(cursor.buffer); DBUG_ASSERT(cursor.buffs.unlck_ptr == cursor.buffs.wrt_ptr); DBUG_RETURN(0); error: used_buffs_urgent_unlock(&cursor.buffs); DBUG_RETURN(1); }
O0
c
translog_write_variable_record_1group: pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movw %cx, %ax movq 0x20(%rbp), %rcx movq 0x18(%rbp), %rcx movw 0x10(%rbp), %cx movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x20(%rbp) movl %esi, -0x24(%rbp) movq %rdx, -0x30(%rbp) movw %ax, -0x32(%rbp) movq %r8, -0x40(%rbp) movq %r9, -0x48(%rbp) movl $0x0, -0x94(%rbp) movl $0x0, -0xa8(%rbp) cmpq $0x0, -0x48(%rbp) je 0x5a04b jmp 0x5a04b movq -0x20(%rbp), %rdi movq 0xc1ffb2(%rip), %rsi # 0xc7a008 movq %rsi, -0x50(%rbp) callq 0x5b3c0 movq -0x20(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %edi movq -0x20(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %esi movq -0x20(%rbp), %rax movq (%rax), %rdx movl $0x1, %ecx callq 0x5b3f0 movsbl %al, %eax cmpl $0x0, %eax jne 0x5a0e0 movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x41e122(%rip), %rax # 0x4781c0 imulq $0x48, %rcx, %rcx addq %rcx, %rax cmpq $0x0, 0x10(%rax) je 0x5a109 movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x41e108(%rip), %rax # 0x4781c0 imulq $0x48, %rcx, %rcx addq %rcx, %rax movq 0x10(%rax), %rax movl -0x24(%rbp), %edi movq 0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x20(%rbp), %rcx movq 0x20(%rbp), %r8 callq *%rax movsbl %al, %eax cmpl $0x0, %eax je 0x5a109 callq 0x501b0 cmpq $0x0, -0x48(%rbp) je 0x5a0fe movq -0x48(%rbp), %rdi callq 0x56370 movq -0x48(%rbp), %rdi callq 0x50180 jmp 0x5a100 movb $0x1, -0x13(%rbp) jmp 0x5a394 leaq -0x90(%rbp), %rdi leaq 0x41f2a9(%rip), %rsi # 0x4793c0 addq $0x800c50, %rsi # imm = 0x800C50 movl $0x40, %edx callq 0x2a090 movb $0x1, -0x59(%rbp) callq 0x5be50 movl %eax, -0xa4(%rbp) movq -0x40(%rbp), %rax movl (%rax), %eax movl -0xa4(%rbp), %ecx movzwl 0x10(%rbp), %edx subl %edx, %ecx subl %ecx, %eax movl %eax, -0x9c(%rbp) movl -0x9c(%rbp), %eax movzwl 0x41f288(%rip), %ecx # 0x4793e6 xorl %edx, %edx divl %ecx movl %eax, -0xa0(%rbp) movl -0x9c(%rbp), %eax movzwl 0x41f271(%rip), %ecx # 0x4793e6 xorl %edx, %edx divl %ecx movl %edx, -0x9c(%rbp) movl -0x9c(%rbp), %eax addl $0x1, %eax movzwl 0x41f257(%rip), %ecx # 0x4793e6 cmpl %ecx, %eax jne 0x5a1ab jmp 0x5a195 jmp 0x5a197 movl $0x1, -0xa8(%rbp) movl $0x1, -0x9c(%rbp) jmp 0x5a1ad jmp 0x5a1af movl -0xa0(%rbp), %eax addl -0xa8(%rbp), %eax movl %eax, -0xac(%rbp) cmpl $0x0, -0x9c(%rbp) je 0x5a1db movl -0x9c(%rbp), %eax addl $0x3, %eax movl %eax, -0xb0(%rbp) jmp 0x5a1e5 xorl %eax, %eax movl %eax, -0xb0(%rbp) jmp 0x5a1e5 movl -0xac(%rbp), %edi movl -0xb0(%rbp), %eax leaq -0x90(%rbp), %rdx movzwl %ax, %esi callq 0x5b870 movsbl %al, %eax movl %eax, -0x94(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rcx movq 0xc1fe21(%rip), %rax # 0xc7a038 movq %rcx, 0x100000(%rax) jmp 0x5a220 callq 0x501b0 cmpq $0x0, -0x48(%rbp) je 0x5a250 cmpl $0x0, -0x94(%rbp) jne 0x5a247 movq -0x48(%rbp), %rdi callq 0x56370 movsbl %al, %eax movl %eax, -0x94(%rbp) movq -0x48(%rbp), %rdi callq 0x50180 cmpl $0x0, -0x94(%rbp) je 0x5a268 jmp 0x5a25b jmp 0x5a25d jmp 0x5a25f movb $0x1, -0x13(%rbp) jmp 0x5a394 movq -0x40(%rbp), %rdi movl -0x24(%rbp), %esi movw -0x32(%rbp), %cx movw 0x10(%rbp), %ax leaq -0x12(%rbp), %r8 movzwl %cx, %edx movzwl %ax, %ecx callq 0x5b2f0 movl -0xa4(%rbp), %edx movq -0x40(%rbp), %rcx leaq -0x50(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x5b590 jmp 0x5a2a2 movl $0x0, -0x98(%rbp) movl -0x98(%rbp), %eax cmpl -0xa0(%rbp), %eax jae 0x5a2ee movq -0x40(%rbp), %rdi leaq -0x50(%rbp), %rsi leaq -0x90(%rbp), %rdx callq 0x5bbf0 cmpb $0x0, %al je 0x5a2d7 jmp 0x5a384 jmp 0x5a2d9 jmp 0x5a2db jmp 0x5a2dd movl -0x98(%rbp), %eax addl $0x1, %eax movl %eax, -0x98(%rbp) jmp 0x5a2ac cmpl $0x0, -0xa8(%rbp) je 0x5a328 movq -0x40(%rbp), %rdi movzwl 0x41f0e4(%rip), %eax # 0x4793e6 subl $0x2, %eax leaq -0x50(%rbp), %rdx leaq -0x90(%rbp), %rcx movzwl %ax, %esi callq 0x5bc60 cmpb $0x0, %al je 0x5a31e jmp 0x5a384 jmp 0x5a320 jmp 0x5a322 jmp 0x5a324 jmp 0x5a326 jmp 0x5a328 movq -0x40(%rbp), %rdi movl -0x9c(%rbp), %eax leaq -0x50(%rbp), %rdx leaq -0x90(%rbp), %rcx movzwl %ax, %esi callq 0x5bc60 cmpb $0x0, %al je 0x5a34b jmp 0x5a384 jmp 0x5a34d jmp 0x5a34f movq -0x68(%rbp), %rdi callq 0x50140 movq -0x68(%rbp), %rdi callq 0x5bd40 leaq -0x90(%rbp), %rdi movq -0x68(%rbp), %rsi callq 0x5bd90 movq -0x68(%rbp), %rdi callq 0x50180 jmp 0x5a37c jmp 0x5a37e movb $0x0, -0x13(%rbp) jmp 0x5a394 leaq -0x90(%rbp), %rdi callq 0x5bdc0 movb $0x1, -0x13(%rbp) movb -0x13(%rbp), %al movb %al, -0xb1(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x5a3be movb -0xb1(%rbp), %al addq $0xc0, %rsp popq %rbp retq callq 0x2a270 nopw %cs:(%rax,%rax)
translog_write_variable_record_1group: push rbp mov rbp, rsp sub rsp, 0C0h mov ax, cx mov rcx, [rbp+arg_10] mov rcx, [rbp+arg_8] mov cx, [rbp+arg_0] mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_20], rdi mov [rbp+var_24], esi mov [rbp+var_30], rdx mov [rbp+var_32], ax mov [rbp+var_40], r8 mov [rbp+var_48], r9 mov [rbp+var_94], 0 mov [rbp+var_A8], 0 cmp [rbp+var_48], 0 jz short loc_5A04B jmp short $+2 loc_5A04B: mov rdi, [rbp+var_20] mov rsi, cs:qword_C7A008 mov [rbp+var_50], rsi call set_lsn mov rax, [rbp+var_20] mov rax, [rax] sar rax, 20h mov edi, eax mov rax, [rbp+var_20] mov rax, [rax] sar rax, 20h mov esi, eax mov rax, [rbp+var_20] mov rdx, [rax] mov ecx, 1 call translog_set_lsn_for_files movsx eax, al cmp eax, 0 jnz short loc_5A0E0 mov eax, [rbp+var_24] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx cmp qword ptr [rax+10h], 0 jz short loc_5A109 mov eax, [rbp+var_24] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx mov rax, [rax+10h] mov edi, [rbp+var_24] mov rsi, [rbp+arg_8] mov rdx, [rbp+var_30] mov rcx, [rbp+var_20] mov r8, [rbp+arg_10] call rax movsx eax, al cmp eax, 0 jz short loc_5A109 loc_5A0E0: call translog_unlock cmp [rbp+var_48], 0 jz short loc_5A0FE mov rdi, [rbp+var_48] call translog_buffer_flush mov rdi, [rbp+var_48] call translog_buffer_unlock loc_5A0FE: jmp short $+2 loc_5A100: mov [rbp+var_13], 1 jmp loc_5A394 loc_5A109: lea rdi, [rbp+var_90] lea rsi, log_descriptor add rsi, 800C50h mov edx, 40h ; '@' call _memcpy mov [rbp+var_59], 1 call translog_get_current_page_rest mov [rbp+var_A4], eax mov rax, [rbp+var_40] mov eax, [rax] mov ecx, [rbp+var_A4] movzx edx, [rbp+arg_0] sub ecx, edx sub eax, ecx mov [rbp+var_9C], eax mov eax, [rbp+var_9C] movzx ecx, cs:word_4793E6 xor edx, edx div ecx mov [rbp+var_A0], eax mov eax, [rbp+var_9C] movzx ecx, cs:word_4793E6 xor edx, edx div ecx mov [rbp+var_9C], edx mov eax, [rbp+var_9C] add eax, 1 movzx ecx, cs:word_4793E6 cmp eax, ecx jnz short loc_5A1AB jmp short $+2 loc_5A195: jmp short $+2 loc_5A197: mov [rbp+var_A8], 1 mov [rbp+var_9C], 1 loc_5A1AB: jmp short $+2 loc_5A1AD: jmp short $+2 loc_5A1AF: mov eax, [rbp+var_A0] add eax, [rbp+var_A8] mov [rbp+var_AC], eax cmp [rbp+var_9C], 0 jz short loc_5A1DB mov eax, [rbp+var_9C] add eax, 3 mov [rbp+var_B0], eax jmp short loc_5A1E5 loc_5A1DB: xor eax, eax mov [rbp+var_B0], eax jmp short $+2 loc_5A1E5: mov edi, [rbp+var_AC] mov eax, [rbp+var_B0] lea rdx, [rbp+var_90] movzx esi, ax call translog_advance_pointer movsx eax, al mov [rbp+var_94], eax mov rax, [rbp+var_20] mov rcx, [rax] mov rax, cs:qword_C7A038 mov qword ptr ds:loc_100000[rax], rcx jmp short $+2 loc_5A220: call translog_unlock cmp [rbp+var_48], 0 jz short loc_5A250 cmp [rbp+var_94], 0 jnz short loc_5A247 mov rdi, [rbp+var_48] call translog_buffer_flush movsx eax, al mov [rbp+var_94], eax loc_5A247: mov rdi, [rbp+var_48] call translog_buffer_unlock loc_5A250: cmp [rbp+var_94], 0 jz short loc_5A268 jmp short $+2 loc_5A25B: jmp short $+2 loc_5A25D: jmp short $+2 loc_5A25F: mov [rbp+var_13], 1 jmp loc_5A394 loc_5A268: mov rdi, [rbp+var_40] mov esi, [rbp+var_24] mov cx, [rbp+var_32] mov ax, [rbp+arg_0] lea r8, [rbp+var_12] movzx edx, cx movzx ecx, ax call translog_write_variable_record_1group_header mov edx, [rbp+var_A4] mov rcx, [rbp+var_40] lea rdi, [rbp+var_50] lea rsi, [rbp+var_90] call translog_write_parts_on_page jmp short $+2 loc_5A2A2: mov [rbp+var_98], 0 loc_5A2AC: mov eax, [rbp+var_98] cmp eax, [rbp+var_A0] jnb short loc_5A2EE mov rdi, [rbp+var_40] lea rsi, [rbp+var_50] lea rdx, [rbp+var_90] call translog_write_variable_record_chunk2_page cmp al, 0 jz short loc_5A2D7 jmp loc_5A384 loc_5A2D7: jmp short $+2 loc_5A2D9: jmp short $+2 loc_5A2DB: jmp short $+2 loc_5A2DD: mov eax, [rbp+var_98] add eax, 1 mov [rbp+var_98], eax jmp short loc_5A2AC loc_5A2EE: cmp [rbp+var_A8], 0 jz short loc_5A328 mov rdi, [rbp+var_40] movzx eax, cs:word_4793E6 sub eax, 2 lea rdx, [rbp+var_50] lea rcx, [rbp+var_90] movzx esi, ax call translog_write_variable_record_chunk3_page cmp al, 0 jz short loc_5A31E jmp short loc_5A384 loc_5A31E: jmp short $+2 loc_5A320: jmp short $+2 loc_5A322: jmp short $+2 loc_5A324: jmp short $+2 loc_5A326: jmp short $+2 loc_5A328: mov rdi, [rbp+var_40] mov eax, [rbp+var_9C] lea rdx, [rbp+var_50] lea rcx, [rbp+var_90] movzx esi, ax call translog_write_variable_record_chunk3_page cmp al, 0 jz short loc_5A34B jmp short loc_5A384 loc_5A34B: jmp short $+2 loc_5A34D: jmp short $+2 loc_5A34F: mov rdi, [rbp+var_68] call translog_buffer_lock mov rdi, [rbp+var_68] call translog_buffer_decrease_writers lea rdi, [rbp+var_90] mov rsi, [rbp+var_68] call used_buffs_register_unlock mov rdi, [rbp+var_68] call translog_buffer_unlock jmp short $+2 loc_5A37C: jmp short $+2 loc_5A37E: mov [rbp+var_13], 0 jmp short loc_5A394 loc_5A384: lea rdi, [rbp+var_90] call used_buffs_urgent_unlock mov [rbp+var_13], 1 loc_5A394: mov al, [rbp+var_13] mov [rbp+var_B1], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_5A3BE mov al, [rbp+var_B1] add rsp, 0C0h pop rbp retn loc_5A3BE: call ___stack_chk_fail
char translog_write_variable_record_1group( _QWORD *a1, unsigned int a2, long long a3, unsigned __int16 a4, _DWORD *a5, long long a6, unsigned __int16 a7, long long a8, long long a9) { unsigned __int16 v10; // [rsp+10h] [rbp-B0h] int v11; // [rsp+18h] [rbp-A8h] unsigned int current_page_rest; // [rsp+1Ch] [rbp-A4h] unsigned int v13; // [rsp+20h] [rbp-A0h] unsigned int v14; // [rsp+24h] [rbp-9Ch] unsigned int v15; // [rsp+24h] [rbp-9Ch] unsigned int i; // [rsp+28h] [rbp-98h] int v17; // [rsp+2Ch] [rbp-94h] _BYTE v18[40]; // [rsp+30h] [rbp-90h] BYREF long long v19; // [rsp+58h] [rbp-68h] char v20; // [rsp+67h] [rbp-59h] long long v21; // [rsp+70h] [rbp-50h] BYREF long long v22; // [rsp+78h] [rbp-48h] _DWORD *v23; // [rsp+80h] [rbp-40h] unsigned __int16 v24; // [rsp+8Eh] [rbp-32h] long long v25; // [rsp+90h] [rbp-30h] unsigned int v26; // [rsp+9Ch] [rbp-24h] _QWORD *v27; // [rsp+A0h] [rbp-20h] _BYTE v29[10]; // [rsp+AEh] [rbp-12h] BYREF unsigned long long v30; // [rsp+B8h] [rbp-8h] v30 = __readfsqword(0x28u); v27 = a1; v26 = a2; v25 = a3; v24 = a4; v23 = a5; v22 = a6; v11 = 0; v21 = qword_C7A008; set_lsn(a1, qword_C7A008); if ( (unsigned __int8)translog_set_lsn_for_files((unsigned int)HIDWORD(*v27), (unsigned int)HIDWORD(*v27), *v27, 1LL) || *(_QWORD *)&log_record_type_descriptor[18 * v26 + 4] && (*(unsigned __int8 ( **)(_QWORD, long long, long long, _QWORD *, long long))&log_record_type_descriptor[18 * v26 + 4])( v26, a8, v25, v27, a9) ) { translog_unlock(); if ( v22 ) { translog_buffer_flush(v22); translog_buffer_unlock(v22); } return 1; } else { memcpy(v18, &log_descriptor[1048970], 64LL); v20 = 1; current_page_rest = translog_get_current_page_rest(); v14 = *v23 - (current_page_rest - a7); v13 = v14 / (unsigned __int16)word_4793E6; v15 = v14 % (unsigned __int16)word_4793E6; if ( v15 + 1 == (unsigned __int16)word_4793E6 ) { v11 = 1; v15 = 1; } if ( v15 ) v10 = v15 + 3; else v10 = 0; v17 = (char)translog_advance_pointer(v11 + v13, v10, v18); *(_QWORD *)((char *)&loc_100000 + qword_C7A038) = *v27; translog_unlock(); if ( v22 ) { if ( !v17 ) v17 = translog_buffer_flush(v22); translog_buffer_unlock(v22); } if ( v17 ) { return 1; } else { translog_write_variable_record_1group_header(v23, v26, v24, a7, v29); translog_write_parts_on_page(&v21, v18, current_page_rest, v23); for ( i = 0; i < v13; ++i ) { if ( (unsigned __int8)translog_write_variable_record_chunk2_page(v23, &v21, v18) ) goto LABEL_26; } if ( (!v11 || !(unsigned __int8)translog_write_variable_record_chunk3_page( v23, (unsigned __int16)(word_4793E6 - 2), &v21, v18)) && !(unsigned __int8)translog_write_variable_record_chunk3_page(v23, (unsigned __int16)v15, &v21, v18) ) { translog_buffer_lock(v19); translog_buffer_decrease_writers(v19); used_buffs_register_unlock(v18, v19); translog_buffer_unlock(v19); return 0; } LABEL_26: used_buffs_urgent_unlock(v18); return 1; } } }
translog_write_variable_record_1group: PUSH RBP MOV RBP,RSP SUB RSP,0xc0 MOV AX,CX MOV RCX,qword ptr [RBP + 0x20] MOV RCX,qword ptr [RBP + 0x18] MOV CX,word ptr [RBP + 0x10] MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x20],RDI MOV dword ptr [RBP + -0x24],ESI MOV qword ptr [RBP + -0x30],RDX MOV word ptr [RBP + -0x32],AX MOV qword ptr [RBP + -0x40],R8 MOV qword ptr [RBP + -0x48],R9 MOV dword ptr [RBP + -0x94],0x0 MOV dword ptr [RBP + -0xa8],0x0 CMP qword ptr [RBP + -0x48],0x0 JZ 0x0015a04b JMP 0x0015a04b LAB_0015a04b: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [0x00d7a008] MOV qword ptr [RBP + -0x50],RSI CALL 0x0015b3c0 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RAX] MOV ECX,0x1 CALL 0x0015b3f0 MOVSX EAX,AL CMP EAX,0x0 JNZ 0x0015a0e0 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x5781c0] IMUL RCX,RCX,0x48 ADD RAX,RCX CMP qword ptr [RAX + 0x10],0x0 JZ 0x0015a109 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x5781c0] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x10] MOV EDI,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RBP + 0x18] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + 0x20] CALL RAX MOVSX EAX,AL CMP EAX,0x0 JZ 0x0015a109 LAB_0015a0e0: CALL 0x001501b0 CMP qword ptr [RBP + -0x48],0x0 JZ 0x0015a0fe MOV RDI,qword ptr [RBP + -0x48] CALL 0x00156370 MOV RDI,qword ptr [RBP + -0x48] CALL 0x00150180 LAB_0015a0fe: JMP 0x0015a100 LAB_0015a100: MOV byte ptr [RBP + -0x13],0x1 JMP 0x0015a394 LAB_0015a109: LEA RDI,[RBP + -0x90] LEA RSI,[0x5793c0] ADD RSI,0x800c50 MOV EDX,0x40 CALL 0x0012a090 MOV byte ptr [RBP + -0x59],0x1 CALL 0x0015be50 MOV dword ptr [RBP + -0xa4],EAX MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0xa4] MOVZX EDX,word ptr [RBP + 0x10] SUB ECX,EDX SUB EAX,ECX MOV dword ptr [RBP + -0x9c],EAX MOV EAX,dword ptr [RBP + -0x9c] MOVZX ECX,word ptr [0x005793e6] XOR EDX,EDX DIV ECX MOV dword ptr [RBP + -0xa0],EAX MOV EAX,dword ptr [RBP + -0x9c] MOVZX ECX,word ptr [0x005793e6] XOR EDX,EDX DIV ECX MOV dword ptr [RBP + -0x9c],EDX MOV EAX,dword ptr [RBP + -0x9c] ADD EAX,0x1 MOVZX ECX,word ptr [0x005793e6] CMP EAX,ECX JNZ 0x0015a1ab JMP 0x0015a195 LAB_0015a195: JMP 0x0015a197 LAB_0015a197: MOV dword ptr [RBP + -0xa8],0x1 MOV dword ptr [RBP + -0x9c],0x1 LAB_0015a1ab: JMP 0x0015a1ad LAB_0015a1ad: JMP 0x0015a1af LAB_0015a1af: MOV EAX,dword ptr [RBP + -0xa0] ADD EAX,dword ptr [RBP + -0xa8] MOV dword ptr [RBP + -0xac],EAX CMP dword ptr [RBP + -0x9c],0x0 JZ 0x0015a1db MOV EAX,dword ptr [RBP + -0x9c] ADD EAX,0x3 MOV dword ptr [RBP + -0xb0],EAX JMP 0x0015a1e5 LAB_0015a1db: XOR EAX,EAX MOV dword ptr [RBP + -0xb0],EAX JMP 0x0015a1e5 LAB_0015a1e5: MOV EDI,dword ptr [RBP + -0xac] MOV EAX,dword ptr [RBP + -0xb0] LEA RDX,[RBP + -0x90] MOVZX ESI,AX CALL 0x0015b870 MOVSX EAX,AL MOV dword ptr [RBP + -0x94],EAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [0x00d7a038] MOV qword ptr [RAX + 0x100000],RCX JMP 0x0015a220 LAB_0015a220: CALL 0x001501b0 CMP qword ptr [RBP + -0x48],0x0 JZ 0x0015a250 CMP dword ptr [RBP + -0x94],0x0 JNZ 0x0015a247 MOV RDI,qword ptr [RBP + -0x48] CALL 0x00156370 MOVSX EAX,AL MOV dword ptr [RBP + -0x94],EAX LAB_0015a247: MOV RDI,qword ptr [RBP + -0x48] CALL 0x00150180 LAB_0015a250: CMP dword ptr [RBP + -0x94],0x0 JZ 0x0015a268 JMP 0x0015a25b LAB_0015a25b: JMP 0x0015a25d LAB_0015a25d: JMP 0x0015a25f LAB_0015a25f: MOV byte ptr [RBP + -0x13],0x1 JMP 0x0015a394 LAB_0015a268: MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RBP + -0x24] MOV CX,word ptr [RBP + -0x32] MOV AX,word ptr [RBP + 0x10] LEA R8,[RBP + -0x12] MOVZX EDX,CX MOVZX ECX,AX CALL 0x0015b2f0 MOV EDX,dword ptr [RBP + -0xa4] MOV RCX,qword ptr [RBP + -0x40] LEA RDI,[RBP + -0x50] LEA RSI,[RBP + -0x90] CALL 0x0015b590 JMP 0x0015a2a2 LAB_0015a2a2: MOV dword ptr [RBP + -0x98],0x0 LAB_0015a2ac: MOV EAX,dword ptr [RBP + -0x98] CMP EAX,dword ptr [RBP + -0xa0] JNC 0x0015a2ee MOV RDI,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x50] LEA RDX,[RBP + -0x90] CALL 0x0015bbf0 CMP AL,0x0 JZ 0x0015a2d7 JMP 0x0015a384 LAB_0015a2d7: JMP 0x0015a2d9 LAB_0015a2d9: JMP 0x0015a2db LAB_0015a2db: JMP 0x0015a2dd LAB_0015a2dd: MOV EAX,dword ptr [RBP + -0x98] ADD EAX,0x1 MOV dword ptr [RBP + -0x98],EAX JMP 0x0015a2ac LAB_0015a2ee: CMP dword ptr [RBP + -0xa8],0x0 JZ 0x0015a328 MOV RDI,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [0x005793e6] SUB EAX,0x2 LEA RDX,[RBP + -0x50] LEA RCX,[RBP + -0x90] MOVZX ESI,AX CALL 0x0015bc60 CMP AL,0x0 JZ 0x0015a31e JMP 0x0015a384 LAB_0015a31e: JMP 0x0015a320 LAB_0015a320: JMP 0x0015a322 LAB_0015a322: JMP 0x0015a324 LAB_0015a324: JMP 0x0015a326 LAB_0015a326: JMP 0x0015a328 LAB_0015a328: MOV RDI,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBP + -0x9c] LEA RDX,[RBP + -0x50] LEA RCX,[RBP + -0x90] MOVZX ESI,AX CALL 0x0015bc60 CMP AL,0x0 JZ 0x0015a34b JMP 0x0015a384 LAB_0015a34b: JMP 0x0015a34d LAB_0015a34d: JMP 0x0015a34f LAB_0015a34f: MOV RDI,qword ptr [RBP + -0x68] CALL 0x00150140 MOV RDI,qword ptr [RBP + -0x68] CALL 0x0015bd40 LEA RDI,[RBP + -0x90] MOV RSI,qword ptr [RBP + -0x68] CALL 0x0015bd90 MOV RDI,qword ptr [RBP + -0x68] CALL 0x00150180 JMP 0x0015a37c LAB_0015a37c: JMP 0x0015a37e LAB_0015a37e: MOV byte ptr [RBP + -0x13],0x0 JMP 0x0015a394 LAB_0015a384: LEA RDI,[RBP + -0x90] CALL 0x0015bdc0 MOV byte ptr [RBP + -0x13],0x1 LAB_0015a394: MOV AL,byte ptr [RBP + -0x13] MOV byte ptr [RBP + -0xb1],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0015a3be MOV AL,byte ptr [RBP + -0xb1] ADD RSP,0xc0 POP RBP RET LAB_0015a3be: CALL 0x0012a270
int8 translog_write_variable_record_1group (long *param_1,uint param_2,int8 param_3,int2 param_4,int *param_5, long param_6,ushort param_7,int8 param_8,int8 param_9) { char cVar1; int iVar2; uint uVar3; long in_FS_OFFSET; bool bVar4; uint local_b8; uint local_b0; uint local_a4; uint local_a0; int1 local_98 [40]; int8 local_70; int1 local_61; int8 local_58; long local_50; int *local_48; int2 local_3a; int8 local_38; uint local_2c; long *local_28; int1 local_1b; int1 local_1a [10]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_58 = DAT_00d7a008; local_50 = param_6; local_48 = param_5; local_3a = param_4; local_38 = param_3; local_2c = param_2; local_28 = param_1; set_lsn(param_1); cVar1 = translog_set_lsn_for_files (*local_28 >> 0x20 & 0xffffffff,*local_28 >> 0x20 & 0xffffffff,*local_28,1); if ((cVar1 == '\0') && ((*(long *)(log_record_type_descriptor + (ulong)local_2c * 0x48 + 0x10) == 0 || (cVar1 = (**(code **)(log_record_type_descriptor + (ulong)local_2c * 0x48 + 0x10)) (local_2c,param_8,local_38,local_28,param_9), cVar1 == '\0')))) { memcpy(local_98,&DAT_00d7a010,0x40); local_61 = 1; iVar2 = translog_get_current_page_rest(); local_a4 = *local_48 - (iVar2 - (uint)param_7); uVar3 = local_a4 / DAT_005793e6; local_a4 = local_a4 % (uint)DAT_005793e6; bVar4 = local_a4 + 1 == (uint)DAT_005793e6; if (bVar4) { local_a4 = 1; } local_b0 = (uint)bVar4; if (local_a4 == 0) { local_b8 = 0; } else { local_b8 = local_a4 + 3; } cVar1 = translog_advance_pointer(uVar3 + local_b0,local_b8 & 0xffff,local_98); *(long *)(DAT_00d7a038 + 0x100000) = *local_28; translog_unlock(); if (local_50 != 0) { if (cVar1 == '\0') { cVar1 = translog_buffer_flush(local_50); } translog_buffer_unlock(local_50); } if (cVar1 == '\0') { translog_write_variable_record_1group_header(local_48,local_2c,local_3a,param_7,local_1a); translog_write_parts_on_page(&local_58,local_98,iVar2,local_48); for (local_a0 = 0; local_a0 < uVar3; local_a0 = local_a0 + 1) { cVar1 = translog_write_variable_record_chunk2_page(local_48,&local_58,local_98); if (cVar1 != '\0') goto LAB_0015a384; } if (((local_b0 == 0) || (cVar1 = translog_write_variable_record_chunk3_page (local_48,DAT_005793e6 - 2,&local_58,local_98), cVar1 == '\0')) && (cVar1 = translog_write_variable_record_chunk3_page(local_48,local_a4,&local_58,local_98), cVar1 == '\0')) { translog_buffer_lock(local_70); translog_buffer_decrease_writers(local_70); used_buffs_register_unlock(local_98,local_70); translog_buffer_unlock(local_70); local_1b = 0; } else { LAB_0015a384: used_buffs_urgent_unlock(local_98); local_1b = 1; } } else { local_1b = 1; } } else { translog_unlock(); if (local_50 != 0) { translog_buffer_flush(local_50); translog_buffer_unlock(local_50); } local_1b = 1; } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_1b); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
33,397
translog_scanner_init
eloqsql/storage/maria/ma_loghandler.c
my_bool translog_scanner_init(LSN lsn, my_bool fixed_horizon, TRANSLOG_SCANNER_DATA *scanner, my_bool use_direct) { DBUG_ENTER("translog_scanner_init"); DBUG_PRINT("enter", ("Scanner: %p LSN: " LSN_FMT, scanner, LSN_IN_PARTS(lsn))); DBUG_ASSERT(translog_status == TRANSLOG_OK || translog_status == TRANSLOG_READONLY); scanner->page_offset= LSN_OFFSET(lsn) % TRANSLOG_PAGE_SIZE; scanner->fixed_horizon= fixed_horizon; scanner->use_direct_link= use_direct; scanner->direct_link= NULL; scanner->horizon= translog_get_horizon(); DBUG_PRINT("info", ("horizon: " LSN_FMT, LSN_IN_PARTS(scanner->horizon))); /* lsn < horizon */ DBUG_ASSERT(lsn <= scanner->horizon); scanner->page_addr= lsn; scanner->page_addr-= scanner->page_offset; /*decrease offset */ if (translog_scanner_set_last_page(scanner)) DBUG_RETURN(1); if (translog_scanner_get_page(scanner)) DBUG_RETURN(1); DBUG_RETURN(0); }
O0
c
translog_scanner_init: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %cl, %al movb %sil, %cl movq %rdi, -0x10(%rbp) movb %cl, -0x11(%rbp) movq %rdx, -0x20(%rbp) movb %al, -0x21(%rbp) jmp 0x3257d jmp 0x3257f jmp 0x32581 movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x10(%rbp), %rax andq $0x1fff, %rax # imm = 0x1FFF movl %eax, %ecx movq -0x20(%rbp), %rax movl %ecx, 0x2028(%rax) movb -0x11(%rbp), %cl movq -0x20(%rbp), %rax movb %cl, 0x202c(%rax) movb -0x21(%rbp), %cl movq -0x20(%rbp), %rax movb %cl, 0x202d(%rax) movq -0x20(%rbp), %rax movq $0x0, 0x2020(%rax) callq 0x34410 movq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x2008(%rax) jmp 0x325df jmp 0x325e1 jmp 0x325e3 movq -0x10(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x2000(%rax) movq -0x20(%rbp), %rax movl 0x2028(%rax), %eax movl %eax, %edx movq -0x20(%rbp), %rax movq 0x2000(%rax), %rcx subq %rdx, %rcx movq %rcx, 0x2000(%rax) movq -0x20(%rbp), %rdi callq 0x34460 cmpb $0x0, %al je 0x32628 jmp 0x32622 movb $0x1, -0x1(%rbp) jmp 0x32643 movq -0x20(%rbp), %rdi callq 0x34530 cmpb $0x0, %al je 0x3263d jmp 0x32637 movb $0x1, -0x1(%rbp) jmp 0x32643 jmp 0x3263f movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
translog_scanner_init: push rbp mov rbp, rsp sub rsp, 30h mov al, cl mov cl, sil mov [rbp+var_10], rdi mov [rbp+var_11], cl mov [rbp+var_20], rdx mov [rbp+var_21], al jmp short $+2 loc_3257D: jmp short $+2 loc_3257F: jmp short $+2 loc_32581: mov rax, 0FFFFFFFFh and rax, [rbp+var_10] and rax, 1FFFh mov ecx, eax mov rax, [rbp+var_20] mov [rax+2028h], ecx mov cl, [rbp+var_11] mov rax, [rbp+var_20] mov [rax+202Ch], cl mov cl, [rbp+var_21] mov rax, [rbp+var_20] mov [rax+202Dh], cl mov rax, [rbp+var_20] mov qword ptr [rax+2020h], 0 call translog_get_horizon mov rcx, rax mov rax, [rbp+var_20] mov [rax+2008h], rcx jmp short $+2 loc_325DF: jmp short $+2 loc_325E1: jmp short $+2 loc_325E3: mov rcx, [rbp+var_10] mov rax, [rbp+var_20] mov [rax+2000h], rcx mov rax, [rbp+var_20] mov eax, [rax+2028h] mov edx, eax mov rax, [rbp+var_20] mov rcx, [rax+2000h] sub rcx, rdx mov [rax+2000h], rcx mov rdi, [rbp+var_20] call translog_scanner_set_last_page cmp al, 0 jz short loc_32628 jmp short $+2 loc_32622: mov [rbp+var_1], 1 jmp short loc_32643 loc_32628: mov rdi, [rbp+var_20] call translog_scanner_get_page cmp al, 0 jz short loc_3263D jmp short $+2 loc_32637: mov [rbp+var_1], 1 jmp short loc_32643 loc_3263D: jmp short $+2 loc_3263F: mov [rbp+var_1], 0 loc_32643: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
bool translog_scanner_init(long long a1, char a2, long long a3, char a4) { *(_DWORD *)(a3 + 8232) = a1 & 0x1FFF; *(_BYTE *)(a3 + 8236) = a2; *(_BYTE *)(a3 + 8237) = a4; *(_QWORD *)(a3 + 8224) = 0LL; *(_QWORD *)(a3 + 8200) = translog_get_horizon(); *(_QWORD *)(a3 + 0x2000) = a1; *(_QWORD *)(a3 + 0x2000) -= *(unsigned int *)(a3 + 8232); return (unsigned __int8)translog_scanner_set_last_page(a3) || (unsigned __int8)translog_scanner_get_page(a3) != 0; }
translog_scanner_init: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AL,CL MOV CL,SIL MOV qword ptr [RBP + -0x10],RDI MOV byte ptr [RBP + -0x11],CL MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RBP + -0x21],AL JMP 0x0013257d LAB_0013257d: JMP 0x0013257f LAB_0013257f: JMP 0x00132581 LAB_00132581: MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x10] AND RAX,0x1fff MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x2028],ECX MOV CL,byte ptr [RBP + -0x11] MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x202c],CL MOV CL,byte ptr [RBP + -0x21] MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x202d],CL MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x2020],0x0 CALL 0x00134410 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x2008],RCX JMP 0x001325df LAB_001325df: JMP 0x001325e1 LAB_001325e1: JMP 0x001325e3 LAB_001325e3: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x2000],RCX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x2028] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x2000] SUB RCX,RDX MOV qword ptr [RAX + 0x2000],RCX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00134460 CMP AL,0x0 JZ 0x00132628 JMP 0x00132622 LAB_00132622: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00132643 LAB_00132628: MOV RDI,qword ptr [RBP + -0x20] CALL 0x00134530 CMP AL,0x0 JZ 0x0013263d JMP 0x00132637 LAB_00132637: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00132643 LAB_0013263d: JMP 0x0013263f LAB_0013263f: MOV byte ptr [RBP + -0x1],0x0 LAB_00132643: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 translog_scanner_init(int8 param_1,int1 param_2,long param_3,int1 param_4) { char cVar1; int8 uVar2; int1 local_9; *(uint *)(param_3 + 0x2028) = (uint)param_1 & 0x1fff; *(int1 *)(param_3 + 0x202c) = param_2; *(int1 *)(param_3 + 0x202d) = param_4; *(int8 *)(param_3 + 0x2020) = 0; uVar2 = translog_get_horizon(); *(int8 *)(param_3 + 0x2008) = uVar2; *(int8 *)(param_3 + 0x2000) = param_1; *(ulong *)(param_3 + 0x2000) = *(long *)(param_3 + 0x2000) - (ulong)*(uint *)(param_3 + 0x2028); cVar1 = translog_scanner_set_last_page(param_3); if (cVar1 == '\0') { cVar1 = translog_scanner_get_page(param_3); if (cVar1 == '\0') { local_9 = 0; } else { local_9 = 1; } } else { local_9 = 1; } return local_9; }
33,398
void sapphire_plugins::shared::setTooltipValues<sapphire_plugins::elastika::ElastikaEditor>(sapphire_plugins::elastika::ElastikaEditor*, unsigned int)
sapphire-plugins/src/shared/editor_interactions.h
inline void setTooltipValues(Editor *e, uint32_t id) { auto &par = e->patchCopy.paramMap.at(id); e->tooltip->title = par->meta.name; auto oval = par->meta.valueToString(par->value); if (oval.has_value()) e->tooltip->value = oval.value(); else e->tooltip->value = "err"; e->repaint(); }
O3
c
void sapphire_plugins::shared::setTooltipValues<sapphire_plugins::elastika::ElastikaEditor>(sapphire_plugins::elastika::ElastikaEditor*, unsigned int): pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx leaq 0xc(%rsp), %rax movl %esi, (%rax) addq $0x110, %rdi # imm = 0x110 movq %rax, %rsi callq 0xcbe1c testq %rax, %rax je 0xdf400 movq %rax, %r14 movq 0x10(%rax), %rsi addq $0x10, %rsi movl $0xf0, %edi addq 0x14b8(%rbx), %rdi callq 0x7ad60 movq 0x10(%r14), %rsi movss (%rsi), %xmm0 addq $0x8, %rsi leaq 0x8(%rsp), %rdx movl $0x0, (%rdx) leaq 0x10(%rsp), %rdi callq 0xcde48 leaq 0x30(%rsp), %r14 movq 0x14b8(%rbx), %rax leaq 0x110(%rax), %rdi cmpb $0x1, (%r14) jne 0xdf3af leaq 0x10(%rsp), %rsi callq 0x7ad60 jmp 0xdf3ca movq 0x118(%rax), %rdx leaq 0x296230(%rip), %rcx # 0x3755ed movl $0x3, %r8d xorl %esi, %esi callq 0x79c30 movq %rbx, %rdi callq 0x107790 cmpb $0x1, 0x30(%rsp) jne 0xdf3f8 leaq 0x20(%rsp), %rax movb $0x0, 0x10(%rax) movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xdf3f8 movq 0x20(%rsp), %rsi incq %rsi callq 0x79200 addq $0x38, %rsp popq %rbx popq %r14 retq leaq 0x29485e(%rip), %rdi # 0x373c65 callq 0x79f00 movq %rax, %rbx cmpb $0x1, 0x30(%rsp) jne 0xdf423 leaq 0x10(%rsp), %rsi movq %r14, %rdi callq 0x7b1d2 movq %rbx, %rdi callq 0x79f90 nop
_ZN16sapphire_plugins6shared16setTooltipValuesINS_8elastika14ElastikaEditorEEEvPT_j: push r14 push rbx sub rsp, 38h mov rbx, rdi lea rax, [rsp+48h+var_3C] mov [rax], esi add rdi, 110h mov rsi, rax call _ZNSt10_HashtableIjSt4pairIKjPN16sapphire_plugins6shared12ParamWithLagEESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<uint,std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(uint const&) test rax, rax jz loc_DF400 mov r14, rax mov rsi, [rax+10h] add rsi, 10h mov edi, 0F0h add rdi, [rbx+14B8h] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) mov rsi, [r14+10h] movss xmm0, dword ptr [rsi] add rsi, 8 lea rdx, [rsp+48h+var_40] mov dword ptr [rdx], 0 lea rdi, [rsp+48h+var_38] call _ZNK3sst12basic_blocks6params13ParamMetaData13valueToStringB5cxx11EfRKNS2_12FeatureStateE; sst::basic_blocks::params::ParamMetaData::valueToString(float,sst::basic_blocks::params::ParamMetaData::FeatureState const&) lea r14, [rsp+48h+var_18] mov rax, [rbx+14B8h] lea rdi, [rax+110h] cmp byte ptr [r14], 1 jnz short loc_DF3AF lea rsi, [rsp+48h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) jmp short loc_DF3CA loc_DF3AF: mov rdx, [rax+118h] lea rcx, aErr; "err" mov r8d, 3 xor esi, esi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) loc_DF3CA: mov rdi, rbx; this call _ZN4juce9Component7repaintEv; juce::Component::repaint(void) cmp [rsp+48h+var_18], 1 jnz short loc_DF3F8 lea rax, [rsp+48h+var_28] mov byte ptr [rax+10h], 0 mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_DF3F8 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DF3F8: add rsp, 38h pop rbx pop r14 retn loc_DF400: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) mov rbx, rax cmp [rsp+48h+var_18], 1 jnz short loc_DF423 lea rsi, [rsp+48h+var_38] mov rdi, r14 call _ZN16sapphire_plugins6shared16setTooltipValuesINS_8elastika14ElastikaEditorEEEvPT_j_cold_1; sapphire_plugins::shared::setTooltipValues<sapphire_plugins::elastika::ElastikaEditor>(sapphire_plugins::elastika::ElastikaEditor *,uint) [clone] loc_DF423: mov rdi, rbx call __Unwind_Resume
void sapphire_plugins::shared::setTooltipValues<sapphire_plugins::elastika::ElastikaEditor>( juce::Component *this, unsigned int a2) { long long *v3; // rax long long *v4; // r14 unsigned int *v5; // rsi __m128 v6; // xmm0 long long v7; // rax long long v8; // rdi int v9; // [rsp+8h] [rbp-40h] BYREF unsigned int v10; // [rsp+Ch] [rbp-3Ch] BYREF void *v11[2]; // [rsp+10h] [rbp-38h] BYREF long long v12; // [rsp+20h] [rbp-28h] BYREF char v13; // [rsp+30h] [rbp-18h] v10 = a2; v3 = std::_Hashtable<unsigned int,std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( (long long *)this + 34, &v10); if ( !v3 ) std::__throw_out_of_range("_Map_base::at"); v4 = v3; std::string::_M_assign(*((_QWORD *)this + 663) + 240LL, v3[2] + 16); v5 = (unsigned int *)v4[2]; v6 = (__m128)*v5; v9 = 0; sst::basic_blocks::params::ParamMetaData::valueToString[abi:cxx11]((long long)v11, (long long)(v5 + 2), &v9, v6); v7 = *((_QWORD *)this + 663); v8 = v7 + 272; if ( v13 == 1 ) std::string::_M_assign(v8, v11); else std::string::_M_replace(v8, 0LL, *(_QWORD *)(v7 + 280), "err", 3LL); juce::Component::repaint(this); if ( v13 == 1 ) { v13 = 0; if ( v11[0] != &v12 ) operator delete(v11[0], v12 + 1); } }
setTooltipValues<sapphire_plugins::elastika::ElastikaEditor>: PUSH R14 PUSH RBX SUB RSP,0x38 MOV RBX,RDI LEA RAX,[RSP + 0xc] MOV dword ptr [RAX],ESI ADD RDI,0x110 MOV RSI,RAX CALL 0x001cbe1c TEST RAX,RAX JZ 0x001df400 MOV R14,RAX MOV RSI,qword ptr [RAX + 0x10] ADD RSI,0x10 MOV EDI,0xf0 ADD RDI,qword ptr [RBX + 0x14b8] CALL 0x0017ad60 MOV RSI,qword ptr [R14 + 0x10] MOVSS XMM0,dword ptr [RSI] ADD RSI,0x8 LEA RDX,[RSP + 0x8] MOV dword ptr [RDX],0x0 LEA RDI,[RSP + 0x10] CALL 0x001cde48 LEA R14,[RSP + 0x30] MOV RAX,qword ptr [RBX + 0x14b8] LEA RDI,[RAX + 0x110] CMP byte ptr [R14],0x1 JNZ 0x001df3af LAB_001df3a3: LEA RSI,[RSP + 0x10] CALL 0x0017ad60 JMP 0x001df3ca LAB_001df3af: MOV RDX,qword ptr [RAX + 0x118] LEA RCX,[0x4755ed] MOV R8D,0x3 XOR ESI,ESI CALL 0x00179c30 LAB_001df3ca: MOV RDI,RBX CALL 0x00207790 LAB_001df3d2: CMP byte ptr [RSP + 0x30],0x1 JNZ 0x001df3f8 LEA RAX,[RSP + 0x20] MOV byte ptr [RAX + 0x10],0x0 MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001df3f8 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x00179200 LAB_001df3f8: ADD RSP,0x38 POP RBX POP R14 RET LAB_001df400: LEA RDI,[0x473c65] CALL 0x00179f00
/* void sapphire_plugins::shared::setTooltipValues<sapphire_plugins::elastika::ElastikaEditor>(sapphire_plugins::elastika::ElastikaEditor*, unsigned int) */ void sapphire_plugins::shared::setTooltipValues<sapphire_plugins::elastika::ElastikaEditor> (ElastikaEditor *param_1,uint param_2) { string *psVar1; long lVar2; uint local_3c; long *local_38 [2]; long local_28 [2]; char local_18; local_3c = param_2; lVar2 = std:: _Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(param_1 + 0x110),&local_3c); if (lVar2 != 0) { std::__cxx11::string::_M_assign((string *)(*(long *)(param_1 + 0x14b8) + 0xf0)); sst::basic_blocks::params::ParamMetaData::valueToString_abi_cxx11_ (**(float **)(lVar2 + 0x10),(FeatureState *)local_38); psVar1 = (string *)(*(long *)(param_1 + 0x14b8) + 0x110); if (local_18 == '\x01') { /* try { // try from 001df3a3 to 001df3d1 has its CatchHandler @ 001df40c */ std::__cxx11::string::_M_assign(psVar1); } else { std::__cxx11::string::_M_replace ((ulong)psVar1,0,*(char **)(*(long *)(param_1 + 0x14b8) + 0x118),0x4755ed); } juce::Component::repaint((Component *)param_1); if (local_18 == '\x01') { local_18 = 0; if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } } return; } /* WARNING: Subroutine does not return */ std::__throw_out_of_range("_Map_base::at"); }
33,399
SDL_CreateWindow
SDL3Lite/source/SDL3/SDL_Window.cpp
SDL_Window* SDL_CreateWindow(const char* title, int w, int h, size_t flags) { return SDL_CreateWindowImplementation( SDL::GetApplication().GetWindows(), SDL::GetApplication().GetOpenGLAttributes(), SDL::GetApplication().GetResult(), SDL::GetApplication().GetEventHandler(), title, w, h, flags); }
O3
cpp
SDL_CreateWindow: subq $0x48, %rsp movq %rdi, 0x40(%rsp) movl %esi, 0x3c(%rsp) movl %edx, 0x38(%rsp) movq %rcx, 0x30(%rsp) callq 0x22140 movq %rax, %rdi callq 0x22240 movq %rax, 0x18(%rsp) callq 0x22140 movq %rax, %rdi callq 0x22390 movq %rax, 0x20(%rsp) callq 0x22140 movq %rax, %rdi callq 0x213f0 movq %rax, 0x28(%rsp) callq 0x22140 movq %rax, %rdi callq 0x215f0 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movq %rax, %rcx movq 0x40(%rsp), %r8 movl 0x3c(%rsp), %r9d movl 0x38(%rsp), %r10d movq 0x30(%rsp), %rax movl %r10d, (%rsp) movq %rax, 0x8(%rsp) callq 0x21300 addq $0x48, %rsp retq nopw %cs:(%rax,%rax)
SDL_CreateWindow: sub rsp, 48h mov qword ptr [rsp+48h+var_8], rdi; int mov [rsp+48h+var_C], esi mov [rsp+48h+var_10], edx; int mov [rsp+48h+var_18], rcx; int call __ZN3SDL14GetApplicationEv; SDL::GetApplication(void) mov rdi, rax; this call __ZN3SDL11Application10GetWindowsEv; SDL::Application::GetWindows(void) mov [rsp+48h+var_30], rax; int call __ZN3SDL14GetApplicationEv; SDL::GetApplication(void) mov rdi, rax; this call __ZN3SDL11Application19GetOpenGLAttributesEv; SDL::Application::GetOpenGLAttributes(void) mov [rsp+48h+var_28], rax; void * call __ZN3SDL14GetApplicationEv; SDL::GetApplication(void) mov rdi, rax; this call __ZN3SDL11Application9GetResultEv; SDL::Application::GetResult(void) mov qword ptr [rsp+48h+var_20], rax; int call __ZN3SDL14GetApplicationEv; SDL::GetApplication(void) mov rdi, rax; this call __ZN3SDL11Application15GetEventHandlerEv; SDL::Application::GetEventHandler(void) mov rdi, [rsp+48h+var_30]; SDL::MainWindow * mov rsi, [rsp+48h+var_28]; SDL_Window * mov rdx, qword ptr [rsp+48h+var_20]; int mov rcx, rax; int mov r8, qword ptr [rsp+48h+var_8]; int mov r9d, [rsp+48h+var_C] mov r10d, [rsp+48h+var_10] mov rax, [rsp+48h+var_18] mov [rsp+48h+var_48], r10d; int mov [rsp+48h+var_40], rax; __int64 call __Z30SDL_CreateWindowImplementationRSt6vectorIP10SDL_WindowSaIS1_EERN3SDL16OpenGLAttributesERNS5_6ResultERNS5_12EventHandlerEPKciim; SDL_CreateWindowImplementation(std::vector<SDL_Window *> &,SDL::OpenGLAttributes &,SDL::Result &,SDL::EventHandler &,char const*,int,int,ulong) add rsp, 48h retn
SDL_CreateWindow: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV dword ptr [RSP + 0x3c],ESI MOV dword ptr [RSP + 0x38],EDX MOV qword ptr [RSP + 0x30],RCX CALL 0x00122140 MOV RDI,RAX CALL 0x00122240 MOV qword ptr [RSP + 0x18],RAX CALL 0x00122140 MOV RDI,RAX CALL 0x00122390 MOV qword ptr [RSP + 0x20],RAX CALL 0x00122140 MOV RDI,RAX CALL 0x001213f0 MOV qword ptr [RSP + 0x28],RAX CALL 0x00122140 MOV RDI,RAX CALL 0x001215f0 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,RAX MOV R8,qword ptr [RSP + 0x40] MOV R9D,dword ptr [RSP + 0x3c] MOV R10D,dword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x30] MOV dword ptr [RSP],R10D MOV qword ptr [RSP + 0x8],RAX CALL 0x00121300 ADD RSP,0x48 RET
void SDL_CreateWindow(char *param_1,int param_2,int param_3,ulong param_4) { Application *pAVar1; vector *pvVar2; OpenGLAttributes *pOVar3; Result *pRVar4; EventHandler *pEVar5; pAVar1 = (Application *)SDL::GetApplication(); pvVar2 = (vector *)SDL::Application::GetWindows(pAVar1); pAVar1 = (Application *)SDL::GetApplication(); pOVar3 = (OpenGLAttributes *)SDL::Application::GetOpenGLAttributes(pAVar1); pAVar1 = (Application *)SDL::GetApplication(); pRVar4 = (Result *)SDL::Application::GetResult(pAVar1); pAVar1 = (Application *)SDL::GetApplication(); pEVar5 = (EventHandler *)SDL::Application::GetEventHandler(pAVar1); SDL_CreateWindowImplementation(pvVar2,pOVar3,pRVar4,pEVar5,param_1,param_2,param_3,param_4); return; }