user: Please show me the C implementation that matches the assembly code listed below:

```asm
<kern_r4_fma_n_b>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%r10
  mov    0x40(%rsp),%r11
  mov    0x48(%rsp),%r12
  cmpq   $0x0,0x60(%rsp)
  jle    L29
  mov    0x58(%rsp),%rax
  shl    $0x6,%rax
  mov    %rax,-0x10(%rsp)
  mov    0x58(%rsp),%rbp
  shl    $0x4,%rbp
  mov    0x58(%rsp),%rax
  shl    $0x5,%rax
  mov    %rax,-0x8(%rsp)
  mov    %r12,%r14
  add    $0x8,%r12
  mov    0x50(%rsp),%rax
  lea    0x8(%rax),%r13
  mov    $0x0,%r15d
L22:
  movsd  -0x8(%r12),%xmm11
  movsd  (%r12),%xmm10
  movsd  (%r14),%xmm12
  movsd  0x8(%r14),%xmm13
  movsd  -0x8(%r13),%xmm14
  movsd  0x0(%r13),%xmm15
  cmpq   $0x0,0x58(%rsp)
  jle    L2
  mov    $0x0,%eax
  movsd  %xmm11,-0x18(%rsp)
L10:
  movsd  (%r9,%rax,1),%xmm2
  movsd  0x8(%r9,%rax,1),%xmm0
  movapd %xmm2,%xmm1
  movsd  -0x18(%rsp),%xmm5
  mulsd  %xmm5,%xmm1
  subsd  %xmm0,%xmm1
  mulsd  %xmm5,%xmm0
  addsd  %xmm2,%xmm0
  movsd  (%r10,%rax,1),%xmm4
  movsd  0x8(%r10,%rax,1),%xmm2
  movsd  (%r11,%rax,1),%xmm9
  movsd  0x8(%r11,%rax,1),%xmm7
  movsd  (%r8,%rax,1),%xmm5
  movapd %xmm4,%xmm3
  mulsd  %xmm12,%xmm3
  subsd  %xmm2,%xmm3
  mulsd  %xmm13,%xmm3
  movapd %xmm5,%xmm8
  addsd  %xmm3,%xmm8
  subsd  %xmm3,%xmm5
  movsd  0x8(%r8,%rax,1),%xmm3
  mulsd  %xmm12,%xmm2
  addsd  %xmm2,%xmm4
  mulsd  %xmm13,%xmm4
  movapd %xmm3,%xmm6
  addsd  %xmm4,%xmm6
  subsd  %xmm4,%xmm3
  movapd %xmm9,%xmm4
  mulsd  %xmm14,%xmm4
  subsd  %xmm7,%xmm4
  mulsd  %xmm15,%xmm4
  mulsd  %xmm14,%xmm7
  addsd  %xmm9,%xmm7
  movapd %xmm7,%xmm2
  mulsd  %xmm15,%xmm2
  movapd %xmm4,%xmm9
  addsd  %xmm1,%xmm9
  mulsd  %xmm10,%xmm9
  movapd %xmm9,%xmm7
  addsd  %xmm8,%xmm7
  movsd  %xmm7,(%rdi,%rax,1)
  movapd %xmm2,%xmm7
  addsd  %xmm0,%xmm7
  mulsd  %xmm10,%xmm7
  movapd %xmm7,%xmm11
  addsd  %xmm6,%xmm11
  movsd  %xmm11,0x8(%rdi,%rax,1)
  subsd  %xmm9,%xmm8
  movsd  %xmm8,(%rdx,%rax,1)
  subsd  %xmm7,%xmm6
  movsd  %xmm6,0x8(%rdx,%rax,1)
  subsd  %xmm2,%xmm0
  mulsd  %xmm10,%xmm0
  movapd %xmm5,%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,(%rsi,%rax,1)
  subsd  %xmm4,%xmm1
  mulsd  %xmm10,%xmm1
  movapd %xmm1,%xmm2
  addsd  %xmm3,%xmm2
  movsd  %xmm2,0x8(%rsi,%rax,1)
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%rcx,%rax,1)
  subsd  %xmm1,%xmm3
  movsd  %xmm3,0x8(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rbp
  jne    L10
L2:
  mov    -0x10(%rsp),%rax
  add    %rax,%r8
  add    %rax,%r9
  add    %rax,%r10
  add    %rax,%r11
  add    %rbp,%rdi
  add    %rbp,%rsi
  add    %rbp,%rdx
  add    %rbp,%rcx
  add    $0x1,%r15
  add    -0x8(%rsp),%r14
  add    %rbp,%r12
  add    %rbp,%r13
  cmp    %r15,0x60(%rsp)
  jne    L22
L29:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void kern_r4_fma_n_b(double *restrict o0, double *restrict o1, double *restrict o2, double *restrict o3, double *i0, double *i1, double *i2, double *i3, double *w, double *w2, long bsize, long blocks) {
  long i, j;
  for (i = 0; i < blocks; i++) {
    double wr1, wi1;
    double wr2, wi2;
    double wr3, wi13;
    wr1 = w[2 * i * bsize];
    wi1 = w[2 * i * bsize + 1];
    wr2 = w[4 * i * bsize];
    wi2 = w[4 * i * bsize + 1];
    wr3 = w2[2 * i * bsize];
    wi13 = w2[2 * i * bsize + 1];
    for (j = 0; j < bsize; j++) {
      double pr1, pi1;
      double pr2, pi2;
      double pr3, pi3;
      double qr0, qi0;
      double qr1, qi1;
      double qr2, qi2;
      double qr3, qi3;
      pr1 = i1[2 * j] * wr1 - i1[2 * j + 1];
      pi1 = i1[2 * j] + i1[2 * j + 1] * wr1;
      pr2 = i2[2 * j] * wr2 - i2[2 * j + 1];
      pi2 = i2[2 * j] + i2[2 * j + 1] * wr2;
      pr3 = i3[2 * j] * wr3 - i3[2 * j + 1];
      pi3 = i3[2 * j] + i3[2 * j + 1] * wr3;
      qr0 = i0[2 * j] + pr2 * wi2;
      qr2 = i0[2 * j] - pr2 * wi2;
      qi0 = i0[2 * j + 1] + pi2 * wi2;
      qi2 = i0[2 * j + 1] - pi2 * wi2;
      qr1 = pr1 + pr3 * wi13;
      qr3 = pr1 - pr3 * wi13;
      qi1 = pi1 + pi3 * wi13;
      qi3 = pi1 - pi3 * wi13;
      o0[2 * j] = qr0 + qr1 * wi1;
      o0[2 * j + 1] = qi0 + qi1 * wi1;
      o2[2 * j] = qr0 - qr1 * wi1;
      o2[2 * j + 1] = qi0 - qi1 * wi1;
      o1[2 * j] = qr2 - qi3 * wi1;
      o1[2 * j + 1] = qi2 + qr3 * wi1;
      o3[2 * j] = qr2 + qi3 * wi1;
      o3[2 * j + 1] = qi2 - qr3 * wi1;
    }
    i0 += 8 * bsize;
    i1 += 8 * bsize;
    i2 += 8 * bsize;
    i3 += 8 * bsize;
    o0 += 2 * bsize;
    o1 += 2 * bsize;
    o2 += 2 * bsize;
    o3 += 2 * bsize;
  }
}
```