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

```asm
<interp2_table0_real_per_adj>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  sub    $0xc8,%rsp
  mov    0x100(%rsp),%eax
  imul   0x110(%rsp),%eax
  mov    %ecx,0x68(%rsp)
  mov    %r8,0x40(%rsp)
  movslq 0x128(%rsp),%rbx
  mov    %r9,0x88(%rsp)
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  movslq %eax,%r15
  mov    0x108(%rsp),%eax
  imul   0x118(%rsp),%eax
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  xor    %esi,%esi
  mov    %r14,%rdi
  cltq
  mov    %rax,0x80(%rsp)
  mov    %ebp,%eax
  imul   %r12d,%eax
  lea    0x0(,%rax,8),%ebp
  mov    %ebp,%edx
  call   <memset@plt>
  xor    %esi,%esi
  mov    %ebp,%edx
  mov    %r13,%rdi
  call   <memset@plt>
  test   %ebx,%ebx
  jle    L2
  lea    0x0(,%rbx,8),%rax
  pxor   %xmm0,%xmm0
  pxor   %xmm7,%xmm7
  mov    %rax,0x98(%rsp)
  add    0x120(%rsp),%rax
  cvtsi2sdl 0x100(%rsp),%xmm0
  mov    %rax,0xa8(%rsp)
  mov    0x108(%rsp),%eax
  cvtsi2sdl 0x108(%rsp),%xmm7
  mulsd  D16(%rip),%xmm0
  add    $0x1,%eax
  mov    %eax,0xbc(%rsp)
  mov    0x100(%rsp),%eax
  movsd  %xmm7,0xb0(%rsp)
  add    $0x1,%eax
  mov    %eax,0xb8(%rsp)
  movsd  %xmm0,0xa0(%rsp)
  nopl   0x0(%rax,%rax,1)
L51:
  mov    0x120(%rsp),%rax
  mov    0x98(%rsp),%rsi
  addq   $0x8,0x120(%rsp)
  addq   $0x8,0x130(%rsp)
  movsd  (%rax,%rsi,1),%xmm7
  mov    0x120(%rsp),%rax
  addq   $0x8,0x138(%rsp)
  movsd  %xmm7,0x50(%rsp)
  movsd  -0x8(%rax),%xmm6
  mov    0x130(%rsp),%rax
  movsd  %xmm6,0x38(%rsp)
  movsd  -0x8(%rax),%xmm5
  subsd  0xa0(%rsp),%xmm6
  mov    0x138(%rsp),%rax
  movsd  %xmm5,0x58(%rsp)
  cvttsd2si %xmm6,%edi
  movsd  -0x8(%rax),%xmm5
  movsd  %xmm5,0x60(%rsp)
  call   <floor@plt>
  movsd  D16(%rip),%xmm1
  mulsd  0xb0(%rsp),%xmm1
  movsd  0x50(%rsp),%xmm0
  mov    %eax,0x90(%rsp)
  add    $0x1,%eax
  mov    %eax,0x94(%rsp)
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  mov    0x108(%rsp),%edx
  lea    0x1(%rax),%esi
  mov    %esi,0x4c(%rsp)
  test   %edx,%edx
  jle    L56
  pxor   %xmm7,%xmm7
  add    0xbc(%rsp),%eax
  cvtsi2sdl 0x118(%rsp),%xmm7
  mov    %eax,0x6c(%rsp)
  movsd  %xmm7,0x70(%rsp)
  pxor   %xmm7,%xmm7
  cvtsi2sdl 0x68(%rsp),%xmm7
  movsd  %xmm7,0x78(%rsp)
  nopw   0x0(%rax,%rax,1)
L31:
  mov    0x4c(%rsp),%ebx
  pxor   %xmm1,%xmm1
  movsd  0x50(%rsp),%xmm0
  cvtsi2sd %ebx,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  0x70(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  addsd  D16(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  mov    0x88(%rsp),%rsi
  movsd  0x10(%rsp),%xmm1
  divsd  0x78(%rsp),%xmm1
  cvttsd2si %xmm1,%edi
  cltq
  add    0x80(%rsp),%rax
  movsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,0x8(%rsp)
  call   <floor@plt>
  movsd  0x8(%rsp),%xmm0
  movsd  0x58(%rsp),%xmm5
  imul   0x68(%rsp),%eax
  mulsd  %xmm0,%xmm5
  mulsd  0x60(%rsp),%xmm0
  sub    %eax,%ebx
  mov    0x100(%rsp),%eax
  imul   %r12d,%ebx
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm0,0x20(%rsp)
  test   %eax,%eax
  jle    L23
  pxor   %xmm7,%xmm7
  pxor   %xmm5,%xmm5
  mov    0xb8(%rsp),%eax
  add    0x90(%rsp),%eax
  cvtsi2sd %r12d,%xmm5
  mov    %eax,0x48(%rsp)
  mov    0x94(%rsp),%ebp
  cvtsi2sdl 0x110(%rsp),%xmm7
  movsd  %xmm5,0x30(%rsp)
  movsd  %xmm7,0x28(%rsp)
  nopl   0x0(%rax)
L27:
  pxor   %xmm1,%xmm1
  movsd  0x38(%rsp),%xmm0
  cvtsi2sd %ebp,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  addsd  D16(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  mov    0x40(%rsp),%rdx
  movsd  0x10(%rsp),%xmm1
  divsd  0x30(%rsp),%xmm1
  cltq
  cvttsd2si %xmm1,%edi
  add    %r15,%rax
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,0x8(%rsp)
  call   <floor@plt>
  movsd  0x8(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm1
  imul   %r12d,%eax
  mulsd  %xmm0,%xmm1
  mulsd  0x20(%rsp),%xmm0
  mov    %eax,%ecx
  mov    %ebp,%eax
  add    $0x1,%ebp
  sub    %ecx,%eax
  add    %ebx,%eax
  cltq
  shl    $0x3,%rax
  lea    (%r14,%rax,1),%rcx
  add    %r13,%rax
  addsd  (%rcx),%xmm1
  movsd  %xmm1,(%rcx)
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    0x48(%rsp),%ebp
  jne    L27
L23:
  addl   $0x1,0x4c(%rsp)
  mov    0x4c(%rsp),%eax
  cmp    0x6c(%rsp),%eax
  jne    L31
L56:
  mov    0xa8(%rsp),%rax
  cmp    0x120(%rsp),%rax
  jne    L51
L2:
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: label: D16
type_guessed: f64

tool: D16: 0.5

assistant: ```c
void interp2_table0_real_per_adj(double *r_ck, double *i_ck, const int K1, const int K2, const double *r_h1, const double *r_h2, const int J1, const int J2, const int L1, const int L2, const double *p_tm, const int M, const double *r_fm, const double *i_fm) {
  int mm;
  {
    const int ncenter1 = floor(J1 * L1 / 2);
    r_h1 += ncenter1;
  }
  {
    const int ncenter2 = floor(J2 * L2 / 2);
    r_h2 += ncenter2;
  }
  (void)memset((void *)r_ck, 0, K1 * K2 * sizeof(*r_ck));
  (void)memset((void *)i_ck, 0, K1 * K2 * sizeof(*i_ck));
  for (mm = 0; mm < M; mm++) {
    int jj1, jj2;
    const double t2 = p_tm[M];
    const double t1 = *p_tm++;
    const double fmr = *r_fm++;
    const double fmi = *i_fm++;
    const int koff1 = 1 + floor(t1 - J1 / 2.);
    int k2 = 1 + floor(t2 - J2 / 2.);
    for (jj2 = 0; jj2 < J2; jj2++, k2++) {
      const double p2 = (t2 - k2) * L2;
      const int n2 = floor(p2 + 0.5);
      double coef2r = r_h2[n2];
      const int wrap2 = floor(k2 / (double)K2);
      const int k2mod = k2 - K2 * wrap2;
      const int k12mod = k2mod * K1;
      const double v2r = coef2r * fmr;
      const double v2i = coef2r * fmi;
      int k1 = koff1;
      for (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;
        const int kk = k12mod + k1mod;
        r_ck[kk] += coef1r * v2r;
        i_ck[kk] += coef1r * v2i;
      }
    }
  }
}
```