user: Translate the below assembly code into C programming language:

```asm
<shallowWater_1D_Evaluate>:
  endbr64
  push   %r15
  mov    %edi,%r10d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %r9,0x50(%rsp)
  mov    0x108(%rsp),%rbx
  mov    0x110(%rsp),%rdi
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm2,0x38(%rsp)
  movsd  %xmm3,0x40(%rsp)
  movsd  %xmm4,0x48(%rsp)
  test   %r10d,%r10d
  jle    L36
  mulsd  %xmm1,%xmm2
  lea    0x8(%rsi),%r15
  xor    %r13d,%r13d
  movslq %r10d,%rax
  mov    %r13,%rbp
  mov    %rax,0x70(%rsp)
  mov    %r15,%r13
  movapd %xmm1,%xmm5
  movsd  D59(%rip),%xmm7
  mov    %r8,%r12
  mov    %rdx,%r15
  mov    %rcx,%r14
  xorpd  D14(%rip),%xmm3
  movsd  D48(%rip),%xmm4
  mulsd  %xmm1,%xmm7
  movsd  %xmm3,0x60(%rsp)
  subsd  D40(%rip),%xmm3
  movsd  %xmm2,0x78(%rsp)
  movsd  %xmm3,0x68(%rsp)
  movsd  %xmm7,0x58(%rsp)
  jmp    L14
  nopl   (%rax)
L27:
  movapd %xmm1,%xmm2
  movsd  (%r12),%xmm0
  mulsd  %xmm1,%xmm2
  movapd %xmm0,%xmm6
  xorpd  D14(%rip),%xmm0
  divsd  %xmm1,%xmm6
  divsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  divsd  %xmm1,%xmm2
L32:
  addsd  0x0(%r13),%xmm1
  add    $0x8,%r14
  add    $0x18,%r13
  add    $0x8,%r12
  mov    0x50(%rsp),%rax
  movsd  0x58(%rsp),%xmm3
  movsd  %xmm1,(%rax,%rbp,8)
  mov    0xc0(%rsp),%rax
  movsd  -0x8(%r14),%xmm1
  movsd  %xmm1,(%rax,%rbp,8)
  mov    0xc8(%rsp),%rax
  movsd  %xmm4,(%rax,%rbp,8)
  mov    0xd0(%rsp),%rax
  movsd  -0x8(%r12),%xmm1
  movsd  %xmm1,(%rax,%rbp,8)
  mov    0xd8(%rsp),%rax
  movsd  %xmm4,(%rax,%rbp,8)
  mov    0xe0(%rsp),%rax
  movsd  -0x8(%r12),%xmm1
  movsd  %xmm1,(%rax,%rbp,8)
  mov    0xe8(%rsp),%rax
  movsd  %xmm4,(%rax,%rbp,8)
  movsd  -0x8(%r14),%xmm7
  movsd  -0x8(%r12),%xmm1
  mov    0xf0(%rsp),%rax
  mulsd  %xmm7,%xmm3
  mulsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm3
  addsd  %xmm3,%xmm1
  movsd  %xmm1,(%rax,%rbp,8)
  movsd  -0x8(%r14),%xmm1
  mulsd  -0x8(%r12),%xmm0
  mov    0xf8(%rsp),%rax
  mulsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%rbp,8)
  mulsd  -0x8(%r12),%xmm2
  mov    0x100(%rsp),%rax
  movapd %xmm2,%xmm0
  addsd  %xmm6,%xmm0
  movsd  0x48(%rsp),%xmm6
  movsd  %xmm0,(%rax,%rbp,8)
  mov    0x120(%rsp),%rax
  movsd  %xmm6,(%rax,%rbp,8)
  movsd  -0x8(%r14),%xmm0
  mov    D83(%rip),%rax
  mov    %rdi,0x110(%rsp)
  mulsd  %xmm5,%xmm0
  movsd  %xmm5,0x10(%rsp)
  mulsd  (%r15,%rbp,8),%xmm0
  movsd  %xmm0,(%rbx,%rbp,8)
  movapd %xmm5,%xmm0
  mulsd  (%r15,%rbp,8),%xmm0
  movsd  %xmm0,(%rdi,%rbp,8)
  movsd  -0x8(%r14),%xmm1
  movq   %rax,%xmm0
  call   <fmax@plt>
  movsd  0x68(%rsp),%xmm1
  movsd  %xmm0,0x30(%rsp)
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm5
  movsd  0x38(%rsp),%xmm4
  movapd %xmm0,%xmm3
  movsd  0x60(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm6
  movsd  -0x8(%r12),%xmm0
  subsd  D65(%rip),%xmm1
  movsd  %xmm3,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  movapd %xmm0,%xmm2
  andpd  D74(%rip),%xmm2
  mulsd  %xmm5,%xmm0
  movsd  %xmm2,0x18(%rsp)
  mulsd  %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  (%rbx,%rbp,8),%xmm0
  movsd  %xmm0,(%rbx,%rbp,8)
  movsd  D40(%rip),%xmm0
  addsd  0x40(%rsp),%xmm0
  xorpd  D14(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  -0x8(%r12),%xmm0
  mulsd  %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm6,%xmm0
  call   <pow@plt>
  mov    0x110(%rsp),%rdi
  mulsd  0x10(%rsp),%xmm0
  movsd  0x78(%rsp),%xmm7
  movsd  0x28(%rsp),%xmm3
  addsd  (%rdi,%rbp,8),%xmm0
  movsd  0x18(%rsp),%xmm2
  movapd %xmm7,%xmm1
  mov    0x118(%rsp),%rax
  movsd  0x20(%rsp),%xmm5
  movsd  %xmm0,(%rdi,%rbp,8)
  movsd  -0x8(%r12),%xmm0
  mulsd  %xmm0,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  0x8(%rsp),%xmm1
  addsd  %xmm2,%xmm1
  mulsd  %xmm7,%xmm2
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm2
  divsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax,%rbp,8)
  mov    D48(%rip),%rax
  add    $0x1,%rbp
  cmp    0x70(%rsp),%rbp
  movq   %rax,%xmm4
  je     L36
L14:
  movsd  (%r14),%xmm1
  movsd  0x8(%rsp),%xmm7
  comisd %xmm1,%xmm7
  jbe    L27
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm0
  movapd %xmm2,%xmm6
  jmp    L32
  nopl   0x0(%rax)
L36:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D59
type_infered: f64
name: unpack_data
arguments: label: D14
type_infered: f32[4]
name: unpack_data
arguments: label: D48
type_infered: f64
name: unpack_data
arguments: label: D40
type_infered: f64
name: unpack_data
arguments: label: D83
type_infered: byte[8]
name: unpack_data
arguments: label: D65
type_infered: f64
name: unpack_data
arguments: label: D74
type_infered: qword[2]

tool: D59: 0.5

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

tool: D48: 1

tool: D40: 2

tool: {"D83": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: D65: 3

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

assistant: ```c
void shallowWater_1D_Evaluate(const int nPoints, const double h_eps, const double g, const double bedFrictionCoefficient, const double bedFrictionPower, const double eddyViscosity, const double *x, const double *db_dx, const double *h, const double *hu, double *H, double *mass_acc, double *dmass_acc_dh, double *mom_acc, double *dmom_acc_dhu, double *mass_adv, double *dmass_adv_dhu, double *mom_adv, double *dmom_adv_dh, double *dmom_adv_dhu, double *mom_source, double *dmom_source_dh, double *dmom_source_dhu, double *mom_diff) {
  int k;
  double u, du_dh, du_dhu, heval, hpow, hunorm;
  for (k = 0; k < nPoints; k++) {
    if (h[k] < h_eps) {
      u = 0.0;
      du_dh = 0.0;
      du_dhu = 0.0;
    } else {
      u = hu[k] / h[k];
      du_dh = -hu[k] / (h[k] * h[k]);
      du_dhu = 1.0 / h[k];
    }
    H[k] = h[k] + x[k * 3 + 1];
    mass_acc[k] = h[k];
    dmass_acc_dh[k] = 1.0;
    mom_acc[k] = hu[k];
    dmom_acc_dhu[k] = 1.0;
    mass_adv[k] = hu[k];
    dmass_adv_dhu[k] = 1.0;
    mom_adv[k] = hu[k] * u + 0.5 * g * h[k] * h[k];
    dmom_adv_dh[k] = hu[k] * du_dh + g * h[k];
    dmom_adv_dhu[k] = u + hu[k] * du_dhu;
    mom_diff[k] = eddyViscosity;
    mom_source[k] = g * h[k] * db_dx[k];
    dmom_source_dh[k] = g * db_dx[k];
    heval = fmax(1.0e-3, h[k]);
    hpow = pow(heval, -bedFrictionPower - 2.0);
    hunorm = fabs(hu[k]);
    mom_source[k] += g * hu[k] * bedFrictionCoefficient * hunorm * hpow;
    dmom_source_dh[k] += -(bedFrictionPower + 2.0) * g * hu[k] * bedFrictionCoefficient * hunorm * pow(heval, -bedFrictionPower - 3.0);
    dmom_source_dhu[k] = g * bedFrictionCoefficient * hunorm * hpow + g * bedFrictionCoefficient * hu[k] * hu[k] * hpow / (hunorm + h_eps);
  }
}
```