user: Converte this assembly snippet into its equivalent C code:

```asm
<interp4_table1_real_per_adj>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  mov    %rsi,%r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  sub    $0x168,%rsp
  mov    0x1c0(%rsp),%eax
  imul   0x1e0(%rsp),%eax
  mov    %ecx,0x50(%rsp)
  mov    %r8d,0xa8(%rsp)
  movslq 0x208(%rsp),%rbx
  mov    %r9d,0x108(%rsp)
  cvtsi2sd %eax,%xmm0
  mulsd  D100(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  movslq %eax,%r14
  mov    0x1c8(%rsp),%eax
  imul   0x1e8(%rsp),%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D100(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  cltq
  mov    %rax,0x70(%rsp)
  mov    0x1d0(%rsp),%eax
  imul   0x1f0(%rsp),%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D100(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  cltq
  mov    %rax,0x90(%rsp)
  mov    0x1d8(%rsp),%eax
  imul   0x1f8(%rsp),%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D100(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  xor    %esi,%esi
  mov    %r13,%rdi
  cltq
  mov    %rax,0xe0(%rsp)
  mov    %ebp,%eax
  imul   %r12d,%eax
  imul   0xa8(%rsp),%eax
  imul   0x108(%rsp),%eax
  lea    0x0(,%rax,8),%ebp
  mov    %ebp,%edx
  call   <memset@plt>
  xor    %esi,%esi
  mov    %ebp,%edx
  mov    %r15,%rdi
  call   <memset@plt>
  test   %ebx,%ebx
  jle    L14
  pxor   %xmm6,%xmm6
  lea    (%rbx,%rbx,1),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x1c8(%rsp),%xmm6
  lea    (%rax,%rbx,1),%edx
  cltq
  cvtsi2sdl 0x1c0(%rsp),%xmm0
  shl    $0x3,%rax
  movslq %edx,%rdx
  mov    %rax,0xf0(%rsp)
  lea    0x0(,%rbx,8),%rax
  mulsd  D100(%rip),%xmm0
  shl    $0x3,%rdx
  mov    %rax,0xf8(%rsp)
  add    0x200(%rsp),%rax
  movsd  %xmm6,0x140(%rsp)
  pxor   %xmm6,%xmm6
  cvtsi2sdl 0x1d0(%rsp),%xmm6
  mov    %rax,0x110(%rsp)
  mov    0x1d8(%rsp),%eax
  mov    %rdx,0xe8(%rsp)
  movsd  %xmm0,0x100(%rsp)
  add    $0x1,%eax
  mov    %eax,0x158(%rsp)
  mov    0x1c0(%rsp),%eax
  movsd  %xmm6,0x148(%rsp)
  pxor   %xmm6,%xmm6
  cvtsi2sdl 0x1d8(%rsp),%xmm6
  add    $0x1,%eax
  mov    %eax,0x15c(%rsp)
  mov    %r12d,%eax
  mov    %r15,%r12
  mov    %r14,%r15
  mov    %eax,%r14d
  movsd  %xmm6,0x150(%rsp)
L8:
  mov    0x200(%rsp),%rax
  mov    0xe8(%rsp),%rdx
  addq   $0x8,0x200(%rsp)
  addq   $0x8,0x210(%rsp)
  movsd  (%rax,%rdx,1),%xmm6
  mov    0xf0(%rsp),%rdx
  addq   $0x8,0x218(%rsp)
  movsd  %xmm6,0xd8(%rsp)
  movsd  (%rax,%rdx,1),%xmm7
  mov    0xf8(%rsp),%rdx
  movsd  %xmm7,0x88(%rsp)
  movsd  (%rax,%rdx,1),%xmm3
  mov    0x200(%rsp),%rax
  movsd  -0x8(%rax),%xmm4
  mov    0x210(%rsp),%rax
  movsd  %xmm3,0x68(%rsp)
  movsd  %xmm4,0x30(%rsp)
  movsd  -0x8(%rax),%xmm5
  subsd  0x100(%rsp),%xmm4
  mov    0x218(%rsp),%rax
  movsd  %xmm5,0x118(%rsp)
  cvttsd2si %xmm4,%edi
  movsd  -0x8(%rax),%xmm5
  movsd  %xmm5,0x120(%rsp)
  call   <floor@plt>
  movsd  D100(%rip),%xmm1
  mulsd  0x140(%rsp),%xmm1
  movsd  0x68(%rsp),%xmm3
  mov    %eax,%ebx
  lea    0x1(%rax),%eax
  mov    %eax,0x80(%rsp)
  subsd  %xmm1,%xmm3
  cvttsd2si %xmm3,%edi
  call   <floor@plt>
  movsd  D100(%rip),%xmm1
  mulsd  0x148(%rsp),%xmm1
  movsd  0x88(%rsp),%xmm7
  mov    %eax,0xc0(%rsp)
  add    $0x1,%eax
  mov    %eax,0xc4(%rsp)
  subsd  %xmm1,%xmm7
  cvttsd2si %xmm7,%edi
  call   <floor@plt>
  movsd  D100(%rip),%xmm1
  mulsd  0x150(%rsp),%xmm1
  movsd  0xd8(%rsp),%xmm6
  mov    %eax,0x10c(%rsp)
  add    $0x1,%eax
  mov    %eax,0x128(%rsp)
  subsd  %xmm1,%xmm6
  cvttsd2si %xmm6,%edi
  call   <floor@plt>
  mov    0x1d8(%rsp),%esi
  lea    0x1(%rax),%edx
  mov    %edx,0xd4(%rsp)
  test   %esi,%esi
  jle    L80
  pxor   %xmm6,%xmm6
  pxor   %xmm7,%xmm7
  add    0x158(%rsp),%eax
  add    0x15c(%rsp),%ebx
  cvtsi2sdl 0x1f8(%rsp),%xmm6
  mov    %eax,0x12c(%rsp)
  cvtsi2sdl 0x108(%rsp),%xmm7
  mov    %ebx,0x38(%rsp)
  movsd  %xmm6,0x130(%rsp)
  movsd  %xmm7,0x138(%rsp)
L74:
  mov    0xd4(%rsp),%ebx
  pxor   %xmm2,%xmm2
  movsd  0xd8(%rsp),%xmm0
  cvtsi2sd %ebx,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  mulsd  0x130(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  pxor   %xmm1,%xmm1
  movsd  (%rsp),%xmm0
  mov    0x1b8(%rsp),%rdx
  cvtsi2sd %eax,%xmm1
  cltq
  add    0xe0(%rsp),%rax
  movsd  0x8(%rsp),%xmm2
  divsd  0x138(%rsp),%xmm2
  lea    (%rdx,%rax,8),%rax
  cvttsd2si %xmm2,%edi
  subsd  %xmm1,%xmm0
  movsd  D69(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  0x8(%rax),%xmm0
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  imul   0x108(%rsp),%eax
  movsd  (%rsp),%xmm0
  movsd  0x118(%rsp),%xmm6
  mov    0x1d0(%rsp),%ecx
  mulsd  %xmm0,%xmm6
  mov    %eax,%edx
  mov    %ebx,%eax
  mulsd  0x120(%rsp),%xmm0
  sub    %edx,%eax
  imul   0xa8(%rsp),%eax
  imul   0x50(%rsp),%eax
  movsd  %xmm6,0x98(%rsp)
  movsd  %xmm0,0xa0(%rsp)
  imul   %r14d,%eax
  cltq
  mov    %rax,0xc8(%rsp)
  test   %ecx,%ecx
  jle    L68
  mov    0x10c(%rsp),%eax
  mov    0x1d0(%rsp),%edx
  pxor   %xmm7,%xmm7
  pxor   %xmm6,%xmm6
  cvtsi2sdl 0x1f0(%rsp),%xmm7
  cvtsi2sdl 0xa8(%rsp),%xmm6
  lea    0x1(%rax,%rdx,1),%eax
  mov    %eax,0xac(%rsp)
  mov    0x128(%rsp),%eax
  mov    %eax,0x84(%rsp)
  mov    0x1c8(%rsp),%eax
  movsd  %xmm7,0xb0(%rsp)
  movsd  %xmm6,0xb8(%rsp)
  add    $0x1,%eax
  mov    %eax,0xd0(%rsp)
  nopl   0x0(%rax,%rax,1)
L30:
  mov    0x84(%rsp),%ebx
  pxor   %xmm2,%xmm2
  movsd  0x88(%rsp),%xmm0
  cvtsi2sd %ebx,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  mulsd  0xb0(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  pxor   %xmm1,%xmm1
  movsd  (%rsp),%xmm0
  mov    0x1b0(%rsp),%rdx
  cvtsi2sd %eax,%xmm1
  cltq
  add    0x90(%rsp),%rax
  movsd  0x8(%rsp),%xmm2
  divsd  0xb8(%rsp),%xmm2
  lea    (%rdx,%rax,8),%rax
  cvttsd2si %xmm2,%edi
  subsd  %xmm1,%xmm0
  movsd  D69(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  0x8(%rax),%xmm0
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  imul   0xa8(%rsp),%eax
  movsd  (%rsp),%xmm0
  movsd  0x98(%rsp),%xmm7
  mulsd  %xmm0,%xmm7
  mov    %eax,%edx
  mov    %ebx,%eax
  mulsd  0xa0(%rsp),%xmm0
  sub    %edx,%eax
  mov    0x1c8(%rsp),%edx
  imul   0x50(%rsp),%eax
  imul   %r14d,%eax
  movsd  %xmm7,0x40(%rsp)
  movsd  %xmm0,0x48(%rsp)
  cltq
  test   %edx,%edx
  jle    L37
  mov    0xd0(%rsp),%edx
  pxor   %xmm6,%xmm6
  add    0xc0(%rsp),%edx
  pxor   %xmm7,%xmm7
  cvtsi2sdl 0x1e8(%rsp),%xmm6
  mov    %edx,0x54(%rsp)
  mov    0xc4(%rsp),%edx
  cvtsi2sdl 0x50(%rsp),%xmm7
  add    0xc8(%rsp),%rax
  mov    %edx,0x3c(%rsp)
  mov    %rax,0x78(%rsp)
  movsd  %xmm6,0x58(%rsp)
  movsd  %xmm7,0x60(%rsp)
  nopw   0x0(%rax,%rax,1)
L70:
  mov    0x3c(%rsp),%ebx
  pxor   %xmm2,%xmm2
  movsd  0x68(%rsp),%xmm0
  cvtsi2sd %ebx,%xmm2
  subsd  %xmm2,%xmm0
  mulsd  0x58(%rsp),%xmm0
  movsd  %xmm2,0x8(%rsp)
  cvttsd2si %xmm0,%edi
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  pxor   %xmm1,%xmm1
  movsd  (%rsp),%xmm0
  mov    0x1a8(%rsp),%rdx
  cvtsi2sd %eax,%xmm1
  cltq
  add    0x70(%rsp),%rax
  movsd  0x8(%rsp),%xmm2
  lea    (%rdx,%rax,8),%rax
  divsd  0x60(%rsp),%xmm2
  cvttsd2si %xmm2,%edi
  subsd  %xmm1,%xmm0
  movsd  D69(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  0x8(%rax),%xmm0
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  movsd  (%rsp),%xmm0
  imul   0x50(%rsp),%eax
  movsd  0x40(%rsp),%xmm6
  mulsd  %xmm0,%xmm6
  sub    %eax,%ebx
  mov    0x1c0(%rsp),%eax
  mulsd  0x48(%rsp),%xmm0
  imul   %r14d,%ebx
  movslq %ebx,%rbx
  movsd  %xmm6,0x10(%rsp)
  movsd  %xmm0,0x18(%rsp)
  test   %eax,%eax
  jle    L95
  pxor   %xmm7,%xmm7
  pxor   %xmm6,%xmm6
  add    0x78(%rsp),%rbx
  mov    0x80(%rsp),%ebp
  cvtsi2sdl 0x1e0(%rsp),%xmm7
  cvtsi2sd %r14d,%xmm6
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm6,0x28(%rsp)
  nopl   0x0(%rax,%rax,1)
L50:
  pxor   %xmm2,%xmm2
  movsd  0x30(%rsp),%xmm1
  cvtsi2sd %ebp,%xmm2
  subsd  %xmm2,%xmm1
  mulsd  0x20(%rsp),%xmm1
  movsd  %xmm2,0x8(%rsp)
  cvttsd2si %xmm1,%edi
  movsd  %xmm1,(%rsp)
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  movsd  (%rsp),%xmm1
  mov    0x1a0(%rsp),%rsi
  cvtsi2sd %eax,%xmm0
  cltq
  movsd  0x8(%rsp),%xmm2
  divsd  0x28(%rsp),%xmm2
  add    %r15,%rax
  cvttsd2si %xmm2,%edi
  lea    (%rsi,%rax,8),%rax
  subsd  %xmm0,%xmm1
  movsd  D69(%rip),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x8(%rax),%xmm1
  mulsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
  call   <floor@plt>
  movsd  (%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
  imul   %r14d,%eax
  mulsd  %xmm0,%xmm1
  mulsd  0x18(%rsp),%xmm0
  mov    %eax,%ecx
  mov    %ebp,%eax
  add    $0x1,%ebp
  sub    %ecx,%eax
  cltq
  add    %rbx,%rax
  shl    $0x3,%rax
  lea    0x0(%r13,%rax,1),%rcx
  add    %r12,%rax
  addsd  (%rcx),%xmm1
  movsd  %xmm1,(%rcx)
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    0x38(%rsp),%ebp
  jne    L50
L95:
  addl   $0x1,0x3c(%rsp)
  mov    0x3c(%rsp),%eax
  cmp    0x54(%rsp),%eax
  jne    L70
L37:
  addl   $0x1,0x84(%rsp)
  mov    0x84(%rsp),%eax
  cmp    0xac(%rsp),%eax
  jne    L30
L68:
  addl   $0x1,0xd4(%rsp)
  mov    0xd4(%rsp),%eax
  cmp    0x12c(%rsp),%eax
  jne    L74
L80:
  mov    0x110(%rsp),%rax
  cmp    0x200(%rsp),%rax
  jne    L8
L14:
  add    $0x168,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D100
type_infered: byte[8]
name: parse_data
arguments: data_tag: D69
type_infered: f64

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

tool: D69: 1

assistant: ```c
void interp4_table1_real_per_adj(double *r_ck, double *i_ck, const int K1, const int K2, const int K3, const int K4, const double *r_h1, const double *r_h2, const double *r_h3, const double *r_h4, const int J1, const int J2, const int J3, const int J4, const int L1, const int L2, const int L3, const int L4, 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;
  }
  {
    const int ncenter3 = floor(J3 * L3 / 2.);
    r_h3 += ncenter3;
  }
  {
    const int ncenter4 = floor(J4 * L4 / 2.);
    r_h4 += ncenter4;
  }
  (void)memset((void *)r_ck, 0, K1 * K2 * K3 * K4 * sizeof(*r_ck));
  (void)memset((void *)i_ck, 0, K1 * K2 * K3 * K4 * sizeof(*i_ck));
  for (mm = 0; mm < M; mm++) {
    int jj1, jj2, jj3, jj4;
    const double t4 = p_tm[3 * M];
    const double t3 = p_tm[2 * M];
    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.);
    const int koff2 = 1 + floor(t2 - J2 / 2.);
    const int koff3 = 1 + floor(t3 - J3 / 2.);
    int k4 = 1 + floor(t4 - J4 / 2.);
    for (jj4 = 0; jj4 < J4; jj4++, k4++) {
      const double p4 = (t4 - k4) * L4;
      const int n4 = floor(p4);
      const double alf4 = p4 - n4;
      register const double *ph4 = r_h4 + n4;
      double coef4r = (1 - alf4) * *ph4 + alf4 * *(ph4 + 1);
      const int wrap4 = floor(k4 / (double)K4);
      const int k4mod = k4 - K4 * wrap4;
      const long k4Idx = k4mod * K3 * K2 * K1;
      const double v4r = coef4r * fmr;
      const double v4i = coef4r * fmi;
      int k3 = koff3;
      for (jj3 = 0; jj3 < J3; jj3++, k3++) {
        const double p3 = (t3 - k3) * L3;
        const int n3 = floor(p3);
        const double alf3 = p3 - n3;
        register const double *ph3 = r_h3 + n3;
        double coef3r = (1 - alf3) * *ph3 + alf3 * *(ph3 + 1);
        const int wrap3 = floor(k3 / (double)K3);
        const int k3mod = k3 - K3 * wrap3;
        const long k3Idx = k3mod * K2 * K1;
        const double v3r = coef3r * v4r;
        const double v3i = coef3r * v4i;
        int k2 = koff2;
        for (jj2 = 0; jj2 < J2; jj2++, k2++) {
          const double p2 = (t2 - k2) * L2;
          const int n2 = floor(p2);
          const double alf2 = p2 - n2;
          register const double *ph2 = r_h2 + n2;
          double coef2r = (1 - alf2) * *ph2 + alf2 * *(ph2 + 1);
          const int wrap2 = floor(k2 / (double)K2);
          const int k2mod = k2 - K2 * wrap2;
          const long k2Idx = k2mod * K1;
          const double v2r = coef2r * v3r;
          const double v2i = coef2r * v3i;
          int k1 = koff1;
          for (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;
            const long kk = k4Idx + k3Idx + k2Idx + k1mod;
            r_ck[kk] += coef1r * v2r;
            i_ck[kk] += coef1r * v2i;
          }
        }
      }
    }
  }
}
```