user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<kernel_sgemm_nt_4x4_lib4>:
  endbr64
  test   %edi,%edi
  jle    L31
  mov    %rsi,%rax
  push   %rbx
  mov    %edi,%r10d
  mov    %rdx,%rsi
  mov    %rcx,%r11
  cmp    $0x3,%edi
  jle    L19
  lea    -0x4(%rdi),%edi
  pxor   %xmm8,%xmm8
  shr    $0x2,%edi
  movss  %xmm8,-0x30(%rsp)
  movaps %xmm8,%xmm10
  movaps %xmm8,%xmm11
  lea    0x1(%rdi),%ebx
  movss  %xmm8,-0x40(%rsp)
  movaps %xmm8,%xmm9
  movaps %xmm8,%xmm14
  mov    %rbx,%rdi
  shl    $0x6,%rbx
  movss  %xmm8,-0x48(%rsp)
  lea    (%rax,%rbx,1),%rcx
  movss  %xmm8,-0x24(%rsp)
  movss  %xmm8,-0x34(%rsp)
  movss  %xmm8,-0x44(%rsp)
  movss  %xmm8,-0x28(%rsp)
  movss  %xmm8,-0x38(%rsp)
  movss  %xmm8,-0x4c(%rsp)
  movss  %xmm8,-0x2c(%rsp)
  movss  %xmm8,-0x3c(%rsp)
  nopl   0x0(%rax,%rax,1)
