// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/process_vcf_utils.cpp
// Function: readMultiFastaToMap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::map<string,string> readMultiFastaToMap(const string& fileName) {
    std::map<string, string> fastaSeqs;
    string line;
    std::ifstream* fastaFile = new std::ifstream(fileName.c_str());
    getline(*fastaFile, line);
    std::vector<std::string> fields = split(line, ' ');
    string currentScaffold = fields[0].substr(1,string::npos);
    fastaSeqs[currentScaffold] = ""; fastaSeqs[currentScaffold].reserve(50000000);
    while (getline(*fastaFile, line)) {
        if (line[0] != '>') {
            fastaSeqs[currentScaffold].append(line);
        } else {
            int l = (int)fastaSeqs[currentScaffold].length();
            std::cerr << currentScaffold << " length: " << l << std::endl;
            fastaSeqs[currentScaffold].shrink_to_fit();
            std::vector<std::string> fields = split(line, ' ');
            currentScaffold = fields[0].substr(1,string::npos);
            fastaSeqs[currentScaffold] = ""; fastaSeqs[currentScaffold].reserve(50000000);
        }
    }
    std::cerr << currentScaffold << " length: " << (int)fastaSeqs[currentScaffold].length() << std::endl;
    return fastaSeqs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rcx, -0x8(%r12)
movb $0x0, (%r12)
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq (%r15), %rsi
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x8870
leaq 0x60(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x20, %edx
callq 0x4d650
movq 0x60(%rsp), %rsi
leaq 0x28(%rsp), %rdi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x84a0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b46e
movq 0x8(%rax), %rdx
leaq 0x7d1cc(%rip), %rcx     # 0xcd9cb
movq %rax, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x86c0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b46e
movl $0x2faf080, %esi        # imm = 0x2FAF080
movq %rax, %rdi
callq 0x86f0
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x509bf
movq 0x8(%rsp), %rax
cmpb $0x3e, (%rax)
jne 0x5099d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b46e
movl 0x8(%rax), %r13d
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xb1756(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq %rax, %rbp
movl $0x9, %edx
movq %rax, %rdi
leaq 0x844e1(%rip), %rsi     # 0xd4d8a
callq 0x84e0
movq %rbp, %rdi
movl %r13d, %esi
callq 0x8810
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r13, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b46e
movq %rax, %rdi
callq 0x8290
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
movl $0x20, %edx
callq 0x4d650
movq 0x48(%rsp), %rsi
movl $0x1, %edx
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq $-0x1, %rcx
callq 0x84a0
movq %r12, %rdi
movq %r13, %rsi
callq 0x8540
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x50953
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b46e
movq 0x8(%rax), %rdx
movq %rax, %rdi
xorl %esi, %esi
leaq 0x7d05d(%rip), %rcx     # 0xcd9cb
xorl %r8d, %r8d
callq 0x86c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b46e
movl $0x2faf080, %esi        # imm = 0x2FAF080
movq %rax, %rdi
callq 0x86f0
leaq 0x48(%rsp), %rdi
callq 0x2e784
jmp 0x50830
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b46e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x8180
jmp 0x50830
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xb1618(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq %rax, %r14
leaq 0x843ab(%rip), %rsi     # 0xd4d8a
movl $0x9, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b46e
movl 0x8(%rax), %esi
movq %r14, %rdi
callq 0x8810
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x18(%rsp), %r14
je 0x50a4e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x60(%rsp), %rdi
callq 0x2e784
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x50a6f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x50ae4
jmp 0x50a9d
movq %rax, %r15
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
callq 0x8480
jmp 0x50aee
movq %rax, %r15
jmp 0x50aee
jmp 0x50ac1
jmp 0x50ab0
jmp 0x50ac1
movq %rax, %rdi
callq 0x288e1
movq %rax, %r15
leaq 0x48(%rsp), %rdi
callq 0x2e784
jmp 0x50ac4
jmp 0x50ac1
movq %rax, %r15
leaq 0x18(%rsp), %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x50ae4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x60(%rsp), %rdi
callq 0x2e784
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x50b05
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x3c6d4
movq %r15, %rdi
callq 0x8840