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

```asm
<interp3_table0_real_per>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %rdi,%r15
  mov    %rsi,%r14
  mov    %edx,%ebp
  mov    %ecx,0x4c(%rsp)
  mov    %r8d,0xa0(%rsp)
  mov    %r9,%r12
  mov    0x158(%rsp),%ebx
  mov    0x120(%rsp),%eax
  imul   0x138(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D86(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  mov    %rax,0x28(%rsp)
  mov    0x128(%rsp),%eax
  imul   0x140(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D86(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  mov    %rax,0x68(%rsp)
  mov    0x130(%rsp),%eax
  imul   0x148(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D86(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  mov    %rax,0x98(%rsp)
  test   %ebx,%ebx
  jle    L69
  lea    (%rbx,%rbx,1),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0xb0(%rsp)
  movslq %ebx,%rax
  shl    $0x3,%rax
  mov    %rax,0xb8(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x120(%rsp),%xmm0
  mulsd  D86(%rip),%xmm0
  movsd  %xmm0,0xc0(%rsp)
  mov    %ebx,%ebx
  mov    0x150(%rsp),%rax
  lea    (%rax,%rbx,8),%rax
  mov    %rax,0xc8(%rsp)
  mov    %ebp,%r13d
  mov    %r12,%rbp
L108:
  mov    0x150(%rsp),%rax
  mov    0xb0(%rsp),%rsi
  movsd  (%rax,%rsi,1),%xmm6
  movsd  %xmm6,0x90(%rsp)
  mov    0xb8(%rsp),%rsi
  movsd  (%rax,%rsi,1),%xmm7
  movsd  %xmm7,0x60(%rsp)
  addq   $0x8,0x150(%rsp)
  mov    0x150(%rsp),%rax
  movsd  -0x8(%rax),%xmm5
  movsd  %xmm5,0x30(%rsp)
  subsd  0xc0(%rsp),%xmm5
  cvttsd2si %xmm5,%edi
  call   <floor@plt>
  mov    %eax,%ebx
  lea    0x1(%rax),%eax
  mov    %eax,0x70(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x128(%rsp),%xmm0
  mulsd  D86(%rip),%xmm0
  movsd  0x60(%rsp),%xmm7
  subsd  %xmm0,%xmm7
  cvttsd2si %xmm7,%edi
  call   <floor@plt>
  mov    %eax,0xa8(%rsp)
  add    $0x1,%eax
  mov    %eax,0xac(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x130(%rsp),%xmm0
  mulsd  D86(%rip),%xmm0
  movsd  0x90(%rsp),%xmm6
  subsd  %xmm0,%xmm6
  cvttsd2si %xmm6,%edi
  call   <floor@plt>
  lea    0x1(%rax),%esi
  mov    %esi,0x74(%rsp)
  cmpl   $0x0,0x130(%rsp)
  jle    L11
  mov    0x130(%rsp),%esi
  lea    0x1(%rax,%rsi,1),%eax
  mov    %eax,0xa4(%rsp)
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x80(%rsp)
  movsd  %xmm6,0x78(%rsp)
  mov    0x120(%rsp),%eax
  lea    0x1(%rbx,%rax,1),%r12d
  mov    %r12d,%eax
  mov    %r14,%r12
  mov    %eax,%r14d
L94:
  mov    0x74(%rsp),%ebx
  pxor   %xmm6,%xmm6
  cvtsi2sd %ebx,%xmm6
  movsd  0x90(%rsp),%xmm5
  movsd  %xmm6,(%rsp)
  subsd  %xmm6,%xmm5
  movapd %xmm5,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x148(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  D86(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  add    0x98(%rsp),%rax
  mov    0x118(%rsp),%rsi
  movsd  (%rsi,%rax,8),%xmm7
  movsd  %xmm7,0x88(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xa0(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   0xa0(%rsp),%eax
  mov    %ebx,%edx
  sub    %eax,%edx
  cmpl   $0x0,0x128(%rsp)
  jle    L83
  imul   0x4c(%rsp),%edx
  mov    %edx,0x58(%rsp)
  mov    0xa8(%rsp),%eax
  mov    0x128(%rsp),%esi
  lea    0x1(%rax,%rsi,1),%eax
  mov    %eax,0x5c(%rsp)
  mov    0xac(%rsp),%eax
  mov    %eax,0x48(%rsp)
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x40(%rsp)
  movsd  %xmm5,0x38(%rsp)
L40:
  mov    0x48(%rsp),%ebx
  pxor   %xmm7,%xmm7
  cvtsi2sd %ebx,%xmm7
  movsd  0x60(%rsp),%xmm5
  movsd  %xmm7,(%rsp)
  subsd  %xmm7,%xmm5
  movapd %xmm5,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x140(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  D86(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  add    0x68(%rsp),%rax
  mov    0x110(%rsp),%rsi
  movsd  (%rsi,%rax,8),%xmm6
  movsd  %xmm6,0x50(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x4c(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   0x4c(%rsp),%eax
  mov    %ebx,%edx
  sub    %eax,%edx
  mov    0x58(%rsp),%eax
  add    %edx,%eax
  imul   %r13d,%eax
  mov    %eax,0x24(%rsp)
  cmpl   $0x0,0x120(%rsp)
  jle    L33
  mov    0x70(%rsp),%ebx
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  movsd  %xmm7,(%rsp)
L34:
  pxor   %xmm3,%xmm3
  cvtsi2sd %ebx,%xmm3
  movsd  0x30(%rsp),%xmm4
  movsd  %xmm3,0x10(%rsp)
  subsd  %xmm3,%xmm4
  movapd %xmm4,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x138(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  D86(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  add    0x28(%rsp),%rax
  movsd  0x0(%rbp,%rax,8),%xmm2
  movsd  %xmm2,0x18(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sd %r13d,%xmm1
  movsd  0x10(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    %ebx,%eax
  sub    %edx,%eax
  add    0x24(%rsp),%eax
  cltq
  movsd  0x18(%rsp),%xmm2
  movapd %xmm2,%xmm0
  mulsd  (%r15,%rax,8),%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  mulsd  (%r12,%rax,8),%xmm2
  movapd %xmm2,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x1,%ebx
  cmp    %ebx,%r14d
  jne    L34
L15:
  movsd  (%rsp),%xmm0
  movsd  0x50(%rsp),%xmm7
  mulsd  %xmm7,%xmm0
  addsd  0x38(%rsp),%xmm0
  movsd  %xmm0,0x38(%rsp)
  mulsd  0x8(%rsp),%xmm7
  movapd %xmm7,%xmm0
  addsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x40(%rsp)
  addl   $0x1,0x48(%rsp)
  mov    0x48(%rsp),%eax
  cmp    %eax,0x5c(%rsp)
  jne    L40
L68:
  movsd  0x38(%rsp),%xmm0
  movsd  0x88(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  addsd  0x78(%rsp),%xmm0
  movsd  %xmm0,0x78(%rsp)
  mulsd  0x40(%rsp),%xmm6
  movapd %xmm6,%xmm0
  addsd  0x80(%rsp),%xmm0
  movsd  %xmm0,0x80(%rsp)
  addl   $0x1,0x74(%rsp)
  mov    0x74(%rsp),%eax
  cmp    0xa4(%rsp),%eax
  jne    L94
  mov    %r12,%r14
L38:
  addq   $0x8,0x160(%rsp)
  mov    0x160(%rsp),%rax
  movsd  0x78(%rsp),%xmm7
  movsd  %xmm7,-0x8(%rax)
  addq   $0x8,0x168(%rsp)
  mov    0x168(%rsp),%rax
  movsd  0x80(%rsp),%xmm6
  movsd  %xmm6,-0x8(%rax)
  mov    0xc8(%rsp),%rax
  cmp    %rax,0x150(%rsp)
  jne    L108
L69:
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L33:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x8(%rsp)
  movsd  %xmm6,(%rsp)
  jmp    L15
L83:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x40(%rsp)
  movsd  %xmm7,0x38(%rsp)
  jmp    L68
L11:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x80(%rsp)
  movsd  %xmm6,0x78(%rsp)
  jmp    L38
```

