// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/network.cc
// Function: createAdvCell(voro::voronoicell&, std::vector<double, std::allocator<double>>, int*, VOR_CELL&)
void createAdvCell(voronoicell &cell, vector<double> coords, int *idMap, VOR_CELL &newCell) {
  int numFaces = cell.number_of_faces();
  vector<int> faceVertices;
  cell.face_vertices(faceVertices);
      
  int index = 0;
  for(int i = 0; i < numFaces; i++){
    vector<Point> faceCoords;
    vector<int>   faceIDs;
    int faceOrder = faceVertices[index];
    index++;
    for(int j = 0; j < faceOrder; j++){
      int verID = faceVertices[index];
      faceCoords.push_back(Point(coords[verID*3], coords[verID*3+1], coords[verID*3+2]));
      faceIDs.push_back(idMap[4*verID]);
      index++;
    }
    newCell.addFace(VOR_FACE(faceCoords, faceIDs));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, 0x68(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x124bf2
movl %eax, %ebp
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x1253c8
testl %ebp, %ebp
jle 0x7c19
leaq 0x88(%rsp), %r12
leaq 0x70(%rsp), %r13
xorl %ebx, %ebx
movq $0x0, (%rsp)
movl %ebp, 0x8(%rsp)
movl %ebx, 0xc(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq (%rsp), %rcx
movslq %ecx, %rcx
movq 0x50(%rsp), %rax
movl (%rax,%rcx,4), %ebx
incl %ecx
testl %ebx, %ebx
movq %rcx, (%rsp)
jle 0x7b2f
movslq %ecx, %r13
negl %ebx
xorl %r12d, %r12d
movq 0x50(%rsp), %rax
movslq (%rax,%r13,4), %rbp
movq (%r15), %rax
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x8(%rax,%rcx,8), %xmm1
movsd 0x10(%rax,%rcx,8), %xmm2
leaq 0xa0(%rsp), %rdi
callq 0x83f68
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x7ac2
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsi)
movups 0xa0(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x18, 0x38(%rsp)
jmp 0x7ad4
leaq 0x30(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x12d36
shlq $0x4, %rbp
addq %r14, %rbp
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x7af7
movl (%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x7b04
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0xf864
incq %r13
decl %r12d
cmpl %r12d, %ebx
jne 0x7a62
movq (%rsp), %rax
subl %r12d, %eax
movq %rax, (%rsp)
movl 0x8(%rsp), %ebp
leaq 0x88(%rsp), %r12
leaq 0x70(%rsp), %r13
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
callq 0xe868
leaq 0xb8(%rsp), %rbx
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
callq 0xe8f8
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6a2f8
movq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x6b012
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x7b89
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x7ba6
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x7bc0
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x7bdd
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7bf4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
movl 0xc(%rsp), %ebx
je 0x7c0f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
incl %ebx
cmpl %ebp, %ebx
jne 0x7a20
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x7c30
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x7cd2
jmp 0x7ca1
movq %rax, %rbx
jmp 0x7c80
movq %rax, %rbx
jmp 0x7c66
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xe978
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x7c80
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x7ca4
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x7ca4
jmp 0x7ca1
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7cbb
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7cd2
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x7ce9
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780