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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
movl %edi, %r14d
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x1060
movq %rax, %rbx
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ecx, %ecx
xorl %ebp, %ebp
cmpl %r14d, %ebp
je 0x163b
movq %rcx, 0x10(%rsp)
movl 0xc(%rsp), %edi
callq 0x121c
movl %r14d, %edi
movl %eax, 0xc(%rsp)
movl %eax, %esi
callq 0x1247
movl %eax, %r13d
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jb 0x1513
movl 0x4(%rbx), %eax
addl %eax, %eax
cmpl %eax, %r12d
jbe 0x14f7
decl %r12d
jmp 0x14fa
incl %r12d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x168b
movl (%rbx), %r12d
movl %r12d, %edx
testl %eax, %eax
js 0x1615
leal -0x1(%r12), %edi
movl %edi, %esi
andl %r13d, %esi
movq 0x10(%rbx), %rax
movl %esi, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %edx
leal (%rsi,%rsi), %ecx
shrl %cl, %edx
testb $0x2, %dl
je 0x1537
movl %esi, %edx
jmp 0x15af
pushq $0x1
popq %r9
movl %esi, %r8d
movl %r12d, %edx
movl %r8d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %r10d
leal (%r8,%r8), %ecx
andl $0x1e, %ecx
movl %r10d, %r11d
shrl %cl, %r11d
testb $0x2, %r11b
jne 0x1593
testb $0x1, %r11b
jne 0x1571
movq 0x18(%rbx), %r11
movl %r8d, %r15d
cmpl %r13d, (%r11,%r15,8)
je 0x1593
btl %ecx, %r10d
cmovbl %r8d, %edx
addl %r9d, %r8d
andl %edi, %r8d
incl %r9d
cmpl %esi, %r8d
jne 0x1541
movb $0x1, %cl
movl %r12d, %edi
cmpl %r12d, %edx
je 0x15a2
jmp 0x15af
shrl %cl, %r10d
testb $0x2, %r10b
sete %cl
movl %edx, %edi
movl %r8d, %esi
cmpl %r12d, %edi
cmovel %esi, %edi
testb %cl, %cl
cmovnel %esi, %edi
movl %edi, %edx
movl %edx, %esi
shrl $0x4, %esi
movl (%rax,%rsi,4), %edi
leal (%rdx,%rdx), %ecx
andl $0x1e, %ecx
shrl %cl, %edi
movl %edx, %r8d
testb $0x2, %dil
jne 0x15eb
testb $0x1, %dil
je 0x1615
movq 0x18(%rbx), %rdi
movl %r13d, (%rdi,%r8,8)
andl $0x0, 0x4(%rdi,%r8,8)
pushq $0x3
popq %rdi
shll %cl, %edi
notl %edi
andl %edi, (%rax,%rsi,4)
incl 0x4(%rbx)
jmp 0x1615
movq 0x18(%rbx), %rdi
movl %r13d, (%rdi,%r8,8)
andl $0x0, 0x4(%rdi,%r8,8)
pushq $0x3
popq %rdi
shll %cl, %edi
notl %edi
andl %edi, (%rax,%rsi,4)
movq 0x4(%rbx), %xmm0
psubd 0xa20(%rip), %xmm0      # 0x2030
movq %xmm0, 0x4(%rbx)
movq 0x18(%rbx), %r13
movl %edx, %eax
movl 0x4(%r13,%rax,8), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x4(%r13,%rax,8)
movq 0x10(%rsp), %rax
addl %ecx, %eax
incl %eax
movq %rax, %rcx
incl %ebp
jmp 0x14b8
movq 0x29b6(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movl 0x4(%rbx), %ebp
leaq 0xa46(%rip), %rsi       # 0x2095
movl %ebp, %edx
xorl %eax, %eax
callq 0x1070
movq %r13, %rdi
callq 0x1030
movq 0x10(%rbx), %rdi
callq 0x1030
movq 0x20(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq