// File: /workspace/github_cpp_makefile_star2_O2/readmapping[P]alfalfa/src/performanceUtils.cpp
// Function: summaryLine_t::printLine[abi:cxx11](long, bool)
string summaryLine_t::printLine(long readcnt, bool paired){
    stringstream ss;
    int upperbound = 101;
    while(alnPerRead[upperbound]==0)
        upperbound--;
    if(paired){
        ss << "~~~\t num_mapped\t percent_mapped\t num_paired\t percent_paired\t /"
                "num_paired_correct\t percent_paired_correct\t num_unmapped\t /"
                "percent_unmapped\t num_second_aligned\t count" << endl;
        ss << "alignments\t " << mappedAln << "\t " << (mappedAln*100)/alignmentCnt;
        ss << "\t " << mappedPaired << "\t " << (mappedPaired*100)/alignmentCnt;
        ss << "\t " << mappedPairedCorrect << "\t " << (mappedPairedCorrect*100)/alignmentCnt;
        ss << "\t " << (alignmentCnt-mappedAln) << "\t " << ((alignmentCnt-mappedAln)*100)/alignmentCnt;
        ss << "\t " << secondAln << "\t " << alignmentCnt << endl;
        ss << "reads\t " << readMapped << "\t " << (readMapped*100)/readcnt;
        ss << "\t " << readPaired << "\t " << (readPaired*100)/readcnt;
        ss << "\t " << readPairedCorrect << "\t " << (readPairedCorrect*100)/readcnt;
        ss << "\t " << (readcnt-readMapped-readPaired-readPairedCorrect) << "\t " << ((readcnt-readMapped-readPaired-readPairedCorrect)*100)/readcnt;
        ss << "\t " << "N.A." << "\t " << readcnt << endl;
    }
    else{
        ss << "~~~\t num_mapped\t percent_mapped\t num_unmapped\t /"
                "percent_unmapped\t num_second_aligned\t count" << endl;
        ss << "alignments\t " << mappedAln << "\t " << (mappedAln*100)/(alignmentCnt > 0 ? alignmentCnt: 1 );
        ss << "\t " << (alignmentCnt-mappedAln) << "\t " << ((alignmentCnt-mappedAln)*100)/(alignmentCnt > 0 ? alignmentCnt: 1);
        ss << "\t " << secondAln << "\t " << alignmentCnt << endl;
        ss << "reads\t " << readMapped << "\t " << (readMapped*100)/(readcnt>0?readcnt:1);
        ss << "\t " << (readcnt-readMapped) << "\t " << ((readcnt-readMapped)*100)/(readcnt>0?readcnt:1);
        ss << "\t " << "N.A." << "\t " << readcnt << endl;
    }
    ss << endl;
    ss << "number of reads with x alignments" << endl;
    ss << 0 << "\t " << (readcnt-readMapped-readPaired-readPairedCorrect) << endl;
    for(int i = 1; i<= upperbound; i++)
        ss << i << "\t " << alnPerRead[i] << endl;
    return ss.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x71e0
leaq 0x1d4(%r14), %rax
movabsq $0x6600000000, %rbx     # imm = 0x6600000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
addq %rcx, %rbx
cmpl $0x0, (%rax)
leaq -0x4(%rax), %rax
je 0x28ff1
leaq 0x20(%rsp), %r13
pushq $0x1
popq %r15
testb %bpl, %bpl
je 0x29279
leaq 0xe97a(%rip), %rsi      # 0x37990
movq %r13, %rdi
callq 0x72b0
movq %rax, %rdi
callq 0x7160
leaq 0xea08(%rip), %rsi      # 0x37a35
movq %r13, %rdi
callq 0x72b0
movq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf43d(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, 0x30(%r14), %rax
cqto
idivq 0x38(%r14)
movq %rax, %rsi
callq 0x72a0
leaq 0xf418(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x28(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf3fd(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, 0x28(%r14), %rax
cqto
idivq 0x38(%r14)
movq %rax, %rsi
callq 0x72a0
leaq 0xf3d8(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x20(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf3bd(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, 0x20(%r14), %rax
cqto
idivq 0x38(%r14)
movq %rax, %rsi
callq 0x72a0
leaq 0xf398(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x38(%r14), %rsi
subq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf379(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
movq 0x38(%r14), %rcx
movq %rcx, %rax
subq 0x30(%r14), %rax
imulq $0x64, %rax, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x72a0
leaq 0xf34b(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x18(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf330(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq 0x38(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
movq %rax, %rdi
callq 0x7160
leaq 0xe8ca(%rip), %rsi      # 0x37a42
movq %r13, %rdi
callq 0x72b0
movq (%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf2f3(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, (%r14), %rax
cqto
idivq %r12
movq %rax, %rsi
callq 0x72a0
leaq 0xf2d0(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf2b5(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, 0x8(%r14), %rax
cqto
idivq %r12
movq %rax, %rsi
callq 0x72a0
leaq 0xf291(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x10(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf276(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, 0x10(%r14), %rax
cqto
idivq %r12
movq %rax, %rsi
callq 0x72a0
leaq 0xf252(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq (%r14), %rcx
addq 0x8(%r14), %rcx
addq 0x10(%r14), %rcx
movq %r12, %rsi
subq %rcx, %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf22a(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
movq (%r14), %rax
addq 0x8(%r14), %rax
addq 0x10(%r14), %rax
movq %r12, %rbp
jmp 0x293e8
leaq 0xe7cf(%rip), %rsi      # 0x37a4f
movq %r13, %rdi
callq 0x72b0
movq %rax, %rdi
callq 0x7160
leaq 0xe79e(%rip), %rsi      # 0x37a35
movq %r13, %rdi
callq 0x72b0
movq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf1d3(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, 0x30(%r14), %rax
movq 0x38(%r14), %rcx
cmpq $0x2, %rcx
cmovlq %r15, %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x72a0
leaq 0xf1a3(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x38(%r14), %rsi
subq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf184(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
movq 0x38(%r14), %rcx
movq %rcx, %rax
subq 0x30(%r14), %rax
imulq $0x64, %rax, %rax
cmpq $0x2, %rcx
cmovlq %r15, %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x72a0
leaq 0xf14e(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq 0x18(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf133(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq 0x38(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
movq %rax, %rdi
callq 0x7160
leaq 0xe6cd(%rip), %rsi      # 0x37a42
movq %r13, %rdi
callq 0x72b0
movq (%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf0f6(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
imulq $0x64, (%r14), %rax
cmpq $0x2, %r12
movq %r15, %rbp
cmovgeq %r12, %rbp
cqto
idivq %rbp
movq %rax, %rsi
callq 0x72a0
leaq 0xf0c8(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
movq %r12, %rsi
subq (%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0xf0ab(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
movq (%r14), %rax
movq %r12, %rcx
subq %rax, %rcx
imulq $0x64, %rcx, %rax
cqto
idivq %rbp
movq %rax, %rsi
callq 0x72a0
leaq 0xf07f(%rip), %rsi      # 0x38485
movq %r13, %rdi
callq 0x72b0
leaq 0xe635(%rip), %rsi      # 0x37a4a
movq %rax, %rdi
callq 0x72b0
leaq 0xf061(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
movq %r12, %rsi
callq 0x72a0
movq %rax, %rdi
callq 0x7160
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x7160
leaq 0xe658(%rip), %rsi      # 0x37aab
movq %r13, %rdi
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movq %r13, %rdi
xorl %esi, %esi
callq 0x75c0
leaq 0xf011(%rip), %rsi      # 0x38485
movq %rax, %rdi
callq 0x72b0
movq (%r14), %rcx
addq 0x8(%r14), %rcx
addq 0x10(%r14), %rcx
subq %rcx, %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x72a0
movq %rax, %rdi
callq 0x7160
sarq $0x20, %rbx
addq $0x44, %r14
leaq 0xefd9(%rip), %r12      # 0x38485
cmpq %rbx, %r15
jg 0x294e3
movq %r13, %rdi
movl %r15d, %esi
callq 0x75c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x72b0
movl (%r14), %esi
movq %rax, %rdi
callq 0x75c0
movq %rax, %rdi
callq 0x7160
incq %r15
addq $0x4, %r14
jmp 0x294ac
leaq 0x28(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x7540
leaq 0x10(%rsp), %rdi
callq 0x7210
movq 0x8(%rsp), %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x29515
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7210
movq %rbx, %rdi
callq 0x75e0