// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq $0x0, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq 0x55e35(%rip), %rax     # 0x5dff8
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %r8d
movq -0x8(%rbp), %rax
movl 0xc(%rax), %r9d
andl $0x1, %r9d
movq -0x8(%rbp), %rax
movl 0x10(%rax), %eax
leaq 0x4eb41(%rip), %rsi     # 0x56d30
leaq 0x4eb71(%rip), %rdx     # 0x56d67
movl %eax, (%rsp)
movb $0x0, %al
callq 0x2250
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x823b
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x8207
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x829f
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x28(%rax)
je 0x8292
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movl 0x4(%rax), %eax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x8294
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x8242
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x83aa
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x82e6
jmp 0x839c
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x839a
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
shrl $0x4, %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movl -0x3c(%rbp), %ecx
andl $0xf, %ecx
shll %ecx
shrl %cl, %eax
andl $0x3, %eax
cmpl $0x0, %eax
jne 0x838a
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8344
movl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x8356
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
movl %eax, %eax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8388
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x838a
jmp 0x838c
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x82ed
jmp 0x839c
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x82a6
movq 0x55c47(%rip), %rax     # 0x5dff8
movq (%rax), %rax
movq %rax, -0x50(%rbp)
callq 0x54e0
leaq 0x5657c(%rip), %rax     # 0x5e940
movq %rax, -0x60(%rbp)
movsd (%rax), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
callq 0x5450
movsd %xmm0, -0x58(%rbp)
callq 0x54e0
movq -0x60(%rbp), %rax
movsd -0x58(%rbp), %xmm1
movq -0x50(%rbp), %rdi
movaps %xmm0, %xmm2
movsd -0x48(%rbp), %xmm0
movsd (%rax), %xmm3
subsd %xmm3, %xmm2
divsd %xmm2, %xmm1
movq -0x10(%rbp), %rcx
cvtsi2sdq -0x18(%rbp), %xmm2
movsd 0x4e8d1(%rip), %xmm3    # 0x56ce8
mulsd %xmm3, %xmm2
cvtsi2sd %rcx, %xmm4
divsd %xmm4, %xmm2
movaps 0x4e8d5(%rip), %xmm7    # 0x56d00
movq -0x28(%rbp), %xmm5
punpckldq %xmm7, %xmm5    # xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
movapd 0x4e8d4(%rip), %xmm6    # 0x56d10
subpd %xmm6, %xmm5
movaps %xmm5, %xmm3
unpckhpd %xmm5, %xmm5            # xmm5 = xmm5[1,1]
addsd %xmm3, %xmm5
movaps %xmm5, %xmm3
divsd %xmm4, %xmm3
movq -0x30(%rbp), %xmm4
punpckldq %xmm7, %xmm4    # xmm4 = xmm4[0],xmm7[0],xmm4[1],xmm7[1]
subpd %xmm6, %xmm4
movaps %xmm4, %xmm6
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
addsd %xmm6, %xmm4
divsd %xmm5, %xmm4
movq -0x30(%rbp), %r8
leaq 0x4e8fa(%rip), %rsi     # 0x56d73
leaq 0x4e8e7(%rip), %rdx     # 0x56d67
movb $0x5, %al
callq 0x2250
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)