// File: 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
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdx, -0x120(%rbp)
movq %rdi, -0x118(%rbp)
movq %rdi, %rax
movq %rax, -0x110(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x108(%rbp)
addq $0x48, %rdi
callq 0xf270
movq %rax, -0x100(%rbp)
movb $0x0, -0x41(%rbp)
leaq -0x42(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x64b50
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rcx
leaq -0x40(%rbp), %rdi
leaq -0x41(%rbp), %rdx
callq 0x64b70
jmp 0x99eab
leaq -0x42(%rbp), %rdi
callq 0x64bf0
movl $0x0, -0x58(%rbp)
movq -0x120(%rbp), %rdi
movl -0x58(%rbp), %eax
movq %rax, -0x128(%rbp)
callq 0x10090
movq %rax, %rcx
movq -0x128(%rbp), %rax
cmpq %rcx, %rax
jae 0x99f6e
movq -0x120(%rbp), %rdi
movl -0x58(%rbp), %eax
movl %eax, %esi
callq 0xed60
movslq (%rax), %rsi
leaq -0x40(%rbp), %rdi
callq 0x29990
movq %rdx, -0x138(%rbp)
movq %rax, -0x130(%rbp)
jmp 0x99f11
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
movq %rcx, -0x68(%rbp)
movq %rax, -0x60(%rbp)
leaq -0x68(%rbp), %rdi
movl $0x1, %esi
callq 0x10040
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x99ebb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x42(%rbp), %rdi
callq 0x64bf0
jmp 0x9a1f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x9a1e8
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x52a0
leaq -0x80(%rbp), %rdi
callq 0xae650
movl $0x0, -0x84(%rbp)
movq -0x108(%rbp), %rdi
movl -0x84(%rbp), %eax
movq %rax, -0x140(%rbp)
addq $0x48, %rdi
callq 0xf270
movq %rax, %rcx
movq -0x140(%rbp), %rax
cmpq %rcx, %rax
jae 0x9a007
movq -0x108(%rbp), %rdi
addq $0x48, %rdi
movl -0x84(%rbp), %eax
movl %eax, %esi
callq 0x24e20
movq %rax, %rsi
leaq -0x80(%rbp), %rdi
callq 0xf440
jmp 0x99fe3
jmp 0x99fe5
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x99f91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x9a1df
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x52a0
leaq -0xa0(%rbp), %rdi
callq 0xae670
movl $0x0, -0xa4(%rbp)
movq -0x108(%rbp), %rdi
movl -0xa4(%rbp), %eax
movq %rax, -0x148(%rbp)
addq $0x60, %rdi
callq 0xf290
movq %rax, %rcx
movq -0x148(%rbp), %rax
cmpq %rcx, %rax
jae 0x9a183
movq -0x108(%rbp), %rdi
addq $0x60, %rdi
movl -0xa4(%rbp), %eax
movl %eax, %esi
callq 0x24740
movq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0x99a90
jmp 0x9a089
movslq -0xd0(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x29990
movq %rdx, -0x158(%rbp)
movq %rax, -0x150(%rbp)
jmp 0x9a0a9
movq -0x158(%rbp), %rax
movq -0x150(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
movq %rax, -0xd8(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x101a0
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x159(%rbp)
jne 0x9a0e2
jmp 0x9a130
movslq -0xcc(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x29990
movq %rdx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
jmp 0x9a102
movq -0x170(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, -0xf0(%rbp)
movq %rax, -0xe8(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x101a0
movb %al, -0x159(%rbp)
movb -0x159(%rbp), %al
testb $0x1, %al
jne 0x9a13c
jmp 0x9a16d
leaq -0xa0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xf5e0
jmp 0x9a151
jmp 0x9a16d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x11b80
jmp 0x9a1df
jmp 0x9a16f
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x9a030
movq -0x108(%rbp), %rsi
movq -0x118(%rbp), %rdi
movq %rsi, %rdx
addq $0x18, %rdx
movq %rsi, %rcx
addq $0x30, %rcx
leaq -0x80(%rbp), %r8
leaq -0xa0(%rbp), %r9
callq 0x99c10
jmp 0x9a1b1
leaq -0xa0(%rbp), %rdi
callq 0x11b80
leaq -0x80(%rbp), %rdi
callq 0x11be0
leaq -0x40(%rbp), %rdi
callq 0xf9b0
movq -0x110(%rbp), %rax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
leaq -0x80(%rbp), %rdi
callq 0x11be0
leaq -0x40(%rbp), %rdi
callq 0xf9b0
movq -0x50(%rbp), %rdi
callq 0x58f0
nopw (%rax,%rax)