// File: /workspace/github_c_makefile_star2_O3/lh3[P]fermi2/correct.c
// Function: fmc_collect
fmc64_v *fmc_collect(fmc_opt_t *opt, const char *fn_fmi)
{
	rld_t *e;
	double tc, tr;
	int depth = opt->c.k - opt->c.suf_len, n_suf = 1 << opt->c.suf_len*2;
	for_collect_t f;

	assert(0 < depth && depth <= 18);

	fprintf(stderr, "[M::%s] reading the FMD-index... ", __func__);
	tc = cputime(); tr = realtime();
	e = rld_restore(fn_fmi);
	fprintf(stderr, " in %.3f sec (%.3f CPU sec)\n", realtime() - tr, cputime() - tc);

	fprintf(stderr, "[M::%s] collecting high occurrence k-mers... ", __func__);
	tc = cputime(); tr = realtime();
	f.e = e; f.opt = opt; f.depth = depth;
	f.suf = fmc_traverse(e, opt->c.suf_len);
	f.qtab[0] = fmc_precal_qtab(1<<8, opt->c.err, 0.5,      opt->c.a1, opt->c.a2, opt->c.prior);
	f.qtab[1] = fmc_precal_qtab(1<<8, opt->c.err, 0.333333, opt->c.a1, opt->c.a2, opt->c.prior);
	f.kmer = calloc(n_suf, sizeof(fmc64_v));
	kt_for(opt->n_threads, collect_func, &f, n_suf);
	rld_destroy(e);
	free(f.qtab[0]); free(f.qtab[1]); free(f.suf);
	fprintf(stderr, "in %.3f sec (%.3f CPU sec)\n", realtime() - tr, cputime() - tc);

	fmc_kmer_stat(opt->c.suf_len, f.kmer);
	return f.kmer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl (%rdi), %ecx
movswl %cx, %ebp
sarl $0x10, %ecx
subl %ecx, %ebp
leal -0x1(%rbp), %eax
cmpl $0x12, %eax
jae 0x71a2
movq %rsi, %r12
movq %rdi, %rbx
addl %ecx, %ecx
movl $0x1, %r14d
shll %cl, %r14d
movq 0x1e00a(%rip), %r15     # 0x24ff8
movq (%r15), %rdi
leaq 0x1670d(%rip), %rsi     # 0x1d705
leaq 0x16728(%rip), %rdx     # 0x1d727
xorl %eax, %eax
callq 0x21c0
callq 0x4fe7
movsd %xmm0, 0x8(%rsp)
callq 0x502a
movsd %xmm0, (%rsp)
movq %r12, %rdi
callq 0x4119
movq %rax, %r12
movq (%r15), %r13
callq 0x502a
subsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
callq 0x4fe7
movapd %xmm0, %xmm1
subsd 0x8(%rsp), %xmm1
leaq 0x1685e(%rip), %rsi     # 0x1d8ac
movq %r13, %rdi
movsd (%rsp), %xmm0
movb $0x2, %al
callq 0x21c0
movq (%r15), %rdi
movq %r15, %r13
leaq 0x166c9(%rip), %rsi     # 0x1d733
leaq 0x166b6(%rip), %rdx     # 0x1d727
xorl %eax, %eax
callq 0x21c0
callq 0x4fe7
movsd %xmm0, 0x8(%rsp)
callq 0x502a
movsd %xmm0, (%rsp)
leaq 0x10(%rsp), %r15
movq %r12, 0x8(%r15)
movq %rbx, (%r15)
movl %ebp, 0x30(%r15)
movswl 0x2(%rbx), %esi
movq %r12, %rdi
callq 0x695a
movq %rax, 0x20(%r15)
movsd 0x20(%rbx), %xmm0
movsd 0x10(%rbx), %xmm2
movsd 0x18(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
movsd 0x1653f(%rip), %xmm1    # 0x1d608
movl $0x100, %edi            # imm = 0x100
callq 0x67fe
movq %rax, 0x10(%r15)
movsd 0x20(%rbx), %xmm0
movsd 0x10(%rbx), %xmm2
movsd 0x18(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
movsd 0x1651d(%rip), %xmm1    # 0x1d610
movl $0x100, %edi            # imm = 0x100
callq 0x67fe
movq %rax, 0x18(%r15)
movl $0x18, %esi
movq %r14, %rdi
callq 0x2190
movq %rax, 0x28(%r15)
movl 0x30(%rbx), %edi
leaq 0xa5(%rip), %rsi        # 0x71c1
movq %r15, %rdx
movq %r14, %rcx
callq 0x340c
movq %r12, %rdi
callq 0x36d4
movq 0x10(%r15), %rdi
callq 0x2040
movq 0x18(%r15), %rdi
callq 0x2040
movq 0x20(%r15), %rdi
callq 0x2040
movq (%r13), %r14
callq 0x502a
subsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
callq 0x4fe7
movapd %xmm0, %xmm1
subsd 0x8(%rsp), %xmm1
leaq 0x1673a(%rip), %rsi     # 0x1d8ad
movq %r14, %rdi
movsd (%rsp), %xmm0
movb $0x2, %al
callq 0x21c0
movswl 0x2(%rbx), %edi
movq 0x28(%r15), %rsi
callq 0x241f
movq 0x28(%r15), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x16509(%rip), %rdi     # 0x1d6b2
leaq 0x1651b(%rip), %rsi     # 0x1d6cb
leaq 0x1651e(%rip), %rcx     # 0x1d6d5
movl $0x13c, %edx            # imm = 0x13C
callq 0x2120