// File: /workspace/github_cpp_makefile_star2_O1/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 0x126510
movl %eax, %ebp
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x126cec
testl %ebp, %ebp
jle 0x7aa3
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 0x79b9
movslq %ecx, %r13
negl %ebx
xorl %r12d, %r12d
movq 0x50(%rsp), %rax
movslq (%rax,%r13,4), %rbp
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq (%r15), %rcx
movsd (%rcx,%rax,8), %xmm0
cltq
movsd 0x8(%rcx,%rax,8), %xmm1
movsd 0x10(%rcx,%rax,8), %xmm2
leaq 0xa0(%rsp), %rdi
callq 0x85436
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x794c
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsi)
movups 0xa0(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x18, 0x38(%rsp)
jmp 0x795e
leaq 0x30(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x12d92
shlq $0x4, %rbp
addq %r14, %rbp
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x7981
movl (%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x798e
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0xf7b4
incq %r13
decl %r12d
cmpl %r12d, %ebx
jne 0x78ea
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 0xe7f6
leaq 0xb8(%rsp), %rbx
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
callq 0xe886
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6ad60
movq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x6bb54
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x7a13
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x7a30
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x7a4a
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x7a67
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7a7e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
movl 0xc(%rsp), %ebx
je 0x7a99
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
incl %ebx
cmpl %ebp, %ebx
jne 0x78a8
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x7aba
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 0x7b5c
jmp 0x7b2b
movq %rax, %rbx
jmp 0x7b0a
movq %rax, %rbx
jmp 0x7af0
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xe906
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x7b0a
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x7b2e
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x7b2e
jmp 0x7b2b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7b45
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7b5c
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x7b73
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780