// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
shlq $0x30, %rax
sarq $0x30, %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
shlq $0x20, %rcx
sarq $0x30, %rcx
subl %ecx, %eax
movl %eax, -0x2c(%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, -0x30(%rbp)
xorl %eax, %eax
cmpl -0x2c(%rbp), %eax
jge 0x8202
cmpl $0x12, -0x2c(%rbp)
jg 0x8202
jmp 0x8221
leaq 0x242d9(%rip), %rdi     # 0x2c4e2
leaq 0x242eb(%rip), %rsi     # 0x2c4fb
movl $0x13c, %edx            # imm = 0x13C
leaq 0x242e9(%rip), %rcx     # 0x2c505
callq 0x2140
movq 0x2add0(%rip), %rax     # 0x32ff8
movq (%rax), %rdi
leaq 0x24303(%rip), %rsi     # 0x2c535
leaq 0x2431e(%rip), %rdx     # 0x2c557
movb $0x0, %al
callq 0x21d0
callq 0x4cd0
movsd %xmm0, -0x20(%rbp)
callq 0x4d30
movsd %xmm0, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37c0
movq %rax, -0x18(%rbp)
movq 0x2ad90(%rip), %rax     # 0x32ff8
movq (%rax), %rax
movq %rax, -0x88(%rbp)
callq 0x4d30
subsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x80(%rbp)
callq 0x4cd0
movq -0x88(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x80(%rbp), %xmm0
subsd -0x20(%rbp), %xmm1
leaq 0x2443b(%rip), %rsi     # 0x2c6dc
movb $0x2, %al
callq 0x21d0
movq 0x2ad49(%rip), %rax     # 0x32ff8
movq (%rax), %rdi
leaq 0x242aa(%rip), %rsi     # 0x2c563
leaq 0x24297(%rip), %rdx     # 0x2c557
movb $0x0, %al
callq 0x21d0
callq 0x4cd0
movsd %xmm0, -0x20(%rbp)
callq 0x4d30
movsd %xmm0, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
shlq $0x20, %rax
sarq $0x30, %rax
movl %eax, %esi
callq 0x76b0
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movsd 0x20(%rax), %xmm0
movq -0x8(%rbp), %rax
movsd 0x10(%rax), %xmm2
movq -0x8(%rbp), %rax
movsd 0x18(%rax), %xmm3
movq -0x8(%rbp), %rax
movsd 0x28(%rax), %xmm4
movl $0x100, %edi            # imm = 0x100
movsd 0x24090(%rip), %xmm1    # 0x2c3d0
callq 0x7500
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movsd 0x20(%rax), %xmm0
movq -0x8(%rbp), %rax
movsd 0x10(%rax), %xmm2
movq -0x8(%rbp), %rax
movsd 0x18(%rax), %xmm3
movq -0x8(%rbp), %rax
movsd 0x28(%rax), %xmm4
movl $0x100, %edi            # imm = 0x100
movsd 0x240fe(%rip), %xmm1    # 0x2c478
callq 0x7500
movq %rax, -0x50(%rbp)
movslq -0x30(%rbp), %rdi
movl $0x18, %esi
callq 0x21a0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movl 0x30(%rax), %edi
movslq -0x30(%rbp), %rcx
leaq 0x99(%rip), %rsi        # 0x8440
leaq -0x68(%rbp), %rdx
callq 0x2490
movq -0x18(%rbp), %rdi
callq 0x28f0
movq -0x58(%rbp), %rdi
callq 0x2040
movq -0x50(%rbp), %rdi
callq 0x2040
movq -0x48(%rbp), %rdi
callq 0x2040
movq 0x2ac1d(%rip), %rax     # 0x32ff8
movq (%rax), %rax
movq %rax, -0x78(%rbp)
callq 0x4d30
subsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x70(%rbp)
callq 0x4cd0
movq -0x78(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x70(%rbp), %xmm0
subsd -0x20(%rbp), %xmm1
leaq 0x242cf(%rip), %rsi     # 0x2c6dd
movb $0x2, %al
callq 0x21d0
movq -0x8(%rbp), %rax
movq (%rax), %rax
shlq $0x20, %rax
sarq $0x30, %rax
movl %eax, %edi
movq -0x40(%rbp), %rsi
callq 0x8110
movq -0x40(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)