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

```asm
<adaptiveSimpsonsAux>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  movsd  %xmm0,0x48(%rsp)
  movq   %xmm2,%r13
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm6,0x8(%rsp)
  mov    %edx,%r12d
  movapd %xmm0,%xmm4
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm5
  mulsd  D43(%rip),%xmm5
  movsd  %xmm1,0x18(%rsp)
  movapd %xmm1,%xmm7
  movapd %xmm4,%xmm0
  subsd  %xmm4,%xmm7
  movsd  %xmm7,0x30(%rsp)
  movsd  %xmm5,(%rsp)
  addsd  %xmm5,%xmm0
  mulsd  D43(%rip),%xmm0
  mov    %rsi,%rdi
  call   *%rbx
  movq   %xmm0,%r14
  movsd  0x18(%rsp),%xmm0
  addsd  (%rsp),%xmm0
  mulsd  D43(%rip),%xmm0
  mov    %rbp,%rdi
  call   *%rbx
  movq   %xmm0,%r15
  movsd  0x30(%rsp),%xmm2
  divsd  D2(%rip),%xmm2
  movsd  D35(%rip),%xmm0
  movq   %r14,%xmm1
  mulsd  %xmm0,%xmm1
  addsd  0x20(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm6
  addsd  %xmm6,%xmm1
  movapd %xmm1,%xmm7
  mulsd  %xmm2,%xmm7
  movsd  %xmm7,0x38(%rsp)
  movq   %r15,%xmm4
  mulsd  %xmm4,%xmm0
  addsd  %xmm6,%xmm0
  addsd  0x28(%rsp),%xmm0
  movapd %xmm0,%xmm4
  mulsd  %xmm2,%xmm4
  movsd  %xmm4,0x40(%rsp)
  addsd  %xmm4,%xmm7
  movsd  %xmm7,0x30(%rsp)
  test   %r12d,%r12d
  jle    L27
  movapd %xmm7,%xmm0
  subsd  0x10(%rsp),%xmm0
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movq   %r13,%xmm1
  mulsd  D39(%rip),%xmm1
  comisd %xmm0,%xmm1
  jb     L14
L27:
  movsd  0x30(%rsp),%xmm3
  movapd %xmm3,%xmm0
  subsd  0x10(%rsp),%xmm0
  divsd  D39(%rip),%xmm0
  addsd  %xmm3,%xmm0
L2:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L14:
  sub    $0x1,%r12d
  movq   %r13,%xmm3
  mulsd  D43(%rip),%xmm3
  movq   %xmm3,%r13
  mov    %r12d,%edx
  movq   %r14,%xmm6
  movsd  0x8(%rsp),%xmm5
  movsd  0x20(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm3
  movq   %r13,%xmm2
  movsd  (%rsp),%xmm1
  movsd  0x48(%rsp),%xmm0
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <adaptiveSimpsonsAux>
  movq   %xmm0,%r14
  mov    %r12d,%edx
  movq   %r15,%xmm6
  movsd  0x28(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm4
  movsd  0x40(%rsp),%xmm3
  movq   %r13,%xmm2
  movsd  0x18(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <adaptiveSimpsonsAux>
  movq   %r14,%xmm3
  addsd  %xmm3,%xmm0
  jmp    L2
```

tool_calls: name: disassemble_data
arguments: data_label: D43
datatype: byte[8]
name: disassemble_data
arguments: data_label: D2
datatype: f64
name: disassemble_data
arguments: data_label: D35
datatype: f64
name: disassemble_data
arguments: data_label: D39
datatype: byte[8]

tool: {"D43": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: D2: 12

tool: D35: 4

tool: {"D39": [0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x40]}

assistant: ```c
double adaptiveSimpsonsAux(double (*f)(double, void *), void *extra_data, double a, double b, double epsilon, double S, double fa, double fb, double fc, int bottom) {
  double c = (a + b) / 2, h = b - a;
  double d = (a + c) / 2, e = (c + b) / 2;
  double fd = f(d, extra_data), fe = f(e, extra_data);
  double Sleft = (h / 12) * (fa + 4 * fd + fc);
  double Sright = (h / 12) * (fc + 4 * fe + fb);
  double S2 = Sleft + Sright;
  if (bottom <= 0 || fabs(S2 - S) <= 15 * epsilon)
    return S2 + (S2 - S) / 15;
  return adaptiveSimpsonsAux(f, extra_data, a, c, epsilon / 2, Sleft, fa, fc, fd, bottom - 1) + adaptiveSimpsonsAux(f, extra_data, c, b, epsilon / 2, Sright, fc, fb, fe, bottom - 1);
}
```