; assembly | /* r2dec pseudo code output */ | /* bdlc_flathashmap.t/none @ 0x44e7e0 */ | #include | ; (fcn) sym.bsl::pair_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_____int__BloombergLP::bdlc::FlatHashTable_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_____bsl::pair_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_____int___BloombergLP::bdlc::FlatHashMap_EntryUtil_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_____int__bsl::pair_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_____int_____BloombergLP::bslh::FibonacciBadHashWrapper_bsl::hash_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_________bsl::equal_to_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_______::operator___bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char______bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char____ () | int64_t bsl::pair_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_int_BloombergLP::bdlc::FlatHashTable_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_bsl::pair_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_int_BloombergLP::bdlc::FlatHashMap_EntryUtil_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_int_bsl::pair_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_int_BloombergLP::bslh::FibonacciBadHashWrapper_bsl::hash_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_bsl::equal_to_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_::operator_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_ (void * arg2, size_t arg1) { | int64_t var_8h; | signed int64_t var_10h; | int64_t var_18h; | int64_t var_20h; | int64_t var_28h; | int64_t var_e8h; | int64_t var_148h; | int64_t var_150h; | rsi = arg2; | rdi = arg1; | /* bsl::pair, bsl::allocator >, int>& BloombergLP::bdlc::FlatHashTable, bsl::allocator >, bsl::pair, bsl::allocator >, int>, BloombergLP::bdlc::FlatHashMap_EntryUtil, bsl::allocator >, int, bsl::pair, bsl::allocator >, int> >, BloombergLP::bslh::FibonacciBadHashWrapper, bsl::allocator > > >, bsl::equal_to, bsl::allocator > > >::operator[], bsl::allocator > >(bsl::basic_string, bsl::allocator >&&) */ 0x0044e7e0 push rbp | 0x0044e7e1 push r15 | 0x0044e7e3 push r14 | 0x0044e7e5 push r13 | 0x0044e7e7 push r12 | 0x0044e7e9 push rbx | 0x0044e7ea sub rsp, 0x158 | 0x0044e7f1 mov r12, rsi | r12 = rsi; 0x0044e7f4 mov r14, rdi | r14 = rdi; 0x0044e7f7 mov qword [rsp + 0x148], 0 | *((rsp + 0x148)) = 0; 0x0044e803 mov byte [rsp + 0x150], 0 | *((rsp + 0x150)) = 0; 0x0044e80b movdqa xmm0, xmmword [rip + 0x3968d] | __asm ("movdqa xmm0, xmmword [0x00487ea0]"); 0x0044e813 movdqu xmmword [rsp + 0xe8], xmm0 | __asm ("movdqu xmmword [rsp + 0xe8], xmm0"); 0x0044e81c mov rdx, qword [rsi + 0x18] | rdx = *((rsi + 0x18)); 0x0044e820 cmp qword [rsi + 0x20], 0x17 | | if (*((rsi + 0x20)) != 0x17) { 0x0044e825 je 0x44e82b | 0x0044e827 mov rsi, qword [r12] | | } 0x0044e82b lea rbx, [rsp + 0x28] | rbx = rsp + 0x28; 0x0044e830 mov rdi, rbx | 0x0044e833 call 0x45f9d0 | BloombergLP::bslh::SpookyHashAlgorithmImp::update(voidconst*,unsigned long) (rbx, *(r12), rdx); 0x0044e838 mov rax, qword [r12 + 0x18] | rax = *((r12 + 0x18)); 0x0044e83d mov qword [rsp + 0x10], rax | *((rsp + 0x10)) = rax; 0x0044e842 lea rsi, [rsp + 0x10] | 0x0044e847 mov edx, 8 | 0x0044e84c mov rdi, rbx | 0x0044e84f call 0x45f9d0 | BloombergLP::bslh::SpookyHashAlgorithmImp::update(voidconst*,unsigned long) (rbx, rsp + 0x10, 8); 0x0044e854 lea rsi, [rsp + 0x10] | 0x0044e859 lea rdx, [rsp + 0x20] | 0x0044e85e mov rdi, rbx | 0x0044e861 call 0x45ef50 | BloombergLP::bslh::SpookyHashAlgorithmImp::finalize(unsigned long long*,unsigned long long*) (rbx, rsp + 0x10, rsp + 0x20); 0x0044e866 movabs r15, 0x9e3779b97f4a7c15 | r15 = 0x9e3779b97f4a7c15; 0x0044e870 imul r15, qword [rsp + 0x10] | r15 *= *((rsp + 0x10)); 0x0044e876 mov rdi, r14 | rdi = r14; 0x0044e879 mov rsi, r12 | rsi = r12; 0x0044e87c mov rdx, r15 | rdx = r15; 0x0044e87f call 0x44ea60 | rax = BloombergLP::bdlc::FlatHashTable,bsl::allocator>,bsl::pair,bsl::allocator>,int>,BloombergLP::bdlc::FlatHashMap_EntryUtil,bsl::allocator>,int,bsl::pair,bsl::allocator>,int>>,BloombergLP::bslh::FibonacciBadHashWrapper,bsl::allocator>>>,bsl::equal_to,bsl::allocator>>>::findKey(bsl::basic_string,bsl::allocator>const&,unsigned long)const (); 0x0044e884 mov rbx, rax | rbx = rax; 0x0044e887 cmp rax, qword [r14 + 0x18] | | if (rax != *((r14 + 0x18))) { 0x0044e88b jne 0x44ea38 | goto label_0; | } 0x0044e891 mov rax, rbx | rax = rbx; 0x0044e894 shr rax, 3 | rax >>= 3; 0x0044e898 lea rcx, [rax*8] | rcx = rax*8; 0x0044e8a0 sub rcx, rax | rcx -= rax; 0x0044e8a3 cmp qword [r14 + 0x10], rcx | | if (*((r14 + 0x10)) >= rcx) { 0x0044e8a7 jb 0x44e8c5 | 0x0044e8a9 lea rax, [rbx + rbx] | rax = rbx + rbx; 0x0044e8ad test rbx, rbx | 0x0044e8b0 mov esi, 0x20 | esi = 0x20; | if (rbx != 0) { 0x0044e8b5 cmovne rsi, rax | rsi = rax; | } 0x0044e8b9 mov rdi, r14 | 0x0044e8bc call 0x44ebe0 | BloombergLP::bdlc::FlatHashTable,bsl::allocator>,bsl::pair,bsl::allocator>,int>,BloombergLP::bdlc::FlatHashMap_EntryUtil,bsl::allocator>,int,bsl::pair,bsl::allocator>,int>>,BloombergLP::bslh::FibonacciBadHashWrapper,bsl::allocator>>>,bsl::equal_to,bsl::allocator>>>::rehashRaw(unsigned long) (r14, rsi); 0x0044e8c1 mov rbx, qword [r14 + 0x18] | rbx = *((r14 + 0x18)); | } 0x0044e8c5 test rbx, rbx | | if (rbx == 0) { 0x0044e8c8 je 0x44e910 | goto label_1; | } 0x0044e8ca mov cl, byte [r14 + 0x20] | cl = *((r14 + 0x20)); 0x0044e8ce mov rax, r15 | rax = r15; 0x0044e8d1 shr rax, cl | rax >>= cl; 0x0044e8d4 mov rcx, qword [r14 + 8] | rcx = *((r14 + 8)); 0x0044e8d8 shl rax, 4 | rax <<= 4; 0x0044e8dc lea rdx, [rbx - 1] | rdx = rbx - 1; 0x0044e8e0 xor esi, esi | esi = 0; 0x0044e8e2 nop word cs:[rax + rax] | 0x0044e8ec nop dword [rax] | | do { 0x0044e8f0 movdqu xmm0, xmmword [rcx + rax] | __asm ("movdqu xmm0, xmmword [rcx + rax]"); 0x0044e8f5 pmovmskb edi, xmm0 | __asm ("pmovmskb edi, xmm0"); 0x0044e8f9 test di, di | | if (di != 0) { 0x0044e8fc jne 0x44e914 | goto label_2; | } 0x0044e8fe add rax, 0x10 | rax += 0x10; 0x0044e902 and rax, rdx | rax &= rdx; 0x0044e905 add rsi, 0x10 | rsi += 0x10; 0x0044e909 cmp rsi, rbx | 0x0044e90c jb 0x44e8f0 | | } while (rsi < rbx); 0x0044e90e jmp 0x44e920 | goto label_3; | label_1: 0x0044e910 xor ebx, ebx | ebx = 0; 0x0044e912 jmp 0x44e920 | goto label_3; | label_2: 0x0044e914 movzx ecx, di | ecx = (int32_t) di; 0x0044e917 bsf ecx, ecx | __asm ("bsf ecx, ecx"); 0x0044e91a add rax, rcx | rax += rcx; 0x0044e91d mov rbx, rax | rbx = rax; | label_3: 0x0044e920 mov rcx, qword [r14] | rcx = *(r14); 0x0044e923 mov rdi, qword [r14 + 0x28] | rdi = *((r14 + 0x28)); 0x0044e927 imul rbp, rbx, 0x38 | rbp = rbx * 0x38; 0x0044e92b lea r13, [rcx + rbp] | r13 = rcx + rbp; 0x0044e92f test rdi, rdi | | if (rdi == 0) { 0x0044e932 jne 0x44e952 | 0x0044e934 mov rdi, qword [rip + 0x25e50d] | rdi = BloombergLP::bslma::Default::s_defaultAllocator; 0x0044e93b test rdi, rdi | | if (rdi != 0) { 0x0044e93e jne 0x44e952 | goto label_4; | } 0x0044e940 mov qword [rsp + 8], rcx | *((rsp + 8)) = rcx; 0x0044e945 call 0x460a70 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x0044e94a mov rcx, qword [rsp + 8] | rcx = *((rsp + 8)); 0x0044e94f mov rdi, rax | rdi = rax; | } | label_4: 0x0044e952 mov rax, qword [r12 + 0x20] | rax = *((r12 + 0x20)); 0x0044e957 mov qword [r13 + 0x20], rax | *((r13 + 0x20)) = rax; 0x0044e95b movdqu xmm0, xmmword [r12] | __asm ("movdqu xmm0, xmmword [r12]"); 0x0044e961 movups xmm1, xmmword [r12 + 0x10] | __asm ("movups xmm1, xmmword [r12 + 0x10]"); 0x0044e967 movups xmmword [r13 + 0x10], xmm1 | __asm ("movups xmmword [r13 + 0x10], xmm1"); 0x0044e96c movdqu xmmword [r13], xmm0 | __asm ("movdqu xmmword [r13], xmm0"); 0x0044e972 mov qword [rcx + rbp + 0x28], rdi | *((rcx + rbp + 0x28)) = rdi; 0x0044e977 cmp qword [rcx + rbp + 0x20], 0x17 | | if (*((rcx + rbp + 0x20)) != 0x17) { 0x0044e97d je 0x44ea20 | 0x0044e983 cmp rdi, qword [r12 + 0x28] | | if (rdi != *((r12 + 0x28))) { 0x0044e988 je 0x44ea09 | 0x0044e98a lea rdx, [rcx + rbp + 0x20] | rdx = rcx + rbp + 0x20; 0x0044e98f mov rax, qword [r12 + 0x18] | rax = *((r12 + 0x18)); 0x0044e994 cmp rax, 0x17 | 0x0044e998 mov esi, 0x17 | esi = 0x17; | if (rax > 0x17) { 0x0044e99d cmova rsi, rax | rsi = rax; | } 0x0044e9a1 mov qword [r13], 0 | *(r13) = 0; 0x0044e9a9 mov qword [rcx + rbp + 0x18], rax | *((rcx + rbp + 0x18)) = rax; 0x0044e9ae mov qword [rdx], rsi | *(rdx) = rsi; 0x0044e9b1 cmp rax, 0x18 | | if (rax >= 0x18) { 0x0044e9b5 jb 0x44e9de | 0x0044e9b7 inc rsi | rsi++; 0x0044e9ba mov rax, qword [rdi] | rax = *(rdi); 0x0044e9bd mov qword [rsp + 8], rcx | *((rsp + 8)) = rcx; 0x0044e9c2 mov qword [rsp + 0x18], rdx | *((rsp + 0x18)) = rdx; 0x0044e9c7 call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x0044e9ca mov rdx, qword [rsp + 0x18] | rdx = *((rsp + 0x18)); 0x0044e9cf mov rcx, qword [rsp + 8] | rcx = *((rsp + 8)); 0x0044e9d4 mov qword [r13], rax | *(r13) = rax; 0x0044e9d8 cmp qword [rdx], 0x17 | | if (*(rdx) != 0x17) { 0x0044e9dc jne 0x44e9e1 | goto label_5; | } | } 0x0044e9de mov rax, r13 | rax = r13; | label_5: 0x0044e9e1 mov rdx, qword [rdx - 8] | rdx = *((rdx - 8)); 0x0044e9e5 inc rdx | rdx++; | if (rdx == 0) { 0x0044e9e8 je 0x44ea20 | goto label_6; | } 0x0044e9ea cmp qword [r12 + 0x20], 0x17 | | if (*((r12 + 0x20)) != 0x17) { 0x0044e9f0 je 0x44e9f6 | 0x0044e9f2 mov r12, qword [r12] | r12 = *(r12); | } 0x0044e9f6 mov rdi, rax | 0x0044e9f9 mov rsi, r12 | 0x0044e9fc mov r12, rcx | r12 = rcx; 0x0044e9ff call 0x403f70 | memcpy (rax, r12, rdx); 0x0044ea04 mov rcx, r12 | rcx = r12; 0x0044ea07 jmp 0x44ea20 | | } else { 0x0044ea09 mov qword [r12], 0 | *(r12) = 0; 0x0044ea11 movdqa xmm0, xmmword [rip + 0x39477] | __asm ("movdqa xmm0, xmmword [0x00487e90]"); 0x0044ea19 movdqu xmmword [r12 + 0x18], xmm0 | __asm ("movdqu xmmword [r12 + 0x18], xmm0"); | } | } | label_6: 0x0044ea20 mov dword [rcx + rbp + 0x30], 0 | *((rcx + rbp + 0x30)) = 0; 0x0044ea28 and r15b, 0x7f | r15b &= 0x7f; 0x0044ea2c mov rax, qword [r14 + 8] | rax = *((r14 + 8)); 0x0044ea30 mov byte [rax + rbx], r15b | *((rax + rbx)) = r15b; 0x0044ea34 inc qword [r14 + 0x10] | *((r14 + 0x10))++; | label_0: 0x0044ea38 imul rax, rbx, 0x38 | rax = rbx * 0x38; 0x0044ea3c add rax, qword [r14] | rax += *(r14); 0x0044ea3f add rsp, 0x158 | 0x0044ea46 pop rbx | 0x0044ea47 pop r12 | 0x0044ea49 pop r13 | 0x0044ea4b pop r14 | 0x0044ea4d pop r15 | 0x0044ea4f pop rbp | 0x0044ea50 ret | return rax; | }