// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/process_vcf_linkGeneNames.cpp
// Function: attemptMappingUpdate(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline void attemptMappingUpdate(std::map<string,string>& cichlidHomologMap, const std::string& cichlidGene, const std::string& homologGene) {
    if (cichlidHomologMap.count(cichlidGene) == 0) {
        cichlidHomologMap[cichlidGene] = homologGene;
    } else {
        // Prefer zebrafish homologs as they have the best GO annotation
        if (cichlidHomologMap[cichlidGene].substr(0,6) == "ENSDAR") { return; }
        if (homologGene.substr(0,6) == "ENSDAR") { cichlidHomologMap[cichlidGene] = homologGene; }
        // Next best option is Medaka
        if (cichlidHomologMap[cichlidGene].substr(0,6) == "ENSORL") { return; }
        if (homologGene.substr(0,6) == "ENSORL") { cichlidHomologMap[cichlidGene] = homologGene; }
        // Next is stickleback:
        if (cichlidHomologMap[cichlidGene].substr(0,6) == "ENSGAC") { return; }
        if (homologGene.substr(0,6) == "ENSGAC") { cichlidHomologMap[cichlidGene] = homologGene; }
        // Tetraodon would be added only if there wasn't any other homolo before
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x3cf88
leaq 0x8(%r15), %rcx
cmpq %rcx, %rax
je 0xa058d
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
leaq 0x8(%rsp), %r12
movl $0x6, %ecx
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x84a0
leaq 0x3cd27(%rip), %rsi     # 0xdd0d2
movq %r12, %rdi
callq 0x8160
movl %eax, %ebp
movq (%r12), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0xa03d0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
je 0xa057e
leaq 0x8(%rsp), %r12
movl $0x6, %ecx
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x84a0
leaq 0x3ccdc(%rip), %rsi     # 0xdd0d2
movq %r12, %rdi
callq 0x8160
movl %eax, %ebp
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xa0416
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
jne 0xa0430
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8270
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
leaq 0x8(%rsp), %r12
movl $0x6, %ecx
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x84a0
leaq 0x3cc87(%rip), %rsi     # 0xdd0e0
movq %r12, %rdi
callq 0x8160
movl %eax, %ebp
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xa0479
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
je 0xa057e
leaq 0x8(%rsp), %r12
movl $0x6, %ecx
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x84a0
leaq 0x3cc41(%rip), %rsi     # 0xdd0e0
movq %r12, %rdi
callq 0x8160
movl %eax, %ebp
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xa04bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
jne 0xa04d9
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8270
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
leaq 0x8(%rsp), %r12
movl $0x6, %ecx
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x84a0
leaq 0x3cbd7(%rip), %rsi     # 0xdd0d9
movq %r12, %rdi
callq 0x8160
movl %eax, %ebp
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xa0522
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
je 0xa057e
leaq 0x8(%rsp), %r12
movl $0x6, %ecx
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x84a0
leaq 0x3cb95(%rip), %rsi     # 0xdd0d9
movq %r12, %rdi
callq 0x8160
movl %eax, %ebp
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xa0564
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
jne 0xa057e
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8270
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %r14, %rsi
callq 0x3b46e
movq %rax, %rdi
movq %rbx, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8270
nopl (%rax)