// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/khash/test.c
// Function: test_int
uint32_t test_int(uint32_t n, uint32_t x0)
{
	uint32_t i, x, z = 0;
	khash_t(32a) *h;
	h = kh_init(32a);
	for (i = 0, x = x0; i < n; ++i) {
		khint_t k;
		int absent;
		x = hash32(x);
		k = kh_put(32a, h, get_key(n, x), &absent);
#ifndef UDB2_TEST_DEL
		if (absent) kh_val(h, k) = 0;
		z += ++kh_val(h, k);
#else
		if (absent) ++z;
		else kh_del(32a, h, k);
#endif
	}
	fprintf(stderr, "# unique keys: %d; checksum: %u\n", kh_size(h), z);
	x = kh_size(h);
	kh_destroy(32a, h);
	return x;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r15d
movl %edi, %r14d
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x1060
movq %rax, %rbx
xorl %r12d, %r12d
movl $0x0, %r13d
testl %r14d, %r14d
je 0x1603
movl %r14d, %eax
shrl $0x2, %eax
movl %eax, 0x14(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
movl %r14d, 0xc(%rsp)
movl %r15d, %eax
shll $0xf, %eax
notl %eax
addl %r15d, %eax
movl %eax, %ecx
shrl $0xa, %ecx
xorl %eax, %ecx
leal (%rcx,%rcx,8), %eax
movl %eax, %ecx
shrl $0x6, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shll $0xb, %eax
notl %eax
addl %ecx, %eax
movl %eax, %r15d
shrl $0x10, %r15d
xorl %eax, %r15d
movl %r15d, %eax
xorl %edx, %edx
divl 0x14(%rsp)
movl %edx, %r12d
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jb 0x1487
movl (%rbx), %esi
movl 0x4(%rbx), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x1475
decl %esi
jmp 0x1477
incl %esi
movq %rbx, %rdi
callq 0x17c3
testl %eax, %eax
js 0x15f1
movl %r12d, %eax
shll $0xf, %eax
notl %eax
addl %r12d, %eax
movl %eax, %ecx
shrl $0xa, %ecx
xorl %eax, %ecx
leal (%rcx,%rcx,8), %eax
movl %eax, %ecx
shrl $0x6, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shll $0xb, %eax
notl %eax
addl %ecx, %eax
movl %eax, %edx
shrl $0x10, %edx
xorl %eax, %edx
movl (%rbx), %esi
leal -0x1(%rsi), %r9d
movl %r9d, %r8d
andl %edx, %r8d
movq 0x10(%rbx), %rax
movl %r8d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %edi
leal (%r8,%r8), %ecx
shrl %cl, %edi
testb $0x2, %dil
je 0x14e0
movl %r8d, %edi
jmp 0x1573
movl %r13d, 0x10(%rsp)
pushq $0x1
popq %r11
movl %r8d, %r10d
movl %esi, %edi
movl %r10d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %r13d
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
movl %r13d, %r12d
shrl %cl, %r12d
testb $0x2, %r12b
jne 0x1549
testb $0x1, %r12b
jne 0x151e
movq 0x18(%rbx), %r12
movl %r10d, %r14d
cmpl %edx, (%r12,%r14,4)
je 0x1549
btl %ecx, %r13d
cmovbl %r10d, %edi
addl %r11d, %r10d
andl %r9d, %r10d
incl %r11d
cmpl %r8d, %r10d
jne 0x14ee
movb $0x1, %cl
movl %esi, %r9d
cmpl %esi, %edi
movl 0xc(%rsp), %r14d
movl 0x10(%rsp), %r13d
je 0x1563
jmp 0x1573
shrl %cl, %r13d
testb $0x2, %r13b
sete %cl
movl %edi, %r9d
movl %r10d, %r8d
movl 0xc(%rsp), %r14d
movl 0x10(%rsp), %r13d
cmpl %esi, %r9d
cmovel %r8d, %r9d
testb %cl, %cl
cmovnel %r8d, %r9d
movl %r9d, %edi
movl %edi, %r8d
shrl $0x4, %r8d
movl (%rax,%r8,4), %r9d
leal (%rdi,%rdi), %ecx
andl $0x1e, %ecx
movl %r9d, %r11d
shrl %cl, %r11d
movl %edi, %r10d
testb $0x2, %r11b
jne 0x15b4
testb $0x1, %r11b
jne 0x15db
cmpl %edi, %esi
je 0x15f4
movl %r9d, %edx
shrl %cl, %edx
testb $0x3, %dl
jne 0x15f4
btsl %ecx, %r9d
movl %r9d, (%rax,%r8,4)
decl 0x4(%rbx)
jmp 0x15f4
movq 0x18(%rbx), %rsi
movl %edx, (%rsi,%r10,4)
pushq $0x3
popq %rdx
shll %cl, %edx
notl %edx
andl %edx, (%rax,%r8,4)
movq 0x4(%rbx), %xmm0
psubd 0xa5c(%rip), %xmm0      # 0x2030
movq %xmm0, 0x4(%rbx)
jmp 0x15f1
movq 0x18(%rbx), %rsi
movl %edx, (%rsi,%r10,4)
pushq $0x3
popq %rdx
shll %cl, %edx
notl %edx
andl %edx, (%rax,%r8,4)
incl 0x4(%rbx)
incl %r13d
incl %ebp
cmpl %r14d, %ebp
jne 0x1423
movl 0x4(%rbx), %r12d
movq 0x29ee(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xa81(%rip), %rsi       # 0x2095
movl %r12d, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0x1070
movq 0x18(%rbx), %rdi
callq 0x1030
movq 0x10(%rbx), %rdi
callq 0x1030
movq 0x20(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)