// File: /workspace/github_cpp_makefile_star2_O1/attractivechaos[P]udb2/mlib/test.c
// Function: test_int
uint32_t test_int(uint32_t n, uint32_t x0)
{
	uint32_t i, x, z = 0;
	intmap_t h;
	intmap_init(h);
	for (i = 0, x = x0; i < n; ++i) {
		uint32_t key;
		int *p;
		x = hash32(x);
		key = get_key(n, x);
		p = intmap_get(h, key);
#ifndef UDB2_TEST_DEL
		if (p == 0) {
			intmap_set_at(h, key, 1);
			++z;
		} else z += ++*p;
#else
		if (p == 0) {
			intmap_set_at(h, key, 1);
			++z;
		} else intmap_erase(h, key);
#endif
	}
	fprintf(stderr, "# unique keys: %ld; checksum: %u\n", intmap_size(h), z);
	x = intmap_size(h);
	intmap_clear(h);
	return x;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %r15d
movl %edi, %ebp
movl $0x80, %edi
callq 0x1080
testq %rax, %rax
je 0x1e3c
movq %rax, %rbx
xorl %eax, %eax
movl $0xffffffff, (%rbx,%rax,8) # imm = 0xFFFFFFFF
incq %rax
cmpq $0x10, %rax
jne 0x16be
testl %ebp, %ebp
jne 0x1761
xorl %r14d, %r14d
movl $0xf, %ebp
movl $0xa, %r12d
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
movq 0x3902(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x19e5(%rip), %rsi      # 0x30e5
movq %r14, %rdx
xorl %eax, %eax
callq 0x1070
cmpq %r14, 0x8(%rsp)
ja 0x1f81
cmpq %r12, %r14
ja 0x1f8a
testq %rbx, %rbx
je 0x1f93
leaq 0x1(%rbp), %rax
testq %rbp, %rax
jne 0x1f9c
cmpq $0xf, %rax
jbe 0x1fa5
cmpq %rax, %r12
ja 0x1fae
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, 0x38(%rsp)
shrl $0x2, %ebp
movl %ebp, 0x3c(%rsp)
movl $0xa, %r12d
movl $0xf, %ebp
pxor %xmm0, %xmm0
xorl %r13d, %r13d
xorl %ecx, %ecx
xorl %r9d, %r9d
movq $0x0, 0x8(%rsp)
xorl %r14d, %r14d
movl %r15d, %eax
shll $0xf, %eax
notl %eax
addl %r15d, %eax
movl %eax, %edx
shrl $0xa, %edx
xorl %eax, %edx
leal (%rdx,%rdx,8), %eax
movl %eax, %edx
shrl $0x6, %edx
xorl %eax, %edx
movl %edx, %eax
shll $0xb, %eax
notl %eax
addl %edx, %eax
movl %eax, %r15d
shrl $0x10, %r15d
xorl %eax, %r15d
movl %r15d, %eax
xorl %edx, %edx
divl 0x3c(%rsp)
cmpq %r14, 0x8(%rsp)
ja 0x1e41
cmpq %r12, %r14
ja 0x1e4a
leaq 0x1(%rbp), %rax
testq %rbp, %rax
jne 0x1e53
cmpq $0xf, %rax
jbe 0x1e5c
cmpq %rax, %r12
ja 0x1e65
movl %edx, %esi
shll $0xf, %esi
notl %esi
addl %edx, %esi
movl %esi, %edx
shrl $0xa, %edx
xorl %esi, %edx
leal (%rdx,%rdx,8), %edx
movl %edx, %esi
shrl $0x6, %esi
xorl %edx, %esi
movl %esi, %edi
shll $0xb, %edi
notl %edi
addl %esi, %edi
movl %edi, %edx
shrl $0x10, %edx
xorl %edi, %edx
cmpl $-0x2, %edx
je 0x1e6e
cmpl $-0x1, %edx
je 0x1e77
movq %rcx, 0x18(%rsp)
movl %edx, %esi
shll $0xb, %esi
xorl %edx, %esi
andl %ebp, %esi
leaq (%rbx,%rsi,8), %r8
movl (%r8), %edi
cmpl %edx, %edi
jne 0x1908
leaq 0x4(%r8), %r11
testq %r11, %r11
je 0x1874
movl (%r11), %eax
leal 0x1(%rax), %edx
movl %edx, (%r11)
movq 0x18(%rsp), %rcx
addl %eax, %ecx
incl %ecx
jmp 0x18f5
testq %rbx, %rbx
je 0x1e97
cmpl $-0x2, %edx
je 0x1e8e
cmpl $-0x1, %edx
je 0x1ea0
cmpl %edx, %edi
je 0x1919
cmpl $-0x1, %edi
jne 0x1928
movq 0x18(%rsp), %rcx
movl %edx, (%rbx,%rsi,8)
movl $0x1, 0x4(%rbx,%rsi,8)
incq %r14
incq %r9
cmpq %r12, %r9
jae 0x1988
cmpq %r14, 0x8(%rsp)
ja 0x1ea9
cmpq %r12, %r14
ja 0x1ebb
leaq 0x1(%rbp), %rax
testq %rbp, %rax
jne 0x1ec4
cmpq $0xf, %rax
jbe 0x1ecd
cmpq %rax, %r12
ja 0x1eb2
incl %ecx
incl %r13d
cmpl 0x38(%rsp), %r13d
jne 0x178f
jmp 0x16ef
cmpl $-0x1, %edi
jne 0x1ded
xorl %r11d, %r11d
jmp 0x1858
movl $0x1, 0x4(%r8)
movq 0x18(%rsp), %rcx
jmp 0x18f3
cmpl $-0x2, %edi
movq $-0x1, %rdi
cmoveq %rsi, %rdi
movl $0x1, %ecx
addq %rcx, %rsi
andq %rbp, %rsi
movl (%rbx,%rsi,8), %r8d
cmpl %edx, %r8d
je 0x1dd2
incq %rcx
cmpq %rbp, %rcx
ja 0x1fc8
cmpq $-0x1, %rdi
movq %rdi, %r10
cmoveq %rsi, %r10
cmpl $-0x2, %r8d
cmoveq %r10, %rdi
cmpl $-0x1, %r8d
jne 0x193b
xorl %ecx, %ecx
cmpq $-0x1, %rdi
setne %cl
cmovneq %rdi, %rsi
subq %rcx, %r9
jmp 0x1dda
movq %rbp, %rcx
shrq %rcx
movq %rax, %rdx
cmpq %rcx, %r14
movl $0x0, %r8d
jbe 0x19b3
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, %rbp
jae 0x1f03
leaq (%rax,%rax), %rdx
cmpq %rdx, %rax
ja 0x2033
leaq -0x1(%rdx), %r9
testq %r9, %rdx
jne 0x1fd4
cmpq %rdx, %rax
movq %rdx, 0x10(%rsp)
jae 0x1b1f
movq %r9, %r12
movq %rdx, %rax
shrq $0x3d, %rax
jne 0x1e35
leaq (,%rdx,8), %rsi
movq %rbx, %rdi
callq 0x1090
movq %rax, %rbx
testq %rbx, %rbx
movl $0x0, %r8d
movdqa 0x1635(%rip), %xmm5     # 0x3040
movdqa 0x163d(%rip), %xmm6     # 0x3050
movdqa 0x1645(%rip), %xmm7     # 0x3060
pcmpeqd %xmm8, %xmm8
je 0x1f08
movq %rbp, %rcx
notq %rcx
movq 0x10(%rsp), %rdx
leaq (%rdx,%rcx), %rax
addq $0x3, %rax
andq $-0x4, %rax
addq %rdx, %rcx
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq (%rbx,%rbp,8), %rcx
addq $0x20, %rcx
pxor %xmm7, %xmm0
xorl %edx, %edx
movq %r12, %r9
movq %rdx, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
movdqa %xmm1, %xmm2
por %xmm6, %xmm2
pxor %xmm7, %xmm2
movdqa %xmm2, %xmm3
pcmpgtd %xmm0, %xmm3
pcmpeqd %xmm0, %xmm2
pshufd $0xf5, %xmm2, %xmm4     # xmm4 = xmm2[1,1,3,3]
pand %xmm3, %xmm4
pshufd $0xf5, %xmm3, %xmm2     # xmm2 = xmm3[1,1,3,3]
por %xmm4, %xmm2
movd %xmm2, %esi
notl %esi
testb $0x1, %sil
je 0x1aa6
movl $0xffffffff, -0x18(%rcx,%rdx,8) # imm = 0xFFFFFFFF
pxor %xmm8, %xmm2
pextrw $0x4, %xmm2, %esi
testb $0x1, %sil
je 0x1abe
movl $0xffffffff, -0x10(%rcx,%rdx,8) # imm = 0xFFFFFFFF
por %xmm5, %xmm1
pxor %xmm7, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm0, %xmm2
pcmpeqd %xmm0, %xmm1
pshufd $0xf5, %xmm1, %xmm3     # xmm3 = xmm1[1,1,3,3]
pand %xmm2, %xmm3
pshufd $0xf5, %xmm2, %xmm1     # xmm1 = xmm2[1,1,3,3]
por %xmm3, %xmm1
pxor %xmm8, %xmm1
pextrw $0x0, %xmm1, %esi
testb $0x1, %sil
je 0x1afc
movl $0xffffffff, -0x8(%rcx,%rdx,8) # imm = 0xFFFFFFFF
pextrw $0x4, %xmm1, %esi
testb $0x1, %sil
je 0x1b0e
movl $0xffffffff, (%rcx,%rdx,8) # imm = 0xFFFFFFFF
addq $0x4, %rdx
cmpq %rdx, %rax
jne 0x1a5e
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0x1(%rbp), %rdx
xorl %r12d, %r12d
movl (%rbx,%r12,8), %ecx
cmpl $-0x3, %ecx
ja 0x1b6a
movl %ecx, %eax
shll $0xb, %eax
xorl %ecx, %eax
andl %r9d, %eax
cmpq %rax, %r12
je 0x1b72
cmpl $-0x2, (%rbx,%rax,8)
jb 0x1b7f
leaq (%rbx,%rax,8), %rax
movl %ecx, (%rax)
movl %r8d, (%rbx,%r12,8)
movl 0x4(%rbx,%r12,8), %ecx
movl %ecx, 0x4(%rax)
movl %r8d, 0x4(%rbx,%r12,8)
movl $0xffffffff, (%rbx,%r12,8) # imm = 0xFFFFFFFF
incq %r12
cmpq %r12, %rdx
jne 0x1b35
jmp 0x1c3e
leaq 0x20(%rsp), %rdi
movq %r9, 0x8(%rsp)
movq %rdx, 0x40(%rsp)
callq 0x204b
movq 0x40(%rsp), %rdx
movq 0x8(%rsp), %r9
xorl %r8d, %r8d
movl (%rbx,%r12,8), %ecx
jmp 0x1b57
testq %rdi, %rdi
je 0x1f67
movl -0x8(%rdi,%rax,8), %edx
movl %edx, %ecx
shll $0xb, %ecx
xorl %edx, %ecx
andl %r9d, %ecx
cmpl $-0x1, (%rbx,%rcx,8)
je 0x1be4
movl $0x1, %edx
leaq 0x1(%rdx), %rsi
cmpq %rbp, %rsi
ja 0x1eec
addq %rdx, %rcx
andq %r9, %rcx
cmpl $-0x1, (%rbx,%rcx,8)
movq %rsi, %rdx
jne 0x1bc8
leaq -0x1(%rax), %rdx
movq %rdx, 0x20(%rsp)
movq -0x8(%rdi,%rax,8), %rax
movq %rax, (%rbx,%rcx,8)
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rax
cmpq %rax, %rdx
ja 0x1f4d
movq 0x30(%rsp), %rcx
testq %rdx, %rdx
setne %dl
testq %rcx, %rcx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x1f44
testq %rcx, %rcx
sete %cl
testq %rax, %rax
setne %al
andb %cl, %al
cmpb $0x1, %al
je 0x1f3b
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
ja 0x1f24
testq %rax, %rax
setne %dl
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x1f1b
testq %rdi, %rdi
sete %dl
testq %rcx, %rcx
setne %cl
andb %dl, %cl
cmpb $0x1, %cl
je 0x1f12
testq %rax, %rax
jne 0x1ba6
movq %r9, %rbp
movq %r8, 0x20(%rsp)
callq 0x1030
movq 0x10(%rsp), %r10
movsd 0x1386(%rip), %xmm5     # 0x3030
movsd 0x1376(%rip), %xmm4     # 0x3028
movsd 0x1366(%rip), %xmm3     # 0x3020
movapd 0x13be(%rip), %xmm2     # 0x3080
movq 0x13a6(%rip), %xmm1     # 0x3070
xorl %r9d, %r9d
movq $0x1, 0x28(%rsp)
movq %r10, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
mulsd %xmm3, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd %xmm4, %xmm0
cvttsd2si %xmm0, %r12
andq %rcx, %r12
orq %rax, %r12
mulsd %xmm5, %xmm1
cvttsd2si %xmm1, %rax
decq %r12
movq %rax, %rcx
sarq $0x3f, %rcx
subsd %xmm4, %xmm1
cvttsd2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movq %rdx, 0x8(%rsp)
cmpq $0x1, %r10
movq %r10, %rdx
adcq %r9, %rdx
movq %r9, 0x30(%rsp)
xorl %esi, %esi
xorl %ecx, %ecx
xorl %eax, %eax
movl (%rbx,%rsi,8), %edi
xorl %r8d, %r8d
cmpl $-0x1, %edi
sete %r8b
addq %r8, %rax
xorl %r8d, %r8d
cmpl $-0x2, %edi
sete %r8b
addq %r8, %rcx
incq %rsi
cmpq %rsi, %rdx
jne 0x1d4e
cmpq $0x11, %r10
movq 0x8(%rsp), %rdx
cmovbq %r9, %rdx
movq %rdx, 0x8(%rsp)
testq %rcx, %rcx
jne 0x1fe0
addq %r14, %rax
cmpq %r10, %rax
movq 0x18(%rsp), %rcx
xorpd %xmm0, %xmm0
jne 0x1fe9
cmpq %r14, 0x8(%rsp)
ja 0x2003
cmpq %r12, %r14
ja 0x200f
cmpq $0xf, %r10
jbe 0x201b
cmpq %r10, %r12
ja 0x2027
movq %r14, %r9
jmp 0x18bf
movl $0x1, 0x4(%rbx,%rsi,8)
cmpl %edx, %r8d
movq 0x18(%rsp), %rcx
jne 0x18a5
jmp 0x18f3
movl $0x1, %r10d
movq %rsi, %rcx
addq %r10, %rcx
andq %rbp, %rcx
movl (%rbx,%rcx,8), %r11d
cmpl %edx, %r11d
je 0x1e28
movl %r11d, 0x10(%rsp)
incq %r10
cmpq %rbp, %r10
ja 0x203f
movl $0x0, %r11d
cmpl $-0x1, 0x10(%rsp)
jne 0x1df6
jmp 0x1858
leaq (%rbx,%rcx,8), %r11
addq $0x4, %r11
jmp 0x1858
xorl %ebx, %ebx
jmp 0x19fa
callq 0x1442
leaq 0x1314(%rip), %rdi      # 0x315c
jmp 0x1e7e
leaq 0x1330(%rip), %rdi      # 0x3181
jmp 0x1e7e
leaq 0x1367(%rip), %rdi      # 0x31c1
jmp 0x1e7e
leaq 0x1389(%rip), %rdi      # 0x31ec
jmp 0x1e7e
leaq 0x1395(%rip), %rdi      # 0x3201
jmp 0x1e7e
leaq 0x140e(%rip), %rdi      # 0x3283
jmp 0x1e7e
leaq 0x13e2(%rip), %rdi      # 0x3260
leaq 0x12c4(%rip), %rsi      # 0x3149
leaq 0x139b(%rip), %rcx      # 0x3227
jmp 0x1ee2
leaq 0x13ee(%rip), %rdi      # 0x3283
jmp 0x1ed4
leaq 0x1308(%rip), %rdi      # 0x31a6
jmp 0x1ed4
leaq 0x13b9(%rip), %rdi      # 0x3260
jmp 0x1ed4
leaq 0x12ac(%rip), %rdi      # 0x315c
jmp 0x1ed4
leaq 0x1348(%rip), %rdi      # 0x3201
jmp 0x1ed4
leaq 0x12bf(%rip), %rdi      # 0x3181
jmp 0x1ed4
leaq 0x12f6(%rip), %rdi      # 0x31c1
jmp 0x1ed4
leaq 0x1318(%rip), %rdi      # 0x31ec
leaq 0x126e(%rip), %rsi      # 0x3149
leaq 0x13d6(%rip), %rcx      # 0x32b8
movl $0xe, %edx
callq 0x1060
leaq 0x149b(%rip), %rdi      # 0x338e
leaq 0x124f(%rip), %rsi      # 0x3149
leaq 0x1419(%rip), %rcx      # 0x331a
jmp 0x1ee2
callq 0x13d8
movq 0x10(%rsp), %rdi
callq 0x140b
leaq 0x153b(%rip), %rdi      # 0x3454
jmp 0x1f2b
leaq 0x150d(%rip), %rdi      # 0x342f
jmp 0x1f2b
leaq 0x14f0(%rip), %rdi      # 0x341b
leaq 0x1217(%rip), %rsi      # 0x3149
leaq 0x15c9(%rip), %rcx      # 0x3502
jmp 0x1ee2
leaq 0x1512(%rip), %rdi      # 0x3454
jmp 0x1f54
leaq 0x14e4(%rip), %rdi      # 0x342f
jmp 0x1f54
leaq 0x14c7(%rip), %rdi      # 0x341b
leaq 0x11ee(%rip), %rsi      # 0x3149
leaq 0x1627(%rip), %rcx      # 0x3589
jmp 0x1ee2
leaq 0x14c1(%rip), %rdi      # 0x342f
leaq 0x11d4(%rip), %rsi      # 0x3149
leaq 0x15c8(%rip), %rcx      # 0x3544
jmp 0x1ee2
leaq 0x11d4(%rip), %rdi      # 0x315c
jmp 0x1fb5
leaq 0x11f0(%rip), %rdi      # 0x3181
jmp 0x1fb5
leaq 0x120c(%rip), %rdi      # 0x31a6
jmp 0x1fb5
leaq 0x121e(%rip), %rdi      # 0x31c1
jmp 0x1fb5
leaq 0x1240(%rip), %rdi      # 0x31ec
jmp 0x1fb5
leaq 0x124c(%rip), %rdi      # 0x3201
leaq 0x118d(%rip), %rsi      # 0x3149
leaq 0x1681(%rip), %rcx      # 0x3644
jmp 0x1ee2
leaq 0x12d9(%rip), %rdi      # 0x32a8
jmp 0x1ed4
leaq 0x137e(%rip), %rdi      # 0x3359
jmp 0x1ef3
leaq 0x15f2(%rip), %rdi      # 0x35d9
jmp 0x1ff0
leaq 0x1634(%rip), %rdi      # 0x3624
leaq 0x1152(%rip), %rsi      # 0x3149
leaq 0x15e4(%rip), %rcx      # 0x35e2
jmp 0x1ee2
leaq 0x1391(%rip), %rdi      # 0x339b
jmp 0x1ef3
leaq 0x13a4(%rip), %rdi      # 0x33ba
jmp 0x1ef3
leaq 0x13b7(%rip), %rdi      # 0x33d9
jmp 0x1ef3
leaq 0x13bd(%rip), %rdi      # 0x33eb
jmp 0x1ef3
leaq 0x12cd(%rip), %rdi      # 0x3307
jmp 0x1ef3
leaq 0x1262(%rip), %rdi      # 0x32a8
jmp 0x1e7e