// File: /workspace/github_cpp_makefile_star2_O3/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, 0x8(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x4c0(%rdi), %r12
movq %r12, %rdi
callq 0x1ed3e
movq (%rax), %r14
leaq 0x1(%r15), %rsi
movq %r12, %rdi
callq 0x1ed3e
movq (%rax), %rax
movq %rax, (%rsp)
cmpq %r14, %rax
jbe 0x1f3d5
leaq 0x460(%rbx), %rdi
movq %r15, %rsi
callq 0x1ed3e
movq (%rax), %r12
movq %rbx, 0x10(%rsp)
leaq 0x400(%rbx), %r13
xorl %ebx, %ebx
movl $0x4, %ebp
movq %r13, %rdi
movq %r14, %rsi
callq 0x1800c
addq (%rax), %rbx
movq 0x8(%rsp), %r15
subq %rbx, %r15
jb 0x1f3c4
movq %r13, %rdi
movq %r14, %rsi
callq 0x1800c
addq 0x8(%rax), %rbx
cmpq 0x8(%rsp), %rbx
ja 0x1f38e
movq %r13, %rdi
movq %r14, %rsi
callq 0x1800c
addq 0x8(%rax), %r12
incq %r14
cmpq %r14, (%rsp)
jne 0x1f346
jmp 0x1f3c4
addq %r12, %r15
movq 0x10(%rsp), %r14
cmpq 0x550(%r14), %r15
jae 0x1f479
movq %r15, %rax
shrq $0x2, %rax
movq 0x540(%r14), %rcx
movzbl (%rcx,%rax), %ebp
addl %r15d, %r15d
andb $0x6, %r15b
movl %r15d, %ecx
shrl %cl, %ebp
andl $0x3, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17bdc(%rip), %rbx     # 0x36fb8
leaq 0xcdc2(%rip), %rsi      # 0x2c1a5
movq %rbx, %rdi
callq 0x4310
movq %rax, %rdi
movq (%rsp), %rsi
callq 0x40c0
leaq 0xcdbd(%rip), %rsi      # 0x2c1bb
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movq %r14, %rsi
callq 0x40c0
leaq 0xef8d(%rip), %rsi      # 0x2e3a5
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0xe436(%rip), %r14      # 0x2d865
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0xe367(%rip), %rsi      # 0x2d7a8
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x185, %esi            # imm = 0x185
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0xe223(%rip), %rdi      # 0x2d688
leaq 0xeebe(%rip), %rcx      # 0x2e32a
movq %r14, %rsi
movl $0x185, %edx            # imm = 0x185
callq 0x41c0
movq 0x17b38(%rip), %rbx     # 0x36fb8
leaq 0xce6d(%rip), %rsi      # 0x2c2f4
movq %rbx, %rdi
callq 0x4310
movq %rax, %rdi
movq %r15, %rsi
callq 0x40c0
leaq 0xce69(%rip), %rsi      # 0x2c30a
movq %rax, %rdi
callq 0x4310
movq 0x550(%r14), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0xeee6(%rip), %rsi      # 0x2e3a5
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0xe38f(%rip), %r14      # 0x2d865
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0xe2c0(%rip), %rsi      # 0x2d7a8
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x194, %esi            # imm = 0x194
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0xe17c(%rip), %rdi      # 0x2d688
leaq 0xee17(%rip), %rcx      # 0x2e32a
movq %r14, %rsi
movl $0x194, %edx            # imm = 0x194
callq 0x41c0