// File: /workspace/github_cpp_makefile_star2_O2/attractivechaos[P]udb2/uthash/test.c
// Function: test_int
uint32_t test_int(uint32_t n, uint32_t x0)
{
	uint32_t i, x, n_unique = 0, z = 0;
	intcell_t *h = 0, *r, *tmp;
	for (i = 0, x = x0; i < n; ++i) {
		uint32_t y;
		x = hash32(x);
		y = get_key(n, x);
		HASH_FIND_INT(h, &y, r);
		if (r == 0) {
			r = (intcell_t*)malloc(sizeof(intcell_t));
			r->key = y, r->cnt = 0;
			HASH_ADD_INT(h, key, r);
			++n_unique;
		}
		z += ++r->cnt;
	}
	HASH_ITER(hh, h, r, tmp) {
		HASH_DEL(h, r);
		free(r);
	}
	fprintf(stderr, "# unique keys: %d; checksum: %u\n", n_unique, z);
	return n_unique;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebx
xorl %r8d, %r8d
xorl %r14d, %r14d
movl $0x0, 0xc(%rsp)
xorl %edx, %edx
movl %edi, 0x18(%rsp)
cmpl %ebx, %edx
je 0x1806
movl %edx, 0x10(%rsp)
movq %r14, 0x30(%rsp)
movl %esi, %edi
movq %r8, %r14
callq 0x120c
movl %ebx, %edi
movl %eax, 0x14(%rsp)
movl %eax, %esi
callq 0x1237
movl %eax, %r12d
movl %eax, 0x1c(%rsp)
leal 0x112410d(%r12), %eax
xorl $0x7f76d, %eax          # imm = 0x7F76D
movl $0x9f49bac6, %ecx       # imm = 0x9F49BAC6
subl %eax, %ecx
movl %eax, %edx
shll $0x8, %edx
xorl %ecx, %edx
movl $0xfeedbef3, %esi       # imm = 0xFEEDBEF3
subl %eax, %esi
subl %edx, %esi
movl %edx, %ecx
shrl $0xd, %ecx
xorl %esi, %ecx
subl %edx, %eax
subl %ecx, %eax
movl %ecx, %esi
shrl $0xc, %esi
xorl %eax, %esi
subl %ecx, %edx
subl %esi, %edx
movl %esi, %eax
shll $0x10, %eax
xorl %edx, %eax
subl %esi, %ecx
subl %eax, %ecx
movl %eax, %edx
shrl $0x5, %edx
xorl %ecx, %edx
subl %eax, %esi
subl %edx, %esi
movl %edx, %ecx
shrl $0x3, %ecx
xorl %esi, %ecx
subl %edx, %eax
subl %ecx, %eax
movl %ecx, %ebx
shll $0xa, %ebx
xorl %eax, %ebx
addl %ebx, %ecx
subl %ecx, %edx
shrl $0xf, %ebx
xorl %edx, %ebx
testq %r14, %r14
pushq $0x40
popq %rdi
je 0x15a2
movq %r14, %r8
movq 0x8(%r14), %rax
movl 0x8(%rax), %ecx
decl %ecx
andl %ebx, %ecx
movq (%rax), %rdx
shlq $0x4, %rcx
movq (%rdx,%rcx), %r13
testq %r13, %r13
je 0x1565
subq 0x20(%rax), %r13
jmp 0x1568
xorl %r13d, %r13d
testq %r13, %r13
je 0x15a2
cmpl %ebx, 0x3c(%r13)
jne 0x158a
cmpl $0x4, 0x38(%r13)
jne 0x158a
movq 0x30(%r13), %rcx
movl (%rcx), %ecx
cmpl 0x1c(%rsp), %ecx
je 0x17dd
movq 0x28(%r13), %rcx
movl $0x0, %r13d
testq %rcx, %rcx
je 0x1568
subq 0x20(%rax), %rcx
movq %rcx, %r13
jmp 0x1568
movq %rdi, %r15
callq 0x1070
movq %rax, %r13
andl $0x0, 0x4(%rax)
leaq 0x8(%rax), %r9
movl %r12d, (%rax)
movl %ebx, 0x3c(%rax)
movq %rax, 0x30(%rax)
movl $0x4, 0x38(%rax)
testq %r14, %r14
je 0x1600
movq %r14, %r8
movq 0x8(%r14), %r12
movq %r12, 0x8(%r13)
andq $0x0, 0x18(%r13)
movq 0x18(%r12), %rax
movq %rax, %rcx
subq 0x20(%r12), %rcx
movq %rcx, 0x10(%r13)
movq %r13, 0x10(%rax)
movq %r9, 0x18(%r12)
movl 0x8(%r12), %ecx
movq (%r12), %rax
jmp 0x1672
movq %r9, %rbp
pushq $0x1
popq %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1050
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movq %rax, 0x8(%r13)
testq %rax, %rax
je 0x193b
movq %rax, %r12
movq %rbp, 0x18(%rax)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r12)
movq $0x8, 0x20(%r12)
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
callq 0x1050
movq %rbp, %r9
movq %rax, (%r12)
movl $0xa0111fe1, 0x38(%r12) # imm = 0xA0111FE1
pushq $0x20
popq %rcx
movq %r13, %r8
testq %rax, %rax
je 0x193b
incl 0x10(%r12)
leal -0x1(%rcx), %edx
andl %ebx, %edx
shlq $0x4, %rdx
movl 0x8(%rax,%rdx), %esi
incl %esi
movl %esi, 0x8(%rax,%rdx)
movq (%rax,%rdx), %rdi
movq %rdi, 0x28(%r13)
andq $0x0, 0x20(%r13)
testq %rdi, %rdi
je 0x16a0
movq %r9, 0x18(%rdi)
addq %rdx, %rax
movq %r9, (%rax)
imull $0xa, 0xc(%rax), %eax
addl $0xa, %eax
cmpl %eax, %esi
pushq $0x1
popq %rdi
jb 0x17d9
cmpl $0x0, 0x34(%r12)
jne 0x17d9
movq %r9, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movl %ecx, %esi
shlq $0x5, %rsi
callq 0x1050
testq %rax, %rax
je 0x193b
movq %rax, %rbx
movl 0x10(%r12), %eax
movb 0xc(%r12), %cl
incb %cl
movl 0x8(%r12), %edx
leal -0x1(,%rdx,2), %esi
movl %esi, %edi
andl %eax, %edi
shrl %cl, %eax
cmpl $0x1, %edi
sbbl $-0x1, %eax
movl %eax, 0x28(%r12)
andl $0x0, 0x2c(%r12)
movq (%r12), %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
cmpq %rdx, %r8
je 0x1795
movq %r8, %r9
shlq $0x4, %r9
movq (%rdi,%r9), %r9
testq %r9, %r9
je 0x1790
movq 0x20(%r9), %r10
movl 0x34(%r9), %r15d
andl %esi, %r15d
shlq $0x4, %r15
leaq (%rbx,%r15), %r11
movl 0x8(%rbx,%r15), %ebp
incl %ebp
movl %ebp, 0x8(%rbx,%r15)
cmpl %eax, %ebp
jbe 0x1773
incl %ecx
movl %ecx, 0x2c(%r12)
movl 0xc(%r11), %r14d
movl %r14d, %r15d
imull %eax, %r15d
cmpl %r15d, %ebp
jbe 0x1773
incl %r14d
movl %r14d, 0xc(%r11)
andq $0x0, 0x18(%r9)
movq (%r11), %r15
movq %r15, 0x20(%r9)
testq %r15, %r15
je 0x1788
movq %r9, 0x18(%r15)
movq %r9, (%r11)
movq %r10, %r9
jmp 0x172d
incq %r8
jmp 0x171d
callq 0x1030
movq 0x28(%rsp), %rax
movq (%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %rbx, (%rax)
movl 0x10(%rax), %ecx
shrl %ecx
cmpl %ecx, 0x2c(%rax)
jbe 0x17d0
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movq 0x20(%rsp), %r8
jb 0x17d9
movl $0x1, 0x34(%rax)
jmp 0x17d9
andl $0x0, 0x30(%rax)
movq 0x20(%rsp), %r8
incl 0xc(%rsp)
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
movl 0x4(%r13), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x4(%r13)
movq 0x30(%rsp), %r14
addl %eax, %r14d
incl %r14d
incl %edx
movl 0x18(%rsp), %ebx
jmp 0x149f
testq %r8, %r8
jne 0x1812
xorl %eax, %eax
movq %r8, %r15
jmp 0x1819
movq %r8, %r15
movq 0x18(%r8), %rax
movq %r8, %rbx
movq %r15, %r12
testq %rbx, %rbx
je 0x1909
movq %rax, %r8
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
jne 0x183f
cmpq $0x0, 0x18(%rbx)
je 0x18ea
leaq 0x8(%rbx), %rax
movq 0x8(%r12), %rcx
cmpq 0x18(%rcx), %rax
jne 0x1859
movq 0x20(%rcx), %rsi
addq %rdx, %rsi
movq %rsi, 0x18(%rcx)
movq 0x18(%rbx), %rsi
movq %rsi, %r15
testq %rdx, %rdx
je 0x1871
movq 0x20(%rcx), %rcx
movq %rsi, 0x10(%rdx,%rcx)
movq %r12, %r15
movq 0x8(%r15), %rcx
testq %rsi, %rsi
je 0x1883
movq 0x20(%rcx), %rdi
movq %rdx, 0x8(%rsi,%rdi)
movl 0x8(%rcx), %edx
decl %edx
andl 0x3c(%rbx), %edx
movq (%rcx), %rsi
shlq $0x4, %rdx
decl 0x8(%rsi,%rdx)
cmpq %rax, (%rsi,%rdx)
jne 0x18a6
addq %rdx, %rsi
movq 0x28(%rbx), %rax
movq %rax, (%rsi)
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdx
testq %rax, %rax
je 0x18b7
movq %rdx, 0x20(%rax)
movq %r8, %r13
testq %rdx, %rdx
je 0x18c3
movq %rax, 0x18(%rdx)
decl 0x10(%rcx)
movq %rbx, %rdi
callq 0x1030
movl $0x0, %eax
movq %r13, %r8
movq %r13, %rbx
movq %r15, %r12
testq %r13, %r13
je 0x181f
jmp 0x1815
movq %r8, %r13
movq 0x8(%r12), %rax
movq (%rax), %rdi
callq 0x1030
movq 0x8(%r12), %rdi
callq 0x1030
xorl %r15d, %r15d
jmp 0x18c6
movq 0x26e8(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x76b(%rip), %rsi       # 0x2085
movl 0xc(%rsp), %ebx
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1060
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdi
callq 0x10c0