// File: 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
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x148(%rbp)
movq %rdi, %rax
movq %rax, -0x158(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
movb $0x0, -0x21(%rbp)
leaq -0x22(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0xab60
movq -0x148(%rbp), %rdi
movq -0x140(%rbp), %rdx
leaq 0x64c2d(%rip), %rsi     # 0x14806d
callq 0x2d6c0
jmp 0xe3447
leaq -0x22(%rbp), %rdi
callq 0xa640
movq -0x150(%rbp), %rdi
addq $0x60, %rdi
movq -0x18(%rbp), %rsi
callq 0x6b400
movq %rax, -0x160(%rbp)
jmp 0xe346d
movq -0x160(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x3fee0
jmp 0xe347f
leaq -0x71(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0xab60
movq -0x168(%rbp), %rdx
leaq 0x52a42(%rip), %rsi     # 0x135edf
leaq -0x70(%rbp), %rdi
callq 0x2d6c0
jmp 0xe34a8
leaq -0x71(%rbp), %rdi
callq 0xa640
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x170(%rbp), %rax
cmpq %rcx, %rax
je 0xe38f8
movq -0x80(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
leaq -0x98(%rbp), %rdi
movl $0x9, %edx
callq 0x7bbe0
jmp 0xe3503
movq -0x20(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq -0x98(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq -0x178(%rbp), %rdi
movq %rax, %rsi
callq 0xe61c0
testb $0x1, %al
jne 0xe3537
jmp 0xe38b3
movq -0x20(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq -0x98(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq -0x180(%rbp), %rdi
movq %rax, %rsi
callq 0xe6200
testb $0x1, %al
jne 0xe356b
jmp 0xe38b3
xorl %eax, %eax
movl %eax, %esi
leaq -0x98(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
leaq -0xb8(%rbp), %rdi
callq 0xa250
jmp 0xe358c
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0xa4f0
movq -0x190(%rbp), %rdi
movq %rax, -0xc8(%rbp)
callq 0xa330
movq %rax, -0xd0(%rbp)
movb $0x2e, -0xd1(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
leaq -0xd1(%rbp), %rdx
callq 0x59870
movq %rax, -0x188(%rbp)
jmp 0xe35e3
movq -0x148(%rbp), %rdi
movq -0x188(%rbp), %rax
movl %eax, -0xbc(%rbp)
leaq 0x5151d(%rip), %rsi     # 0x134b1b
callq 0xa810
jmp 0xe3605
cmpl $0x4, -0xbc(%rbp)
jne 0xe36c0
leaq -0xf8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x598c0
jmp 0xe3627
leaq -0x70(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xa710
leaq -0xf8(%rbp), %rdi
callq 0xac88
jmp 0xe36d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x22(%rbp), %rdi
callq 0xa640
jmp 0xe395c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xe3950
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x71(%rbp), %rdi
callq 0xa640
jmp 0xe3929
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xe3920
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xe38ea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xe38a5
leaq -0x70(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xa060
jmp 0xe36d2
jmp 0xe36d4
movq -0x150(%rbp), %rdi
addq $0x90, %rdi
movq -0x18(%rbp), %rsi
callq 0x6b320
movq %rax, -0x198(%rbp)
jmp 0xe36f4
movq -0x198(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x6b400
movq %rax, -0x1a0(%rbp)
jmp 0xe3710
movq -0x1a0(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x3fee0
jmp 0xe3725
movq $0x0, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x1a8(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x1a8(%rbp), %rax
cmpq %rcx, %rax
je 0xe3836
movq -0x118(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
leaq -0x130(%rbp), %rdi
movl $0x9, %edx
callq 0x7bbe0
jmp 0xe3786
movq -0x20(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq -0x130(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq -0x1b0(%rbp), %rdi
movq %rax, %rsi
callq 0xe61c0
testb $0x1, %al
jne 0xe37b7
jmp 0xe382a
movq -0x20(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq -0x130(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq -0x1b8(%rbp), %rdi
movq %rax, %rsi
callq 0xe6200
testb $0x1, %al
jne 0xe37e8
jmp 0xe382a
movq -0x148(%rbp), %rdi
leaq 0x58963(%rip), %rsi     # 0x13c159
callq 0xa810
jmp 0xe37fd
jmp 0xe382a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xe3899
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x3dfa0
jmp 0xe3899
leaq -0x130(%rbp), %rdi
callq 0x3dfa0
movq -0x148(%rbp), %rdi
leaq 0x58915(%rip), %rsi     # 0x13c159
callq 0x2d770
movb %al, -0x1b9(%rbp)
jmp 0xe3851
movb -0x1b9(%rbp), %al
testb $0x1, %al
jne 0xe385d
jmp 0xe3869
movl $0x2, -0x134(%rbp)
jmp 0xe3873
movl $0x0, -0x134(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x3dfa0
leaq -0xb8(%rbp), %rdi
callq 0xac88
movl -0x134(%rbp), %eax
testl %eax, %eax
jne 0xe38bd
jmp 0xe3897
jmp 0xe38b3
leaq -0x110(%rbp), %rdi
callq 0x3dfa0
leaq -0xb8(%rbp), %rdi
callq 0xac88
jmp 0xe38ea
movl $0x0, -0x134(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3dfa0
movl -0x134(%rbp), %eax
testl %eax, %eax
je 0xe38d7
jmp 0xe38d5
jmp 0xe38f8
jmp 0xe38d9
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0xe34b9
leaq -0x98(%rbp), %rdi
callq 0x3dfa0
jmp 0xe3920
movb $0x1, -0x21(%rbp)
movl $0x1, -0x134(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xac88
leaq -0x50(%rbp), %rdi
callq 0x3dfa0
testb $0x1, -0x21(%rbp)
jne 0xe3940
jmp 0xe3934
leaq -0x70(%rbp), %rdi
callq 0xac88
leaq -0x50(%rbp), %rdi
callq 0x3dfa0
jmp 0xe3950
movq -0x148(%rbp), %rdi
callq 0xac88
movq -0x158(%rbp), %rax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
movq -0x148(%rbp), %rdi
callq 0xac88
movq -0x30(%rbp), %rdi
callq 0xab50
nopw %cs:(%rax,%rax)
nop