user: Converte this assembly snippet into its equivalent C code:

```asm
<kernel_dtrinv_4x4_lib4>:
  endbr64
  sub    $0xb0,%rsp
  movsd  (%rsi),%xmm7
  mov    %rdx,%rax
  movsd  (%rdx),%xmm1
  movupd (%rsi),%xmm0
  movsd  0x10(%rdx),%xmm8
  mov    %rcx,%r9
  mulsd  %xmm7,%xmm1
  movupd 0x60(%rdx),%xmm2
  movupd 0x70(%rdx),%xmm3
  unpcklpd %xmm0,%xmm0
  movsd  0x28(%rsi),%xmm10
  movsd  0x20(%rdx),%xmm14
  movaps %xmm0,-0x38(%rsp)
  pxor   %xmm0,%xmm0
  movsd  0x28(%rdx),%xmm13
  movupd 0x20(%rdx),%xmm15
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm11
  movapd %xmm0,%xmm9
  movupd 0x60(%rsi),%xmm4
  mulsd  %xmm7,%xmm8
  movapd %xmm0,%xmm12
  movupd 0x70(%rsi),%xmm5
  shufpd $0x1,%xmm15,%xmm15
  subsd  %xmm1,%xmm6
  movsd  0x8(%rdx),%xmm1
  mulsd  %xmm7,%xmm1
  mulsd  0x18(%rdx),%xmm7
  subsd  %xmm8,%xmm11
  movupd 0x20(%rsi),%xmm8
  unpckhpd %xmm8,%xmm8
  subsd  %xmm1,%xmm12
  movaps %xmm8,-0x18(%rsp)
  movupd 0x20(%rsi),%xmm1
  subsd  %xmm7,%xmm9
  movsd  0x20(%rsi),%xmm7
  unpcklpd %xmm1,%xmm1
  movapd %xmm7,%xmm8
  movaps %xmm1,0x38(%rsp)
  movupd 0x30(%rdx),%xmm1
  mulsd  %xmm14,%xmm8
  mulsd  %xmm10,%xmm14
  shufpd $0x1,%xmm1,%xmm1
  movaps %xmm1,0x18(%rsp)
  movapd %xmm0,%xmm1
  subsd  %xmm8,%xmm6
  movapd %xmm5,%xmm8
  subsd  %xmm14,%xmm1
  movapd %xmm7,%xmm14
  unpcklpd %xmm5,%xmm8
  mulsd  %xmm13,%xmm14
  mulsd  %xmm10,%xmm13
  subsd  %xmm14,%xmm12
  movupd 0x40(%rsi),%xmm14
  unpckhpd %xmm14,%xmm14
  movq   %xmm12,%r10
  movapd %xmm0,%xmm12
  subsd  %xmm13,%xmm12
  movsd  0x30(%rdx),%xmm13
  mulsd  %xmm7,%xmm13
  mulsd  0x38(%rdx),%xmm7
  subsd  %xmm13,%xmm11
  movapd %xmm0,%xmm13
  subsd  %xmm7,%xmm9
  movsd  0x38(%rax),%xmm7
  mulsd  %xmm10,%xmm7
  movq   %xmm11,%rcx
  movsd  0x30(%rdx),%xmm11
  movq   %xmm9,%rdx
  mulsd  %xmm10,%xmm11
  movapd %xmm7,%xmm9
  movapd %xmm0,%xmm7
  subsd  %xmm9,%xmm7
  subsd  %xmm11,%xmm13
  movupd 0x50(%rsi),%xmm11
  movq   %xmm7,%r11
  movupd 0x40(%rsi),%xmm7
  unpcklpd %xmm11,%xmm11
  movsd  %xmm13,0x68(%rsp)
  movapd %xmm4,%xmm13
  unpcklpd %xmm4,%xmm13
  unpcklpd %xmm7,%xmm7
  movaps %xmm7,0x48(%rsp)
  movaps %xmm11,-0x78(%rsp)
  movapd %xmm13,%xmm11
  movapd %xmm4,%xmm13
  movsd  0x40(%rax),%xmm10
  unpckhpd %xmm4,%xmm13
  movaps %xmm8,0x8(%rsp)
  movapd %xmm2,%xmm8
  movupd 0x40(%rax),%xmm9
  movaps %xmm13,0x28(%rsp)
  movapd %xmm5,%xmm13
  unpcklpd %xmm2,%xmm8
  movupd 0x50(%rax),%xmm7
  unpckhpd %xmm5,%xmm13
  shufpd $0x1,%xmm9,%xmm9
  movaps %xmm13,-0x58(%rsp)
  movsd  0x40(%rsi),%xmm13
  shufpd $0x1,%xmm7,%xmm7
  mulsd  %xmm10,%xmm13
  subsd  %xmm13,%xmm6
  movsd  0x48(%rsi),%xmm13
  mulsd  %xmm10,%xmm13
  mulsd  0x50(%rsi),%xmm10
  subsd  %xmm13,%xmm1
  unpcklpd %xmm1,%xmm6
  movapd %xmm8,%xmm1
  mulpd  %xmm4,%xmm1
  subpd  %xmm1,%xmm6
  movapd %xmm6,%xmm13
  movapd %xmm0,%xmm6
  subsd  %xmm10,%xmm6
  movapd %xmm8,%xmm10
  movapd -0x38(%rsp),%xmm8
  mulpd  %xmm5,%xmm10
  movq   %xmm6,%xmm6
  subpd  %xmm10,%xmm6
  movapd %xmm2,%xmm10
  shufpd $0x1,%xmm2,%xmm10
  unpckhpd %xmm2,%xmm2
  movaps %xmm6,0x58(%rsp)
  movupd (%rax),%xmm6
  shufpd $0x1,%xmm6,%xmm6
  mulpd  %xmm6,%xmm8
  pxor   %xmm6,%xmm6
  movapd %xmm6,%xmm1
  subpd  %xmm8,%xmm1
  movapd 0x38(%rsp),%xmm8
  mulpd  %xmm15,%xmm8
  mulpd  -0x18(%rsp),%xmm15
  subpd  %xmm8,%xmm1
  movapd 0x48(%rsp),%xmm8
  mulpd  %xmm9,%xmm8
  subpd  %xmm8,%xmm1
  movapd %xmm10,%xmm8
  mulpd  %xmm11,%xmm8
  subpd  %xmm8,%xmm1
  movapd %xmm6,%xmm8
  subpd  %xmm15,%xmm8
  movapd %xmm9,%xmm15
  mulpd  %xmm14,%xmm15
  movaps %xmm1,-0x48(%rsp)
  movapd 0x8(%rsp),%xmm1
  mulpd  %xmm7,%xmm14
  mulpd  -0x78(%rsp),%xmm9
  mulpd  %xmm10,%xmm1
  subpd  %xmm15,%xmm8
  movapd 0x28(%rsp),%xmm15
  mulpd  %xmm10,%xmm15
  mulpd  -0x58(%rsp),%xmm10
  subpd  %xmm15,%xmm8
  movapd %xmm6,%xmm15
  subpd  %xmm9,%xmm15
  movaps %xmm8,-0x28(%rsp)
  movapd %xmm6,%xmm8
  subpd  %xmm10,%xmm8
  movsd  0x48(%rsi),%xmm10
  subpd  %xmm1,%xmm15
  mulsd  0x48(%rax),%xmm10
  movq   %rcx,%xmm1
  movaps %xmm8,-0x68(%rsp)
  movsd  0x40(%rsi),%xmm8
  mulsd  0x48(%rax),%xmm8
  movaps %xmm15,-0x8(%rsp)
  subsd  %xmm10,%xmm12
  movapd %xmm8,%xmm9
  movq   %r10,%xmm8
  subsd  %xmm9,%xmm8
  unpcklpd %xmm12,%xmm8
  movapd %xmm2,%xmm12
  mulpd  %xmm4,%xmm12
  mulpd  %xmm5,%xmm2
  movapd %xmm12,%xmm9
  movapd %xmm8,%xmm12
  subpd  %xmm9,%xmm12
  movapd %xmm12,%xmm15
  movsd  0x50(%rsi),%xmm12
  mulsd  0x48(%rax),%xmm12
  movapd %xmm12,%xmm8
  movapd %xmm0,%xmm12
  subsd  %xmm8,%xmm12
  movq   %xmm12,%xmm9
  movapd %xmm9,%xmm12
  subpd  %xmm2,%xmm12
  movapd %xmm3,%xmm2
  unpcklpd %xmm3,%xmm2
  movapd %xmm2,%xmm9
  movsd  0x40(%rsi),%xmm2
  mulsd  0x50(%rax),%xmm2
  subsd  %xmm2,%xmm1
  movsd  0x48(%rsi),%xmm2
  mulsd  0x50(%rax),%xmm2
  movsd  0x68(%rsp),%xmm10
  subsd  %xmm2,%xmm10
  movapd %xmm9,%xmm2
  mulpd  %xmm4,%xmm2
  mulpd  %xmm5,%xmm9
  unpcklpd %xmm10,%xmm1
  movupd 0x10(%rax),%xmm10
  shufpd $0x1,%xmm10,%xmm10
  subpd  %xmm2,%xmm1
  movsd  0x50(%rsi),%xmm2
  mulsd  0x50(%rax),%xmm2
  movapd %xmm2,%xmm8
  movapd %xmm0,%xmm2
  subsd  %xmm8,%xmm2
  movapd %xmm3,%xmm8
  shufpd $0x1,%xmm3,%xmm8
  mulpd  %xmm8,%xmm11
  unpckhpd %xmm3,%xmm3
  mulpd  %xmm3,%xmm4
  mulpd  %xmm5,%xmm3
  movq   %xmm2,%xmm2
  subpd  %xmm9,%xmm2
  movapd -0x38(%rsp),%xmm9
  mulpd  %xmm10,%xmm9
  movapd %xmm6,%xmm10
  subpd  %xmm9,%xmm10
  movapd 0x38(%rsp),%xmm9
  mulpd  0x18(%rsp),%xmm9
  subpd  %xmm9,%xmm10
  movapd 0x48(%rsp),%xmm9
  mulpd  %xmm7,%xmm9
  mulpd  -0x78(%rsp),%xmm7
  subpd  %xmm9,%xmm10
  movapd -0x18(%rsp),%xmm9
  mulpd  0x18(%rsp),%xmm9
  subpd  %xmm11,%xmm10
  movaps %xmm10,-0x38(%rsp)
  movapd %xmm6,%xmm10
  subpd  %xmm9,%xmm10
  movapd 0x28(%rsp),%xmm9
  mulpd  %xmm8,%xmm9
  subpd  %xmm14,%xmm10
  subpd  %xmm9,%xmm10
  movapd %xmm6,%xmm9
  subpd  %xmm7,%xmm9
  movapd 0x8(%rsp),%xmm7
  mulpd  %xmm8,%xmm7
  movaps %xmm10,-0x18(%rsp)
  subpd  %xmm7,%xmm9
  movapd -0x58(%rsp),%xmm7
  mulpd  %xmm8,%xmm7
  movq   %r11,%xmm8
  movaps %xmm9,-0x78(%rsp)
  subpd  %xmm7,%xmm6
  movsd  0x40(%rsi),%xmm7
  mulsd  0x58(%rax),%xmm7
  movaps %xmm6,-0x58(%rsp)
  movq   %rdx,%xmm6
  subsd  %xmm7,%xmm6
  movsd  0x48(%rsi),%xmm7
  mulsd  0x58(%rax),%xmm7
  subsd  %xmm7,%xmm8
  unpcklpd %xmm8,%xmm6
  subpd  %xmm4,%xmm6
  movsd  0x50(%rsi),%xmm4
  mulsd  0x58(%rax),%xmm4
  subsd  %xmm4,%xmm0
  movq   %xmm0,%xmm0
  subpd  %xmm3,%xmm0
  cmp    $0x7,%edi
  jle    L14
  sub    $0x8,%edi
  sub    $0xffffffffffffff80,%rax
  lea    0x80(%rsi),%rdx
  xor    %ecx,%ecx
  shr    $0x2,%edi
  add    $0x1,%edi
  nopw   0x0(%rax,%rax,1)
L13:
  movupd (%rdx),%xmm13
  movupd (%rdx),%xmm7
  add    $0x1,%ecx
  sub    $0xffffffffffffff80,%rax
  movupd 0x30(%rdx),%xmm1
  movupd 0x10(%rdx),%xmm14
  sub    $0xffffffffffffff80,%rdx
  unpckhpd %xmm13,%xmm13
  movupd -0x70(%rax),%xmm5
  movupd -0x80(%rax),%xmm15
  unpcklpd %xmm7,%xmm7
  unpckhpd %xmm1,%xmm1
  movupd -0x60(%rdx),%xmm4
  movupd -0x60(%rdx),%xmm0
  movaps %xmm13,0x98(%rsp)
  movapd %xmm1,%xmm13
  movupd -0x30(%rdx),%xmm1
  movupd -0x50(%rax),%xmm3
  shufpd $0x1,%xmm5,%xmm5
  unpckhpd %xmm14,%xmm14
  unpckhpd %xmm4,%xmm4
  movupd -0x20(%rdx),%xmm2
  shufpd $0x1,%xmm15,%xmm15
  unpcklpd %xmm1,%xmm1
  movaps %xmm15,0x78(%rsp)
  movapd %xmm5,%xmm15
  movupd -0x20(%rdx),%xmm10
  mulpd  %xmm14,%xmm15
  movaps %xmm7,0x88(%rsp)
  unpcklpd %xmm0,%xmm0
  movapd %xmm1,%xmm7
  movaps %xmm4,0x68(%rsp)
  movupd -0x40(%rdx),%xmm1
  shufpd $0x1,%xmm3,%xmm3
  movapd %xmm3,%xmm4
  movupd -0x40(%rdx),%xmm3
  movaps %xmm0,0x58(%rsp)
  movupd -0x60(%rax),%xmm0
  unpckhpd %xmm2,%xmm2
  unpckhpd %xmm1,%xmm1
  unpcklpd %xmm10,%xmm10
  movupd -0x70(%rdx),%xmm9
  movupd -0x50(%rdx),%xmm8
  unpcklpd %xmm3,%xmm3
  movupd -0x30(%rdx),%xmm12
  movupd -0x10(%rdx),%xmm11
  movaps %xmm1,0x38(%rsp)
  movupd -0x10(%rdx),%xmm6
  movupd -0x40(%rax),%xmm1
  movaps %xmm3,0x28(%rsp)
  shufpd $0x1,%xmm0,%xmm0
  movupd -0x30(%rax),%xmm3
  movaps %xmm0,0x48(%rsp)
  unpckhpd %xmm12,%xmm12
  unpckhpd %xmm11,%xmm11
  movaps %xmm10,0x8(%rsp)
  shufpd $0x1,%xmm1,%xmm1
  unpcklpd %xmm9,%xmm9
  unpcklpd %xmm8,%xmm8
  movaps %xmm2,0x18(%rsp)
  movupd -0x10(%rax),%xmm2
  movapd -0x58(%rsp),%xmm10
  shufpd $0x1,%xmm3,%xmm3
  movupd -0x20(%rax),%xmm0
  unpcklpd %xmm6,%xmm6
  subpd  %xmm15,%xmm10
  movapd %xmm4,%xmm15
  shufpd $0x1,%xmm2,%xmm2
  mulpd  %xmm13,%xmm15
  shufpd $0x1,%xmm0,%xmm0
  subpd  %xmm15,%xmm10
  movapd %xmm3,%xmm15
  mulpd  %xmm12,%xmm15
  mulpd  %xmm1,%xmm12
  subpd  %xmm15,%xmm10
  movapd %xmm2,%xmm15
  mulpd  %xmm11,%xmm15
  mulpd  %xmm0,%xmm11
  subpd  %xmm15,%xmm10
  movapd 0x78(%rsp),%xmm15
  mulpd  %xmm15,%xmm14
  movaps %xmm10,-0x58(%rsp)
  movapd -0x68(%rsp),%xmm10
  subpd  %xmm14,%xmm10
  movapd 0x48(%rsp),%xmm14
  mulpd  %xmm14,%xmm13
  subpd  %xmm13,%xmm10
  movapd 0x98(%rsp),%xmm13
  subpd  %xmm12,%xmm10
  movapd %xmm10,%xmm12
  subpd  %xmm11,%xmm12
  movapd %xmm5,%xmm11
  mulpd  %xmm9,%xmm11
  mulpd  %xmm15,%xmm9
  movaps %xmm12,-0x68(%rsp)
  movapd -0x78(%rsp),%xmm12
  subpd  %xmm11,%xmm12
  movapd %xmm4,%xmm11
  mulpd  %xmm8,%xmm11
  mulpd  %xmm14,%xmm8
  movapd %xmm12,%xmm10
  movapd %xmm3,%xmm12
  mulpd  %xmm7,%xmm12
  mulpd  %xmm1,%xmm7
  subpd  %xmm11,%xmm10
  movapd %xmm2,%xmm11
  mulpd  %xmm6,%xmm11
  mulpd  %xmm0,%xmm6
  subpd  %xmm12,%xmm10
  movapd %xmm10,%xmm12
  subpd  %xmm11,%xmm12
  movapd 0x18(%rsp),%xmm11
  movaps %xmm12,-0x78(%rsp)
  movapd %xmm15,%xmm12
  movapd -0x8(%rsp),%xmm15
  subpd  %xmm9,%xmm15
  movapd 0x38(%rsp),%xmm9
  movapd %xmm15,%xmm10
  subpd  %xmm8,%xmm10
  movapd 0x68(%rsp),%xmm8
  subpd  %xmm7,%xmm10
  movapd %xmm13,%xmm7
  mulpd  %xmm5,%xmm7
  movapd %xmm10,%xmm15
  subpd  %xmm6,%xmm15
  movapd -0x18(%rsp),%xmm6
  subpd  %xmm7,%xmm6
  movapd %xmm8,%xmm7
  mulpd  %xmm4,%xmm7
  movaps %xmm15,-0x8(%rsp)
  subpd  %xmm7,%xmm6
  movapd %xmm9,%xmm7
  mulpd  %xmm3,%xmm7
  subpd  %xmm7,%xmm6
  movapd %xmm11,%xmm7
  mulpd  %xmm2,%xmm7
  subpd  %xmm7,%xmm6
  movapd %xmm13,%xmm7
  movapd 0x8(%rsp),%xmm13
  mulpd  %xmm12,%xmm7
  mulpd  %xmm13,%xmm2
  movaps %xmm6,-0x18(%rsp)
  movapd -0x28(%rsp),%xmm6
  subpd  %xmm7,%xmm6
  movapd %xmm8,%xmm7
  mulpd  %xmm14,%xmm7
  subpd  %xmm7,%xmm6
  movapd %xmm9,%xmm7
  mulpd  %xmm1,%xmm7
  subpd  %xmm7,%xmm6
  movapd %xmm11,%xmm7
  mulpd  %xmm0,%xmm7
  mulpd  %xmm13,%xmm0
  subpd  %xmm7,%xmm6
  movapd 0x88(%rsp),%xmm7
  mulpd  %xmm7,%xmm5
  movaps %xmm6,-0x28(%rsp)
  movapd -0x38(%rsp),%xmm6
  subpd  %xmm5,%xmm6
  movapd 0x58(%rsp),%xmm5
  mulpd  %xmm5,%xmm4
  subpd  %xmm4,%xmm6
  movapd 0x28(%rsp),%xmm4
  mulpd  %xmm4,%xmm3
  mulpd  %xmm4,%xmm1
  subpd  %xmm3,%xmm6
  movapd -0x48(%rsp),%xmm3
  subpd  %xmm2,%xmm6
  movapd %xmm12,%xmm2
  mulpd  %xmm7,%xmm2
  movaps %xmm6,-0x38(%rsp)
  subpd  %xmm2,%xmm3
  movapd %xmm14,%xmm2
  mulpd  %xmm5,%xmm2
  subpd  %xmm2,%xmm3
  subpd  %xmm1,%xmm3
  movapd %xmm3,%xmm2
  subpd  %xmm0,%xmm2
  movaps %xmm2,-0x48(%rsp)
  cmp    %edi,%ecx
  jb     L13
  movapd -0x78(%rsp),%xmm5
  movapd -0x58(%rsp),%xmm4
  movapd %xmm15,%xmm12
  movapd %xmm5,%xmm0
  unpckhpd %xmm4,%xmm5
  unpcklpd %xmm4,%xmm0
  movapd -0x68(%rsp),%xmm4
  movapd %xmm5,%xmm2
  movapd %xmm15,%xmm5
  unpckhpd %xmm4,%xmm5
  unpcklpd %xmm4,%xmm12
  movapd -0x18(%rsp),%xmm4
  movaps %xmm5,0x58(%rsp)
  movapd %xmm6,%xmm5
  unpckhpd %xmm4,%xmm5
  unpcklpd %xmm4,%xmm6
  movapd -0x28(%rsp),%xmm4
  movapd %xmm5,%xmm1
  movapd -0x48(%rsp),%xmm5
  movapd %xmm5,%xmm15
  unpckhpd %xmm4,%xmm5
  unpcklpd %xmm4,%xmm15
  movapd %xmm5,%xmm13
L14:
  movupd (%r8),%xmm3
  movapd %xmm13,%xmm9
  unpcklpd %xmm3,%xmm3
  mulpd  %xmm3,%xmm9
  mulpd  0x58(%rsp),%xmm3
  movups %xmm9,(%r9)
  movapd %xmm9,%xmm10
  movups %xmm3,0x10(%r9)
  movupd (%r8),%xmm4
  movupd 0x10(%r8),%xmm5
  unpckhpd %xmm4,%xmm4
  unpcklpd %xmm5,%xmm5
  movapd %xmm4,%xmm7
  mulpd  %xmm9,%xmm7
  mulpd  %xmm3,%xmm4
  subpd  %xmm7,%xmm15
  movapd %xmm12,%xmm7
  subpd  %xmm4,%xmm7
  mulpd  %xmm5,%xmm15
  movapd %xmm7,%xmm4
  mulpd  %xmm5,%xmm4
  movups %xmm15,0x20(%r9)
  movups %xmm4,0x30(%r9)
  movupd 0x10(%r8),%xmm7
  movupd 0x20(%r8),%xmm8
  movupd 0x20(%r8),%xmm5
  unpckhpd %xmm7,%xmm7
  unpcklpd %xmm8,%xmm8
  mulpd  %xmm7,%xmm10
  unpckhpd %xmm5,%xmm5
  mulpd  %xmm3,%xmm7
  subpd  %xmm10,%xmm1
  movapd %xmm15,%xmm10
  subpd  %xmm7,%xmm2
  mulpd  %xmm8,%xmm10
  movapd %xmm8,%xmm7
  mulpd  %xmm4,%xmm7
  subpd  %xmm10,%xmm1
  subpd  %xmm7,%xmm2
  mulpd  %xmm5,%xmm1
  mulpd  %xmm5,%xmm2
  movups %xmm1,0x40(%r9)
  movups %xmm2,0x50(%r9)
  movupd 0x30(%r8),%xmm7
  movupd 0x40(%r8),%xmm5
  movapd %xmm7,%xmm10
  movapd %xmm5,%xmm8
  unpcklpd %xmm7,%xmm10
  unpckhpd %xmm7,%xmm7
  unpcklpd %xmm5,%xmm8
  mulpd  %xmm10,%xmm9
  unpckhpd %xmm5,%xmm5
  mulpd  %xmm10,%xmm3
  mulpd  %xmm7,%xmm15
  mulpd  %xmm7,%xmm4
  mulpd  %xmm8,%xmm1
  subpd  %xmm9,%xmm6
  mulpd  %xmm8,%xmm2
  subpd  %xmm3,%xmm0
  subpd  %xmm15,%xmm6
  subpd  %xmm4,%xmm0
  subpd  %xmm1,%xmm6
  subpd  %xmm2,%xmm0
  mulpd  %xmm5,%xmm6
  mulpd  %xmm5,%xmm0
  movups %xmm6,0x60(%r9)
  movups %xmm0,0x70(%r9)
  add    $0xb0,%rsp
  ret
```

