// File: /workspace/github_cpp_makefile_star2_O3/CK7[P]abawaca/src/SeqIORead_fasta.h
// Function: Bio::SeqIORead_fasta<Bio::Sequence<Bio::DNAString>>::next_seq()
S* SeqIORead_fasta<S>::next_seq()
{
	// If reached EOF - return
	if(this->m_next_line[0] == 0)
		return NULL;

	char	*pdisplay_id = this->m_next_line;
	while(*pdisplay_id && isspace(*pdisplay_id))
		pdisplay_id++;
	if((*pdisplay_id != '>') || (*(pdisplay_id+1) == 0) || isspace(*(pdisplay_id+1)))
	{
		char msg[512];
		sprintf(msg, "Was expeecting a header line for the next sequence in a fasta file but got something else, line %u", (unsigned int)this->m_line_num);
		throw Bio::Bad_file(this->file_name(), msg, __PRETTY_FUNCTION__);
	}
	pdisplay_id++;
	char *pdesc = pdisplay_id+1;

	while(*pdesc && !isspace(*pdesc))
		pdesc++;
	if(*pdesc) {
		// Set the end of the sequence name
		*(pdesc++) = 0;
		// Skip the spaces to the beginning of the description (if exists)
		while(*pdesc && isspace(*pdesc))
			pdesc++;
	}

	string	display_id(pdisplay_id), description(pdesc), sequence;
	
	// Now we are ready to read the sequence itself 
	while(this->getline(true)) {
		// Trim before and after
		char *p = this->m_next_line+strlen(this->m_next_line);	// Get p to the \0 at the end of the string
		while(isspace(*(p-1)))
			p--;
		*p = 0;
		p = this->m_next_line;
		while(isspace(*p))
			p++;
		// If this is true - we reached the next entry
		if(*p == '>')
			break;
		sequence += string(p);
	}

	if(sequence.size() == 0) {
		cerr << "Warning: sequence " << display_id << " is empty" << endl;
	}

	this->m_seq_num++;
	return new S(display_id, description, sequence);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq 0x40(%rdi), %r14
movb (%r14), %r15b
testb %r15b, %r15b
je 0xd34c
movq %rdi, %rbx
incq %r14
movsbl %r15b, %edi
callq 0x5070
testl %eax, %eax
je 0xd2fe
movb (%r14), %r15b
incq %r14
testb %r15b, %r15b
jne 0xd22a
movl 0x28(%rbx), %edx
leaq 0xc8a2(%rip), %rsi      # 0x19af2
leaq -0x330(%rbp), %rdi
xorl %eax, %eax
callq 0x5090
movl $0x28, %edi
callq 0x51b0
movq %rax, %r14
leaq -0xd8(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0xb188
leaq -0x118(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x330(%rbp), %rbx
movq %rbx, %rdi
callq 0x5180
leaq (%rax,%rbp), %rdx
addq $-0x330, %rdx           # imm = 0xFCD0
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
callq 0xb226
movb $0x1, %r13b
leaq 0xc889(%rip), %rcx      # 0x19b55
leaq -0xe8(%rbp), %rsi
leaq -0x128(%rbp), %rdx
movq %r14, %rdi
xorl %r8d, %r8d
callq 0xa2c0
xorl %r13d, %r13d
leaq 0x14699(%rip), %rsi     # 0x21988
leaq -0x252e(%rip), %rdx     # 0xadc8
movq %r14, %rdi
callq 0x5660
cmpb $0x3e, %r15b
jne 0xd246
movsbl (%r14), %edi
testl %edi, %edi
je 0xd246
callq 0x5070
testl %eax, %eax
jne 0xd246
movb 0x1(%r14), %al
testb %al, %al
je 0xd354
leaq 0x2(%r14), %r12
movsbl %al, %edi
callq 0x5070
testl %eax, %eax
jne 0xd35a
movb (%r12), %al
incq %r12
testb %al, %al
jne 0xd32d
decq %r12
movq %r12, %r15
jmp 0xd379
xorl %r14d, %r14d
jmp 0xd5fd
leaq 0x1(%r14), %r15
jmp 0xd379
movb $0x0, -0x1(%r12)
movq %r12, %r15
movsbl (%r12), %edi
testl %edi, %edi
je 0xd379
callq 0x5070
leaq 0x1(%r15), %r12
testl %eax, %eax
jne 0xd360
leaq -0x320(%rbp), %rax
movq %rax, -0x10(%rax)
movq %r14, %rdi
callq 0x5180
leaq (%rax,%r14), %rdx
leaq -0x330(%rbp), %rdi
movq %r14, %rsi
callq 0xb226
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq %r15, %rdi
callq 0x5180
leaq (%rax,%r15), %rdx
leaq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0xb226
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x78(%rbp), %r13
leaq -0x48(%rbp), %r15
movq %rbx, %rdi
movl $0x1, %esi
callq 0xf21c
testq %rax, %rax
je 0xd48a
movq 0x40(%rbx), %r12
movq %r12, %rdi
callq 0x5180
addq %rax, %r12
incq %r12
movsbl -0x2(%r12), %edi
callq 0x5070
decq %r12
testl %eax, %eax
jne 0xd402
movb $0x0, (%r12)
movq 0x40(%rbx), %r12
decq %r12
movb 0x1(%r12), %r14b
incq %r12
movsbl %r14b, %edi
callq 0x5070
testl %eax, %eax
jne 0xd420
cmpb $0x3e, %r14b
je 0xd48a
movq %r13, -0x88(%rbp)
movq %r12, %rdi
callq 0x5180
leaq (%rax,%r12), %rdx
leaq -0x88(%rbp), %rdi
movq %r12, %rsi
callq 0xb226
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x5120
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0xd3da
callq 0x5340
jmp 0xd3da
cmpq $0x0, -0x40(%rbp)
jne 0xd501
movq 0x14b50(%rip), %rdi     # 0x21fe8
leaq 0xc725(%rip), %rsi      # 0x19bc4
movl $0x12, %edx
callq 0x5420
movq -0x330(%rbp), %rsi
movq -0x328(%rbp), %rdx
movq 0x14b2a(%rip), %rdi     # 0x21fe8
callq 0x5420
movq %rax, %r14
leaq 0xc34c(%rip), %rsi      # 0x19819
movl $0x9, %edx
movq %rax, %rdi
callq 0x5420
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5360
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5250
incq 0x30(%rbx)
movl $0x68, %edi
callq 0x53a0
movq %rax, %r14
leaq -0xb8(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x330(%rbp), %rsi
movq -0x328(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0xb188
leaq -0x98(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0xb188
leaq -0x108(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x16098
leaq -0xc8(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
leaq -0x108(%rbp), %rcx
movq %r14, %rdi
callq 0xf35c
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd59f
callq 0x5340
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0xd5b0
callq 0x5340
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd5c1
callq 0x5340
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xd5d3
callq 0x5340
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xd5e5
callq 0x5340
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0xd5fd
callq 0x5340
movq %r14, %rax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd62f
callq 0x5340
jmp 0xd62f
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0xd645
callq 0x5340
jmp 0xd645
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd65b
callq 0x5340
jmp 0xd65b
movq %rax, %rbx
movq %r14, %rdi
jmp 0xd6c5
movq %rax, %rbx
jmp 0xd6f3
movq %rax, %rbx
jmp 0xd718
jmp 0xd6cc
movq %rax, %rbx
movq -0x128(%rbp), %rdi
cmpq %r12, %rdi
je 0xd686
callq 0x5340
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd697
callq 0x5340
testb %r13b, %r13b
jne 0xd710
jmp 0xd718
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd710
callq 0x5340
jmp 0xd710
jmp 0xd6cc
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0xd6cf
callq 0x5340
jmp 0xd6cf
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xd6e1
callq 0x5340
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xd6f3
callq 0x5340
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0xd718
callq 0x5340
jmp 0xd718
movq %rax, %rbx
movq %r14, %rdi
callq 0x5280
movq %rbx, %rdi
callq 0x56a0