L88:
  movss  (%rax),%xmm4
  movss  (%rdx),%xmm0
  add    $0x40,%rax
  add    $0x40,%rdx
  movss  -0x3c(%rdx),%xmm7
  movss  -0x3c(%rax),%xmm3
  movaps %xmm4,%xmm15
  movss  -0x38(%rax),%xmm2
  movss  -0x34(%rax),%xmm1
  mulss  %xmm0,%xmm15
  movaps %xmm3,%xmm13
  movss  -0x38(%rdx),%xmm5
  movss  -0x34(%rdx),%xmm6
  mulss  %xmm0,%xmm13
  movaps %xmm2,%xmm12
  addss  -0x4c(%rsp),%xmm13
  mulss  %xmm0,%xmm12
  mulss  %xmm1,%xmm0
  addss  -0x48(%rsp),%xmm0
  addss  %xmm9,%xmm15
  movaps %xmm4,%xmm9
  mulss  %xmm7,%xmm9
  addss  %xmm14,%xmm12
  movaps %xmm3,%xmm14
  mulss  %xmm5,%xmm14
  addss  -0x38(%rsp),%xmm14
  addss  %xmm9,%xmm11
  movaps %xmm3,%xmm9
  mulss  %xmm7,%xmm9
  mulss  %xmm6,%xmm3
  addss  -0x28(%rsp),%xmm3
  addss  %xmm9,%xmm10
  movaps %xmm2,%xmm9
  mulss  %xmm7,%xmm9
  mulss  %xmm1,%xmm7
  addss  -0x44(%rsp),%xmm9
  movss  %xmm14,-0x44(%rsp)
  addss  -0x40(%rsp),%xmm7
  movss  %xmm7,-0x4c(%rsp)
  movaps %xmm4,%xmm7
  mulss  %xmm5,%xmm7
  addss  -0x3c(%rsp),%xmm7
  mulss  %xmm6,%xmm4
  addss  -0x2c(%rsp),%xmm4
  movss  %xmm7,-0x48(%rsp)
  movaps %xmm2,%xmm7
  mulss  %xmm5,%xmm7
  movss  %xmm4,-0x38(%rsp)
  movss  -0x30(%rax),%xmm4
  mulss  %xmm1,%xmm5
  addss  -0x34(%rsp),%xmm7
  movss  %xmm3,-0x34(%rsp)
  movss  -0x2c(%rax),%xmm3
  mulss  %xmm6,%xmm1
  addss  -0x30(%rsp),%xmm5
  movaps %xmm4,%xmm14
  mulss  %xmm6,%xmm2
  addss  -0x24(%rsp),%xmm2
  movss  %xmm7,-0x40(%rsp)
  movss  %xmm5,-0x3c(%rsp)
  addss  %xmm8,%xmm1
  movss  %xmm2,-0x30(%rsp)
  movss  -0x28(%rax),%xmm2
  movss  %xmm1,-0x2c(%rsp)
  movss  -0x24(%rax),%xmm1
  movss  -0x30(%rdx),%xmm7
  movss  -0x2c(%rdx),%xmm6
  movss  -0x28(%rdx),%xmm5
  mulss  %xmm7,%xmm14
  movss  -0x24(%rdx),%xmm8
  addss  %xmm14,%xmm15
  movaps %xmm3,%xmm14
  mulss  %xmm7,%xmm14
  addss  %xmm13,%xmm14
  movaps %xmm2,%xmm13
  mulss  %xmm7,%xmm13
  mulss  %xmm1,%xmm7
  addss  %xmm13,%xmm12
  movaps %xmm4,%xmm13
  mulss  %xmm6,%xmm13
  addss  %xmm0,%xmm7
  movaps %xmm4,%xmm0
  mulss  %xmm5,%xmm0
  addss  -0x48(%rsp),%xmm0
  mulss  %xmm8,%xmm4
  addss  -0x38(%rsp),%xmm4
  addss  %xmm13,%xmm11
  movaps %xmm3,%xmm13
  movss  %xmm0,-0x48(%rsp)
  movaps %xmm3,%xmm0
  mulss  %xmm6,%xmm13
  movss  %xmm4,-0x38(%rsp)
  movss  -0x18(%rdx),%xmm4
  mulss  %xmm8,%xmm3
  addss  -0x34(%rsp),%xmm3
  mulss  %xmm5,%xmm0
  addss  -0x44(%rsp),%xmm0
  addss  %xmm13,%xmm10
  movaps %xmm2,%xmm13
  movss  %xmm3,-0x34(%rsp)
  movss  -0x20(%rax),%xmm3
  mulss  %xmm6,%xmm13
  movss  %xmm0,-0x44(%rsp)
  movss  -0x14(%rax),%xmm0
  mulss  %xmm1,%xmm6
  addss  %xmm13,%xmm9
  movss  -0x4c(%rsp),%xmm13
  addss  %xmm6,%xmm13
  movss  -0x20(%rdx),%xmm6
  movss  %xmm13,-0x4c(%rsp)
  movaps %xmm2,%xmm13
  mulss  %xmm5,%xmm13
  addss  -0x40(%rsp),%xmm13
  mulss  %xmm8,%xmm2
  addss  -0x30(%rsp),%xmm2
  mulss  %xmm1,%xmm5
  mulss  %xmm8,%xmm1
  addss  -0x3c(%rsp),%xmm5
  movss  -0x14(%rdx),%xmm8
  movss  %xmm13,-0x40(%rsp)
  movaps %xmm3,%xmm13
  addss  -0x2c(%rsp),%xmm1
  mulss  %xmm6,%xmm13
  movss  %xmm2,-0x30(%rsp)
  movss  -0x1c(%rax),%xmm2
  movss  %xmm5,-0x3c(%rsp)
  movss  -0x1c(%rdx),%xmm5
  movss  %xmm1,-0x2c(%rsp)
  movss  -0x18(%rax),%xmm1
  addss  %xmm13,%xmm15
  movaps %xmm2,%xmm13
  mulss  %xmm6,%xmm13
  addss  %xmm13,%xmm14
  movaps %xmm1,%xmm13
  mulss  %xmm6,%xmm13
  mulss  %xmm0,%xmm6
  addss  %xmm13,%xmm12
  movaps %xmm3,%xmm13
  mulss  %xmm5,%xmm13
  addss  %xmm6,%xmm7
  movaps %xmm1,%xmm6
  mulss  %xmm4,%xmm6
  addss  %xmm13,%xmm11
  movaps %xmm2,%xmm13
  mulss  %xmm5,%xmm13
  addss  %xmm10,%xmm13
  movaps %xmm1,%xmm10
  mulss  %xmm5,%xmm10
  mulss  %xmm0,%xmm5
  mulss  %xmm8,%xmm1
  addss  %xmm9,%xmm10
  movss  -0x4c(%rsp),%xmm9
  addss  %xmm5,%xmm9
  movaps %xmm3,%xmm5
  movss  %xmm10,-0x28(%rsp)
  mulss  %xmm4,%xmm5
  movaps %xmm2,%xmm10
  mulss  %xmm4,%xmm10
  mulss  %xmm0,%xmm4
  movss  %xmm9,-0x24(%rsp)
  movss  -0x40(%rsp),%xmm9
  addss  -0x30(%rsp),%xmm1
  mulss  %xmm8,%xmm2
  addss  -0x48(%rsp),%xmm5
  addss  -0x44(%rsp),%xmm10
  addss  %xmm6,%xmm9
  movss  -0x3c(%rsp),%xmm6
  mulss  %xmm8,%xmm0
  movss  %xmm1,-0x8(%rsp)
  movss  -0xc(%rax),%xmm1
  addss  -0x2c(%rsp),%xmm0
  mulss  %xmm8,%xmm3
  movss  -0x4(%rax),%xmm8
  movss  %xmm10,-0x1c(%rsp)
  addss  -0x38(%rsp),%xmm3
  addss  %xmm4,%xmm6
  movss  -0x34(%rsp),%xmm4
  movss  %xmm9,-0x18(%rsp)
  movss  %xmm0,-0x4(%rsp)
  movss  -0x8(%rax),%xmm0
  addss  %xmm2,%xmm4
  movss  -0x10(%rax),%xmm2
  movss  %xmm3,-0x10(%rsp)
  movss  -0x8(%rdx),%xmm3
  movss  %xmm6,-0x14(%rsp)
  movss  -0x10(%rdx),%xmm6
  movaps %xmm2,%xmm9
  movss  %xmm5,-0x20(%rsp)
  movss  -0x4(%rdx),%xmm5
  mulss  %xmm6,%xmm9
  movss  %xmm4,-0xc(%rsp)
  movss  -0xc(%rdx),%xmm4
  addss  %xmm15,%xmm9
  movaps %xmm1,%xmm15
  mulss  %xmm6,%xmm15
  addss  %xmm14,%xmm15
  movaps %xmm0,%xmm14
  mulss  %xmm6,%xmm14
  mulss  %xmm8,%xmm6
  movss  %xmm15,-0x4c(%rsp)
  movaps %xmm0,%xmm15
  mulss  %xmm4,%xmm15
  addss  %xmm12,%xmm14
  movaps %xmm6,%xmm12
  addss  %xmm7,%xmm12
  movss  %xmm12,-0x48(%rsp)
  movaps %xmm2,%xmm12
  mulss  %xmm4,%xmm12
  addss  %xmm12,%xmm11
  movaps %xmm1,%xmm12
  mulss  %xmm4,%xmm12
  mulss  %xmm8,%xmm4
  movaps %xmm12,%xmm10
  movss  -0x28(%rsp),%xmm12
  addss  %xmm13,%xmm10
  addss  %xmm15,%xmm12
  movss  -0x24(%rsp),%xmm15
  addss  %xmm4,%xmm15
  movss  %xmm12,-0x44(%rsp)
  movaps %xmm2,%xmm12
  mulss  %xmm3,%xmm12
  movss  %xmm15,-0x40(%rsp)
  movss  -0x20(%rsp),%xmm15
  mulss  %xmm5,%xmm2
  addss  %xmm12,%xmm15
  movaps %xmm1,%xmm12
  mulss  %xmm3,%xmm12
  mulss  %xmm5,%xmm1
  movss  %xmm15,-0x3c(%rsp)
  movss  -0x1c(%rsp),%xmm15
  addss  -0x10(%rsp),%xmm2
  movss  -0x14(%rsp),%xmm7
  addss  %xmm12,%xmm15
  movaps %xmm0,%xmm12
  movss  %xmm2,-0x2c(%rsp)
  movss  -0xc(%rsp),%xmm2
  mulss  %xmm3,%xmm12
  mulss  %xmm8,%xmm3
  addss  %xmm1,%xmm2
  mulss  %xmm5,%xmm0
  movss  %xmm15,-0x38(%rsp)
  movss  -0x18(%rsp),%xmm15
  mulss  %xmm5,%xmm8
  addss  -0x4(%rsp),%xmm8
  movss  %xmm2,-0x28(%rsp)
  addss  %xmm12,%xmm15
  addss  %xmm3,%xmm7
  movss  -0x8(%rsp),%xmm3
  addss  %xmm0,%xmm3
  movss  %xmm15,-0x34(%rsp)
  movss  %xmm7,-0x30(%rsp)
  movss  %xmm3,-0x24(%rsp)
  cmp    %rcx,%rax
  jne    L88
  lea    0x0(,%rdi,4),%eax
  movaps %xmm9,%xmm15
  movaps %xmm14,%xmm12
  add    %rbx,%rsi
  cmp    %eax,%r10d
  jle    L44
  movss  -0x28(%rsp),%xmm9
  movss  -0x24(%rsp),%xmm13
