// File: /workspace/github_cpp_makefile_star2_O3/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 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1ecd(%rip), %r15      # 0x8af6
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x3e66
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x3e66
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1e94(%rip), %rdx      # 0x8af6
leaq 0x28(%rsp), %rdi
movq %rdx, %rsi
callq 0x3e66
movq (%r14), %rax
movq -0x18(%rax), %rdi
cmpl $0x0, 0x20(%r14,%rdi)
jne 0x6cca
addq %r14, %rdi
leaq 0x8(%rsp), %r15
cmpq $0x0, 0x10(%rsp)
je 0x6c98
movq 0x8(%rsp), %rax
cmpb $0x40, (%rax)
je 0x6cca
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2370
incl 0x24c(%r14)
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
cmpl $0x0, 0x20(%r14,%rax)
je 0x6c86
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x3dd0
leaq 0x1f97(%rip), %r12      # 0x8c88
leaq 0x68(%rsp), %r15
movl $0x1, %edx
movl $0x4, %ecx
movq %r15, %rdi
movq %r12, %rsi
callq 0x22f0
movq %rax, %r13
movl %r13d, %ebp
movl $0x4, %ecx
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x22a0
subl %r13d, %eax
leal 0x1(%rax), %ecx
leaq 0x108(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x2210
leaq 0x208(%r14), %rdi
leaq 0x108(%rsp), %r15
movq %r15, %rsi
callq 0x2250
movq (%r15), %rdi
leaq 0x118(%rsp), %r12
cmpq %r12, %rdi
je 0x6d74
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
movq %rbx, %r13
je 0x6d93
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x108(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x2210
leaq 0x228(%r14), %rdi
leaq 0x108(%rsp), %r15
movq %r15, %rsi
callq 0x2250
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x6de0
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x2200
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2370
leaq 0x8(%rsp), %rdi
callq 0x7158
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x20d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2370
movq 0x8(%rsp), %rax
cmpb $0x2b, (%rax)
je 0x6e58
movb $0x0, 0x248(%r14)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2370
leaq 0x8(%rsp), %rdi
callq 0x7158
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x20d0
addl $0x3, 0x24c(%r14)
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x208(%r14), %rsi
movq 0x210(%r14), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x3dd0
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x228(%r14), %rsi
movq 0x230(%r14), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x3dd0
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x3dd0
leaq 0x98(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x3dd0
leaq 0xe8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
leaq 0xa8(%rsp), %rcx
leaq 0x88(%rsp), %r8
movq %r13, %rdi
callq 0x6522
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6f88
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x18(%rsp), %rbx
je 0x6faa
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6fc7
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6fe4
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7000
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x701c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7033
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq %r13, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x706d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x706d
movq %rax, %r13
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x708f
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x708f
movq %rax, %r13
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x70b1
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x70b1
movq %rax, %r13
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x70fc
movq 0xf8(%rsp), %rsi
jmp 0x70e1
jmp 0x70f9
movq %rax, %r13
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x70fc
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x70fc
jmp 0x70f9
movq %rax, %r13
jmp 0x7118
movq %rax, %r13
jmp 0x7134
jmp 0x70f9
movq %rax, %r13
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7118
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x7134
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7150
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq %r13, %rdi
callq 0x2330