// File: /workspace/github_cpp_makefile_star2_O3/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
xorl %r15d, %r15d
movl $0x0, %r14d
testl %edi, %edi
je 0x1a2b
movl %esi, %r9d
movl %edi, %eax
shrl $0x2, %eax
movl %eax, 0xc(%rsp)
xorl %r8d, %r8d
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %ebp, %ebp
movl %edi, 0x8(%rsp)
movl %r9d, %eax
shll $0xf, %eax
notl %eax
addl %r9d, %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, %r9d
shrl $0x10, %r9d
xorl %eax, %r9d
movl %r9d, %eax
xorl %edx, %edx
divl 0xc(%rsp)
movl %edx, %eax
shll $0xf, %eax
notl %eax
addl %edx, %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, %ebx
shrl $0x10, %ebx
xorl %eax, %ebx
movl %ebx, 0x14(%rsp)
movl %ebx, %ecx
andl $0xff00, %ecx           # imm = 0xFF00
movzbl %bl, %edx
andl $0xffff0000, %eax       # imm = 0xFFFF0000
orl %ecx, %eax
addl %edx, %eax
addl $0x112410d, %eax        # imm = 0x112410D
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, %r12d
shll $0xa, %r12d
xorl %eax, %r12d
addl %r12d, %ecx
subl %ecx, %edx
shrl $0xf, %r12d
xorl %edx, %r12d
testq %rbp, %rbp
je 0x178d
movq 0x8(%rbp), %rax
movl 0x8(%rax), %ecx
decl %ecx
andl %r12d, %ecx
movq (%rax), %rdx
shlq $0x4, %rcx
movq (%rdx,%rcx), %r13
testq %r13, %r13
je 0x178d
subq 0x20(%rax), %r13
cmpl %r12d, 0x3c(%r13)
jne 0x1787
cmpl $0x4, 0x38(%r13)
jne 0x1787
movq 0x30(%r13), %rcx
movl (%rcx), %ecx
cmpl 0x14(%rsp), %ecx
je 0x1a06
movq 0x28(%r13), %r13
jmp 0x1761
movl %r9d, 0x10(%rsp)
movq %r8, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movl $0x40, %edi
callq 0x1070
movq %rax, %r13
leaq 0x8(%rax), %r8
movl %ebx, (%rax)
movl $0x0, 0x4(%rax)
movl %r12d, 0x3c(%rax)
movq %rax, 0x30(%rax)
movl $0x4, 0x38(%rax)
testq %rbp, %rbp
je 0x17ff
movq %rbp, 0x18(%rsp)
movq 0x8(%rbp), %rbp
movq %rbp, 0x8(%r13)
movq $0x0, 0x18(%r13)
movq 0x18(%rbp), %rax
movq %rax, %rcx
subq 0x20(%rbp), %rcx
movq %rcx, 0x10(%r13)
movq %r13, 0x10(%rax)
movq %r8, 0x18(%rbp)
movl 0x8(%rbp), %ecx
movq (%rbp), %rax
jmp 0x1873
movq %r8, %rbx
movl $0x1, %edi
movl $0x40, %esi
callq 0x1050
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movq %rax, 0x8(%r13)
testq %rax, %rax
je 0x1a5b
movq %rax, %rbp
movq %rbx, 0x18(%rax)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%rbp)
movq $0x8, 0x20(%rbp)
movl $0x1, %edi
movl $0x200, %esi            # imm = 0x200
callq 0x1050
movq %rax, (%rbp)
movl $0xa0111fe1, 0x38(%rbp) # imm = 0xA0111FE1
testq %rax, %rax
je 0x1a5b
movl $0x20, %ecx
movq %r13, 0x18(%rsp)
movq %rbx, %r8
incl 0x10(%rbp)
leal -0x1(%rcx), %esi
andl %r12d, %esi
shlq $0x4, %rsi
movl 0x8(%rax,%rsi), %edx
incl %edx
movl %edx, 0x8(%rax,%rsi)
movq (%rax,%rsi), %rdi
movq %rdi, 0x28(%r13)
movq $0x0, 0x20(%r13)
testq %rdi, %rdi
je 0x18a3
movq %r8, 0x18(%rdi)
addq %rsi, %rax
movq %r8, (%rax)
movl 0xc(%rax), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %eax
cmpl %eax, %edx
jb 0x19eb
cmpl $0x0, 0x34(%rbp)
jne 0x19eb
movq %r8, 0x20(%rsp)
movl %r14d, 0x4(%rsp)
movl %ecx, %esi
shlq $0x5, %rsi
movl $0x1, %edi
callq 0x1050
testq %rax, %rax
je 0x1a5b
movq %rax, %rbx
movl 0x10(%rbp), %eax
movb 0xc(%rbp), %cl
incb %cl
movl 0x8(%rbp), %edx
leal -0x1(,%rdx,2), %esi
movl %esi, %edi
andl %eax, %edi
shrl %cl, %eax
cmpl $0x1, %edi
sbbl $-0x1, %eax
movl %eax, 0x28(%rbp)
movl $0x0, 0x2c(%rbp)
movq (%rbp), %rdi
testq %rdx, %rdx
je 0x19a4
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r8, %r9
shlq $0x4, %r9
movq (%rdi,%r9), %r9
testq %r9, %r9
je 0x199c
movq 0x20(%r9), %r10
movl 0x34(%r9), %r14d
andl %esi, %r14d
shlq $0x4, %r14
leaq (%rbx,%r14), %r11
movl 0x8(%rbx,%r14), %r12d
incl %r12d
movl %r12d, 0x8(%rbx,%r14)
cmpl %eax, %r12d
jbe 0x1979
incl %ecx
movl %ecx, 0x2c(%rbp)
movl 0xc(%r11), %r15d
movl %r15d, %r14d
imull %eax, %r14d
cmpl %r14d, %r12d
jbe 0x1979
incl %r15d
movl %r15d, 0xc(%r11)
movq $0x0, 0x18(%r9)
movq (%r11), %r14
movq %r14, 0x20(%r9)
testq %r14, %r14
je 0x1991
movq %r9, 0x18(%r14)
movq %r9, (%r11)
movq %r10, %r9
testq %r10, %r10
jne 0x1938
incq %r8
cmpq %rdx, %r8
jne 0x1928
callq 0x1030
movq 0x20(%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 0x19df
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movl 0x4(%rsp), %r14d
jb 0x19eb
movl $0x1, 0x34(%rax)
jmp 0x19eb
movl $0x0, 0x30(%rax)
movl 0x4(%rsp), %r14d
incl %r14d
movq 0x30(%rsp), %r15
movl 0x8(%rsp), %edi
movq 0x28(%rsp), %r8
movl 0x10(%rsp), %r9d
movq 0x18(%rsp), %rbp
movl 0x4(%r13), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x4(%r13)
addl %eax, %r15d
incl %r15d
incl %r8d
cmpl %edi, %r8d
jne 0x165d
movq %rbp, %rdi
callq 0x13c8
movq 0x25c6(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x649(%rip), %rsi       # 0x2085
movl %r14d, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1060
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x10c0