// File: /workspace/github_c_makefile_star2_O0/mohuangrui[P]ArtraCFD/diffusive_flux.c
// Function: ComputeFvhatZ
static void ComputeFvhatZ(const int tn, const int k, const int j, const int i,
        const int partn[restrict], const Real dd[restrict], const Node *const node,
        const Model *model, Real Fvhat[restrict])
{
    const int idx = IndexNode(k, j, i, partn[Y], partn[X]);
    const int idxW = IndexNode(k, j, i - 1, partn[Y], partn[X]);
    const int idxE = IndexNode(k, j, i + 1, partn[Y], partn[X]);
    const int idxS = IndexNode(k, j - 1, i, partn[Y], partn[X]);
    const int idxN = IndexNode(k, j + 1, i, partn[Y], partn[X]);

    const int idxB = IndexNode(k + 1, j, i, partn[Y], partn[X]);
    const int idxWB = IndexNode(k + 1, j, i - 1, partn[Y], partn[X]);
    const int idxEB = IndexNode(k + 1, j, i + 1, partn[Y], partn[X]);
    const int idxSB = IndexNode(k + 1, j - 1, i, partn[Y], partn[X]);
    const int idxNB = IndexNode(k + 1, j + 1, i, partn[Y], partn[X]);

    const Real *restrict U = node[idx].U[tn];
    const Real u = U[1] / U[0];
    const Real v = U[2] / U[0];
    const Real w = U[3] / U[0];
    const Real T = ComputeTemperature(model->cv, U);

    U = node[idxW].U[tn];
    const Real uW = U[1] / U[0];
    const Real wW = U[3] / U[0];

    U = node[idxE].U[tn];
    const Real uE = U[1] / U[0];
    const Real wE = U[3] / U[0];

    U = node[idxS].U[tn];
    const Real vS = U[2] / U[0];
    const Real wS = U[3] / U[0];

    U = node[idxN].U[tn];
    const Real vN = U[2] / U[0];
    const Real wN = U[3] / U[0];

    U = node[idxB].U[tn];
    const Real uB = U[1] / U[0];
    const Real vB = U[2] / U[0];
    const Real wB = U[3] / U[0];
    const Real TB = ComputeTemperature(model->cv, U);

    U = node[idxWB].U[tn];
    const Real uWB = U[1] / U[0];
    const Real wWB = U[3] / U[0];

    U = node[idxEB].U[tn];
    const Real uEB = U[1] / U[0];
    const Real wEB = U[3] / U[0];

    U = node[idxSB].U[tn];
    const Real vSB = U[2] / U[0];
    const Real wSB = U[3] / U[0];

    U = node[idxNB].U[tn];
    const Real vNB = U[2] / U[0];
    const Real wNB = U[3] / U[0];

    const Real dw_dx = 0.25 * (wE + wEB - wW - wWB) * dd[X];
    const Real du_dz = (uB - u) * dd[Z];
    const Real dw_dy = 0.25 * (wN + wNB - wS - wSB) * dd[Y];
    const Real dv_dz = (vB - v) * dd[Z];
    const Real du_dx = 0.25 * (uE + uEB - uW - uWB) * dd[X];
    const Real dv_dy = 0.25 * (vN + vNB - vS - vSB) * dd[Y];
    const Real dw_dz = (wB - w) * dd[Z];
    const Real dT_dz = (TB - T) * dd[Z];

    /* calculate interfacial values */
    const Real uhat = 0.5 * (u + uB);
    const Real vhat = 0.5 * (v + vB);
    const Real what = 0.5 * (w + wB);
    const Real That = 0.5 * (T + TB);
    const Real mu = model->refMu * Viscosity(That * model->refT);
    const Real heatK = model->gamma * model->cv * mu / PrandtlNumber();
    const Real divV = du_dx + dv_dy + dw_dz;

    Fvhat[0] = 0.0;
    Fvhat[1] = mu * (dw_dx + du_dz);
    Fvhat[2] = mu * (dw_dy + dv_dz);
    Fvhat[3] = mu * (dw_dz + dw_dz - (2.0/3.0) * divV);
    Fvhat[4] = heatK * dT_dz + Fvhat[1] * uhat + Fvhat[2] * vhat + Fvhat[3] * what;
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movq %r8, -0x18(%rbp)
movq %r9, -0x20(%rbp)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x24(%rbp)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
subl $0x1, %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x28(%rbp)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
addl $0x1, %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x2c(%rbp)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
subl $0x1, %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x30(%rbp)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
addl $0x1, %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x34(%rbp)
movl -0x8(%rbp), %edi
addl $0x1, %edi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x38(%rbp)
movl -0x8(%rbp), %edi
addl $0x1, %edi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
subl $0x1, %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x3c(%rbp)
movl -0x8(%rbp), %edi
addl $0x1, %edi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
addl $0x1, %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x40(%rbp)
movl -0x8(%rbp), %edi
addl $0x1, %edi
movl -0xc(%rbp), %esi
subl $0x1, %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x44(%rbp)
movl -0x8(%rbp), %edi
addl $0x1, %edi
movl -0xc(%rbp), %esi
addl $0x1, %esi
movl -0x10(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl (%rax), %r8d
callq 0x9500
movl %eax, -0x48(%rbp)
movq 0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x68(%rbp)
movq 0x18(%rbp), %rax
movsd 0x50(%rax), %xmm0
movq -0x50(%rbp), %rdi
callq 0x9370
movsd %xmm0, -0x70(%rbp)
movq 0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x78(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x80(%rbp)
movq 0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x88(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x90(%rbp)
movq 0x10(%rbp), %rax
movslq -0x30(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x98(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xa0(%rbp)
movq 0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xb0(%rbp)
movq 0x10(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xb8(%rbp)
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xc0(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xc8(%rbp)
movq 0x18(%rbp), %rax
movsd 0x50(%rax), %xmm0
movq -0x50(%rbp), %rdi
callq 0x9370
movsd %xmm0, -0xd0(%rbp)
movq 0x10(%rbp), %rax
movslq -0x3c(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xd8(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xe0(%rbp)
movq 0x10(%rbp), %rax
movslq -0x40(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xe8(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xf0(%rbp)
movq 0x10(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0xf8(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x100(%rbp)
movq 0x10(%rbp), %rax
movslq -0x48(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
addq $0x10, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsd 0x10(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x108(%rbp)
movq -0x50(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x50(%rbp), %rax
divsd (%rax), %xmm0
movsd %xmm0, -0x110(%rbp)
movsd -0x90(%rbp), %xmm1
addsd -0xf0(%rbp), %xmm1
subsd -0x80(%rbp), %xmm1
subsd -0xe0(%rbp), %xmm1
movsd 0x13a21(%rip), %xmm0    # 0x27c28
mulsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
mulsd (%rax), %xmm0
movsd %xmm0, -0x118(%rbp)
movsd -0xb8(%rbp), %xmm0
subsd -0x58(%rbp), %xmm0
movq -0x20(%rbp), %rax
mulsd 0x10(%rax), %xmm0
movsd %xmm0, -0x120(%rbp)
movsd -0xb0(%rbp), %xmm1
addsd -0x110(%rbp), %xmm1
subsd -0xa0(%rbp), %xmm1
subsd -0x100(%rbp), %xmm1
movsd 0x139c7(%rip), %xmm0    # 0x27c28
mulsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
mulsd 0x8(%rax), %xmm0
movsd %xmm0, -0x128(%rbp)
movsd -0xc0(%rbp), %xmm0
subsd -0x60(%rbp), %xmm0
movq -0x20(%rbp), %rax
mulsd 0x10(%rax), %xmm0
movsd %xmm0, -0x130(%rbp)
movsd -0x88(%rbp), %xmm1
addsd -0xe8(%rbp), %xmm1
subsd -0x78(%rbp), %xmm1
subsd -0xd8(%rbp), %xmm1
movsd 0x1396f(%rip), %xmm0    # 0x27c28
mulsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
mulsd (%rax), %xmm0
movsd %xmm0, -0x138(%rbp)
movsd -0xa8(%rbp), %xmm1
addsd -0x108(%rbp), %xmm1
subsd -0x98(%rbp), %xmm1
subsd -0xf8(%rbp), %xmm1
movsd 0x13933(%rip), %xmm0    # 0x27c28
mulsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
mulsd 0x8(%rax), %xmm0
movsd %xmm0, -0x140(%rbp)
movsd -0xc8(%rbp), %xmm0
subsd -0x68(%rbp), %xmm0
movq -0x20(%rbp), %rax
mulsd 0x10(%rax), %xmm0
movsd %xmm0, -0x148(%rbp)
movsd -0xd0(%rbp), %xmm0
subsd -0x70(%rbp), %xmm0
movq -0x20(%rbp), %rax
mulsd 0x10(%rax), %xmm0
movsd %xmm0, -0x150(%rbp)
movsd -0x58(%rbp), %xmm1
addsd -0xb8(%rbp), %xmm1
movsd 0x133ad(%rip), %xmm0    # 0x27708
mulsd %xmm1, %xmm0
movsd %xmm0, -0x158(%rbp)
movsd -0x60(%rbp), %xmm1
addsd -0xc0(%rbp), %xmm1
movsd 0x1338c(%rip), %xmm0    # 0x27708
mulsd %xmm1, %xmm0
movsd %xmm0, -0x160(%rbp)
movsd -0x68(%rbp), %xmm1
addsd -0xc8(%rbp), %xmm1
movsd 0x1336b(%rip), %xmm0    # 0x27708
mulsd %xmm1, %xmm0
movsd %xmm0, -0x168(%rbp)
movsd -0x70(%rbp), %xmm1
addsd -0xd0(%rbp), %xmm1
movsd 0x1334a(%rip), %xmm0    # 0x27708
mulsd %xmm1, %xmm0
movsd %xmm0, -0x170(%rbp)
movq 0x18(%rbp), %rax
movsd 0x38(%rax), %xmm0
movsd %xmm0, -0x198(%rbp)
movsd -0x170(%rbp), %xmm0
movq 0x18(%rbp), %rax
mulsd 0x70(%rax), %xmm0
callq 0x91f0
movaps %xmm0, %xmm1
movsd -0x198(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x178(%rbp)
movq 0x18(%rbp), %rax
movsd 0x40(%rax), %xmm0
movq 0x18(%rbp), %rax
mulsd 0x50(%rax), %xmm0
mulsd -0x178(%rbp), %xmm0
movsd %xmm0, -0x190(%rbp)
callq 0x9240
movaps %xmm0, %xmm1
movsd -0x190(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x180(%rbp)
movsd -0x138(%rbp), %xmm0
addsd -0x140(%rbp), %xmm0
addsd -0x148(%rbp), %xmm0
movsd %xmm0, -0x188(%rbp)
movq 0x20(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movsd -0x178(%rbp), %xmm0
movsd -0x118(%rbp), %xmm1
addsd -0x120(%rbp), %xmm1
mulsd %xmm1, %xmm0
movq 0x20(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movsd -0x178(%rbp), %xmm0
movsd -0x128(%rbp), %xmm1
addsd -0x130(%rbp), %xmm1
mulsd %xmm1, %xmm0
movq 0x20(%rbp), %rax
movsd %xmm0, 0x10(%rax)
movsd -0x178(%rbp), %xmm0
movsd -0x148(%rbp), %xmm2
addsd -0x148(%rbp), %xmm2
movsd -0x188(%rbp), %xmm1
movsd 0x1373d(%rip), %xmm3    # 0x27c20
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movq 0x20(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movsd -0x180(%rbp), %xmm0
movsd -0x150(%rbp), %xmm2
movq 0x20(%rbp), %rax
movsd 0x8(%rax), %xmm1
mulsd -0x158(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x20(%rbp), %rax
movsd 0x10(%rax), %xmm1
movsd -0x160(%rbp), %xmm2
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movq 0x20(%rbp), %rax
movsd 0x18(%rax), %xmm0
movsd -0x168(%rbp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x20(%rbp), %rax
movsd %xmm0, 0x20(%rax)
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop