// File: /workspace/github_cpp_makefile_star2_O1/icemiliang[P]vot/src/vot/./container.hh
// Function: voro::container_poly::update_diagram(std::vector<vot::Dirac, std::allocator<vot::Dirac>>&, Eigen::SparseMatrix<double, 0, int>&)
inline void update_diagram(std::vector<vot::Dirac> &diracs, 
                                   Eigen::SparseMatrix<double>& pHessian) {
            c_loop_all vl(*this);
            voronoicell_neighbor c;
            if (vl.start()) {
                std::vector<Eigen::Triplet<double>> kijs;
                kijs.reserve(diracs.size());
                do {
                    // Update current cell
                    compute_cell(c, vl);

                    // Compute Hessian
                    int idx = id[vl.ijk][vl.q];
                    // Coordinates of the current Centroid
                    double *pp; 
                    pp = p[vl.ijk] + ps*vl.q;

                    std::vector<int> nids;
                    std::vector<double> face_areas;
                    c.neighbors(nids);
                    c.face_areas(face_areas);
                    ASSERT_VOT(nids.size() == face_areas.size(), 
                           "Number of neighbor ids not equal to number of neighbor faces.");

                   for (int i = 0; i < (int)nids.size(); i++) {
                       if (nids[i] < 0) continue;
                       vot::Point tmp = vot::Point(diracs[nids[i]].x() - pp[0], 
                                                   diracs[nids[i]].y() - pp[1], 
                                                   diracs[nids[i]].z() - pp[2]);
                       double dist = tmp.norm();
                       ASSERT_VOT(dist > vot::otTOLERANCE, "Distance equals zero.");
                       kijs.push_back(Eigen::Triplet<double>(idx, nids[i], -face_areas[i] / dist));
                   }
                } while (vl.inc());

                // Put kijs into Hessian
                pHessian.setFromTriplets(kijs.begin(), kijs.end());
                // Fill up diagonal
               for (int iCol = 0; iCol < (int)diracs.size(); iCol++){
                   double sum = pHessian.col(iCol).sum();
                   pHessian.coeffRef(iCol,iCol) = -sum;
                }
                // Hessian may not be symmetric because kij may not equal kji.
                // Face areas at the two sizes of a same plane, computed by voro++, could be different .
                // Need average.
                Eigen::SparseMatrix<double> tmp = pHessian.transpose();
                pHessian = pHessian + tmp;
                pHessian = pHessian * 0.5;
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdx, %r14
movq %rsi, 0x28(%rsp)
movl (%rdi), %ebx
movl 0x4(%rdi), %ebp
movl 0x10(%rdi), %r15d
movq %rdi, 0x58(%rsp)
movq 0xb8(%rdi), %r13
leaq 0x118(%rsp), %rdi
callq 0x1f5e2
xorl %r12d, %r12d
movq %r13, 0x30(%rsp)
cmpl $0x0, (%r13)
setne %al
movl $0x0, %edx
movl $0x0, 0x10(%rsp)
movl $0x0, %r13d
jne 0x1329b
xorl %edx, %edx
movl $0x1, %ecx
movl $0x0, 0x10(%rsp)
xorl %eax, %eax
xorl %r13d, %r13d
movq %rcx, %r12
incl %r13d
cmpl %ebx, %r13d
jne 0x13287
movl 0x10(%rsp), %ecx
incl %ecx
xorl %r13d, %r13d
movl %ecx, 0x10(%rsp)
cmpl %ebp, %ecx
jne 0x13287
incl %edx
movl $0x0, 0x10(%rsp)
movl $0x0, %r13d
cmpl %r12d, %r15d
je 0x1329b
leaq 0x1(%r12), %rcx
movq 0x30(%rsp), %rax
cmpl $0x0, (%rax,%r12,4)
setne %al
je 0x13256
testb $0x1, %al
je 0x137c5
movl %edx, 0xc(%rsp)
xorpd %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x28(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
callq 0x14158
movq 0x58(%rsp), %rax
addq $0xf8, %rax
movq %rax, 0x100(%rsp)
movq 0x30(%rsp), %rax
addq $0x4, %rax
movq %rax, 0xe8(%rsp)
leaq 0x118(%rsp), %rsi
movl $0x0, 0x8(%rsp)
movl 0xc(%rsp), %edi
movq %r14, 0xf8(%rsp)
movl %ebx, 0x3c(%rsp)
movl %ebp, 0x38(%rsp)
movq %r15, 0xf0(%rsp)
movl %edi, 0xc(%rsp)
movl %edi, (%rsp)
movq 0x100(%rsp), %rdi
movl %r12d, %edx
movl 0x8(%rsp), %ebp
movl %ebp, %ecx
movl %r13d, %r8d
movl 0x10(%rsp), %r9d
movq %rsi, %rbx
callq 0x3373c
movslq %r12d, %rsi
movq 0x58(%rsp), %rdx
movq 0xa8(%rdx), %rax
movq 0xb0(%rdx), %rcx
movq (%rax,%rsi,8), %rax
movslq %ebp, %rdi
movq %rdi, 0x108(%rsp)
movl (%rax,%rdi,4), %r15d
movq %rsi, 0x110(%rsp)
movq (%rcx,%rsi,8), %r14
movslq 0xc8(%rdx), %rbp
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
movq %rax, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movq %rbx, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x1f750
movq %rbx, %rdi
leaq 0x70(%rsp), %rsi
callq 0x1c85a
movq 0xa8(%rsp), %rax
subq 0xa0(%rsp), %rax
sarq $0x2, %rax
movq 0x78(%rsp), %rcx
subq 0x70(%rsp), %rcx
sarq $0x3, %rcx
cmpq %rcx, %rax
jne 0x13875
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x13526
imulq 0x108(%rsp), %rbp
xorl %ebx, %ebx
movslq (%rax,%rbx,4), %rax
testq %rax, %rax
js 0x13500
movq 0x28(%rsp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movsd (%rcx,%rax), %xmm1
movsd 0x8(%rcx,%rax), %xmm2
subsd (%r14,%rbp,8), %xmm1
subsd 0x8(%r14,%rbp,8), %xmm2
movsd 0x10(%rcx,%rax), %xmm0
subsd 0x10(%r14,%rbp,8), %xmm0
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
ucomisd 0x376c0(%rip), %xmm0    # 0x4ab48
jb 0x13490
sqrtsd %xmm0, %xmm0
jmp 0x13495
callq 0x72d0
ucomisd 0x376b3(%rip), %xmm0    # 0x4ab50
jbe 0x137e4
movq 0xa0(%rsp), %rax
movq 0x70(%rsp), %rcx
movsd (%rcx,%rbx,8), %xmm1
xorpd 0x376a3(%rip), %xmm1    # 0x4ab60
divsd %xmm0, %xmm1
movl %r15d, 0x60(%rsp)
movl (%rax,%rbx,4), %eax
movl %eax, 0x64(%rsp)
movsd %xmm1, 0x68(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x134f1
movupd 0x60(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x48(%rsp)
jmp 0x13500
leaq 0x40(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x143c8
incq %rbx
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rbx
jl 0x1342a
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x13540
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x7380
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
movq 0xf8(%rsp), %r14
movl 0x3c(%rsp), %ebx
movl 0x38(%rsp), %ebp
movq 0xf0(%rsp), %r15
je 0x13575
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7380
movl 0x8(%rsp), %edx
incl %edx
movb $0x1, %al
movq 0x30(%rsp), %rcx
movl %edx, 0x8(%rsp)
movq 0x110(%rsp), %rsi
cmpl (%rcx,%rsi,4), %edx
jge 0x13599
movl 0xc(%rsp), %edi
jmp 0x13606
movq 0xe8(%rsp), %rcx
leaq (%rcx,%rsi,4), %rcx
incl %r12d
movl %r12d, %esi
movl 0x10(%rsp), %edx
movl 0xc(%rsp), %edi
movl %esi, %r12d
incl %r13d
cmpl %ebx, %r13d
jne 0x135e1
incl %edx
xorl %r13d, %r13d
cmpl %ebp, %edx
jne 0x135dd
incl %edi
movl $0x0, 0x10(%rsp)
cmpl %r12d, %r15d
je 0x135f9
xorl %r13d, %r13d
xorl %edx, %edx
jmp 0x135e1
movl %edx, 0x10(%rsp)
cmpl $0x0, (%rcx)
leaq 0x4(%rcx), %rcx
leal 0x1(%r12), %esi
je 0x135b3
movl $0x0, 0x8(%rsp)
jmp 0x13606
movl $0x0, 0x8(%rsp)
xorl %r13d, %r13d
xorl %eax, %eax
testb %al, %al
leaq 0x118(%rsp), %rsi
jne 0x1332f
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
leaq 0xa0(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x70(%rsp), %rsi
movq %rcx, (%rsi)
leaq 0x60(%rsp), %rcx
movq %r14, %rdx
callq 0x144eb
movq 0x28(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
shrq $0x4, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x136d4
xorl %ebx, %ebx
leaq 0xa0(%rsp), %r15
movb $0x0, 0xa0(%rsp)
movq %r14, 0xa8(%rsp)
movq %rbx, 0xb0(%rsp)
cmpq %rbx, 0x8(%r14)
jle 0x13906
movq %r15, %rdi
callq 0x14200
movapd %xmm0, 0x10(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movq %rbx, %rdx
callq 0x14270
movapd 0x10(%rsp), %xmm0
xorpd 0x374b0(%rip), %xmm0    # 0x4ab60
movlpd %xmm0, (%rax)
incq %rbx
movq 0x28(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
shrq $0x4, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
cmpq %rax, %rbx
jl 0x13664
xorl %eax, %eax
leaq 0x70(%rsp), %rsi
movb %al, (%rsi)
movq %r14, 0x8(%rsi)
leaq 0xa0(%rsp), %rbx
movb %al, (%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rbx)
movupd %xmm0, 0x18(%rbx)
movupd %xmm0, 0x28(%rbx)
movupd %xmm0, 0x38(%rbx)
movq %rbx, %rdi
callq 0x1616a
movb $0x0, 0x70(%rsp)
movq %r14, 0x78(%rsp)
movq %rbx, 0x80(%rsp)
movq 0x10(%r14), %rax
cmpq 0xb0(%rsp), %rax
jne 0x13925
movq 0x8(%r14), %rax
cmpq 0xa8(%rsp), %rax
jne 0x13925
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x1434c
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, %rdx
orq %rcx, %rdx
js 0x13944
leaq 0x70(%rsp), %rsi
movb $0x0, (%rsi)
movq %r14, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, 0x20(%rsi)
movq %r14, %rdi
callq 0x1437c
leaq 0xc8(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x7420
movq -0x8(%rbx), %rdi
callq 0x7420
movq %rbx, %rdi
callq 0x14f80
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x137c5
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x7380
leaq 0x118(%rsp), %rdi
callq 0x1f6d6
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4e7f5(%rip), %rdi     # 0x61fe0
leaq 0x3758c(%rip), %rsi     # 0x4ad7e
movl $0x32, %edx
callq 0x73e0
movq 0x4e7dd(%rip), %rdi     # 0x61fe0
leaq 0x37527(%rip), %rsi     # 0x4ad31
movl $0xe, %edx
callq 0x73e0
movq 0x4e7c5(%rip), %rdi     # 0x61fe0
leaq 0x37491(%rip), %rsi     # 0x4acb3
movl $0x6, %edx
callq 0x73e0
movq 0x4e7ad(%rip), %rdi     # 0x61fe0
movl $0x2bc, %esi            # imm = 0x2BC
callq 0x7690
movq %rax, %rbx
leaq 0x36c0c(%rip), %rsi     # 0x4a453
movl $0x2, %edx
movq %rax, %rdi
callq 0x73e0
leaq 0x37556(%rip), %rsi     # 0x4adb1
movl $0x15, %edx
movq %rbx, %rdi
callq 0x73e0
movq %rbx, %rdi
callq 0x71a0
callq 0x7110
movq 0x4e764(%rip), %rdi     # 0x61fe0
leaq 0x37472(%rip), %rsi     # 0x4acf5
movl $0x3b, %edx
callq 0x73e0
movq 0x4e74c(%rip), %rdi     # 0x61fe0
leaq 0x37496(%rip), %rsi     # 0x4ad31
movl $0xe, %edx
callq 0x73e0
movq 0x4e734(%rip), %rdi     # 0x61fe0
leaq 0x37400(%rip), %rsi     # 0x4acb3
movl $0x6, %edx
callq 0x73e0
movq 0x4e71c(%rip), %rdi     # 0x61fe0
movl $0x2b4, %esi            # imm = 0x2B4
callq 0x7690
movq %rax, %rbx
leaq 0x36b7b(%rip), %rsi     # 0x4a453
movl $0x2, %edx
movq %rax, %rdi
callq 0x73e0
leaq 0x37454(%rip), %rsi     # 0x4ad40
movl $0x3d, %edx
movq %rbx, %rdi
callq 0x73e0
movq %rbx, %rdi
callq 0x71a0
jmp 0x13870
leaq 0x3803f(%rip), %rdi     # 0x4b94c
leaq 0x380df(%rip), %rsi     # 0x4b9f3
leaq 0x380fd(%rip), %rcx     # 0x4ba18
movl $0x7a, %edx
callq 0x7240
leaq 0x38894(%rip), %rdi     # 0x4c1c0
leaq 0x388c6(%rip), %rsi     # 0x4c1f9
leaq 0x388ec(%rip), %rcx     # 0x4c226
movl $0x6e, %edx
callq 0x7240
leaq 0x37891(%rip), %rdi     # 0x4b1dc
leaq 0x3791f(%rip), %rsi     # 0x4b271
leaq 0x38d65(%rip), %rcx     # 0x4c6be
movl $0x4a, %edx
callq 0x7240
jmp 0x13965
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x13b84
jmp 0x139d6
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x14f80
jmp 0x139d6
jmp 0x13993
jmp 0x13993
jmp 0x13993
jmp 0x13993
jmp 0x1399c
movq %rax, %rbx
jmp 0x139d6
jmp 0x1399c
jmp 0x1399c
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x139b9
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x7380
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x139d6
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7380
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x139ed
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x7380
leaq 0x118(%rsp), %rdi
callq 0x1f6d6
movq %rbx, %rdi
callq 0x76c0