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

```asm
<wigNaiveSynthesis_symX>:
  endbr64
  push   %r15
  mov    %rcx,%r10
  mov    %edi,%ecx
  mov    %edi,%eax
  push   %r14
  movsd  D10(%rip),%xmm4
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  mov    %esi,%edx
  neg    %edx
  cmovs  %esi,%edx
  neg    %ecx
  cmovs  %edi,%ecx
  cmp    %ecx,%edx
  cmovl  %ecx,%edx
  sub    %esi,%edi
  lea    (%rbx,%rbx,1),%ecx
  sub    %esi,%eax
  mov    %edi,%r11d
  and    $0x1,%eax
  and    $0x1,%r11d
  test   %edi,%edi
  cmovg  %r11d,%eax
  test   %al,%al
  jne    L42
  movsd  D18(%rip),%xmm4
L42:
  test   %ecx,%ecx
  jle    L27
  sub    %edx,%ebx
  xor    %ebp,%ebp
  pxor   %xmm3,%xmm3
  mov    %ebx,%eax
  movslq %ebx,%r12
  lea    -0x1(%rbx),%esi
  sar    $0x1f,%eax
  shl    $0x3,%r12
  shr    $0x1e,%eax
  lea    (%rbx,%rax,1),%edi
  and    $0x3,%edi
  sub    %eax,%edi
  lea    -0x1(%rcx),%eax
  mov    %edi,%r11d
  lea    0x8(%r9,%rax,8),%r14
  and    $0xfffffffe,%r11d
  test   %edi,%edi
  cmovns %edi,%ebp
  sub    %ebp,%esi
  movslq %ebp,%r13
  shr    $0x2,%esi
  shl    $0x3,%r13
  add    $0x1,%esi
  lea    (%r10,%r13,1),%rcx
  nopl   0x0(%rax)
L36:
  movapd %xmm3,%xmm0
  test   %edi,%edi
  jle    L6
  cmp    $0x1,%edi
  je     L80
  movupd (%r10),%xmm1
  movupd (%r8),%xmm5
  movslq %r11d,%rax
  mulpd  %xmm5,%xmm1
  movapd %xmm1,%xmm0
  unpckhpd %xmm1,%xmm1
  addsd  %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  cmp    %edi,%r11d
  je     L6
L60:
  movsd  (%r10,%rax,8),%xmm1
  mulsd  (%r8,%rax,8),%xmm1
  addsd  %xmm1,%xmm0
L6:
  cmp    %ebp,%ebx
  jle    L58
  lea    (%r8,%r13,1),%r15
  movq   %xmm0,%xmm2
  xor    %eax,%eax
  xor    %edx,%edx
  pxor   %xmm1,%xmm1
  nopw   0x0(%rax,%rax,1)
L23:
  movupd (%rcx,%rax,1),%xmm0
  movupd (%r15,%rax,1),%xmm6
  add    $0x1,%edx
  movupd 0x10(%r15,%rax,1),%xmm7
  mulpd  %xmm6,%xmm0
  addpd  %xmm0,%xmm2
  movupd 0x10(%rcx,%rax,1),%xmm0
  add    $0x20,%rax
  mulpd  %xmm7,%xmm0
  addpd  %xmm0,%xmm1
  cmp    %esi,%edx
  jb     L23
  movapd %xmm2,%xmm0
  movapd %xmm1,%xmm5
  unpckhpd %xmm2,%xmm2
  unpckhpd %xmm1,%xmm1
L99:
  addsd  %xmm2,%xmm0
  add    $0x8,%r9
  add    %r12,%r8
  addsd  %xmm5,%xmm0
  addsd  %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
  movsd  %xmm0,-0x8(%r9)
  cmp    %r14,%r9
  jne    L36
L27:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L58:
  movapd %xmm3,%xmm1
  movapd %xmm3,%xmm5
  movapd %xmm3,%xmm2
  jmp    L99
L80:
  movapd %xmm3,%xmm0
  xor    %eax,%eax
  jmp    L60
```

tool_calls: name: parse_data
arguments: data_tag: D10
type_guessed: f32[2]
name: parse_data
arguments: data_tag: D18
type_guessed: f32[2]

tool: {"D10": [0.0,-1.875]}

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

assistant: ```c
void wigNaiveSynthesis_symX(int m1, int m2, int bw, double *coeffs, double *wignersTrans, double *signal, double *workspace) {
  int i, j, m, n;
  int fudge;
  double tmp0, tmp1, tmp2, tmp3;
  m = ((((m1) > 0 ? (m1) : (-m1))) > (((m2) > 0 ? (m2) : (-m2))) ? (((m1) > 0 ? (m1) : (-m1))) : (((m2) > 0 ? (m2) : (-m2))));
  n = 2 * bw;
  if (((m1 - m2) > 0 ? (m1 - m2) : (-m1 - m2)) % 2)
    fudge = -1;
  else
    fudge = 1;
  for (i = 0; i < n; i++) {
    tmp0 = 0.;
    tmp1 = 0.;
    tmp2 = 0.;
    tmp3 = 0.;
    for (j = 0; j < (bw - m) % 4; ++j)
      tmp0 += wignersTrans[j] * coeffs[j];
    for (; j < (bw - m); j += 4) {
      tmp0 += wignersTrans[j] * coeffs[j];
      tmp1 += wignersTrans[j + 1] * coeffs[j + 1];
      tmp2 += wignersTrans[j + 2] * coeffs[j + 2];
      tmp3 += wignersTrans[j + 3] * coeffs[j + 3];
    }
    signal[i] = fudge * (tmp0 + tmp1 + tmp2 + tmp3);
    wignersTrans += (bw - m);
  }
}
```