// File: /workspace/github_cpp_makefile_star2_O1/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
xorl %r13d, %r13d
testl %r14d, %r14d
je 0x15f3
movl %r14d, %eax
shrl $0x2, %eax
movl %eax, 0xc(%rsp)
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 0x1481
movl (%rbx), %esi
movl 0x4(%rbx), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x146f
decl %esi
jmp 0x1471
incl %esi
movq %rbx, %rdi
callq 0x17b3
testl %eax, %eax
js 0x152f
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), %edi
leal -0x1(%rdi), %r10d
movl %r10d, %esi
andl %edx, %esi
movq 0x10(%rbx), %rax
movl %esi, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %r8d
leal (%rsi,%rsi), %ecx
shrl %cl, %r8d
testb $0x2, %r8b
jne 0x1569
movq %r13, 0x10(%rsp)
pushq $0x1
popq %r11
movl %esi, %r9d
movl %edi, %r8d
movl %r9d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %r13d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %r13d, %r12d
shrl %cl, %r12d
testb $0x2, %r12b
jne 0x1536
testb $0x1, %r12b
jne 0x1514
movq 0x18(%rbx), %r12
movl %r9d, %r14d
cmpl %edx, (%r12,%r14,8)
je 0x1536
btl %ecx, %r13d
cmovbl %r9d, %r8d
addl %r11d, %r9d
andl %r10d, %r9d
incl %r11d
movl %r8d, %ecx
cmpl %esi, %r9d
jne 0x14e4
jmp 0x1538
movl (%rbx), %esi
jmp 0x15d1
movl %edi, %ecx
movl %ecx, %esi
cmpl %edi, %ecx
movl 0x8(%rsp), %r14d
movq 0x10(%rsp), %r13
jne 0x1569
movl %r9d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %esi
leal (%r9,%r9), %ecx
shrl %cl, %esi
cmpl %edi, %r8d
cmovel %r9d, %r8d
testb $0x2, %sil
cmovel %r9d, %r8d
movl %r8d, %esi
movl %esi, %edi
shrl $0x4, %edi
movl (%rax,%rdi,4), %r8d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
shrl %cl, %r8d
movl %esi, %r9d
testb $0x2, %r8b
jne 0x15a7
testb $0x1, %r8b
je 0x15d1
movq 0x18(%rbx), %r8
movl %edx, (%r8,%r9,8)
andl $0x0, 0x4(%r8,%r9,8)
pushq $0x3
popq %rdx
shll %cl, %edx
notl %edx
andl %edx, (%rax,%rdi,4)
incl 0x4(%rbx)
jmp 0x15d1
movq 0x18(%rbx), %r8
movl %edx, (%r8,%r9,8)
andl $0x0, 0x4(%r8,%r9,8)
pushq $0x3
popq %rdx
shll %cl, %edx
notl %edx
andl %edx, (%rax,%rdi,4)
movq 0x4(%rbx), %xmm0
psubd 0xa64(%rip), %xmm0      # 0x2030
movq %xmm0, 0x4(%rbx)
movq 0x18(%rbx), %rax
movl %esi, %ecx
movl 0x4(%rax,%rcx,8), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x4(%rax,%rcx,8)
addl %edx, %r13d
incl %r13d
incl %ebp
cmpl %r14d, %ebp
jne 0x141d
movq 0x29fe(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movl 0x4(%rbx), %ebp
leaq 0xa8e(%rip), %rsi       # 0x2095
movl %ebp, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0x1070
testq %rbx, %rbx
je 0x163b
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
nopl (%rax)