// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/src/annotate.cpp
// Function: loadFai(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, long>>>&)
bool loadFai(std::string & fastaName,
             std::map<std::string, long int> & dat)
{
    std::string fai = fastaName + ".fai";
    std::string line;
    std::ifstream myfile (fai);

    if(myfile){
        while(getline(myfile, line)){
            std::vector<std::string> splitDat = split(line, "\t");
            if(splitDat.size() < 2){
                return false;
            }
            dat[splitDat[0]] = atol(splitDat[1].c_str());
        }
    }
    else{
        return false;
    }

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rsi, 0x40(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xbd16
leaq 0x2e2aa(%rip), %rsi     # 0x390ab
movq %r14, %rdi
callq 0x5840
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x80(%rsp), %rdi
movq %rsp, %rsi
movl $0x8, %edx
callq 0x56f0
movq 0x80(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xa0(%rsp,%rax)
je 0xae50
xorl %ebx, %ebx
jmp 0xaf40
leaq 0x58(%rsp), %rbx
leaq 0x20(%rsp), %r15
leaq 0x48(%rsp), %rbp
leaq 0x68(%rsp), %r12
leaq (%rsp,%rax), %rdi
addq $0x80, %rdi
movl $0xa, %esi
callq 0x5430
movsbl %al, %edx
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x5810
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xaf26
movq %rbx, 0x48(%rsp)
movq %rbp, %rdi
leaq 0x2e9bc(%rip), %rsi     # 0x39869
leaq 0x2e9b6(%rip), %rdx     # 0x3986a
callq 0xbdac
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0xfee2
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0xaede
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5470
movq 0x68(%rsp), %r13
movq 0x70(%rsp), %rax
subq %r13, %rax
cmpq $0x20, %rax
jbe 0xaf2a
movq 0x20(%r13), %rdi
callq 0x5550
movq %rax, %r14
movq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0xb7d4
movq %r14, (%rax)
movq %r12, %rdi
callq 0xba86
movq 0x80(%rsp), %rax
movq -0x18(%rax), %rax
jmp 0xae64
movb $0x1, %bl
jmp 0xaf36
leaq 0x68(%rsp), %rdi
callq 0xba86
xorl %ebx, %ebx
leaq 0x10(%rsp), %r15
leaq 0x30(%rsp), %r14
leaq 0x80(%rsp), %rdi
callq 0x5100
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xaf64
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5470
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xaf7a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5470
movl %ebx, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xafde
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0xb008
jmp 0xb015
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0xba86
jmp 0xafd1
jmp 0xafce
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0xafd1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5470
jmp 0xafd1
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0x5100
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xaffa
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5470
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xb015
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5470
movq %r14, %rdi
callq 0x57b0