// File: attractivechaos[P]udb2/tsl_hopscotch_map/./hopscotch_hash.h
// Function: tsl::detail_hopscotch_hash::hopscotch_hash<std::pair<unsigned int const, unsigned int>, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::KeySelect, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>, std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>>::erase(tsl::detail_hopscotch_hash::hopscotch_hash<std::pair<unsigned int const, unsigned int>, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::KeySelect, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>, std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>>::hopscotch_iterator<true>)
iterator erase(const_iterator pos) {
        const std::size_t ibucket_for_hash = bucket_for_hash(hash_key(pos.key()));
        
        if(pos.m_buckets_iterator != pos.m_buckets_end_iterator) {
            auto it_bucket = m_buckets_data.begin() + std::distance(m_buckets_data.cbegin(), pos.m_buckets_iterator);
            erase_from_bucket(*it_bucket, ibucket_for_hash);
            
            return ++iterator(it_bucket, m_buckets_data.end(), m_overflow_elements.begin()); 
        }
        else {
            auto it_next_overflow = erase_from_overflow(pos.m_overflow_iterator, ibucket_for_hash);
            return iterator(m_buckets_data.end(), m_buckets_data.end(), it_next_overflow);
        }
    }

// Assembly:
subq $0xa8, %rsp
movq %rdi, (%rsp)
movq %rdi, 0x8(%rsp)
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movq %rsi, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x10(%rsp)
callq 0x7900
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x4760
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x47a0
movq 0x18(%rsp), %rdi
movq %rax, 0x98(%rsp)
movq %rdi, %rsi
addq $0x8, %rsi
callq 0x7980
testb $0x1, %al
jne 0x7723
jmp 0x7820
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
callq 0x4d60
movq 0x10(%rsp), %rdi
movq %rax, 0x88(%rsp)
addq $0x8, %rdi
callq 0x7a00
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x80(%rsp)
movq (%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x79c0
movq %rax, %rsi
leaq 0x88(%rsp), %rdi
callq 0x4d90
movq %rax, 0x90(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x6450
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq 0x98(%rsp), %rdx
callq 0x63c0
movq 0x10(%rsp), %rdi
movq 0x90(%rsp), %rax
movq %rax, 0x58(%rsp)
addq $0x8, %rdi
callq 0x4e10
movq 0x10(%rsp), %rdi
movq %rax, 0x50(%rsp)
addq $0x20, %rdi
callq 0x4e40
movq %rax, 0x48(%rsp)
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
leaq 0x60(%rsp), %rdi
callq 0x4e70
leaq 0x60(%rsp), %rdi
callq 0x7a30
movq %rax, %rcx
movq (%rsp), %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
jmp 0x7892
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x98(%rsp), %rdx
movq 0x38(%rsp), %rsi
callq 0x7ad0
movq 0x10(%rsp), %rdi
movq %rax, 0x40(%rsp)
addq $0x8, %rdi
callq 0x4e10
movq 0x10(%rsp), %rdi
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0x4e10
movq (%rsp), %rdi
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x4e70
movq 0x8(%rsp), %rax
addq $0xa8, %rsp
retq
nop