user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %edi,%eax
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm2,0x68(%rsp)
  movsd  %xmm3,0x70(%rsp)
  movsd  %xmm4,0x78(%rsp)
  movsd  %xmm5,0x80(%rsp)
  movsd  %xmm6,0x88(%rsp)
  mov    %rdx,0x90(%rsp)
  mov    %rcx,0x98(%rsp)
  mov    %r8,0xa0(%rsp)
  mov    %r9,0x28(%rsp)
  movsd  D121(%rip),%xmm6
  movsd  %xmm6,0x60(%rsp)
  test   %esi,%esi
  je     L29
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x60(%rsp)
L29:
  test   %eax,%eax
  jle    L76
  mov    0x118(%rsp),%rbx
  mov    0x108(%rsp),%r13
  mov    0x110(%rsp),%r12
  mov    %eax,%eax
  mov    %rax,0xa8(%rsp)
  movq   $0x0,0x30(%rsp)
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  jmp    L43
L32:
  call   <sqrt@plt>
  movsd  %xmm0,0x58(%rsp)
  jmp    L49
L36:
  call   <sqrt@plt>
  jmp    L44
L75:
  movapd %xmm2,%xmm6
  mulsd  %xmm0,%xmm6
  movsd  D121(%rip),%xmm4
  addsd  %xmm4,%xmm6
  movapd %xmm1,%xmm7
  xorpd  D77(%rip),%xmm7
  mov    0x98(%rsp),%rax
  mulsd  (%rax),%xmm7
  movsd  0x48(%rsp),%xmm10
  movapd %xmm10,%xmm5
  mulsd  %xmm1,%xmm5
  movsd  0x68(%rsp),%xmm11
  mulsd  %xmm11,%xmm5
  mov    0xf0(%rsp),%rcx
  mulsd  (%rcx,%r14,8),%xmm5
  mulsd  0x38(%rsp),%xmm5
  movsd  0x58(%rsp),%xmm12
  divsd  %xmm12,%xmm5
  subsd  %xmm5,%xmm7
  mulsd  %xmm1,%xmm1
  movsd  0x10(%rsp),%xmm8
  mulsd  %xmm8,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm6,%xmm1
  mulsd  0x40(%rsp),%xmm1
  addsd  %xmm1,%xmm7
  mov    0x1a8(%rsp),%rsi
  movsd  %xmm7,(%rsi,%r14,8)
  movsd  0x0(%rbp),%xmm1
  movapd %xmm1,%xmm7
  xorpd  D77(%rip),%xmm7
  movsd  0x50(%rsp),%xmm9
  mulsd  %xmm9,%xmm7
  mulsd  0x8(%rax),%xmm7
  movapd %xmm10,%xmm5
  mulsd  %xmm1,%xmm5
  mulsd  %xmm11,%xmm5
  mulsd  (%rcx,%r14,8),%xmm5
  mov    0x28(%rsp),%rax
  mulsd  0x8(%rax,%r15,1),%xmm5
  divsd  %xmm12,%xmm5
  subsd  %xmm5,%xmm7
  mulsd  %xmm1,%xmm1
  mulsd  %xmm8,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm6,%xmm1
  mov    0x8(%rsp),%rax
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm7
  mov    0x1b0(%rsp),%rdi
  movsd  %xmm7,(%rdi,%r14,8)
  movsd  0x0(%rbp),%xmm6
  mov    (%rsp),%rdx
  movsd  (%rdx),%xmm1
  movapd %xmm0,%xmm5
  addsd  D115(%rip),%xmm5
  mulsd  %xmm1,%xmm1
  divsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm6,%xmm6
  mulsd  %xmm8,%xmm6
  mulsd  %xmm3,%xmm6
  mulsd  %xmm6,%xmm1
  mov    0x1b8(%rsp),%rcx
  movsd  %xmm1,(%rcx,%r14,8)
  movsd  0x0(%rbp),%xmm7
  movsd  (%rdx),%xmm1
  mulsd  (%rax),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  pxor   %xmm6,%xmm6
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm8,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x1c0(%rsp),%rsi
  movsd  %xmm1,(%rsi,%r14,8)
  movsd  0x0(%rbp),%xmm7
  movsd  (%rax),%xmm1
  mulsd  %xmm1,%xmm1
  divsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm8,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x1d0(%rsp),%rdi
  movsd  %xmm1,(%rdi,%r14,8)
  movsd  0x0(%rbp),%xmm1
  movsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  divsd  %xmm5,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm6,%xmm0
  mulsd  %xmm1,%xmm1
  mulsd  %xmm8,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm1,%xmm0
  mov    0x1c8(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  0x0(%rbp),%xmm0
  mov    0x100(%rsp),%rax
  mulsd  (%rax,%r15,1),%xmm0
  divsd  %xmm9,%xmm0
  mov    0x1d8(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  0x0(%rbp),%xmm0
  divsd  %xmm9,%xmm0
  mov    0x1e0(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mov    0x100(%rsp),%rax
  mulsd  0x8(%rax,%r15,1),%xmm0
  divsd  %xmm9,%xmm0
  mov    0x1e8(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  0x0(%rbp),%xmm0
  divsd  %xmm9,%xmm0
  mov    0x1f0(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%r15,1)
  add    $0x1,%r14
  add    $0x8,%rbx
  add    $0x8,%r13
  add    $0x8,%r12
  add    $0x10,%r15
  addq   $0x20,0x30(%rsp)
  cmp    0xa8(%rsp),%r14
  je     L76
L43:
  mov    0xa0(%rsp),%rbp
  movsd  0x0(%rbp,%r14,8),%xmm1
  movsd  0x18(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedHeaviside@plt>
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,(%rsp)
  movsd  0x0(%rbp,%r14,8),%xmm1
  movsd  0x18(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedDirac@plt>
  movsd  0x0(%rbp,%r14,8),%xmm1
  movsd  0x20(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedHeaviside@plt>
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  movsd  %xmm6,0x8(%rsp)
  movsd  0x0(%rbp,%r14,8),%xmm1
  movsd  0x20(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedDirac@plt>
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  %xmm3,0x48(%rsp)
  movsd  D121(%rip),%xmm1
  movsd  (%rsp),%xmm4
  subsd  %xmm4,%xmm1
  mulsd  0x70(%rsp),%xmm1
  mulsd  0x80(%rsp),%xmm4
  addsd  %xmm4,%xmm1
  movsd  %xmm1,0x50(%rsp)
  movsd  D121(%rip),%xmm1
  movsd  0x8(%rsp),%xmm6
  subsd  %xmm6,%xmm1
  mulsd  0x78(%rsp),%xmm1
  mulsd  0x88(%rsp),%xmm6
  movapd %xmm1,%xmm2
  addsd  %xmm6,%xmm2
  movsd  %xmm2,0x10(%rsp)
  mov    %rbx,%rbp
  mov    %r13,(%rsp)
  movsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0x120(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  (%rbx),%xmm0
  mov    0x128(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  mov    %r12,0x8(%rsp)
  mulsd  (%r12),%xmm0
  mov    0x130(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  (%rbx),%xmm0
  mov    0x138(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  mulsd  0x0(%r13),%xmm0
  mov    0x140(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mov    0x148(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  mov    0x150(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  0x0(%r13),%xmm1
  movapd %xmm1,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  %xmm1,%xmm0
  mov    0x158(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0x160(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0x168(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  (%r12),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0x170(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%r12),%xmm1
  movapd %xmm1,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  (%r12),%xmm0
  mov    0x178(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0x180(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm2,%xmm0
  mov    0x188(%rsp),%rcx
  mov    0x30(%rsp),%rax
  movsd  %xmm0,(%rcx,%rax,1)
  movapd %xmm2,%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm0,0x18(%rcx,%rax,1)
  movapd %xmm2,%xmm0
  mulsd  (%rbx),%xmm0
  mov    0x198(%rsp),%rdi
  movsd  %xmm0,0x10(%rdi,%rax,1)
  movapd %xmm2,%xmm0
  mulsd  (%rbx),%xmm0
  mov    0x190(%rsp),%rcx
  movsd  %xmm0,(%rcx,%rax,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x18(%rcx,%rax,1)
  mulsd  (%rbx),%xmm2
  mov    0x1a0(%rsp),%rdi
  movsd  %xmm2,0x8(%rdi,%rax,1)
  mov    0x28(%rsp),%rax
  movsd  (%rax,%r15,1),%xmm3
  movsd  %xmm3,0x38(%rsp)
  movsd  0x8(%rax,%r15,1),%xmm1
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L32
  sqrtsd %xmm0,%xmm0
  movsd  %xmm0,0x58(%rsp)
L49:
  mov    (%rsp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,0x40(%rsp)
  mov    0x8(%rsp),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L36
  sqrtsd %xmm0,%xmm0
L44:
  movsd  0x0(%rbp),%xmm1
  movsd  D121(%rip),%xmm5
  subsd  %xmm1,%xmm5
  movapd %xmm5,%xmm3
  andpd  D0(%rip),%xmm3
  pxor   %xmm2,%xmm2
  movsd  D58(%rip),%xmm4
  comisd %xmm3,%xmm4
  ja     L58
  mov    0x90(%rsp),%rax
  movapd %xmm1,%xmm2
  mulsd  (%rax,%r14,8),%xmm2
  mulsd  D20(%rip),%xmm2
  divsd  %xmm5,%xmm2
  divsd  0x10(%rsp),%xmm2
L58:
  mulsd  0x60(%rsp),%xmm2
  movapd %xmm1,%xmm4
  andpd  D0(%rip),%xmm4
  pxor   %xmm3,%xmm3
  movsd  D58(%rip),%xmm6
  comisd %xmm4,%xmm6
  ja     L75
  mov    0x90(%rsp),%rax
  movsd  (%rax,%r14,8),%xmm4
  movapd %xmm5,%xmm3
  mulsd  D120(%rip),%xmm3
  mulsd  %xmm5,%xmm3
  mulsd  %xmm4,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  divsd  %xmm4,%xmm3
  jmp    L75
L76:
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D121
datatype: f64
name: extract_symbolic_data
arguments: data_label: D77
datatype: f32[4]
name: extract_symbolic_data
arguments: data_label: D115
datatype: byte[8]
name: extract_symbolic_data
arguments: data_label: D0
datatype: qword[2]
name: extract_symbolic_data
arguments: data_label: D58
datatype: byte[8]
name: extract_symbolic_data
arguments: data_label: D20
datatype: byte[8]
name: extract_symbolic_data
arguments: data_label: D120
datatype: f64

tool: D121: 1

tool: {"D77": [0.0,-0.0,0.0,0.0]}

tool: {"D115": [0x11,0xea,0x2d,0x81,0x99,0x97,0x71,0x3d]}

tool: {"D0": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D58": [0x48,0xaf,0xbc,0x9a,0xf2,0xd7,0x7a,0x3e]}

tool: {"D20": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0x84,0x3f]}

tool: D120: 180

assistant: ```c
void VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(const int nPoints, const int killNonlinearDrag, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *meanGrainSize, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_uv_diff_ten, double *mom_vu_diff_ten, double *mom_u_source, double *mom_v_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_v_source_u, double *dmom_v_source_v, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p) {
  int k;
  double rho, nu, mu, H_rho, d_rho, H_mu, d_mu, norm_n;
  double Ftilde, Kinv, uc;
  double nonlinearDragFactor = 1.0;
  if (killNonlinearDrag)
    nonlinearDragFactor = 0.0;
  for (k = 0; k < nPoints; k++) {
    H_rho = smoothedHeaviside(eps_rho, phi[k]);
    d_rho = smoothedDirac(eps_rho, phi[k]);
    H_mu = smoothedHeaviside(eps_mu, phi[k]);
    d_mu = smoothedDirac(eps_mu, phi[k]);
    rho = rho_0 * (1.0 - H_rho) + rho_1 * H_rho;
    nu = nu_0 * (1.0 - H_mu) + nu_1 * H_mu;
    mu = rho_0 * nu_0 * (1.0 - H_mu) + rho_1 * nu_1 * H_mu;
    mom_u_acc[k] = porosity[k] * u[k];
    dmom_u_acc_u[k] = porosity[k];
    mom_v_acc[k] = porosity[k] * v[k];
    dmom_v_acc_v[k] = porosity[k];
    mass_adv[k * 2 + 0] = porosity[k] * u[k];
    mass_adv[k * 2 + 1] = porosity[k] * v[k];
    dmass_adv_u[k * 2 + 0] = porosity[k];
    dmass_adv_v[k * 2 + 1] = porosity[k];
    mom_u_adv[k * 2 + 0] = porosity[k] * u[k] * u[k];
    mom_u_adv[k * 2 + 1] = porosity[k] * u[k] * v[k];
    dmom_u_adv_u[k * 2 + 0] = 2.0 * porosity[k] * u[k];
    dmom_u_adv_u[k * 2 + 1] = porosity[k] * v[k];
    dmom_u_adv_v[k * 2 + 1] = porosity[k] * u[k];
    mom_v_adv[k * 2 + 0] = porosity[k] * v[k] * u[k];
    mom_v_adv[k * 2 + 1] = porosity[k] * v[k] * v[k];
    dmom_v_adv_u[k * 2 + 0] = porosity[k] * v[k];
    dmom_v_adv_v[k * 2 + 0] = porosity[k] * u[k];
    dmom_v_adv_v[k * 2 + 1] = 2.0 * porosity[k] * v[k];
    mom_u_diff_ten[k * 4 + 0] = 2.0 * porosity[k] * nu;
    mom_u_diff_ten[k * 4 + 3] = porosity[k] * nu;
    mom_uv_diff_ten[k * 4 + 2] = porosity[k] * nu;
    mom_v_diff_ten[k * 4 + 0] = porosity[k] * nu;
    mom_v_diff_ten[k * 4 + 3] = 2.0 * porosity[k] * nu;
    mom_vu_diff_ten[k * 4 + 1] = porosity[k] * nu;
    norm_n = sqrt(n[k * 2 + 0] * n[k * 2 + 0] + n[k * 2 + 1] * n[k * 2 + 1]);
    uc = sqrt(u[k] * u[k] + v[k] * v[k]);
    if (fabs(1.0 - porosity[k]) < 1.0e-7)
      Ftilde = 0.0;
    else
      Ftilde = porosity[k] * meanGrainSize[k] * 1.0e-2 / (1.0 - porosity[k]) / nu;
    Ftilde *= nonlinearDragFactor;
    if (fabs(porosity[k]) < 1.0e-7)
      Kinv = 0.0;
    else
      Kinv = 180.0 * (1.0 - porosity[k]) * (1.0 - porosity[k]) / (meanGrainSize[k] * meanGrainSize[k] * porosity[k] * porosity[k] * porosity[k]);
    mom_u_source[k] = -porosity[k] * g[0] - porosity[k] * d_mu * sigma * kappa[k] * n[k * 2 + 0] / (norm_n) + porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * uc) * u[k];
    mom_v_source[k] = -porosity[k] * rho * g[1] - porosity[k] * d_mu * sigma * kappa[k] * n[k * 2 + 1] / (norm_n) + porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * uc) * v[k];
    dmom_u_source_u[k] = porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * (uc + u[k] * u[k] / (uc + 1.0e-12)));
    dmom_u_source_v[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (u[k] * v[k] / (uc + 1.0e-12)));
    dmom_v_source_v[k] = porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * (uc + v[k] * v[k] / (uc + 1.0e-12)));
    dmom_v_source_u[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (u[k] * v[k] / (uc + 1.0e-12)));
    mom_u_ham[k] = porosity[k] * grad_p[k * 2 + 0] / rho;
    dmom_u_ham_grad_p[k * 2 + 0] = porosity[k] / rho;
    mom_v_ham[k] = porosity[k] * grad_p[k * 2 + 1] / rho;
    dmom_v_ham_grad_p[k * 2 + 1] = porosity[k] / rho;
  }
}
```