// File: 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
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x1a0(%rbp)
movq %rdi, %rax
movq %rax, -0x198(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x190(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x3430
movq -0x188(%rbp), %rdx
leaq 0x2241(%rip), %rsi      # 0xbb2e
leaq -0x30(%rbp), %rdi
callq 0x5360
jmp 0x98f8
leaq -0x31(%rbp), %rdi
callq 0x32c0
leaq -0x69(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x3430
movq -0x1a8(%rbp), %rdx
leaq 0x220f(%rip), %rsi      # 0xbb2e
leaq -0x68(%rbp), %rdi
callq 0x5360
jmp 0x992a
leaq -0x69(%rbp), %rdi
callq 0x32c0
leaq -0x91(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x3430
movq -0x1b0(%rbp), %rdx
leaq 0x21da(%rip), %rsi      # 0xbb2e
leaq -0x90(%rbp), %rdi
callq 0x5360
jmp 0x9962
leaq -0x91(%rbp), %rdi
callq 0x32c0
movq -0x190(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x33f0
movb %al, -0x1b1(%rbp)
jmp 0x998c
movb -0x1b1(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x1b2(%rbp)
jne 0x99a1
jmp 0x99f3
leaq -0x30(%rbp), %rdi
callq 0x33a0
movq %rax, %rcx
movb $0x1, %al
cmpq $0x0, %rcx
movb %al, -0x1b3(%rbp)
je 0x99e7
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x34b0
movq %rax, -0x1c0(%rbp)
jmp 0x99d1
movq -0x1c0(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x40, %eax
setne %al
movb %al, -0x1b3(%rbp)
movb -0x1b3(%rbp), %al
movb %al, -0x1b2(%rbp)
movb -0x1b2(%rbp), %al
testb $0x1, %al
jne 0x9a02
jmp 0x9a91
movq -0x190(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3080
jmp 0x9a14
movq -0x190(%rbp), %rax
movl 0x24c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x24c(%rax)
jmp 0x996e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x32c0
jmp 0x9d9c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x69(%rbp), %rdi
callq 0x32c0
jmp 0x9d93
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x91(%rbp), %rdi
callq 0x32c0
jmp 0x9d8a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9d7e
leaq -0xd8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3110
jmp 0x9aa3
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x9db0
jmp 0x9ab8
movq -0x190(%rbp), %rdi
addq $0x208, %rdi            # imm = 0x208
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x1c8(%rbp)
callq 0x3310
movq -0x1c8(%rbp), %rdi
callq 0x3180
leaq -0xd8(%rbp), %rdi
callq 0x3180
leaq -0xf8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x3290
jmp 0x9b0f
movq -0x190(%rbp), %rdi
addq $0x228, %rdi            # imm = 0x228
leaq -0xf8(%rbp), %rsi
movq %rsi, -0x1d0(%rbp)
callq 0x3310
movq -0x1d0(%rbp), %rdi
callq 0x3180
movq -0x190(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3080
jmp 0x9b4e
leaq -0x30(%rbp), %rdi
callq 0x9e30
jmp 0x9b59
leaq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3340
jmp 0x9b68
movq -0x190(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3080
jmp 0x9b7a
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x34b0
movq %rax, -0x1d8(%rbp)
jmp 0x9b90
movq -0x1d8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
je 0x9bcc
movq -0x190(%rbp), %rax
movb $0x0, 0x248(%rax)
jmp 0x9bcc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x3180
jmp 0x9d7e
movq -0x190(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3080
jmp 0x9bde
leaq -0x30(%rbp), %rdi
callq 0x9e30
jmp 0x9be9
leaq -0x90(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3340
jmp 0x9bfb
movq -0x190(%rbp), %rsi
movl 0x24c(%rsi), %eax
addl $0x3, %eax
movl %eax, 0x24c(%rsi)
movb $0x0, -0xf9(%rbp)
addq $0x208, %rsi            # imm = 0x208
leaq -0x120(%rbp), %rdi
callq 0x3110
jmp 0x9c2d
movq -0x190(%rbp), %rsi
addq $0x228, %rsi            # imm = 0x228
leaq -0x140(%rbp), %rdi
callq 0x3110
jmp 0x9c49
leaq -0x160(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x3110
jmp 0x9c5b
leaq -0x180(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3110
jmp 0x9c70
movq -0x1a0(%rbp), %rdi
leaq -0x120(%rbp), %rsi
leaq -0x140(%rbp), %rdx
leaq -0x160(%rbp), %rcx
leaq -0x180(%rbp), %r8
callq 0x9190
jmp 0x9c9a
leaq -0x180(%rbp), %rdi
callq 0x3180
leaq -0x160(%rbp), %rdi
callq 0x3180
leaq -0x140(%rbp), %rdi
callq 0x3180
leaq -0x120(%rbp), %rdi
callq 0x3180
movb $0x1, -0xf9(%rbp)
testb $0x1, -0xf9(%rbp)
jne 0x9d50
jmp 0x9d44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9d36
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9d2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9d1e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x3180
leaq -0x160(%rbp), %rdi
callq 0x3180
leaq -0x140(%rbp), %rdi
callq 0x3180
leaq -0x120(%rbp), %rdi
callq 0x3180
jmp 0x9d7e
movq -0x1a0(%rbp), %rdi
callq 0x9260
leaq -0x90(%rbp), %rdi
callq 0x3180
leaq -0x68(%rbp), %rdi
callq 0x3180
leaq -0x30(%rbp), %rdi
callq 0x3180
movq -0x198(%rbp), %rax
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
leaq -0x90(%rbp), %rdi
callq 0x3180
leaq -0x68(%rbp), %rdi
callq 0x3180
leaq -0x30(%rbp), %rdi
callq 0x3180
movq -0x40(%rbp), %rdi
callq 0x3420
nopw %cs:(%rax,%rax)