// File: /workspace/github_cpp_makefile_star2_O2/BenLangmead[P]bowtie/./reference.h
// Function: BitPairReference::getBase(unsigned long, unsigned long) const
int getBase(size_t tidx, size_t toff) const {
		uint64_t reci = refRecOffs_[tidx];   // first record for target reference sequence
		uint64_t recf = refRecOffs_[tidx+1]; // last record (exclusive) for target seq
		assert_gt(recf, reci);
		uint64_t bufOff = refOffs_[tidx];
		uint64_t off = 0;
		// For all records pertaining to the target reference sequence...
		for(uint64_t i = reci; i < recf; i++) {
			assert_geq(toff, off);
			off += recs_[i].off;
			if(toff < off) {
				return 4;
			}
			assert_geq(toff, off);
			uint64_t recOff = off + recs_[i].len;
			if(toff < recOff) {
				toff -= off;
				bufOff += toff;
				assert_lt(bufOff, bufSz_);
				const uint64_t bufElt = (bufOff) >> 2;
				const uint64_t shift = (bufOff & 3) << 1;
				return ((buf_[bufElt] >> shift) & 3);
			}
			bufOff += recs_[i].len;
			off = recOff;
			assert_geq(toff, off);
		} // end for loop over records
		return 4;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r13
leaq 0x4c0(%rdi), %r12
movq %r12, %rdi
callq 0x1b0bc
movq (%rax), %r14
leaq 0x1(%r15), %rsi
movq %r12, %rdi
callq 0x1b0bc
movq (%rax), %rax
movq %rax, 0x8(%rsp)
cmpq %r14, %rax
jbe 0x1b6b0
leaq 0x460(%r13), %rdi
movq %r15, %rsi
callq 0x1b0bc
movq (%rax), %rbp
movq %r13, 0x10(%rsp)
addq $0x400, %r13            # imm = 0x400
xorl %r12d, %r12d
cmpq 0x8(%rsp), %r14
jae 0x1b666
movq %r13, %rdi
movq %r14, %rsi
callq 0x147d8
addq (%rax), %r12
movq %rbx, %r15
subq %r12, %r15
jb 0x1b666
movq %r13, %rdi
movq %r14, %rsi
callq 0x147d8
addq 0x8(%rax), %r12
cmpq %rbx, %r12
ja 0x1b66b
movq %r13, %rdi
movq %r14, %rsi
callq 0x147d8
addq 0x8(%rax), %rbp
incq %r14
jmp 0x1b621
pushq $0x4
popq %rax
jmp 0x1b6a1
addq %rbp, %r15
movq 0x10(%rsp), %r14
cmpq 0x550(%r14), %r15
jae 0x1b755
movq %r15, %rax
shrq $0x2, %rax
movq 0x540(%r14), %rcx
movzbl (%rcx,%rax), %eax
addl %r15d, %r15d
andb $0x6, %r15b
movl %r15d, %ecx
shrl %cl, %eax
andl $0x3, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18901(%rip), %rbx     # 0x33fb8
leaq 0xca7a(%rip), %rsi      # 0x28138
movq %rbx, %rdi
callq 0x42d0
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x40b0
leaq 0xca74(%rip), %rsi      # 0x2814e
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movq %r14, %rsi
callq 0x40b0
leaq 0xed24(%rip), %rsi      # 0x2a418
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0x4130
leaq 0xe0ed(%rip), %r14      # 0x297f8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42d0
leaq 0xe01e(%rip), %rsi      # 0x2973b
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl $0x185, %esi            # imm = 0x185
callq 0x45d0
movq %rax, %rdi
callq 0x4130
leaq 0xdeda(%rip), %rdi      # 0x2961b
leaq 0xec55(%rip), %rcx      # 0x2a39d
movq %r14, %rsi
movl $0x185, %edx            # imm = 0x185
callq 0x4190
movq 0x1885c(%rip), %rbx     # 0x33fb8
leaq 0xcb24(%rip), %rsi      # 0x28287
movq %rbx, %rdi
callq 0x42d0
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b0
leaq 0xcb20(%rip), %rsi      # 0x2829d
movq %rax, %rdi
callq 0x42d0
movq 0x550(%r14), %rsi
movq %rax, %rdi
callq 0x40b0
leaq 0xec7d(%rip), %rsi      # 0x2a418
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0x4130
leaq 0xe046(%rip), %r14      # 0x297f8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42d0
leaq 0xdf77(%rip), %rsi      # 0x2973b
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl $0x194, %esi            # imm = 0x194
callq 0x45d0
movq %rax, %rdi
callq 0x4130
leaq 0xde33(%rip), %rdi      # 0x2961b
leaq 0xebae(%rip), %rcx      # 0x2a39d
movq %r14, %rsi
movl $0x194, %edx            # imm = 0x194
callq 0x4190