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

```asm
<interp1_table0_real_per_adj>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r13
  mov    %rsi,0x28(%rsp)
  mov    %edx,%r12d
  mov    %rcx,%r15
  mov    %r8d,%r14d
  mov    %r8d,0x3c(%rsp)
  mov    %r9d,0x38(%rsp)
  mov    0x98(%rsp),%ebp
  lea    0x0(,%rdx,8),%ebx
  mov    %ebx,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    0x28(%rsp),%rdi
  call   <memset@plt>
  mov    %r14d,%eax
  imul   0x38(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D25(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  mov    %rax,0x30(%rsp)
  test   %ebp,%ebp
  jle    L20
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14d,%xmm0
  mulsd  D25(%rip),%xmm0
  movsd  %xmm0,0x40(%rsp)
  mov    %ebp,%ebp
  mov    0x90(%rsp),%rax
  lea    (%rax,%rbp,8),%rax
  mov    %rax,0x48(%rsp)
L15:
  addq   $0x8,0x90(%rsp)
  mov    0x90(%rsp),%rax
  movsd  -0x8(%rax),%xmm6
  movsd  %xmm6,0x10(%rsp)
  addq   $0x8,0xa0(%rsp)
  mov    0xa0(%rsp),%rax
  movsd  -0x8(%rax),%xmm7
  movsd  %xmm7,0x18(%rsp)
  addq   $0x8,0xa8(%rsp)
  mov    0xa8(%rsp),%rax
  movsd  -0x8(%rax),%xmm7
  movsd  %xmm7,0x20(%rsp)
  subsd  0x40(%rsp),%xmm6
  cvttsd2si %xmm6,%edi
  call   <floor@plt>
  lea    0x1(%rax),%ebp
  mov    0x3c(%rsp),%ecx
  test   %ecx,%ecx
  jle    L4
  lea    0x1(%rax,%rcx,1),%r14d
L16:
  pxor   %xmm2,%xmm2
  cvtsi2sd %ebp,%xmm2
  movsd  0x10(%rsp),%xmm3
  movsd  %xmm2,0x8(%rsp)
  subsd  %xmm2,%xmm3
  movapd %xmm3,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x38(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  D25(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  add    0x30(%rsp),%rax
  mov    (%r15,%rax,8),%rbx
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  movsd  0x8(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   %r12d,%eax
  mov    %eax,%edx
  mov    %ebp,%eax
  sub    %edx,%eax
  cltq
  shl    $0x3,%rax
  lea    0x0(%r13,%rax,1),%rdx
  movq   %rbx,%xmm0
  mulsd  0x18(%rsp),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rdx)
  add    0x28(%rsp),%rax
  movq   %rbx,%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebp
  cmp    %ebp,%r14d
  jne    L16
L4:
  mov    0x48(%rsp),%rax
  cmp    %rax,0x90(%rsp)
  jne    L15
L20:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D25
type_infered: f64

tool: D25: 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;
    }
  }
}
```