// File: /workspace/github_cpp_makefile_star2_O3/BenLangmead[P]bowtie/./range_source.h
// Function: Branch::print(SDnaStringExpandable<25, 2> const&, SStringExpandable<char, 25, 2, 0> const&, unsigned short, std::ostream&, bool, bool, bool, bool)
void print(const BTDnaString& qry,
	           const BTString& quals,
	           uint16_t minCost,
	           std::ostream& out,
	           bool halfAndHalf,
	           bool seeded,
	           bool fw,
	           bool ebwtFw)
	{
		size_t editidx = 0;
		size_t printed = 0;
		const size_t qlen = qry.length();
		if(exhausted_)      out << "E ";
		else if(curtailed_) out << "C ";
		else                out << "  ";
		if(ebwtFw) out << "<";
		else       out << ">";
		if(fw)     out << "F ";
		else       out << "R ";
		std::stringstream ss;
		ss << cost_;
		string s = ss.str();
		if(s.length() < 6) {
			for(size_t i = 0; i < 6 - s.length(); i++) {
				out << "0";
			}
		}
		out << s << " ";
		std::stringstream ss2;
		ss2 << minCost;
		s = ss2.str();
		if(s.length() < 6) {
			for(size_t i = 0; i < 6 - s.length(); i++) {
				out << "0";
			}
		}
		out << s;
		if(halfAndHalf) out << " h ";
		else if(seeded) out << " s ";
		else            out << "   ";
		std::stringstream ss3;
		const size_t numEdits = edits_.size();
		if(rdepth_ > 0) {
			for(size_t i = 0; i < rdepth_; i++) {
				if(editidx < numEdits && edits_.get(editidx).pos == i) {
					ss3 << " " << (char)tolower(edits_.get(editidx).chr);
					editidx++;
				} else {
					ss3 << " " << (char)qry.toChar(qlen - i - 1);
				}
				printed++;
			}
			ss3 << "|";
		} else {
			ss3 << " ";
		}
		for(size_t i = 0; i < len_; i++) {
			if(editidx < numEdits && edits_.get(editidx).pos == printed) {
				ss3 << (char)tolower(edits_.get(editidx).chr) << " ";
				editidx++;
			} else {
				ss3 << (char)qry.toChar(qlen - printed - 1) << " ";
			}
			printed++;
		}
		assert_eq(editidx, edits_.size());
		for(size_t i = printed; i < qlen; i++) {
			ss3 << "= ";
		}
		s = ss3.str();
		if(ebwtFw) {
			std::reverse(s.begin(), s.end());
		}
		out << s << endl;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x508, %rsp            # imm = 0x508
movl %r9d, %ebp
movq %r8, %r12
movl %ecx, %r13d
movq %rdi, %r15
movb 0x548(%rsp), %r14b
movq %rsi, 0x38(%rsp)
movq 0x20(%rsi), %rbx
leaq 0x29133(%rip), %rax     # 0x55a94
testb $0x1, 0x82(%rdi)
leaq 0x2952d(%rip), %rcx     # 0x55e9c
cmovneq %rax, %rcx
leaq 0x29117(%rip), %rsi     # 0x55a91
cmpb $0x0, 0x83(%rdi)
cmoveq %rcx, %rsi
movl $0x2, %edx
movq %r8, %rdi
callq 0x9560
leaq 0x290fe(%rip), %rax     # 0x55a97
leaq 0x2909c(%rip), %rsi     # 0x55a3c
cmpb $0x0, 0x550(%rsp)
cmovneq %rax, %rsi
movl $0x1, %edx
movq %r12, %rdi
callq 0x9560
leaq 0x290d9(%rip), %rax     # 0x55a99
leaq 0x290d5(%rip), %rsi     # 0x55a9c
testb %r14b, %r14b
cmovneq %rax, %rsi
movl $0x2, %edx
movq %r12, %rdi
callq 0x9560
leaq 0x1f8(%rsp), %rdi
callq 0x9310
leaq 0x208(%rsp), %rdi
movq %r15, 0x8(%rsp)
movzwl 0x10(%r15), %esi
callq 0x92e0
leaq 0x210(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x97e0
movq 0x20(%rsp), %rdx
cmpq $0x5, %rdx
ja 0x2ca4b
xorl %r15d, %r15d
leaq 0x2abf8(%rip), %r14     # 0x5761e
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x9560
incq %r15
movq 0x20(%rsp), %rdx
movl $0x6, %eax
subq %rdx, %rax
cmpq %rax, %r15
jb 0x2ca26
movq 0x18(%rsp), %rsi
movq %r12, %rdi
callq 0x9560
leaq 0x2943e(%rip), %rsi     # 0x55e9d
movl $0x1, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x380(%rsp), %rdi
callq 0x9310
leaq 0x390(%rsp), %rdi
movzwl %r13w, %esi
callq 0x92e0
leaq 0x398(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x97e0
leaq 0x18(%rsp), %rdi
leaq 0x70(%rsp), %r14
movq %r14, %rsi
callq 0x95b0
movq (%r14), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x2cace
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x20(%rsp), %rdx
cmpq $0x5, %rdx
ja 0x2cb08
xorl %r15d, %r15d
leaq 0x2ab3b(%rip), %r14     # 0x5761e
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x9560
incq %r15
movq 0x20(%rsp), %rdx
movl $0x6, %eax
subq %rdx, %rax
cmpq %rax, %r15
jb 0x2cae3
movq 0x18(%rsp), %rsi
movq %r12, %rdi
callq 0x9560
leaq 0x28f87(%rip), %rax     # 0x55aa3
leaq 0x29378(%rip), %rcx     # 0x55e9b
cmpb $0x0, 0x540(%rsp)
cmovneq %rax, %rcx
leaq 0x28f69(%rip), %rsi     # 0x55a9f
testb %bpl, %bpl
cmoveq %rcx, %rsi
movl $0x3, %edx
movq %r12, %rdi
callq 0x9560
leaq 0x70(%rsp), %rdi
callq 0x9310
movq 0x8(%rsp), %rbp
movq 0x50(%rbp), %rax
movq %rax, 0x40(%rsp)
cmpw $0x0, 0xc(%rbp)
je 0x2cccb
movq %r12, %r14
leaq 0x58(%rbp), %rax
movq %rax, 0x10(%rsp)
leaq 0x80(%rsp), %rbp
leaq -0x1(%rbx), %r12
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpq 0x40(%rsp), %r13
jae 0x2cc01
cmpq $0x5, %r13
ja 0x2cba3
movq 0x10(%rsp), %rax
leaq (%rax,%r13,4), %rax
jmp 0x2cbcd
cmpq $0x15, %r13
ja 0x2cbbc
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x18, %rax
jmp 0x2cbcd
movq 0x8(%rsp), %rax
movq 0x78(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x58, %rax
movl (%rax), %eax
shrl $0x14, %eax
andl $0x3ff, %eax            # imm = 0x3FF
cmpq %rax, %r15
jne 0x2cc01
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x292b2(%rip), %rsi     # 0x55e9d
callq 0x9560
cmpq $0x5, %r13
ja 0x2cc45
movq 0x10(%rsp), %rax
leaq (%rax,%r13,4), %rax
jmp 0x2cc6f
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x2928d(%rip), %rsi     # 0x55e9d
callq 0x9560
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movsbq (%rax,%r12), %rax
leaq 0x28c0d(%rip), %rcx     # 0x55837
movb (%rax,%rcx), %al
movb %al, 0x48(%rsp)
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x48(%rsp), %rsi
callq 0x9560
jmp 0x2cc90
cmpq $0x15, %r13
ja 0x2cc5e
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x18, %rax
jmp 0x2cc6f
movq 0x8(%rsp), %rax
movq 0x78(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x58, %rax
movzbl (%rax), %edi
callq 0x96d0
movb %al, 0x48(%rsp)
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x48(%rsp), %rsi
callq 0x9560
incq %r13
incq %r15
movq 0x8(%rsp), %rax
movzwl 0xc(%rax), %eax
decq %r12
cmpq %rax, %r15
jb 0x2cb8b
leaq 0x80(%rsp), %rdi
leaq 0x28df0(%rip), %rsi     # 0x55aa7
movl $0x1, %edx
callq 0x9560
movq %r14, %r12
movq 0x8(%rsp), %rbp
jmp 0x2ccea
leaq 0x80(%rsp), %rdi
leaq 0x291c3(%rip), %rsi     # 0x55e9d
movl $0x1, %edx
callq 0x9560
xorl %r15d, %r15d
xorl %r13d, %r13d
cmpw $0x0, 0xe(%rbp)
je 0x2ce22
movq %r12, 0x68(%rsp)
leaq 0x58(%rbp), %rax
movq %rax, 0x10(%rsp)
movq %r15, %r14
notq %r14
addq %rbx, %r14
xorl %r12d, %r12d
leaq 0x29187(%rip), %rbp     # 0x55e9d
cmpq 0x40(%rsp), %r13
jae 0x2cdbf
leaq (%r15,%r12), %rax
cmpq $0x6, %r13
jae 0x2cd4d
movq 0x10(%rsp), %rcx
movl (%rcx,%r13,4), %ecx
shrl $0x14, %ecx
andl $0x3ff, %ecx            # imm = 0x3FF
cmpq %rcx, %rax
jne 0x2cdbf
movq 0x10(%rsp), %rax
leaq (%rax,%r13,4), %rcx
jmp 0x2cd87
cmpq $0x16, %r13
movq 0x8(%rsp), %rdx
movq 0x70(%rdx), %rcx
movq 0x78(%rdx), %rsi
leaq -0x18(%rcx,%r13,4), %rdx
leaq -0x58(%rsi,%r13,4), %rcx
movq %rcx, %rsi
cmovbq %rdx, %rsi
movl (%rsi), %esi
shrl $0x14, %esi
andl $0x3ff, %esi            # imm = 0x3FF
cmpq %rsi, %rax
jne 0x2cdbf
cmpq $0x16, %r13
cmovbq %rdx, %rcx
movzbl (%rcx), %edi
callq 0x96d0
movb %al, 0x48(%rsp)
movl $0x1, %edx
leaq 0x80(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x9560
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x9560
incq %r13
jmp 0x2ce02
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movsbq (%rax,%r14), %rax
leaq 0x28a63(%rip), %rcx     # 0x55837
movb (%rax,%rcx), %al
movb %al, 0x48(%rsp)
movl $0x1, %edx
leaq 0x80(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x9560
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x9560
incq %r12
movq 0x8(%rsp), %rax
movzwl 0xe(%rax), %eax
decq %r14
cmpq %rax, %r12
jb 0x2cd16
addq %r12, %r15
movq 0x68(%rsp), %r12
subq %r15, %rbx
jbe 0x2ce4b
leaq 0x80(%rsp), %r14
leaq 0x2646a(%rip), %r15     # 0x532a0
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x9560
decq %rbx
jne 0x2ce36
leaq 0x88(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x97e0
leaq 0x18(%rsp), %rdi
leaq 0x48(%rsp), %r14
movq %r14, %rsi
callq 0x95b0
movq (%r14), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce89
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
cmpb $0x0, 0x550(%rsp)
je 0x2cee0
testq %rdx, %rdx
setne %cl
leaq (%rsi,%rdx), %rax
decq %rax
cmpq %rsi, %rax
seta %dil
andb %cl, %dil
cmpb $0x1, %dil
jne 0x2cee0
incq %rsi
movb -0x1(%rsi), %cl
movb (%rax), %dl
movb %dl, -0x1(%rsi)
movb %cl, (%rax)
decq %rax
leaq 0x1(%rsi), %rcx
cmpq %rax, %rsi
movq %rcx, %rsi
jb 0x2cebd
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r12, %rdi
callq 0x9560
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9050
movq %rax, %rdi
callq 0x92f0
movq 0x3d02f(%rip), %rbx     # 0x69f48
leaq 0x70(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9340
movl $0x80, %r14d
addq %r14, %r15
movq %r15, %rdi
callq 0x9180
leaq 0x380(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9340
addq %r14, %r15
movq %r15, %rdi
callq 0x9180
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cf73
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x3cfce(%rip), %rsi     # 0x69f48
leaq 0x1f8(%rsp), %rdi
callq 0x9340
leaq 0x278(%rsp), %rdi
callq 0x9180
addq $0x508, %rsp            # imm = 0x508
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cfc9
jmp 0x2cfbd
jmp 0x2cfbd
jmp 0x2cfc2
jmp 0x2cfb0
movq %rax, %rbx
jmp 0x2d026
jmp 0x2cfc2
jmp 0x2cfbd
jmp 0x2cfc9
jmp 0x2cfc9
movq %rax, %rbx
jmp 0x2cfea
movq %rax, %rbx
jmp 0x2d00b
jmp 0x2cfc9
movq %rax, %rbx
movq 0x3cf75(%rip), %rsi     # 0x69f48
leaq 0x70(%rsp), %rdi
callq 0x9340
leaq 0xf0(%rsp), %rdi
callq 0x9180
movq 0x3cf57(%rip), %rsi     # 0x69f48
leaq 0x380(%rsp), %rdi
callq 0x9340
leaq 0x400(%rsp), %rdi
callq 0x9180
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d026
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x3cf1b(%rip), %rsi     # 0x69f48
leaq 0x1f8(%rsp), %rdi
callq 0x9340
leaq 0x278(%rsp), %rdi
callq 0x9180
movq %rbx, %rdi
callq 0x9930
nop