L65:
  movss  (%rcx),%xmm3
  movss  (%rsi),%xmm6
  add    $0x1,%eax
  add    $0x10,%rcx
  movss  -0xc(%rcx),%xmm2
  movss  -0x8(%rcx),%xmm1
  add    $0x10,%rsi
  movaps %xmm3,%xmm14
  movss  -0x4(%rcx),%xmm0
  movss  -0xc(%rsi),%xmm5
  mulss  %xmm6,%xmm14
  movss  -0x8(%rsi),%xmm4
  movss  -0x4(%rsi),%xmm7
  addss  %xmm14,%xmm15
  movaps %xmm2,%xmm14
  mulss  %xmm6,%xmm14
  addss  -0x4c(%rsp),%xmm14
  movss  %xmm14,-0x4c(%rsp)
  movaps %xmm1,%xmm14
  mulss  %xmm6,%xmm14
  mulss  %xmm0,%xmm6
  addss  -0x48(%rsp),%xmm6
  movss  %xmm6,-0x48(%rsp)
  movaps %xmm3,%xmm6
  addss  %xmm14,%xmm12
  mulss  %xmm5,%xmm6
  addss  %xmm6,%xmm11
  movaps %xmm2,%xmm6
  mulss  %xmm5,%xmm6
  addss  %xmm6,%xmm10
  movaps %xmm1,%xmm6
  mulss  %xmm5,%xmm6
  mulss  %xmm0,%xmm5
  addss  -0x44(%rsp),%xmm6
  addss  -0x40(%rsp),%xmm5
  movss  %xmm6,-0x44(%rsp)
  movss  %xmm5,-0x40(%rsp)
  movaps %xmm3,%xmm5
  mulss  %xmm4,%xmm5
  addss  -0x3c(%rsp),%xmm5
  mulss  %xmm7,%xmm3
  addss  -0x2c(%rsp),%xmm3
  movss  %xmm5,-0x3c(%rsp)
  movaps %xmm2,%xmm5
  mulss  %xmm4,%xmm5
  movss  %xmm3,-0x2c(%rsp)
  addss  -0x38(%rsp),%xmm5
  mulss  %xmm7,%xmm2
  movss  %xmm5,-0x38(%rsp)
  movaps %xmm1,%xmm5
  mulss  %xmm4,%xmm5
  mulss  %xmm7,%xmm1
  addss  -0x34(%rsp),%xmm5
  addss  %xmm2,%xmm9
  mulss  %xmm0,%xmm4
  mulss  %xmm7,%xmm0
  addss  -0x30(%rsp),%xmm4
  movss  %xmm5,-0x34(%rsp)
  addss  %xmm1,%xmm13
  movss  %xmm4,-0x30(%rsp)
  addss  %xmm0,%xmm8
  cmp    %eax,%r10d
  jg     L65
  movss  %xmm9,-0x28(%rsp)
  movss  %xmm13,-0x24(%rsp)
