// File: BenLangmead[P]bowtie/./aligner_1mm.h
// Function: Unpaired1mmAlignerV1Factory::create() const
virtual Aligner* create() const {

		HitSinkPerThread* sinkPt = sinkPtFactory_.create();
		EbwtSearchParams* params =
			new EbwtSearchParams(*sinkPt, os_);

		const int halfAndHalf = 0;
		const bool seeded = false;

		EbwtRangeSource *rFw_Bw = new EbwtRangeSource(
			 ebwtBw_, true, OFF_MASK, true,  verbose_, quiet_, halfAndHalf, seeded, maqPenalty_, qualOrder_);
		EbwtRangeSource *rFw_Fw = new EbwtRangeSource(
			&ebwtFw_, true, OFF_MASK, false, verbose_, quiet_, halfAndHalf, seeded, maqPenalty_, qualOrder_);

		EbwtRangeSourceDriver * drFw_Bw = new EbwtRangeSourceDriver(
			*params, rFw_Bw, true, false, maqPenalty_, qualOrder_, sink_, sinkPt,
			0,          // seedLen (0 = whole read is seed)
			false,      // nudgeLeft (true for Fw index, false for Bw)
			PIN_TO_HI_HALF_EDGE, // right half is unrevisitable
			PIN_TO_LEN, // allow 1 mismatch in rest of read
			PIN_TO_LEN, // "
			PIN_TO_LEN, // "
			os_, verbose_, quiet_, true, pool_, NULL);
		//
		EbwtRangeSourceDriver * drFw_Fw = new EbwtRangeSourceDriver(
			*params, rFw_Fw, true, false, maqPenalty_, qualOrder_, sink_, sinkPt,
			0,          // seedLen (0 = whole read is seed)
			true,       // nudgeLeft (true for Fw index, false for Bw)
			PIN_TO_HI_HALF_EDGE, // right half is unrevisitable
			PIN_TO_LEN, // allow 1 mismatch in rest of read
			PIN_TO_LEN, // "
			PIN_TO_LEN, // "
			os_, verbose_, quiet_, true, pool_, NULL);
		TRangeSrcDrPtrVec *drVec = new TRangeSrcDrPtrVec();
		if(doFw_) {
			drVec->push_back(drFw_Bw);
			drVec->push_back(drFw_Fw);
		}

		EbwtRangeSource *rRc_Fw = new EbwtRangeSource(
			&ebwtFw_, false, OFF_MASK, true,  verbose_, quiet_, halfAndHalf, seeded, maqPenalty_, qualOrder_);
		EbwtRangeSource *rRc_Bw = new EbwtRangeSource(
			 ebwtBw_, false, OFF_MASK, false, verbose_, quiet_, halfAndHalf, seeded, maqPenalty_, qualOrder_);

		EbwtRangeSourceDriver * drRc_Fw = new EbwtRangeSourceDriver(
			*params, rRc_Fw, false, false, maqPenalty_, qualOrder_, sink_, sinkPt,
			0,          // seedLen (0 = whole read is seed)
			true,       // nudgeLeft (true for Fw index, false for Bw)
			PIN_TO_HI_HALF_EDGE, // right half is unrevisitable
			PIN_TO_LEN, // allow 1 mismatch in rest of read
			PIN_TO_LEN, // "
			PIN_TO_LEN, // "
			os_, verbose_, quiet_, true, pool_, NULL);
		//
		EbwtRangeSourceDriver * drRc_Bw = new EbwtRangeSourceDriver(
			*params, rRc_Bw, false, false, maqPenalty_, qualOrder_, sink_, sinkPt,
			0,          // seedLen (0 = whole read is seed)
			false,      // nudgeLeft (true for Fw index, false for Bw)
			PIN_TO_HI_HALF_EDGE, // right half is unrevisitable
			PIN_TO_LEN, // allow 1 mismatch in rest of read
			PIN_TO_LEN, // "
			PIN_TO_LEN, // "
			os_, verbose_, quiet_, true, pool_, NULL);
		if(doRc_) {
			drVec->push_back(drRc_Fw);
			drVec->push_back(drRc_Bw);
		}
		TCostAwareRangeSrcDr* dr = new TCostAwareRangeSrcDr(strandFix_, drVec, verbose_, quiet_, false);
		delete drVec;

		// Set up a RangeChaser
		RangeChaser *rchase =
			new RangeChaser(cacheLimit_, cacheFw_, cacheBw_);

		// Set up the aligner
		return new UnpairedAlignerV2<EbwtRangeSource>(
			params, dr, rchase,
			sink_, sinkPtFactory_, sinkPt, os_, refs_,
			rangeMode_, verbose_, quiet_, INT_MAX, pool_, NULL, NULL);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdi, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq 0x28(%rax), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, -0x38(%rbp)
movl $0x18, %edi
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0xd8(%rbp)
movq -0x38(%rbp), %rsi
movq 0x50(%rax), %rdx
movl $0x1, %r8d
movl %r8d, %ecx
callq 0x3db70
jmp 0x6d26a
movq -0xd8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x50(%rbp)
movb $0x0, -0x51(%rbp)
movl $0x188, %edi            # imm = 0x188
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0xe8(%rbp)
movq 0x10(%rax), %rsi
movzbl 0x64(%rax), %r9d
movzbl 0x65(%rax), %ecx
movzbl 0x60(%rax), %edx
movzbl 0x61(%rax), %r8d
andl $0x1, %r8d
movq %rsp, %rax
movl %r8d, 0x20(%rax)
andl $0x1, %edx
movl %edx, 0x18(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x28(%rax)
movl $0x0, 0x10(%rax)
movl $0x0, 0x8(%rax)
andl $0x1, %r9d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %r8d
movl %r8d, %edx
callq 0x3dc00
jmp 0x6d2f9
movq -0xe8(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0x188, %edi            # imm = 0x188
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0xf0(%rbp)
movq 0x8(%rax), %rsi
movzbl 0x64(%rax), %r9d
movzbl 0x65(%rax), %ecx
movzbl 0x60(%rax), %edx
movzbl 0x61(%rax), %r8d
andl $0x1, %r8d
movq %rsp, %rax
movl %r8d, 0x20(%rax)
andl $0x1, %edx
movl %edx, 0x18(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x28(%rax)
movl $0x0, 0x10(%rax)
movl $0x0, 0x8(%rax)
andl $0x1, %r9d
movl $0x1, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
callq 0x3dc00
jmp 0x6d37c
movq -0xf0(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x1e0, %edi            # imm = 0x1E0
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x100(%rbp)
movq -0x40(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x38(%rbp), %r10
movq 0x50(%rax), %r11
movq 0x20(%rax), %r8
movq 0x48(%rax), %r15
movzbl 0x60(%rax), %r9d
movzbl 0x61(%rax), %ecx
movzbl 0x64(%rax), %ebx
movzbl 0x65(%rax), %r14d
movq %rsp, %rax
movq %rax, -0xf8(%rbp)
movq %r15, 0x68(%rax)
andl $0x1, %r14d
movl %r14d, 0x58(%rax)
andl $0x1, %ebx
movl %ebx, 0x50(%rax)
movq %r11, 0x48(%rax)
movq %r10, 0x10(%rax)
movq %r8, 0x8(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x70(%rax)
movl $0x1, 0x60(%rax)
movl $0x2, 0x40(%rax)
movl $0x2, 0x38(%rax)
movl $0x2, 0x30(%rax)
movl $0x3, 0x28(%rax)
movl $0x0, 0x20(%rax)
movl $0x0, 0x18(%rax)
andl $0x1, %r9d
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x3de00
jmp 0x6d448
movq -0x100(%rbp), %rax
movq %rax, -0x70(%rbp)
movl $0x1e0, %edi            # imm = 0x1E0
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x110(%rbp)
movq -0x40(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x38(%rbp), %r10
movq 0x50(%rax), %r11
movq 0x20(%rax), %r8
movq 0x48(%rax), %r15
movzbl 0x60(%rax), %r9d
movzbl 0x61(%rax), %ecx
movzbl 0x64(%rax), %ebx
movzbl 0x65(%rax), %r14d
movq %rsp, %rax
movq %rax, -0x108(%rbp)
movq %r15, 0x68(%rax)
andl $0x1, %r14d
movl %r14d, 0x58(%rax)
andl $0x1, %ebx
movl %ebx, 0x50(%rax)
movq %r11, 0x48(%rax)
movq %r10, 0x10(%rax)
movq %r8, 0x8(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x70(%rax)
movl $0x1, 0x60(%rax)
movl $0x2, 0x40(%rax)
movl $0x2, 0x38(%rax)
movl $0x2, 0x30(%rax)
movl $0x3, 0x28(%rax)
movl $0x1, 0x20(%rax)
movl $0x0, 0x18(%rax)
andl $0x1, %r9d
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x3de00
jmp 0x6d514
movq -0x110(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x20, %edi
callq 0xa5f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x118(%rbp)
callq 0x3dbc0
jmp 0x6d53d
movq -0xe0(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, -0x80(%rbp)
testb $0x1, 0x18(%rax)
je 0x6d660
movq -0x80(%rbp), %rdi
movq -0x70(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rsi
callq 0x3dfd0
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x3dfd0
jmp 0x6d660
movq -0xd8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x18, %esi
callq 0xa600
jmp 0x6dbc0
movq -0xe8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x188, %esi            # imm = 0x188
callq 0xa600
jmp 0x6dbc0
movq -0xf0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x188, %esi            # imm = 0x188
callq 0xa600
jmp 0x6dbc0
movq -0x100(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x1e0, %esi            # imm = 0x1E0
callq 0xa600
jmp 0x6dbc0
movq -0x110(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x1e0, %esi            # imm = 0x1E0
callq 0xa600
jmp 0x6dbc0
movq -0x118(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x20, %esi
callq 0xa600
jmp 0x6dbc0
movl $0x188, %edi            # imm = 0x188
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x120(%rbp)
movq 0x8(%rax), %rsi
movzbl 0x64(%rax), %r9d
movzbl 0x65(%rax), %ecx
movzbl 0x60(%rax), %edx
movzbl 0x61(%rax), %r8d
andl $0x1, %r8d
movq %rsp, %rax
movl %r8d, 0x20(%rax)
andl $0x1, %edx
movl %edx, 0x18(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x28(%rax)
movl $0x0, 0x10(%rax)
movl $0x0, 0x8(%rax)
andl $0x1, %r9d
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %r8d
callq 0x3dc00
jmp 0x6d6d8
movq -0x120(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x188, %edi            # imm = 0x188
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x128(%rbp)
movq 0x10(%rax), %rsi
movzbl 0x64(%rax), %r9d
movzbl 0x65(%rax), %ecx
movzbl 0x60(%rax), %edx
movzbl 0x61(%rax), %r8d
andl $0x1, %r8d
movq %rsp, %rax
movl %r8d, 0x20(%rax)
andl $0x1, %edx
movl %edx, 0x18(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x28(%rax)
movl $0x0, 0x10(%rax)
movl $0x0, 0x8(%rax)
andl $0x1, %r9d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
movl %r8d, %edx
callq 0x3dc00
jmp 0x6d75c
movq -0x128(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl $0x1e0, %edi            # imm = 0x1E0
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x138(%rbp)
movq -0x40(%rbp), %rsi
movq -0x98(%rbp), %rdx
movq -0x38(%rbp), %r10
movq 0x50(%rax), %r11
movq 0x20(%rax), %r8
movq 0x48(%rax), %r15
movzbl 0x60(%rax), %r9d
movzbl 0x61(%rax), %ecx
movzbl 0x64(%rax), %ebx
movzbl 0x65(%rax), %r14d
movq %rsp, %rax
movq %rax, -0x130(%rbp)
movq %r15, 0x68(%rax)
andl $0x1, %r14d
movl %r14d, 0x58(%rax)
andl $0x1, %ebx
movl %ebx, 0x50(%rax)
movq %r11, 0x48(%rax)
movq %r10, 0x10(%rax)
movq %r8, 0x8(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x70(%rax)
movl $0x1, 0x60(%rax)
movl $0x2, 0x40(%rax)
movl $0x2, 0x38(%rax)
movl $0x2, 0x30(%rax)
movl $0x3, 0x28(%rax)
movl $0x1, 0x20(%rax)
movl $0x0, 0x18(%rax)
andl $0x1, %r9d
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x3de00
jmp 0x6d82c
movq -0x138(%rbp), %rax
movq %rax, -0xa8(%rbp)
movl $0x1e0, %edi            # imm = 0x1E0
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x148(%rbp)
movq -0x40(%rbp), %rsi
movq -0xa0(%rbp), %rdx
movq -0x38(%rbp), %r10
movq 0x50(%rax), %r11
movq 0x20(%rax), %r8
movq 0x48(%rax), %r15
movzbl 0x60(%rax), %r9d
movzbl 0x61(%rax), %ecx
movzbl 0x64(%rax), %ebx
movzbl 0x65(%rax), %r14d
movq %rsp, %rax
movq %rax, -0x140(%rbp)
movq %r15, 0x68(%rax)
andl $0x1, %r14d
movl %r14d, 0x58(%rax)
andl $0x1, %ebx
movl %ebx, 0x50(%rax)
movq %r11, 0x48(%rax)
movq %r10, 0x10(%rax)
movq %r8, 0x8(%rax)
andl $0x1, %ecx
movl %ecx, (%rax)
movq $0x0, 0x70(%rax)
movl $0x1, 0x60(%rax)
movl $0x2, 0x40(%rax)
movl $0x2, 0x38(%rax)
movl $0x2, 0x30(%rax)
movl $0x3, 0x28(%rax)
movl $0x0, 0x20(%rax)
movl $0x0, 0x18(%rax)
andl $0x1, %r9d
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x3de00
jmp 0x6d8fc
movq -0xe0(%rbp), %rax
movq -0x148(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
testb $0x1, 0x19(%rax)
je 0x6d9e4
movq -0x80(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %rsi
callq 0x3dfd0
movq -0x80(%rbp), %rdi
movq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq -0xc0(%rbp), %rsi
callq 0x3dfd0
jmp 0x6d9e4
movq -0x120(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x188, %esi            # imm = 0x188
callq 0xa600
jmp 0x6dbc0
movq -0x128(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x188, %esi            # imm = 0x188
callq 0xa600
jmp 0x6dbc0
movq -0x138(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x1e0, %esi            # imm = 0x1E0
callq 0xa600
jmp 0x6dbc0
movq -0x148(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x1e0, %esi            # imm = 0x1E0
callq 0xa600
jmp 0x6dbc0
movl $0x90, %edi
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x150(%rbp)
movq -0x80(%rbp), %rdx
movzbl 0x65(%rax), %r8d
movzbl 0x64(%rax), %ecx
movzbl 0x62(%rax), %esi
andl $0x1, %esi
andl $0x1, %ecx
andl $0x1, %r8d
xorl %r9d, %r9d
callq 0x3e380
jmp 0x6da27
movq -0x150(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x158(%rbp)
cmpq $0x0, %rax
je 0x6da63
movq -0x158(%rbp), %rdi
callq 0x3e530
movq -0x158(%rbp), %rdi
movl $0x20, %esi
callq 0xa600
movl $0xc8, %edi
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x160(%rbp)
movl 0x40(%rax), %esi
movq 0x30(%rax), %rdx
movq 0x38(%rax), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x3e550
jmp 0x6da98
movq -0x160(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl $0xa8, %edi
callq 0xa5f0
movq %rax, %rdi
movq -0xe0(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x170(%rbp)
movq -0x40(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq -0xd0(%rbp), %rcx
movq 0x20(%rax), %r8
movq 0x28(%rax), %r9
movq -0x38(%rbp), %r10
movq 0x50(%rax), %r11
movq 0x58(%rax), %rbx
movq 0x48(%rax), %r13
movzbl 0x63(%rax), %r14d
movzbl 0x64(%rax), %r15d
movzbl 0x65(%rax), %r12d
movq %rsp, %rax
movq %rax, -0x168(%rbp)
movq %r13, 0x38(%rax)
andl $0x1, %r12d
movl %r12d, 0x28(%rax)
andl $0x1, %r15d
movl %r15d, 0x20(%rax)
andl $0x1, %r14d
movl %r14d, 0x18(%rax)
movq %rbx, 0x10(%rax)
movq %r11, 0x8(%rax)
movq %r10, (%rax)
movq $0x0, 0x48(%rax)
movq $0x0, 0x40(%rax)
movl $0x7fffffff, 0x30(%rax) # imm = 0x7FFFFFFF
callq 0x3e640
jmp 0x6db4c
movq -0x170(%rbp), %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x150(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x90, %esi
callq 0xa600
jmp 0x6dbc0
movq -0x160(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0xc8, %esi
callq 0xa600
jmp 0x6dbc0
movq -0x170(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0xa8, %esi
callq 0xa600
movq -0x48(%rbp), %rdi
callq 0xab60
nopl (%rax)