// File: /workspace/github_c_makefile_star2_O0/lh3[P]fermi2/correct.c
// Function: fmc_kmer2hash
fmc_hash_t **fmc_kmer2hash(const fmc_opt_t *opt, fmc64_v *a)
{
	int i, n = 1 << opt->c.suf_len*2;
	fmc_hash_t **h;
	double t;
	t = cputime();
	fprintf(stderr, "[M::%s] constructing the hash table... ", __func__);
	h = calloc(n, sizeof(void*));
	for (i = 0; i < n; ++i) {
		size_t j;
		int absent;
		fmc64_v *ai = &a[i];
		h[i] = kh_init(fmc);
		kh_resize(fmc, h[i], (int)(ai->n / .7 + 1.));
		for (j = 0; j < ai->n; ++j)
			kh_put(fmc, h[i], ai->a[j], &absent);
		assert(kh_size(h[i]) == ai->n);
		free(ai->a);
	}
	fprintf(stderr, "in %.3f CPU sec\n", cputime() - t);
	free(a);
	return h;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
shlq $0x20, %rax
sarq $0x30, %rax
movl %eax, %ecx
shll %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x18(%rbp)
callq 0x4cd0
movsd %xmm0, -0x28(%rbp)
movq 0x2a84a(%rip), %rax     # 0x32ff8
movq (%rax), %rdi
leaq 0x23e08(%rip), %rsi     # 0x2c5c0
leaq 0x23e29(%rip), %rdx     # 0x2c5e8
movb $0x0, %al
callq 0x21d0
movslq -0x18(%rbp), %rdi
movl $0x8, %esi
callq 0x21a0
movq %rax, -0x20(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x8906
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
callq 0x8950
movq %rax, %rdx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %xmm0
movaps 0x23c72(%rip), %xmm1    # 0x2c4a0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x23c76(%rip), %xmm1    # 0x2c4b0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x23c2f(%rip), %xmm1    # 0x2c480
divsd %xmm1, %xmm0
movsd 0x23b9b(%rip), %xmm1    # 0x2c3f8
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
callq 0x8970
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x88b2
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq -0x34(%rbp), %rdx
callq 0x8d20
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x8872
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %eax
movq -0x40(%rbp), %rcx
cmpq (%rcx), %rax
jne 0x88cc
jmp 0x88eb
leaq 0x23d23(%rip), %rdi     # 0x2c5f6
leaq 0x23c21(%rip), %rsi     # 0x2c4fb
movl $0x188, %edx            # imm = 0x188
leaq 0x23d27(%rip), %rcx     # 0x2c60d
callq 0x2140
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2040
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x87df
movq 0x2a6eb(%rip), %rax     # 0x32ff8
movq (%rax), %rax
movq %rax, -0x48(%rbp)
callq 0x4cd0
movq -0x48(%rbp), %rdi
subsd -0x28(%rbp), %xmm0
leaq 0x23d1d(%rip), %rsi     # 0x2c646
movb $0x1, %al
callq 0x21d0
movq -0x10(%rbp), %rdi
callq 0x2040
movq -0x20(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)