L44:
  test   %r9d,%r9d
  je     L53
  movss  0x24(%r11),%xmm4
  movss  0x8(%r11),%xmm3
  movss  (%r11),%xmm1
  movss  0x4(%r11),%xmm2
  movss  %xmm4,-0x18(%rsp)
  movss  0x28(%r11),%xmm4
  movss  0x10(%r11),%xmm5
  movss  %xmm3,-0x20(%rsp)
  movss  0xc(%r11),%xmm3
  movss  0x18(%r11),%xmm13
  movss  %xmm4,-0x14(%rsp)
  movss  0x2c(%r11),%xmm4
  movss  0x1c(%r11),%xmm14
  movss  %xmm3,-0x1c(%rsp)
  movss  0x20(%r11),%xmm6
  movss  0x14(%r11),%xmm3
  movss  %xmm4,-0x10(%rsp)
  movss  0x30(%r11),%xmm7
  movss  0x34(%r11),%xmm9
  movss  0x38(%r11),%xmm4
  movss  0x3c(%r11),%xmm0
  cmp    $0x1,%r9d
  je     L7
  subss  %xmm15,%xmm1
  movss  -0x20(%rsp),%xmm15
  subss  %xmm11,%xmm5
  movss  -0x14(%rsp),%xmm11
  subss  %xmm10,%xmm3
  subss  -0x4c(%rsp),%xmm2
  movss  -0x18(%rsp),%xmm10
  subss  %xmm12,%xmm15
  subss  -0x44(%rsp),%xmm13
  movss  -0x10(%rsp),%xmm12
  subss  -0x40(%rsp),%xmm14
  subss  -0x3c(%rsp),%xmm6
  subss  -0x38(%rsp),%xmm10
  subss  -0x34(%rsp),%xmm11
  movd   %xmm15,%eax
  subss  -0x30(%rsp),%xmm12
  movss  -0x1c(%rsp),%xmm15
  subss  %xmm8,%xmm0
  subss  -0x48(%rsp),%xmm15
  subss  -0x2c(%rsp),%xmm7
  subss  -0x28(%rsp),%xmm9
  subss  -0x24(%rsp),%xmm4
