user: Please show me the C implementation that matches the assembly code listed below:

```asm
<interp1_table0_real_per_adj>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8d,-0x58(%rbp)
  mov    %r9d,-0x64(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x54(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x58(%rbp),%eax
  imul   -0x64(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D24(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x60(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L30
L39:
  mov    0x10(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,0x10(%rbp)
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    0x20(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,0x20(%rbp)
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    0x28(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,0x28(%rbp)
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x58(%rbp),%xmm0
  movsd  D24(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  add    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L3
L34:
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x38(%rbp),%xmm2
  movsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x64(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm1
  movsd  D10(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movsd  %xmm3,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x54(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x54(%rbp),%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x70(%rbp),%xmm3
  movapd %xmm3,%xmm0
  mulsd  -0x18(%rbp),%xmm0
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x10(%rbp),%xmm3
  movapd %xmm3,%xmm0
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
  addl   $0x1,-0x38(%rbp)
L3:
  mov    -0x34(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L34
  addl   $0x1,-0x3c(%rbp)
L30:
  mov    -0x3c(%rbp),%eax
  cmp    0x18(%rbp),%eax
  jl     L39
  nop
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D24
datatype: f64
name: disassemble_data
arguments: data_label: D10
datatype: f64

tool: D24: 2

tool: D10: 0.5

assistant: ```c
void interp1_table0_real_per_adj(double *r_ck, double *i_ck, const int K1, const double *r_h1, const int J1, const int L1, const double *p_tm, const int M, const double *r_fm, const double *i_fm) {
  (void)memset((void *)r_ck, 0, K1 * sizeof(*r_ck));
  (void)memset((void *)i_ck, 0, K1 * sizeof(*i_ck));
  {
    const int ncenter1 = floor(J1 * L1 / 2.);
    r_h1 += ncenter1;
  }
  for (int mm = 0; mm < M; mm++) {
    const double t1 = *p_tm++;
    const double fmr = *r_fm++;
    const double fmi = *i_fm++;
    int k1 = 1 + floor(t1 - J1 / 2.);
    for (int jj1 = 0; jj1 < J1; jj1++, k1++) {
      const double p1 = (t1 - k1) * L1;
      const int n1 = floor(p1 + 0.5);
      register double coef1r = r_h1[n1];
      const int wrap1 = floor(k1 / (double)K1);
      const int k1mod = k1 - K1 * wrap1;
      r_ck[k1mod] += coef1r * fmr;
      i_ck[k1mod] += coef1r * fmi;
    }
  }
}
```