// File: /workspace/github_cpp_makefile_star2_O3/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 $0x1e8, %rsp            # imm = 0x1E8
movq %rdx, 0xf8(%rsp)
movq %rsi, %rbx
movl (%rdi), %ebp
movl 0x4(%rdi), %r14d
movl 0x10(%rdi), %r15d
movq %rdi, 0x60(%rsp)
movq 0xb8(%rdi), %r12
leaq 0x128(%rsp), %rdi
callq 0x1f642
xorl %r13d, %r13d
movq %r12, 0x50(%rsp)
cmpl $0x0, (%r12)
movl $0x0, %esi
movl $0x0, %edi
movl $0x0, %r12d
jne 0x1325b
leal -0x1(%r15), %eax
xorl %esi, %esi
xorl %edi, %edi
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x50(%rsp), %rdx
movq %r13, %rcx
incl %r12d
cmpl %ebp, %r12d
jne 0x13250
incl %edi
cmpl %r14d, %edi
jne 0x1324d
cmpl %ecx, %eax
je 0x1374a
incl %esi
xorl %edi, %edi
xorl %r12d, %r12d
leaq 0x1(%rcx), %r13
cmpl $0x0, 0x4(%rdx,%rcx,4)
je 0x1322f
movl %edi, 0x14(%rsp)
movq %rsi, 0x18(%rsp)
xorpd %xmm0, %xmm0
leaq 0x30(%rsp), %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rbx), %rax
movq %rbx, 0x68(%rsp)
subq (%rbx), %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
callq 0x140d6
movq 0x60(%rsp), %rax
addq $0xf8, %rax
movq %rax, 0x110(%rsp)
movq 0x50(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x100(%rsp)
decl %r15d
xorl %ebx, %ebx
movq 0x18(%rsp), %rcx
movl %ebp, 0x28(%rsp)
movl %r14d, 0x24(%rsp)
movq %r15, 0x108(%rsp)
movq %rcx, 0x18(%rsp)
movl %ecx, (%rsp)
movq 0x110(%rsp), %rdi
leaq 0x128(%rsp), %rbp
movq %rbp, %rsi
movl %r13d, %edx
movl %ebx, %ecx
movl %r12d, %r8d
movl 0x14(%rsp), %r9d
callq 0x33e3c
movslq %r13d, %rsi
movq 0x60(%rsp), %rdx
movq 0xa8(%rdx), %rax
movq 0xb0(%rdx), %rcx
movq (%rax,%rsi,8), %rax
movl %ebx, 0x2c(%rsp)
movslq %ebx, %rdi
movq %rdi, 0x118(%rsp)
movl (%rax,%rdi,4), %r15d
movq %rsi, 0x120(%rsp)
movq (%rcx,%rsi,8), %rbx
movslq 0xc8(%rdx), %r14
xorl %eax, %eax
movq %rax, 0xc0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xb0(%rsp)
movq %rax, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movq %rbp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1f7b0
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
callq 0x1c90a
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rcx
movq %rcx, %rdx
subq %rdi, %rdx
movq %rdx, %rsi
sarq $0x2, %rsi
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %r8
subq %rax, %r8
sarq $0x3, %r8
cmpq %r8, %rsi
jne 0x13819
shrq $0x2, %rdx
testl %edx, %edx
jle 0x134d7
imulq 0x118(%rsp), %r14
xorl %ebp, %ebp
movslq (%rdi,%rbp,4), %rax
testq %rax, %rax
js 0x134b7
movq 0x68(%rsp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movsd (%rcx,%rax), %xmm0
movsd 0x8(%rcx,%rax), %xmm1
subsd (%rbx,%r14,8), %xmm0
subsd 0x8(%rbx,%r14,8), %xmm1
movsd 0x10(%rcx,%rax), %xmm2
subsd 0x10(%rbx,%r14,8), %xmm2
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm2
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
sqrtsd %xmm2, %xmm0
ucomisd 0x37717(%rip), %xmm0    # 0x4ab60
jbe 0x13769
movq 0x80(%rsp), %rax
movsd (%rax,%rbp,8), %xmm1
xorpd 0x3770c(%rip), %xmm1    # 0x4ab70
divsd %xmm0, %xmm1
movl %r15d, 0x70(%rsp)
movl (%rdi,%rbp,4), %eax
movl %eax, 0x74(%rsp)
movsd %xmm1, 0x78(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x13498
movupd 0x70(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x38(%rsp)
jmp 0x134a7
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x14340
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rcx
incq %rbp
movq %rcx, %rax
subq %rdi, %rax
shrq $0x2, %rax
cltq
cmpq %rax, %rbp
jl 0x133e4
movq 0x80(%rsp), %rax
testq %rax, %rax
movl 0x28(%rsp), %ebp
movl 0x24(%rsp), %r14d
movq 0x108(%rsp), %r15
je 0x13508
movq 0x90(%rsp), %rsi
subq %rax, %rsi
movq %rax, %rdi
callq 0x7390
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x1351d
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movl 0x2c(%rsp), %ebx
incl %ebx
movq 0x50(%rsp), %rax
movq 0x120(%rsp), %rdx
cmpl (%rax,%rdx,4), %ebx
movq 0x18(%rsp), %rcx
jl 0x132db
movq 0x100(%rsp), %rax
leaq (%rax,%rdx,4), %rax
movl 0x14(%rsp), %edx
incl %r12d
cmpl %ebp, %r12d
jne 0x13569
incl %edx
cmpl %r14d, %edx
jne 0x13566
cmpl %r13d, %r15d
je 0x13580
incl %ecx
xorl %edx, %edx
xorl %r12d, %r12d
incl %r13d
cmpl $0x0, (%rax)
leaq 0x4(%rax), %rax
je 0x1354e
movl %edx, 0x14(%rsp)
xorl %ebx, %ebx
jmp 0x132db
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
leaq 0xb0(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x80(%rsp), %rsi
movq %rcx, (%rsi)
leaq 0x70(%rsp), %rcx
movq 0xf8(%rsp), %rbx
movq %rbx, %rdx
callq 0x14463
movq 0x68(%rsp), %r14
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x4, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x13645
xorl %r15d, %r15d
leaq 0xb0(%rsp), %r12
movb $0x0, 0xb0(%rsp)
movq %rbx, 0xb8(%rsp)
movq %r15, 0xc0(%rsp)
cmpq %r15, 0x8(%rbx)
jle 0x137fa
movq %r12, %rdi
callq 0x1417e
movapd %xmm0, 0x50(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x141e8
movapd 0x50(%rsp), %xmm0
xorpd 0x3754a(%rip), %xmm0    # 0x4ab70
movlpd %xmm0, (%rax)
incq %r15
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x4, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
cmpq %rax, %r15
jl 0x135da
xorl %eax, %eax
leaq 0x80(%rsp), %rsi
movb %al, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xb0(%rsp), %r14
movb %al, (%r14)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%r14)
movupd %xmm0, 0x18(%r14)
movupd %xmm0, 0x28(%r14)
movupd %xmm0, 0x38(%r14)
movq %r14, %rdi
callq 0x161bc
movb $0x0, 0x80(%rsp)
movq %rbx, 0x88(%rsp)
movq %r14, 0x90(%rsp)
movq 0x10(%rbx), %rax
cmpq 0xc0(%rsp), %rax
jne 0x138aa
movq 0x8(%rbx), %rax
cmpq 0xb8(%rsp), %rax
jne 0x138aa
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x142c4
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
movq %rax, %rdx
orq %rcx, %rdx
js 0x138c9
leaq 0x80(%rsp), %rsi
movb $0x0, (%rsi)
movq %rbx, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, 0x20(%rsi)
movq %rbx, %rdi
callq 0x142f4
leaq 0xd8(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x7430
movq -0x8(%rbx), %rdi
callq 0x7430
movq %rbx, %rdi
callq 0x14eb6
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1374a
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
leaq 0x128(%rsp), %rdi
callq 0x1f736
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4d870(%rip), %rdi     # 0x60fe0
leaq 0x37657(%rip), %rsi     # 0x4adce
movl $0x32, %edx
callq 0x73f0
movq 0x4d858(%rip), %rdi     # 0x60fe0
leaq 0x375f2(%rip), %rsi     # 0x4ad81
movl $0xe, %edx
callq 0x73f0
movq 0x4d840(%rip), %rdi     # 0x60fe0
leaq 0x3755c(%rip), %rsi     # 0x4ad03
movl $0x6, %edx
callq 0x73f0
movq 0x4d828(%rip), %rdi     # 0x60fe0
movl $0x2bc, %esi            # imm = 0x2BC
callq 0x76a0
movq %rax, %rbx
leaq 0x36c97(%rip), %rsi     # 0x4a463
movl $0x2, %edx
movq %rax, %rdi
callq 0x73f0
leaq 0x37621(%rip), %rsi     # 0x4ae01
movl $0x15, %edx
movq %rbx, %rdi
callq 0x73f0
movq %rbx, %rdi
callq 0x71a0
callq 0x7110
leaq 0x3819b(%rip), %rdi     # 0x4b99c
leaq 0x3823b(%rip), %rsi     # 0x4ba43
leaq 0x38259(%rip), %rcx     # 0x4ba68
movl $0x7a, %edx
callq 0x7240
movq 0x4d7c0(%rip), %rdi     # 0x60fe0
leaq 0x3751e(%rip), %rsi     # 0x4ad45
movl $0x3b, %edx
callq 0x73f0
movq 0x4d7a8(%rip), %rdi     # 0x60fe0
leaq 0x37542(%rip), %rsi     # 0x4ad81
movl $0xe, %edx
callq 0x73f0
movq 0x4d790(%rip), %rdi     # 0x60fe0
leaq 0x374ac(%rip), %rsi     # 0x4ad03
movl $0x6, %edx
callq 0x73f0
movq 0x4d778(%rip), %rdi     # 0x60fe0
movl $0x2b4, %esi            # imm = 0x2B4
callq 0x76a0
movq %rax, %rbx
leaq 0x36be7(%rip), %rsi     # 0x4a463
movl $0x2, %edx
movq %rax, %rdi
callq 0x73f0
leaq 0x37500(%rip), %rsi     # 0x4ad90
movl $0x3d, %edx
movq %rbx, %rdi
callq 0x73f0
movq %rbx, %rdi
callq 0x71a0
jmp 0x137f5
leaq 0x3895f(%rip), %rdi     # 0x4c210
leaq 0x38991(%rip), %rsi     # 0x4c249
leaq 0x389b7(%rip), %rcx     # 0x4c276
movl $0x6e, %edx
callq 0x7240
leaq 0x3795c(%rip), %rdi     # 0x4b22c
leaq 0x379ea(%rip), %rsi     # 0x4b2c1
leaq 0x38e30(%rip), %rcx     # 0x4c70e
movl $0x4a, %edx
callq 0x7240
jmp 0x138ea
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x13afc
jmp 0x1395e
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x14eb6
jmp 0x1395e
jmp 0x1391a
jmp 0x1391a
jmp 0x13921
jmp 0x1391a
jmp 0x13921
jmp 0x1391a
movq %rax, %rbx
jmp 0x1395e
jmp 0x13921
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x13941
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x1395e
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x13975
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
leaq 0x128(%rsp), %rdi
callq 0x1f736
movq %rbx, %rdi
callq 0x76d0