// File: /workspace/github_cpp_makefile_star2_O3/tedsharpe[P]ORFCall/ORFCall.cc
// Function: (anonymous namespace)::FastqReader::getChunk(std::vector<std::vector<unsigned char, std::allocator<unsigned char>>, std::allocator<std::vector<unsigned char, std::allocator<unsigned char>>>>&, std::vector<std::vector<unsigned char, std::allocator<unsigned char>>, std::allocator<std::vector<unsigned char, std::allocator<unsigned char>>>>&, unsigned int)
bool FastqReader::getChunk( std::vector<Sequence>& seqs,
                            std::vector<Quals>& quals,
                            unsigned chunkSize )
{
    if ( mIS.eof() )
        return false;

    seqs.clear(); seqs.reserve(chunkSize);
    quals.clear(); quals.reserve(chunkSize);

    std::string seqheader;
    std::string sSeq;
    std::string qualheader;
    std::string sQual;
    Sequence sq;
    Quals qs;
    while ( ++mLineNo && std::getline(mIS,seqheader) )
    {
        if ( seqheader.empty() )
            FatalErr("Read empty header at line " << mLineNo);
        if ( ++mLineNo && !std::getline(mIS,sSeq) )
            FatalErr("Early EOF at line " << mLineNo);
        if ( !sSeq.empty() && sSeq.back() == '\r' )
            sSeq.resize(sSeq.size()-1);
        if ( sSeq.empty() )
            FatalErr("Empty sequence at line " << mLineNo);
        if ( ++mLineNo && !std::getline(mIS,qualheader) )
            FatalErr("Early EOF at line " << mLineNo);
        if ( qualheader.empty() || qualheader[0] != '+' )
            FatalErr("Quals header doesn't begin with '+' at line " << mLineNo);
        if ( ++mLineNo && !std::getline(mIS,sQual) )
            FatalErr("Early EOF at line " << mLineNo);
        if ( !sQual.empty() && sQual.back() == '\r' )
            sQual.resize(sQual.size()-1);
        if ( sSeq.size() != sQual.size() )
            FatalErr("Calls and quals of unequal length at line " << mLineNo);

        sq.clear(); sq.reserve(sSeq.size());
        qs.clear(); qs.reserve(sSeq.size());
        auto qItr(sQual.begin());
        for ( char chr : sSeq )
        {
            switch (chr)
            {
            case 'a': case 'A': sq.push_back(0); break;
            case 'c': case 'C': sq.push_back(1); break;
            case 'g': case 'G': sq.push_back(2); break;
            case 't': case 'T':
            case 'u': case 'U': sq.push_back(3); break;
            default: sq.push_back(4); break;
            }
            qs.push_back(*qItr-FASTQ_QUAL_OFFSET);
            ++qItr;
        }
        seqs.push_back(sq);
        quals.push_back(qs);
        if ( seqs.size() == chunkSize )
            return true;
    }
    if ( !mIS.eof() )
        FatalErr("Failed to read to EOF (read to line " << mLineNo << ").");
    return !seqs.empty();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq 0x8(%rdi), %rax
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x2, 0x20(%rax,%rcx)
jne 0x7d04
movq %rdi, %r12
movq %rsi, %rdi
movq %rdx, %r13
movq %rsi, %r14
callq 0xafd0
movl $0x186a0, %esi          # imm = 0x186A0
movq %r14, %rdi
callq 0xb012
movq %r13, %rdi
callq 0xafd0
movl $0x186a0, %esi          # imm = 0x186A0
movq %r13, %rdi
callq 0xb012
leaq 0x40(%rsp), %rdx
leaq 0x80(%rsp), %rsi
xorl %eax, %eax
leaq 0xb8(%rsp), %rcx
leaq 0xf(%rsp), %rbp
vxorps %xmm0, %xmm0, %xmm0
movq %r12, 0xc8(%rsp)
movq %r13, 0xd0(%rsp)
movq %rdx, -0x10(%rdx)
movq %rax, -0x8(%rdx)
movb %al, (%rdx)
leaq 0x60(%rsp), %rdx
movq %rsi, -0x10(%rsi)
movq %rax, -0x8(%rsi)
movb %al, (%rsi)
leaq 0x10(%rsp), %rsi
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rdx, -0x10(%rdx)
movq %rax, -0x8(%rdx)
movb %al, (%rdx)
leaq 0x90(%rsp), %rdx
movq %rax, 0x10(%rsi)
vmovaps %xmm0, (%rsi)
movq %rax, 0x10(%rdx)
vmovaps %xmm0, (%rdx)
incl 0x10(%r12)
je 0x7d0b
movq 0x8(%r12), %r15
movq %r14, %rbx
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %edx
leaq 0xa8(%rsp), %rsi
movq %r15, %rdi
callq 0x33d0
movq (%rax), %rcx
movq %rbx, %r14
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7d0b
cmpq $0x0, 0xb0(%rsp)
je 0x7e26
incl 0x10(%r12)
je 0x79f6
movq 0x8(%r12), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %edx
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x33d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7e92
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x7df0
movq 0x30(%rsp), %rax
cmpb $0xd, -0x1(%rax,%rsi)
jne 0x7a2b
decq %rsi
leaq 0x30(%rsp), %rdi
xorl %edx, %edx
callq 0x3090
cmpq $0x0, 0x38(%rsp)
je 0x7df0
incl 0x10(%r12)
je 0x7a6d
movq 0x8(%r12), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %edx
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x33d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7ec5
cmpq $0x0, 0x78(%rsp)
je 0x7dba
movq 0x70(%rsp), %rax
cmpb $0x2b, (%rax)
jne 0x7dba
incl 0x10(%r12)
je 0x7ac9
movq 0x8(%r12), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %edx
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x33d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7ef8
movq 0x58(%rsp), %rsi
testq %rsi, %rsi
je 0x7af5
movq 0x50(%rsp), %rax
cmpb $0xd, -0x1(%rax,%rsi)
jne 0x7af7
decq %rsi
leaq 0x50(%rsp), %rdi
xorl %edx, %edx
callq 0x3090
movq 0x58(%rsp), %rsi
jmp 0x7af7
xorl %esi, %esi
cmpq %rsi, 0x38(%rsp)
jne 0x7e5c
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x7b13
movq %rax, 0x18(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x9dc0
movq 0x90(%rsp), %rax
cmpq %rax, 0x98(%rsp)
je 0x7b37
movq %rax, 0x98(%rsp)
movq 0x38(%rsp), %rsi
leaq 0x90(%rsp), %rdi
callq 0x9dc0
movq 0x38(%rsp), %r15
testq %r15, %r15
je 0x7cbd
movq 0x30(%rsp), %r14
movq 0x50(%rsp), %r12
xorl %r13d, %r13d
movzbl (%r14,%r13), %eax
cmpl $0x60, %eax
jg 0x7b87
cmpl $0x53, %eax
jg 0x7bb9
cmpl $0x41, %eax
je 0x7bdc
cmpl $0x43, %eax
je 0x7bf6
cmpl $0x47, %eax
je 0x7b9f
jmp 0x7c1f
cmpl $0x73, %eax
jg 0x7bbe
cmpl $0x61, %eax
je 0x7bdc
cmpl $0x63, %eax
je 0x7bf6
cmpl $0x67, %eax
jne 0x7c1f
movq 0x18(%rsp), %rsi
movb $0x2, 0xf(%rsp)
cmpq 0x20(%rsp), %rsi
je 0x7c8d
movb $0x2, (%rsi)
jmp 0x7c33
addl $-0x54, %eax
jmp 0x7bc1
addl $-0x74, %eax
cmpl $0x2, %eax
jae 0x7c1f
movq 0x18(%rsp), %rsi
movb $0x3, 0xf(%rsp)
cmpq 0x20(%rsp), %rsi
je 0x7c10
movb $0x3, (%rsi)
jmp 0x7c33
movq 0x18(%rsp), %rsi
movb $0x0, 0xf(%rsp)
cmpq 0x20(%rsp), %rsi
je 0x7c7e
movb $0x0, (%rsi)
jmp 0x7c33
movq 0x18(%rsp), %rsi
movb $0x1, 0xf(%rsp)
cmpq 0x20(%rsp), %rsi
je 0x7c9c
movb $0x1, (%rsi)
jmp 0x7c33
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x9edc
jmp 0x7c38
movq 0x18(%rsp), %rsi
movb $0x4, 0xf(%rsp)
cmpq 0x20(%rsp), %rsi
je 0x7cab
movb $0x4, (%rsi)
incq 0x18(%rsp)
movb (%r12,%r13), %al
movq 0x98(%rsp), %rsi
addb $-0x21, %al
movb %al, 0xf(%rsp)
cmpq 0xa0(%rsp), %rsi
je 0x7c60
movb %al, (%rsi)
incq 0x98(%rsp)
jmp 0x7c70
leaq 0x90(%rsp), %rdi
movq %rbp, %rdx
callq 0x9edc
incq %r13
cmpq %r13, %r15
jne 0x7b64
jmp 0x7cbd
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x9edc
jmp 0x7c38
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x9edc
jmp 0x7c38
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x9edc
jmp 0x7c38
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x9edc
jmp 0x7c38
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %rbx, %r14
callq 0xb0e6
movq 0xd0(%rsp), %r13
leaq 0x90(%rsp), %rsi
movq %r13, %rdi
callq 0xb0e6
movq 0x8(%r14), %rax
movq 0xc8(%rsp), %r12
subq (%r14), %rax
cmpq $0x249f00, %rax         # imm = 0x249F00
jne 0x7956
movb $0x1, %bl
jmp 0x7d2c
xorl %ebx, %ebx
jmp 0x7da6
movq 0x8(%r12), %rax
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x2, 0x20(%rax,%rcx)
je 0x7f33
movq (%r14), %rax
cmpq 0x8(%r14), %rax
setne %bl
movq 0x90(%rsp), %rdi
leaq 0xb8(%rsp), %r14
leaq 0x40(%rsp), %r15
leaq 0x80(%rsp), %r12
leaq 0x60(%rsp), %r13
testq %rdi, %rdi
je 0x7d58
callq 0x31c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7d67
callq 0x31c0
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x7d76
callq 0x31c0
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x7d85
callq 0x31c0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x7d94
callq 0x31c0
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7da6
callq 0x31c0
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x922f(%rip), %rdi      # 0x10ff0
leaq 0x4f2b(%rip), %rsi      # 0xccf3
movl $0x2c, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x9212(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
jmp 0x7f29
movq 0x91f9(%rip), %rdi      # 0x10ff0
leaq 0x4edd(%rip), %rsi      # 0xccdb
movl $0x17, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x91dc(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
jmp 0x7f29
movq 0x91c3(%rip), %rdi      # 0x10ff0
leaq 0x4e79(%rip), %rsi      # 0xccad
movl $0x1a, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x91a6(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
jmp 0x7f29
movq 0x918d(%rip), %rdi      # 0x10ff0
leaq 0x4eb6(%rip), %rsi      # 0xcd20
movl $0x2a, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x9170(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
jmp 0x7f29
movq 0x9157(%rip), %rdi      # 0x10ff0
leaq 0x4e28(%rip), %rsi      # 0xccc8
movl $0x12, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x913a(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
jmp 0x7f29
movq 0x9124(%rip), %rdi      # 0x10ff0
leaq 0x4df5(%rip), %rsi      # 0xccc8
movl $0x12, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x9107(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
jmp 0x7f29
movq 0x90f1(%rip), %rdi      # 0x10ff0
leaq 0x4dc2(%rip), %rsi      # 0xccc8
movl $0x12, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x90d4(%rip), %rdi      # 0x10ff0
callq 0x3130
movq %rax, %rdi
callq 0x30f0
movl $0x1, %edi
callq 0x3220
movq 0x90b6(%rip), %rdi      # 0x10ff0
leaq 0x4e0a(%rip), %rsi      # 0xcd4b
movl $0x24, %edx
callq 0x3210
movl 0x10(%r12), %esi
movq 0x9099(%rip), %rdi      # 0x10ff0
callq 0x3130
leaq 0x4e0d(%rip), %rsi      # 0xcd70
movl $0x2, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x3210
movq %rbx, %rdi
callq 0x30f0
jmp 0x7f29
jmp 0x7f8d
jmp 0x7f8d
jmp 0x7f8d
jmp 0x7f8d
jmp 0x7f8d
jmp 0x7f8d
jmp 0x7f8d
jmp 0x7f8d
movq 0x90(%rsp), %rdi
leaq 0xb8(%rsp), %r14
leaq 0x40(%rsp), %r15
leaq 0x80(%rsp), %r12
leaq 0x60(%rsp), %r13
movq %rax, %rbx
testq %rdi, %rdi
je 0x7fbc
callq 0x31c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7fcb
callq 0x31c0
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x7fda
callq 0x31c0
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x7fe9
callq 0x31c0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x7ff8
callq 0x31c0
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x800a
callq 0x31c0
movq %rbx, %rdi
callq 0x33a0