// File: /workspace/github_cpp_makefile_star2_O1/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 0x3016c(%rip), %rbx     # 0x8ff90
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 0x1658e(%rip), %r15     # 0x763e0
movl $0x2e, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x276c0
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 0x1657f(%rip), %rsi     # 0x7640f
movl $0x17, %edx
movq %rbx, %rdi
callq 0x276c0
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 0x276c0
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 0x164fe(%rip), %rsi     # 0x76427
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
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 0x164c8(%rip), %rsi     # 0x7643b
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
movl 0x14(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r12
leaq 0x164b9(%rip), %r15     # 0x7644f
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276c0
movl 0x14(%r14), %eax
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x163f8(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r12, %rdi
callq 0x279e0
movq %rax, %r13
leaq 0x16478(%rip), %r12     # 0x76452
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
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 0x1643c(%rip), %rsi     # 0x76455
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
movl 0x1c(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276c0
movl 0x1c(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x16353(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279e0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
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 0x163b2(%rip), %rsi     # 0x76469
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
movl 0x20(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276c0
movl 0x20(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x162b5(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279e0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
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 0x16328(%rip), %rsi     # 0x7647d
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276c0
movl 0x30(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x16217(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279e0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
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 0x1629e(%rip), %rsi     # 0x76491
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
movl 0x34(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276c0
movl 0x34(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x16179(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279e0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
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 0x16214(%rip), %rsi     # 0x764a5
movl $0x13, %edx
movq %rbx, %rdi
callq 0x276c0
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x27400
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x276c0
movl 0xc(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0x8(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x160db(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279e0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
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 0x605b2
movq 0x2fc57(%rip), %r15     # 0x8ff90
leaq 0x16179(%rip), %rsi     # 0x764b9
movl $0x13, %edx
movq %r15, %rdi
callq 0x276c0
movl 0x10(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %r13
leaq 0x160ec(%rip), %r12     # 0x7644f
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
movl 0x10(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0xc(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
movss 0x16025(%rip), %xmm1    # 0x763bc
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x279e0
movq %rax, %rbp
leaq 0x160a1(%rip), %r13     # 0x76452
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x276c0
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 0x160dd(%rip), %rsi     # 0x764cd
movl $0x13, %edx
movq %r15, %rdi
callq 0x276c0
movl 0x18(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
movl 0x18(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movl 0xc(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x15f7c(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %rbp, %rdi
callq 0x279e0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x276c0
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 0x16053(%rip), %rsi     # 0x764e1
movl $0x13, %edx
movq %r15, %rdi
callq 0x276c0
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 0x1601d(%rip), %rsi     # 0x764f5
movl $0x13, %edx
movq %r15, %rdi
callq 0x276c0
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 0x15fe7(%rip), %rsi     # 0x76509
movl $0x13, %edx
movq %r15, %rdi
callq 0x276c0
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x27400
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x276c0
movl 0x2c(%r14), %eax
cvtsi2ss %rax, %xmm0
movl 0xc(%r14), %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
mulss 0x15e50(%rip), %xmm0    # 0x763bc
cvtss2sd %xmm0, %xmm0
movq %r15, %rdi
callq 0x279e0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x276c0
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 0x606df
leaq 0x38(%r14), %r15
movq 0x38(%r14), %rcx
movq 0x40(%r14), %rax
cmpq %rax, %rcx
je 0x60674
xorpd %xmm2, %xmm2
movq %rcx, %rdx
xorps %xmm0, %xmm0
cvtsi2sdl (%rdx), %xmm0
addsd %xmm0, %xmm2
addq $0x4, %rdx
cmpq %rax, %rdx
jne 0x605db
subq %rcx, %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x15dbd(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x15dc5(%rip), %xmm0    # 0x763d0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movq 0x2f968(%rip), %r14     # 0x8ff90
leaq 0x15eee(%rip), %rsi     # 0x7651d
movl $0x26, %edx
movq %r14, %rdi
callq 0x276c0
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x279e0
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 0x5fd3c
testb %al, %al
je 0x606df
movq 0x2f8fd(%rip), %r14     # 0x8ff90
leaq 0x15eaa(%rip), %rsi     # 0x76544
movl $0x25, %edx
movq %r14, %rdi
callq 0x276c0
movsd 0x10(%rsp), %xmm0
movq %r14, %rdi
callq 0x279e0
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