// File: /workspace/github_cpp_makefile_star2_O1/BenLangmead[P]bowtie/pat.cpp
// Function: VectorPatternSource::VectorPatternSource(EList<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 128> const&, int, int)
VectorPatternSource::VectorPatternSource(
	const EList<string>& seqs,
	int trim3,
	int trim5) :
	TrimmingPatternSource(trim3, trim5),
	cur_(0),
	paired_(false),
	tokbuf_(),
	bufs_()
{
	// Install sequences in buffers, ready for immediate copying in
	// nextBatch().  Formatting of the buffer is just like
	// TabbedPatternSource.
	const size_t seqslen = seqs.size();
	for(size_t i = 0; i < seqslen; i++) {
		tokbuf_.clear();
		tokenize(seqs[i], ":", tokbuf_, 2);
		assert_gt(tokbuf_.size(), 0);
		assert_leq(tokbuf_.size(), 2);
		// Get another buffer ready
		bufs_.resize(bufs_.size()+1);
		bufs_.back().clear();
		// Install name
		itoa10<TReadId>(static_cast<TReadId>(i), nametmp_);
		bufs_.back() = nametmp_;
		bufs_.back().push_back('\t');
		// Install sequence
		bufs_.back().append(tokbuf_[0].c_str());
		bufs_.back().push_back('\t');
		// Install qualities
		if(tokbuf_.size() > 1) {
			bufs_.back().append(tokbuf_[1].c_str());
		} else {
			const size_t len = tokbuf_[0].length();
			for(size_t i = 0; i < len; i++) {
				bufs_.back().push_back('I');
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
movl %edx, 0x14(%rdi)
movl %ecx, 0x18(%rdi)
leaq 0x1de1e(%rip), %rcx     # 0x6a8f0
movq %rcx, (%rdi)
movq %rax, 0x20(%rdi)
movb %al, 0x28(%rdi)
movl %eax, 0x30(%rdi)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, 0x34(%rdi)
movq %rax, 0x38(%rdi)
movl $0x80, %edx
movq %rdx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movl %eax, 0x50(%rdi)
movl %ecx, 0x54(%rdi)
movq %rax, 0x58(%rdi)
movq %rdx, 0x60(%rdi)
movq %rax, 0x68(%rdi)
movq %rsi, 0x50(%rsp)
movq 0x18(%rsi), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x4ce2a
movq %rdi, %r12
leaq 0x30(%rdi), %rbx
leaq 0x50(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0x10(%rsp), %rcx
leaq 0x70(%rdi), %rax
movq %rax, 0x40(%rsp)
leaq 0x6f(%rdi), %rax
movq %rax, 0x38(%rsp)
leaq 0x71(%rdi), %rax
movq %rax, 0x30(%rsp)
xorl %r14d, %r14d
leaq 0x58(%rsp), %rbp
movq $0x0, 0x48(%r12)
movq %r14, 0x28(%rsp)
shlq $0x5, %r14
movq 0x50(%rsp), %rax
addq 0x8(%rax), %r14
movq %rcx, (%rsp)
movq %rsp, %rdi
leaq 0x7388(%rip), %rsi      # 0x53f0a
leaq 0x7382(%rip), %rdx      # 0x53f0b
callq 0x1dde4
movq (%rsp), %rsi
movq 0x8(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x98a0
movq %rax, %r13
movq (%rsp), %rsi
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %rax, %rdx
callq 0x9770
movq %rax, %r15
andq %r13, %rax
cmpq $-0x1, %rax
je 0x4cc4d
movq %r15, %rcx
subq %r13, %rcx
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x94e0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1c634
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x4cc03
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x94c0
movq (%rsp), %rsi
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x98a0
movq %rax, %r13
movq (%rsp), %rsi
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %rax, %rdx
callq 0x9770
movq %rax, %r15
cmpq $0x1, 0x48(%r12)
movq $-0x1, %rax
cmoveq %rax, %r15
movq %r13, %rax
andq %r15, %rax
jmp 0x4cbbe
movq (%rsp), %rdi
leaq 0x10(%rsp), %r13
cmpq %r13, %rdi
je 0x4cc68
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x68(%r12), %rsi
incq %rsi
movq 0x20(%rsp), %rdi
callq 0x4efc8
movq 0x58(%r12), %rax
movq 0x68(%r12), %rcx
shlq $0x5, %rcx
movq $0x0, -0x18(%rax,%rcx)
movq -0x20(%rax,%rcx), %rax
movb $0x0, (%rax)
movl $0x6f, %edi
movq 0x38(%rsp), %rsi
movq 0x28(%rsp), %rcx
leaq 0xb74d(%rip), %r9       # 0x583fc
movabsq $-0x3333333333333333, %r10 # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rax
mulq %r10
shrq $0x3, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rcx, %r8
subq %rax, %r8
movb (%r9,%r8), %al
movb %al, 0x1(%rsi)
incq %rsi
incq %rdi
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x4ccb9
cmpq $0x71, %rdi
jb 0x4cd10
movq 0x30(%rsp), %rax
movq %rsi, %rcx
movb -0x1(%rax), %dl
movb (%rcx), %dil
movb %dil, -0x1(%rax)
movb %dl, (%rcx)
decq %rcx
leaq 0x1(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x4ccf5
movb $0x0, 0x1(%rsi)
movq 0x58(%r12), %rax
movq 0x68(%r12), %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %r14
addq $-0x20, %r14
movq 0x8(%r14), %r15
movq 0x40(%rsp), %r13
movq %r13, %rdi
callq 0x91b0
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r13, %rcx
movq %rax, %r8
callq 0x97a0
movq 0x58(%r12), %rax
movq 0x68(%r12), %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x9, %esi
callq 0x9400
movq 0x38(%r12), %rax
movq 0x58(%r12), %rcx
movq 0x68(%r12), %rdx
shlq $0x5, %rdx
leaq (%rcx,%rdx), %rdi
addq $-0x20, %rdi
movq (%rax), %rsi
callq 0x99f0
movq 0x58(%r12), %rax
movq 0x68(%r12), %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x9, %esi
callq 0x9400
cmpq $0x2, 0x48(%r12)
jb 0x4cddf
movq 0x38(%r12), %rax
movq 0x58(%r12), %rcx
movq 0x68(%r12), %rdx
shlq $0x5, %rdx
leaq (%rcx,%rdx), %rdi
addq $-0x20, %rdi
movq 0x20(%rax), %rsi
callq 0x99f0
jmp 0x4ce12
movq 0x38(%r12), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
je 0x4ce12
movq 0x58(%r12), %rax
movq 0x68(%r12), %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x49, %esi
callq 0x9400
decq %r14
jne 0x4cded
movq 0x28(%rsp), %r14
incq %r14
cmpq 0x48(%rsp), %r14
leaq 0x10(%rsp), %rcx
jne 0x4cb59
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4ce3d
jmp 0x4ce3d
movq %rax, %r14
jmp 0x4ce81
movq %rax, %r14
jmp 0x4ce66
movq %rax, %r14
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x4ce66
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x4ce81
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x20(%rsp), %rdi
callq 0x1fefe
movq %rbx, %rdi
callq 0x1fefe
movq %r14, %rdi
callq 0x9930
nop