// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rax
movl %esi, %r15d
movl %edi, %r14d
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x1060
movq %rax, %rbx
xorl %ebp, %ebp
xorl %r13d, %r13d
movl %r14d, (%rsp)
cmpl %r14d, %r13d
je 0x1636
movl %r15d, %edi
callq 0x121c
movl %eax, %r15d
movl %r14d, %edi
movl %eax, %esi
callq 0x1247
movl %eax, %r12d
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jb 0x14fd
movl (%rbx), %esi
movl 0x4(%rbx), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x14eb
decl %esi
jmp 0x14ed
incl %esi
movq %rbx, %rdi
callq 0x168c
testl %eax, %eax
js 0x1628
movl (%rbx), %edx
leal -0x1(%rdx), %r8d
movl %r8d, %edi
andl %r12d, %edi
movq 0x10(%rbx), %rax
movl %edi, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %esi
leal (%rdi,%rdi), %ecx
shrl %cl, %esi
testb $0x2, %sil
je 0x1527
movl %edi, %esi
jmp 0x15aa
movl %ebp, 0x4(%rsp)
pushq $0x1
popq %r10
movl %edi, %r9d
movl %edx, %esi
movl %r9d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %ebp
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %ebp, %r11d
shrl %cl, %r11d
testb $0x2, %r11b
jne 0x1587
testb $0x1, %r11b
jne 0x1563
movq 0x18(%rbx), %r11
movl %r9d, %r14d
cmpl %r12d, (%r11,%r14,4)
je 0x1587
btl %ecx, %ebp
cmovbl %r9d, %esi
addl %r10d, %r9d
andl %r8d, %r9d
incl %r10d
cmpl %edi, %r9d
jne 0x1534
movb $0x1, %cl
movl %edx, %r8d
cmpl %edx, %esi
movl 0x4(%rsp), %ebp
je 0x159a
jmp 0x15aa
shrl %cl, %ebp
testb $0x2, %bpl
sete %cl
movl %esi, %r8d
movl %r9d, %edi
movl 0x4(%rsp), %ebp
cmpl %edx, %r8d
cmovel %edi, %r8d
testb %cl, %cl
cmovnel %edi, %r8d
movl %r8d, %esi
movl %esi, %edi
shrl $0x4, %edi
movl (%rax,%rdi,4), %r8d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl %r8d, %r10d
shrl %cl, %r10d
movl %esi, %r9d
testb $0x2, %r10b
jne 0x15ed
testb $0x1, %r10b
jne 0x1613
cmpl %esi, %edx
je 0x162a
movl %r8d, %edx
shrl %cl, %edx
testb $0x3, %dl
movl (%rsp), %r14d
jne 0x162e
btsl %ecx, %r8d
movl %r8d, (%rax,%rdi,4)
decl 0x4(%rbx)
jmp 0x162e
movq 0x18(%rbx), %rdx
movl %r12d, (%rdx,%r9,4)
pushq $0x3
popq %rdx
shll %cl, %edx
notl %edx
andl %edx, (%rax,%rdi,4)
movq 0x4(%rbx), %xmm0
psubd 0xa24(%rip), %xmm0      # 0x2030
movq %xmm0, 0x4(%rbx)
jmp 0x1628
movq 0x18(%rbx), %rdx
movl %r12d, (%rdx,%r9,4)
pushq $0x3
popq %rdx
shll %cl, %edx
notl %edx
andl %edx, (%rax,%rdi,4)
incl 0x4(%rbx)
incl %ebp
movl (%rsp), %r14d
incl %r13d
jmp 0x14b3
movq 0x29bb(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movl 0x4(%rbx), %r14d
leaq 0xa4a(%rip), %rsi       # 0x2095
movl %r14d, %edx
movl %ebp, %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 %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq