// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/libcuckoo/./cuckoohash_map.hh
// Function: cuckoohash_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 4ul>::cuckoo_status cuckoohash_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 4ul>::cuckoo_fast_double<std::integral_constant<bool, false>, std::integral_constant<bool, true>>(unsigned long)
cuckoo_status cuckoo_fast_double(size_type current_hp) {
    if (!std::is_nothrow_move_constructible<key_type>::value ||
        !std::is_nothrow_move_constructible<mapped_type>::value) {
      LIBCUCKOO_DBG("%s", "cannot run cuckoo_fast_double because key-value"
                          " pair is not nothrow move constructible");
      return cuckoo_expand_simple<TABLE_MODE, AUTO_RESIZE>(current_hp + 1);
    }
    const size_type new_hp = current_hp + 1;
    auto all_locks_manager = snapshot_and_lock_all(TABLE_MODE());
    cuckoo_status st = check_resize_validity<AUTO_RESIZE>(current_hp, new_hp);
    if (st != ok) {
      return st;
    }

    // We must re-hash the table, moving items in each bucket to a different
    // one. The hash functions are carefully designed so that when doubling the
    // number of buckets, each element either stays in its existing bucket or
    // goes to exactly one new bucket. This means we can re-hash each bucket in
    // parallel. We create a new empty buckets container and move all the
    // elements from the old container to the new one.
    buckets_t new_buckets(new_hp, get_allocator());
    // For certain types, MSVC may decide that move_buckets() cannot throw and
    // so the catch block below is dead code. Since that won't always be true,
    // we just disable the warning here.
    LIBCUCKOO_SQUELCH_DEADCODE_WARNING_BEGIN;
    parallel_exec(
        0, hashsize(current_hp),
        [this, &new_buckets, current_hp, new_hp](size_type start, size_type end,
                                                 std::exception_ptr &eptr) {
          try {
            move_buckets(new_buckets, current_hp, new_hp, start, end);
          } catch (...) {
            eptr = std::current_exception();
          }
        });
    LIBCUCKOO_SQUELCH_DEADCODE_WARNING_END;

    // Resize the locks array if necessary. This is done before we update the
    // hashpower so that other threads don't grab the new hashpower and the old
    // locks
    maybe_resize_locks(size_type(1) << new_hp);
    // Swap the old and new buckets. The old bucket data will be destroyed when
    // the function exits
    buckets_.swap(new_buckets);
    return ok;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r12
movq %rdi, %r14
leaq 0x1(%rsi), %r15
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x3f94
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3ffc
movl %eax, %ebx
testl %eax, %eax
jne 0x33e5
leaq 0x60(%rsp), %rbp
leaq 0x2f(%rsp), %rdx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2bc8
movl $0x1, %r13d
movl $0x1, %edx
movl %r12d, %ecx
shlq %cl, %rdx
movq %r14, 0x40(%rsp)
movq %rbp, 0x48(%rsp)
movq %r12, 0x50(%rsp)
movq %r15, 0x58(%rsp)
movups 0x40(%rsp), %xmm0
movups 0x50(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x40de
movl %r15d, %ecx
shlq %cl, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x42de
leaq 0x60(%rsp), %rdi
movq 0x8(%rdi), %rax
movq 0x10(%r14), %rcx
movq %rcx, 0x8(%rdi)
movq %rax, 0x10(%r14)
movq 0x18(%r14), %rax
movq 0x10(%rdi), %rcx
movq %rcx, 0x18(%r14)
movq %rax, 0x10(%rdi)
callq 0x2acc
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x341b
movq 0x30(%rsp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
je 0x341b
movq 0x10(%rcx), %rdx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
je 0x3413
movb $0x0, (%rdx)
addq $0x40, %rdx
jmp 0x3405
movq (%rcx), %rcx
cmpq %rax, %rcx
jne 0x33fd
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x343d
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2acc
jmp 0x3440
movq %rax, %rbx
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x3476
movq 0x30(%rsp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
je 0x3476
movq 0x10(%rcx), %rdx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
je 0x346e
movb $0x0, (%rdx)
addq $0x40, %rdx
jmp 0x3460
movq (%rcx), %rcx
cmpq %rax, %rcx
jne 0x3458
movq %rbx, %rdi
callq 0x2210