// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x0, 0xc(%rsp)
testl %r14d, %r14d
je 0x160b
movl %r14d, %eax
shrl $0x2, %eax
movl %eax, 0x14(%rsp)
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movl %r14d, 0x10(%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 0x148b
movl (%rbx), %esi
movl 0x4(%rbx), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x1479
decl %esi
jmp 0x147b
incl %esi
movq %rbx, %rdi
callq 0x17d3
testl %eax, %eax
js 0x1534
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, %esi
shrl $0x10, %esi
xorl %eax, %esi
movl (%rbx), %edi
leal -0x1(%rdi), %r10d
movl %r10d, %eax
andl %esi, %eax
movq 0x10(%rbx), %rdx
movl %eax, %ecx
shrl $0x4, %ecx
movl (%rdx,%rcx,4), %r8d
leal (%rax,%rax), %ecx
shrl %cl, %r8d
testb $0x2, %r8b
jne 0x1567
pushq $0x1
popq %r11
movl %eax, %r9d
movl %edi, %r8d
movl %r9d, %ecx
shrl $0x4, %ecx
movl (%rdx,%rcx,4), %r14d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %r14d, %r12d
shrl %cl, %r12d
testb $0x2, %r12b
jne 0x153b
testb $0x1, %r12b
jne 0x1519
movq 0x18(%rbx), %r12
movl %r9d, %r13d
cmpl %esi, (%r12,%r13,4)
je 0x153b
btl %ecx, %r14d
cmovbl %r9d, %r8d
addl %r11d, %r9d
andl %r10d, %r9d
incl %r11d
movl %r8d, %ecx
cmpl %eax, %r9d
jne 0x14e9
jmp 0x153d
movl (%rbx), %eax
jmp 0x15c6
movl %edi, %ecx
movl %ecx, %eax
cmpl %edi, %ecx
movl 0x10(%rsp), %r14d
jne 0x1567
movl %r9d, %eax
shrl $0x4, %eax
movl (%rdx,%rax,4), %eax
leal (%r9,%r9), %ecx
shrl %cl, %eax
cmpl %edi, %r8d
cmovel %r9d, %r8d
testb $0x2, %al
cmovel %r9d, %r8d
movl %r8d, %eax
movl %eax, %edi
shrl $0x4, %edi
movl (%rdx,%rdi,4), %r9d
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
shrl %cl, %r9d
movl %eax, %r10d
testb $0x2, %r9b
jne 0x15a2
movb $0x1, %r8b
testb $0x1, %r9b
je 0x15c9
movq 0x18(%rbx), %r8
movl %esi, (%r8,%r10,4)
pushq $0x3
popq %rsi
shll %cl, %esi
notl %esi
andl %esi, (%rdx,%rdi,4)
incl 0x4(%rbx)
jmp 0x15c6
movq 0x18(%rbx), %r8
movl %esi, (%r8,%r10,4)
pushq $0x3
popq %rsi
shll %cl, %esi
notl %esi
andl %esi, (%rdx,%rdi,4)
movq 0x4(%rbx), %xmm0
psubd 0xa6f(%rip), %xmm0      # 0x2030
movq %xmm0, 0x4(%rbx)
xorl %r8d, %r8d
testb %r8b, %r8b
je 0x15fc
cmpl %eax, (%rbx)
je 0x1600
movq 0x10(%rbx), %rdx
movl %eax, %esi
shrl $0x4, %esi
movl (%rdx,%rsi,4), %edi
addl %eax, %eax
andl $0x1e, %eax
movl %edi, %r8d
movl %eax, %ecx
shrl %cl, %r8d
testb $0x3, %r8b
jne 0x1600
btsl %eax, %edi
movl %edi, (%rdx,%rsi,4)
decl 0x4(%rbx)
jmp 0x1600
incl 0xc(%rsp)
incl %ebp
cmpl %r14d, %ebp
jne 0x1427
movq 0x29e6(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movl 0x4(%rbx), %ebp
leaq 0xa76(%rip), %rsi       # 0x2095
movl %ebp, %edx
movl 0xc(%rsp), %ecx
xorl %eax, %eax
callq 0x1070
testq %rbx, %rbx
je 0x1654
movq 0x18(%rbx), %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
nopw %cs:(%rax,%rax)
nop