user: Translate the below assembly code into C programming language:

```asm
<interp2_table0_real_per_adj>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%r12
  mov    %rdi,0x70(%rsp)
  mov    %rsi,%r13
  mov    %rsi,0x30(%rsp)
  mov    %edx,%r14d
  mov    %ecx,%ebx
  mov    %ecx,0x68(%rsp)
  mov    %r8,%r15
  mov    %r9,0x60(%rsp)
  mov    0xf8(%rsp),%ebp
  mov    0xd0(%rsp),%eax
  imul   0xe0(%rsp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  mov    %ecx,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  cltq
  mov    %rax,0x28(%rsp)
  mov    0xd8(%rsp),%eax
  imul   0xe8(%rsp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  mov    %ecx,%edi
  add    %eax,%edi
  sar    %edi
  call   <floor@plt>
  cltq
  mov    %rax,0x58(%rsp)
  mov    %ebx,%eax
  imul   %r14d,%eax
  lea    0x0(,%rax,8),%ebx
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  test   %ebp,%ebp
  jle    L56
  movslq %ebp,%rax
  shl    $0x3,%rax
  mov    %rax,0x78(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0xd0(%rsp),%xmm0
  mulsd  D5(%rip),%xmm0
  movsd  %xmm0,0x80(%rsp)
  mov    %ebp,%ebp
  mov    0xf0(%rsp),%rax
  lea    (%rax,%rbp,8),%rax
  mov    %rax,0x88(%rsp)
L41:
  mov    0xf0(%rsp),%rax
  mov    0x78(%rsp),%rcx
  movsd  (%rax,%rcx,1),%xmm7
  movsd  %xmm7,0x38(%rsp)
  addq   $0x8,0xf0(%rsp)
  mov    0xf0(%rsp),%rax
  movsd  -0x8(%rax),%xmm6
  movsd  %xmm6,0x20(%rsp)
  addq   $0x8,0x100(%rsp)
  mov    0x100(%rsp),%rax
  movsd  -0x8(%rax),%xmm4
  movsd  %xmm4,0x40(%rsp)
  addq   $0x8,0x108(%rsp)
  mov    0x108(%rsp),%rax
  movsd  -0x8(%rax),%xmm5
  movsd  %xmm5,0x48(%rsp)
  subsd  0x80(%rsp),%xmm6
  cvttsd2si %xmm6,%edi
  call   <floor@plt>
  mov    %eax,%ebx
  lea    0x1(%rax),%eax
  mov    %eax,0x6c(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0xd8(%rsp),%xmm0
  mulsd  D5(%rip),%xmm0
  movsd  0x38(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edi
  call   <floor@plt>
  lea    0x1(%rax),%esi
  mov    %esi,0x50(%rsp)
  cmpl   $0x0,0xd8(%rsp)
  jle    L0
  mov    0xd8(%rsp),%ecx
  lea    0x1(%rax,%rcx,1),%eax
  mov    %eax,0x54(%rsp)
  mov    0xd0(%rsp),%eax
  lea    0x1(%rbx,%rax,1),%r13d
L48:
  mov    0x50(%rsp),%ebp
  pxor   %xmm6,%xmm6
  cvtsi2sd %ebp,%xmm6
  movsd  0x38(%rsp),%xmm7
  movsd  %xmm6,(%rsp)
  subsd  %xmm6,%xmm7
  movapd %xmm7,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xe8(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  D5(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  add    0x58(%rsp),%rax
  mov    0x60(%rsp),%rcx
  mov    (%rcx,%rax,8),%rbx
  mov    0x68(%rsp),%r12d
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  movsd  (%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   %r12d,%eax
  sub    %eax,%ebp
  mov    %ebp,%r12d
  imul   %r14d,%r12d
  movq   %rbx,%xmm7
  mulsd  0x40(%rsp),%xmm7
  movsd  %xmm7,0x8(%rsp)
  movq   %rbx,%xmm6
  mulsd  0x48(%rsp),%xmm6
  movsd  %xmm6,0x10(%rsp)
  cmpl   $0x0,0xd0(%rsp)
  jle    L15
  mov    0x6c(%rsp),%ebp
  mov    %r12d,0x1c(%rsp)
  mov    0x70(%rsp),%r12
L28:
  pxor   %xmm2,%xmm2
  cvtsi2sd %ebp,%xmm2
  movsd  0x20(%rsp),%xmm3
  movsd  %xmm2,(%rsp)
  subsd  %xmm2,%xmm3
  movapd %xmm3,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xe0(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  D5(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  add    0x28(%rsp),%rax
  mov    (%r15,%rax,8),%rbx
  pxor   %xmm1,%xmm1
  cvtsi2sd %r14d,%xmm1
  movsd  (%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   %r14d,%eax
  mov    %eax,%edx
  mov    %ebp,%eax
  sub    %edx,%eax
  add    0x1c(%rsp),%eax
  cltq
  shl    $0x3,%rax
  lea    (%r12,%rax,1),%rdx
  movq   %rbx,%xmm0
  mulsd  0x8(%rsp),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rdx)
  add    0x30(%rsp),%rax
  movq   %rbx,%xmm0
  mulsd  0x10(%rsp),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebp
  cmp    %ebp,%r13d
  jne    L28
L15:
  addl   $0x1,0x50(%rsp)
  mov    0x50(%rsp),%eax
  cmp    %eax,0x54(%rsp)
  jne    L48
L0:
  mov    0x88(%rsp),%rax
  cmp    %rax,0xf0(%rsp)
  jne    L41
L56:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_label: D5
data_type: f64

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