// File: /workspace/github_cpp_makefile_star2_O3/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, %r15d
movl %edi, %r14d
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x1060
movq %rax, %rbx
testl %r14d, %r14d
jne 0x140f
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x1607
movl %r14d, %eax
shrl $0x2, %eax
movl %eax, 0xc(%rsp)
xorl %esi, %esi
xorl %ebp, %ebp
xorl %r13d, %r13d
movl %r14d, 0x8(%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 0xc(%rsp)
movl %edx, %r12d
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jb 0x148b
movl 0x4(%rbx), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x1475
decl %esi
jmp 0x1477
incl %esi
movq %rbx, %rdi
callq 0x17c3
movl (%rbx), %esi
movl %esi, %edx
testl %eax, %eax
js 0x15e0
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, %edi
shrl $0x10, %edi
xorl %eax, %edi
leal -0x1(%rsi), %r9d
movl %r9d, %r8d
andl %edi, %r8d
movq 0x10(%rbx), %rax
movl %r8d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %edx
leal (%r8,%r8), %ecx
shrl %cl, %edx
testb $0x2, %dl
je 0x14e1
movl %r8d, %edx
jmp 0x1574
movq %r13, 0x10(%rsp)
pushq $0x1
popq %r11
movl %r8d, %r10d
movl %esi, %edx
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 0x154a
testb $0x1, %r12b
jne 0x151f
movq 0x18(%rbx), %r12
movl %r10d, %r14d
cmpl %edi, (%r12,%r14,8)
je 0x154a
btl %ecx, %r13d
cmovbl %r10d, %edx
addl %r11d, %r10d
andl %r9d, %r10d
incl %r11d
cmpl %r8d, %r10d
jne 0x14ef
movb $0x1, %cl
movl %esi, %r9d
cmpl %esi, %edx
movl 0x8(%rsp), %r14d
movq 0x10(%rsp), %r13
je 0x1564
jmp 0x1574
shrl %cl, %r13d
testb $0x2, %r13b
sete %cl
movl %edx, %r9d
movl %r10d, %r8d
movl 0x8(%rsp), %r14d
movq 0x10(%rsp), %r13
cmpl %esi, %r9d
cmovel %r8d, %r9d
testb %cl, %cl
cmovnel %r8d, %r9d
movl %r9d, %edx
movl %edx, %r8d
shrl $0x4, %r8d
movl (%rax,%r8,4), %r9d
leal (%rdx,%rdx), %ecx
andl $0x1e, %ecx
shrl %cl, %r9d
movl %edx, %r10d
testb $0x2, %r9b
jne 0x15b5
testb $0x1, %r9b
je 0x15e0
movq 0x18(%rbx), %r9
movl %edi, (%r9,%r10,8)
andl $0x0, 0x4(%r9,%r10,8)
pushq $0x3
popq %rdi
shll %cl, %edi
notl %edi
andl %edi, (%rax,%r8,4)
incl 0x4(%rbx)
jmp 0x15e0
movq 0x18(%rbx), %r9
movl %edi, (%r9,%r10,8)
andl $0x0, 0x4(%r9,%r10,8)
pushq $0x3
popq %rdi
shll %cl, %edi
notl %edi
andl %edi, (%rax,%r8,4)
movq 0x4(%rbx), %xmm0
psubd 0xa55(%rip), %xmm0      # 0x2030
movq %xmm0, 0x4(%rbx)
movq 0x18(%rbx), %r12
movl %edx, %eax
movl 0x4(%r12,%rax,8), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x4(%r12,%rax,8)
addl %ecx, %r13d
incl %r13d
incl %ebp
cmpl %r14d, %ebp
jne 0x1425
movl 0x4(%rbx), %ebp
movq 0x29ea(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xa7d(%rip), %rsi       # 0x2095
movl %ebp, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0x1070
movq %r12, %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 (%rax,%rax)