user: 请将以下的汇编代码转换成C语言代码:

```asm
<kernel_dgemm_dtrsm_nt_2x4_vs_lib4_new>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x30,%rsp
  mov    0x70(%rsp),%rdx
  mov    %esi,0x24(%rsp)
  mov    0x78(%rsp),%rax
  mov    0x88(%rsp),%r14
  mov    0x90(%rsp),%r13
  mov    0x98(%rsp),%rbp
  mov    0xa8(%rsp),%r15
  test   %r12d,%r12d
  jle    L265
  cmp    $0x1,%ecx
  je     L200
  pxor   %xmm11,%xmm11
  xor    %r11d,%r11d
  movapd %xmm11,%xmm7
  movapd %xmm11,%xmm10
  movapd %xmm11,%xmm15
  movsd  %xmm11,-0x68(%rsp)
  movsd  %xmm11,-0x78(%rsp)
  movapd %xmm11,%xmm13
  movapd %xmm11,%xmm14
L131:
  lea    -0x3(%r12),%ecx
  cmp    %r11d,%ecx
  jle    L94
  lea    -0x4(%r12),%ecx
  sub    %r11d,%ecx
  mov    %ecx,%edi
  shr    $0x2,%edi
  cmp    $0x3,%ecx
  jbe    L204
  movsd  -0x78(%rsp),%xmm9
  mov    %r8,%rsi
  mov    %r9,%rcx
  xor    %r10d,%r10d
  movsd  -0x68(%rsp),%xmm12
  movsd  %xmm11,-0x58(%rsp)
  movapd %xmm10,%xmm11
  nopl   (%rax)
L185:
  movupd (%rcx),%xmm1
  movupd (%rsi),%xmm4
  add    $0x1,%r10d
  sub    $0xffffffffffffff80,%rsi
  movupd -0x60(%rsi),%xmm3
  movlpd -0x78(%rsi),%xmm3
  sub    $0xffffffffffffff80,%rcx
  movhpd -0x60(%rcx),%xmm1
  movhpd -0x60(%rsi),%xmm4
  movupd -0x40(%rcx),%xmm8
  movupd -0x20(%rsi),%xmm0
  movapd %xmm1,%xmm5
  movlpd -0x38(%rsi),%xmm0
  movupd -0x40(%rsi),%xmm2
  mulpd  %xmm4,%xmm5
  movhpd -0x20(%rcx),%xmm8
  mulpd  %xmm3,%xmm1
  movapd %xmm8,%xmm10
  movhpd -0x20(%rsi),%xmm2
  mulpd  %xmm2,%xmm10
  movapd %xmm5,%xmm6
  unpckhpd %xmm5,%xmm5
  addsd  %xmm14,%xmm6
  movaps %xmm10,0x8(%rsp)
  movlpd %xmm10,0x18(%rsp)
  addsd  %xmm5,%xmm6
  movapd %xmm1,%xmm5
  unpckhpd %xmm1,%xmm1
  addsd  %xmm7,%xmm5
  movapd %xmm6,%xmm14
  movapd %xmm8,%xmm6
  addsd  %xmm1,%xmm5
  movupd -0x60(%rcx),%xmm1
  movlpd -0x78(%rcx),%xmm1
  mulpd  %xmm0,%xmm6
  movsd  %xmm5,-0x28(%rsp)
  movapd %xmm1,%xmm5
  movupd -0x20(%rcx),%xmm1
  movlpd -0x38(%rcx),%xmm1
  movapd %xmm5,%xmm8
  mulpd  %xmm4,%xmm8
  movaps %xmm6,-0x38(%rsp)
  movlpd %xmm6,-0x10(%rsp)
  mulpd  %xmm3,%xmm5
  movapd %xmm8,%xmm6
  movapd %xmm1,%xmm8
  mulpd  %xmm2,%xmm8
  movapd %xmm6,%xmm7
  unpckhpd %xmm6,%xmm6
  addsd  %xmm13,%xmm7
  mulpd  %xmm0,%xmm1
  addsd  %xmm6,%xmm7
  movapd %xmm5,%xmm6
  unpckhpd %xmm5,%xmm5
  addsd  %xmm9,%xmm6
  movaps %xmm8,-0x78(%rsp)
  movapd %xmm8,%xmm13
  movlpd %xmm1,-0x48(%rsp)
  unpckhpd %xmm1,%xmm1
  movsd  %xmm7,(%rsp)
  movupd -0x70(%rcx),%xmm7
  movapd %xmm6,%xmm9
  movhpd -0x50(%rcx),%xmm7
  addsd  %xmm5,%xmm9
  movupd -0x30(%rcx),%xmm5
  movapd %xmm7,%xmm6
  mulpd  %xmm4,%xmm6
  movhpd -0x10(%rcx),%xmm5
  mulpd  %xmm3,%xmm7
  movsd  %xmm9,-0x68(%rsp)
  movapd %xmm5,%xmm8
  mulpd  %xmm2,%xmm8
  mulpd  %xmm0,%xmm5
  movapd %xmm6,%xmm9
  unpckhpd %xmm6,%xmm6
  addsd  %xmm15,%xmm9
  movapd %xmm9,%xmm15
  addsd  %xmm6,%xmm15
  movapd %xmm7,%xmm6
  unpckhpd %xmm7,%xmm7
  addsd  %xmm12,%xmm6
  movsd  %xmm15,-0x8(%rsp)
  movapd %xmm8,%xmm15
  unpckhpd %xmm8,%xmm8
  addsd  %xmm7,%xmm6
  movupd -0x50(%rcx),%xmm7
  movlpd -0x68(%rcx),%xmm7
  movapd %xmm7,%xmm9
  movupd -0x10(%rcx),%xmm7
  movlpd -0x28(%rcx),%xmm7
  mulpd  %xmm9,%xmm4
  addsd  %xmm5,%xmm6
  unpckhpd %xmm5,%xmm5
  mulpd  %xmm3,%xmm9
  movsd  -0x58(%rsp),%xmm3
  addsd  0x18(%rsp),%xmm14
  mulpd  %xmm7,%xmm2
  addsd  (%rsp),%xmm13
  addsd  -0x8(%rsp),%xmm15
  mulpd  %xmm7,%xmm0
  movsd  0x10(%rsp),%xmm7
  addsd  %xmm5,%xmm6
  movapd %xmm4,%xmm10
  addsd  %xmm11,%xmm4
  addsd  %xmm7,%xmm14
  movsd  -0x28(%rsp),%xmm7
  addsd  %xmm9,%xmm3
  unpckhpd %xmm10,%xmm10
  unpckhpd %xmm9,%xmm9
  addsd  -0x10(%rsp),%xmm7
  addsd  %xmm8,%xmm15
  movapd %xmm6,%xmm12
  addsd  %xmm10,%xmm4
  addsd  %xmm9,%xmm3
  movsd  -0x30(%rsp),%xmm9
  addsd  %xmm2,%xmm4
  addsd  %xmm9,%xmm7
  movsd  -0x70(%rsp),%xmm9
  unpckhpd %xmm2,%xmm2
  addsd  %xmm0,%xmm3
  unpckhpd %xmm0,%xmm0
  addsd  %xmm9,%xmm13
  movsd  -0x68(%rsp),%xmm9
  addsd  -0x48(%rsp),%xmm9
  addsd  %xmm2,%xmm4
  addsd  %xmm0,%xmm3
  addsd  %xmm1,%xmm9
  movapd %xmm4,%xmm11
  movsd  %xmm3,-0x58(%rsp)
  cmp    %r10d,%edi
  ja     L185
  mov    %edi,%ecx
  movapd %xmm4,%xmm10
  movapd %xmm3,%xmm11
  movsd  %xmm9,-0x78(%rsp)
  shl    $0x7,%rcx
  movsd  %xmm6,-0x68(%rsp)
  lea    (%r8,%rcx,1),%rsi
  add    %r9,%rcx
L223:
  movsd  (%rcx),%xmm8
  movsd  (%rsi),%xmm0
  lea    0x4(%r11,%rdi,4),%r11d
  movsd  0x8(%rsi),%xmm1
  movsd  0x8(%rcx),%xmm3
  movapd %xmm8,%xmm9
  movsd  0x10(%rcx),%xmm6
  movsd  0x18(%rcx),%xmm2
  mulsd  %xmm0,%xmm9
  movapd %xmm3,%xmm12
  movsd  0x20(%rsi),%xmm5
  movsd  0x28(%rcx),%xmm4
  mulsd  %xmm1,%xmm8
  mulsd  %xmm0,%xmm12
  addsd  %xmm14,%xmm9
  movapd %xmm6,%xmm14
  mulsd  %xmm0,%xmm14
  addsd  %xmm7,%xmm8
  movapd %xmm3,%xmm7
  movsd  0x28(%rsi),%xmm3
  mulsd  %xmm2,%xmm0
  addsd  %xmm13,%xmm12
  movsd  0x38(%rcx),%xmm13
  mulsd  %xmm1,%xmm7
  mulsd  %xmm1,%xmm6
  addsd  -0x78(%rsp),%xmm7
  mulsd  %xmm1,%xmm2
  movsd  0x20(%rcx),%xmm1
  addsd  -0x68(%rsp),%xmm6
  addsd  %xmm15,%xmm14
  addsd  %xmm10,%xmm0
  movapd %xmm5,%xmm10
  mulsd  %xmm1,%xmm10
  mulsd  %xmm3,%xmm1
  addsd  %xmm11,%xmm2
  movsd  0x30(%rcx),%xmm11
  addsd  %xmm9,%xmm10
  movapd %xmm5,%xmm9
  mulsd  %xmm4,%xmm9
  addsd  %xmm8,%xmm1
  mulsd  %xmm3,%xmm4
  addsd  %xmm12,%xmm9
  movapd %xmm5,%xmm12
  mulsd  %xmm13,%xmm5
  addsd  %xmm7,%xmm4
  mulsd  %xmm11,%xmm12
  mulsd  %xmm3,%xmm11
  mulsd  %xmm13,%xmm3
  movsd  0x58(%rcx),%xmm13
  addsd  %xmm0,%xmm5
  movsd  0x40(%rsi),%xmm0
  addsd  %xmm14,%xmm12
  movsd  0x40(%rcx),%xmm14
  movapd %xmm0,%xmm7
  addsd  %xmm6,%xmm11
  movsd  0x48(%rcx),%xmm6
  mulsd  %xmm14,%xmm7
  addsd  %xmm2,%xmm3
  movsd  0x48(%rsi),%xmm2
  movapd %xmm5,%xmm8
  movsd  0x50(%rcx),%xmm5
  mulsd  %xmm2,%xmm14
  addsd  %xmm10,%xmm7
  movapd %xmm0,%xmm10
  mulsd  %xmm6,%xmm10
  mulsd  %xmm2,%xmm6
  addsd  %xmm14,%xmm1
  addsd  %xmm9,%xmm10
  movapd %xmm0,%xmm9
  mulsd  %xmm5,%xmm9
  addsd  %xmm4,%xmm6
  movsd  0x60(%rsi),%xmm4
  mulsd  %xmm2,%xmm5
  mulsd  %xmm13,%xmm2
  movapd %xmm4,%xmm14
  mulsd  %xmm13,%xmm0
  movsd  0x60(%rcx),%xmm13
  mulsd  %xmm13,%xmm14
  addsd  %xmm12,%xmm9
  movsd  0x68(%rcx),%xmm12
  addsd  %xmm11,%xmm5
  movsd  0x78(%rcx),%xmm11
  addsd  %xmm3,%xmm2
  movsd  0x68(%rsi),%xmm3
  addsd  %xmm8,%xmm0
  movsd  0x70(%rcx),%xmm8
  lea    0x1(%rdi),%ecx
  mulsd  %xmm3,%xmm13
  shl    $0x7,%rcx
  addsd  %xmm7,%xmm14
  add    %rcx,%r8
  add    %rcx,%r9
  movapd %xmm13,%xmm7
  addsd  %xmm1,%xmm7
  movapd %xmm4,%xmm1
  mulsd  %xmm12,%xmm1
  mulsd  %xmm3,%xmm12
  addsd  %xmm10,%xmm1
  addsd  %xmm6,%xmm12
  movapd %xmm1,%xmm13
  movapd %xmm4,%xmm1
  mulsd  %xmm8,%xmm1
  movsd  %xmm12,-0x78(%rsp)
  mulsd  %xmm3,%xmm8
  mulsd  %xmm11,%xmm4
  mulsd  %xmm11,%xmm3
  addsd  %xmm9,%xmm1
  addsd  %xmm5,%xmm8
  addsd  %xmm0,%xmm4
  addsd  %xmm2,%xmm3
  movapd %xmm1,%xmm15
  movsd  %xmm8,-0x68(%rsp)
  movapd %xmm4,%xmm10
  movapd %xmm3,%xmm11
L94:
  cmp    %r11d,%r12d
  jle    L116
  sub    %r11d,%r12d
  cmp    $0x1,%r12d
  je     L235
  movupd (%r8),%xmm2
  movupd 0x10(%r9),%xmm1
  movapd %xmm11,%xmm5
  lea    -0x1(%r12),%ecx
  movupd (%r9),%xmm0
  movupd (%r8),%xmm4
  movhpd -0x68(%rsp),%xmm5
  unpckhpd %xmm2,%xmm2
  shufpd $0x1,%xmm1,%xmm1
  movapd %xmm1,%xmm3
  mulpd  %xmm2,%xmm3
  shufpd $0x1,%xmm0,%xmm0
  unpcklpd %xmm4,%xmm4
  mulpd  %xmm0,%xmm2
  mulpd  %xmm4,%xmm1
  mulpd  %xmm4,%xmm0
  movapd %xmm13,%xmm4
  unpcklpd %xmm14,%xmm4
  addpd  %xmm5,%xmm3
  movsd  -0x78(%rsp),%xmm5
  unpcklpd %xmm7,%xmm5
  addpd  %xmm5,%xmm2
  movapd %xmm10,%xmm5
  addpd  %xmm4,%xmm0
  unpcklpd %xmm15,%xmm5
  addpd  %xmm5,%xmm1
  cmp    $0x2,%r12d
  je     L247
  movupd 0x20(%r8),%xmm7
  movupd 0x20(%r8),%xmm4
  movupd 0x30(%r9),%xmm5
  movupd 0x20(%r9),%xmm6
  unpckhpd %xmm7,%xmm7
  unpcklpd %xmm4,%xmm4
  shufpd $0x1,%xmm5,%xmm5
  movapd %xmm5,%xmm8
  shufpd $0x1,%xmm6,%xmm6
  mulpd  %xmm7,%xmm8
  mulpd  %xmm4,%xmm5
  mulpd  %xmm6,%xmm7
  mulpd  %xmm6,%xmm4
  addpd  %xmm8,%xmm3
  addpd  %xmm5,%xmm1
  addpd  %xmm7,%xmm2
  addpd  %xmm4,%xmm0
  cmp    $0x2,%ecx
  je     L247
  movupd 0x40(%r8),%xmm7
  movupd 0x40(%r8),%xmm5
  movupd 0x50(%r9),%xmm6
  movupd 0x40(%r9),%xmm4
  unpckhpd %xmm7,%xmm7
  unpcklpd %xmm5,%xmm5
  shufpd $0x1,%xmm6,%xmm6
  movapd %xmm6,%xmm8
  shufpd $0x1,%xmm4,%xmm4
  mulpd  %xmm7,%xmm8
  mulpd  %xmm5,%xmm6
  mulpd  %xmm4,%xmm7
  mulpd  %xmm5,%xmm4
  addpd  %xmm8,%xmm3
  addpd  %xmm6,%xmm1
  addpd  %xmm7,%xmm2
  addpd  %xmm4,%xmm0
L247:
  shl    $0x5,%rcx
  movlpd %xmm2,-0x78(%rsp)
  movapd %xmm1,%xmm10
  unpckhpd %xmm2,%xmm2
  unpckhpd %xmm1,%xmm1
  movapd %xmm0,%xmm13
  unpckhpd %xmm0,%xmm0
  add    %rcx,%r8
  movapd %xmm3,%xmm11
  movhpd %xmm3,-0x68(%rsp)
  movapd %xmm2,%xmm7
  add    %rcx,%r9
  movapd %xmm1,%xmm15
  movapd %xmm0,%xmm14
L235:
  movsd  0x8(%r8),%xmm2
  movsd  (%r9),%xmm5
  movsd  0x8(%r9),%xmm4
  movsd  0x10(%r9),%xmm3
  movapd %xmm5,%xmm6
  movsd  (%r8),%xmm0
  movsd  0x18(%r9),%xmm1
  mulsd  %xmm2,%xmm5
  mulsd  %xmm0,%xmm6
  addsd  %xmm5,%xmm7
  movapd %xmm4,%xmm5
  mulsd  %xmm2,%xmm4
  addsd  %xmm6,%xmm14
  addsd  -0x78(%rsp),%xmm4
  mulsd  %xmm0,%xmm5
  movsd  %xmm4,-0x78(%rsp)
  movapd %xmm3,%xmm4
  mulsd  %xmm0,%xmm4
  mulsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm13
  mulsd  %xmm2,%xmm1
  mulsd  %xmm2,%xmm3
  addsd  -0x68(%rsp),%xmm3
  addsd  %xmm4,%xmm15
  addsd  %xmm0,%xmm10
  addsd  %xmm1,%xmm11
  movsd  %xmm3,-0x68(%rsp)
L116:
  cmpl   $0x3,0x68(%rsp)
  jle    L56
  mov    0x68(%rsp),%edi
  lea    -0x4(%rdi),%ecx
  mov    %ecx,%r8d
  shr    $0x2,%r8d
  cmp    $0x3,%ecx
  jbe    L148
  movapd %xmm11,%xmm2
  mov    %rax,%rcx
  mov    %rdx,%rsi
  xor    %edi,%edi
  movhpd -0x68(%rsp),%xmm2
  movaps %xmm2,-0x68(%rsp)
  movsd  -0x78(%rsp),%xmm2
  unpcklpd %xmm7,%xmm2
  movaps %xmm2,-0x78(%rsp)
  movapd %xmm10,%xmm2
  unpcklpd %xmm15,%xmm2
  movaps %xmm2,-0x48(%rsp)
  movapd %xmm13,%xmm2
  unpcklpd %xmm14,%xmm2
  movaps %xmm2,-0x58(%rsp)
  nopw   0x0(%rax,%rax,1)
L234:
  movupd (%rsi),%xmm14
  movupd 0x10(%rcx),%xmm9
  add    $0x1,%edi
  sub    $0xffffffffffffff80,%rcx
  movupd -0x40(%rcx),%xmm15
  movupd 0x20(%rsi),%xmm13
  sub    $0xffffffffffffff80,%rsi
  unpckhpd %xmm14,%xmm14
  shufpd $0x1,%xmm9,%xmm9
  movapd %xmm9,%xmm10
  movupd -0x50(%rcx),%xmm8
  mulpd  %xmm14,%xmm10
  shufpd $0x1,%xmm15,%xmm15
  unpckhpd %xmm13,%xmm13
  movaps %xmm15,-0x38(%rsp)
  shufpd $0x1,%xmm8,%xmm8
  movupd -0x40(%rsi),%xmm7
  movupd -0x10(%rcx),%xmm6
  movupd -0x40(%rsi),%xmm12
  movupd -0x20(%rsi),%xmm11
  unpcklpd %xmm7,%xmm7
  shufpd $0x1,%xmm6,%xmm6
  movupd -0x80(%rcx),%xmm4
  movupd -0x60(%rcx),%xmm2
  movaps %xmm7,-0x28(%rsp)
  movupd -0x30(%rcx),%xmm7
  unpckhpd %xmm12,%xmm12
  unpckhpd %xmm11,%xmm11
  movapd %xmm10,%xmm15
  shufpd $0x1,%xmm4,%xmm4
  shufpd $0x1,%xmm2,%xmm2
  movapd -0x68(%rsp),%xmm10
  shufpd $0x1,%xmm7,%xmm7
  mulpd  %xmm4,%xmm14
  movupd -0x20(%rcx),%xmm0
  movupd -0x80(%rsi),%xmm5
  subpd  %xmm15,%xmm10
  movapd %xmm8,%xmm15
  movupd -0x60(%rsi),%xmm3
  movupd -0x20(%rsi),%xmm1
  mulpd  %xmm13,%xmm15
  shufpd $0x1,%xmm0,%xmm0
  unpcklpd %xmm5,%xmm5
  mulpd  %xmm2,%xmm13
  unpcklpd %xmm3,%xmm3
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm5,%xmm4
  mulpd  %xmm5,%xmm9
  movapd -0x58(%rsp),%xmm5
  mulpd  %xmm3,%xmm8
  subpd  %xmm15,%xmm10
  mulpd  %xmm2,%xmm3
  movapd %xmm7,%xmm15
  mulpd  %xmm12,%xmm15
  subpd  %xmm4,%xmm5
  movapd %xmm5,%xmm2
  subpd  %xmm15,%xmm10
  movapd %xmm6,%xmm15
  subpd  %xmm3,%xmm2
  mulpd  %xmm11,%xmm15
  mulpd  %xmm0,%xmm11
  mulpd  %xmm1,%xmm6
  mulpd  %xmm1,%xmm0
  subpd  %xmm15,%xmm10
  movapd -0x38(%rsp),%xmm15
  mulpd  %xmm15,%xmm12
  movapd %xmm15,%xmm3
  movaps %xmm10,-0x68(%rsp)
  movapd -0x78(%rsp),%xmm10
  subpd  %xmm14,%xmm10
  movapd -0x28(%rsp),%xmm14
  mulpd  %xmm14,%xmm7
  subpd  %xmm13,%xmm10
  mulpd  %xmm14,%xmm3
  subpd  %xmm12,%xmm10
  subpd  %xmm3,%xmm2
  subpd  %xmm11,%xmm10
  subpd  %xmm0,%xmm2
  movaps %xmm10,-0x78(%rsp)
  movapd -0x48(%rsp),%xmm10
  subpd  %xmm9,%xmm10
  movapd %xmm8,%xmm9
  movaps %xmm2,-0x58(%rsp)
  movapd %xmm10,%xmm8
  subpd  %xmm9,%xmm8
  subpd  %xmm7,%xmm8
  subpd  %xmm6,%xmm8
  movaps %xmm8,-0x48(%rsp)
  cmp    %edi,%r8d
  ja     L234
  movapd -0x68(%rsp),%xmm2
  shl    $0x7,%r8
  movapd %xmm8,%xmm10
  add    %r8,%rdx
  add    %r8,%rax
  movapd %xmm2,%xmm11
  movhpd %xmm2,-0x68(%rsp)
  movapd -0x78(%rsp),%xmm2
  movlpd %xmm2,-0x78(%rsp)
  unpckhpd %xmm2,%xmm2
  movapd %xmm2,%xmm7
  movapd %xmm8,%xmm2
  unpckhpd %xmm2,%xmm2
  movapd %xmm2,%xmm15
  movapd -0x58(%rsp),%xmm2
  movapd %xmm2,%xmm13
  unpckhpd %xmm2,%xmm2
  movapd %xmm2,%xmm14
L148:
  movsd  0x8(%rdx),%xmm6
  movsd  (%rax),%xmm4
  movapd %xmm13,%xmm9
  movsd  (%rdx),%xmm0
  movsd  0x8(%rax),%xmm3
  movapd %xmm4,%xmm5
  movsd  0x10(%rax),%xmm2
  movsd  0x18(%rax),%xmm1
  mulsd  %xmm6,%xmm4
  movsd  0x28(%rdx),%xmm8
  movsd  0x20(%rax),%xmm13
  mulsd  %xmm0,%xmm5
  subsd  %xmm4,%xmm7
  movapd %xmm3,%xmm4
  mulsd  %xmm6,%xmm3
  subsd  %xmm5,%xmm14
  movsd  -0x78(%rsp),%xmm5
  mulsd  %xmm0,%xmm4
  movapd %xmm14,%xmm12
  movapd %xmm13,%xmm14
  mulsd  %xmm8,%xmm13
  subsd  %xmm3,%xmm5
  movapd %xmm2,%xmm3
  mulsd  %xmm0,%xmm3
  subsd  %xmm4,%xmm9
  movapd %xmm15,%xmm4
  movsd  0x28(%rax),%xmm15
  mulsd  %xmm6,%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  %xmm6,%xmm1
  subsd  %xmm13,%xmm7
  movapd %xmm15,%xmm13
  movsd  0x38(%rax),%xmm6
  mulsd  %xmm8,%xmm15
  subsd  %xmm3,%xmm4
  movsd  -0x68(%rsp),%xmm3
  subsd  %xmm2,%xmm3
  movapd %xmm10,%xmm2
  movsd  0x30(%rax),%xmm10
  subsd  %xmm0,%xmm2
  movapd %xmm1,%xmm0
  movapd %xmm11,%xmm1
  subsd  %xmm0,%xmm1
  movsd  0x20(%rdx),%xmm0
  movapd %xmm12,%xmm11
  movapd %xmm10,%xmm12
  mulsd  %xmm8,%xmm10
  subsd  %xmm15,%xmm5
  mulsd  %xmm0,%xmm13
  mulsd  %xmm0,%xmm14
  mulsd  %xmm0,%xmm12
  mulsd  %xmm6,%xmm0
  mulsd  %xmm8,%xmm6
  movsd  0x48(%rdx),%xmm8
  subsd  %xmm10,%xmm3
  movsd  0x50(%rax),%xmm10
  subsd  %xmm13,%xmm9
  movsd  0x40(%rax),%xmm13
  subsd  %xmm14,%xmm11
  movapd %xmm13,%xmm14
  subsd  %xmm12,%xmm4
  movsd  0x48(%rax),%xmm12
  mulsd  %xmm8,%xmm13
  subsd  %xmm0,%xmm2
  movsd  0x40(%rdx),%xmm0
  subsd  %xmm6,%xmm1
  movsd  0x58(%rax),%xmm6
  mulsd  %xmm0,%xmm14
  subsd  %xmm13,%xmm7
  movapd %xmm12,%xmm13
  mulsd  %xmm8,%xmm12
  mulsd  %xmm0,%xmm13
  subsd  %xmm14,%xmm11
  subsd  %xmm12,%xmm5
  movapd %xmm10,%xmm12
  mulsd  %xmm0,%xmm12
  subsd  %xmm13,%xmm9
  movsd  0x60(%rax),%xmm13
  mulsd  %xmm6,%xmm0
  mulsd  %xmm8,%xmm10
  movapd %xmm13,%xmm15
  mulsd  %xmm8,%xmm6
  movsd  0x68(%rdx),%xmm8
  subsd  %xmm12,%xmm4
  movsd  0x68(%rax),%xmm12
  mulsd  %xmm8,%xmm13
  subsd  %xmm0,%xmm2
  movsd  0x60(%rdx),%xmm0
  subsd  %xmm10,%xmm3
  movsd  0x70(%rax),%xmm10
  mulsd  %xmm0,%xmm15
  subsd  %xmm6,%xmm1
  movsd  0x78(%rax),%xmm6
  subsd  %xmm13,%xmm7
  subsd  %xmm15,%xmm11
  movapd %xmm11,%xmm14
  movapd %xmm12,%xmm11
  mulsd  %xmm8,%xmm12
  mulsd  %xmm0,%xmm11
  subsd  %xmm12,%xmm5
  subsd  %xmm11,%xmm9
  movsd  %xmm5,-0x78(%rsp)
  movapd %xmm10,%xmm5
  mulsd  %xmm0,%xmm5
  movapd %xmm9,%xmm13
  mulsd  %xmm8,%xmm10
  mulsd  %xmm6,%xmm0
  mulsd  %xmm8,%xmm6
  subsd  %xmm5,%xmm4
  subsd  %xmm10,%xmm3
  subsd  %xmm0,%xmm2
  subsd  %xmm6,%xmm1
  movapd %xmm4,%xmm15
  movsd  %xmm3,-0x68(%rsp)
  movapd %xmm2,%xmm10
  movapd %xmm1,%xmm11
L56:
  mov    0x80(%rsp),%edx
  test   %edx,%edx
  je     L124
  movsd  -0x78(%rsp),%xmm2
  addsd  0x28(%r14),%xmm2
  addsd  (%r14),%xmm14
  addsd  0x8(%r14),%xmm7
  addsd  0x20(%r14),%xmm13
  addsd  0x40(%r14),%xmm15
  movsd  %xmm2,-0x78(%rsp)
  movsd  -0x68(%rsp),%xmm2
  addsd  0x48(%r14),%xmm2
  addsd  0x60(%r14),%xmm10
  addsd  0x68(%r14),%xmm11
  movsd  %xmm2,-0x68(%rsp)
L124:
  mov    0xa0(%rsp),%eax
  test   %eax,%eax
  je     L134
  movsd  (%r15),%xmm2
  movapd %xmm14,%xmm3
  mulsd  %xmm2,%xmm3
  mulsd  %xmm7,%xmm2
  movsd  %xmm3,0x0(%r13)
  cmp    $0x1,%ebx
  jle    L253
  movsd  %xmm2,0x8(%r13)
  movsd  0x8(%rbp),%xmm0
  movapd %xmm3,%xmm5
  movapd %xmm13,%xmm1
  movsd  0x8(%r15),%xmm4
  movapd %xmm3,%xmm8
  mulsd  %xmm0,%xmm5
  mulsd  %xmm2,%xmm0
  subsd  %xmm5,%xmm1
  movsd  -0x78(%rsp),%xmm5
  subsd  %xmm0,%xmm5
  movapd %xmm15,%xmm0
  mulsd  %xmm4,%xmm1
  mulsd  %xmm5,%xmm4
  movsd  %xmm1,0x20(%r13)
  movsd  %xmm4,0x28(%r13)
  movsd  0x10(%rbp),%xmm7
  movsd  0x30(%rbp),%xmm6
  movsd  0x10(%r15),%xmm5
  mulsd  %xmm7,%xmm8
  mulsd  %xmm2,%xmm7
  subsd  %xmm8,%xmm0
  movsd  -0x68(%rsp),%xmm8
  subsd  %xmm7,%xmm8
  movapd %xmm6,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm4,%xmm6
  subsd  %xmm7,%xmm0
  movapd %xmm8,%xmm7
  subsd  %xmm6,%xmm7
  mulsd  %xmm5,%xmm0
  mulsd  %xmm7,%xmm5
  movsd  %xmm0,0x40(%r13)
  movsd  %xmm5,0x48(%r13)
L241:
  cmpl   $0x3,0x24(%rsp)
  je     L22
  movsd  0x18(%rbp),%xmm9
  movsd  0x38(%rbp),%xmm8
  movsd  0x58(%rbp),%xmm7
  movsd  0x18(%r15),%xmm6
  mulsd  %xmm9,%xmm3
  mulsd  %xmm7,%xmm0
  subsd  %xmm3,%xmm10
  movapd %xmm1,%xmm3
  mulsd  %xmm8,%xmm3
  movapd %xmm10,%xmm1
  subsd  %xmm3,%xmm1
  subsd  %xmm0,%xmm1
  mulsd  %xmm6,%xmm1
  movsd  %xmm1,0x60(%r13)
  cmp    $0x1,%ebx
  jle    L22
  mulsd  %xmm2,%xmm9
  movapd %xmm11,%xmm0
  mulsd  %xmm4,%xmm8
  mulsd  %xmm5,%xmm7
  subsd  %xmm9,%xmm0
  subsd  %xmm8,%xmm0
  subsd  %xmm7,%xmm0
  mulsd  %xmm0,%xmm6
  movsd  %xmm6,0x68(%r13)
L22:
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L200:
  movsd  (%r8),%xmm1
  movsd  (%r9),%xmm14
  pxor   %xmm0,%xmm0
  movsd  0x8(%r9),%xmm13
  movsd  0x10(%r9),%xmm15
  mulsd  %xmm1,%xmm14
  mulsd  %xmm1,%xmm13
  mulsd  %xmm1,%xmm15
  mulsd  0x18(%r9),%xmm1
  addsd  %xmm0,%xmm14
  addsd  %xmm0,%xmm13
  addsd  %xmm0,%xmm15
  addsd  %xmm0,%xmm1
  movapd %xmm1,%xmm10
  cmp    $0x1,%r12d
  je     L99
  movsd  0x20(%r8),%xmm2
  movsd  0x28(%r8),%xmm1
  add    $0x40,%r9
  add    $0x40,%r8
  movsd  -0x20(%r9),%xmm6
  movsd  -0x18(%r9),%xmm4
  mov    $0x2,%r11d
  movapd %xmm2,%xmm7
  movsd  -0x10(%r9),%xmm3
  movsd  -0x8(%r9),%xmm5
  mulsd  %xmm6,%xmm7
  mulsd  %xmm1,%xmm6
  addsd  %xmm7,%xmm14
  movapd %xmm6,%xmm7
  movapd %xmm2,%xmm6
  mulsd  %xmm4,%xmm6
  addsd  %xmm0,%xmm7
  mulsd  %xmm1,%xmm4
  addsd  %xmm6,%xmm13
  addsd  %xmm0,%xmm4
  movsd  %xmm4,-0x78(%rsp)
  movapd %xmm2,%xmm4
  mulsd  %xmm3,%xmm4
  mulsd  %xmm1,%xmm3
  mulsd  %xmm5,%xmm1
  mulsd  %xmm5,%xmm2
  addsd  %xmm4,%xmm15
  addsd  %xmm0,%xmm3
  addsd  %xmm0,%xmm1
  addsd  %xmm2,%xmm10
  movsd  %xmm3,-0x68(%rsp)
  movapd %xmm1,%xmm11
  jmp    L131
  nopl   (%rax)
L134:
  movsd  D4(%rip),%xmm2
  movapd %xmm14,%xmm4
  movapd %xmm2,%xmm3
  divsd  0x0(%rbp),%xmm3
  mulsd  %xmm3,%xmm4
  mulsd  %xmm7,%xmm3
  movsd  %xmm4,0x0(%r13)
  cmp    $0x1,%ebx
  jle    L91
  movsd  %xmm3,0x8(%r13)
  movsd  0x8(%rbp),%xmm0
  movapd %xmm4,%xmm5
  movapd %xmm2,%xmm6
  movapd %xmm13,%xmm1
  divsd  0x28(%rbp),%xmm6
  movapd %xmm4,%xmm9
  mulsd  %xmm0,%xmm5
  mulsd  %xmm3,%xmm0
  subsd  %xmm5,%xmm1
  movsd  -0x78(%rsp),%xmm5
  subsd  %xmm0,%xmm5
  movapd %xmm15,%xmm0
  mulsd  %xmm6,%xmm1
  mulsd  %xmm5,%xmm6
  movapd %xmm2,%xmm5
  movsd  %xmm1,0x20(%r13)
  movsd  %xmm6,0x28(%r13)
  movsd  0x30(%rbp),%xmm7
  divsd  0x50(%rbp),%xmm5
  movsd  0x10(%rbp),%xmm8
  mulsd  %xmm8,%xmm9
  mulsd  %xmm3,%xmm8
  subsd  %xmm9,%xmm0
  movsd  -0x68(%rsp),%xmm9
  subsd  %xmm8,%xmm9
  movapd %xmm7,%xmm8
  mulsd  %xmm1,%xmm8
  mulsd  %xmm6,%xmm7
  subsd  %xmm8,%xmm0
  subsd  %xmm7,%xmm9
  mulsd  %xmm5,%xmm0
  mulsd  %xmm9,%xmm5
  movsd  %xmm0,0x40(%r13)
  movsd  %xmm5,0x48(%r13)
L5:
  cmpl   $0x3,0x24(%rsp)
  je     L22
  movsd  0x18(%rbp),%xmm9
  movsd  0x38(%rbp),%xmm8
  divsd  0x78(%rbp),%xmm2
  movsd  0x58(%rbp),%xmm7
  mulsd  %xmm9,%xmm4
  mulsd  %xmm7,%xmm0
  subsd  %xmm4,%xmm10
  movapd %xmm1,%xmm4
  mulsd  %xmm8,%xmm4
  movapd %xmm10,%xmm1
  subsd  %xmm4,%xmm1
  subsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm1,0x60(%r13)
  cmp    $0x1,%ebx
  jle    L22
  mulsd  %xmm3,%xmm9
  movapd %xmm11,%xmm0
  mulsd  %xmm6,%xmm8
  mulsd  %xmm5,%xmm7
  subsd  %xmm9,%xmm0
  subsd  %xmm8,%xmm0
  subsd  %xmm7,%xmm0
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,0x68(%r13)
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L265:
  pxor   %xmm11,%xmm11
  movapd %xmm11,%xmm7
  movapd %xmm11,%xmm10
  movapd %xmm11,%xmm15
  movsd  %xmm11,-0x68(%rsp)
  movsd  %xmm11,-0x78(%rsp)
  movapd %xmm11,%xmm13
  movapd %xmm11,%xmm14
  jmp    L116
  nopl   0x0(%rax)
L253:
  movsd  0x8(%rbp),%xmm0
  movapd %xmm3,%xmm5
  movapd %xmm13,%xmm1
  movsd  0x8(%r15),%xmm4
  movapd %xmm3,%xmm8
  mulsd  %xmm0,%xmm5
  mulsd  %xmm2,%xmm0
  subsd  %xmm5,%xmm1
  movsd  -0x78(%rsp),%xmm5
  subsd  %xmm0,%xmm5
  movapd %xmm15,%xmm0
  mulsd  %xmm4,%xmm1
  mulsd  %xmm5,%xmm4
  movsd  %xmm1,0x20(%r13)
  movsd  0x10(%rbp),%xmm7
  movsd  0x30(%rbp),%xmm6
  movsd  0x10(%r15),%xmm5
  mulsd  %xmm7,%xmm8
  mulsd  %xmm2,%xmm7
  subsd  %xmm8,%xmm0
  movsd  -0x68(%rsp),%xmm8
  subsd  %xmm7,%xmm8
  movapd %xmm6,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm4,%xmm6
  subsd  %xmm7,%xmm0
  movapd %xmm8,%xmm7
  subsd  %xmm6,%xmm7
  mulsd  %xmm5,%xmm0
  mulsd  %xmm7,%xmm5
  movsd  %xmm0,0x40(%r13)
  jmp    L241
  nopl   0x0(%rax,%rax,1)
L91:
  movsd  0x8(%rbp),%xmm0
  movapd %xmm4,%xmm5
  movapd %xmm13,%xmm1
  movapd %xmm2,%xmm6
  divsd  0x28(%rbp),%xmm6
  movapd %xmm4,%xmm9
  movapd %xmm2,%xmm8
  mulsd  %xmm0,%xmm5
  mulsd  %xmm3,%xmm0
  subsd  %xmm5,%xmm1
  movapd %xmm0,%xmm5
  movsd  -0x78(%rsp),%xmm0
  mulsd  %xmm6,%xmm1
  subsd  %xmm5,%xmm0
  mulsd  %xmm0,%xmm6
  movapd %xmm15,%xmm0
  movsd  %xmm1,0x20(%r13)
  movsd  0x10(%rbp),%xmm5
  movsd  0x30(%rbp),%xmm7
  divsd  0x50(%rbp),%xmm8
  mulsd  %xmm5,%xmm9
  mulsd  %xmm3,%xmm5
  subsd  %xmm9,%xmm0
  movapd %xmm5,%xmm9
  movsd  -0x68(%rsp),%xmm5
  subsd  %xmm9,%xmm5
  movapd %xmm7,%xmm9
  mulsd  %xmm1,%xmm9
  mulsd  %xmm6,%xmm7
  subsd  %xmm9,%xmm0
  subsd  %xmm7,%xmm5
  mulsd  %xmm8,%xmm0
  mulsd  %xmm8,%xmm5
  movsd  %xmm0,0x40(%r13)
  jmp    L5
L99:
  movapd %xmm0,%xmm11
  movsd  %xmm0,-0x68(%rsp)
  movapd %xmm0,%xmm7
  movsd  %xmm0,-0x78(%rsp)
  jmp    L116
L204:
  mov    %r9,%rcx
  mov    %r8,%rsi
  jmp    L223
```

