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

```asm
<ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  movslq %edi,%rbx
  mov    0x48(%rsp),%rsi
  mov    0x50(%rsp),%rdi
  mov    0x58(%rsp),%r10
  mov    0x60(%rsp),%r11
  mov    0x68(%rsp),%r12
  mov    0x70(%rsp),%r13
  mov    %rcx,-0x18(%rsp)
  mov    0x78(%rsp),%r14
  mov    0x40(%rsp),%rcx
  mov    0x80(%rsp),%r15
  test   %ebx,%ebx
  jle    L38
  mov    %rbx,-0x10(%rsp)
  mov    0x38(%rsp),%rax
  xor    %ebx,%ebx
  pxor   %xmm5,%xmm5
  mov    %rbp,-0x8(%rsp)
  movsd  D15(%rip),%xmm6
  movsd  D10(%rip),%xmm4
  jmp    L28
  nopl   0x0(%rax,%rax,1)
L37:
  addsd  %xmm6,%xmm3
L1:
  movapd %xmm5,%xmm0
  add    $0x18,%r8
  add    $0x18,%r9
  add    $0x18,%rax
  mov    -0x8(%rsp),%rbp
  add    $0x18,%rdx
  movsd  0x0(%rbp,%rbx,8),%xmm2
  cmplesd %xmm2,%xmm0
  andpd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  divsd  %xmm3,%xmm0
  movsd  -0x18(%r8),%xmm3
  movapd %xmm0,%xmm2
  addsd  %xmm0,%xmm2
  addsd  %xmm2,%xmm3
  movsd  %xmm3,-0x18(%r8)
  movsd  -0x10(%r8),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,-0x10(%r8)
  movsd  -0x8(%r8),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,-0x8(%r8)
  movsd  (%rcx,%rbx,8),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,(%rcx,%rbx,8)
  movsd  (%rsi,%rbx,8),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,(%rsi,%rbx,8)
  movsd  -0x18(%r9),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,-0x18(%r9)
  movsd  -0x10(%r9),%xmm3
  addsd  %xmm2,%xmm3
  movsd  %xmm3,-0x10(%r9)
  movsd  -0x8(%r9),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,-0x8(%r9)
  movsd  (%rdi,%rbx,8),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,(%rdi,%rbx,8)
  movsd  (%r10,%rbx,8),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,(%r10,%rbx,8)
  movsd  -0x18(%rax),%xmm3
  addsd  -0x8(%rax),%xmm2
  addsd  %xmm0,%xmm3
  movsd  %xmm2,-0x8(%rax)
  movsd  %xmm3,-0x18(%rax)
  movsd  -0x10(%rax),%xmm3
  addsd  %xmm0,%xmm3
  movsd  %xmm3,-0x10(%rax)
  movsd  (%r11,%rbx,8),%xmm2
  addsd  %xmm0,%xmm2
  movsd  %xmm2,(%r11,%rbx,8)
  addsd  (%r12,%rbx,8),%xmm0
  movsd  %xmm0,(%r12,%rbx,8)
  movsd  -0x18(%rdx),%xmm0
  mulsd  %xmm4,%xmm0
  addsd  0x0(%r13,%rbx,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rbx,8)
  movsd  -0x10(%rdx),%xmm0
  mulsd  %xmm4,%xmm0
  addsd  (%r14,%rbx,8),%xmm0
  movsd  %xmm0,(%r14,%rbx,8)
  movsd  -0x8(%rdx),%xmm0
  mulsd  %xmm4,%xmm0
  addsd  (%r15,%rbx,8),%xmm0
  movsd  %xmm0,(%r15,%rbx,8)
  add    $0x1,%rbx
  cmp    -0x10(%rsp),%rbx
  je     L38
L28:
  mov    -0x18(%rsp),%rbp
  movsd  0x0(%rbp,%rbx,8),%xmm3
  comisd %xmm5,%xmm3
  jae    L37
  movapd %xmm6,%xmm3
  jmp    L1
  nopw   0x0(%rax,%rax,1)
L38:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D15
data_type: byte[8]
name: extract_symbolic_data
arguments: label: D10
data_type: byte[8]

tool: {"D15": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: {"D10": [0x55,0x55,0x55,0x55,0x55,0x55,0xe5,0x3f]}

assistant: ```c
void ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(const int nPoints, const double nu, const double c_mu, const double *k, const double *grad_k, const double *epsilon, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source) {
  int i;
  double nu_t, eval, kval;
  const double twoThirds = 2.0 / 3.0;
  const double div_zero = 1.0e-6;
  for (i = 0; i < nPoints; i++) {
    eval = epsilon[i] >= 0.0 ? epsilon[i] : 0.0;
    kval = k[i] >= 0.0 ? k[i] : 0.0;
    nu_t = c_mu * kval * kval / (eval + div_zero);
    mom_u_diff_ten[i * 3 + 0] += 2.0 * nu_t;
    mom_u_diff_ten[i * 3 + 1] += nu_t;
    mom_u_diff_ten[i * 3 + 2] += nu_t;
    mom_uv_diff_ten[i] += nu_t;
    mom_uw_diff_ten[i] += nu_t;
    mom_v_diff_ten[i * 3 + 0] += nu_t;
    mom_v_diff_ten[i * 3 + 1] += 2.0 * nu_t;
    mom_v_diff_ten[i * 3 + 2] += nu_t;
    mom_vu_diff_ten[i] += nu_t;
    mom_vw_diff_ten[i] += nu_t;
    mom_w_diff_ten[i * 3 + 0] += nu_t;
    mom_w_diff_ten[i * 3 + 1] += nu_t;
    mom_w_diff_ten[i * 3 + 2] += 2.0 * nu_t;
    mom_wu_diff_ten[i] += nu_t;
    mom_wv_diff_ten[i] += nu_t;
    mom_u_source[i] += twoThirds * grad_k[i * 3 + 0];
    mom_v_source[i] += twoThirds * grad_k[i * 3 + 1];
    mom_w_source[i] += twoThirds * grad_k[i * 3 + 2];
  }
}
```