// File: /workspace/github_cpp_makefile_star2_O1/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
testl %edi, %edi
jne 0x1683
xorl %r10d, %r10d
xorl %r9d, %r9d
xorl %r12d, %r12d
jmp 0x1b35
movl %esi, %r15d
movl %edi, %ebp
movl %edi, %r14d
shrl $0x2, %r14d
xorl %r8d, %r8d
xorl %r12d, %r12d
xorl %r9d, %r9d
xorl %r10d, %r10d
movl %edi, 0x10(%rsp)
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 %r14d
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, 0xc(%rsp)
testq %r10, %r10
je 0x17c8
movl 0xc(%rsp), %eax
movl $0x112410d, %ecx        # imm = 0x112410D
addl %ecx, %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, %edi
shll $0x10, %edi
xorl %edx, %edi
subl %esi, %ecx
subl %edi, %ecx
movl %edi, %edx
shrl $0x5, %edx
xorl %ecx, %edx
subl %edi, %esi
subl %edx, %esi
movl %edx, %ecx
shrl $0x3, %ecx
xorl %esi, %ecx
subl %edx, %edi
subl %ecx, %edi
movl %ecx, %eax
shll $0xa, %eax
xorl %edi, %eax
addl %eax, %ecx
subl %ecx, %edx
shrl $0xf, %eax
xorl %edx, %eax
movq 0x8(%r10), %rcx
movl 0x8(%rcx), %edx
decl %edx
andl %eax, %edx
movq (%rcx), %rsi
shlq $0x4, %rdx
movq (%rsi,%rdx), %r13
testq %r13, %r13
je 0x17a1
subq 0x20(%rcx), %r13
jmp 0x17a4
xorl %r13d, %r13d
testq %r13, %r13
je 0x17cb
cmpl %eax, 0x3c(%r13)
jne 0x17c2
cmpl $0x4, 0x38(%r13)
jne 0x17c2
movq 0x30(%r13), %rdx
movl (%rdx), %edx
cmpl 0xc(%rsp), %edx
je 0x17cb
movq 0x28(%r13), %r13
jmp 0x1796
xorl %r13d, %r13d
testq %r13, %r13
jne 0x1b18
movq %r9, 0x18(%rsp)
movq %r8, 0x20(%rsp)
movl %r12d, 0x14(%rsp)
movl $0x40, %edi
movq %r10, %r12
callq 0x1070
movq %rax, %r13
movl %ebx, (%rax)
movzbl 0x3(%rax), %eax
shll $0x18, %eax
movzbl 0x2(%r13), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0x1(%r13), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl %bl, %ecx
addl %ecx, %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, %ebx
shll $0xa, %ebx
xorl %eax, %ebx
addl %ebx, %ecx
subl %ecx, %edx
shrl $0xf, %ebx
xorl %edx, %ebx
leaq 0x8(%r13), %rdi
movl $0x0, 0x4(%r13)
movl %ebx, 0x3c(%r13)
movq %r13, 0x30(%r13)
movl $0x4, 0x38(%r13)
testq %r12, %r12
je 0x18d3
movq %r12, %r10
movq 0x8(%r12), %rax
movq %rax, 0x8(%r13)
movq $0x0, 0x18(%r13)
movq 0x8(%r12), %rax
movq 0x18(%rax), %rcx
movq %rcx, %rdx
subq 0x20(%rax), %rdx
movq %rdx, 0x10(%r13)
movq %r13, 0x10(%rcx)
movq %rdi, 0x18(%rax)
jmp 0x1963
movl %ebp, %r14d
movq %rdi, %rbp
movl $0x40, %edi
callq 0x1070
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movq %rax, 0x8(%r13)
testq %rax, %rax
je 0x1b55
movq %rax, %r12
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movq %rbp, 0x18(%rax)
movabsq $0x500000020, %rax      # imm = 0x500000020
movq %rax, 0x8(%r12)
movq $0x8, 0x20(%r12)
movl $0x200, %edi            # imm = 0x200
callq 0x1070
movq %rax, (%r12)
movl $0xa0111fe1, 0x38(%r12) # imm = 0xA0111FE1
testq %rax, %rax
je 0x1b55
movl $0x200, %edx            # imm = 0x200
movq %rax, %rdi
xorl %esi, %esi
callq 0x1050
movq %r13, %r10
movq %rbp, %rdi
movl %r14d, %ebp
movl 0x8(%rsp), %r14d
movq 0x8(%r10), %rcx
incl 0x10(%rcx)
movl 0x8(%rcx), %eax
decl %eax
andl %ebx, %eax
movq (%rcx), %rdx
shlq $0x4, %rax
movl 0x8(%rdx,%rax), %ecx
incl %ecx
movl %ecx, 0x8(%rdx,%rax)
movq (%rdx,%rax), %rsi
movq %rsi, 0x28(%r13)
movq $0x0, 0x20(%r13)
testq %rsi, %rsi
movq 0x20(%rsp), %r8
movq 0x18(%rsp), %r9
je 0x19a5
movq %rdi, 0x18(%rsi)
addq %rax, %rdx
movq %rdi, (%rdx)
movl 0xc(%rdx), %eax
leal (%rax,%rax,4), %eax
leal 0xa(,%rax,2), %eax
cmpl %eax, %ecx
jb 0x1b10
movq (%rdi), %r12
cmpl $0x0, 0x34(%r12)
jne 0x1b10
movq %rdi, 0x28(%rsp)
movq %r10, 0x30(%rsp)
movl 0x8(%r12), %ebx
shlq $0x5, %rbx
movq %rbx, %rdi
callq 0x1070
testq %rax, %rax
je 0x1b55
movq %rax, %rbp
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1050
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)
movl $0x0, 0x2c(%r12)
testq %rdx, %rdx
je 0x1abe
movq (%r12), %rcx
xorl %edi, %edi
movq %rdi, %r8
shlq $0x4, %r8
movq (%rcx,%r8), %r8
testq %r8, %r8
je 0x1ab6
movq 0x20(%r8), %r9
movl 0x34(%r8), %ebx
andl %esi, %ebx
shlq $0x4, %rbx
leaq (%rbx,%rbp), %r10
movl 0x8(%rbp,%rbx), %r11d
incl %r11d
movl %r11d, 0x8(%rbp,%rbx)
cmpl %eax, %r11d
jbe 0x1a93
incl 0x2c(%r12)
movl 0xc(%r10), %r14d
movl %r14d, %ebx
imull %eax, %ebx
cmpl %ebx, %r11d
jbe 0x1a93
incl %r14d
movl %r14d, 0xc(%r10)
movq $0x0, 0x18(%r8)
movq (%r10), %r11
movq %r11, 0x20(%r8)
testq %r11, %r11
je 0x1aab
movq %r8, 0x18(%r11)
movq %r8, (%r10)
movq %r9, %r8
testq %r9, %r9
jne 0x1a54
incq %rdi
cmpq %rdx, %rdi
jne 0x1a44
movq (%r12), %rdi
callq 0x1030
movq 0x28(%rsp), %rax
movq (%rax), %rax
shll 0x8(%rax)
incl 0xc(%rax)
movq %rbp, (%rax)
movl 0x10(%rax), %edx
shrl %edx
xorl %ecx, %ecx
cmpl %edx, 0x2c(%rax)
jbe 0x1ae9
movl 0x30(%rax), %ecx
incl %ecx
movl %ecx, 0x30(%rax)
cmpl $0x2, %ecx
movl 0x10(%rsp), %ebp
movl 0x8(%rsp), %r14d
movq 0x20(%rsp), %r8
movq 0x18(%rsp), %r9
movq 0x30(%rsp), %r10
jb 0x1b10
movl $0x1, 0x34(%rax)
movl 0x14(%rsp), %r12d
incl %r12d
movl 0x4(%r13), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x4(%r13)
addl %eax, %r9d
incl %r9d
incl %r8d
cmpl %ebp, %r8d
jne 0x16a4
movq %r10, %rdi
movl %r12d, %esi
movl %r9d, %edx
callq 0x13c8
movl %r12d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x10c0