// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/toolkit/bamtools_stats.cpp
// Function: BamTools::StatsTool::StatsToolPrivate::PrintStats()
void StatsTool::StatsToolPrivate::PrintStats(void) {
  
    cout << endl;
    cout << "**********************************************" << endl;
    cout << "Stats for BAM file(s): " << endl;
    cout << "**********************************************" << endl;
    cout << endl;
    cout << "Total reads:       " << m_numReads << endl;
    cout << "Mapped reads:      " << m_numMapped << "\t(" << ((float)m_numMapped/m_numReads)*100 << "%)" << endl;
    cout << "Forward strand:    " << m_numForwardStrand << "\t(" << ((float)m_numForwardStrand/m_numReads)*100 << "%)" << endl;
    cout << "Reverse strand:    " << m_numReverseStrand << "\t(" << ((float)m_numReverseStrand/m_numReads)*100 << "%)" << endl;
    cout << "Failed QC:         " << m_numFailedQC << "\t(" << ((float)m_numFailedQC/m_numReads)*100 << "%)" << endl;
    cout << "Duplicates:        " << m_numDuplicates << "\t(" << ((float)m_numDuplicates/m_numReads)*100 << "%)" << endl;
    cout << "Paired-end reads:  " << m_numPaired << "\t(" << ((float)m_numPaired/m_numReads)*100 << "%)" << endl;
    
    if ( m_numPaired != 0 ) {
        cout << "'Proper-pairs':    " << m_numProperPair << "\t(" << ((float)m_numProperPair/m_numPaired)*100 << "%)" << endl;
        cout << "Both pairs mapped: " << m_numBothMatesMapped << "\t(" << ((float)m_numBothMatesMapped/m_numPaired)*100 << "%)" << endl;
        cout << "Read 1:            " << m_numFirstMate << endl;
        cout << "Read 2:            " << m_numSecondMate << endl;
        cout << "Singletons:        " << m_numSingletons << "\t(" << ((float)m_numSingletons/m_numPaired)*100 << "%)" << endl;
    }
    
    if ( m_settings->IsShowingInsertSizeSummary ) {
      
        double avgInsertSize = 0.0;
        if ( !m_insertSizes.empty() ) {
            avgInsertSize = ( accumulate(m_insertSizes.begin(), m_insertSizes.end(), 0.0) / (double)m_insertSizes.size() );
            cout << "Average insert size (absolute value): " << avgInsertSize << endl;
        }
        
        double medianInsertSize = 0.0;
        if ( CalculateMedian(m_insertSizes, medianInsertSize) )
            cout << "Median insert size (absolute value): " << medianInsertSize << endl;
    }
    cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x2f684(%rip), %rbx     # 0x8ef90
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbx, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x15aa6(%rip), %r15     # 0x753e0
movl $0x2e, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x276b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbx, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x15a97(%rip), %rsi     # 0x7540f
movl $0x17, %edx
movq %rbx, %rdi
callq 0x276b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbx, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
movl $0x2e, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x276b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbx, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbx, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x15a16(%rip), %rsi     # 0x75427
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r15, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x159e0(%rip), %rsi     # 0x7543b
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0x14(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r12
leaq 0x159d1(%rip), %r15     # 0x7544f
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276b0
movl 0x14(%r14), %eax
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x15904(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r12, %rdi
callq 0x279d0
movq %rax, %r13
leaq 0x15990(%rip), %r12     # 0x75452
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r13, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x15954(%rip), %rsi     # 0x75455
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0x1c(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276b0
movl 0x1c(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x1585f(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279d0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r13, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x158ca(%rip), %rsi     # 0x75469
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0x20(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276b0
movl 0x20(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x157c1(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279d0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r13, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x15840(%rip), %rsi     # 0x7547d
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276b0
movl 0x30(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x15723(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279d0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r13, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x157b6(%rip), %rsi     # 0x75491
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0x34(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276b0
movl 0x34(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x15685(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279d0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r13, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x1572c(%rip), %rsi     # 0x754a5
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276b0
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276b0
movl 0xc(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x155e7(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279d0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r15, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
cmpl $0x0, 0xc(%r14)
je 0x6009a
movq 0x2f16f(%rip), %r15     # 0x8ef90
leaq 0x15691(%rip), %rsi     # 0x754b9
movl $0x13, %edx
movq %r15, %rdi
callq 0x276b0
movl 0x10(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %r13
leaq 0x15604(%rip), %r12     # 0x7544f
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movl 0x10(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0xc(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
movss 0x15531(%rip), %xmm1    # 0x753b0
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279d0
movq %rax, %rbp
leaq 0x155b9(%rip), %r13     # 0x75452
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x276b0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbp, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x155f5(%rip), %rsi     # 0x754cd
movl $0x13, %edx
movq %r15, %rdi
callq 0x276b0
movl 0x18(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movl 0x18(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0xc(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x15488(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %rbp, %rdi
callq 0x279d0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x276b0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbp, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x1556b(%rip), %rsi     # 0x754e1
movl $0x13, %edx
movq %r15, %rdi
callq 0x276b0
movl 0x24(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbp, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x15535(%rip), %rsi     # 0x754f5
movl $0x13, %edx
movq %r15, %rdi
callq 0x276b0
movl 0x28(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbp, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x154ff(%rip), %rsi     # 0x75509
movl $0x13, %edx
movq %r15, %rdi
callq 0x276b0
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276b0
movl 0x2c(%r14), %eax
cvtsi2ss %rax, %xmm0
movl 0xc(%r14), %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x1535c(%rip), %xmm0    # 0x753b0
cvtss2sd %xmm0, %xmm0
movq %r15, %rdi
callq 0x279d0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x276b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r15, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
movq (%r14), %rax
cmpb $0x1, 0x2(%rax)
jne 0x601c7
leaq 0x38(%r14), %r15
movq 0x38(%r14), %rcx
movq 0x40(%r14), %rax
cmpq %rax, %rcx
je 0x6015c
xorpd %xmm2, %xmm2
movq %rcx, %rdx
xorps %xmm0, %xmm0
cvtsi2sdl (%rdx), %xmm0
addsd %xmm0, %xmm2
addq $0x4, %rdx
cmpq %rax, %rdx
jne 0x600c3
subq %rcx, %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x152d5(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x152dd(%rip), %xmm0    # 0x753d0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movq 0x2ee80(%rip), %r14     # 0x8ef90
leaq 0x15406(%rip), %rsi     # 0x7551d
movl $0x26, %edx
movq %r14, %rdi
callq 0x276b0
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x279d0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r14, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
leaq 0x10(%rsp), %rdx
movq $0x0, (%rdx)
movq %r15, %rsi
callq 0x5f814
testb %al, %al
je 0x601c7
movq 0x2ee15(%rip), %r14     # 0x8ef90
leaq 0x153c2(%rip), %rsi     # 0x75544
movl $0x25, %edx
movq %r14, %rdi
callq 0x276b0
movsd 0x10(%rsp), %xmm0
movq %r14, %rdi
callq 0x279d0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %r14, %rdi
callq 0x27040
movq %rax, %rdi
callq 0x27410
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x27590
movsbl %al, %esi
movq %rbx, %rdi
callq 0x27040
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x27410