L39:
  mov    %eax,0x8(%r8)
  pop    %rbx
  movss  %xmm1,(%r8)
  movss  %xmm2,0x4(%r8)
  movss  %xmm15,0xc(%r8)
  movss  %xmm5,0x10(%r8)
  movss  %xmm3,0x14(%r8)
  movss  %xmm13,0x18(%r8)
  movss  %xmm14,0x1c(%r8)
  movss  %xmm6,0x20(%r8)
  movss  %xmm10,0x24(%r8)
  movss  %xmm11,0x28(%r8)
  movss  %xmm12,0x2c(%r8)
  movss  %xmm7,0x30(%r8)
  movss  %xmm9,0x34(%r8)
  movss  %xmm4,0x38(%r8)
  movss  %xmm0,0x3c(%r8)
  ret
  nopl   0x0(%rax)
L53:
  movss  -0x4c(%rsp),%xmm1
  movss  %xmm15,(%r8)
  movss  %xmm12,0x8(%r8)
  movss  %xmm1,0x4(%r8)
  movss  -0x48(%rsp),%xmm1
  movss  %xmm11,0x10(%r8)
  movss  %xmm1,0xc(%r8)
  movss  -0x44(%rsp),%xmm1
  movss  %xmm10,0x14(%r8)
  movss  %xmm1,0x18(%r8)
  movss  -0x40(%rsp),%xmm1
  movss  %xmm8,0x3c(%r8)
  movss  %xmm1,0x1c(%r8)
  movss  -0x3c(%rsp),%xmm1
  movss  %xmm1,0x20(%r8)
  movss  -0x38(%rsp),%xmm1
  movss  %xmm1,0x24(%r8)
  movss  -0x34(%rsp),%xmm1
  movss  %xmm1,0x28(%r8)
  movss  -0x30(%rsp),%xmm1
  movss  %xmm1,0x2c(%r8)
  movss  -0x2c(%rsp),%xmm1
  movss  %xmm1,0x30(%r8)
  movss  -0x28(%rsp),%xmm1
  movss  %xmm1,0x34(%r8)
  movss  -0x24(%rsp),%xmm1
  pop    %rbx
  movss  %xmm1,0x38(%r8)
  ret
  nopl   0x0(%rax,%rax,1)