tool_calls: name: retrieve_data
arguments: data_tag: D86
datatype: f64

tool: D86: 0.5

assistant: ```c
void interp3_table0_real_per(const double *r_ck, const double *i_ck, const int K1, const int K2, const int K3, const double *r_h1, const double *r_h2, const double *r_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;
  }
  {
    const int ncenter2 = floor(J2 * L2 / 2.);
    r_h2 += ncenter2;
  }
  {
    const int ncenter3 = floor(J3 * L3 / 2.);
    r_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);
      double coef3r = r_h3[n3];
      const int wrap3 = floor(k3 / (double)K3);
      const int k3mod = k3 - K3 * wrap3;
      register double sum2r = 0;
      register 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);
        double coef2r = r_h2[n2];
        const int wrap2 = floor(k2 / (double)K2);
        const int k2mod = k2 - K2 * wrap2;
        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 double coef1r = r_h1[n1];
          const int wrap1 = floor(k1 / (double)K1);
          const int k1mod = k1 - K1 * wrap1;
          const int kk = k23mod + k1mod;
          sum1r += coef1r * r_ck[kk];
          sum1i += coef1r * i_ck[kk];
        }
        sum2r += coef2r * sum1r;
        sum2i += coef2r * sum1i;
      }
      sum3r += coef3r * sum2r;
      sum3i += coef3r * sum2i;
    }
    *r_fm++ = sum3r;
    *i_fm++ = sum3i;
  }
}
```