// File: /workspace/github_cpp_makefile_star2_O1/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 0x1ef1(%rip), %r15      # 0x8ac6
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x3e24
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x3e24
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1eb8(%rip), %rdx      # 0x8ac6
leaq 0x28(%rsp), %rdi
movq %rdx, %rsi
callq 0x3e24
movq (%r14), %rax
movq -0x18(%rax), %rdi
cmpl $0x0, 0x20(%r14,%rdi)
jne 0x6c76
addq %r14, %rdi
leaq 0x8(%rsp), %r15
cmpq $0x0, 0x10(%rsp)
je 0x6c44
movq 0x8(%rsp), %rax
cmpb $0x40, (%rax)
je 0x6c76
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 0x6c32
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x3d94
leaq 0x1fa3(%rip), %r12      # 0x8c40
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 0x6d20
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
movq %rbx, %r13
je 0x6d3f
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 0x6d8c
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 0x7104
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 0x6e04
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 0x7104
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 0x3d94
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x228(%r14), %rsi
movq 0x230(%r14), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x3d94
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x3d94
leaq 0x98(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x3d94
leaq 0xe8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
leaq 0xa8(%rsp), %rcx
leaq 0x88(%rsp), %r8
movq %r13, %rdi
callq 0x64ce
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6f34
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x18(%rsp), %rbx
je 0x6f56
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6f73
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f90
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6fac
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6fc8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6fdf
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 0x7019
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x7019
movq %rax, %r13
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x703b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x703b
movq %rax, %r13
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x705d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x705d
movq %rax, %r13
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x70a8
movq 0xf8(%rsp), %rsi
jmp 0x708d
jmp 0x70a5
movq %rax, %r13
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x70a8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x70a8
jmp 0x70a5
movq %rax, %r13
jmp 0x70c4
movq %rax, %r13
jmp 0x70e0
jmp 0x70a5
movq %rax, %r13
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x70c4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x70e0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x70fc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq %r13, %rdi
callq 0x2330