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

```asm
<kernel_dgemm_dtrsm_nt_4x2_vs_lib4_new>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %edi,%ebx
  mov    %edx,%edi
  mov    0x40(%rsp),%rax
  mov    %ecx,%edx
  mov    0x58(%rsp),%r11
  mov    0x48(%rsp),%rcx
  mov    0x60(%rsp),%r10
  mov    0x68(%rsp),%r15
  test   %edi,%edi
  jle    L157
  cmp    $0x1,%edx
  je     L71
  pxor   %xmm2,%xmm2
  xor    %r12d,%r12d
  movapd %xmm2,%xmm0
  movapd %xmm2,%xmm8
  movapd %xmm2,%xmm12
  movapd %xmm2,%xmm6
  movapd %xmm2,%xmm11
  movapd %xmm2,%xmm4
  movapd %xmm2,%xmm10
L73:
  lea    -0x3(%rdi),%edx
  cmp    %edx,%r12d
  jge    L14
  lea    -0x4(%rdi),%r13d
  mov    %r8,%rdx
  sub    %r12d,%r13d
  shr    $0x2,%r13d
  lea    0x1(%r13),%r14d
  shl    $0x7,%r14
  lea    (%r9,%r14,1),%rsi
  nopl   (%rax)
L194:
  movsd  (%rdx),%xmm5
  movsd  (%r9),%xmm1
  sub    $0xffffffffffffff80,%r9
  sub    $0xffffffffffffff80,%rdx
  movsd  -0x78(%rdx),%xmm7
  movsd  -0x78(%r9),%xmm13
  movapd %xmm5,%xmm14
  movsd  -0x70(%rdx),%xmm9
  movsd  -0x68(%rdx),%xmm3
  mulsd  %xmm1,%xmm14
  mulsd  %xmm13,%xmm5
  addsd  %xmm14,%xmm10
  movapd %xmm7,%xmm14
  mulsd  %xmm1,%xmm14
  addsd  %xmm5,%xmm4
  movsd  -0x58(%rdx),%xmm5
  mulsd  %xmm13,%xmm7
  addsd  %xmm14,%xmm11
  movapd %xmm9,%xmm14
  mulsd  %xmm13,%xmm9
  addsd  %xmm7,%xmm6
  movsd  -0x60(%rdx),%xmm7
  mulsd  %xmm1,%xmm14
  mulsd  %xmm3,%xmm1
  mulsd  %xmm13,%xmm3
  movsd  -0x60(%r9),%xmm13
  addsd  %xmm9,%xmm8
  movapd %xmm7,%xmm9
  mulsd  %xmm13,%xmm9
  addsd  %xmm14,%xmm12
  movsd  -0x50(%rdx),%xmm14
  addsd  %xmm1,%xmm0
  movsd  -0x48(%rdx),%xmm1
  addsd  %xmm3,%xmm2
  movsd  -0x58(%r9),%xmm3
  mulsd  %xmm3,%xmm7
  addsd  %xmm10,%xmm9
  movapd %xmm5,%xmm10
  mulsd  %xmm13,%xmm10
  mulsd  %xmm3,%xmm5
  addsd  %xmm4,%xmm7
  movsd  -0x40(%rdx),%xmm4
  addsd  %xmm10,%xmm11
  movapd %xmm14,%xmm10
  mulsd  %xmm13,%xmm10
  addsd  %xmm6,%xmm5
  movsd  -0x38(%r9),%xmm6
  mulsd  %xmm3,%xmm14
  mulsd  %xmm1,%xmm13
  mulsd  %xmm3,%xmm1
  movsd  -0x38(%rdx),%xmm3
  addsd  %xmm10,%xmm12
  movsd  -0x40(%r9),%xmm10
  movapd %xmm3,%xmm15
  addsd  %xmm8,%xmm14
  mulsd  %xmm6,%xmm3
  movapd %xmm4,%xmm8
  mulsd  %xmm10,%xmm8
  addsd  %xmm0,%xmm13
  movsd  -0x28(%rdx),%xmm0
  addsd  %xmm2,%xmm1
  movsd  -0x30(%rdx),%xmm2
  mulsd  %xmm6,%xmm4
  mulsd  %xmm10,%xmm15
  addsd  %xmm5,%xmm3
  movsd  -0x18(%r9),%xmm5
  addsd  %xmm9,%xmm8
  movapd %xmm2,%xmm9
  mulsd  %xmm10,%xmm9
  addsd  %xmm4,%xmm7
  movsd  -0x20(%rdx),%xmm4
  mulsd  %xmm0,%xmm10
  addsd  %xmm11,%xmm15
  mulsd  %xmm6,%xmm0
  mulsd  %xmm6,%xmm2
  movsd  -0x18(%rdx),%xmm6
  addsd  %xmm12,%xmm9
  movapd %xmm6,%xmm11
  addsd  %xmm10,%xmm13
  mulsd  %xmm5,%xmm6
  movapd %xmm4,%xmm10
  addsd  %xmm0,%xmm1
  movsd  -0x20(%r9),%xmm0
  mulsd  %xmm5,%xmm4
  addsd  %xmm14,%xmm2
  movsd  -0x10(%rdx),%xmm14
  mulsd  %xmm0,%xmm10
  mulsd  %xmm0,%xmm11
  movapd %xmm14,%xmm12
  mulsd  %xmm0,%xmm12
  addsd  %xmm3,%xmm6
  mulsd  -0x8(%rdx),%xmm0
  addsd  %xmm7,%xmm4
  addsd  %xmm8,%xmm10
  movapd %xmm14,%xmm8
  mulsd  %xmm5,%xmm8
  addsd  %xmm15,%xmm11
  addsd  %xmm9,%xmm12
  addsd  %xmm13,%xmm0
  addsd  %xmm2,%xmm8
  movsd  -0x8(%rdx),%xmm2
  mulsd  %xmm5,%xmm2
  addsd  %xmm1,%xmm2
  cmp    %rsi,%r9
  jne    L194
  add    %r14,%r8
  lea    0x4(%r12,%r13,4),%r12d
L208:
  cmp    %r12d,%edi
  jle    L10
  lea    -0x1(%rdi),%edx
  sub    %r12d,%edx
  add    $0x1,%rdx
  shl    $0x5,%rdx
  add    %r8,%rdx
L95:
  movsd  (%r8),%xmm13
  movsd  (%rsi),%xmm1
  add    $0x20,%r8
  add    $0x20,%rsi
  movsd  -0x18(%r8),%xmm9
  movsd  -0x10(%r8),%xmm7
  movapd %xmm13,%xmm14
  movsd  -0x18(%rsi),%xmm5
  movsd  -0x8(%r8),%xmm3
  mulsd  %xmm1,%xmm14
  mulsd  %xmm5,%xmm13
  addsd  %xmm14,%xmm10
  movapd %xmm9,%xmm14
  mulsd  %xmm1,%xmm14
  addsd  %xmm13,%xmm4
  mulsd  %xmm5,%xmm9
  addsd  %xmm14,%xmm11
  movapd %xmm7,%xmm14
  mulsd  %xmm1,%xmm14
  addsd  %xmm9,%xmm6
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm7
  mulsd  %xmm5,%xmm3
  addsd  %xmm14,%xmm12
  addsd  %xmm1,%xmm0
  addsd  %xmm7,%xmm8
  addsd  %xmm3,%xmm2
  cmp    %rdx,%r8
  jne    L95
L10:
  cmpl   $0x3,0x38(%rsp)
  jle    L117
  mov    0x38(%rsp),%edi
  lea    -0x4(%rdi),%edx
  shr    $0x2,%edx
  add    $0x1,%edx
  shl    $0x7,%rdx
  add    %rax,%rdx
  nopw   0x0(%rax,%rax,1)
L170:
  movsd  (%rax),%xmm13
  movsd  (%rcx),%xmm1
  sub    $0xffffffffffffff80,%rax
  sub    $0xffffffffffffff80,%rcx
  movsd  -0x78(%rax),%xmm9
  movsd  -0x78(%rcx),%xmm5
  movapd %xmm13,%xmm14
  movsd  -0x70(%rax),%xmm7
  movsd  -0x68(%rax),%xmm3
  mulsd  %xmm1,%xmm14
  mulsd  %xmm5,%xmm13
  subsd  %xmm14,%xmm10
  movapd %xmm9,%xmm14
  mulsd  %xmm1,%xmm14
  subsd  %xmm13,%xmm4
  movsd  -0x60(%rax),%xmm13
  mulsd  %xmm5,%xmm9
  subsd  %xmm14,%xmm11
  movapd %xmm7,%xmm14
  mulsd  %xmm1,%xmm14
  subsd  %xmm9,%xmm6
  movsd  -0x58(%rax),%xmm9
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm7
  mulsd  %xmm5,%xmm3
  movsd  -0x58(%rcx),%xmm5
  subsd  %xmm14,%xmm12
  movapd %xmm13,%xmm14
  subsd  %xmm1,%xmm0
  movsd  -0x60(%rcx),%xmm1
  mulsd  %xmm5,%xmm13
  subsd  %xmm7,%xmm8
  movsd  -0x50(%rax),%xmm7
  mulsd  %xmm1,%xmm14
  subsd  %xmm3,%xmm2
  movsd  -0x48(%rax),%xmm3
  subsd  %xmm13,%xmm4
  movsd  -0x40(%rax),%xmm13
  subsd  %xmm14,%xmm10
  movapd %xmm9,%xmm14
  mulsd  %xmm1,%xmm14
  mulsd  %xmm5,%xmm9
  subsd  %xmm14,%xmm11
  movapd %xmm7,%xmm14
  mulsd  %xmm1,%xmm14
  subsd  %xmm9,%xmm6
  movsd  -0x38(%rax),%xmm9
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm7
  mulsd  %xmm5,%xmm3
  movsd  -0x38(%rcx),%xmm5
  subsd  %xmm14,%xmm12
  movapd %xmm13,%xmm14
  subsd  %xmm1,%xmm0
  movsd  -0x40(%rcx),%xmm1
  mulsd  %xmm5,%xmm13
  subsd  %xmm7,%xmm8
  movsd  -0x30(%rax),%xmm7
  mulsd  %xmm1,%xmm14
  subsd  %xmm3,%xmm2
  movsd  -0x28(%rax),%xmm3
  subsd  %xmm13,%xmm4
  movsd  -0x20(%rax),%xmm13
  subsd  %xmm14,%xmm10
  movapd %xmm9,%xmm14
  mulsd  %xmm1,%xmm14
  mulsd  %xmm5,%xmm9
  subsd  %xmm14,%xmm11
  movapd %xmm7,%xmm14
  mulsd  %xmm1,%xmm14
  subsd  %xmm9,%xmm6
  movsd  -0x18(%rax),%xmm9
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm7
  mulsd  %xmm5,%xmm3
  movsd  -0x18(%rcx),%xmm5
  subsd  %xmm14,%xmm12
  movapd %xmm13,%xmm14
  subsd  %xmm1,%xmm0
  movsd  -0x20(%rcx),%xmm1
  mulsd  %xmm5,%xmm13
  subsd  %xmm7,%xmm8
  movsd  -0x10(%rax),%xmm7
  mulsd  %xmm1,%xmm14
  subsd  %xmm3,%xmm2
  movsd  -0x8(%rax),%xmm3
  subsd  %xmm13,%xmm4
  subsd  %xmm14,%xmm10
  movapd %xmm9,%xmm14
  mulsd  %xmm1,%xmm14
  mulsd  %xmm5,%xmm9
  subsd  %xmm14,%xmm11
  movapd %xmm7,%xmm14
  mulsd  %xmm1,%xmm14
  subsd  %xmm9,%xmm6
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm7
  mulsd  %xmm5,%xmm3
  subsd  %xmm14,%xmm12
  subsd  %xmm1,%xmm0
  subsd  %xmm7,%xmm8
  subsd  %xmm3,%xmm2
  cmp    %rdx,%rax
  jne    L170
L117:
  mov    0x50(%rsp),%edx
  test   %edx,%edx
  je     L7
  addsd  (%r11),%xmm10
  addsd  0x8(%r11),%xmm11
  addsd  0x10(%r11),%xmm12
  addsd  0x18(%r11),%xmm0
  addsd  0x20(%r11),%xmm4
  addsd  0x28(%r11),%xmm6
  addsd  0x30(%r11),%xmm8
  addsd  0x38(%r11),%xmm2
L7:
  mov    0x70(%rsp),%eax
  test   %eax,%eax
  je     L150
  mov    0x78(%rsp),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm1,%xmm10
  mulsd  %xmm1,%xmm11
  mulsd  %xmm1,%xmm12
  mulsd  %xmm1,%xmm0
  movsd  %xmm10,(%r10)
  movsd  %xmm11,0x8(%r10)
  movsd  %xmm12,0x10(%r10)
  cmp    $0x3,%ebx
  jle    L122
  movsd  %xmm0,0x18(%r10)
  cmp    $0x1,%ebp
  je     L53
  movsd  0x8(%r15),%xmm3
  mov    0x78(%rsp),%rax
  mulsd  %xmm3,%xmm10
  movsd  0x8(%rax),%xmm1
  mulsd  %xmm3,%xmm11
  mulsd  %xmm3,%xmm12
  mulsd  %xmm3,%xmm0
  subsd  %xmm10,%xmm4
  subsd  %xmm11,%xmm6
  subsd  %xmm12,%xmm8
  subsd  %xmm0,%xmm2
  mulsd  %xmm1,%xmm4
  mulsd  %xmm1,%xmm6
  mulsd  %xmm1,%xmm8
  mulsd  %xmm1,%xmm2
  movsd  %xmm4,0x20(%r10)
  movsd  %xmm6,0x28(%r10)
  movsd  %xmm8,0x30(%r10)
  movsd  %xmm2,0x38(%r10)
L53:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L71:
  movsd  (%r8),%xmm4
  movsd  (%r9),%xmm10
  pxor   %xmm1,%xmm1
  mulsd  %xmm4,%xmm10
  mulsd  0x8(%r9),%xmm4
  addsd  %xmm1,%xmm10
  addsd  %xmm1,%xmm4
  cmp    $0x3,%edi
  jg     L6
  cmp    $0x1,%edi
  je     L57
  movsd  0x20(%r8),%xmm0
  movsd  0x28(%r8),%xmm6
  movsd  0x20(%r9),%xmm11
  movsd  0x28(%r9),%xmm2
  movapd %xmm0,%xmm3
  mulsd  %xmm11,%xmm3
  mulsd  %xmm2,%xmm0
  mulsd  %xmm6,%xmm11
  mulsd  %xmm2,%xmm6
  addsd  %xmm3,%xmm10
  addsd  %xmm0,%xmm4
  addsd  %xmm1,%xmm11
  addsd  %xmm1,%xmm6
  cmp    $0x3,%edi
  je     L24
  movapd %xmm1,%xmm8
  movapd %xmm1,%xmm12
  mov    $0x2,%r12d
L140:
  mov    %r9,%rsi
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  jmp    L208
  nopl   (%rax)
L150:
  movsd  D9(%rip),%xmm5
  movapd %xmm5,%xmm1
  divsd  (%r15),%xmm1
  mulsd  %xmm1,%xmm10
  mulsd  %xmm1,%xmm11
  mulsd  %xmm1,%xmm12
  mulsd  %xmm0,%xmm1
  movsd  %xmm10,(%r10)
  movsd  %xmm11,0x8(%r10)
  movsd  %xmm12,0x10(%r10)
  cmp    $0x3,%ebx
  jle    L188
  movsd  %xmm1,0x18(%r10)
L188:
  cmp    $0x1,%ebp
  je     L53
  movsd  0x8(%r15),%xmm3
  movapd %xmm5,%xmm0
  divsd  0x28(%r15),%xmm0
  mulsd  %xmm3,%xmm10
  mulsd  %xmm3,%xmm11
  mulsd  %xmm3,%xmm12
  subsd  %xmm10,%xmm4
  subsd  %xmm11,%xmm6
  subsd  %xmm12,%xmm8
  mulsd  %xmm0,%xmm4
  mulsd  %xmm0,%xmm6
  mulsd  %xmm0,%xmm8
  movsd  %xmm4,0x20(%r10)
  movsd  %xmm6,0x28(%r10)
  movsd  %xmm8,0x30(%r10)
  cmp    $0x3,%ebx
  jle    L53
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm2
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x38(%r10)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L157:
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm0
  movapd %xmm2,%xmm8
  movapd %xmm2,%xmm12
  movapd %xmm2,%xmm6
  movapd %xmm2,%xmm11
  movapd %xmm2,%xmm4
  movapd %xmm2,%xmm10
  jmp    L10
  nopl   0x0(%rax)
L122:
  cmp    $0x1,%ebp
  je     L53
  movsd  0x8(%r15),%xmm1
  mov    0x78(%rsp),%rax
  mulsd  %xmm1,%xmm10
  movsd  0x8(%rax),%xmm0
  mulsd  %xmm1,%xmm11
  mulsd  %xmm12,%xmm1
  subsd  %xmm10,%xmm4
  subsd  %xmm11,%xmm6
  subsd  %xmm1,%xmm8
  mulsd  %xmm0,%xmm4
  mulsd  %xmm0,%xmm6
  mulsd  %xmm8,%xmm0
  movsd  %xmm4,0x20(%r10)
  movsd  %xmm6,0x28(%r10)
  movsd  %xmm0,0x30(%r10)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L6:
  movsd  0x20(%r8),%xmm2
  movsd  0x28(%r9),%xmm5
  sub    $0xffffffffffffff80,%r8
  sub    $0xffffffffffffff80,%r9
  movsd  -0x58(%r8),%xmm0
  movsd  -0x60(%r9),%xmm3
  mov    $0x4,%r12d
  movapd %xmm2,%xmm8
  movsd  -0x40(%r8),%xmm9
  movsd  -0x38(%r8),%xmm7
  mulsd  %xmm5,%xmm2
  movsd  -0x38(%r9),%xmm6
  movsd  -0x18(%r9),%xmm13
  mulsd  %xmm3,%xmm8
  movapd %xmm9,%xmm11
  movapd %xmm7,%xmm12
  mulsd  %xmm0,%xmm3
  mulsd  %xmm5,%xmm0
  movsd  -0x30(%r8),%xmm5
  mulsd  %xmm6,%xmm9
  addsd  %xmm2,%xmm4
  mulsd  %xmm6,%xmm7
  addsd  %xmm10,%xmm8
  addsd  %xmm1,%xmm3
  movapd %xmm0,%xmm2
  movsd  -0x40(%r9),%xmm0
  addsd  %xmm4,%xmm9
  movsd  -0x20(%r8),%xmm4
  addsd  %xmm1,%xmm2
  mulsd  %xmm0,%xmm11
  mulsd  %xmm0,%xmm12
  movapd %xmm4,%xmm10
  mulsd  %xmm5,%xmm0
  addsd  %xmm2,%xmm7
  movsd  -0x8(%r8),%xmm2
  mulsd  %xmm6,%xmm5
  movsd  -0x18(%r8),%xmm6
  mulsd  %xmm13,%xmm4
  addsd  %xmm8,%xmm11
  movsd  -0x10(%r8),%xmm8
  addsd  %xmm3,%xmm12
  addsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm5
  addsd  %xmm9,%xmm4
  movapd %xmm0,%xmm3
  movsd  -0x20(%r9),%xmm0
  mulsd  %xmm0,%xmm10
  addsd  %xmm11,%xmm10
  movapd %xmm6,%xmm11
  mulsd  %xmm0,%xmm11
  mulsd  %xmm13,%xmm6
  addsd  %xmm12,%xmm11
  movapd %xmm8,%xmm12
  mulsd  %xmm0,%xmm12
  addsd  %xmm7,%xmm6
  mulsd  %xmm2,%xmm0
  mulsd  %xmm13,%xmm8
  mulsd  %xmm13,%xmm2
  addsd  %xmm3,%xmm12
  addsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm8
  addsd  %xmm1,%xmm2
  jmp    L73
L24:
  movsd  0x40(%r8),%xmm2
  movsd  0x40(%r9),%xmm12
  mov    $0x3,%r12d
  movsd  0x48(%r8),%xmm0
  movsd  0x48(%r9),%xmm3
  movapd %xmm2,%xmm5
  movsd  0x50(%r8),%xmm8
  mulsd  %xmm12,%xmm5
  mulsd  %xmm3,%xmm2
  addsd  %xmm5,%xmm10
  movapd %xmm0,%xmm5
  mulsd  %xmm12,%xmm5
  addsd  %xmm2,%xmm4
  mulsd  %xmm8,%xmm12
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm8
  addsd  %xmm5,%xmm11
  addsd  %xmm1,%xmm12
  addsd  %xmm0,%xmm6
  addsd  %xmm1,%xmm8
  jmp    L140
L57:
  mov    $0x1,%r12d
  movapd %xmm1,%xmm8
  movapd %xmm1,%xmm12
  movapd %xmm1,%xmm6
  movapd %xmm1,%xmm11
  jmp    L140
L14:
  mov    %r9,%rsi
  jmp    L208
```

