// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
leaq 0x20(%rsp), %rdi
callq 0x71e0
movslq %ebp, %rax
movq 0xb0(%r14), %rcx
movq (%rcx,%rax,8), %rbx
movq 0x40(%rbx), %rax
testb $0x1, %al
jne 0xb690
andq $-0xca, %rax
xorb $0x1, %r15b
movzbl %r15b, %ecx
shll $0x6, %ecx
addq %rcx, %rax
addq $0x49, %rax
movq %rax, 0x40(%rbx)
movq %r12, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0xb30c
jmp 0xb969
leaq 0x30(%rsp), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x7340
movq %rax, %r15
leaq 0x35372(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0xa0(%rbx), %rsi
orq 0x40(%rbx), %rsi
movq %r15, %rdi
callq 0x71c0
movq %rax, %r15
leaq 0x35348(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
leaq 0x35321(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x18(%rbx), %rsi
movq %r15, %rdi
callq 0x72a0
movq %rax, %r15
leaq 0x352fe(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0x68(%rbx), %esi
movq %r15, %rdi
callq 0x75d0
movq %rax, %r15
leaq 0x352dc(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
leaq 0x352b5(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq %r12, %rbp
movq 0x50(%rbx), %rdx
movq 0xb0(%rbx), %r12
cmpq %r12, %rdx
jne 0xb7c5
testq %rdx, %rdx
je 0xb7a4
movq 0x48(%rbx), %rdi
movq 0xa8(%rbx), %r13
movq %r13, %rsi
callq 0x7300
testl %eax, %eax
jne 0xb7cc
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x34ccd(%rip), %rsi     # 0x40481
leaq 0x34cc7(%rip), %rdx     # 0x40482
movq %rsp, %rdi
callq 0xc2d0
jmp 0xb7e6
movq 0xa8(%rbx), %r13
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
addq %r13, %r12
movq %rsp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0xc1d8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x7340
movq %rax, %r15
movq %rbp, %r12
leaq 0x35219(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movq 0xc8(%rbx), %rsi
movq %r15, %rdi
callq 0x72a0
movq %rax, %r15
leaq 0x351f3(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0xd8(%rbx), %esi
movq %r15, %rdi
callq 0x75d0
movq %rax, %r15
leaq 0x351ce(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0x40(%rbx), %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 0x3519f(%rip), %rsi     # 0x40a1d
movl $0x1, %edx
movq %rax, %rdi
callq 0x7340
movl 0x40(%rbx), %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 0x34bb0(%rip), %rsi     # 0x4045d
movl $0x6, %edx
movq %rax, %rdi
callq 0x7340
movl 0xe0(%rbx), %esi
addl 0x70(%rbx), %esi
movq %r14, %rdi
callq 0x75d0
movq %rax, %r14
leaq 0x34b8f(%rip), %rsi     # 0x40464
movl $0x6, %edx
movq %rax, %rdi
callq 0x7340
movl 0x6c(%rbx), %esi
movq %r14, %rdi
callq 0x75d0
movq %rax, %r14
leaq 0x34b74(%rip), %rsi     # 0x4046b
movl $0x6, %edx
movq %rax, %rdi
callq 0x7340
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %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 0xb95c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72f0
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x7540
movq 0x48628(%rip), %rsi     # 0x53f98
leaq 0x20(%rsp), %rdi
callq 0x7210
leaq 0xa0(%rsp), %rdi
callq 0x7100
movq %r12, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb99e
movq %rax, %rbx
jmp 0xb9c1
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb9c1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72f0
movq 0x485d0(%rip), %rsi     # 0x53f98
leaq 0x20(%rsp), %rdi
callq 0x7210
leaq 0xa0(%rsp), %rdi
callq 0x7100
movq %rbx, %rdi
callq 0x7600