// File: 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:
subq $0x408, %rsp            # imm = 0x408
movq %rdi, 0x230(%rsp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, 0x238(%rsp)
movq %rdi, 0x400(%rsp)
movq %rsi, 0x3f8(%rsp)
movq %rdx, 0x3f0(%rsp)
andb $0x1, %al
movb %al, 0x3ef(%rsp)
movq 0x3f8(%rsp), %rax
movq %rax, 0x240(%rsp)
leaq 0x260(%rsp), %rdi
callq 0x8260
movl $0x65, 0x25c(%rsp)
movq 0x240(%rsp), %rax
movslq 0x25c(%rsp), %rcx
cmpl $0x0, 0x40(%rax,%rcx,4)
jne 0x6453f
movl 0x25c(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x25c(%rsp)
jmp 0x64515
testb $0x1, 0x3ef(%rsp)
je 0x64b69
leaq 0x270(%rsp), %rdi
leaq 0x1a3c0(%rip), %rsi     # 0x7e91c
callq 0x8360
movq %rax, 0x228(%rsp)
jmp 0x6456b
movq 0x228(%rsp), %rdi
movq 0x32a36(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x64581
leaq 0x270(%rsp), %rdi
leaq 0x1a431(%rip), %rsi     # 0x7e9c1
callq 0x8360
movq %rax, 0x220(%rsp)
jmp 0x6459f
movq 0x220(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x30(%rax), %rsi
callq 0x8790
movq %rax, 0x218(%rsp)
jmp 0x645c2
movq 0x218(%rsp), %rdi
leaq 0x1ae40(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x210(%rsp)
jmp 0x645e0
movq 0x210(%rsp), %rdi
movq 0x240(%rsp), %rcx
movq 0x30(%rcx), %rax
movq 0x38(%rcx), %rcx
imulq $0x64, %rax, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x6460b
leaq 0x270(%rsp), %rdi
leaq 0x1adf7(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x208(%rsp)
jmp 0x64629
movq 0x208(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x28(%rax), %rsi
callq 0x8790
movq %rax, 0x200(%rsp)
jmp 0x6464c
movq 0x200(%rsp), %rdi
leaq 0x1adb6(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1f8(%rsp)
jmp 0x6466a
movq 0x1f8(%rsp), %rdi
movq 0x240(%rsp), %rcx
movq 0x28(%rcx), %rax
movq 0x38(%rcx), %rcx
imulq $0x64, %rax, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64695
leaq 0x270(%rsp), %rdi
leaq 0x1ad6d(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1f0(%rsp)
jmp 0x646b3
movq 0x1f0(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x20(%rax), %rsi
callq 0x8790
movq %rax, 0x1e8(%rsp)
jmp 0x646d6
movq 0x1e8(%rsp), %rdi
leaq 0x1ad2c(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1e0(%rsp)
jmp 0x646f4
movq 0x1e0(%rsp), %rdi
movq 0x240(%rsp), %rcx
movq 0x20(%rcx), %rax
movq 0x38(%rcx), %rcx
imulq $0x64, %rax, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x6471f
leaq 0x270(%rsp), %rdi
leaq 0x1ace3(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1d8(%rsp)
jmp 0x6473d
movq 0x1d8(%rsp), %rdi
movq 0x240(%rsp), %rcx
movq 0x30(%rcx), %rax
movq 0x38(%rcx), %rsi
subq %rax, %rsi
callq 0x8790
movq %rax, 0x1d0(%rsp)
jmp 0x64767
movq 0x1d0(%rsp), %rdi
leaq 0x1ac9b(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1c8(%rsp)
jmp 0x64785
movq 0x1c8(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x30(%rax), %rdx
movq 0x38(%rax), %rcx
movq %rcx, %rax
subq %rdx, %rax
imulq $0x64, %rax, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x647b6
leaq 0x270(%rsp), %rdi
leaq 0x1ac4c(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1c0(%rsp)
jmp 0x647d4
movq 0x1c0(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x8790
movq %rax, 0x1b8(%rsp)
jmp 0x647f7
movq 0x1b8(%rsp), %rdi
leaq 0x1ac0b(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x1b0(%rsp)
jmp 0x64815
movq 0x1b0(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x38(%rax), %rsi
callq 0x8790
movq %rax, 0x1a8(%rsp)
jmp 0x64838
movq 0x1a8(%rsp), %rdi
movq 0x32769(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x6484e
leaq 0x270(%rsp), %rdi
leaq 0x1a171(%rip), %rsi     # 0x7e9ce
callq 0x8360
movq %rax, 0x1a0(%rsp)
jmp 0x6486c
movq 0x1a0(%rsp), %rdi
movq 0x240(%rsp), %rax
movq (%rax), %rsi
callq 0x8790
movq %rax, 0x198(%rsp)
jmp 0x6488e
movq 0x198(%rsp), %rdi
leaq 0x1ab74(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x190(%rsp)
jmp 0x648ac
movq 0x190(%rsp), %rdi
movq 0x240(%rsp), %rax
movq (%rax), %rax
imulq $0x64, %rax, %rax
movq 0x3f0(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x648da
leaq 0x270(%rsp), %rdi
leaq 0x1ab28(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x188(%rsp)
jmp 0x648f8
movq 0x188(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x8790
movq %rax, 0x180(%rsp)
jmp 0x6491b
movq 0x180(%rsp), %rdi
leaq 0x1aae7(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x178(%rsp)
jmp 0x64939
movq 0x178(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x8(%rax), %rax
imulq $0x64, %rax, %rax
movq 0x3f0(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64968
leaq 0x270(%rsp), %rdi
leaq 0x1aa9a(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x170(%rsp)
jmp 0x64986
movq 0x170(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x8790
movq %rax, 0x168(%rsp)
jmp 0x649a9
movq 0x168(%rsp), %rdi
leaq 0x1aa59(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x160(%rsp)
jmp 0x649c7
movq 0x160(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x10(%rax), %rax
imulq $0x64, %rax, %rax
movq 0x3f0(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x649f6
leaq 0x270(%rsp), %rdi
leaq 0x1aa0c(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x158(%rsp)
jmp 0x64a14
movq 0x158(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x3f0(%rsp), %rsi
movq (%rax), %rdx
movq 0x8(%rax), %rcx
subq %rdx, %rsi
subq %rcx, %rsi
movq 0x10(%rax), %rax
subq %rax, %rsi
callq 0x8790
movq %rax, 0x150(%rsp)
jmp 0x64a4f
movq 0x150(%rsp), %rdi
leaq 0x1a9b3(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x148(%rsp)
jmp 0x64a6d
movq 0x148(%rsp), %rdi
movq 0x240(%rsp), %rdx
movq 0x3f0(%rsp), %rcx
movq (%rdx), %r8
movq 0x8(%rdx), %rsi
movq %rcx, %rax
subq %r8, %rax
subq %rsi, %rax
movq 0x10(%rdx), %rdx
subq %rdx, %rax
imulq $0x64, %rax, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64aaf
leaq 0x270(%rsp), %rdi
leaq 0x1a953(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x140(%rsp)
jmp 0x64acd
movq 0x140(%rsp), %rdi
leaq 0x19efa(%rip), %rsi     # 0x7e9d6
callq 0x8360
movq %rax, 0x138(%rsp)
jmp 0x64aeb
movq 0x138(%rsp), %rdi
leaq 0x1a917(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x130(%rsp)
jmp 0x64b09
movq 0x130(%rsp), %rdi
movq 0x3f0(%rsp), %rsi
callq 0x8790
movq %rax, 0x128(%rsp)
jmp 0x64b28
movq 0x128(%rsp), %rdi
movq 0x32479(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x64b3e
jmp 0x64fcf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x250(%rsp)
movl %eax, 0x24c(%rsp)
leaq 0x260(%rsp), %rdi
callq 0x8290
jmp 0x6515f
leaq 0x270(%rsp), %rdi
leaq 0x19e63(%rip), %rsi     # 0x7e9db
callq 0x8360
movq %rax, 0x120(%rsp)
jmp 0x64b87
movq 0x120(%rsp), %rdi
movq 0x3241a(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x64b9d
leaq 0x270(%rsp), %rdi
leaq 0x19e15(%rip), %rsi     # 0x7e9c1
callq 0x8360
movq %rax, 0x118(%rsp)
jmp 0x64bbb
movq 0x118(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x30(%rax), %rsi
callq 0x8790
movq %rax, 0x110(%rsp)
jmp 0x64bde
movq 0x110(%rsp), %rdi
leaq 0x1a824(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x108(%rsp)
jmp 0x64bfc
movq 0x240(%rsp), %rax
imulq $0x64, 0x30(%rax), %rcx
movq %rcx, 0x100(%rsp)
cmpq $0x0, 0x38(%rax)
jle 0x64c2e
movq 0x240(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0xf8(%rsp)
jmp 0x64c3d
movl $0x1, %eax
movq %rax, 0xf8(%rsp)
jmp 0x64c3d
movq 0x108(%rsp), %rdi
movq 0x100(%rsp), %rax
movq 0xf8(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64c64
leaq 0x270(%rsp), %rdi
leaq 0x1a79e(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0xf0(%rsp)
jmp 0x64c82
movq 0xf0(%rsp), %rdi
movq 0x240(%rsp), %rcx
movq 0x30(%rcx), %rax
movq 0x38(%rcx), %rsi
subq %rax, %rsi
callq 0x8790
movq %rax, 0xe8(%rsp)
jmp 0x64cac
movq 0xe8(%rsp), %rdi
leaq 0x1a756(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0xe0(%rsp)
jmp 0x64cca
movq 0x240(%rsp), %rax
movq 0x38(%rax), %rcx
subq 0x30(%rax), %rcx
imulq $0x64, %rcx, %rcx
movq %rcx, 0xd8(%rsp)
cmpq $0x0, 0x38(%rax)
jle 0x64d03
movq 0x240(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0xd0(%rsp)
jmp 0x64d12
movl $0x1, %eax
movq %rax, 0xd0(%rsp)
jmp 0x64d12
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64d39
leaq 0x270(%rsp), %rdi
leaq 0x1a6c9(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0xc8(%rsp)
jmp 0x64d57
movq 0xc8(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x8790
movq %rax, 0xc0(%rsp)
jmp 0x64d7a
movq 0xc0(%rsp), %rdi
leaq 0x1a688(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0xb8(%rsp)
jmp 0x64d98
movq 0xb8(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x38(%rax), %rsi
callq 0x8790
movq %rax, 0xb0(%rsp)
jmp 0x64dbb
movq 0xb0(%rsp), %rdi
movq 0x321e6(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x64dd1
leaq 0x270(%rsp), %rdi
leaq 0x19bee(%rip), %rsi     # 0x7e9ce
callq 0x8360
movq %rax, 0xa8(%rsp)
jmp 0x64def
movq 0xa8(%rsp), %rdi
movq 0x240(%rsp), %rax
movq (%rax), %rsi
callq 0x8790
movq %rax, 0xa0(%rsp)
jmp 0x64e11
movq 0xa0(%rsp), %rdi
leaq 0x1a5f1(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x98(%rsp)
jmp 0x64e2f
movq 0x240(%rsp), %rax
imulq $0x64, (%rax), %rax
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x3f0(%rsp)
jle 0x64e60
movq 0x3f0(%rsp), %rax
movq %rax, 0x88(%rsp)
jmp 0x64e6f
movl $0x1, %eax
movq %rax, 0x88(%rsp)
jmp 0x64e6f
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %rax
movq 0x88(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64e96
leaq 0x270(%rsp), %rdi
leaq 0x1a56c(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x80(%rsp)
jmp 0x64eb4
movq 0x80(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x3f0(%rsp), %rsi
movq (%rax), %rax
subq %rax, %rsi
callq 0x8790
movq %rax, 0x78(%rsp)
jmp 0x64ede
movq 0x78(%rsp), %rdi
leaq 0x1a527(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x70(%rsp)
jmp 0x64ef6
movq 0x240(%rsp), %rcx
movq 0x3f0(%rsp), %rax
subq (%rcx), %rax
imulq $0x64, %rax, %rax
movq %rax, 0x68(%rsp)
cmpq $0x0, 0x3f0(%rsp)
jle 0x64f2c
movq 0x3f0(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0x64f38
movl $0x1, %eax
movq %rax, 0x60(%rsp)
jmp 0x64f38
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x8790
jmp 0x64f56
leaq 0x270(%rsp), %rdi
leaq 0x1a4ac(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x58(%rsp)
jmp 0x64f71
movq 0x58(%rsp), %rdi
leaq 0x19a59(%rip), %rsi     # 0x7e9d6
callq 0x8360
movq %rax, 0x50(%rsp)
jmp 0x64f89
movq 0x50(%rsp), %rdi
leaq 0x1a47c(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x48(%rsp)
jmp 0x64fa1
movq 0x48(%rsp), %rdi
movq 0x3f0(%rsp), %rsi
callq 0x8790
movq %rax, 0x40(%rsp)
jmp 0x64fba
movq 0x40(%rsp), %rdi
movq 0x31fea(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x64fcd
jmp 0x64fcf
leaq 0x270(%rsp), %rdi
movq 0x31fd2(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x64fe5
leaq 0x270(%rsp), %rdi
leaq 0x19a43(%rip), %rsi     # 0x7ea37
callq 0x8360
movq %rax, 0x38(%rsp)
jmp 0x65000
movq 0x38(%rsp), %rdi
movq 0x31fa4(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x65013
leaq 0x270(%rsp), %rdi
xorl %esi, %esi
callq 0x8710
movq %rax, 0x30(%rsp)
jmp 0x65029
movq 0x30(%rsp), %rdi
leaq 0x1a3dc(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x28(%rsp)
jmp 0x65041
movq 0x28(%rsp), %rdi
movq 0x240(%rsp), %rax
movq 0x3f0(%rsp), %rsi
movq (%rax), %rdx
movq 0x8(%rax), %rcx
subq %rdx, %rsi
subq %rcx, %rsi
movq 0x10(%rax), %rax
subq %rax, %rsi
callq 0x8790
movq %rax, 0x20(%rsp)
jmp 0x65076
movq 0x20(%rsp), %rdi
movq 0x31f2e(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x65089
movl $0x1, 0x248(%rsp)
movl 0x248(%rsp), %eax
cmpl 0x25c(%rsp), %eax
jg 0x6512b
leaq 0x270(%rsp), %rdi
movl 0x248(%rsp), %esi
callq 0x8710
movq %rax, 0x18(%rsp)
jmp 0x650c3
movq 0x18(%rsp), %rdi
leaq 0x1a342(%rip), %rsi     # 0x7f411
callq 0x8360
movq %rax, 0x10(%rsp)
jmp 0x650db
movq 0x10(%rsp), %rdi
movq 0x240(%rsp), %rax
movslq 0x248(%rsp), %rcx
movl 0x40(%rax,%rcx,4), %esi
callq 0x8710
movq %rax, 0x8(%rsp)
jmp 0x65100
movq 0x8(%rsp), %rdi
movq 0x31ea4(%rip), %rsi     # 0x96fb0
callq 0x83b0
jmp 0x65113
jmp 0x65115
movl 0x248(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x248(%rsp)
jmp 0x65094
movq 0x230(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x8350
jmp 0x65142
leaq 0x260(%rsp), %rdi
callq 0x8290
movq 0x238(%rsp), %rax
addq $0x408, %rsp            # imm = 0x408
retq
movq 0x250(%rsp), %rdi
callq 0x8730
nopl (%rax)