L31:
  ret
  nopl   0x0(%rax)
L7:
  addss  -0x20(%rsp),%xmm12
  addss  %xmm15,%xmm1
  movss  -0x1c(%rsp),%xmm15
  addss  %xmm11,%xmm5
  addss  %xmm10,%xmm3
  movss  -0x14(%rsp),%xmm11
  movss  -0x18(%rsp),%xmm10
  addss  -0x4c(%rsp),%xmm2
  addss  -0x48(%rsp),%xmm15
  movd   %xmm12,%eax
  addss  -0x44(%rsp),%xmm13
  movss  -0x10(%rsp),%xmm12
  addss  %xmm8,%xmm0
  addss  -0x40(%rsp),%xmm14
  addss  -0x3c(%rsp),%xmm6
  addss  -0x38(%rsp),%xmm10
  addss  -0x34(%rsp),%xmm11
  addss  -0x30(%rsp),%xmm12
  addss  -0x2c(%rsp),%xmm7
  addss  -0x28(%rsp),%xmm9
  addss  -0x24(%rsp),%xmm4
  jmp    L39
  nopw   0x0(%rax,%rax,1)
L19:
  pxor   %xmm8,%xmm8
  mov    %rax,%rcx
  xor    %eax,%eax
  movss  %xmm8,-0x30(%rsp)
  movaps %xmm8,%xmm13
  movaps %xmm8,%xmm12
  movaps %xmm8,%xmm9
  movss  %xmm8,-0x40(%rsp)
  movaps %xmm8,%xmm10
  movaps %xmm8,%xmm11
  movaps %xmm8,%xmm15
  movss  %xmm8,-0x48(%rsp)
  movss  %xmm8,-0x34(%rsp)
  movss  %xmm8,-0x44(%rsp)
  movss  %xmm8,-0x38(%rsp)
  movss  %xmm8,-0x4c(%rsp)
  movss  %xmm8,-0x2c(%rsp)
  movss  %xmm8,-0x3c(%rsp)
  jmp    L65
