// File: BenLangmead[P]bowtie/./hit.h
// Function: HitSink::reportHits(Hit const*, EList<Hit, 128>*, unsigned long, unsigned long, unsigned long, int, int, bool, PatternSourcePerThread&)
virtual void reportHits(
		const Hit *hptr,
		EList<Hit> *hsptr,
		size_t start,
		size_t end,
		size_t threadId,
		int mapq,
		int xms,
		bool tally,
		PatternSourcePerThread& p)
	{
		assert_geq(end, start);
		assert(nthreads_ > 1 || threadId == 0);
		if(end == start) {
			return;
		}
		const Hit& firstHit = (hptr == NULL) ? (*hsptr)[start] : *hptr;
		bool paired = firstHit.mate > 0;
		BTString& o = ptBufs_[threadId];
		// Per-thread buffering is active
		for(size_t i = start; i < end; i++) {
			const Hit& h = (hptr == NULL) ? (*hsptr)[i] : *hptr;
			assert(h.repOk());
			append(o, h, mapq, xms);
			if(nthreads_ == 1) {
				out_.writeString(o);
				o.clear();
			}
		}
		ptCounts_[threadId]++;
		if (reorder_ && reorderInfo_[threadId].flushed) {
			reorderInfo_[threadId].batchId = p.batch_id();
			reorderInfo_[threadId].flushed = false;
		}
		maybeFlush(threadId);
		if(tally) {
			tallyAlignments(threadId, end - start, paired);
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq 0x28(%rbp), %rax
movb 0x20(%rbp), %al
movl 0x18(%rbp), %r10d
movl 0x10(%rbp), %r10d
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x2d5de
jmp 0x2d772
cmpq $0x0, -0x10(%rbp)
jne 0x2d5f8
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x2ecd0
movq %rax, -0x70(%rbp)
jmp 0x2d600
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movzbl 0x188(%rax), %eax
cmpl $0x0, %eax
setg %al
andb $0x1, %al
movb %al, -0x41(%rbp)
addq $0x28, %rdi
movq -0x30(%rbp), %rsi
callq 0x2ed00
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x2d6c0
cmpq $0x0, -0x10(%rbp)
jne 0x2d65f
movq -0x18(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x2ecd0
movq %rax, -0x78(%rbp)
jmp 0x2d667
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rdi
movq -0x78(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rsi
movq -0x60(%rbp), %rdx
movl 0x10(%rbp), %ecx
movl 0x18(%rbp), %r8d
movq (%rdi), %rax
callq *0x10(%rax)
movq -0x68(%rbp), %rax
cmpq $0x1, 0x20(%rax)
jne 0x2d6ad
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x50(%rbp), %rsi
callq 0x2ed20
movq -0x50(%rbp), %rdi
callq 0x2ee80
jmp 0x2d6af
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x2d63b
movq -0x68(%rbp), %rdi
addq $0x48, %rdi
movq -0x30(%rbp), %rsi
callq 0x2a100
movq %rax, %rcx
movq -0x68(%rbp), %rax
movq (%rcx), %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
testb $0x1, 0x78(%rax)
je 0x2d742
movq -0x68(%rbp), %rdi
addq $0x80, %rdi
movq -0x30(%rbp), %rsi
callq 0x2d3f0
testb $0x1, 0x8(%rax)
je 0x2d742
movq 0x28(%rbp), %rdi
callq 0x2eea0
movq -0x68(%rbp), %rdi
movq %rax, -0x80(%rbp)
addq $0x80, %rdi
movq -0x30(%rbp), %rsi
callq 0x2d3f0
movq -0x80(%rbp), %rcx
movq -0x68(%rbp), %rdi
movq %rcx, (%rax)
addq $0x80, %rdi
movq -0x30(%rbp), %rsi
callq 0x2d3f0
movb $0x0, 0x8(%rax)
movq -0x68(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x2eec0
testb $0x1, -0x31(%rbp)
je 0x2d772
movq -0x68(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
subq -0x20(%rbp), %rdx
movb -0x41(%rbp), %al
andb $0x1, %al
movzbl %al, %ecx
callq 0x2ef10
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax,%rax)