// File: /workspace/github_cpp_makefile_star2_O3/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 0x48(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x70(%rsp), %rdi
leaq 0x20(%rsp), %rcx
callq 0x37f36
movq (%r15), %rax
movq 0x8(%r15), %rdx
movabsq $-0x8000000000000000, %r13 # imm = 0x8000000000000000
subq %rax, %rdx
je 0x554d2
sarq $0x2, %rdx
movq 0x70(%rsp), %rsi
xorl %edi, %edi
leaq 0x3f(%r13), %r8
movslq (%rax,%rdi,4), %rcx
leal 0x3f(%rcx), %r9d
testq %rcx, %rcx
cmovnsl %ecx, %r9d
sarl $0x6, %r9d
movslq %r9d, %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 0x55490
movq %rbx, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x48(%r14), %rax
cmpq %rax, 0x50(%r14)
je 0x55525
movl $0x1, %ebx
xorl %esi, %esi
leaq 0x20(%rsp), %r15
shlq $0x6, %rsi
addq %rax, %rsi
movq %r15, %rdi
callq 0xe9d4
movl %ebx, %esi
movq 0x48(%r14), %rax
movq 0x50(%r14), %rcx
subq %rax, %rcx
sarq $0x6, %rcx
incl %ebx
cmpq %rsi, %rcx
ja 0x554fe
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x60(%r14), %rax
movq 0x68(%r14), %rcx
cmpq %rax, %rcx
je 0x55624
movl $0x1, %ebp
xorl %edx, %edx
leaq 0x3f(%r13), %rbx
movabsq $-0x3333333333333333, %r15 # imm = 0xCCCCCCCCCCCCCCCD
leaq 0x48(%rsp), %r12
leaq (%rdx,%rdx,4), %rdi
movslq (%rax,%rdi,8), %rsi
leal 0x3f(%rsi), %r8d
testq %rsi, %rsi
movl %esi, 0x48(%rsp)
movslq 0x4(%rax,%rdi,8), %rdx
movl %edx, 0x4c(%rsp)
movsd 0x8(%rax,%rdi,8), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x10(%rax,%rdi,8), %r9
movq %r9, 0x58(%rsp)
movl 0x18(%rax,%rdi,8), %edi
movl %edi, 0x60(%rsp)
cmovnsl %esi, %r8d
movq 0x70(%rsp), %rdi
sarl $0x6, %r8d
movslq %r8d, %r8
leaq (%rdi,%r8,8), %r8
movq %rsi, %r9
andq %rbx, %r9
xorl %r10d, %r10d
cmpq %r13, %r9
setbe %r10b
movq -0x8(%r8,%r10,8), %r8
btq %rsi, %r8
jae 0x55609
leal 0x3f(%rdx), %esi
testl %edx, %edx
cmovnsl %edx, %esi
sarl $0x6, %esi
movslq %esi, %rsi
leaq (%rdi,%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 0x55609
movq %rsp, %rdi
movq %r12, %rsi
callq 0xea2c
movq 0x60(%r14), %rax
movq 0x68(%r14), %rcx
movl %ebp, %edx
movq %rcx, %rsi
subq %rax, %rsi
sarq $0x3, %rsi
imulq %r15, %rsi
incl %ebp
cmpq %rdx, %rsi
ja 0x55560
leaq 0x18(%r14), %rdx
leaq 0x30(%r14), %rcx
leaq 0x20(%rsp), %r8
movq %rsp, %r9
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x552d0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5565a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
leaq 0x20(%rsp), %rdi
callq 0xf256
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x5567e
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x55695
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x556b3
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x556b3
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xf256
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x556d7
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780