// File: /workspace/github_cpp_makefile_star2_O2/CominLab[P]QCluster/seqio.cc
// Function: RecordGenerator::next()
SeqRecord RecordGenerator::next()
{
	string line = "";
	string seq = "";
	string qual = "";
	
	//Skip rows until first "@" character
	while (ifs.good() && (!line.length() || line[0] != '@')) {
		getline(ifs, line);
		indice_riga++;
	}
	
	//Header row
	id = header2id(line);
	desc = line.substr(1);
	
	//DNA sequence row
	getline(ifs, line);
	removeWhiteSpace(line);
	seq += line;
	
	//"+" row
	getline(ifs, line);
	if (line[0] != '+') is_good = false;
	
	//Quality score row
	getline(ifs, line);
	removeWhiteSpace(line);
	qual += line;
	
	indice_riga = indice_riga + 3;
	SeqRecord seq_rec(id, desc, seq, qual);
	
	return seq_rec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20ae(%rip), %r15      # 0x7ac6
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %r15, %rsi
callq 0x35b0
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %r15, %rsi
callq 0x35b0
leaq 0x2083(%rip), %rsi      # 0x7ac6
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x35b0
leaq 0x8(%rsp), %r15
movq (%r14), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%r14,%rax)
jne 0x5a8c
cmpq $0x0, 0x10(%rsp)
je 0x5a78
movq 0x8(%rsp), %rax
cmpb $0x40, (%rax)
je 0x5a8c
movq %r14, %rdi
movq %r15, %rsi
callq 0x2060
incl 0x24c(%r14)
jmp 0x5a57
leaq 0x108(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2270
leaq 0x219b(%rip), %r15      # 0x7c40
leaq 0x108(%rsp), %r12
pushq $0x1
popq %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x2140
movq %rax, %r13
movl %r13d, %ebp
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x2110
subl %r13d, %eax
leal 0x1(%rax), %ecx
leaq 0x68(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x2210
leaq 0x208(%r14), %r15
leaq 0x68(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2230
movq %r12, %rdi
callq 0x20f0
leaq 0x108(%rsp), %rdi
callq 0x20f0
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rcx
callq 0x2210
leaq 0x228(%r14), %r12
leaq 0x68(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x2230
movq %r13, %rdi
callq 0x20f0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2060
leaq 0x8(%rsp), %rdi
callq 0x5d19
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2370
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2060
movq 0x8(%rsp), %rax
cmpb $0x2b, (%rax)
je 0x5b8a
movb $0x0, 0x248(%r14)
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2060
leaq 0x8(%rsp), %rdi
callq 0x5d19
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2370
addl $0x3, 0x24c(%r14)
leaq 0xe8(%rsp), %rdi
movq %r15, %rsi
callq 0x2270
leaq 0xc8(%rsp), %rdi
movq %r12, %rsi
callq 0x2270
leaq 0xa8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2270
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2270
leaq 0xe8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
leaq 0xa8(%rsp), %rcx
leaq 0x88(%rsp), %r8
movq %rbx, %rdi
callq 0x55f8
leaq 0x88(%rsp), %rdi
callq 0x20f0
leaq 0xa8(%rsp), %rdi
callq 0x20f0
leaq 0xc8(%rsp), %rdi
callq 0x20f0
leaq 0xe8(%rsp), %rdi
callq 0x20f0
leaq 0x28(%rsp), %rdi
callq 0x20f0
leaq 0x48(%rsp), %rdi
callq 0x20f0
leaq 0x8(%rsp), %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x20f0
jmp 0x5ca0
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x20f0
jmp 0x5cb2
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x20f0
jmp 0x5cc4
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
jmp 0x5cdb
jmp 0x5cf0
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x20f0
jmp 0x5cf3
jmp 0x5cf0
movq %rax, %rbx
jmp 0x5cfd
movq %rax, %rbx
jmp 0x5d07
jmp 0x5cf0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20f0
leaq 0x48(%rsp), %rdi
callq 0x20f0
leaq 0x8(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2320