user: What would the C source look like for the assembly code provided here:

```asm
<interp3_table0_complex_per>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %rdi,-0xc8(%rbp)
  mov    %rsi,-0xd0(%rbp)
  mov    %edx,-0xd4(%rbp)
  mov    %ecx,-0xd8(%rbp)
  mov    %r8d,-0xdc(%rbp)
  mov    %r9,-0xe8(%rbp)
  mov    0x38(%rbp),%eax
  imul   0x50(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D79(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xa4(%rbp)
  mov    -0xa4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0xe8(%rbp)
  mov    -0xa4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,0x10(%rbp)
  mov    0x40(%rbp),%eax
  imul   0x58(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D79(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xa0(%rbp)
  mov    -0xa0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,0x18(%rbp)
  mov    -0xa0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,0x20(%rbp)
  mov    0x48(%rbp),%eax
  imul   0x60(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D79(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x9c(%rbp)
  mov    -0x9c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,0x28(%rbp)
  mov    -0x9c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,0x30(%rbp)
  movl   $0x0,-0xc0(%rbp)
  jmp    L39
L4:
  mov    0x70(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x68(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x68(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    0x68(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,0x68(%rbp)
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x38(%rbp),%xmm0
  movsd  D79(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0x40(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  D98(%rip),%xmm1
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x98(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x40(%rbp),%xmm0
  movsd  D79(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0x48(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  D98(%rip),%xmm1
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x94(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x48(%rbp),%xmm0
  movsd  D79(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0x50(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  D98(%rip),%xmm1
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xb0(%rbp)
  movl   $0x0,-0xb4(%rbp)
  jmp    L49
L15:
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0xb0(%rbp),%xmm2
  movsd  -0x50(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x60(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm1
  movsd  D27(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x90(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm6,%xmm6
  cvtsi2sdl -0xb0(%rbp),%xmm6
  movsd  %xmm6,-0xf0(%rbp)
  pxor   %xmm7,%xmm7
  cvtsi2sdl -0xdc(%rbp),%xmm7
  movsd  %xmm7,-0xf8(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xb0(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xdc(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mulsd  -0xf8(%rbp),%xmm0
  movsd  -0xf0(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%eax
  mov    %eax,-0x8c(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  mov    -0x94(%rbp),%eax
  mov    %eax,-0xac(%rbp)
  movl   $0x0,-0xb8(%rbp)
  jmp    L54
L66:
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0xac(%rbp),%xmm2
  movsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x58(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D27(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x88(%rbp)
  mov    -0x88(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x88(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm7,%xmm7
  cvtsi2sdl -0xac(%rbp),%xmm7
  movsd  %xmm7,-0xf0(%rbp)
  pxor   %xmm3,%xmm3
  cvtsi2sdl -0xd8(%rbp),%xmm3
  movsd  %xmm3,-0xf8(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xac(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xd8(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mulsd  -0xf8(%rbp),%xmm0
  movsd  -0xf0(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%eax
  mov    %eax,-0x84(%rbp)
  mov    -0x8c(%rbp),%eax
  imul   -0xd8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x84(%rbp),%eax
  add    %eax,%edx
  mov    -0xd4(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x80(%rbp)
  pxor   %xmm4,%xmm4
  movsd  %xmm4,-0xf0(%rbp)
  pxor   %xmm4,%xmm4
  movsd  %xmm4,-0xf8(%rbp)
  mov    -0x98(%rbp),%eax
  mov    %eax,-0xa8(%rbp)
  movl   $0x0,-0xbc(%rbp)
  jmp    L38
L28:
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0xa8(%rbp),%xmm2
  movsd  -0x40(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x50(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm1
  movsd  D27(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x7c(%rbp)
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm5
  movsd  %xmm5,-0x110(%rbp)
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm6
  movsd  %xmm6,-0x118(%rbp)
  pxor   %xmm7,%xmm7
  cvtsi2sdl -0xa8(%rbp),%xmm7
  movsd  %xmm7,-0x100(%rbp)
  pxor   %xmm3,%xmm3
  cvtsi2sdl -0xd4(%rbp),%xmm3
  movsd  %xmm3,-0x108(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xa8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xd4(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mulsd  -0x108(%rbp),%xmm0
  movsd  -0x100(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%eax
  mov    %eax,-0x78(%rbp)
  mov    -0x80(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x110(%rbp),%xmm5
  mulsd  %xmm5,%xmm0
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x118(%rbp),%xmm6
  mulsd  %xmm6,%xmm1
  subsd  %xmm1,%xmm0
  addsd  -0xf0(%rbp),%xmm0
  movsd  %xmm0,-0xf0(%rbp)
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm5
  movapd %xmm5,%xmm1
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  addsd  -0xf8(%rbp),%xmm0
  movsd  %xmm0,-0xf8(%rbp)
  addl   $0x1,-0xbc(%rbp)
  addl   $0x1,-0xa8(%rbp)
L38:
  mov    -0xbc(%rbp),%eax
  cmp    0x38(%rbp),%eax
  jl     L28
  movsd  -0xf0(%rbp),%xmm3
  movapd %xmm3,%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  -0xf8(%rbp),%xmm4
  movapd %xmm4,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x60(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  mulsd  -0x18(%rbp),%xmm4
  movapd %xmm4,%xmm1
  mulsd  -0x10(%rbp),%xmm3
  movapd %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x58(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  addl   $0x1,-0xb8(%rbp)
  addl   $0x1,-0xac(%rbp)
L54:
  mov    -0xb8(%rbp),%eax
  cmp    0x40(%rbp),%eax
  jl     L66
  movsd  -0x30(%rbp),%xmm0
  mulsd  -0x60(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  mulsd  -0x58(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x70(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x58(%rbp),%xmm1
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x60(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x68(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  addl   $0x1,-0xb4(%rbp)
  addl   $0x1,-0xb0(%rbp)
L49:
  mov    -0xb4(%rbp),%eax
  cmp    0x48(%rbp),%eax
  jl     L15
  mov    0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,0x78(%rbp)
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    0x80(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,0x80(%rbp)
  movsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0xc0(%rbp)
L39:
  mov    -0xc0(%rbp),%eax
  cmp    0x70(%rbp),%eax
  jl     L4
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D79
type: f64
name: retrieve_data
arguments: label: D98
type: f32[2]
name: retrieve_data
arguments: label: D27
type: f64

tool: D79: 2

tool: {"D98": [0.0,1.875]}

tool: D27: 0.5

assistant: ```c
void interp3_table0_complex_per(const double *r_ck, const double *i_ck, const int K1, const int K2, const int K3, const double *r_h1, const double *i_h1, const double *r_h2, const double *i_h2, const double *r_h3, const double *i_h3, const int J1, const int J2, const int J3, const int L1, const int L2, const int L3, const double *p_tm, const int M, double *r_fm, double *i_fm) {
  int mm;
  {
    const int ncenter1 = floor(J1 * L1 / 2.);
    r_h1 += ncenter1;
    i_h1 += ncenter1;
  }
  {
    const int ncenter2 = floor(J2 * L2 / 2.);
    r_h2 += ncenter2;
    i_h2 += ncenter2;
  }
  {
    const int ncenter3 = floor(J3 * L3 / 2.);
    r_h3 += ncenter3;
    i_h3 += ncenter3;
  }
  for (mm = 0; mm < M; mm++) {
    int jj1, jj2, jj3;
    const double t3 = p_tm[2 * M];
    const double t2 = p_tm[M];
    const double t1 = *p_tm++;
    double sum3r = 0;
    double sum3i = 0;
    const int koff1 = 1 + floor(t1 - J1 / 2.);
    const int koff2 = 1 + floor(t2 - J2 / 2.);
    int k3 = 1 + floor(t3 - J3 / 2.);
    for (jj3 = 0; jj3 < J3; jj3++, k3++) {
      const double p3 = (t3 - k3) * L3;
      const int n3 = floor(p3 + 0.5);
      const double coef3r = r_h3[n3];
      const double coef3i = i_h3[n3];
      const int k3mod = ((k3) - (K3)*floor((k3) / (double)(K3)));
      double sum2r = 0;
      double sum2i = 0;
      int k2 = koff2;
      for (jj2 = 0; jj2 < J2; jj2++, k2++) {
        const double p2 = (t2 - k2) * L2;
        const int n2 = floor(p2 + 0.5);
        const double coef2r = r_h2[n2];
        const double coef2i = i_h2[n2];
        const int k2mod = ((k2) - (K2)*floor((k2) / (double)(K2)));
        const int k23mod = (k3mod * K2 + k2mod) * K1;
        register double sum1r = 0;
        register double sum1i = 0;
        int k1 = koff1;
        for (jj1 = 0; jj1 < J1; jj1++, k1++) {
          const double p1 = (t1 - k1) * L1;
          const int n1 = floor(p1 + 0.5);
          register const double coef1r = r_h1[n1];
          register const double coef1i = i_h1[n1];
          const int k1mod = ((k1) - (K1)*floor((k1) / (double)(K1)));
          const int kk = k23mod + k1mod;
          sum1r += coef1r * r_ck[kk] - coef1i * i_ck[kk];
          sum1i += coef1r * i_ck[kk] + coef1i * r_ck[kk];
        }
        sum2r += coef2r * sum1r - coef2i * sum1i;
        sum2i += coef2r * sum1i + coef2i * sum1r;
      }
      sum3r += coef3r * sum2r - coef3i * sum2i;
      sum3i += coef3r * sum2i + coef3i * sum2r;
    }
    *r_fm++ = sum3r;
    *i_fm++ = sum3i;
  }
}
```