// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/./process_vcf_annotation_tools.h
// Function: BedCoordinateFeatures::loadBedFeatureMap[abi:cxx11](std::basic_ifstream<char, std::char_traits<char>>*&, bool)
std::map<string, std::vector<std::vector<int> > > loadBedFeatureMap(std::ifstream*& bedFile, bool debug) {
        std::map<string, std::vector<std::vector<int> > > BedFeatureMap;
        std::vector<std::vector<int> > BedFeaturesThisScaffold;
        std::vector<int> featureStarts;
        std::vector<int> featureEnds;
        string line;
        string previousScaffold = "";
        //std::cerr << "Loading scaffold: " << currentScaffold << std::endl;
        while (getline(*bedFile, line)) {
            std::vector<string> currentFeature = split(line, '\t');
            if (currentFeature[0] != previousScaffold && previousScaffold != "") {
                if (debug) {
                    std::cerr << "Loading scaffold: " << previousScaffold << std::endl;
                    std::cerr << "Starts: " << std::endl;
                    print_vector(featureStarts, std::cerr);
                    std::cerr << "Ends: " << std::endl;
                    print_vector(featureEnds, std::cerr);
                }
                BedFeaturesThisScaffold.push_back(featureStarts);
                BedFeaturesThisScaffold.push_back(featureEnds);
                BedFeatureMap[previousScaffold] = BedFeaturesThisScaffold;
                BedFeaturesThisScaffold.clear(); featureStarts.clear(); featureEnds.clear();
                // std::cerr << "Loading scaffold: " << currentScaffold << std::endl;
            }
            featureStarts.push_back(atoi(currentFeature[1].c_str()));
            featureEnds.push_back(atoi(currentFeature[2].c_str()));
            // std::cerr << "Loading scaffold: " << currentFeature[0] << "\t" << currentScaffold << std::endl;
            previousScaffold = currentFeature[0];
            //std::cerr << "Loading scaffold: " << currentFeature[0] << "\t" << currentScaffold << std::endl;
        }
        // Final line / final scaffold
        BedFeaturesThisScaffold.push_back(featureStarts);
        BedFeaturesThisScaffold.push_back(featureEnds);
        BedFeatureMap[previousScaffold] = BedFeaturesThisScaffold;
        return BedFeatureMap;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl %ecx, 0x8c(%rsp)
movq %rdx, %r14
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rdi, 0x48(%rsp)
movq %rcx, 0x28(%rdi)
movq %rcx, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq %rcx, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movq %rcx, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0xe8(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8609e(%rip), %rdx     # 0xcd9cb
leaq 0x68(%rsp), %rdi
movq %rdx, %rsi
callq 0x28a52
leaq 0xd8(%rsp), %r15
leaq 0xc0(%rsp), %rbx
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %r13
movq (%r14), %rbp
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x47cb7
movq %rbx, %rdi
movq %r15, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rdx
cmpq 0x70(%rsp), %rdx
jne 0x479cd
testq %rdx, %rdx
je 0x47c1f
movq 0x68(%rsp), %rsi
movq (%rax), %rdi
callq 0x8490
testl %eax, %eax
je 0x47c1f
leaq 0x68(%rsp), %rdi
leaq 0x85ff2(%rip), %rsi     # 0xcd9cb
callq 0x8160
testl %eax, %eax
je 0x47c1f
cmpb $0x0, 0x8c(%rsp)
je 0x47b76
movl $0x12, %edx
movq 0xba5e8(%rip), %rdi     # 0x101fe8
leaq 0x87815(%rip), %rsi     # 0xcf21c
callq 0x84e0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0xba5cb(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbp, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl $0x8, %edx
movq 0xba590(%rip), %rdi     # 0x101fe8
leaq 0x877d0(%rip), %rsi     # 0xcf22f
callq 0x84e0
movq 0xba57d(%rip), %rcx     # 0x101fe8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xba55f(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0xa8(%rsp), %rdi
movq %r12, %rsi
callq 0x32ee6
leaq 0xa8(%rsp), %rdi
movq 0xba533(%rip), %rsi     # 0x101fe8
movl $0x9, %edx
movl $0x1, %ecx
callq 0x3e6d2
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x47ae1
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movl $0x6, %edx
movq 0xba4fb(%rip), %rdi     # 0x101fe8
leaq 0x87744(%rip), %rsi     # 0xcf238
callq 0x84e0
movq 0xba4e8(%rip), %rcx     # 0x101fe8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xba4ca(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x90(%rsp), %rdi
movq %r13, %rsi
callq 0x32ee6
leaq 0x90(%rsp), %rdi
movq 0xba49e(%rip), %rsi     # 0x101fe8
movl $0x9, %edx
movl $0x1, %ecx
callq 0x3e6d2
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x47b76
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
callq 0x47e6a
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x47e6a
movq 0x48(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x47e96
movq %rax, %rdi
leaq 0x50(%rsp), %rsi
callq 0x47f12
movq %rbx, %r13
movq %r15, %rbx
movq %r14, %r15
movq 0x50(%rsp), %r12
movq 0x58(%rsp), %r14
cmpq %r12, %r14
je 0x47bea
movq %r12, %rbp
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x47bdc
movq 0x10(%rbp), %rsi
subq %rdi, %rsi
callq 0x8480
addq $0x18, %rbp
cmpq %r14, %rbp
jne 0x47bc7
movq %r12, 0x58(%rsp)
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x47bfb
movq %rax, 0x38(%rsp)
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
movq %r15, %r14
movq %rbx, %r15
movq %r13, %rbx
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %r13
je 0x47c1f
movq %rax, 0x18(%rsp)
movq 0xc0(%rsp), %rbp
movq 0x20(%rbp), %rdi
callq 0x86e0
movl %eax, 0xc(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x47c4d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0x47c62
movq %r12, %rdi
leaq 0xc(%rsp), %rdx
callq 0x33074
movq 0xc0(%rsp), %rbp
movq 0x40(%rbp), %rdi
callq 0x86e0
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x47c88
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x47c9d
movq %r13, %rdi
leaq 0xc(%rsp), %rdx
callq 0x33074
movq 0xc0(%rsp), %rbp
leaq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x8270
movq %rbx, %rdi
callq 0x2e784
jmp 0x47954
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x47e6a
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x47e6a
leaq 0x68(%rsp), %rsi
movq 0x48(%rsp), %rdi
callq 0x47e96
leaq 0x50(%rsp), %rsi
movq %rax, %rdi
callq 0x47f12
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x47d0d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x47d32
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x47d49
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x47d60
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x480b0
movq 0x48(%rsp), %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x47dfb
jmp 0x47dca
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x47dd2
movq 0xa0(%rsp), %rsi
jmp 0x47dba
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x47dd2
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
jmp 0x47dd2
jmp 0x47dcf
jmp 0x47dcf
jmp 0x47dca
movq %rax, %rbx
jmp 0x47ddf
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x2e784
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x47dfb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x47e20
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x47e37
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x47e4e
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x480b0
movq 0x48(%rsp), %rdi
callq 0x488a2
movq %rbx, %rdi
callq 0x8840