// File: /workspace/github_c_makefile_star2_O1/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 0x7456
movq %rsi, %r12
movq %rdi, %rbx
addl %ecx, %ecx
movl $0x1, %r14d
shll %cl, %r14d
movq 0x1cd56(%rip), %r15     # 0x23ff8
movq (%r15), %rdi
leaq 0x152e1(%rip), %rsi     # 0x1c58d
leaq 0x152fc(%rip), %rdx     # 0x1c5af
xorl %eax, %eax
callq 0x21c0
callq 0x5117
movsd %xmm0, 0x8(%rsp)
callq 0x515a
movsd %xmm0, (%rsp)
movq %r12, %rdi
callq 0x436c
movq %rax, %r12
movq (%r15), %r13
callq 0x515a
subsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
callq 0x5117
movapd %xmm0, %xmm1
subsd 0x8(%rsp), %xmm1
leaq 0x15432(%rip), %rsi     # 0x1c734
movq %r13, %rdi
movsd (%rsp), %xmm0
movb $0x2, %al
callq 0x21c0
movq (%r15), %rdi
movq %r15, %r13
leaq 0x1529d(%rip), %rsi     # 0x1c5bb
leaq 0x1528a(%rip), %rdx     # 0x1c5af
xorl %eax, %eax
callq 0x21c0
callq 0x5117
movsd %xmm0, 0x8(%rsp)
callq 0x515a
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 0x6beb
movq %rax, 0x20(%r15)
movsd 0x20(%rbx), %xmm0
movsd 0x10(%rbx), %xmm2
movsd 0x18(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
movsd 0x15123(%rip), %xmm1    # 0x1c4a0
movl $0x100, %edi            # imm = 0x100
callq 0x6a8f
movq %rax, 0x10(%r15)
movsd 0x20(%rbx), %xmm0
movsd 0x10(%rbx), %xmm2
movsd 0x18(%rbx), %xmm3
movsd 0x28(%rbx), %xmm4
movsd 0x15101(%rip), %xmm1    # 0x1c4a8
movl $0x100, %edi            # imm = 0x100
callq 0x6a8f
movq %rax, 0x18(%r15)
movl $0x18, %esi
movq %r14, %rdi
callq 0x2190
movq %rax, 0x28(%r15)
movl 0x30(%rbx), %edi
leaq 0xa5(%rip), %rsi        # 0x7475
movq %r15, %rdx
movq %r14, %rcx
callq 0x360c
movq %r12, %rdi
callq 0x38cc
movq 0x10(%r15), %rdi
callq 0x2040
movq 0x18(%r15), %rdi
callq 0x2040
movq 0x20(%r15), %rdi
callq 0x2040
movq (%r13), %r14
callq 0x515a
subsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
callq 0x5117
movapd %xmm0, %xmm1
subsd 0x8(%rsp), %xmm1
leaq 0x1530e(%rip), %rsi     # 0x1c735
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 0x150dd(%rip), %rdi     # 0x1c53a
leaq 0x150ef(%rip), %rsi     # 0x1c553
leaq 0x150f2(%rip), %rcx     # 0x1c55d
movl $0x13c, %edx            # imm = 0x13C
callq 0x2120