// File: /workspace/github_cpp_makefile_star2_O1/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 $0x4f8, %rsp            # imm = 0x4F8
movl %r9d, %ebp
movq %r8, %r12
movl %ecx, %r14d
movq %rdi, %r13
movb 0x538(%rsp), %r15b
movq %rsi, 0x38(%rsp)
movq 0x20(%rsi), %rbx
leaq 0x29c71(%rip), %rax     # 0x569b4
testb $0x1, 0x82(%rdi)
leaq 0x2a06b(%rip), %rcx     # 0x56dbc
cmovneq %rax, %rcx
leaq 0x29c55(%rip), %rsi     # 0x569b1
cmpb $0x0, 0x83(%rdi)
cmoveq %rcx, %rsi
movl $0x2, %edx
movq %r8, %rdi
callq 0x9560
leaq 0x29c3c(%rip), %rax     # 0x569b7
leaq 0x29bda(%rip), %rsi     # 0x5695c
cmpb $0x0, 0x540(%rsp)
cmovneq %rax, %rsi
movl $0x1, %edx
movq %r12, %rdi
callq 0x9560
leaq 0x29c17(%rip), %rax     # 0x569b9
leaq 0x29c13(%rip), %rsi     # 0x569bc
testb %r15b, %r15b
cmovneq %rax, %rsi
movl $0x2, %edx
movq %r12, %rdi
callq 0x9560
leaq 0x1e8(%rsp), %rdi
callq 0x9310
leaq 0x1f8(%rsp), %rdi
movq %r13, (%rsp)
movzwl 0x10(%r13), %esi
callq 0x92e0
leaq 0x200(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x97e0
cmpq $0x5, 0x18(%rsp)
ja 0x2ce26
xorl %r15d, %r15d
leaq 0x2b738(%rip), %r13     # 0x5853c
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x9560
incq %r15
movl $0x6, %eax
subq 0x18(%rsp), %rax
cmpq %rax, %r15
jb 0x2ce04
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x9560
leaq 0x29f7e(%rip), %rsi     # 0x56dbd
movl $0x1, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x370(%rsp), %rdi
callq 0x9310
leaq 0x380(%rsp), %rdi
movzwl %r14w, %esi
callq 0x92e0
leaq 0x388(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x97e0
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %r14
movq %r14, %rsi
callq 0x95b0
movq (%r14), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x2cea8
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x94c0
cmpq $0x5, 0x18(%rsp)
ja 0x2cedc
xorl %r15d, %r15d
leaq 0x2b682(%rip), %r14     # 0x5853c
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x9560
incq %r15
movl $0x6, %eax
subq 0x18(%rsp), %rax
cmpq %rax, %r15
jb 0x2ceba
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x9560
leaq 0x29ace(%rip), %rax     # 0x569c3
leaq 0x29ebf(%rip), %rcx     # 0x56dbb
cmpb $0x0, 0x530(%rsp)
cmovneq %rax, %rcx
leaq 0x29ab0(%rip), %rsi     # 0x569bf
testb %bpl, %bpl
cmoveq %rcx, %rsi
movl $0x3, %edx
movq %r12, %rdi
callq 0x9560
leaq 0x60(%rsp), %rdi
callq 0x9310
movq (%rsp), %rax
movq 0x50(%rax), %r15
cmpw $0x0, 0xc(%rax)
movq %r12, 0x30(%rsp)
je 0x2d07f
cmpw $0x0, 0xc(%rax)
je 0x2d09c
addq $0x58, %rax
movq %rax, 0x8(%rsp)
leaq 0x70(%rsp), %r14
leaq -0x1(%rbx), %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
cmpq %r15, %r13
jae 0x2cfd9
cmpq $0x5, %r13
ja 0x2cf7d
movq 0x8(%rsp), %rax
leaq (%rax,%r13,4), %rax
jmp 0x2cfa5
cmpq $0x15, %r13
ja 0x2cf95
movq (%rsp), %rax
movq 0x70(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x18, %rax
jmp 0x2cfa5
movq (%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, %rbp
jne 0x2cfd9
movl $0x1, %edx
movq %r14, %rdi
leaq 0x29dfa(%rip), %rsi     # 0x56dbd
callq 0x9560
cmpq $0x5, %r13
ja 0x2d01d
movq 0x8(%rsp), %rax
leaq (%rax,%r13,4), %rax
jmp 0x2d045
movl $0x1, %edx
movq %r14, %rdi
leaq 0x29dd5(%rip), %rsi     # 0x56dbd
callq 0x9560
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movsbq (%rax,%r12), %rax
leaq 0x29755(%rip), %rcx     # 0x56757
movb (%rax,%rcx), %al
movb %al, 0x40(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
callq 0x9560
jmp 0x2d066
cmpq $0x15, %r13
ja 0x2d035
movq (%rsp), %rax
movq 0x70(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x18, %rax
jmp 0x2d045
movq (%rsp), %rax
movq 0x78(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x58, %rax
movzbl (%rax), %edi
callq 0x96d0
movb %al, 0x40(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
callq 0x9560
incq %r13
incq %rbp
movq (%rsp), %rax
movzwl 0xc(%rax), %eax
decq %r12
cmpq %rax, %rbp
jb 0x2cf67
jmp 0x2d0a1
leaq 0x70(%rsp), %rdi
leaq 0x29d32(%rip), %rsi     # 0x56dbd
movl $0x1, %edx
callq 0x9560
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x2d0bc
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq 0x70(%rsp), %rdi
leaq 0x2991a(%rip), %rsi     # 0x569c7
movl $0x1, %edx
callq 0x9560
movq 0x30(%rsp), %r12
movq (%rsp), %rax
cmpw $0x0, 0xe(%rax)
je 0x2d206
addq $0x58, %rax
movq %rax, 0x8(%rsp)
movq %rbp, %r14
notq %r14
addq %rbx, %r14
xorl %r12d, %r12d
cmpq %r15, %r13
jae 0x2d142
cmpq $0x5, %r13
ja 0x2d0f6
movq 0x8(%rsp), %rax
leaq (%rax,%r13,4), %rax
jmp 0x2d11e
cmpq $0x15, %r13
ja 0x2d10e
movq (%rsp), %rax
movq 0x70(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x18, %rax
jmp 0x2d11e
movq (%rsp), %rax
movq 0x78(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x58, %rax
leaq (%r12,%rbp), %rcx
movl (%rax), %eax
shrl $0x14, %eax
andl $0x3ff, %eax            # imm = 0x3FF
cmpq %rax, %rcx
jne 0x2d142
cmpq $0x5, %r13
ja 0x2d188
movq 0x8(%rsp), %rax
leaq (%rax,%r13,4), %rax
jmp 0x2d1b0
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movsbq (%rax,%r14), %rax
leaq 0x29600(%rip), %rcx     # 0x56757
movb (%rax,%rcx), %al
movb %al, 0x40(%rsp)
movl $0x1, %edx
leaq 0x70(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x9560
movl $0x1, %edx
movq %rax, %rdi
leaq 0x29c3c(%rip), %rsi     # 0x56dbd
callq 0x9560
jmp 0x2d1e7
cmpq $0x15, %r13
ja 0x2d1a0
movq (%rsp), %rax
movq 0x70(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x18, %rax
jmp 0x2d1b0
movq (%rsp), %rax
movq 0x78(%rax), %rax
leaq (%rax,%r13,4), %rax
addq $-0x58, %rax
movzbl (%rax), %edi
callq 0x96d0
movb %al, 0x40(%rsp)
movl $0x1, %edx
leaq 0x70(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x9560
movl $0x1, %edx
movq %rax, %rdi
leaq 0x29bde(%rip), %rsi     # 0x56dbd
callq 0x9560
incq %r13
incq %r12
movq (%rsp), %rax
movzwl 0xe(%rax), %eax
decq %r14
cmpq %rax, %r12
jb 0x2d0e0
addq %r12, %rbp
movq 0x30(%rsp), %r12
subq %rbp, %rbx
jbe 0x2d22c
leaq 0x70(%rsp), %r14
leaq 0x26fa9(%rip), %r15     # 0x541c0
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x9560
decq %rbx
jne 0x2d217
leaq 0x78(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x97e0
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0x95b0
movq (%r14), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2d267
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x94c0
cmpb $0x0, 0x540(%rsp)
je 0x2d2b5
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
setne %dl
addq %rax, %rcx
decq %rcx
cmpq %rax, %rcx
seta %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x2d2b5
incq %rax
movb -0x1(%rax), %dl
movb (%rcx), %sil
movb %sil, -0x1(%rax)
movb %dl, (%rcx)
decq %rcx
leaq 0x1(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x2d29a
movq 0x10(%rsp), %rsi
movq 0x18(%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 0x3dc50(%rip), %rbx     # 0x6af48
leaq 0x60(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9340
movl $0x80, %r14d
addq %r14, %r15
movq %r15, %rdi
callq 0x9180
leaq 0x370(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9340
addq %r14, %r15
movq %r15, %rdi
callq 0x9180
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d352
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x3dbef(%rip), %rsi     # 0x6af48
leaq 0x1e8(%rsp), %rdi
callq 0x9340
leaq 0x268(%rsp), %rdi
callq 0x9180
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d3a8
jmp 0x2d39c
jmp 0x2d39c
jmp 0x2d3a1
jmp 0x2d38f
movq %rax, %rbx
jmp 0x2d405
jmp 0x2d3a1
jmp 0x2d39c
jmp 0x2d3a8
jmp 0x2d3a8
movq %rax, %rbx
jmp 0x2d3c9
movq %rax, %rbx
jmp 0x2d3ea
jmp 0x2d3a8
movq %rax, %rbx
movq 0x3db96(%rip), %rsi     # 0x6af48
leaq 0x60(%rsp), %rdi
callq 0x9340
leaq 0xe0(%rsp), %rdi
callq 0x9180
movq 0x3db78(%rip), %rsi     # 0x6af48
leaq 0x370(%rsp), %rdi
callq 0x9340
leaq 0x3f0(%rsp), %rdi
callq 0x9180
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d405
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x3db3c(%rip), %rsi     # 0x6af48
leaq 0x1e8(%rsp), %rdi
callq 0x9340
leaq 0x268(%rsp), %rdi
callq 0x9180
movq %rbx, %rdi
callq 0x9930