// File: attractivechaos[P]udb2/khashlpp/./khashl.hpp
// Function: klib::KHashSet<klib::KHashMapBucket<unsigned int, int>, klib::KHashMapHash<klib::KHashMapBucket<unsigned int, int>, aux_hash, unsigned int>, klib::KHashMapEq<klib::KHashMapBucket<unsigned int, int>, std::equal_to<unsigned int>>, unsigned int>::put(klib::KHashMapBucket<unsigned int, int> const&, int*)
khint_t put(const T &key, int *absent_ = 0) {
		khint_t nb, i, last, mask;
		int absent = -1;
		nb = n_buckets();
		if (count >= (nb>>1) + (nb>>2)) { /* rehashing */
			if (resize(nb + khint_t(1)) < 0) {
				if (absent_) *absent_ = -1;
				return nb;
			}
			nb = n_buckets();
		} /* TODO: to implement automatically shrinking; resize() already support shrinking */
		mask = nb - 1;
		i = last = __kh_h2b(Hash()(key), bits);
		while (__kh_used(used, i) && !Eq()(keys[i], key)) {
			i = (i + 1U) & mask;
			if (i == last) break;
		}
		if (!__kh_used(used, i)) { /* not present at all */
			keys[i] = key;
			__kh_set_used(used, i);
			++count, absent = 1;
		} else absent = 0; /* Don't touch keys[i] if present */
		if (absent_) *absent_ = absent;
		return i;
	}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
callq 0x1800
movl %eax, %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x24(%rsp)
movl 0x4(%rax), %eax
movl 0x24(%rsp), %ecx
shrl %ecx
movl 0x24(%rsp), %edx
shrl $0x2, %edx
addl %edx, %ecx
cmpl %ecx, %eax
jb 0x193f
movq 0x8(%rsp), %rdi
movl 0x24(%rsp), %esi
addl $0x1, %esi
callq 0x1a60
cmpl $0x0, %eax
jge 0x1931
cmpq $0x0, 0x28(%rsp)
je 0x1924
movq 0x28(%rsp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movl 0x24(%rsp), %eax
movl %eax, 0x44(%rsp)
jmp 0x1a56
movq 0x8(%rsp), %rdi
callq 0x1800
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x18(%rsp)
movq 0x30(%rsp), %rsi
leaq 0x13(%rsp), %rdi
callq 0x1da0
movl %eax, %edi
movq 0x8(%rsp), %rax
movl (%rax), %esi
callq 0x1d80
movl %eax, 0x1c(%rsp)
movl %eax, 0x20(%rsp)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movl 0x20(%rsp), %esi
callq 0x1dd0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x7(%rsp)
je 0x19b7
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
movl 0x20(%rsp), %eax
shlq $0x3, %rax
addq %rax, %rsi
movq 0x30(%rsp), %rdx
leaq 0x12(%rsp), %rdi
callq 0x1e00
xorb $-0x1, %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x19c1
jmp 0x19de
movl 0x20(%rsp), %eax
addl $0x1, %eax
andl 0x18(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x1c(%rsp), %eax
jne 0x19dc
jmp 0x19de
jmp 0x196f
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movl 0x20(%rsp), %esi
callq 0x1dd0
cmpl $0x0, %eax
jne 0x1a33
movq 0x8(%rsp), %rax
movq 0x30(%rsp), %rsi
movq 0x10(%rax), %rcx
movl 0x20(%rsp), %edx
movq (%rsi), %rsi
movq %rsi, (%rcx,%rdx,8)
movq 0x8(%rax), %rdi
movl 0x20(%rsp), %esi
callq 0x1e30
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
movl $0x1, 0x14(%rsp)
jmp 0x1a3b
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x1a4e
movl 0x14(%rsp), %ecx
movq 0x28(%rsp), %rax
movl %ecx, (%rax)
movl 0x20(%rsp), %eax
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nop