// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %rbx, %rdi
callq 0xbd78
leaq 0x2e24f(%rip), %rsi     # 0x390ab
movq %rbx, %rdi
callq 0x5840
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x80(%rsp), %rbp
movq %rsp, %rsi
movq %rbp, %rdi
movl $0x8, %edx
callq 0x56f0
movq 0x80(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xa0(%rsp,%rax)
je 0xaeb1
xorl %ebx, %ebx
jmp 0xafab
leaq 0x70(%rsp), %rbx
leaq 0x20(%rsp), %r15
leaq 0x60(%rsp), %r12
leaq 0x48(%rsp), %r13
movq 0x80(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x5430
movsbl %al, %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x5810
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xaf91
movq %rbx, 0x60(%rsp)
movq %r12, %rdi
leaq 0x2e95c(%rip), %rsi     # 0x39869
leaq 0x2e956(%rip), %rdx     # 0x3986a
callq 0xbe08
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xffde
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0xaf3e
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5470
movq 0x48(%rsp), %r13
movq 0x50(%rsp), %rax
subq %r13, %rax
cmpq $0x20, %rax
jbe 0xaf95
movq %r12, %r14
movq %r15, %r12
movq %rbx, %r15
movq 0x20(%r13), %rdi
callq 0x5550
movq %rax, %rbx
movq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0xb840
movq %rbx, (%rax)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
callq 0xbaec
movq %r15, %rbx
movq %r12, %r15
movq %r14, %r12
jmp 0xaec5
movb $0x1, %bl
jmp 0xafa1
leaq 0x48(%rsp), %rdi
callq 0xbaec
xorl %ebx, %ebx
leaq 0x10(%rsp), %r15
leaq 0x30(%rsp), %r12
leaq 0x80(%rsp), %rdi
callq 0x5100
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xafcf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5470
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xafe5
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, %rbx
jmp 0xb04c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0xb076
jmp 0xb083
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xbaec
jmp 0xb03f
jmp 0xb03c
movq %rbx, %rcx
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %rcx, %rdi
je 0xb03f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5470
jmp 0xb03f
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x5100
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xb068
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5470
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xb083
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5470
movq %rbx, %rdi
callq 0x57b0