// File: /workspace/github_cpp_makefile_star2_O3/BenLangmead[P]bowtie/./ebwt.h
// Function: Ebwt::mapLF(SideLocus const&, bool) const
inline TIndexOffU Ebwt::mapLF(const SideLocus& l
                                  ASSERT_ONLY(, bool overrideSanity)
                                  ) const
{
#ifdef EBWT_STATS
	const_cast<Ebwt*>(this)->mapLFs_++;
#endif
	TIndexOffU ret;
	assert(l.side(this->_ebwt) != NULL);
	int c = rowL(l);
	assert_lt(c, 4);
	assert_geq(c, 0);
	if(l._fw) {
		// Forward side
		ret = !_eh._isBt2Index ? countFwSide(l, c)
		                       : countBt2Side(l, c);
	}
	else {
		ret = countBwSide(l, c); // Backward side
	}
	assert_lt(ret, this->_eh._bwtLen);
#ifndef NDEBUG
	if(_sanity && !overrideSanity) {
		// Make sure results match up with results from mapLFEx;
		// be sure to override sanity-checking in the callee, or we'll
		// have infinite recursion
		TIndexOffU arrs[] = { 0, 0, 0, 0 };
		mapLFEx(l, arrs, true);
		assert_eq(arrs[c], ret);
	}
#endif
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq 0xc8(%rdi), %rax
testq %rax, %rax
je 0x1023e
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
addq (%rsi), %rax
movswq 0x14(%rsi), %rcx
movzbl (%rcx,%rax), %edi
movsbl 0x16(%rsi), %esi
callq 0x53e3
movl %eax, %r12d
cmpb $0x1, 0x12(%r15)
jne 0x101cf
cmpb $0x0, 0x1c1(%r14)
je 0x101df
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x19046
jmp 0x101ed
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x198a0
jmp 0x101ed
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x184f4
movq %rax, %rbx
cmpq 0x110(%r14), %rax
jae 0x1025d
movb 0xe(%r14), %al
xorb $0x1, %al
orb %bpl, %al
jne 0x1022e
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %ecx
callq 0x1a420
movl %r12d, %r12d
cmpq %rbx, (%rsp,%r12,8)
jne 0x10304
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1cf3f(%rip), %rdi     # 0x2d184
leaq 0x1bf1e(%rip), %rsi     # 0x2c16a
leaq 0x1cf4d(%rip), %rcx     # 0x2d1a0
movl $0x97c, %edx            # imm = 0x97C
callq 0x41c0
movq 0x26d54(%rip), %r15     # 0x36fb8
leaq 0x1c089(%rip), %rsi     # 0x2c2f4
movq %r15, %rdi
callq 0x4310
movq %rax, %rdi
movq %rbx, %rsi
callq 0x40c0
leaq 0x1c085(%rip), %rsi     # 0x2c30a
movq %rax, %rdi
callq 0x4310
movq 0x110(%r14), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x1e102(%rip), %rsi     # 0x2e3a5
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0x1beb0(%rip), %rbx     # 0x2c16a
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4310
leaq 0x1d4dc(%rip), %rsi     # 0x2d7a8
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x988, %esi            # imm = 0x988
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0x1d398(%rip), %rdi     # 0x2d688
leaq 0x1cea9(%rip), %rcx     # 0x2d1a0
movq %rbx, %rsi
movl $0x988, %edx            # imm = 0x988
callq 0x41c0
movq 0x26cad(%rip), %r14     # 0x36fb8
leaq 0x1beb4(%rip), %rsi     # 0x2c1c6
movq %r14, %rdi
callq 0x4310
movq (%rsp,%r12,8), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x1beaf(%rip), %r15     # 0x2c1dc
movq %rax, %rdi
movq %r15, %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 (%rsp,%r12,8), %rsi
movq %rax, %rdi
callq 0x40c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
leaq 0x1be6c(%rip), %rsi     # 0x2c1e1
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movq %rbx, %rsi
callq 0x40c0
movq %rax, %rdi
movq %r15, %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
movq %rbx, %rsi
callq 0x40c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
leaq 0x1dfd6(%rip), %rsi     # 0x2e3a5
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0x1bd84(%rip), %rbx     # 0x2c16a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4310
leaq 0x1d3b0(%rip), %rsi     # 0x2d7a8
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x990, %esi            # imm = 0x990
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0x1d26c(%rip), %rdi     # 0x2d688
leaq 0x1cd7d(%rip), %rcx     # 0x2d1a0
movq %rbx, %rsi
movl $0x990, %edx            # imm = 0x990
callq 0x41c0