// File: /workspace/github_cpp_makefile_star2_O1/MiWitt[P]HLAbaits/CMultiFasta.cpp
// Function: CMultiFasta::readSequence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void CMultiFasta::readSequence(const string& filename)
{
    try
    {
        ifstream in(filename.c_str());
        if(!in)
            throw string("Can't open ")+filename;
        string strLine;
        string strHeader = "";
        ostringstream strSeq("");

        while(getline(in,strLine))
        {
            if(strLine.size() == 0)
                continue;
            if(strLine[0] == '>')
            {

                if(strHeader!="")
                {
                    m_mapSequences[strHeader]=strSeq.str();
                }
                else
                    CMyException("empty header. discard entries and continue with ")+strLine;
                strHeader=strLine.substr(1,strLine.size());
                strSeq.str("");
            }
            else
                strSeq << strLine;
        }
        in.close();
        if(strHeader!="")
        {
            m_mapSequences[strHeader]=strSeq.str();
        }

    }
    catch(const string& err)
    {
        throw CMyException(err);
    }
    catch(const CMyException& err)
    {
        throw err;
    }
    catch(...)
    {
        throw CMyException("unknown error in CMultiFasta::readSequence ");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rsi, %rbx
movq %rdi, 0x38(%rsp)
movq (%rsi), %rsi
leaq 0x220(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x3430
movq 0x220(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x240(%rsp,%rax)
jne 0x6dbf
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x156d(%rip), %rdx      # 0x8026
leaq 0x40(%rsp), %rdi
movq %rdx, %rsi
callq 0x5d2a
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1550(%rip), %rdx      # 0x8026
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x5d2a
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x10, %edx
callq 0x32f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b11
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
addq $0x8, 0x38(%rsp)
leaq 0x60(%rsp), %r12
leaq 0x1503(%rip), %r13      # 0x8026
leaq 0x40(%rsp), %rbp
leaq 0x8(%rsp), %rbx
leaq 0x422c(%rip), %rax      # 0xad60
addq $0x10, %rax
movq %rax, 0x30(%rsp)
movq 0x220(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x3440
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6cdf
movq 0x68(%rsp), %rdx
testq %rdx, %rdx
je 0x6b3d
movq 0x60(%rsp), %rsi
cmpb $0x3e, (%rsi)
jne 0x6bd9
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30c0
testl %eax, %eax
je 0x6beb
movq %rbx, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x33c0
movq 0x38(%rsp), %rdi
movq %rbp, %rsi
callq 0x5b4e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c65
movq 0x18(%rsp), %rsi
jmp 0x6c5d
leaq 0xa8(%rsp), %rdi
callq 0x3290
jmp 0x6b3d
movq %rbx, %rdi
leaq 0x19df(%rip), %rsi      # 0x85d4
callq 0x71f4
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x72d6
movq 0x30(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6c3f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6c65
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x68(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3260
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x32c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c9c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
movq %r15, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x5d2a
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0x3350
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b3d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6b3d
leaq 0x220(%rsp), %rdi
callq 0x3070
leaq 0x1333(%rip), %rsi      # 0x8026
leaq 0x40(%rsp), %rdi
callq 0x30c0
testl %eax, %eax
je 0x6d47
leaq 0xb0(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x33c0
leaq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdi
callq 0x5b4e
leaq 0x8(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32c0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x6d47
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x4272(%rip), %rsi      # 0xafc0
leaq 0xa8(%rsp), %rdi
callq 0x3160
leaq 0x118(%rsp), %rdi
callq 0x30f0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6d84
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x6da0
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x220(%rsp), %rdi
callq 0x3090
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3140
movq %rax, %r15
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1239(%rip), %rsi      # 0x8019
leaq 0x123d(%rip), %rdx      # 0x8024
leaq 0xa8(%rsp), %rdi
callq 0x5d2a
movb $0x1, %bpl
leaq 0xa8(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x7107
xorl %ebp, %ebp
leaq 0x3f3d(%rip), %rsi      # 0xad50
movq 0x4186(%rip), %rdx      # 0xafa0
movq %r15, %rdi
callq 0x33f0
jmp 0x7019
movq %rdx, %rbx
movq %rax, %r14
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6e55
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6e55
movq %rdx, %rbx
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6f6a
movq %r15, %rdi
callq 0x31c0
jmp 0x6f6a
jmp 0x6ee8
jmp 0x6f0b
jmp 0x6f0b
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f32
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6f32
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6f32
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6f4e
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6f77
movq %rdx, %rbx
movq %rax, %r14
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6f11
movq 0x20(%rsp), %rsi
jmp 0x6efd
jmp 0x6ee8
jmp 0x6f0b
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f11
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6f11
jmp 0x6f0b
jmp 0x6f0b
movq %rdx, %rbx
movq %rax, %r14
movq 0x40a8(%rip), %rsi      # 0xafc0
leaq 0xa8(%rsp), %rdi
callq 0x3160
leaq 0x118(%rsp), %rdi
callq 0x30f0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6f4e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x6f6a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x220(%rsp), %rdi
callq 0x3090
movq %r14, %rdi
cmpl $0x3, %ebx
jne 0x6fb7
callq 0x3110
movq %rax, %rbx
movl $0x28, %edi
callq 0x3140
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7248
leaq 0x3dd2(%rip), %rsi      # 0xad78
leaq 0x1b5(%rip), %rdx       # 0x7162
movq %r14, %rdi
callq 0x33f0
jmp 0x7019
callq 0x3110
movq %rax, %r15
movl $0x28, %edi
callq 0x3140
movq %rax, %r14
cmpl $0x2, %ebx
jne 0x6ff4
movq %r14, %rdi
movq %r15, %rsi
callq 0x727e
leaq 0x3d95(%rip), %rsi      # 0xad78
leaq 0x178(%rip), %rdx       # 0x7162
movq %r14, %rdi
callq 0x33f0
jmp 0x7019
leaq 0x160a(%rip), %rsi      # 0x8605
movq %r14, %rdi
callq 0x71f4
leaq 0x3d6e(%rip), %rsi      # 0xad78
leaq 0x151(%rip), %rdx       # 0x7162
movq %r14, %rdi
callq 0x33f0
movq %rax, %rbx
callq 0x33d0
jmp 0x7035
movq %rax, %rbx
callq 0x33d0
jmp 0x7035
movq %rax, %rbx
callq 0x33d0
movq %rbx, %rdi
callq 0x3410
movq %rax, %rdi
callq 0x5ac7
nop