// File: /workspace/github_cpp_makefile_star2_O2/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 $0x1b8, %rsp            # imm = 0x1B8
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x30(%rsp), %rdi
callq 0x71e0
movslq %ebp, %rax
movq 0xb0(%r15), %rcx
movq (%rcx,%rax,8), %r14
movq %r14, %rdi
callq 0xa166
testb %al, %al
je 0x9830
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x7280
leaq 0x2933b(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movq 0xa0(%r14), %rsi
orq 0x40(%r14), %rsi
movq %rax, %rdi
callq 0x71d0
leaq 0x29319(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
leaq 0x48(%r14), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x7280
leaq 0x292fb(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movq 0x18(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0x292e0(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movl 0x68(%r14), %esi
movq %rax, %rdi
callq 0x75c0
leaq 0x292c5(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
leaq 0x20(%r14), %rsi
movq %rax, %rdi
callq 0x7280
leaq 0x292aa(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movq %rax, %r13
leaq 0xa8(%r14), %rbp
movq %r12, %rdi
movq %rbp, %rsi
callq 0xa171
movb %al, 0xe(%rsp)
testb %al, %al
je 0x984e
leaq 0x28cd4(%rip), %rsi     # 0x324f3
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x91c4
jmp 0x985b
movzbl %r12b, %esi
movq %r14, %rdi
callq 0xa19a
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x94ca
jmp 0x998d
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x7440
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x7280
leaq 0x2922e(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movq 0xc8(%r14), %rsi
movq %rax, %rdi
callq 0x72a0
leaq 0x29210(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movl 0xd8(%r14), %esi
movq %rax, %rdi
callq 0x75c0
leaq 0x291f2(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movq %rax, %r13
leaq 0x40(%r14), %r12
pushq $0x4
popq %rsi
movq %r12, %rdi
callq 0xa11c
movzbl %al, %eax
shll $0x6, %eax
leaq (%r15,%rax), %rsi
addq $0x20, %rsi
movq %r13, %rdi
callq 0x7280
leaq 0x291bb(%rip), %rsi     # 0x32a9d
movq %rax, %rdi
callq 0x72b0
movq %rax, %r13
pushq $0x4
popq %rsi
movq %r12, %rdi
callq 0xa11c
movzbl %al, %eax
shll $0x6, %eax
leaq (%rax,%r15), %rsi
addq $0x40, %rsi
movq %r13, %rdi
callq 0x7280
leaq 0x28b79(%rip), %rsi     # 0x3248e
movq %rax, %rdi
callq 0x72b0
movl 0xe0(%r14), %esi
addl 0x70(%r14), %esi
movq %rax, %rdi
callq 0x75c0
leaq 0x28b5e(%rip), %rsi     # 0x32495
movq %rax, %rdi
callq 0x72b0
movl 0x6c(%r14), %esi
movq %rax, %rdi
callq 0x75c0
leaq 0x28b4a(%rip), %rsi     # 0x3249c
movq %rax, %rdi
callq 0x72b0
addq $0x78, %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x7280
movq %rax, %rdi
callq 0x7160
leaq 0x10(%rsp), %rdi
callq 0x76a8
cmpb $0x0, 0xe(%rsp)
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x7540
leaq 0x30(%rsp), %rdi
callq 0x7210
movq %rbx, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x99c3
movq %rax, %rbx
jmp 0x99c8
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x76a8
cmpb $0x0, 0xe(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x7210
movq %rbx, %rdi
callq 0x75e0