// File: /workspace/github_cpp_makefile_star2_O3/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 0x6d9b
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1591(%rip), %rdx      # 0x8026
leaq 0x40(%rsp), %rdi
movq %rdx, %rsi
callq 0x5d26
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1574(%rip), %rdx      # 0x8026
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x5d26
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x10, %edx
callq 0x32f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6aed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
addq $0x8, 0x38(%rsp)
leaq 0x60(%rsp), %r12
leaq 0x1527(%rip), %r13      # 0x8026
leaq 0x40(%rsp), %rbp
leaq 0x8(%rsp), %rbx
leaq 0x4250(%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 0x6cbb
movq 0x68(%rsp), %rdx
testq %rdx, %rdx
je 0x6b19
movq 0x60(%rsp), %rsi
cmpb $0x3e, (%rsi)
jne 0x6bb5
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30c0
testl %eax, %eax
je 0x6bc7
movq %rbx, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x33c0
movq 0x38(%rsp), %rdi
movq %rbp, %rsi
callq 0x5b44
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c41
movq 0x18(%rsp), %rsi
jmp 0x6c39
leaq 0xa8(%rsp), %rdi
callq 0x3290
jmp 0x6b19
movq %rbx, %rdi
leaq 0x1a03(%rip), %rsi      # 0x85d4
callq 0x71cc
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x72ae
movq 0x30(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6c1b
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 0x6c41
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 0x6c78
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
movq %r15, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x5d26
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0x3350
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b19
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6b19
leaq 0x220(%rsp), %rdi
callq 0x3070
leaq 0x1357(%rip), %rsi      # 0x8026
leaq 0x40(%rsp), %rdi
callq 0x30c0
testl %eax, %eax
je 0x6d23
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x33c0
leaq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdi
callq 0x5b44
leaq 0x8(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32c0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x6d23
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x4296(%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 0x6d60
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x6d7c
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 0x125d(%rip), %rsi      # 0x8019
leaq 0x1261(%rip), %rdx      # 0x8024
leaq 0xa8(%rsp), %rdi
callq 0x5d26
movb $0x1, %bpl
leaq 0xa8(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x70df
xorl %ebp, %ebp
leaq 0x3f61(%rip), %rsi      # 0xad50
movq 0x41aa(%rip), %rdx      # 0xafa0
movq %r15, %rdi
callq 0x33f0
jmp 0x6ff1
movq %rdx, %rbx
movq %rax, %r14
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6e26
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3240
testb %bpl, %bpl
jne 0x6e36
jmp 0x6f42
movq %rdx, %rbx
movq %rax, %r14
movq %r15, %rdi
callq 0x31c0
jmp 0x6f42
jmp 0x6ec0
jmp 0x6ee3
jmp 0x6ee3
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f0a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6f0a
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6f0a
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6f26
movq %rdx, %rbx
movq %rax, %r14
jmp 0x6f4f
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 0x6ee9
movq 0x20(%rsp), %rsi
jmp 0x6ed5
jmp 0x6ec0
jmp 0x6ee3
movq %rdx, %rbx
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ee9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6ee9
jmp 0x6ee3
jmp 0x6ee3
movq %rdx, %rbx
movq %rax, %r14
movq 0x40d0(%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 0x6f26
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x6f42
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x220(%rsp), %rdi
callq 0x3090
movq %r14, %rdi
cmpl $0x3, %ebx
jne 0x6f8f
callq 0x3110
movq %rax, %rbx
movl $0x28, %edi
callq 0x3140
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7220
leaq 0x3dfa(%rip), %rsi      # 0xad78
leaq 0x1b5(%rip), %rdx       # 0x713a
movq %r14, %rdi
callq 0x33f0
jmp 0x6ff1
callq 0x3110
movq %rax, %r15
movl $0x28, %edi
callq 0x3140
movq %rax, %r14
cmpl $0x2, %ebx
jne 0x6fcc
movq %r14, %rdi
movq %r15, %rsi
callq 0x7256
leaq 0x3dbd(%rip), %rsi      # 0xad78
leaq 0x178(%rip), %rdx       # 0x713a
movq %r14, %rdi
callq 0x33f0
jmp 0x6ff1
leaq 0x1632(%rip), %rsi      # 0x8605
movq %r14, %rdi
callq 0x71cc
leaq 0x3d96(%rip), %rsi      # 0xad78
leaq 0x151(%rip), %rdx       # 0x713a
movq %r14, %rdi
callq 0x33f0
movq %rax, %rbx
callq 0x33d0
jmp 0x700d
movq %rax, %rbx
callq 0x33d0
jmp 0x700d
movq %rax, %rbx
callq 0x33d0
movq %rbx, %rdi
callq 0x3410
movq %rax, %rdi
callq 0x5abc
nop