tool_calls: name: unpack_data
arguments: data_label: D9
data_type: f64

tool: D9: 1

assistant: ```c
void kernel_dgemm_dtrsm_nt_4x2_vs_lib4_new(int km, int kn, int kadd, int tri_A, double *Ap, double *Bp, int ksub, double *Am, double *Bm, int alg, double *C, double *D, double *E, int use_inv_diag_E, double *inv_diag_E) {
  const int bs = 4;
  int k;
  double a_0, a_1, a_2, a_3, b_0, b_1, c_00 = 0, c_01 = 0, c_10 = 0, c_11 = 0, c_20 = 0, c_21 = 0, c_30 = 0, c_31 = 0;
  k = 0;
  if (kadd > 0) {
    if (tri_A == 1) {
      if (kadd >= 4) {
        a_0 = Ap[0 + bs * 0];
        b_0 = Bp[0 + bs * 0];
        b_1 = Bp[1 + bs * 0];
        c_00 += a_0 * b_0;
        c_01 += a_0 * b_1;
        a_0 = Ap[0 + bs * 1];
        a_1 = Ap[1 + bs * 1];
        b_0 = Bp[0 + bs * 1];
        b_1 = Bp[1 + 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;
        a_0 = Ap[0 + bs * 2];
        a_1 = Ap[1 + bs * 2];
        a_2 = Ap[2 + bs * 2];
        b_0 = Bp[0 + bs * 2];
        b_1 = Bp[1 + 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;
        a_0 = Ap[0 + bs * 3];
        a_1 = Ap[1 + bs * 3];
        a_2 = Ap[2 + bs * 3];
        a_3 = Ap[3 + bs * 3];
        b_0 = Bp[0 + bs * 3];
        b_1 = Bp[1 + 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;
        Ap += 16;
        Bp += 16;
        k += 4;
      } else {
        a_0 = Ap[0 + bs * 0];
        b_0 = Bp[0 + bs * 0];
        b_1 = Bp[1 + bs * 0];
        c_00 += a_0 * b_0;
        c_01 += a_0 * b_1;
        k += 1;
        if (kadd > 1) {
          a_0 = Ap[0 + bs * 1];
          a_1 = Ap[1 + bs * 1];
          b_0 = Bp[0 + bs * 1];
          b_1 = Bp[1 + 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;
          k += 1;
          if (kadd > 2) {
            a_0 = Ap[0 + bs * 2];
            a_1 = Ap[1 + bs * 2];
            a_2 = Ap[2 + bs * 2];
            b_0 = Bp[0 + bs * 2];
            b_1 = Bp[1 + 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;
            k += 1;
          }
        }
      }
    }
    for (; k < kadd - 3; k += 4) {
      a_0 = Ap[0 + bs * 0];
      a_1 = Ap[1 + bs * 0];
      a_2 = Ap[2 + bs * 0];
      a_3 = Ap[3 + bs * 0];
      b_0 = Bp[0 + bs * 0];
      b_1 = Bp[1 + 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;
      a_0 = Ap[0 + bs * 1];
      a_1 = Ap[1 + bs * 1];
      a_2 = Ap[2 + bs * 1];
      a_3 = Ap[3 + bs * 1];
      b_0 = Bp[0 + bs * 1];
      b_1 = Bp[1 + 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;
      a_0 = Ap[0 + bs * 2];
      a_1 = Ap[1 + bs * 2];
      a_2 = Ap[2 + bs * 2];
      a_3 = Ap[3 + bs * 2];
      b_0 = Bp[0 + bs * 2];
      b_1 = Bp[1 + 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;
      a_0 = Ap[0 + bs * 3];
      a_1 = Ap[1 + bs * 3];
      a_2 = Ap[2 + bs * 3];
      a_3 = Ap[3 + bs * 3];
      b_0 = Bp[0 + bs * 3];
      b_1 = Bp[1 + 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;
      Ap += 16;
      Bp += 16;
    }
    for (; k < kadd; k++) {
      a_0 = Ap[0 + bs * 0];
      a_1 = Ap[1 + bs * 0];
      a_2 = Ap[2 + bs * 0];
      a_3 = Ap[3 + bs * 0];
      b_0 = Bp[0 + bs * 0];
      b_1 = Bp[1 + 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;
      Ap += 4;
      Bp += 4;
    }
  }
  for (k = 0; k < ksub - 3; k += 4) {
    a_0 = Am[0 + bs * 0];
    a_1 = Am[1 + bs * 0];
    a_2 = Am[2 + bs * 0];
    a_3 = Am[3 + bs * 0];
    b_0 = Bm[0 + bs * 0];
    b_1 = Bm[1 + 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;
    a_0 = Am[0 + bs * 1];
    a_1 = Am[1 + bs * 1];
    a_2 = Am[2 + bs * 1];
    a_3 = Am[3 + bs * 1];
    b_0 = Bm[0 + bs * 1];
    b_1 = Bm[1 + 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;
    a_0 = Am[0 + bs * 2];
    a_1 = Am[1 + bs * 2];
    a_2 = Am[2 + bs * 2];
    a_3 = Am[3 + bs * 2];
    b_0 = Bm[0 + bs * 2];
    b_1 = Bm[1 + 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;
    a_0 = Am[0 + bs * 3];
    a_1 = Am[1 + bs * 3];
    a_2 = Am[2 + bs * 3];
    a_3 = Am[3 + bs * 3];
    b_0 = Bm[0 + bs * 3];
    b_1 = Bm[1 + 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;
    Am += 16;
    Bm += 16;
  }
  if (alg != 0) {
    c_00 += C[0 + bs * 0];
    c_10 += C[1 + bs * 0];
    c_20 += C[2 + bs * 0];
    c_30 += C[3 + bs * 0];
    c_01 += C[0 + bs * 1];
    c_11 += C[1 + bs * 1];
    c_21 += C[2 + bs * 1];
    c_31 += C[3 + bs * 1];
  }
  double a_00, a_10, a_11;
  if (use_inv_diag_E) {
    a_00 = inv_diag_E[0];
    c_00 *= a_00;
    c_10 *= a_00;
    c_20 *= a_00;
    c_30 *= a_00;
    D[0 + bs * 0] = c_00;
    D[1 + bs * 0] = c_10;
    D[2 + bs * 0] = c_20;
    if (km >= 4)
      D[3 + bs * 0] = c_30;
    if (kn == 1)
      return;
    a_10 = E[1 + bs * 0];
    a_11 = inv_diag_E[1];
    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;
    D[0 + bs * 1] = c_01;
    D[1 + bs * 1] = c_11;
    D[2 + bs * 1] = c_21;
    if (km >= 4)
      D[3 + bs * 1] = c_31;
  } else {
    a_00 = 1.0 / E[0 + bs * 0];
    c_00 *= a_00;
    c_10 *= a_00;
    c_20 *= a_00;
    c_30 *= a_00;
    D[0 + bs * 0] = c_00;
    D[1 + bs * 0] = c_10;
    D[2 + bs * 0] = c_20;
    if (km >= 4)
      D[3 + bs * 0] = c_30;
    if (kn == 1)
      return;
    a_10 = E[1 + bs * 0];
    a_11 = 1.0 / E[1 + bs * 1];
    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;
    D[0 + bs * 1] = c_01;
    D[1 + bs * 1] = c_11;
    D[2 + bs * 1] = c_21;
    if (km >= 4)
      D[3 + bs * 1] = c_31;
  }
}
```