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
  cmpq   $0x0,0x60(%rsp)
  mov    0x38(%rsp),%r10
  mov    0x40(%rsp),%r11
  jle    L8
  mov    0x58(%rsp),%rax
  mov    0x58(%rsp),%r14
  xor    %r15d,%r15d
  mov    0x58(%rsp),%rbx
  mov    0x48(%rsp),%r12
  shl    $0x5,%rax
  shl    $0x6,%r14
  mov    %rax,-0x8(%rsp)
  mov    0x50(%rsp),%rax
  shl    $0x4,%rbx
  lea    0x8(%r12),%r13
  lea    0x8(%rax),%rbp
  nopw   0x0(%rax,%rax,1)
L0:
  movsd  -0x8(%r13),%xmm5
  cmpq   $0x0,0x58(%rsp)
  movsd  0x0(%r13),%xmm10
  movsd  (%r12),%xmm12
  movsd  0x8(%r12),%xmm13
  movsd  -0x8(%rbp),%xmm14
  movsd  %xmm5,-0x10(%rsp)
  movsd  0x0(%rbp),%xmm15
  jle    L25
  xor    %eax,%eax
  nopl   0x0(%rax)
L29:
  movsd  -0x10(%rsp),%xmm6
  movsd  (%r9,%rax,1),%xmm2
  movsd  0x8(%r9,%rax,1),%xmm0
  movsd  (%r10,%rax,1),%xmm4
  movapd %xmm6,%xmm1
  movsd  (%r8,%rax,1),%xmm5
  movsd  (%r11,%rax,1),%xmm9
  mulsd  %xmm2,%xmm1
  movapd %xmm4,%xmm3
  movsd  0x8(%r11,%rax,1),%xmm7
  mulsd  %xmm12,%xmm3
  movapd %xmm5,%xmm8
  subsd  %xmm0,%xmm1
  mulsd  %xmm6,%xmm0
  addsd  %xmm2,%xmm0
  movsd  0x8(%r10,%rax,1),%xmm2
  subsd  %xmm2,%xmm3
  mulsd  %xmm12,%xmm2
  mulsd  %xmm13,%xmm3
  addsd  %xmm2,%xmm4
  mulsd  %xmm13,%xmm4
  addsd  %xmm3,%xmm8
  subsd  %xmm3,%xmm5
  movsd  0x8(%r8,%rax,1),%xmm3
  movapd %xmm3,%xmm6
  addsd  %xmm4,%xmm6
  subsd  %xmm4,%xmm3
  movapd %xmm9,%xmm4
  mulsd  %xmm14,%xmm4
  subsd  %xmm7,%xmm4
  mulsd  %xmm14,%xmm7
  mulsd  %xmm15,%xmm4
  addsd  %xmm9,%xmm7
  movapd %xmm4,%xmm9
  movapd %xmm7,%xmm2
  addsd  %xmm1,%xmm9
  mulsd  %xmm15,%xmm2
  subsd  %xmm4,%xmm1
  mulsd  %xmm10,%xmm9
  mulsd  %xmm10,%xmm1
  movapd %xmm9,%xmm7
  addsd  %xmm8,%xmm7
  subsd  %xmm9,%xmm8
  movsd  %xmm7,(%rdi,%rax,1)
  movapd %xmm2,%xmm7
  addsd  %xmm0,%xmm7
  subsd  %xmm2,%xmm0
  movapd %xmm5,%xmm2
  movsd  %xmm8,(%rdx,%rax,1)
  mulsd  %xmm10,%xmm0
  mulsd  %xmm10,%xmm7
  subsd  %xmm0,%xmm2
  addsd  %xmm5,%xmm0
  movapd %xmm7,%xmm11
  addsd  %xmm6,%xmm11
  subsd  %xmm7,%xmm6
  movsd  %xmm2,(%rsi,%rax,1)
  movapd %xmm1,%xmm2
  addsd  %xmm3,%xmm2
  subsd  %xmm1,%xmm3
  movsd  %xmm0,(%rcx,%rax,1)
  movsd  %xmm11,0x8(%rdi,%rax,1)
  movsd  %xmm6,0x8(%rdx,%rax,1)
  movsd  %xmm2,0x8(%rsi,%rax,1)
  movsd  %xmm3,0x8(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rbx
  jne    L29
L25:
  add    %r14,%r8
  add    %r14,%r9
  add    %r14,%r10
  add    %r14,%r11
  add    %rbx,%rdi
  add    %rbx,%rsi
  add    %rbx,%rdx
  add    %rbx,%rcx
  add    $0x1,%r15
  add    -0x8(%rsp),%r12
  add    %rbx,%r13
  add    %rbx,%rbp
  cmp    %r15,0x60(%rsp)
  jne    L0
L8:
  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;
  }
}
```