```

assistant: ```c
void kernel_sgemm_nt_4x4_lib4(int kmax, float *A, float *B, float *D, float *C, int alg) {
  if (kmax <= 0)
    return;
  const int lda = 4;
  const int ldc = 4;
  int k;
  float 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;
  for (k = 0; k < kmax - 3; k += 4) {
    a_0 = A[0 + lda * 0];
    a_1 = A[1 + lda * 0];
    a_2 = A[2 + lda * 0];
    a_3 = A[3 + lda * 0];
    b_0 = B[0 + lda * 0];
    b_1 = B[1 + lda * 0];
    b_2 = B[2 + lda * 0];
    b_3 = B[3 + lda * 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 + lda * 1];
    a_1 = A[1 + lda * 1];
    a_2 = A[2 + lda * 1];
    a_3 = A[3 + lda * 1];
    b_0 = B[0 + lda * 1];
    b_1 = B[1 + lda * 1];
    b_2 = B[2 + lda * 1];
    b_3 = B[3 + lda * 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 + lda * 2];
    a_1 = A[1 + lda * 2];
    a_2 = A[2 + lda * 2];
    a_3 = A[3 + lda * 2];
    b_0 = B[0 + lda * 2];
    b_1 = B[1 + lda * 2];
    b_2 = B[2 + lda * 2];
    b_3 = B[3 + lda * 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 + lda * 3];
    a_1 = A[1 + lda * 3];
    a_2 = A[2 + lda * 3];
    a_3 = A[3 + lda * 3];
    b_0 = B[0 + lda * 3];
    b_1 = B[1 + lda * 3];
    b_2 = B[2 + lda * 3];
    b_3 = B[3 + lda * 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;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + lda * 0];
    a_1 = A[1 + lda * 0];
    a_2 = A[2 + lda * 0];
    a_3 = A[3 + lda * 0];
    b_0 = B[0 + lda * 0];
    b_1 = B[1 + lda * 0];
    b_2 = B[2 + lda * 0];
    b_3 = B[3 + lda * 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 += 4;
    B += 4;
  }
  float d_00, d_01, d_02, d_03, d_10, d_11, d_12, d_13, d_20, d_21, d_22, d_23, d_30, d_31, d_32, d_33;
  if (alg == 0) {
    C[0 + ldc * 0] = c_00;
    C[1 + ldc * 0] = c_10;
    C[2 + ldc * 0] = c_20;
    C[3 + ldc * 0] = c_30;
    C[0 + ldc * 1] = c_01;
    C[1 + ldc * 1] = c_11;
    C[2 + ldc * 1] = c_21;
    C[3 + ldc * 1] = c_31;
    C[0 + ldc * 2] = c_02;
    C[1 + ldc * 2] = c_12;
    C[2 + ldc * 2] = c_22;
    C[3 + ldc * 2] = c_32;
    C[0 + ldc * 3] = c_03;
    C[1 + ldc * 3] = c_13;
    C[2 + ldc * 3] = c_23;
    C[3 + ldc * 3] = c_33;
  } else {
    d_00 = D[0 + ldc * 0];
    d_10 = D[1 + ldc * 0];
    d_20 = D[2 + ldc * 0];
    d_30 = D[3 + ldc * 0];
    d_01 = D[0 + ldc * 1];
    d_11 = D[1 + ldc * 1];
    d_21 = D[2 + ldc * 1];
    d_31 = D[3 + ldc * 1];
    d_02 = D[0 + ldc * 2];
    d_12 = D[1 + ldc * 2];
    d_22 = D[2 + ldc * 2];
    d_32 = D[3 + ldc * 2];
    d_03 = D[0 + ldc * 3];
    d_13 = D[1 + ldc * 3];
    d_23 = D[2 + ldc * 3];
    d_33 = D[3 + ldc * 3];
    if (alg == 1) {
      d_00 += c_00;
      d_10 += c_10;
      d_20 += c_20;
      d_30 += c_30;
      d_01 += c_01;
      d_11 += c_11;
      d_21 += c_21;
      d_31 += c_31;
      d_02 += c_02;
      d_12 += c_12;
      d_22 += c_22;
      d_32 += c_32;
      d_03 += c_03;
      d_13 += c_13;
      d_23 += c_23;
      d_33 += c_33;
    } else {
      d_00 -= c_00;
      d_10 -= c_10;
      d_20 -= c_20;
      d_30 -= c_30;
      d_01 -= c_01;
      d_11 -= c_11;
      d_21 -= c_21;
      d_31 -= c_31;
      d_02 -= c_02;
      d_12 -= c_12;
      d_22 -= c_22;
      d_32 -= c_32;
      d_03 -= c_03;
      d_13 -= c_13;
      d_23 -= c_23;
      d_33 -= c_33;
    }
    C[0 + ldc * 0] = d_00;
    C[1 + ldc * 0] = d_10;
    C[2 + ldc * 0] = d_20;
    C[3 + ldc * 0] = d_30;
    C[0 + ldc * 1] = d_01;
    C[1 + ldc * 1] = d_11;
    C[2 + ldc * 1] = d_21;
    C[3 + ldc * 1] = d_31;
    C[0 + ldc * 2] = d_02;
    C[1 + ldc * 2] = d_12;
    C[2 + ldc * 2] = d_22;
    C[3 + ldc * 2] = d_32;
    C[0 + ldc * 3] = d_03;
    C[1 + ldc * 3] = d_13;
    C[2 + ldc * 3] = d_23;
    C[3 + ldc * 3] = d_33;
  }
}
```