// File: /workspace/github_cpp_makefile_star2_O1/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 0x50624
movq 0x60(%rsp), %rsi
leaq 0x28(%rsp), %rdi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x84a0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3e394
movq 0x8(%rax), %rdx
leaq 0x7e2d9(%rip), %rcx     # 0xd1c7f
movq %rax, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x86c0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3e394
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 0x53b66
movq 0x8(%rsp), %rax
cmpb $0x3e, (%rax)
jne 0x53b44
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3e394
movl 0x8(%rax), %r13d
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xb75af(%rip), %rdi     # 0x10afe8
callq 0x84e0
movq %rax, %rbp
movl $0x9, %edx
movq %rax, %rdi
leaq 0x877fa(%rip), %rsi     # 0xdb24a
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 0x3e394
movq %rax, %rdi
callq 0x8290
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
movl $0x20, %edx
callq 0x50624
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 0x53afa
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3e394
movq 0x8(%rax), %rdx
movq %rax, %rdi
xorl %esi, %esi
leaq 0x7e16a(%rip), %rcx     # 0xd1c7f
xorl %r8d, %r8d
callq 0x86c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3e394
movl $0x2faf080, %esi        # imm = 0x2FAF080
movq %rax, %rdi
callq 0x86f0
leaq 0x48(%rsp), %rdi
callq 0x3123c
jmp 0x539d7
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3e394
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x8180
jmp 0x539d7
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xb7471(%rip), %rdi     # 0x10afe8
callq 0x84e0
movq %rax, %r14
leaq 0x876c4(%rip), %rsi     # 0xdb24a
movl $0x9, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3e394
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 0x53bf5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x60(%rsp), %rdi
callq 0x3123c
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x53c16
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 0x53c8b
jmp 0x53c44
movq %rax, %r15
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
callq 0x8480
jmp 0x53c95
movq %rax, %r15
jmp 0x53c95
jmp 0x53c68
jmp 0x53c57
jmp 0x53c68
movq %rax, %rdi
callq 0x287e1
movq %rax, %r15
leaq 0x48(%rsp), %rdi
callq 0x3123c
jmp 0x53c6b
jmp 0x53c68
movq %rax, %r15
leaq 0x18(%rsp), %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53c8b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x60(%rsp), %rdi
callq 0x3123c
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x53cac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x3f5f4
movq %r15, %rdi
callq 0x8840