// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
leaq 0x4c0(%rdi), %r15
movq %r15, %rdi
callq 0x1f1da
movq (%rax), %r14
leaq 0x1(%rbx), %rsi
movq %r15, %rdi
callq 0x1f1da
movq (%rax), %rax
movq %rax, 0x10(%rsp)
cmpq %r14, %rax
jbe 0x1f9a5
leaq 0x460(%r13), %rdi
movq %rbx, %rsi
callq 0x1f1da
movq (%rax), %rbp
movq %r13, 0x18(%rsp)
addq $0x400, %r13            # imm = 0x400
xorl %ebx, %ebx
movq %r13, 0x20(%rsp)
cmpq %rbx, %r12
jb 0x1f858
movq %r13, %rdi
movq %r14, %rsi
callq 0x184e4
addq (%rax), %rbx
movl $0x4, 0x8(%rsp)
movq %r12, %r15
subq %rbx, %r15
jb 0x1f845
movq %r13, %rdi
movq %r14, %rsi
callq 0x184e4
movq %r13, %rdi
movq 0x8(%rax), %r13
addq %rbx, %r13
cmpq %r13, %r12
jae 0x1f80e
addq %r15, %rbp
movq 0x18(%rsp), %rcx
cmpq 0x550(%rcx), %rbp
jae 0x1f8fb
movq %rbp, %rax
shrq $0x2, %rax
movq 0x540(%rcx), %rcx
movzbl (%rcx,%rax), %eax
leal (,%rbp,2), %ecx
andb $0x6, %cl
shrl %cl, %eax
andl $0x3, %eax
movl %eax, 0xc(%rsp)
jmp 0x1f820
movq %r14, %rsi
callq 0x184e4
addq 0x8(%rax), %rbp
movq %r13, %rbx
movq %r12, %r15
cmpq %r13, %r12
jb 0x1f83d
incq %r14
movq %r15, %r12
cmpq %r14, 0x10(%rsp)
movq 0x20(%rsp), %r13
jne 0x1f78d
jmp 0x1f845
movl 0xc(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17759(%rip), %r15     # 0x36fb8
leaq 0xd9bc(%rip), %rsi      # 0x2d222
movq %r15, %rdi
callq 0x4310
movq %rax, %rdi
movq %r12, %rsi
callq 0x40c0
leaq 0xd9b9(%rip), %rsi      # 0x2d239
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movq %rbx, %rsi
callq 0x40c0
leaq 0xfa7b(%rip), %rsi      # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0xef24(%rip), %r14      # 0x2e7d5
movq %r15, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0xee55(%rip), %rsi      # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x18a, %esi            # imm = 0x18A
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0xed11(%rip), %rdi      # 0x2e5f8
leaq 0xf9ac(%rip), %rcx      # 0x2f29a
movq %r14, %rsi
movl $0x18a, %edx            # imm = 0x18A
callq 0x41c0
movq 0x176b6(%rip), %rbx     # 0x36fb8
leaq 0xd95b(%rip), %rsi      # 0x2d264
movq %rbx, %rdi
movq %rcx, %r14
callq 0x4310
movq %rax, %rdi
movq %rbp, %rsi
callq 0x40c0
leaq 0xd954(%rip), %rsi      # 0x2d27a
movq %rax, %rdi
callq 0x4310
movq 0x550(%r14), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0xf9d1(%rip), %rsi      # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0xee7a(%rip), %r14      # 0x2e7d5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0xedab(%rip), %rsi      # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x194, %esi            # imm = 0x194
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0xec67(%rip), %rdi      # 0x2e5f8
leaq 0xf902(%rip), %rcx      # 0x2f29a
movq %r14, %rsi
movl $0x194, %edx            # imm = 0x194
callq 0x41c0
movq 0x1760c(%rip), %rbx     # 0x36fb8
leaq 0xd762(%rip), %rsi      # 0x2d115
movq %rbx, %rdi
callq 0x4310
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x40c0
leaq 0xd75c(%rip), %rsi      # 0x2d12b
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movq %r14, %rsi
callq 0x40c0
leaq 0xf92c(%rip), %rsi      # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0xedd5(%rip), %r14      # 0x2e7d5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4310
leaq 0xed06(%rip), %rsi      # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x185, %esi            # imm = 0x185
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0xebc2(%rip), %rdi      # 0x2e5f8
leaq 0xf85d(%rip), %rcx      # 0x2f29a
movq %r14, %rsi
movl $0x185, %edx            # imm = 0x185
callq 0x41c0