// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/networkstorage.cc
// Function: VORONOI_NETWORK::filterEdges(std::vector<int, std::allocator<int>>)
const VORONOI_NETWORK VORONOI_NETWORK::filterEdges(vector<int> nodeIDs)
{
    vector<bool> includeNodes = vector<bool>(nodes.size(), false);
    for(unsigned int i = 0; i < nodeIDs.size(); i++){
        includeNodes[nodeIDs[i]] = true;
    }
    
    vector<VOR_NODE> newNodes = vector<VOR_NODE>();
    for(unsigned int i = 0; i < nodes.size(); i++){
        newNodes.push_back(nodes[i]);
    }
    
    vector<VOR_EDGE> newEdges = vector<VOR_EDGE>();
    for(unsigned int i = 0; i < edges.size(); i++){
        VOR_EDGE edge = edges[i];
        if(includeNodes[edge.from] && includeNodes[edge.to]){
            newEdges.push_back(edge);
        }
    }
    
    return VORONOI_NETWORK(v_a, v_b, v_c, newNodes, newEdges);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq 0x50(%rsi), %rsi
subq 0x48(%r14), %rsi
movq %rdi, %rbx
sarq $0x6, %rsi
leaq 0x70(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %rcx
callq 0x383b0
movq (%r15), %rax
movq 0x8(%r15), %rdx
movabsq $-0x8000000000000000, %r13 # imm = 0x8000000000000000
subq %rax, %rdx
je 0x55807
sarq $0x2, %rdx
movq 0x8(%rsp), %rsi
xorl %edi, %edi
leaq 0x3f(%r13), %r8
movslq (%rax,%rdi,4), %rcx
leaq 0x3f(%rcx), %r9
testq %rcx, %rcx
cmovnsq %rcx, %r9
sarq $0x6, %r9
movq %rcx, %r10
andq %r8, %r10
xorl %r11d, %r11d
cmpq %r13, %r10
setbe %r11b
movl $0x1, %r10d
shlq %cl, %r10
leaq (%rsi,%r9,8), %rcx
orq %r10, -0x8(%rcx,%r11,8)
incq %rdi
movl %edi, %ecx
cmpq %rcx, %rdx
ja 0x557c8
movq %rbx, 0x68(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x48(%r14), %rax
cmpq %rax, 0x50(%r14)
je 0x5585a
movl $0x1, %ebx
xorl %esi, %esi
leaq 0x50(%rsp), %r15
shlq $0x6, %rsi
addq %rax, %rsi
movq %r15, %rdi
callq 0xe962
movl %ebx, %esi
movq 0x48(%r14), %rax
movq 0x50(%r14), %rcx
subq %rax, %rcx
sarq $0x6, %rcx
incl %ebx
cmpq %rsi, %rcx
ja 0x55833
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x60(%r14), %rax
cmpq %rax, 0x68(%r14)
je 0x55962
movl $0x1, %ebp
xorl %ecx, %ecx
leaq 0x3f(%r13), %rbx
movabsq $-0x3333333333333333, %r15 # imm = 0xCCCCCCCCCCCCCCCD
leaq 0x70(%rsp), %r12
leaq (%rcx,%rcx,4), %rsi
movslq (%rax,%rsi,8), %rdx
movl %edx, 0x70(%rsp)
movslq 0x4(%rax,%rsi,8), %rcx
movl %ecx, 0x74(%rsp)
movsd 0x8(%rax,%rsi,8), %xmm0
movsd %xmm0, 0x78(%rsp)
movl 0x10(%rax,%rsi,8), %edi
movl %edi, 0x80(%rsp)
movl 0x14(%rax,%rsi,8), %edi
movl %edi, 0x84(%rsp)
movl 0x18(%rax,%rsi,8), %eax
movl %eax, 0x88(%rsp)
movq 0x8(%rsp), %rax
leaq 0x3f(%rdx), %rsi
testq %rdx, %rdx
cmovnsq %rdx, %rsi
sarq $0x6, %rsi
leaq (%rax,%rsi,8), %rsi
movq %rdx, %rdi
andq %rbx, %rdi
xorl %r8d, %r8d
cmpq %r13, %rdi
setbe %r8b
movq -0x8(%rsi,%r8,8), %rsi
btq %rdx, %rsi
jae 0x55942
leaq 0x3f(%rcx), %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rax
movq %rcx, %rdx
andq %rbx, %rdx
xorl %esi, %esi
cmpq %r13, %rdx
setbe %sil
movq -0x8(%rax,%rsi,8), %rax
btq %rcx, %rax
jae 0x55942
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0xe9ba
movl %ebp, %ecx
movq 0x60(%r14), %rax
movq 0x68(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x55893
leaq 0x18(%r14), %rdx
leaq 0x30(%r14), %rcx
leaq 0x50(%rsp), %r8
leaq 0x30(%rsp), %r9
movq 0x68(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x55608
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5599b
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
leaq 0x50(%rsp), %rdi
callq 0xf1b8
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x559d5
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x559ec
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x55a0b
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x55a0b
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xf1b8
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x55a45
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
callq 0x4780