// File: /workspace/github_cpp_makefile_star2_O2/attractivechaos[P]udb2/sparsepp/./sparsepp/spp.h
// Function: spp::sparse_hashtable<std::pair<unsigned int const, unsigned int>, unsigned int, Hash32, spp::sparse_hash_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, spp::libc_allocator<std::pair<unsigned int const, unsigned int>>>::SelectKey, spp::sparse_hash_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, spp::libc_allocator<std::pair<unsigned int const, unsigned int>>>::SetKey, std::equal_to<unsigned int>, spp::libc_allocator<std::pair<unsigned int const, unsigned int>>>::_resize_delta(unsigned long)
bool _resize_delta(size_type delta)
    {
        bool did_resize = false;
        if (settings.consider_shrink())
        {
            // see if lots of deletes happened
            if (_maybe_shrink())
                did_resize = true;
        }
        if (table.num_nonempty() >=
            (std::numeric_limits<size_type>::max)() - delta)
        {
            throw_exception(std::length_error("resize overflow"));
        }

        size_type num_occupied = (size_type)(table.num_nonempty() + num_deleted);

        if (bucket_count() >= HT_MIN_BUCKETS &&
             (num_occupied + delta) <= settings.enlarge_threshold())
            return did_resize;                       // we're ok as we are

        // Sometimes, we need to resize just to get rid of all the
        // "deleted" buckets that are clogging up the hashtable.  So when
        // deciding whether to resize, count the deleted buckets (which
        // are currently taking up room).
        // -------------------------------------------------------------
        const size_type needed_size =
                  settings.min_buckets((size_type)(num_occupied + delta), (size_type)0);

        if (needed_size <= bucket_count())      // we have enough buckets
            return did_resize;

        size_type resize_to = settings.min_buckets((size_type)(num_occupied + delta), bucket_count());

        if (resize_to < needed_size &&    // may double resize_to
            resize_to < (std::numeric_limits<size_type>::max)() / 2)
        {
            // This situation means that we have enough deleted elements,
            // that once we purge them, we won't actually have needed to
            // grow.  But we may want to grow anyway: if we just purge one
            // element, say, we'll have to grow anyway next time we
            // insert.  Might as well grow now, since we're already going
            // through the trouble of copying (in order to purge the
            // deleted elements).
            const size_type target =
                static_cast<size_type>(settings.shrink_size((size_type)(resize_to*2)));
            if (table.num_nonempty() + delta >= target)
            {
                // Good, we won't be below the shrink threshhold even if we double.
                resize_to *= 2;
            }
        }

        sparse_hashtable tmp(MoveDontCopy, *this, resize_to);
        swap(tmp);                             // now we are tmp
        return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x18(%rdi)
jne 0x1a3a
movq %rbx, %rdi
callq 0x1bf8
movl %eax, %ebp
jmp 0x1a3c
xorl %ebp, %ebp
movq 0x48(%rbx), %r15
movq %r14, %rax
notq %rax
cmpq %rax, %r15
jb 0x1a75
leaq 0x1659(%rip), %rsi      # 0x30ab
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x10c0
movq %r15, %rdi
callq 0x18b7
leaq 0x8(%rsp), %rdi
callq 0x1178
movq 0x48(%rbx), %r15
addq 0x28(%rbx), %r15
addq %r14, %r15
cmpq $0x4, 0x40(%rbx)
jb 0x1a8c
cmpq (%rbx), %r15
jbe 0x1b4a
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1744
movq 0x40(%rbx), %rdx
cmpq %rdx, %rax
jbe 0x1b4a
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1744
cmpq %r12, %rax
setae %cl
movabsq $0x7ffffffffffffffe, %rdx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rdx, %rax
seta %dl
orb %cl, %dl
jne 0x1b1d
movq %rax, %rcx
addq %rax, %rcx
js 0x1add
cvtsi2ss %rcx, %xmm0
jmp 0x1aee
movq %rax, %rdx
btrq $0x3f, %rdx
cvtsi2ss %rdx, %xmm0
addss %xmm0, %xmm0
mulss 0x14(%rbx), %xmm0
cvttss2si %xmm0, %rdx
movq %rdx, %rsi
subss 0x152d(%rip), %xmm0     # 0x3030
cvttss2si %xmm0, %rdi
sarq $0x3f, %rsi
andq %rsi, %rdi
addq 0x48(%rbx), %r14
orq %rdx, %rdi
cmpq %rdi, %r14
cmovaeq %rcx, %rax
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x1d06
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d82
leaq 0x38(%rsp), %rdi
callq 0x1610
movb $0x1, %bpl
movl %ebp, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x1610
jmp 0x1b75
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1178
movq %rbx, %rdi
callq 0x1150
nop