user: 请将以下的汇编代码转换成C语言代码:

```asm
<interp1_table1_real_per_adj>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r14
  mov    %rsi,0x28(%rsp)
  mov    %edx,%ebp
  mov    %rcx,%r15
  mov    %r8d,0x3c(%rsp)
  mov    %r9d,0x38(%rsp)
  mov    0x90(%rsp),%r12
  mov    0x98(%rsp),%r13d
  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    0x3c(%rsp),%ebx
  mov    %ebx,%eax
  imul   0x38(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D13(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  cltq
  mov    %rax,0x30(%rsp)
  test   %r13d,%r13d
  jle    L13
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  mulsd  D13(%rip),%xmm0
  movsd  %xmm0,0x40(%rsp)
  mov    %r13d,%eax
  lea    (%r12,%rax,8),%rax
  mov    %rax,0x48(%rsp)
L37:
  add    $0x8,%r12
  movsd  -0x8(%r12),%xmm5
  movsd  %xmm5,0x10(%rsp)
  addq   $0x8,0xa0(%rsp)
  mov    0xa0(%rsp),%rax
  movsd  -0x8(%rax),%xmm6
  movsd  %xmm6,0x18(%rsp)
  addq   $0x8,0xa8(%rsp)
  mov    0xa8(%rsp),%rax
  movsd  -0x8(%rax),%xmm7
  movsd  %xmm7,0x20(%rsp)
  subsd  0x40(%rsp),%xmm5
  cvttsd2si %xmm5,%edi
  call   <floor@plt>
  lea    0x1(%rax),%ebx
  mov    0x3c(%rsp),%ecx
  test   %ecx,%ecx
  jle    L29
  lea    0x1(%rax,%rcx,1),%r13d
L39:
  pxor   %xmm3,%xmm3
  cvtsi2sd %ebx,%xmm3
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm3,0x8(%rsp)
  subsd  %xmm3,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x38(%rsp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsp)
  cvttsd2si %xmm1,%edi
  call   <floor@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  (%rsp),%xmm0
  subsd  %xmm1,%xmm0
  cltq
  add    0x30(%rsp),%rax
  lea    (%r15,%rax,8),%rax
  movsd  D15(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  (%rax),%xmm1
  mulsd  0x8(%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebp,%xmm1
  movsd  0x8(%rsp),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  imul   %ebp,%eax
  mov    %eax,%edx
  mov    %ebx,%eax
  sub    %edx,%eax
  cltq
  shl    $0x3,%rax
  lea    (%r14,%rax,1),%rdx
  movsd  0x18(%rsp),%xmm0
  movsd  (%rsp),%xmm2
  mulsd  %xmm2,%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rdx)
  add    0x28(%rsp),%rax
  mulsd  0x20(%rsp),%xmm2
  movapd %xmm2,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
  cmp    %ebx,%r13d
  jne    L39
L29:
  cmp    0x48(%rsp),%r12
  jne    L37
L13:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D13
type: byte[8]
name: parse_data
arguments: tag: D15
type: f64

tool: {"D13": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: D15: 1

assistant: ```c
void interp1_table1_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);
      const double alf1 = p1 - n1;
      register const double *ph1 = r_h1 + n1;
      register double coef1r = (1 - alf1) * *ph1 + alf1 * *(ph1 + 1);
      const int wrap1 = floor(k1 / (double)K1);
      const int k1mod = k1 - K1 * wrap1;
      r_ck[k1mod] += coef1r * fmr;
      i_ck[k1mod] += coef1r * fmi;
    }
  }
}
```