user: 请从给定的汇编指令推导出C源代码:

```asm
<interp3_table0_complex_per>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  mov    %edx,%r11d
  mov    %rsi,%r15
  push   %r14
  mov    %r9,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x50,%rsp
  movq   D22(%rip),%xmm2
  movsd  D45(%rip),%xmm12
  mov    %ecx,0x48(%rsp)
  mov    0xc8(%rsp),%eax
  mov    0xb0(%rsp),%ecx
  mov    %r8d,0x4c(%rsp)
  movsd  D56(%rip),%xmm13
  mov    0x88(%rsp),%r9
  imul   %ecx,%eax
  mov    0x90(%rsp),%r10
  mov    0xe8(%rsp),%edx
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm12,%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm2,%xmm1
  ucomisd %xmm1,%xmm13
  jbe    L98
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  movapd %xmm2,%xmm3
  movsd  D50(%rip),%xmm11
  andnpd %xmm0,%xmm3
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm4
  cmpnlesd %xmm0,%xmm4
  andpd  %xmm11,%xmm4
  subsd  %xmm4,%xmm1
  orpd   %xmm3,%xmm1
  movapd %xmm1,%xmm0
L98:
  cvttsd2si %xmm0,%eax
  pxor   %xmm0,%xmm0
  movapd %xmm2,%xmm3
  movslq %eax,%r12
  mov    0xb8(%rsp),%eax
  imul   0xd0(%rsp),%eax
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm12,%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm2,%xmm1
  ucomisd %xmm1,%xmm13
  jbe    L211
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  andnpd %xmm0,%xmm3
  movsd  D50(%rip),%xmm11
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm4
  cmpnlesd %xmm0,%xmm4
  andpd  %xmm11,%xmm4
  subsd  %xmm4,%xmm1
  orpd   %xmm3,%xmm1
  movapd %xmm1,%xmm0
L211:
  cvttsd2si %xmm0,%eax
  pxor   %xmm0,%xmm0
  movapd %xmm2,%xmm3
  movslq %eax,%rbp
  mov    0xc0(%rsp),%eax
  imul   0xd8(%rsp),%eax
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm12,%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm2,%xmm1
  ucomisd %xmm1,%xmm13
  jbe    L121
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  andnpd %xmm0,%xmm3
  movsd  D50(%rip),%xmm11
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm4
  cmpnlesd %xmm0,%xmm4
  andpd  %xmm11,%xmm4
  subsd  %xmm4,%xmm1
  orpd   %xmm3,%xmm1
  movapd %xmm1,%xmm0
L121:
  cvttsd2si %xmm0,%eax
  cltq
  mov    %rax,-0x8(%rsp)
  test   %edx,%edx
  jle    L221
  pxor   %xmm0,%xmm0
  lea    (%rdx,%rdx,1),%eax
  movapd %xmm2,%xmm14
  mov    %rbp,%rsi
  cvtsi2sd %ecx,%xmm0
  cltq
  mov    %r10,%rbp
  movsd  D50(%rip),%xmm11
  shl    $0x3,%rax
  mov    %rax,0x18(%rsp)
  movslq %edx,%rax
  shl    $0x3,%rax
  mulsd  %xmm12,%xmm0
  mov    %rax,0x20(%rsp)
  add    0xe0(%rsp),%rax
  mov    %rax,0x40(%rsp)
  movsd  %xmm0,0x28(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0xb8(%rsp),%xmm0
  mulsd  %xmm12,%xmm0
  movsd  %xmm0,0x30(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0xc0(%rsp),%xmm0
  mulsd  %xmm12,%xmm0
  movsd  %xmm0,0x38(%rsp)
L118:
  mov    0xe0(%rsp),%rax
  mov    0x18(%rsp),%rdi
  addq   $0x8,0xe0(%rsp)
  movsd  (%rax,%rdi,1),%xmm6
  mov    0x20(%rsp),%rdi
  movsd  %xmm6,-0x10(%rsp)
  movsd  (%rax,%rdi,1),%xmm6
  mov    0xe0(%rsp),%rax
  movsd  -0x8(%rax),%xmm10
  movsd  %xmm6,-0x50(%rsp)
  movapd %xmm10,%xmm0
  subsd  0x28(%rsp),%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm14,%xmm1
  ucomisd %xmm1,%xmm13
  jbe    L9
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm11,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm14,%xmm2
  andnpd %xmm0,%xmm2
  orpd   %xmm2,%xmm1
  movapd %xmm1,%xmm0
L9:
  addsd  %xmm11,%xmm0
  cvttsd2si %xmm0,%eax
  movsd  -0x50(%rsp),%xmm0
  subsd  0x30(%rsp),%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm14,%xmm1
  mov    %eax,-0x40(%rsp)
  ucomisd %xmm1,%xmm13
  jbe    L165
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm11,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm14,%xmm2
  andnpd %xmm0,%xmm2
  orpd   %xmm2,%xmm1
  movapd %xmm1,%xmm0
L165:
  addsd  %xmm11,%xmm0
  cvttsd2si %xmm0,%eax
  movsd  -0x10(%rsp),%xmm0
  subsd  0x38(%rsp),%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm14,%xmm1
  mov    %eax,0x8(%rsp)
  ucomisd %xmm1,%xmm13
  jbe    L103
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm11,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm14,%xmm2
  andnpd %xmm0,%xmm2
  orpd   %xmm2,%xmm1
  movapd %xmm1,%xmm0
L103:
  addsd  %xmm11,%xmm0
  mov    0xc0(%rsp),%edx
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x3c(%rsp)
  test   %edx,%edx
  jle    L171
  pxor   %xmm6,%xmm6
  add    0xc0(%rsp),%eax
  movq   $0x0,-0x30(%rsp)
  cvtsi2sdl 0xd8(%rsp),%xmm6
  mov    %eax,0xc(%rsp)
  mov    0x8(%rsp),%eax
  add    0xb8(%rsp),%eax
  movsd  %xmm10,0x10(%rsp)
  mov    %eax,-0x44(%rsp)
  mov    -0x40(%rsp),%eax
  movq   $0x0,-0x38(%rsp)
  movsd  %xmm6,(%rsp)
  pxor   %xmm6,%xmm6
  lea    (%rax,%rcx,1),%edi
  cvtsi2sdl 0x4c(%rsp),%xmm6
  movsd  %xmm6,-0x28(%rsp)
  nopl   0x0(%rax)
L42:
  pxor   %xmm1,%xmm1
  movsd  -0x10(%rsp),%xmm0
  cvtsi2sdl -0x3c(%rsp),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  (%rsp),%xmm0
  addsd  %xmm12,%xmm0
  movapd %xmm0,%xmm2
  andpd  %xmm14,%xmm2
  ucomisd %xmm2,%xmm13
  jbe    L109
  cvttsd2si %xmm0,%rax
  pxor   %xmm2,%xmm2
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm3
  cmpnlesd %xmm0,%xmm3
  andpd  %xmm11,%xmm3
  subsd  %xmm3,%xmm2
  movapd %xmm14,%xmm3
  andnpd %xmm0,%xmm3
  orpd   %xmm3,%xmm2
  movapd %xmm2,%xmm0
L109:
  cvttsd2si %xmm0,%eax
  mov    0xa0(%rsp),%rdx
  movapd %xmm1,%xmm0
  divsd  -0x28(%rsp),%xmm0
  movapd %xmm0,%xmm2
  andpd  %xmm14,%xmm2
  cltq
  add    -0x8(%rsp),%rax
  movsd  (%rdx,%rax,8),%xmm6
  mov    0xa8(%rsp),%rdx
  ucomisd %xmm2,%xmm13
  movsd  %xmm6,-0x20(%rsp)
  movsd  (%rdx,%rax,8),%xmm6
  movsd  %xmm6,-0x18(%rsp)
  jbe    L160
  cvttsd2si %xmm0,%rax
  pxor   %xmm2,%xmm2
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm3
  cmpnlesd %xmm0,%xmm3
  andpd  %xmm11,%xmm3
  subsd  %xmm3,%xmm2
  movapd %xmm14,%xmm3
  andnpd %xmm0,%xmm3
  orpd   %xmm3,%xmm2
  movapd %xmm2,%xmm0
L160:
  mulsd  -0x28(%rsp),%xmm0
  mov    0xb8(%rsp),%eax
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%r10d
  test   %eax,%eax
  jle    L74
  pxor   %xmm6,%xmm6
  mov    0x48(%rsp),%eax
  movq   $0x0,-0x70(%rsp)
  cvtsi2sdl 0xd0(%rsp),%xmm6
  mov    0x8(%rsp),%r8d
  movq   $0x0,-0x78(%rsp)
  imul   %eax,%r10d
  movsd  0x10(%rsp),%xmm10
  movsd  %xmm6,-0x58(%rsp)
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  movsd  %xmm6,-0x68(%rsp)
L60:
  pxor   %xmm1,%xmm1
  movsd  -0x50(%rsp),%xmm0
  cvtsi2sd %r8d,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  -0x58(%rsp),%xmm0
  addsd  %xmm12,%xmm0
  movapd %xmm0,%xmm2
  andpd  %xmm14,%xmm2
  ucomisd %xmm2,%xmm13
  jbe    L64
  cvttsd2si %xmm0,%rax
  pxor   %xmm2,%xmm2
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm3
  cmpnlesd %xmm0,%xmm3
  andpd  %xmm11,%xmm3
  subsd  %xmm3,%xmm2
  movapd %xmm14,%xmm3
  andnpd %xmm0,%xmm3
  orpd   %xmm3,%xmm2
  movapd %xmm2,%xmm0
L64:
  cvttsd2si %xmm0,%eax
  movapd %xmm1,%xmm0
  divsd  -0x68(%rsp),%xmm0
  movapd %xmm0,%xmm2
  mov    0x98(%rsp),%rdx
  andpd  %xmm14,%xmm2
  cltq
  add    %rsi,%rax
  ucomisd %xmm2,%xmm13
  movsd  (%rdx,%rax,8),%xmm6
  movsd  0x0(%rbp,%rax,8),%xmm9
  movsd  %xmm6,-0x60(%rsp)
  jbe    L30
  cvttsd2si %xmm0,%rax
  pxor   %xmm2,%xmm2
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm3
  cmpnlesd %xmm0,%xmm3
  andpd  %xmm11,%xmm3
  subsd  %xmm3,%xmm2
  movapd %xmm14,%xmm3
  andnpd %xmm0,%xmm3
  orpd   %xmm3,%xmm2
  movapd %xmm2,%xmm0
L30:
  mulsd  -0x68(%rsp),%xmm0
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  add    %r10d,%edx
  imul   %r11d,%edx
  test   %ecx,%ecx
  jle    L185
  pxor   %xmm8,%xmm8
  pxor   %xmm7,%xmm7
  pxor   %xmm6,%xmm6
  mov    -0x40(%rsp),%eax
  cvtsi2sdl 0xc8(%rsp),%xmm8
  movapd %xmm6,%xmm5
  cvtsi2sd %r11d,%xmm7
  xchg   %ax,%ax
L14:
  pxor   %xmm1,%xmm1
  movapd %xmm10,%xmm0
  cvtsi2sd %eax,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm12,%xmm0
  movapd %xmm0,%xmm2
  andpd  %xmm14,%xmm2
  ucomisd %xmm2,%xmm13
  jbe    L59
  cvttsd2si %xmm0,%r13
  pxor   %xmm2,%xmm2
  cvtsi2sd %r13,%xmm2
  movapd %xmm2,%xmm3
  cmpnlesd %xmm0,%xmm3
  andpd  %xmm11,%xmm3
  subsd  %xmm3,%xmm2
  movapd %xmm14,%xmm3
  andnpd %xmm0,%xmm3
  orpd   %xmm3,%xmm2
  movapd %xmm2,%xmm0
L59:
  cvttsd2si %xmm0,%r13d
  movapd %xmm1,%xmm0
  divsd  %xmm7,%xmm0
  movslq %r13d,%r13
  add    %r12,%r13
  movsd  (%r14,%r13,8),%xmm3
  movsd  (%r9,%r13,8),%xmm2
  movapd %xmm0,%xmm4
  andpd  %xmm14,%xmm4
  ucomisd %xmm4,%xmm13
  jbe    L177
  cvttsd2si %xmm0,%r13
  pxor   %xmm4,%xmm4
  cvtsi2sd %r13,%xmm4
  movapd %xmm4,%xmm15
  cmpnlesd %xmm0,%xmm15
  andpd  %xmm11,%xmm15
  subsd  %xmm15,%xmm4
  movapd %xmm14,%xmm15
  andnpd %xmm0,%xmm15
  orpd   %xmm15,%xmm4
  movapd %xmm4,%xmm0
L177:
  mulsd  %xmm7,%xmm0
  add    $0x1,%eax
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%r13d
  add    %edx,%r13d
  movslq %r13d,%r13
  movsd  (%rbx,%r13,8),%xmm1
  movsd  (%r15,%r13,8),%xmm0
  movapd %xmm1,%xmm4
  movapd %xmm0,%xmm15
  mulsd  %xmm3,%xmm4
  mulsd  %xmm2,%xmm15
  mulsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm1
  subsd  %xmm15,%xmm4
  addsd  %xmm1,%xmm0
  addsd  %xmm4,%xmm5
  addsd  %xmm0,%xmm6
  cmp    %edi,%eax
  jne    L14
L95:
  movsd  -0x60(%rsp),%xmm7
  movapd %xmm9,%xmm0
  add    $0x1,%r8d
  mulsd  %xmm5,%xmm0
  mulsd  %xmm6,%xmm9
  movapd %xmm7,%xmm1
  mulsd  %xmm6,%xmm1
  mulsd  %xmm5,%xmm7
  subsd  %xmm1,%xmm0
  addsd  -0x78(%rsp),%xmm0
  addsd  %xmm7,%xmm9
  addsd  -0x70(%rsp),%xmm9
  movsd  %xmm0,-0x78(%rsp)
  movsd  %xmm9,-0x70(%rsp)
  cmp    -0x44(%rsp),%r8d
  jne    L60
  movapd %xmm9,%xmm3
L137:
  movsd  -0x20(%rsp),%xmm6
  movsd  -0x18(%rsp),%xmm5
  movsd  -0x78(%rsp),%xmm7
  addl   $0x1,-0x3c(%rsp)
  movapd %xmm6,%xmm0
  movapd %xmm5,%xmm1
  mov    -0x3c(%rsp),%eax
  mulsd  %xmm7,%xmm0
  mulsd  %xmm3,%xmm1
  mulsd  %xmm3,%xmm6
  mulsd  %xmm7,%xmm5
  subsd  %xmm1,%xmm0
  addsd  -0x38(%rsp),%xmm0
  movsd  %xmm0,-0x38(%rsp)
  movapd %xmm6,%xmm0
  addsd  %xmm5,%xmm0
  addsd  -0x30(%rsp),%xmm0
  movsd  %xmm0,-0x30(%rsp)
  cmp    0xc(%rsp),%eax
  jne    L42
  movapd %xmm0,%xmm5
L157:
  addq   $0x8,0xf0(%rsp)
  movsd  -0x38(%rsp),%xmm6
  mov    0xf0(%rsp),%rax
  addq   $0x8,0xf8(%rsp)
  movsd  %xmm6,-0x8(%rax)
  mov    0xf8(%rsp),%rax
  movsd  %xmm5,-0x8(%rax)
  mov    0x40(%rsp),%rax
  cmp    %rax,0xe0(%rsp)
  jne    L118
L221:
  add    $0x50,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L185:
  pxor   %xmm6,%xmm6
  movapd %xmm6,%xmm5
  jmp    L95
L74:
  movq   $0x0,-0x70(%rsp)
  movsd  -0x70(%rsp),%xmm3
  movq   $0x0,-0x78(%rsp)
  jmp    L137
L171:
  movq   $0x0,-0x30(%rsp)
  movsd  -0x30(%rsp),%xmm5
  movq   $0x0,-0x38(%rsp)
  jmp    L157
```

tool_calls: name: parse_data
arguments: tag: D22
data_type: byte[8]
name: parse_data
arguments: tag: D45
data_type: f64
name: parse_data
arguments: tag: D56
data_type: f32[2]
name: parse_data
arguments: tag: D50
data_type: f32[2]

tool: {"D22": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f]}

tool: D45: 0.5

tool: {"D56": [0.0,176.0]}

tool: {"D50": [0.0,1.875]}

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