// File: /workspace/github_c_makefile_star2_O3/lh3[P]minimap2/index.c
// Function: mm_idx_stat
void mm_idx_stat(const mm_idx_t *mi)
{
	int64_t n = 0, n1 = 0;
	uint32_t i;
	uint64_t sum = 0, len = 0;
	fprintf(stderr, "[M::%s] kmer size: %d; skip: %d; is_hpc: %d; #seq: %d\n", __func__, mi->k, mi->w, mi->flag&MM_I_HPC, mi->n_seq);
	for (i = 0; i < mi->n_seq; ++i)
		len += mi->seq[i].len;
	for (i = 0; i < 1U<<mi->b; ++i)
		if (mi->B[i].h) n += kh_size((idxhash_t*)mi->B[i].h);
	for (i = 0; i < 1U<<mi->b; ++i) {
		idxhash_t *h = (idxhash_t*)mi->B[i].h;
		khint_t k;
		if (h == 0) continue;
		for (k = 0; k < kh_end(h); ++k)
			if (kh_exist(h, k)) {
				sum += kh_key(h, k)&1? 1 : (uint32_t)kh_val(h, k);
				if (kh_key(h, k)&1) ++n1;
			}
	}
	fprintf(stderr, "[M::%s::%.3f*%.2f] distinct minimizers: %ld (%.2f%% are singletons); average occurrences: %.3lf; average spacing: %.3lf; total length: %ld\n",
			__func__, realtime() - mm_realtime0, cputime() / (realtime() - mm_realtime0), (long)n, 100.0*n1/n, (double)sum / n, (double)len / sum, (long)len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x33446(%rip), %rax     # 0x35ff8
movq (%rax), %rdi
movl 0x4(%r14), %r8d
movl 0x8(%r14), %ecx
movl 0xc(%r14), %r9d
andl $0x1, %r9d
movl 0x10(%r14), %eax
movl %eax, (%rsp)
leaq 0x2a575(%rip), %rsi     # 0x2d148
leaq 0x2a5a5(%rip), %rdx     # 0x2d17f
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2260
movl 0x10(%r14), %ecx
testq %rcx, %rcx
je 0x2c08
movq 0x20(%r14), %rax
imulq $0x18, %rcx, %rcx
xorl %edx, %edx
xorl %ebx, %ebx
movl 0x10(%rax,%rdx), %esi
addq %rsi, %rbx
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x2bf8
movl (%r14), %eax
movq 0x30(%r14), %rdx
pushq $0x1
popq %rsi
xorl %r14d, %r14d
leal -0x1(%rsi), %ecx
imulq $0x30, %rcx, %rcx
movq 0x28(%rdx,%rcx), %rcx
testq %rcx, %rcx
je 0x2c2c
movl 0x4(%rcx), %ecx
addq %rcx, %r14
movl %esi, %edi
movl %eax, %ecx
shrl %cl, %edi
incl %esi
testl %edi, %edi
je 0x2c15
xorl %r12d, %r12d
pushq $0x1
popq %r15
xorl %edi, %edi
xorl %r13d, %r13d
movl %edi, %ecx
imulq $0x30, %rcx, %rcx
movq 0x28(%rdx,%rcx), %r8
testq %r8, %r8
je 0x2ca8
movl (%r8), %r9d
testq %r9, %r9
je 0x2ca8
movq 0x10(%r8), %r10
xorl %r11d, %r11d
xorl %ebp, %ebp
movl %ebp, %ecx
shrl $0x4, %ecx
movl (%r10,%rcx,4), %esi
movl %r11d, %ecx
andb $0x1e, %cl
shrl %cl, %esi
testb $0x3, %sil
jne 0x2c9c
movq 0x18(%r8), %rcx
movq (%rcx,%rbp,8), %rcx
movq %r15, %rsi
testb $0x1, %cl
jne 0x2c93
movq 0x20(%r8), %rsi
movl (%rsi,%rbp,8), %esi
andl $0x1, %ecx
addq %rsi, %r12
addq %rcx, %r13
incq %rbp
addl $0x2, %r11d
cmpq %rbp, %r9
jne 0x2c65
incl %edi
movl %edi, %esi
movl %eax, %ecx
shrl %cl, %esi
testl %esi, %esi
je 0x2c44
movq 0x3333d(%rip), %rax     # 0x35ff8
movq (%rax), %r15
callq 0x57d5
leaq 0x33c66(%rip), %rbp     # 0x36930
subsd (%rbp), %xmm0
movsd %xmm0, 0x10(%rsp)
callq 0x576c
movsd %xmm0, 0x8(%rsp)
callq 0x57d5
subsd (%rbp), %xmm0
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
cvtsi2sd %r13, %xmm2
mulsd 0x2a3a7(%rip), %xmm2    # 0x2d0a8
cvtsi2sd %r14, %xmm0
divsd %xmm0, %xmm2
movq %r12, %xmm6
movq 0x2a3b9(%rip), %xmm4    # 0x2d0d0
punpckldq %xmm4, %xmm6    # xmm6 = xmm6[0],xmm4[0],xmm6[1],xmm4[1]
movapd 0x2a3bd(%rip), %xmm5    # 0x2d0e0
subpd %xmm5, %xmm6
movapd %xmm6, %xmm3
unpckhpd %xmm6, %xmm3            # xmm3 = xmm3[1],xmm6[1]
addsd %xmm6, %xmm3
movq %rbx, %xmm6
punpckldq %xmm4, %xmm6    # xmm6 = xmm6[0],xmm4[0],xmm6[1],xmm4[1]
subpd %xmm5, %xmm6
movapd %xmm6, %xmm4
unpckhpd %xmm6, %xmm4            # xmm4 = xmm4[1],xmm6[1]
addsd %xmm6, %xmm4
divsd %xmm3, %xmm4
divsd %xmm0, %xmm3
leaq 0x2a430(%rip), %rsi     # 0x2d18b
leaq 0x2a41d(%rip), %rdx     # 0x2d17f
movq %r15, %rdi
movsd 0x10(%rsp), %xmm0
movq %r14, %rcx
movq %rbx, %r8
movb $0x5, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2260