// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/./process_vcf_annotation_tools.h
// Function: Annotation::getCategoryOfSNP(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&)
string getCategoryOfSNP(const string& SNPscaffold, const string& SNPlocus) {
        string SNPcategory = "other non-coding";
        std::vector<string> scaffoldTranscriptStartEnd = transcriptStartEndMap[SNPscaffold];
        string inGene = "";
        for (std::vector<std::vector<string> >::size_type i = 0; i != scaffoldTranscriptStartEnd.size(); i++) {
            std::vector<string> startEndVec = split(scaffoldTranscriptStartEnd[i], '\t');
            if (SNPlocus >= startEndVec[1] && SNPlocus <= startEndVec[2]) {
                string thisTranscript = startEndVec[0];
                int numDots = (int)std::count(thisTranscript.begin(), thisTranscript.end(), '.');
                SNPcategory = "intron";
                if (numDots == 4)  inGene = geneFromTranscript(thisTranscript);
                else inGene = thisTranscript;
                std::vector<string> exons = annotationMapTranscriptMap[SNPscaffold][thisTranscript];
                for (std::vector<string>::size_type j = 0; j != exons.size(); j++) {
                    std::vector<string> exonVec = split(exons[j], '\t');
                    if (SNPlocus >= exonVec[1] && SNPlocus <= exonVec[2]) {
                        SNPcategory = "exon";
                    }
                    break;
                }
                if (SNPcategory == "exon") { break; }
            } //else if (SNPcategory == "intron") { if (inGene != geneFromTranscript(startEndVec[0])) { break; } }
        }
        return SNPcategory;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x28(%rsp)
movq %rax, (%rdi)
leaq 0x43eb3(%rip), %rsi     # 0xdbc9d
leaq 0x43ebc(%rip), %rdx     # 0xdbcad
callq 0x28a52
movq %r12, 0x30(%rsp)
leaq 0x60(%r12), %rdi
movq %r15, 0x70(%rsp)
movq %r15, %rsi
callq 0x46fb4
leaq 0x58(%rsp), %rdi
movq %rax, %rsi
callq 0x2fc8e
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x35ba1(%rip), %rdx     # 0xcd9cb
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
callq 0x28a52
movq 0x58(%rsp), %rax
cmpq %rax, 0x60(%rsp)
je 0x98072
addq $0x90, 0x30(%rsp)
xorl %ebp, %ebp
leaq 0x78(%rsp), %r13
leaq 0x90(%rsp), %r15
movq %rbp, %rsi
shlq $0x5, %rsi
addq %rax, %rsi
movq %r13, %rdi
movl $0x9, %edx
callq 0x4d650
movq 0x78(%rsp), %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
js 0x9804d
movq 0x78(%rsp), %rsi
addq $0x40, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
jg 0x9804d
movq 0x78(%rsp), %rax
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x2ba06
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x97efc
movq 0x8(%rsp), %rcx
xorl %esi, %esi
xorl %edx, %edx
xorl %edi, %edi
cmpb $0x2e, (%rcx,%rsi)
sete %dil
addq %rdi, %rdx
incq %rsi
cmpq %rsi, %rax
jne 0x97ede
cmpl $0x4, %edx
sete %r12b
jmp 0x97eff
xorl %r12d, %r12d
movq 0x8(%rbx), %rdx
movl $0x6, %r8d
movq %rbx, %rdi
xorl %esi, %esi
leaq 0x351ae(%rip), %rcx     # 0xcd0c3
callq 0x86c0
testb %r12b, %r12b
je 0x97f60
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3be16
leaq 0x38(%rsp), %rdi
movq %r15, %rsi
callq 0x8540
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x97f6f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x97f6f
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x8270
movq 0x30(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x46f38
movq %rax, %rdi
leaq 0x8(%rsp), %rsi
callq 0x46fb4
movq %r15, %rdi
movq %rax, %rsi
callq 0x2fc8e
movq 0x90(%rsp), %rsi
cmpq %rsi, 0x98(%rsp)
je 0x98012
leaq 0xb0(%rsp), %rdi
movl $0x9, %edx
callq 0x4d650
movq 0xb0(%rsp), %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
js 0x98005
movq 0xb0(%rsp), %rsi
addq $0x40, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
jg 0x98005
movq 0x8(%rbx), %rdx
movl $0x4, %r8d
movq %rbx, %rdi
xorl %esi, %esi
leaq 0x398da(%rip), %rcx     # 0xd18da
callq 0x86c0
leaq 0xb0(%rsp), %rdi
callq 0x2e784
movq %rbx, %rdi
leaq 0x398be(%rip), %rsi     # 0xd18da
callq 0x8160
movl %eax, %r12d
movq %r15, %rdi
callq 0x2e784
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x98048
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %r12d, %r12d
je 0x980ad
movq %r13, %rdi
callq 0x2e784
incq %rbp
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rbp
jne 0x97e5f
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9808e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x58(%rsp), %rdi
callq 0x2e784
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x78(%rsp), %rdi
callq 0x2e784
jmp 0x98072
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x2e784
jmp 0x980de
movq %rax, %r14
jmp 0x98148
jmp 0x98121
jmp 0x980f6
movq %rax, %r14
jmp 0x98152
jmp 0x98121
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x2e784
jmp 0x980f9
movq %rax, %r14
jmp 0x98115
jmp 0x980f6
jmp 0x98121
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x98115
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x78(%rsp), %rdi
callq 0x2e784
jmp 0x9812c
movq %rax, %rdi
callq 0x288e1
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x98148
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x58(%rsp), %rdi
callq 0x2e784
movq (%rbx), %rdi
cmpq 0x28(%rsp), %rdi
je 0x9816c
movq 0x28(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840