user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<interp1_table0_real_per_adj>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  lea    0x0(,%rdx,8),%r14d
  push   %r13
  mov    %rsi,%r13
  xor    %esi,%esi
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %r8d,%ebp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edx,0x8(%rsp)
  mov    %r14d,%edx
  movslq 0xa8(%rsp),%rbx
  mov    %r8d,0x44(%rsp)
  mov    %r9d,0x58(%rsp)
  call   <memset@plt>
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    %r14d,%edx
  call   <memset@plt>
  mov    0x58(%rsp),%eax
  pxor   %xmm0,%xmm0
  imul   %ebp,%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D18(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  test   %ebx,%ebx
  jle    L35
  pxor   %xmm0,%xmm0
  mov    0xa0(%rsp),%rsi
  movslq %eax,%r14
  mov    %ebp,%eax
  cvtsi2sd %ebp,%xmm0
  mulsd  D18(%rip),%xmm0
  add    $0x1,%eax
  mov    0x8(%rsp),%ebp
  lea    (%rsi,%rbx,8),%rsi
  mov    %eax,0x5c(%rsp)
  mov    %rsi,0x50(%rsp)
  movsd  %xmm0,0x48(%rsp)
  nopw   0x0(%rax,%rax,1)
L1:
  addq   $0x8,0xa0(%rsp)
  mov    0xa0(%rsp),%rax
  addq   $0x8,0xb0(%rsp)
  addq   $0x8,0xb8(%rsp)
  movsd  -0x8(%rax),%xmm5
  mov    0xb0(%rsp),%rax
  movsd  %xmm5,0x18(%rsp)
  subsd  0x48(%rsp),%xmm5
  movsd  -0x8(%rax),%xmm6
  mov    0xb8(%rsp),%rax
  cvttsd2si %xmm5,%edi
  movsd  -0x8(%rax),%xmm7
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm7,0x28(%rsp)
  call   <floor@plt>
  mov    0x44(%rsp),%edx
  lea    0x1(%rax),%ebx
  test   %edx,%edx
  jle    L26
  pxor   %xmm7,%xmm7
  add    0x5c(%rsp),%eax
  cvtsi2sdl 0x58(%rsp),%xmm7
  mov    %eax,0x40(%rsp)
  movsd  %xmm7,0x30(%rsp)
  pxor   %xmm7,%xmm7
  cvtsi2sd %ebp,%xmm7
  movsd  %xmm7,0x38(%rsp)
L34:
  pxor   %xmm1,%xmm1
  movsd  0x18(%rsp),%xmm0
  cvtsi2sd %ebx,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  0x30(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  addsd  D18(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  movsd  0x10(%rsp),%xmm1
  divsd  0x38(%rsp),%xmm1
  cvttsd2si %xmm1,%edi
  cltq
  add    %r14,%rax
  movsd  (%r15,%rax,8),%xmm0
  movsd  %xmm0,0x8(%rsp)
  call   <floor@plt>
  movsd  0x8(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm1
  imul   %ebp,%eax
  mulsd  %xmm0,%xmm1
  mulsd  0x28(%rsp),%xmm0
  mov    %eax,%ecx
  mov    %ebx,%eax
  add    $0x1,%ebx
  sub    %ecx,%eax
  cltq
  shl    $0x3,%rax
  lea    (%r12,%rax,1),%rcx
  add    %r13,%rax
  addsd  (%rcx),%xmm1
  movsd  %xmm1,(%rcx)
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    0x40(%rsp),%ebx
  jne    L34
L26:
  mov    0x50(%rsp),%rax
  cmp    %rax,0xa0(%rsp)
  jne    L1
L35:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D18
type: f64

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