// File: /workspace/github_c_makefile_star2_O0/mohuangrui[P]ArtraCFD/computational_geometry.c
// Function: ComputeParametersPolyhedron
static void ComputeParametersPolyhedron(const int collapse, Polyhedron *poly)
{
    /* initialize parameters */
    const Real pi = PI;
    RealVec v0 = {0.0}; /* vertices */
    RealVec v1 = {0.0};
    RealVec v2 = {0.0};
    RealVec e01 = {0.0}; /* edges */
    RealVec e02 = {0.0};
    RealVec Nf = {0.0}; /* outward normal */
    RealVec Angle = {0.0}; /* internal angle */
    RealVec O = {0.0}; /* centroid */
    Real area = 0.0; /* area */
    Real volume = 0.0; /* volume */
    Real I[6] = {0.0}; /* inertia integration xx, yy, zz, xy, yz, zx */
    RealVec tmp = {0.0}; /* temporary */
    Real f[DIMS][DIMS] = {{0.0}}; /* temporary */
    Real g[DIMS][DIMS] = {{0.0}}; /* temporary */
    Real box[LIMIT][DIMS] = {{0.0}}; /* bounding box */
    for (int s = 0; s < DIMS; ++s) {
        box[MIN][s] = FLT_MAX;
        box[MAX][s] = FLT_MIN;
    }
    /* initialize vertices normal */
    memset(poly->Nv, 0, poly->vertN * sizeof(*poly->Nv));
    /* bounding box */
    for (int n = 0; n < poly->vertN; ++n) {
        for (int s = 0; s < DIMS; ++s) {
            box[MIN][s] = (box[MIN][s] < poly->v[n][s]) ? box[MIN][s] : poly->v[n][s];
            box[MAX][s] = (box[MAX][s] > poly->v[n][s]) ? box[MAX][s] : poly->v[n][s];
        }
    }
    /*
     * Gelder, A. V. (1995). Efficient computation of polygon area and
     * polyhedron volume. Graphics Gems V.
     * Eberly, David. "Polyhedral mass properties (revisited)." Geometric
     * Tools, LLC, Tech. Rep (2002).
     */
    for (int n = 0; n < poly->faceN; ++n) {
        BuildTriangle(n, poly, v0, v1, v2, e01, e02);
        /* outward normal vector */
        Cross(e01, e02, Nf);
        /* temporary values */
        for (int s = 0; s < DIMS; ++s) {
            tmp[0] = v0[s] + v1[s];
            f[0][s] = tmp[0] + v2[s];
            tmp[1] = v0[s] * v0[s];
            tmp[2] = tmp[1] + v1[s] * tmp[0];
            f[1][s] = tmp[2] + v2[s] * f[0][s];
            f[2][s] = v0[s] * tmp[1] + v1[s] * tmp[2] + v2[s] * f[1][s];
            g[0][s] = f[1][s] + v0[s] * (f[0][s] + v0[s]);
            g[1][s] = f[1][s] + v1[s] * (f[0][s] + v1[s]);
            g[2][s] = f[1][s] + v2[s] * (f[0][s] + v2[s]);
        }
        /* integration */
        area = area + Norm(Nf);
        volume = volume + Nf[X] * f[0][X];
        O[X] = O[X] + Nf[X] * f[1][X];
        O[Y] = O[Y] + Nf[Y] * f[1][Y];
        O[Z] = O[Z] + Nf[Z] * f[1][Z];
        I[0] = I[0] + Nf[X] * f[2][X];
        I[1] = I[1] + Nf[Y] * f[2][Y];
        I[2] = I[2] + Nf[Z] * f[2][Z];
        I[3] = I[3] + Nf[X] * (v0[Y] * g[0][X] + v1[Y] * g[1][X] + v2[Y] * g[2][X]);
        I[4] = I[4] + Nf[Y] * (v0[Z] * g[0][Y] + v1[Z] * g[1][Y] + v2[Z] * g[2][Y]);
        I[5] = I[5] + Nf[Z] * (v0[X] * g[0][Z] + v1[X] * g[1][Z] + v2[X] * g[2][Z]);
        /* unit normal */
        Normalize(DIMS, Norm(Nf), Nf);
        /*
         * Refine vertices normal by corresponding angles
         * Baerentzen, J. A., & Aanaes, H. (2005). Signed distance computation
         * using the angle weighted pseudonormal. Visualization and Computer
         * Graphics, IEEE Transactions on, 11(3), 243-253.
         */
        /* calculate internal angles by the law of cosines */
        const RealVec e12 = {v2[X] - v1[X], v2[Y] - v1[Y], v2[Z] - v1[Z]};
        const RealVec lsq = {Dot(e01, e01), Dot(e02, e02), Dot(e12, e12)};
        Angle[0] = acos((lsq[0] + lsq[1] - lsq[2]) / (2.0 * sqrt(lsq[0] * lsq[1])));
        Angle[1] = acos((lsq[0] + lsq[2] - lsq[1]) / (2.0 * sqrt(lsq[0] * lsq[2])));
        Angle[2] = pi - Angle[0] - Angle[1];
        for (int v = 0; v < POLYN; ++v) {
            for (int s = 0; s < DIMS; ++s) {
                poly->Nv[poly->f[n][v]][s] = poly->Nv[poly->f[n][v]][s] + Angle[v] * Nf[s];
            }
        }
        /* assign face normal */
        for (int s = 0; s < DIMS; ++s) {
            poly->Nf[n][s] = Nf[s];
        }
    }
    /* rectify final integration */
    area = area * (1.0 / 2.0);
    volume = volume * (1.0 / 6.0);
    O[X] = O[X] * (1.0 / 24.0);
    O[Y] = O[Y] * (1.0 / 24.0);
    O[Z] = O[Z] * (1.0 / 24.0);
    I[0] = I[0] * (1.0 / 60.0);
    I[1] = I[1] * (1.0 / 60.0);
    I[2] = I[2] * (1.0 / 60.0);
    I[3] = I[3] * (1.0 / 120.0);
    I[4] = I[4] * (1.0 / 120.0);
    I[5] = I[5] * (1.0 / 120.0);
    O[X] = O[X] / volume;
    O[Y] = O[Y] / volume;
    O[Z] = O[Z] / volume;
    /* assign to polyhedron */
    if (COLLAPSEN == collapse) { /* no space dimension collapsed */
        poly->area = area;
    } else {
        poly->area = area - 2.0 * volume; /* change to side area of a unit thickness polygon */
    }
    poly->volume = volume;
    poly->O[X] = O[X];
    poly->O[Y] = O[Y];
    poly->O[Z] = O[Z];
    /* inertia relative to centroid */
    poly->I[X][X] = I[1] + I[2] - volume * (O[Y] * O[Y] + O[Z] * O[Z]);
    poly->I[X][Y] = -I[3] + volume * O[X] * O[Y];
    poly->I[X][Z] = -I[5] + volume * O[Z] * O[X];
    poly->I[Y][X] = poly->I[X][Y];
    poly->I[Y][Y] = I[0] + I[2] - volume * (O[Z] * O[Z] + O[X] * O[X]);
    poly->I[Y][Z] = -I[4] + volume * O[Y] * O[Z];
    poly->I[Z][X] = poly->I[X][Z];
    poly->I[Z][Y] = poly->I[Y][Z];
    poly->I[Z][Z] = I[0] + I[1] - volume * (O[X] * O[X] + O[Y] * O[Y]);
    for (int s = 0; s < DIMS; ++s) {
        poly->box[s][MIN] = box[MIN][s];
        poly->box[s][MAX] = box[MAX][s];
    }
    /* a radius for estimating maximum velocity */
    poly->r = Dist(box[MIN], box[MAX]);
    /* normalize vertices normal */
    for (int n = 0; n < poly->vertN; ++n) {
        Normalize(DIMS, Norm(poly->Nv[n]), poly->Nv[n]);
    }
    /* compute edge normal */
    for (int n = 0; n < poly->edgeN; ++n) {
        for (int s = 0; s < DIMS; ++s) {
            poly->Ne[n][s] = poly->Nf[poly->e[n][2]][s] + poly->Nf[poly->e[n][3]][s];
        }
        Normalize(DIMS, Norm(poly->Ne[n]), poly->Ne[n]);
    }
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp            # imm = 0x2E0
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x19c7f(%rip), %rax     # 0x277a8
movsd (%rax), %xmm0
movsd %xmm0, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0xd0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0x110(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
xorps %xmm0, %xmm0
movsd %xmm0, -0x118(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x120(%rbp)
leaq -0x150(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x20d0
leaq -0x170(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
leaq -0x1c0(%rbp), %rdi
xorl %esi, %esi
movl $0x48, %edx
callq 0x20d0
leaq -0x210(%rbp), %rdi
xorl %esi, %esi
movl $0x48, %edx
callq 0x20d0
leaq -0x240(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x20d0
movl $0x0, -0x244(%rbp)
cmpl $0x3, -0x244(%rbp)
jge 0xdc8a
movslq -0x244(%rbp), %rax
movsd 0x19c70(%rip), %xmm0    # 0x278c8
movsd %xmm0, -0x240(%rbp,%rax,8)
movslq -0x244(%rbp), %rax
movsd 0x19ad8(%rip), %xmm0    # 0x27748
movsd %xmm0, -0x228(%rbp,%rax,8)
movl -0x244(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x244(%rbp)
jmp 0xdc40
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rdi
movq -0x10(%rbp), %rax
movslq 0x8(%rax), %rax
imulq $0x18, %rax, %rdx
xorl %esi, %esi
callq 0x20d0
movl $0x0, -0x248(%rbp)
movl -0x248(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0xde36
movl $0x0, -0x24c(%rbp)
cmpl $0x3, -0x24c(%rbp)
jge 0xde20
movslq -0x24c(%rbp), %rax
movsd -0x240(%rbp,%rax,8), %xmm1
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rax
movslq -0x248(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x24c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xdd31
movslq -0x24c(%rbp), %rax
movsd -0x240(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x2b8(%rbp)
jmp 0xdd5e
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rax
movslq -0x248(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x24c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x2b8(%rbp)
movsd -0x2b8(%rbp), %xmm0
movslq -0x24c(%rbp), %rax
movsd %xmm0, -0x240(%rbp,%rax,8)
movslq -0x24c(%rbp), %rax
movsd -0x228(%rbp,%rax,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rax
movslq -0x248(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x24c(%rbp), %rcx
ucomisd (%rax,%rcx,8), %xmm0
jbe 0xddc7
movslq -0x24c(%rbp), %rax
movsd -0x228(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x2c0(%rbp)
jmp 0xddf4
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rax
movslq -0x248(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x24c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x2c0(%rbp)
movsd -0x2c0(%rbp), %xmm0
movslq -0x24c(%rbp), %rax
movsd %xmm0, -0x228(%rbp,%rax,8)
movl -0x24c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24c(%rbp)
jmp 0xdccf
jmp 0xde22
movl -0x248(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x248(%rbp)
jmp 0xdcb2
movl $0x0, -0x250(%rbp)
movl -0x250(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jge 0xe632
movl -0x250(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq -0x70(%rbp), %r8
leaq -0x90(%rbp), %r9
leaq -0xb0(%rbp), %rax
movq %rax, (%rsp)
callq 0xeca0
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x99b0
movl $0x0, -0x254(%rbp)
cmpl $0x3, -0x254(%rbp)
jge 0xe0f4
movslq -0x254(%rbp), %rax
movsd -0x30(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
addsd -0x50(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x170(%rbp)
movsd -0x170(%rbp), %xmm0
movslq -0x254(%rbp), %rax
addsd -0x70(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
movsd %xmm0, -0x1c0(%rbp,%rax,8)
movslq -0x254(%rbp), %rax
movsd -0x30(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
mulsd -0x30(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x168(%rbp)
movsd -0x168(%rbp), %xmm1
movslq -0x254(%rbp), %rax
movsd -0x50(%rbp,%rax,8), %xmm0
movsd -0x170(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x160(%rbp)
movsd -0x160(%rbp), %xmm1
movslq -0x254(%rbp), %rax
movsd -0x70(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
movsd -0x1c0(%rbp,%rax,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -0x254(%rbp), %rax
movsd %xmm0, -0x1a8(%rbp,%rax,8)
movslq -0x254(%rbp), %rax
movsd -0x30(%rbp,%rax,8), %xmm1
movsd -0x168(%rbp), %xmm2
movslq -0x254(%rbp), %rax
movsd -0x50(%rbp,%rax,8), %xmm0
mulsd -0x160(%rbp), %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movslq -0x254(%rbp), %rax
movsd -0x70(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
movsd -0x1a8(%rbp,%rax,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -0x254(%rbp), %rax
movsd %xmm0, -0x190(%rbp,%rax,8)
movslq -0x254(%rbp), %rax
movsd -0x1a8(%rbp,%rax,8), %xmm1
movslq -0x254(%rbp), %rax
movsd -0x30(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
movsd -0x1c0(%rbp,%rax,8), %xmm2
movslq -0x254(%rbp), %rax
addsd -0x30(%rbp,%rax,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -0x254(%rbp), %rax
movsd %xmm0, -0x210(%rbp,%rax,8)
movslq -0x254(%rbp), %rax
movsd -0x1a8(%rbp,%rax,8), %xmm1
movslq -0x254(%rbp), %rax
movsd -0x50(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
movsd -0x1c0(%rbp,%rax,8), %xmm2
movslq -0x254(%rbp), %rax
addsd -0x50(%rbp,%rax,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -0x254(%rbp), %rax
movsd %xmm0, -0x1f8(%rbp,%rax,8)
movslq -0x254(%rbp), %rax
movsd -0x1a8(%rbp,%rax,8), %xmm1
movslq -0x254(%rbp), %rax
movsd -0x70(%rbp,%rax,8), %xmm0
movslq -0x254(%rbp), %rax
movsd -0x1c0(%rbp,%rax,8), %xmm2
movslq -0x254(%rbp), %rax
addsd -0x70(%rbp,%rax,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -0x254(%rbp), %rax
movsd %xmm0, -0x1e0(%rbp,%rax,8)
movl -0x254(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x254(%rbp)
jmp 0xdea3
movsd -0x118(%rbp), %xmm0
movsd %xmm0, -0x2d8(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x98e0
movaps %xmm0, %xmm1
movsd -0x2d8(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x118(%rbp)
movsd -0x120(%rbp), %xmm1
movsd -0xd0(%rbp), %xmm0
movsd -0x1c0(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x120(%rbp)
movsd -0x110(%rbp), %xmm1
movsd -0xd0(%rbp), %xmm0
movsd -0x1a8(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x110(%rbp)
movsd -0x108(%rbp), %xmm1
movsd -0xc8(%rbp), %xmm0
movsd -0x1a0(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x108(%rbp)
movsd -0x100(%rbp), %xmm1
movsd -0xc0(%rbp), %xmm0
movsd -0x198(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x100(%rbp)
movsd -0x150(%rbp), %xmm1
movsd -0xd0(%rbp), %xmm0
movsd -0x190(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x150(%rbp)
movsd -0x148(%rbp), %xmm1
movsd -0xc8(%rbp), %xmm0
movsd -0x188(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x148(%rbp)
movsd -0x140(%rbp), %xmm1
movsd -0xc0(%rbp), %xmm0
movsd -0x180(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x140(%rbp)
movsd -0x138(%rbp), %xmm1
movsd -0xd0(%rbp), %xmm0
movsd -0x28(%rbp), %xmm3
movsd -0x210(%rbp), %xmm4
movsd -0x48(%rbp), %xmm2
mulsd -0x1f8(%rbp), %xmm2
mulsd %xmm4, %xmm3
addsd %xmm2, %xmm3
movsd -0x68(%rbp), %xmm2
movsd -0x1e0(%rbp), %xmm4
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x138(%rbp)
movsd -0x130(%rbp), %xmm1
movsd -0xc8(%rbp), %xmm0
movsd -0x20(%rbp), %xmm3
movsd -0x208(%rbp), %xmm4
movsd -0x40(%rbp), %xmm2
mulsd -0x1f0(%rbp), %xmm2
mulsd %xmm4, %xmm3
addsd %xmm2, %xmm3
movsd -0x60(%rbp), %xmm2
movsd -0x1d8(%rbp), %xmm4
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x130(%rbp)
movsd -0x128(%rbp), %xmm1
movsd -0xc0(%rbp), %xmm0
movsd -0x30(%rbp), %xmm3
movsd -0x200(%rbp), %xmm4
movsd -0x50(%rbp), %xmm2
mulsd -0x1e8(%rbp), %xmm2
mulsd %xmm4, %xmm3
addsd %xmm2, %xmm3
movsd -0x70(%rbp), %xmm2
movsd -0x1d0(%rbp), %xmm4
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x128(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x98e0
leaq -0xd0(%rbp), %rsi
movl $0x3, %edi
callq 0x9c60
movsd -0x70(%rbp), %xmm0
subsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x270(%rbp)
movsd -0x68(%rbp), %xmm0
subsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x268(%rbp)
movsd -0x60(%rbp), %xmm0
subsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x260(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x9880
movsd %xmm0, -0x290(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x9880
movsd %xmm0, -0x288(%rbp)
leaq -0x270(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x9880
movsd %xmm0, -0x280(%rbp)
movsd -0x290(%rbp), %xmm0
addsd -0x288(%rbp), %xmm0
subsd -0x280(%rbp), %xmm0
movsd %xmm0, -0x2d0(%rbp)
movsd -0x290(%rbp), %xmm0
mulsd -0x288(%rbp), %xmm0
callq 0x2200
movaps %xmm0, %xmm2
movsd -0x2d0(%rbp), %xmm0
movsd 0x192f0(%rip), %xmm1    # 0x27720
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2100
movsd %xmm0, -0xf0(%rbp)
movsd -0x290(%rbp), %xmm0
addsd -0x280(%rbp), %xmm0
subsd -0x288(%rbp), %xmm0
movsd %xmm0, -0x2c8(%rbp)
movsd -0x290(%rbp), %xmm0
mulsd -0x280(%rbp), %xmm0
callq 0x2200
movaps %xmm0, %xmm2
movsd -0x2c8(%rbp), %xmm0
movsd 0x19293(%rip), %xmm1    # 0x27720
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2100
movsd %xmm0, -0xe8(%rbp)
movsd -0x18(%rbp), %xmm0
subsd -0xf0(%rbp), %xmm0
subsd -0xe8(%rbp), %xmm0
movsd %xmm0, -0xe0(%rbp)
movl $0x0, -0x294(%rbp)
cmpl $0x3, -0x294(%rbp)
jge 0xe5c3
movl $0x0, -0x298(%rbp)
cmpl $0x3, -0x298(%rbp)
jge 0xe5ad
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x200(%rcx), %rcx
movslq -0x250(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rcx
movslq -0x294(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x298(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movslq -0x294(%rbp), %rax
movsd -0xf0(%rbp,%rax,8), %xmm0
movslq -0x298(%rbp), %rax
movsd -0xd0(%rbp,%rax,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x200(%rcx), %rcx
movslq -0x250(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rcx
movslq -0x294(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x298(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x298(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x298(%rbp)
jmp 0xe4e0
jmp 0xe5af
movl -0x294(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x294(%rbp)
jmp 0xe4c9
movl $0x0, -0x29c(%rbp)
cmpl $0x3, -0x29c(%rbp)
jge 0xe61c
movslq -0x29c(%rbp), %rax
movsd -0xd0(%rbp,%rax,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x208(%rax), %rax
movslq -0x250(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x29c(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x29c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x29c(%rbp)
jmp 0xe5cd
jmp 0xe61e
movl -0x250(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x250(%rbp)
jmp 0xde40
movsd 0x190ce(%rip), %xmm0    # 0x27708
mulsd -0x118(%rbp), %xmm0
movsd %xmm0, -0x118(%rbp)
movsd 0x192ae(%rip), %xmm0    # 0x27900
mulsd -0x120(%rbp), %xmm0
movsd %xmm0, -0x120(%rbp)
movsd 0x1928e(%rip), %xmm0    # 0x278f8
mulsd -0x110(%rbp), %xmm0
movsd %xmm0, -0x110(%rbp)
movsd 0x19276(%rip), %xmm0    # 0x278f8
mulsd -0x108(%rbp), %xmm0
movsd %xmm0, -0x108(%rbp)
movsd 0x1925e(%rip), %xmm0    # 0x278f8
mulsd -0x100(%rbp), %xmm0
movsd %xmm0, -0x100(%rbp)
movsd 0x1923e(%rip), %xmm0    # 0x278f0
mulsd -0x150(%rbp), %xmm0
movsd %xmm0, -0x150(%rbp)
movsd 0x19226(%rip), %xmm0    # 0x278f0
mulsd -0x148(%rbp), %xmm0
movsd %xmm0, -0x148(%rbp)
movsd 0x1920e(%rip), %xmm0    # 0x278f0
mulsd -0x140(%rbp), %xmm0
movsd %xmm0, -0x140(%rbp)
movsd 0x191ee(%rip), %xmm0    # 0x278e8
mulsd -0x138(%rbp), %xmm0
movsd %xmm0, -0x138(%rbp)
movsd 0x191d6(%rip), %xmm0    # 0x278e8
mulsd -0x130(%rbp), %xmm0
movsd %xmm0, -0x130(%rbp)
movsd 0x191be(%rip), %xmm0    # 0x278e8
mulsd -0x128(%rbp), %xmm0
movsd %xmm0, -0x128(%rbp)
movsd -0x110(%rbp), %xmm0
divsd -0x120(%rbp), %xmm0
movsd %xmm0, -0x110(%rbp)
movsd -0x108(%rbp), %xmm0
divsd -0x120(%rbp), %xmm0
movsd %xmm0, -0x108(%rbp)
movsd -0x100(%rbp), %xmm0
divsd -0x120(%rbp), %xmm0
movsd %xmm0, -0x100(%rbp)
xorl %eax, %eax
cmpl -0x4(%rbp), %eax
jne 0xe79f
movsd -0x118(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x1c0(%rax)
jmp 0xe7c3
movsd -0x118(%rbp), %xmm0
movsd -0x120(%rbp), %xmm1
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x1c0(%rax)
movsd -0x120(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x1c8(%rax)
movsd -0x110(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x20(%rax)
movsd -0x108(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x28(%rax)
movsd -0x100(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x30(%rax)
movsd -0x148(%rbp), %xmm1
addsd -0x140(%rbp), %xmm1
movsd -0x120(%rbp), %xmm0
movsd -0x108(%rbp), %xmm2
movsd -0x108(%rbp), %xmm4
movsd -0x100(%rbp), %xmm3
mulsd -0x100(%rbp), %xmm3
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x38(%rax)
movsd -0x138(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
movsd -0x120(%rbp), %xmm0
mulsd -0x110(%rbp), %xmm0
movsd -0x108(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x40(%rax)
movsd -0x128(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
movsd -0x120(%rbp), %xmm0
mulsd -0x100(%rbp), %xmm0
movsd -0x110(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x48(%rax)
movq -0x10(%rbp), %rax
movsd 0x40(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x50(%rax)
movsd -0x150(%rbp), %xmm1
addsd -0x140(%rbp), %xmm1
movsd -0x120(%rbp), %xmm0
movsd -0x100(%rbp), %xmm2
movsd -0x100(%rbp), %xmm4
movsd -0x110(%rbp), %xmm3
mulsd -0x110(%rbp), %xmm3
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x58(%rax)
movsd -0x130(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
movsd -0x120(%rbp), %xmm0
mulsd -0x108(%rbp), %xmm0
movsd -0x100(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x60(%rax)
movq -0x10(%rbp), %rax
movsd 0x48(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x68(%rax)
movq -0x10(%rbp), %rax
movsd 0x60(%rax), %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x70(%rax)
movsd -0x150(%rbp), %xmm1
addsd -0x148(%rbp), %xmm1
movsd -0x120(%rbp), %xmm0
movsd -0x110(%rbp), %xmm2
movsd -0x110(%rbp), %xmm4
movsd -0x108(%rbp), %xmm3
mulsd -0x108(%rbp), %xmm3
mulsd %xmm4, %xmm2
addsd %xmm3, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movsd %xmm0, 0x78(%rax)
movl $0x0, -0x2a0(%rbp)
cmpl $0x3, -0x2a0(%rbp)
jge 0xeacd
movslq -0x2a0(%rbp), %rax
movsd -0x240(%rbp,%rax,8), %xmm0
movq -0x10(%rbp), %rax
addq $0x1d0, %rax            # imm = 0x1D0
movslq -0x2a0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movslq -0x2a0(%rbp), %rax
movsd -0x228(%rbp,%rax,8), %xmm0
movq -0x10(%rbp), %rax
addq $0x1d0, %rax            # imm = 0x1D0
movslq -0x2a0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movl -0x2a0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2a0(%rbp)
jmp 0xea5a
leaq -0x240(%rbp), %rdi
leaq -0x240(%rbp), %rsi
addq $0x18, %rsi
callq 0x9980
movq -0x10(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movl $0x0, -0x2a4(%rbp)
movl -0x2a4(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0xeb58
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rdi
movslq -0x2a4(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x98e0
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rsi
movslq -0x2a4(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rsi
movl $0x3, %edi
callq 0x9c60
movl -0x2a4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2a4(%rbp)
jmp 0xeaf7
movl $0x0, -0x2a8(%rbp)
movl -0x2a8(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0xec90
movl $0x0, -0x2ac(%rbp)
cmpl $0x3, -0x2ac(%rbp)
jge 0xec3b
movq -0x10(%rbp), %rax
movq 0x208(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x210(%rcx), %rcx
movslq -0x2a8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movslq 0x8(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x2ac(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x208(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x210(%rcx), %rcx
movslq -0x2a8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movslq 0xc(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x2ac(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movslq -0x2a8(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movslq -0x2ac(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x2ac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2ac(%rbp)
jmp 0xeb7f
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rdi
movslq -0x2a8(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x98e0
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rsi
movslq -0x2a8(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rsi
movl $0x3, %edi
callq 0x9c60
movl -0x2a8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2a8(%rbp)
jmp 0xeb62
addq $0x2e0, %rsp            # imm = 0x2E0
popq %rbp
retq
nopl (%rax)