assistant: ```c
void kernel_dtrinv_4x4_lib4(int kmax, double *A, double *B, double *C, double *fact) {
  const int bs = 4;
  int k;
  double a_0, a_1, a_2, a_3, b_0, b_1, b_2, b_3, c_00 = 0, c_01 = 0, c_02 = 0, c_03 = 0, c_10 = 0, c_11 = 0, c_12 = 0, c_13 = 0, c_20 = 0, c_21 = 0, c_22 = 0, c_23 = 0, c_30 = 0, c_31 = 0, c_32 = 0, c_33 = 0;
  a_0 = A[0 + bs * 0];
  b_0 = B[0 + bs * 0];
  b_1 = B[1 + bs * 0];
  b_2 = B[2 + bs * 0];
  b_3 = B[3 + bs * 0];
  c_00 -= a_0 * b_0;
  c_01 -= a_0 * b_1;
  c_02 -= a_0 * b_2;
  c_03 -= a_0 * b_3;
  a_0 = A[0 + bs * 1];
  a_1 = A[1 + bs * 1];
  b_0 = B[0 + bs * 1];
  b_1 = B[1 + bs * 1];
  b_2 = B[2 + bs * 1];
  b_3 = B[3 + bs * 1];
  c_00 -= a_0 * b_0;
  c_10 -= a_1 * b_0;
  c_01 -= a_0 * b_1;
  c_11 -= a_1 * b_1;
  c_02 -= a_0 * b_2;
  c_12 -= a_1 * b_2;
  c_03 -= a_0 * b_3;
  c_13 -= a_1 * b_3;
  a_0 = A[0 + bs * 2];
  a_1 = A[1 + bs * 2];
  a_2 = A[2 + bs * 2];
  b_0 = B[0 + bs * 2];
  b_1 = B[1 + bs * 2];
  b_2 = B[2 + bs * 2];
  b_3 = B[3 + bs * 2];
  c_00 -= a_0 * b_0;
  c_10 -= a_1 * b_0;
  c_20 -= a_2 * b_0;
  c_01 -= a_0 * b_1;
  c_11 -= a_1 * b_1;
  c_21 -= a_2 * b_1;
  c_02 -= a_0 * b_2;
  c_12 -= a_1 * b_2;
  c_22 -= a_2 * b_2;
  c_03 -= a_0 * b_3;
  c_13 -= a_1 * b_3;
  c_23 -= a_2 * b_3;
  a_0 = A[0 + bs * 3];
  a_1 = A[1 + bs * 3];
  a_2 = A[2 + bs * 3];
  a_3 = A[3 + bs * 3];
  b_0 = B[0 + bs * 3];
  b_1 = B[1 + bs * 3];
  b_2 = B[2 + bs * 3];
  b_3 = B[3 + bs * 3];
  c_00 -= a_0 * b_0;
  c_10 -= a_1 * b_0;
  c_20 -= a_2 * b_0;
  c_30 -= a_3 * b_0;
  c_01 -= a_0 * b_1;
  c_11 -= a_1 * b_1;
  c_21 -= a_2 * b_1;
  c_31 -= a_3 * b_1;
  c_02 -= a_0 * b_2;
  c_12 -= a_1 * b_2;
  c_22 -= a_2 * b_2;
  c_32 -= a_3 * b_2;
  c_03 -= a_0 * b_3;
  c_13 -= a_1 * b_3;
  c_23 -= a_2 * b_3;
  c_33 -= a_3 * b_3;
  A += 16;
  B += 16;
  k = 4;
  for (; k < kmax - 3; k += 4) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[1 + bs * 0];
    b_2 = B[2 + bs * 0];
    b_3 = B[3 + bs * 0];
    c_00 -= a_0 * b_0;
    c_10 -= a_1 * b_0;
    c_20 -= a_2 * b_0;
    c_30 -= a_3 * b_0;
    c_01 -= a_0 * b_1;
    c_11 -= a_1 * b_1;
    c_21 -= a_2 * b_1;
    c_31 -= a_3 * b_1;
    c_02 -= a_0 * b_2;
    c_12 -= a_1 * b_2;
    c_22 -= a_2 * b_2;
    c_32 -= a_3 * b_2;
    c_03 -= a_0 * b_3;
    c_13 -= a_1 * b_3;
    c_23 -= a_2 * b_3;
    c_33 -= a_3 * b_3;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    a_2 = A[2 + bs * 1];
    a_3 = A[3 + bs * 1];
    b_0 = B[0 + bs * 1];
    b_1 = B[1 + bs * 1];
    b_2 = B[2 + bs * 1];
    b_3 = B[3 + bs * 1];
    c_00 -= a_0 * b_0;
    c_10 -= a_1 * b_0;
    c_20 -= a_2 * b_0;
    c_30 -= a_3 * b_0;
    c_01 -= a_0 * b_1;
    c_11 -= a_1 * b_1;
    c_21 -= a_2 * b_1;
    c_31 -= a_3 * b_1;
    c_02 -= a_0 * b_2;
    c_12 -= a_1 * b_2;
    c_22 -= a_2 * b_2;
    c_32 -= a_3 * b_2;
    c_03 -= a_0 * b_3;
    c_13 -= a_1 * b_3;
    c_23 -= a_2 * b_3;
    c_33 -= a_3 * b_3;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    a_2 = A[2 + bs * 2];
    a_3 = A[3 + bs * 2];
    b_0 = B[0 + bs * 2];
    b_1 = B[1 + bs * 2];
    b_2 = B[2 + bs * 2];
    b_3 = B[3 + bs * 2];
    c_00 -= a_0 * b_0;
    c_10 -= a_1 * b_0;
    c_20 -= a_2 * b_0;
    c_30 -= a_3 * b_0;
    c_01 -= a_0 * b_1;
    c_11 -= a_1 * b_1;
    c_21 -= a_2 * b_1;
    c_31 -= a_3 * b_1;
    c_02 -= a_0 * b_2;
    c_12 -= a_1 * b_2;
    c_22 -= a_2 * b_2;
    c_32 -= a_3 * b_2;
    c_03 -= a_0 * b_3;
    c_13 -= a_1 * b_3;
    c_23 -= a_2 * b_3;
    c_33 -= a_3 * b_3;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    a_2 = A[2 + bs * 3];
    a_3 = A[3 + bs * 3];
    b_0 = B[0 + bs * 3];
    b_1 = B[1 + bs * 3];
    b_2 = B[2 + bs * 3];
    b_3 = B[3 + bs * 3];
    c_00 -= a_0 * b_0;
    c_10 -= a_1 * b_0;
    c_20 -= a_2 * b_0;
    c_30 -= a_3 * b_0;
    c_01 -= a_0 * b_1;
    c_11 -= a_1 * b_1;
    c_21 -= a_2 * b_1;
    c_31 -= a_3 * b_1;
    c_02 -= a_0 * b_2;
    c_12 -= a_1 * b_2;
    c_22 -= a_2 * b_2;
    c_32 -= a_3 * b_2;
    c_03 -= a_0 * b_3;
    c_13 -= a_1 * b_3;
    c_23 -= a_2 * b_3;
    c_33 -= a_3 * b_3;
    A += 16;
    B += 16;
  }
  double a_00, a_10, a_20, a_30, a_11, a_21, a_31, a_22, a_32, a_33;
  a_00 = fact[0];
  c_00 *= a_00;
  c_10 *= a_00;
  c_20 *= a_00;
  c_30 *= a_00;
  C[0 + bs * 0] = c_00;
  C[1 + bs * 0] = c_10;
  C[2 + bs * 0] = c_20;
  C[3 + bs * 0] = c_30;
  a_10 = fact[1];
  a_11 = fact[2];
  c_01 -= c_00 * a_10;
  c_11 -= c_10 * a_10;
  c_21 -= c_20 * a_10;
  c_31 -= c_30 * a_10;
  c_01 *= a_11;
  c_11 *= a_11;
  c_21 *= a_11;
  c_31 *= a_11;
  C[0 + bs * 1] = c_01;
  C[1 + bs * 1] = c_11;
  C[2 + bs * 1] = c_21;
  C[3 + bs * 1] = c_31;
  a_20 = fact[3];
  a_21 = fact[4];
  a_22 = fact[5];
  c_02 -= c_00 * a_20;
  c_12 -= c_10 * a_20;
  c_22 -= c_20 * a_20;
  c_32 -= c_30 * a_20;
  c_02 -= c_01 * a_21;
  c_12 -= c_11 * a_21;
  c_22 -= c_21 * a_21;
  c_32 -= c_31 * a_21;
  c_02 *= a_22;
  c_12 *= a_22;
  c_22 *= a_22;
  c_32 *= a_22;
  C[0 + bs * 2] = c_02;
  C[1 + bs * 2] = c_12;
  C[2 + bs * 2] = c_22;
  C[3 + bs * 2] = c_32;
  a_30 = fact[6];
  a_31 = fact[7];
  a_32 = fact[8];
  a_33 = fact[9];
  c_03 -= c_00 * a_30;
  c_13 -= c_10 * a_30;
  c_23 -= c_20 * a_30;
  c_33 -= c_30 * a_30;
  c_03 -= c_01 * a_31;
  c_13 -= c_11 * a_31;
  c_23 -= c_21 * a_31;
  c_33 -= c_31 * a_31;
  c_03 -= c_02 * a_32;
  c_13 -= c_12 * a_32;
  c_23 -= c_22 * a_32;
  c_33 -= c_32 * a_32;
  c_03 *= a_33;
  c_13 *= a_33;
  c_23 *= a_33;
  c_33 *= a_33;
  C[0 + bs * 3] = c_03;
  C[1 + bs * 3] = c_13;
  C[2 + bs * 3] = c_23;
  C[3 + bs * 3] = c_33;
}
```