// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/./process_vcf_annotation_tools.h
// Function: LinkedCoordsBed::loadLinkedCoords[abi:cxx11](std::basic_ifstream<char, std::char_traits<char>>*&)
std::vector<std::vector<std::vector<string> > > loadLinkedCoords(std::ifstream*& bedFile) {
        std::vector<std::vector<std::vector<string> > > elementCoordsVector;
        std::vector<std::vector<string> > thisElement;
        
        // Do the first line to find the name of the first scaffold and of the first element
        string line;
        getline(*bedFile, line);
        std::vector<string> bedVector = split(line, '\t');
        string currentElementName = bedVector[3];
        thisElement.push_back(bedVector);
        
        //
        while (getline(*bedFile, line)) {
            std::vector<string> bedVector = split(line, '\t');
            string element = bedVector[3];
            if (element == currentElementName) {
                thisElement.push_back(bedVector);
            } else {
                elementCoordsVector.push_back(thisElement);
                thisElement.clear();
                currentElementName = element;
                thisElement.push_back(bedVector);
            }
        }
        return elementCoordsVector;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, 0x8(%rsp)
movups %xmm0, (%rdi)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rdx, 0x90(%rsp)
movq (%rdx), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x8870
leaq 0x98(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x98(%rsp), %rax
leaq 0x40(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x2ba06
leaq 0x10(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x2f876
leaq 0x80(%rsp), %r14
leaq 0x50(%rsp), %r15
leaq 0xb0(%rsp), %r12
leaq 0x70(%rsp), %r13
leaq 0x10(%rsp), %rbp
movq 0x90(%rsp), %rax
movq (%rax), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x30acb
movq %r12, %rdi
movq %r15, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0xb0(%rsp), %rax
movq %r14, 0x70(%rsp)
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2ba06
movq 0x78(%rsp), %rdx
cmpq 0x38(%rsp), %rdx
jne 0x30a38
testq %rdx, %rdx
je 0x30a99
movq 0x30(%rsp), %rsi
movq 0x70(%rsp), %rdi
callq 0x8490
testl %eax, %eax
je 0x30a99
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x30c1e
movq %r15, %r12
movq %r14, %r15
movq %r13, %r14
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbp
cmpq %r13, %rbp
je 0x30a76
movq %r13, %rbx
movq %rbx, %rdi
callq 0x2e784
addq $0x18, %rbx
cmpq %rbp, %rbx
jne 0x30a60
movq %r13, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
movq %r14, %r13
movq %r14, %rsi
movq %r15, %r14
callq 0x8270
movq %r12, %r15
leaq 0xb0(%rsp), %r12
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2f876
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x30abe
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r12, %rdi
callq 0x2e784
jmp 0x309a5
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x30ae7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x98(%rsp), %rdi
callq 0x2e784
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x30b10
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x10(%rsp), %rdi
callq 0x2efec
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x30b46
movq %rax, %rbx
jmp 0x30b91
jmp 0x30b3a
movq %rax, %rbx
jmp 0x30b9e
jmp 0x30b46
movq %rax, %rbx
jmp 0x30b68
movq %rax, %rbx
jmp 0x30b75
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x30b68
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xb0(%rsp), %rdi
callq 0x2e784
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x30b91
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x98(%rsp), %rdi
callq 0x2e784
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x30bba
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x10(%rsp), %rdi
callq 0x2efec
movq 0x8(%rsp), %rdi
callq 0x30bd6
movq %rbx, %rdi
callq 0x8840