// File: /workspace/github_cpp_makefile_star2_O2/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 $0x108, %rsp            # imm = 0x108
movl %ecx, 0x1c(%rsp)
leaq 0x8(%rdi), %rax
andl $0x0, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rdi, 0x10(%rsp)
andq $0x0, 0x28(%rdi)
movq %rdx, 0x90(%rsp)
andq $0x0, 0x70(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
andq $0x0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x5eb8c(%rip), %rsi     # 0x99e1f
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x21904
leaq 0xd0(%rsp), %r15
leaq 0x78(%rsp), %r12
leaq 0x98(%rsp), %rbp
leaq 0xf0(%rsp), %r13
leaq 0xc(%rsp), %rbx
movq 0x90(%rsp), %rax
movq (%rax), %rdi
movq %r15, %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3b4af
movq %r12, %rdi
movq %r15, %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0x311fd
testb %al, %al
je 0x3b457
movq %rbp, %rdi
leaq 0x5eb06(%rip), %rsi     # 0x99e1f
callq 0x2ea9b
testb %al, %al
je 0x3b457
cmpb $0x0, 0x1c(%rsp)
je 0x3b3f3
movq 0xa1cb0(%rip), %rdi     # 0xdcfe8
leaq 0x62e11(%rip), %rsi     # 0x9e150
callq 0x8480
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8430
movq %rax, %rdi
callq 0x8230
movq 0xa1c8a(%rip), %rdi     # 0xdcfe8
leaq 0x62dfe(%rip), %rsi     # 0x9e163
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %r13, %rdi
leaq 0x40(%rsp), %rsi
callq 0x2c6d4
movq %r13, %rdi
movq %r13, %r14
movq 0xa1c5c(%rip), %r13     # 0xdcfe8
movq %r13, %rsi
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
callq 0x348a2
movq %r14, %rdi
callq 0x2aef2
movq %r13, %rdi
leaq 0x62dc0(%rip), %rsi     # 0x9e16c
callq 0x8480
movq %r14, %r13
movq %rax, %rdi
callq 0x8230
leaq 0xb8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2c6d4
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
movq 0xa1c08(%rip), %rsi     # 0xdcfe8
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
callq 0x348a2
movq %r14, %rdi
callq 0x2aef2
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x3b5c4
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3b5c4
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x3b5f0
movq %rax, %rdi
leaq 0x60(%rsp), %rsi
callq 0x3b656
leaq 0x60(%rsp), %rdi
callq 0x3b734
movq 0x40(%rsp), %rax
cmpq %rax, 0x48(%rsp)
je 0x3b446
movq %rax, 0x48(%rsp)
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x3b457
movq %rax, 0x28(%rsp)
movq 0x78(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x86f0
movl %eax, 0xc(%rsp)
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0x2c80c
movq 0x78(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x86f0
movl %eax, 0xc(%rsp)
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x2c80c
movq 0x78(%rsp), %rsi
movq %rbp, %rdi
callq 0x82a0
movq %r12, %rdi
callq 0x28a08
jmp 0x3b2c7
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x3b5c4
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3b5c4
leaq 0x98(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x3b5f0
leaq 0x60(%rsp), %rsi
movq %rax, %rdi
callq 0x3b656
leaq 0x98(%rsp), %rdi
callq 0x8978
leaq 0xd0(%rsp), %rdi
callq 0x8978
leaq 0x20(%rsp), %rdi
callq 0x2aef2
leaq 0x40(%rsp), %rdi
callq 0x2aef2
leaq 0x60(%rsp), %rdi
callq 0x3b73c
movq 0x10(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3b586
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x3b558
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x2aef2
jmp 0x3b56f
jmp 0x3b567
jmp 0x3b56c
jmp 0x3b56c
jmp 0x3b567
movq %rax, %rbx
jmp 0x3b579
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x28a08
leaq 0x98(%rsp), %rdi
callq 0x8978
leaq 0xd0(%rsp), %rdi
callq 0x8978
leaq 0x20(%rsp), %rdi
callq 0x2aef2
leaq 0x40(%rsp), %rdi
callq 0x2aef2
leaq 0x60(%rsp), %rdi
callq 0x3b73c
movq 0x10(%rsp), %rdi
callq 0x3c082
movq %rbx, %rdi
callq 0x8870
nop