tool_calls: name: read_data
arguments: tag: D4
data_type: f64

tool: D4: 1

assistant: ```c
void kernel_dgemm_dtrsm_nt_2x4_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, 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;
  k = 0;
  if (kadd > 0) {
    if (tri_A == 1) {
      if (kadd >= 2) {
        a_0 = Ap[0 + bs * 0];
        b_0 = Bp[0 + bs * 0];
        b_1 = Bp[1 + bs * 0];
        b_2 = Bp[2 + bs * 0];
        b_3 = Bp[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 = Ap[0 + bs * 1];
        a_1 = Ap[1 + bs * 1];
        b_0 = Bp[0 + bs * 1];
        b_1 = Bp[1 + bs * 1];
        b_2 = Bp[2 + bs * 1];
        b_3 = Bp[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;
        Ap += 8;
        Bp += 8;
        k += 2;
      } else {
        a_0 = Ap[0 + bs * 0];
        b_0 = Bp[0 + bs * 0];
        b_1 = Bp[1 + bs * 0];
        b_2 = Bp[2 + bs * 0];
        b_3 = Bp[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;
        k += 1;
      }
    }
    for (; k < kadd - 3; k += 4) {
      a_0 = Ap[0 + bs * 0];
      a_1 = Ap[1 + bs * 0];
      b_0 = Bp[0 + bs * 0];
      b_1 = Bp[1 + bs * 0];
      b_2 = Bp[2 + bs * 0];
      b_3 = Bp[3 + bs * 0];
      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 = Ap[0 + bs * 1];
      a_1 = Ap[1 + bs * 1];
      b_0 = Bp[0 + bs * 1];
      b_1 = Bp[1 + bs * 1];
      b_2 = Bp[2 + bs * 1];
      b_3 = Bp[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 = Ap[0 + bs * 2];
      a_1 = Ap[1 + bs * 2];
      b_0 = Bp[0 + bs * 2];
      b_1 = Bp[1 + bs * 2];
      b_2 = Bp[2 + bs * 2];
      b_3 = Bp[3 + bs * 2];
      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 = Ap[0 + bs * 3];
      a_1 = Ap[1 + bs * 3];
      b_0 = Bp[0 + bs * 3];
      b_1 = Bp[1 + bs * 3];
      b_2 = Bp[2 + bs * 3];
      b_3 = Bp[3 + bs * 3];
      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;
      Ap += 16;
      Bp += 16;
    }
    for (; k < kadd; k++) {
      a_0 = Ap[0 + bs * 0];
      a_1 = Ap[1 + bs * 0];
      b_0 = Bp[0 + bs * 0];
      b_1 = Bp[1 + bs * 0];
      b_2 = Bp[2 + bs * 0];
      b_3 = Bp[3 + bs * 0];
      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;
      Ap += 4;
      Bp += 4;
    }
  }
  for (k = 0; k < ksub - 3; k += 4) {
    a_0 = Am[0 + bs * 0];
    a_1 = Am[1 + bs * 0];
    b_0 = Bm[0 + bs * 0];
    b_1 = Bm[1 + bs * 0];
    b_2 = Bm[2 + bs * 0];
    b_3 = Bm[3 + bs * 0];
    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 = Am[0 + bs * 1];
    a_1 = Am[1 + bs * 1];
    b_0 = Bm[0 + bs * 1];
    b_1 = Bm[1 + bs * 1];
    b_2 = Bm[2 + bs * 1];
    b_3 = Bm[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 = Am[0 + bs * 2];
    a_1 = Am[1 + bs * 2];
    b_0 = Bm[0 + bs * 2];
    b_1 = Bm[1 + bs * 2];
    b_2 = Bm[2 + bs * 2];
    b_3 = Bm[3 + bs * 2];
    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 = Am[0 + bs * 3];
    a_1 = Am[1 + bs * 3];
    b_0 = Bm[0 + bs * 3];
    b_1 = Bm[1 + bs * 3];
    b_2 = Bm[2 + bs * 3];
    b_3 = Bm[3 + bs * 3];
    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;
    Am += 16;
    Bm += 16;
  }
  if (alg != 0) {
    c_00 += C[0 + bs * 0];
    c_10 += C[1 + bs * 0];
    c_01 += C[0 + bs * 1];
    c_11 += C[1 + bs * 1];
    c_02 += C[0 + bs * 2];
    c_12 += C[1 + bs * 2];
    c_03 += C[0 + bs * 3];
    c_13 += C[1 + bs * 3];
  }
  double a_00, a_10, a_20, a_30, a_11, a_21, a_31, a_22, a_32, a_33;
  if (use_inv_diag_E) {
    a_00 = inv_diag_E[0];
    c_00 *= a_00;
    c_10 *= a_00;
    D[0 + bs * 0] = c_00;
    if (km >= 2)
      D[1 + bs * 0] = c_10;
    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_01 *= a_11;
    c_11 *= a_11;
    D[0 + bs * 1] = c_01;
    if (km >= 2)
      D[1 + bs * 1] = c_11;
    a_20 = E[2 + bs * 0];
    a_21 = E[2 + bs * 1];
    a_22 = inv_diag_E[2];
    c_02 -= c_00 * a_20;
    c_12 -= c_10 * a_20;
    c_02 -= c_01 * a_21;
    c_12 -= c_11 * a_21;
    c_02 *= a_22;
    c_12 *= a_22;
    D[0 + bs * 2] = c_02;
    if (km >= 2)
      D[1 + bs * 2] = c_12;
    if (kn == 3)
      return;
    a_30 = E[3 + bs * 0];
    a_31 = E[3 + bs * 1];
    a_32 = E[3 + bs * 2];
    a_33 = inv_diag_E[3];
    c_03 -= c_00 * a_30;
    c_13 -= c_10 * a_30;
    c_03 -= c_01 * a_31;
    c_13 -= c_11 * a_31;
    c_03 -= c_02 * a_32;
    c_13 -= c_12 * a_32;
    c_03 *= a_33;
    c_13 *= a_33;
    D[0 + bs * 3] = c_03;
    if (km >= 2)
      D[1 + bs * 3] = c_13;
  } else {
    a_00 = 1.0 / E[0 + bs * 0];
    c_00 *= a_00;
    c_10 *= a_00;
    D[0 + bs * 0] = c_00;
    if (km >= 2)
      D[1 + bs * 0] = c_10;
    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_01 *= a_11;
    c_11 *= a_11;
    D[0 + bs * 1] = c_01;
    if (km >= 2)
      D[1 + bs * 1] = c_11;
    a_20 = E[2 + bs * 0];
    a_21 = E[2 + bs * 1];
    a_22 = 1.0 / E[2 + bs * 2];
    c_02 -= c_00 * a_20;
    c_12 -= c_10 * a_20;
    c_02 -= c_01 * a_21;
    c_12 -= c_11 * a_21;
    c_02 *= a_22;
    c_12 *= a_22;
    D[0 + bs * 2] = c_02;
    if (km >= 2)
      D[1 + bs * 2] = c_12;
    if (kn == 3)
      return;
    a_30 = E[3 + bs * 0];
    a_31 = E[3 + bs * 1];
    a_32 = E[3 + bs * 2];
    a_33 = 1.0 / E[3 + bs * 3];
    c_03 -= c_00 * a_30;
    c_13 -= c_10 * a_30;
    c_03 -= c_01 * a_31;
    c_13 -= c_11 * a_31;
    c_03 -= c_02 * a_32;
    c_13 -= c_12 * a_32;
    c_03 *= a_33;
    c_13 *= a_33;
    D[0 + bs * 3] = c_03;
    if (km >= 2)
      D[1 + bs * 3] = c_13;
  }
}
```