user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<VolumeAveragedNavierStokesFullDevStress_2D_Evaluate>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,(%rsp)
  mov    %rsi,0x30(%rsp)
  mov    %rdx,0x38(%rsp)
  mov    %r8,0x40(%rsp)
  test   %edi,%edi
  jle    L77
  mov    0x98(%rsp),%rbx
  mov    %r9,%r13
  mov    0x90(%rsp),%r14
  mov    %edi,%eax
  mov    %rax,0x48(%rsp)
  movq   $0x0,0x10(%rsp)
  mov    $0x0,%ebp
  mov    $0x0,%r15d
  jmp    L58
L20:
  movapd %xmm5,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm5
  jmp    L33
L5:
  movapd %xmm2,%xmm6
  mulsd  %xmm5,%xmm6
  movsd  D79(%rip),%xmm4
  addsd  %xmm4,%xmm6
  movapd %xmm0,%xmm3
  mulsd  %xmm0,%xmm3
  movsd  (%rsp),%xmm8
  mulsd  %xmm8,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm6,%xmm3
  mulsd  0x18(%rsp),%xmm3
  xorpd  D50(%rip),%xmm0
  movsd  0x8(%rsp),%xmm9
  mulsd  %xmm9,%xmm0
  mov    0x38(%rsp),%rdx
  mulsd  (%rdx),%xmm0
  addsd  %xmm3,%xmm0
  mov    0x128(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  movsd  (%r12),%xmm3
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm8,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm6,%xmm0
  mov    0x28(%rsp),%rax
  mulsd  (%rax),%xmm0
  xorpd  D50(%rip),%xmm3
  mulsd  %xmm9,%xmm3
  mulsd  0x8(%rdx),%xmm3
  addsd  %xmm3,%xmm0
  mov    0x130(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r15,8)
  movsd  (%r12),%xmm6
  mov    0x20(%rsp),%rcx
  movsd  (%rcx),%xmm0
  movapd %xmm5,%xmm3
  addsd  D23(%rip),%xmm3
  mulsd  %xmm0,%xmm0
  divsd  %xmm3,%xmm0
  addsd  %xmm5,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm4,%xmm0
  mulsd  %xmm6,%xmm6
  mulsd  %xmm8,%xmm6
  mulsd  %xmm1,%xmm6
  mulsd  %xmm6,%xmm0
  mov    0x138(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r15,8)
  movsd  (%r12),%xmm7
  movsd  (%rcx),%xmm0
  mulsd  (%rax),%xmm0
  divsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  pxor   %xmm6,%xmm6
  addsd  %xmm6,%xmm0
  mulsd  %xmm7,%xmm7
  mulsd  %xmm8,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm7,%xmm0
  mov    0x140(%rsp),%rdx
  movsd  %xmm0,(%rdx,%r15,8)
  movsd  (%r12),%xmm7
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm0
  divsd  %xmm3,%xmm0
  addsd  %xmm5,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm4,%xmm0
  mulsd  %xmm7,%xmm7
  mulsd  %xmm8,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm7,%xmm0
  mov    0x150(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r15,8)
  movsd  (%r12),%xmm4
  movsd  (%rcx),%xmm0
  mulsd  (%rax),%xmm0
  divsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm6,%xmm0
  mulsd  %xmm4,%xmm4
  mulsd  %xmm8,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm4,%xmm0
  mov    0x148(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  movsd  (%r12),%xmm0
  mov    0x40(%rsp),%rax
  mulsd  (%rax,%rbp,1),%xmm0
  mov    0x158(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r15,8)
  movsd  (%r12),%xmm0
  mov    0x160(%rsp),%rdx
  movsd  %xmm0,(%rdx,%rbp,1)
  mulsd  0x8(%rax,%rbp,1),%xmm0
  mov    0x168(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  movsd  (%r12),%xmm0
  mov    0x170(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%rbp,1)
  add    $0x1,%r15
  add    $0x8,%rbx
  add    $0x8,%r13
  add    $0x8,%r14
  add    $0x10,%rbp
  addq   $0x20,0x10(%rsp)
  cmp    0x48(%rsp),%r15
  je     L77
L58:
  mov    %rbx,%r12
  mov    %r13,0x20(%rsp)
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0xa0(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mov    0xa8(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  mov    %r14,0x28(%rsp)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  (%r14),%xmm0
  mov    0xb0(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mov    0xb8(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,8)
  movsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0xc0(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  movsd  (%rbx),%xmm0
  mulsd  (%r14),%xmm0
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movsd  (%rbx),%xmm0
  mov    0xc8(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0xd0(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movsd  0x0(%r13),%xmm1
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  mov    0xd8(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mulsd  (%r14),%xmm0
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0xe0(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  (%r14),%xmm0
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0xe8(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  (%r14),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0xf0(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  movsd  (%r14),%xmm1
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  (%r14),%xmm0
  mov    0xf8(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mulsd  0x0(%r13),%xmm0
  mov    0x100(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  (%r14),%xmm0
  movsd  %xmm0,0x8(%rax,%rbp,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  movsd  (%rsp),%xmm5
  mulsd  %xmm5,%xmm0
  mov    0x108(%rsp),%rsi
  mov    0x10(%rsp),%rax
  movsd  %xmm0,(%rsi,%rax,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm0,0x18(%rsi,%rax,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mov    0x118(%rsp),%rsi
  movsd  %xmm0,0x10(%rsi,%rax,1)
  movapd %xmm5,%xmm0
  mulsd  (%rbx),%xmm0
  mov    0x110(%rsp),%rdi
  movsd  %xmm0,(%rdi,%rax,1)
  movsd  (%rbx),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm5,%xmm0
  movsd  %xmm0,0x18(%rdi,%rax,1)
  mulsd  (%rbx),%xmm5
  mov    0x120(%rsp),%rdi
  movsd  %xmm5,0x8(%rdi,%rax,1)
  movsd  0x0(%r13),%xmm5
  movsd  %xmm5,0x18(%rsp)
  movsd  (%r14),%xmm0
  mulsd  %xmm5,%xmm5
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm5
  pxor   %xmm1,%xmm1
  ucomisd %xmm5,%xmm1
  ja     L20
  sqrtsd %xmm5,%xmm5
L33:
  movsd  (%r12),%xmm0
  movsd  D79(%rip),%xmm4
  subsd  %xmm0,%xmm4
  movapd %xmm4,%xmm1
  andpd  D92(%rip),%xmm1
  pxor   %xmm2,%xmm2
  movsd  D96(%rip),%xmm3
  comisd %xmm1,%xmm3
  ja     L2
  mov    0x30(%rsp),%rax
  movapd %xmm0,%xmm2
  mulsd  (%rax,%r15,8),%xmm2
  mulsd  D51(%rip),%xmm2
  divsd  %xmm4,%xmm2
  divsd  (%rsp),%xmm2
L2:
  movapd %xmm0,%xmm3
  andpd  D92(%rip),%xmm3
  pxor   %xmm1,%xmm1
  movsd  D96(%rip),%xmm6
  comisd %xmm3,%xmm6
  ja     L5
  mov    0x30(%rsp),%rax
  movsd  (%rax,%r15,8),%xmm3
  movapd %xmm4,%xmm1
  mulsd  D73(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm0,%xmm3
  mulsd  %xmm0,%xmm3
  mulsd  %xmm0,%xmm3
  divsd  %xmm3,%xmm1
  jmp    L5
L77:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D79
data_type: f64
name: retrieve_data
arguments: data_tag: D50
data_type: f32[4]
name: retrieve_data
arguments: data_tag: D23
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D92
data_type: qword[2]
name: retrieve_data
arguments: data_tag: D96
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D51
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D73
data_type: f64

tool: D79: 1

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

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

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

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

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

tool: D73: 180

assistant: ```c
void VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(const int nPoints, const double rho, const double mu, const double *meanGrainSize, const double *g, 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 Ftilde, Kinv, uc;
  for (k = 0; k < nPoints; k++) {
    mom_u_acc[k] = porosity[k] * rho * u[k];
    dmom_u_acc_u[k] = porosity[k] * rho;
    mom_v_acc[k] = porosity[k] * rho * v[k];
    dmom_v_acc_v[k] = porosity[k] * rho;
    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] * rho * u[k] * u[k];
    mom_u_adv[k * 2 + 1] = porosity[k] * rho * u[k] * v[k];
    dmom_u_adv_u[k * 2 + 0] = 2.0 * porosity[k] * rho * u[k];
    dmom_u_adv_u[k * 2 + 1] = porosity[k] * rho * v[k];
    dmom_u_adv_v[k * 2 + 1] = porosity[k] * rho * u[k];
    mom_v_adv[k * 2 + 0] = porosity[k] * rho * v[k] * u[k];
    mom_v_adv[k * 2 + 1] = porosity[k] * rho * v[k] * v[k];
    dmom_v_adv_u[k * 2 + 0] = porosity[k] * rho * v[k];
    dmom_v_adv_v[k * 2 + 0] = porosity[k] * rho * u[k];
    dmom_v_adv_v[k * 2 + 1] = 2.0 * porosity[k] * rho * v[k];
    mom_u_diff_ten[k * 4 + 0] = 2.0 * porosity[k] * mu;
    mom_u_diff_ten[k * 4 + 3] = porosity[k] * mu;
    mom_uv_diff_ten[k * 4 + 2] = porosity[k] * mu;
    mom_v_diff_ten[k * 4 + 0] = porosity[k] * mu;
    mom_v_diff_ten[k * 4 + 3] = 2.0 * porosity[k] * mu;
    mom_vu_diff_ten[k * 4 + 1] = porosity[k] * mu;
    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]) / mu;
    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] * rho * g[0] + porosity[k] * porosity[k] * mu * Kinv * (1.0 + Ftilde * uc) * u[k];
    mom_v_source[k] = -porosity[k] * rho * g[1] + porosity[k] * porosity[k] * mu * Kinv * (1.0 + Ftilde * uc) * v[k];
    dmom_u_source_u[k] = porosity[k] * porosity[k] * mu * Kinv * (1.0 + Ftilde * (uc + u[k] * u[k] / (uc + 1.0e-12)));
    dmom_u_source_v[k] = porosity[k] * porosity[k] * mu * Kinv * (0.0 + Ftilde * (u[k] * v[k] / (uc + 1.0e-12)));
    dmom_v_source_v[k] = porosity[k] * porosity[k] * mu * Kinv * (1.0 + Ftilde * (uc + v[k] * v[k] / (uc + 1.0e-12)));
    dmom_v_source_u[k] = porosity[k] * porosity[k] * mu * Kinv * (0.0 + Ftilde * (u[k] * v[k] / (uc + 1.0e-12)));
    mom_u_ham[k] = porosity[k] * grad_p[k * 2 + 0];
    dmom_u_ham_grad_p[k * 2 + 0] = porosity[k];
    mom_v_ham[k] = porosity[k] * grad_p[k * 2 + 1];
    dmom_v_ham_grad_p[k * 2 + 1] = porosity[k];
  }
}
```