// File: BenLangmead[P]bowtie/./aligner.h
// Function: UnpairedAlignerV2<EbwtRangeSource>::setQuery(PatternSourcePerThread*)
virtual void setQuery(PatternSourcePerThread* patsrc) {
		Aligner::setQuery(patsrc); // set fields & random seed
		if(metrics_ != NULL) {
			metrics_->nextRead(patsrc->bufa().patFw);
		}
		pool_->reset(&patsrc->bufa().name, (uint32_t)patsrc->rdid());
		if(patsrc->bufa().length() < 4) {
			if(!quiet_) {
				cerr << "Warning: Skipping read " << patsrc->bufa().name
				     << " because it is less than 4 characters long" << endl;
			}
			this->done = true;
			sinkPt_->finishRead(*patsrc_, true, true);
			return;
		}
		driver_->setQuery(patsrc, NULL);
		this->done = driver_->done;
		doneFirst_ = false;
		// Reset #-backtrack countdown
		if(btCnt_ != NULL) *btCnt_ = maxBts_;
		if(sinkPt_->setHits(patsrc->bufa().hitset)) {
			this->done = true;
			sinkPt_->finishRead(*patsrc_, true, true);
		}
		// Grab a bit from the pseudo-random seed to determine whether
		// to start with forward or reverse complement
		firstIsFw_ = ((patsrc->bufa().seed & 0x10) == 0);
		chase_ = false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movq -0x10(%rbp), %rsi
callq 0x4be20
movq -0x18(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x4bc53
movq -0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37f00
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0x4f850
movq -0x18(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37f00
addq $0x150, %rax            # imm = 0x150
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x499a0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl %eax, %edx
callq 0x4f930
movq -0x10(%rbp), %rdi
callq 0x37f00
movq %rax, %rdi
callq 0x499c0
cmpq $0x4, %rax
jae 0x4bd28
movq -0x18(%rbp), %rax
testb $0x1, 0x89(%rax)
jne 0x4bd06
movq 0x5c334(%rip), %rdi     # 0xa7ff0
leaq 0x411dc(%rip), %rsi     # 0x8ce9f
callq 0xa5d0
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37f00
movq -0x38(%rbp), %rdi
movq %rax, %rsi
addq $0x150, %rsi            # imm = 0x150
callq 0x2c0d0
movq %rax, %rdi
leaq 0x41591(%rip), %rsi     # 0x8d283
callq 0xa5d0
movq %rax, %rdi
movq 0x5c267(%rip), %rsi     # 0xa7f68
callq 0xa640
movq -0x18(%rbp), %rax
movb $0x1, 0x8(%rax)
movq 0x68(%rax), %rdi
movq 0x10(%rax), %rsi
movq (%rdi), %rax
movl $0x1, %ecx
movl %ecx, %edx
callq *0x10(%rax)
jmp 0x4bdeb
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rdi
movq -0x10(%rbp), %rsi
movq (%rdi), %rax
xorl %ecx, %ecx
movl %ecx, %edx
callq *0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rcx
movb 0x9(%rcx), %cl
andb $0x1, %cl
movb %cl, 0x8(%rax)
movb $0x0, 0x58(%rax)
cmpq $0x0, 0x98(%rax)
je 0x4bd76
movq -0x18(%rbp), %rax
movl 0x8c(%rax), %ecx
movq 0x98(%rax), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37f00
movq -0x40(%rbp), %rdi
movq %rax, %rsi
addq $0x1b0, %rsi            # imm = 0x1B0
movq (%rdi), %rax
callq *0x30(%rax)
testb $0x1, %al
jne 0x4bda5
jmp 0x4bdc2
movq -0x18(%rbp), %rax
movb $0x1, 0x8(%rax)
movq 0x68(%rax), %rdi
movq 0x10(%rax), %rsi
movq (%rdi), %rax
movl $0x1, %ecx
movl %ecx, %edx
callq *0x10(%rax)
movq -0x10(%rbp), %rdi
callq 0x37f00
movq %rax, %rcx
movq -0x18(%rbp), %rax
movl 0x18c(%rcx), %ecx
andl $0x10, %ecx
cmpl $0x0, %ecx
sete %cl
andb $0x1, %cl
movb %cl, 0x59(%rax)
movb $0x0, 0x5a(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)