// File: /workspace/github_cpp_makefile_star2_O1/readmapping[P]alfalfa/src/mapper.h
// Function: read_t::printPairedAlignments[abi:cxx11](int, bool)
std::string printPairedAlignments(int i, bool firstMate){
        std::stringstream ss;
        alignment_t * a = alignments[i];
        if(a->paired()){
            //flag has to be changed
            ss << qname << "\t" << (a->flag.to_ulong() |a->mate.flag.to_ulong())  << "\t"
            << a->rname << "\t" << a->pos << "\t" << 
            a->mapq << "\t" << a->cigar << "\t" << 
            (a->rname == a->mate.rnext ? "=" : a->mate.rnext) << "\t" << a->mate.pnext << "\t" << 
            a->mate.tLength << "\t" << (a->flag.test(4) ? rcSequence : sequence) <<
            "\t" << (a->flag.test(4) ? rQual : qual) << "\tAS:i:" << 
            a->alignmentScore+a->mate.alignmentScore << "\tNM:i:" << a->editDist << "\tX0:Z:" << 
            a->NMtag << std::endl;
            return ss.str();
        }
        else{
            a->setUnPaired(firstMate);
            return printUnpairedAlignment(i);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
callq 0x71e0
movslq %ebp, %rax
movq 0xb0(%r14), %rcx
movq (%rcx,%rax,8), %r13
movq 0x40(%r13), %rax
testb $0x1, %al
jne 0xb6af
movq %rax, %rcx
orq $0x41, %rcx
andq $-0xca, %rax
incq %rax
testb %r15b, %r15b
cmovneq %rcx, %rax
andq $-0x89, %rax
xorb $0x1, %r15b
movzbl %r15b, %ecx
shll $0x7, %ecx
addq %rcx, %rax
addq $0x8, %rax
movq %rax, 0x40(%r13)
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0xb31a
jmp 0xb983
leaq 0x30(%rsp), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x7340
movq %rax, %r15
leaq 0x35353(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0xa0(%r13), %rsi
orq 0x40(%r13), %rsi
movq %r15, %rdi
callq 0x71c0
movq %rax, %r15
leaq 0x35329(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x48(%r13), %rsi
movq 0x50(%r13), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
leaq 0x35302(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x18(%r13), %rsi
movq %r15, %rdi
callq 0x72a0
movq %rax, %r15
leaq 0x352df(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0x68(%r13), %esi
movq %r15, %rdi
callq 0x75d0
movq %rax, %r15
leaq 0x352bc(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
leaq 0x35295(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x50(%r13), %rdx
movq 0xb0(%r13), %r12
cmpq %r12, %rdx
jne 0xb7be
testq %rdx, %rdx
je 0xb7de
movq 0x48(%r13), %rdi
movq 0xa8(%r13), %rsi
callq 0x7300
testl %eax, %eax
je 0xb7de
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xa8(%r13), %rsi
addq %rsi, %r12
movq %rsp, %rdi
movq %r12, %rdx
callq 0xc1f4
jmp 0xb7fd
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x34c96(%rip), %rsi     # 0x40484
leaq 0x34c90(%rip), %rdx     # 0x40485
movq %rsp, %rdi
callq 0xc2e4
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
leaq 0x35205(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0xc8(%r13), %rsi
movq %r15, %rdi
callq 0x72a0
movq %rax, %r15
leaq 0x351df(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0xd8(%r13), %esi
movq %r15, %rdi
callq 0x75d0
movq %rax, %r15
leaq 0x351b9(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0x40(%r13), %eax
andl $0x10, %eax
movq 0x20(%r14,%rax,4), %rsi
movq 0x28(%r14,%rax,4), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
leaq 0x35189(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0x40(%r13), %eax
andl $0x10, %eax
movq 0x40(%r14,%rax,4), %rsi
movq 0x48(%r14,%rax,4), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r14
leaq 0x34b9c(%rip), %rsi     # 0x40460
movl $0x6, %edx
movq %rax, %rdi
callq 0x7340
movl 0xe0(%r13), %esi
addl 0x70(%r13), %esi
movq %r14, %rdi
callq 0x75d0
movq %rax, %r14
leaq 0x34b79(%rip), %rsi     # 0x40467
movl $0x6, %edx
movq %rax, %rdi
callq 0x7340
movl 0x6c(%r13), %esi
movq %r14, %rdi
callq 0x75d0
movq %rax, %r14
leaq 0x34b5d(%rip), %rsi     # 0x4046e
movl $0x6, %edx
movq %rax, %rdi
callq 0x7340
movq 0x78(%r13), %rsi
movq 0x80(%r13), %rdx
movq %r14, %rdi
callq 0x7340
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb976
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72f0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x7540
movq 0x4860e(%rip), %rsi     # 0x53f98
leaq 0x20(%rsp), %rdi
callq 0x7210
leaq 0xa0(%rsp), %rdi
callq 0x7100
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb9b8
movq %rax, %rbx
jmp 0xb9db
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb9db
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72f0
movq 0x485b6(%rip), %rsi     # 0x53f98
leaq 0x20(%rsp), %rdi
callq 0x7210
leaq 0xa0(%rsp), %rdi
callq 0x7100
movq %rbx, %rdi
callq 0x7600