// File: /workspace/github_cpp_makefile_star2_O1/BenLangmead[P]bowtie/./ebwt.h
// Function: Ebwt::printRangeBw(unsigned int, unsigned int) const
void Ebwt::printRangeBw(uint32_t begin, uint32_t end) const {
	assert(isInMemory());
	uint32_t occ[] = {0, 0, 0, 0};
	assert_gt(end, begin);
	for(uint32_t i = end-1; i >= begin; i--) {
		uint8_t by = this->_ebwt[i];
		for(int j = 3; j >= 0; j--) {
			// Unpack from lowest to highest bit pair
			int twoBit = unpack_2b_from_8b(by, j);
			occ[twoBit]++;
			cout << "ACGT"[twoBit];
		}
		assert_eq(0, (occ[0] + occ[1] + occ[2] + occ[3]) & 3);
		if(i == 0) break;
	}
	cout << ":{" << occ[0] << "," << occ[1] << "," << occ[2] << "," << occ[3] << "}" << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, 0x28(%rsp)
callq 0xfb60
testb %al, %al
je 0x572f
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
cmpl %ebp, %r14d
jbe 0x574e
movl %r14d, %r13d
movl %ebp, %eax
movq %rax, 0x30(%rsp)
leaq 0x27c76(%rip), %rbx     # 0x2d131
movq 0x31af6(%rip), %r14     # 0x36fb8
leaq 0xf(%rsp), %r15
decq %r13
cmpq 0x30(%rsp), %r13
jb 0x5531
movq 0x28(%rsp), %rax
movq 0xc8(%rax), %rax
movl $0x3, %ebp
movzbl (%rax,%r13), %r12d
movl %r12d, %edi
movl %ebp, %esi
callq 0x53b3
movl %eax, %eax
incl 0x10(%rsp,%rax,4)
movb (%rax,%rbx), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x43b0
addl $-0x1, %ebp
jb 0x54e7
movl 0x14(%rsp), %ebp
addl 0x10(%rsp), %ebp
addl 0x18(%rsp), %ebp
addl 0x1c(%rsp), %ebp
andl $0x3, %ebp
jne 0x5609
testq %r13, %r13
jne 0x54c7
movq 0x31a80(%rip), %rbx     # 0x36fb8
leaq 0x27c1a(%rip), %rsi     # 0x2d159
movl $0x2, %edx
movq %rbx, %rdi
callq 0x43b0
movl 0x10(%rsp), %esi
movq %rbx, %rdi
callq 0x41d0
movq %rax, %r14
leaq 0x28327(%rip), %rbx     # 0x2d889
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x43b0
movl 0x14(%rsp), %esi
movq %r14, %rdi
callq 0x41d0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x43b0
movl 0x18(%rsp), %esi
movq %r14, %rdi
callq 0x41d0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x43b0
movl 0x1c(%rsp), %esi
movq %r14, %rdi
callq 0x41d0
movq %rax, %rbx
leaq 0x27b96(%rip), %rsi     # 0x2d15c
movl $0x1, %edx
movq %rax, %rdi
callq 0x43b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4300
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41e0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x319a8(%rip), %rbx     # 0x36fb8
leaq 0x27b1f(%rip), %rsi     # 0x2d136
movq %rbx, %rdi
callq 0x4310
movq %rax, %rdi
xorl %esi, %esi
callq 0x4610
leaq 0x27b1c(%rip), %r14     # 0x2d14c
movq %rax, %rdi
movq %r14, %rsi
callq 0x4310
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
xorl %esi, %esi
callq 0x4610
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
leaq 0x27adb(%rip), %rsi     # 0x2d151
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl %ebp, %esi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x4310
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x4440
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
leaq 0x29c47(%rip), %rsi     # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0x279f5(%rip), %r14     # 0x2d0da
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0x29021(%rip), %rsi     # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x624, %esi            # imm = 0x624
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0x28edd(%rip), %rdi     # 0x2e5f8
leaq 0x27a3c(%rip), %rcx     # 0x2d15e
movq %r14, %rsi
movl $0x624, %edx            # imm = 0x624
callq 0x41c0
leaq 0x27997(%rip), %rdi     # 0x2d0cd
leaq 0x2799d(%rip), %rsi     # 0x2d0da
leaq 0x27a1a(%rip), %rcx     # 0x2d15e
movl $0x619, %edx            # imm = 0x619
callq 0x41c0
movq 0x31863(%rip), %rbx     # 0x36fb8
leaq 0x279b9(%rip), %rsi     # 0x2d115
movq %rbx, %rdi
callq 0x4310
movq %rax, %rdi
movl %r14d, %esi
callq 0x4440
leaq 0x279b5(%rip), %rsi     # 0x2d12b
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl %ebp, %esi
callq 0x4440
leaq 0x29b86(%rip), %rsi     # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0x27934(%rip), %r14     # 0x2d0da
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0x28f60(%rip), %rsi     # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x61b, %esi            # imm = 0x61B
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0x28e1c(%rip), %rdi     # 0x2e5f8
leaq 0x2797b(%rip), %rcx     # 0x2d15e
movq %r14, %rsi
movl $0x61b, %edx            # imm = 0x61B
callq 0x41c0