// File: /workspace/github_c_makefile_star2_O1/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, %r15
movq 0x32444(%rip), %rax     # 0x34ff8
movq (%rax), %rdi
movl 0x4(%r15), %r8d
movl 0x8(%r15), %ecx
movl 0xc(%r15), %r9d
andl $0x1, %r9d
movl 0x10(%r15), %eax
movl %eax, (%rsp)
leaq 0x2954f(%rip), %rsi     # 0x2c124
leaq 0x2957f(%rip), %rdx     # 0x2c15b
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2260
movl 0x10(%r15), %ecx
testq %rcx, %rcx
je 0x2c0a
movq 0x20(%r15), %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 0x2bfa
movl (%r15), %eax
movq 0x30(%r15), %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 0x2c2e
movl 0x4(%rcx), %ecx
addq %rcx, %r14
movl %esi, %edi
movl %eax, %ecx
shrl %cl, %edi
incl %esi
testl %edi, %edi
je 0x2c17
movq 0x30(%r15), %rdx
xorl %r13d, %r13d
pushq $0x1
popq %r12
xorl %edi, %edi
xorl %ebp, %ebp
movl %edi, %ecx
imulq $0x30, %rcx, %rcx
movq 0x28(%rdx,%rcx), %r8
testq %r8, %r8
je 0x2cb0
movl (%r8), %r9d
testq %r9, %r9
je 0x2cb0
movq 0x10(%r8), %r10
xorl %r11d, %r11d
xorl %r15d, %r15d
movl %r15d, %ecx
shrl $0x4, %ecx
movl (%r10,%rcx,4), %esi
movl %r11d, %ecx
andb $0x1e, %cl
shrl %cl, %esi
testb $0x3, %sil
jne 0x2ca4
movq 0x18(%r8), %rcx
movq (%rcx,%r15,8), %rcx
movq %r12, %rsi
testb $0x1, %cl
jne 0x2c9b
movq 0x20(%r8), %rsi
movl (%rsi,%r15,8), %esi
andl $0x1, %ecx
addq %rsi, %r13
addq %rcx, %rbp
incq %r15
addl $0x2, %r11d
cmpq %r15, %r9
jne 0x2c6b
incl %edi
movl %edi, %esi
movl %eax, %ecx
shrl %cl, %esi
testl %esi, %esi
je 0x2c49
movq 0x32335(%rip), %rax     # 0x34ff8
movq (%rax), %r15
callq 0x586d
leaq 0x32c5e(%rip), %r12     # 0x35930
subsd (%r12), %xmm0
movsd %xmm0, 0x10(%rsp)
callq 0x5804
movsd %xmm0, 0x8(%rsp)
callq 0x586d
subsd (%r12), %xmm0
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
cvtsi2sd %rbp, %xmm2
mulsd 0x29385(%rip), %xmm2    # 0x2c090
cvtsi2sd %r14, %xmm0
divsd %xmm0, %xmm2
movq %r13, %xmm6
movq 0x2938f(%rip), %xmm4    # 0x2c0b0
punpckldq %xmm4, %xmm6    # xmm6 = xmm6[0],xmm4[0],xmm6[1],xmm4[1]
movapd 0x29393(%rip), %xmm5    # 0x2c0c0
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 0x29402(%rip), %rsi     # 0x2c167
leaq 0x293ef(%rip), %rdx     # 0x2c15b
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