// File: BenLangmead[P]bowtie/./ebwt_search_backtrack.h
// Function: GreedyDFSRangeSource::tallyNs(int&, int&)
bool tallyNs(int& nsInSeed, int& nsInFtab) {
		const Ebwt& ebwt = *_ebwt;
		int ftabChars = ebwt._eh._ftabChars;
		// Count Ns in the seed region of the read and short-circuit if
		// the configuration of Ns guarantees that there will be no
		// valid alignments given the backtracking constraints.
		for(size_t i = 0; i < _3revOff; i++) {
			if((int)(*_qry)[_qlen-i-1] == 4) {
				nsInSeed++;
				if(nsInSeed == 1) {
					if(i < _unrevOff) {
						return false; // Exceeded mm budget on Ns alone
					}
				} else if(nsInSeed == 2) {
					if(i < _1revOff) {
						return false; // Exceeded mm budget on Ns alone
					}
				} else if(nsInSeed == 3) {
					if(i < _2revOff) {
						return false; // Exceeded mm budget on Ns alone
					}
				} else {
					assert_gt(nsInSeed, 3);
					return false;     // Exceeded mm budget on Ns alone
				}
			}
		}
		// Calculate the number of Ns there are in the region that
		// would get jumped over if the ftab were used.
		for(size_t i = 0; i < (size_t)ftabChars && i < _qlen; i++) {
			if((int)(*_qry)[_qlen-i-1] == 4) nsInFtab++;
		}
		return true;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl 0x124(%rax), %eax
movl %eax, -0x2c(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movl 0x3c(%rcx), %ecx
cmpq %rcx, %rax
jae 0x6721a
movq -0x48(%rbp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
subq -0x38(%rbp), %rsi
subq $0x1, %rsi
callq 0x403a0
movsbl (%rax), %eax
cmpl $0x4, %eax
jne 0x67207
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x671b0
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movl 0x30(%rcx), %ecx
cmpq %rcx, %rax
jae 0x671ae
movb $0x0, -0x1(%rbp)
jmp 0x6728e
jmp 0x67205
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x671d4
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movl 0x34(%rcx), %ecx
cmpq %rcx, %rax
jae 0x671d2
movb $0x0, -0x1(%rbp)
jmp 0x6728e
jmp 0x67203
movq -0x18(%rbp), %rax
cmpl $0x3, (%rax)
jne 0x671f8
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movl 0x38(%rcx), %ecx
cmpq %rcx, %rax
jae 0x671f6
movb $0x0, -0x1(%rbp)
jmp 0x6728e
jmp 0x67201
movb $0x0, -0x1(%rbp)
jmp 0x6728e
jmp 0x67203
jmp 0x67205
jmp 0x67207
jmp 0x67209
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x67149
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x49(%rbp)
jae 0x67246
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rax
cmpq 0x8(%rcx), %rax
setb %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0x6724f
jmp 0x6728a
movq -0x48(%rbp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
subq -0x40(%rbp), %rsi
subq $0x1, %rsi
callq 0x403a0
movsbl (%rax), %eax
cmpl $0x4, %eax
jne 0x6727a
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x6727c
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x67222
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)