// File: /workspace/github_cpp_makefile_star2_O1/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 0x10456
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 0x53b3
movl %eax, %r12d
cmpb $0x1, 0x12(%r15)
jne 0x103e7
cmpb $0x0, 0x1c1(%r14)
je 0x103f7
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x19526
jmp 0x10405
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x19d7a
jmp 0x10405
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x189e8
movq %rax, %rbx
cmpq 0x110(%r14), %rax
jae 0x10475
movb 0xe(%r14), %al
xorb $0x1, %al
orb %bpl, %al
jne 0x10446
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %ecx
callq 0x1a92a
movl %r12d, %r12d
cmpq %rbx, (%rsp,%r12,8)
jne 0x1051c
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1dc97(%rip), %rdi     # 0x2e0f4
leaq 0x1cc76(%rip), %rsi     # 0x2d0da
leaq 0x1dca5(%rip), %rcx     # 0x2e110
movl $0x97c, %edx            # imm = 0x97C
callq 0x41c0
movq 0x26b3c(%rip), %r15     # 0x36fb8
leaq 0x1cde1(%rip), %rsi     # 0x2d264
movq %r15, %rdi
callq 0x4310
movq %rax, %rdi
movq %rbx, %rsi
callq 0x40c0
leaq 0x1cddd(%rip), %rsi     # 0x2d27a
movq %rax, %rdi
callq 0x4310
movq 0x110(%r14), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x1ee5a(%rip), %rsi     # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0x1cc08(%rip), %rbx     # 0x2d0da
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4310
leaq 0x1e234(%rip), %rsi     # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x988, %esi            # imm = 0x988
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0x1e0f0(%rip), %rdi     # 0x2e5f8
leaq 0x1dc01(%rip), %rcx     # 0x2e110
movq %rbx, %rsi
movl $0x988, %edx            # imm = 0x988
callq 0x41c0
movq 0x26a95(%rip), %r14     # 0x36fb8
leaq 0x1cc0c(%rip), %rsi     # 0x2d136
movq %r14, %rdi
callq 0x4310
movq (%rsp,%r12,8), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x1cc07(%rip), %r15     # 0x2d14c
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 0x1cbc4(%rip), %rsi     # 0x2d151
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 0x1ed2e(%rip), %rsi     # 0x2f315
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
callq 0x4150
leaq 0x1cadc(%rip), %rbx     # 0x2d0da
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4310
leaq 0x1e108(%rip), %rsi     # 0x2e718
movq %rax, %rdi
callq 0x4310
movq %rax, %rdi
movl $0x990, %esi            # imm = 0x990
callq 0x4610
movq %rax, %rdi
callq 0x4150
leaq 0x1dfc4(%rip), %rdi     # 0x2e5f8
leaq 0x1dad5(%rip), %rcx     # 0x2e110
movq %rbx, %rsi
movl $0x990, %edx            # imm = 0x990
callq 0x41c0