// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %rsi, %r15
leaq 0x10(%rdi), %rax
movq %rax, 0x28(%rsp)
movq %rax, (%rdi)
leaq 0x4ae7e(%rip), %rsi     # 0xe36ad
leaq 0x4ae87(%rip), %rdx     # 0xe36bd
movq %rdi, (%rsp)
callq 0x28952
movq %r15, 0x30(%rsp)
leaq 0x60(%r15), %rdi
movq %rbx, 0x90(%rsp)
movq %rbx, %rsi
callq 0x49f44
leaq 0x58(%rsp), %rdi
movq %rax, %rsi
callq 0x3273a
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3940a(%rip), %rdx     # 0xd1c7f
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
callq 0x28952
movq 0x58(%rsp), %rax
cmpq %rax, 0x60(%rsp)
je 0x98ae2
addq $0x90, 0x30(%rsp)
xorl %r15d, %r15d
leaq 0xb0(%rsp), %r13
movq %r15, %rsi
shlq $0x5, %rsi
addq %rax, %rsi
movq %r13, %rdi
movl $0x9, %edx
callq 0x50624
movq 0xb0(%rsp), %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
js 0x98aab
movq 0xb0(%rsp), %rsi
addq $0x40, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
jg 0x98aab
movq 0xb0(%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 0x2e45c
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9894c
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 0x9892e
cmpl $0x4, %edx
sete %bpl
jmp 0x9894e
xorl %ebp, %ebp
movq (%rsp), %rdi
movq 0x8(%rdi), %rdx
movl $0x6, %r8d
xorl %esi, %esi
leaq 0x37f56(%rip), %rcx     # 0xd08bb
callq 0x86c0
testb %bpl, %bpl
je 0x989b2
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3ed36
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x8540
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x989c1
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x989c1
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x8270
movq 0x30(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x49ec8
leaq 0x70(%rsp), %rbx
movq %rax, %rdi
leaq 0x8(%rsp), %rsi
callq 0x49f44
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3273a
movq 0x70(%rsp), %rsi
cmpq %rsi, 0x78(%rsp)
je 0x98a67
leaq 0x98(%rsp), %rdi
movl $0x9, %edx
callq 0x50624
movq 0x98(%rsp), %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
js 0x98a5a
movq 0x98(%rsp), %rsi
addq $0x40, %rsi
movq %r14, %rdi
callq 0x8050
testl %eax, %eax
jg 0x98a5a
movq (%rsp), %rdi
movq 0x8(%rdi), %rdx
movl $0x4, %r8d
xorl %esi, %esi
leaq 0x3f347(%rip), %rcx     # 0xd7d9c
callq 0x86c0
leaq 0x98(%rsp), %rdi
callq 0x3123c
movq (%rsp), %rdi
leaq 0x3f32a(%rip), %rsi     # 0xd7d9c
callq 0x8160
movl %eax, %ebp
xorl %r12d, %r12d
testl %eax, %eax
sete %bl
leaq 0x70(%rsp), %rdi
callq 0x3123c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x98aa7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
testl %ebp, %ebp
je 0x98ada
xorl %r12d, %r12d
movq %r13, %rdi
callq 0x3123c
testl %r12d, %r12d
jne 0x98ae2
incq %r15
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rcx, %r15
jne 0x988a6
jmp 0x98ae2
movb %bl, %r12b
addl %r12d, %r12d
jmp 0x98aae
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x98afe
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x58(%rsp), %rdi
callq 0x3123c
movq (%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x3123c
jmp 0x98b3e
jmp 0x98b86
movq %rax, %r14
jmp 0x98bad
jmp 0x98b58
jmp 0x98b86
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x3123c
jmp 0x98b5b
movq %rax, %r14
jmp 0x98bb7
movq %rax, %r14
jmp 0x98b77
jmp 0x98b58
jmp 0x98b86
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x98b77
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xb0(%rsp), %rdi
callq 0x3123c
jmp 0x98b91
movq %rax, %rdi
callq 0x287e1
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x98bad
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x58(%rsp), %rdi
callq 0x3123c
movq (%rsp), %rax
movq (%rax), %rdi
cmpq 0x28(%rsp), %rdi
je 0x98bd5
movq 0x28(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nop