user: Demonstrate the C code that generates the assembly output below:

```asm
<wigNaiveAnalysis_symX>:
  endbr64
  push   %r15
  mov    %edi,%eax
  mov    %rcx,%r10
  mov    %r9,%rdi
  push   %r14
  mov    %esi,%r14d
  push   %r13
  mov    %edx,%r13d
  mov    %eax,%edx
  push   %r12
  lea    0x0(%r13,%r13,1),%r12d
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0x8,%rsp
  neg    %r14d
  cmovs  %esi,%r14d
  neg    %edx
  mov    0x48(%rsp),%rbp
  cmovs  %eax,%edx
  cmp    %edx,%r14d
  cmovl  %edx,%r14d
  mov    %eax,%edx
  sub    %esi,%eax
  sub    %esi,%edx
  and    $0x1,%eax
  mov    %r10,%rsi
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   %edx,%edx
  mov    %rbp,%rdx
  cmovg  %ecx,%eax
  mov    %r12d,%ecx
  cmp    $0x1,%al
  sbb    %r15d,%r15d
  sub    %r14d,%r13d
  call   <vec_pt_mul_so3@plt>
  and    $0x2,%r15d
  sub    $0x1,%r15d
  test   %r13d,%r13d
  jle    L69
  mov    %r12d,%eax
  movslq %r12d,%r8
  xor    %edi,%edi
  mov    0x40(%rsp),%rsi
  sar    $0x1f,%eax
  shl    $0x3,%r8
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  shr    $0x1e,%eax
  cvtsi2sd %r15d,%xmm4
  lea    (%r12,%rax,1),%ecx
  and    $0x3,%ecx
  sub    %eax,%ecx
  lea    -0x1(%r13),%eax
  test   %ecx,%ecx
  lea    0x8(%rsi,%rax,8),%r9
  lea    -0x1(%r12),%eax
  cmovns %ecx,%edi
  sub    %rdi,%rax
  movslq %edi,%rdx
  and    $0xfffffffc,%eax
  lea    0x0(,%rdx,8),%r10
  add    %rdx,%rax
  lea    0x0(%rbp,%r10,1),%r13
  lea    0x20(,%rax,8),%r11
  nopl   (%rax)
L39:
  xor    %eax,%eax
  movapd %xmm3,%xmm1
  test   %ecx,%ecx
  jle    L10
L52:
  movsd  (%rbx,%rax,8),%xmm0
  mulsd  0x0(%rbp,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %eax,%ecx
  jg     L52
L10:
  cmp    %edi,%r12d
  jle    L31
  lea    (%rbx,%r10,1),%rax
  lea    (%rbx,%r11,1),%r14
  movapd %xmm3,%xmm2
  mov    %r13,%rdx
  movapd %xmm3,%xmm5
  movapd %xmm3,%xmm6
  nopl   0x0(%rax)
L35:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x20,%rax
  add    $0x20,%rdx
  addsd  %xmm0,%xmm1
  movsd  -0x18(%rax),%xmm0
  mulsd  -0x18(%rdx),%xmm0
  addsd  %xmm0,%xmm6
  movsd  -0x10(%rax),%xmm0
  mulsd  -0x10(%rdx),%xmm0
  addsd  %xmm0,%xmm5
  movsd  -0x8(%rax),%xmm0
  mulsd  -0x8(%rdx),%xmm0
  addsd  %xmm0,%xmm2
  cmp    %rax,%r14
  jne    L35
L3:
  addsd  %xmm6,%xmm1
  add    $0x8,%rsi
  add    %r8,%rbx
  addsd  %xmm5,%xmm1
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  movsd  %xmm1,-0x8(%rsi)
  cmp    %rsi,%r9
  jne    L39
L69:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L31:
  movapd %xmm3,%xmm2
  movapd %xmm3,%xmm5
  movapd %xmm3,%xmm6
  jmp    L3
```

assistant: ```c
void wigNaiveAnalysis_symX(int m1, int m2, int bw, double *signal, double *wigners, double *weights, double *coeffs, 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;
  vec_pt_mul_so3(weights, signal, workspace, n);
  for (i = 0; i < bw - m; i++) {
    tmp0 = 0.;
    tmp1 = 0.;
    tmp2 = 0.;
    tmp3 = 0.;
    for (j = 0; j < n % 4; ++j)
      tmp0 += wigners[j] * workspace[j];
    for (; j < n; j += 4) {
      tmp0 += wigners[j] * workspace[j];
      tmp1 += wigners[j + 1] * workspace[j + 1];
      tmp2 += wigners[j + 2] * workspace[j + 2];
      tmp3 += wigners[j + 3] * workspace[j + 3];
    }
    coeffs[i] = fudge * (tmp0 + tmp1 + tmp2 + tmp3);
    wigners += n;
  }
}
```