user: Translate the below assembly code into C programming language:

```asm
<kernel_dgemm_dtrsm_nt_4x2_vs_lib4>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  mov    %edx,%esi
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    0x50(%rsp),%rax
  mov    0x58(%rsp),%rdx
  mov    %edi,0x4(%rsp)
  mov    0x60(%rsp),%r14
  mov    0x48(%rsp),%rdi
  mov    0x68(%rsp),%r13
  mov    0x70(%rsp),%r15
  test   %ecx,%ecx
  jle    L48
  mov    %ecx,%ebp
  cmp    $0x1,%esi
  je     L202
  pxor   %xmm10,%xmm10
  xor    %ebx,%ebx
  movapd %xmm10,%xmm13
  movapd %xmm10,%xmm12
  movsd  %xmm10,-0x48(%rsp)
  movapd %xmm10,%xmm14
  movsd  %xmm10,-0x78(%rsp)
  movapd %xmm10,%xmm15
  movapd %xmm10,%xmm7
L128:
  lea    -0x3(%rbp),%ecx
  cmp    %ecx,%ebx
  jge    L232
  lea    -0x4(%rbp),%ecx
  sub    %ebx,%ecx
  mov    %ecx,%r10d
  shr    $0x2,%r10d
  cmp    $0x3,%ecx
  jbe    L175
  movsd  -0x78(%rsp),%xmm9
  mov    %r9,%rcx
  mov    %rdi,%rsi
  xor    %r11d,%r11d
  movsd  %xmm10,-0x40(%rsp)
  nopl   0x0(%rax)
L132:
  movupd 0x30(%rcx),%xmm2
  movupd 0x70(%rcx),%xmm0
  add    $0x1,%r11d
  sub    $0xffffffffffffff80,%rcx
  movlpd -0x68(%rcx),%xmm2
  movlpd -0x28(%rcx),%xmm0
  sub    $0xffffffffffffff80,%rsi
  movupd -0x80(%rcx),%xmm6
  movupd -0x40(%rcx),%xmm8
  movaps %xmm2,-0x78(%rsp)
  movupd -0x40(%rsi),%xmm2
  movupd -0x60(%rcx),%xmm5
  movaps %xmm0,-0x68(%rsp)
  movupd -0x80(%rsi),%xmm0
  movhpd -0x60(%rcx),%xmm6
  movhpd -0x20(%rcx),%xmm8
  movhpd -0x20(%rsi),%xmm2
  movlpd -0x78(%rcx),%xmm5
  movupd -0x20(%rcx),%xmm1
  movhpd -0x60(%rsi),%xmm0
  movapd %xmm2,%xmm11
  movlpd -0x38(%rcx),%xmm1
  movupd -0x70(%rcx),%xmm3
  mulpd  %xmm8,%xmm11
  movapd %xmm0,%xmm10
  movupd -0x30(%rcx),%xmm4
  mulpd  %xmm6,%xmm10
  movhpd -0x50(%rcx),%xmm3
  movhpd -0x10(%rcx),%xmm4
  movaps %xmm11,-0x58(%rsp)
  movapd %xmm10,%xmm11
  unpckhpd %xmm10,%xmm10
  addsd  %xmm7,%xmm11
  movapd %xmm11,%xmm7
  movapd -0x58(%rsp),%xmm11
  addsd  %xmm10,%xmm7
  movapd %xmm0,%xmm10
  mulpd  %xmm5,%xmm10
  movlpd %xmm11,-0x8(%rsp)
  movsd  %xmm7,-0x10(%rsp)
  movapd %xmm10,%xmm7
  movapd %xmm2,%xmm10
  mulpd  %xmm1,%xmm10
  movapd %xmm10,%xmm11
  movapd %xmm7,%xmm10
  unpckhpd %xmm7,%xmm7
  addsd  %xmm9,%xmm10
  movlpd %xmm11,-0x20(%rsp)
  unpckhpd %xmm11,%xmm11
  addsd  %xmm7,%xmm10
  movsd  %xmm10,-0x28(%rsp)
  movapd %xmm0,%xmm10
  mulpd  %xmm3,%xmm10
  mulpd  -0x78(%rsp),%xmm0
  movapd %xmm10,%xmm7
  movapd %xmm2,%xmm10
  mulpd  -0x68(%rsp),%xmm2
  movapd %xmm7,%xmm9
  unpckhpd %xmm7,%xmm7
  addsd  %xmm12,%xmm9
  mulpd  %xmm4,%xmm10
  movapd %xmm9,%xmm12
  addsd  %xmm7,%xmm12
  movapd %xmm0,%xmm7
  unpckhpd %xmm0,%xmm0
  addsd  %xmm13,%xmm7
  movsd  %xmm12,-0x30(%rsp)
  movapd %xmm10,%xmm12
  unpckhpd %xmm10,%xmm10
  movapd %xmm7,%xmm13
  addsd  %xmm0,%xmm13
  movsd  %xmm13,-0x38(%rsp)
  movupd -0x60(%rsi),%xmm0
  movlpd -0x78(%rsi),%xmm0
  movapd %xmm2,%xmm13
  addsd  -0x30(%rsp),%xmm12
  addsd  -0x38(%rsp),%xmm13
  unpckhpd %xmm2,%xmm2
  movapd %xmm0,%xmm7
  movupd -0x20(%rsi),%xmm0
  movlpd -0x38(%rsi),%xmm0
  mulpd  %xmm7,%xmm6
  mulpd  %xmm7,%xmm5
  addsd  %xmm10,%xmm12
  addsd  %xmm2,%xmm13
  mulpd  %xmm7,%xmm3
  mulpd  -0x78(%rsp),%xmm7
  mulpd  %xmm0,%xmm8
  mulpd  %xmm0,%xmm1
  movapd %xmm6,%xmm9
  unpckhpd %xmm6,%xmm6
  addsd  %xmm15,%xmm9
  mulpd  %xmm0,%xmm4
  mulpd  -0x68(%rsp),%xmm0
  movapd %xmm9,%xmm15
  movsd  -0x50(%rsp),%xmm9
  addsd  %xmm6,%xmm15
  movapd %xmm5,%xmm6
  unpckhpd %xmm5,%xmm5
  addsd  %xmm14,%xmm6
  movlpd %xmm0,-0x78(%rsp)
  unpckhpd %xmm0,%xmm0
  movsd  %xmm15,-0x18(%rsp)
  movapd %xmm8,%xmm15
  unpckhpd %xmm8,%xmm8
  addsd  -0x18(%rsp),%xmm15
  addsd  %xmm5,%xmm6
  movsd  -0x48(%rsp),%xmm5
  movlpd %xmm4,-0x48(%rsp)
  unpckhpd %xmm4,%xmm4
  addsd  %xmm3,%xmm5
  unpckhpd %xmm3,%xmm3
  addsd  %xmm8,%xmm15
  addsd  %xmm1,%xmm6
  unpckhpd %xmm1,%xmm1
  addsd  %xmm3,%xmm5
  movsd  -0x40(%rsp),%xmm3
  addsd  -0x48(%rsp),%xmm5
  addsd  %xmm1,%xmm6
  addsd  %xmm7,%xmm3
  unpckhpd %xmm7,%xmm7
  addsd  %xmm4,%xmm5
  movapd %xmm6,%xmm14
  addsd  %xmm7,%xmm3
  movsd  -0x10(%rsp),%xmm7
  addsd  -0x78(%rsp),%xmm3
  addsd  -0x8(%rsp),%xmm7
  movsd  %xmm5,-0x48(%rsp)
  addsd  %xmm0,%xmm3
  addsd  %xmm9,%xmm7
  movsd  -0x28(%rsp),%xmm9
  addsd  -0x20(%rsp),%xmm9
  movsd  %xmm3,-0x40(%rsp)
  addsd  %xmm11,%xmm9
  cmp    %r11d,%r10d
  ja     L132
  mov    %r10d,%esi
  movsd  %xmm9,-0x78(%rsp)
  movapd %xmm3,%xmm10
  shl    $0x7,%rsi
  lea    (%r9,%rsi,1),%rcx
  add    %rdi,%rsi
L92:
  movsd  (%rsi),%xmm2
  movsd  (%rcx),%xmm5
  lea    0x4(%rbx,%r10,4),%ebx
  movsd  0x18(%rcx),%xmm1
  movsd  0x8(%rsi),%xmm0
  movapd %xmm2,%xmm6
  movapd %xmm2,%xmm11
  movsd  0x8(%rcx),%xmm4
  movsd  0x10(%rcx),%xmm3
  mulsd  %xmm5,%xmm6
  movsd  0x20(%rcx),%xmm9
  mulsd  %xmm3,%xmm11
  mulsd  %xmm0,%xmm3
  addsd  -0x48(%rsp),%xmm3
  addsd  %xmm7,%xmm6
  movapd %xmm5,%xmm7
  movsd  0x38(%rcx),%xmm5
  mulsd  %xmm0,%xmm7
  addsd  %xmm12,%xmm11
  movsd  0x28(%rcx),%xmm12
  movapd %xmm6,%xmm8
  movapd %xmm2,%xmm6
  mulsd  %xmm1,%xmm2
  mulsd  %xmm4,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  %xmm15,%xmm7
  movsd  0x30(%rcx),%xmm15
  addsd  -0x78(%rsp),%xmm6
  mulsd  %xmm1,%xmm0
  movsd  0x20(%rsi),%xmm1
  addsd  %xmm13,%xmm2
  mulsd  %xmm1,%xmm12
  movapd %xmm9,%xmm13
  mulsd  %xmm1,%xmm13
  addsd  %xmm14,%xmm4
  movapd %xmm15,%xmm14
  addsd  %xmm10,%xmm0
  movsd  0x28(%rsi),%xmm10
  mulsd  %xmm1,%xmm14
  mulsd  %xmm5,%xmm1
  mulsd  %xmm10,%xmm5
  addsd  %xmm6,%xmm12
  movapd %xmm15,%xmm6
  addsd  %xmm8,%xmm13
  movsd  0x28(%rcx),%xmm8
  mulsd  %xmm10,%xmm9
  mulsd  %xmm10,%xmm6
  mulsd  %xmm10,%xmm8
  movsd  0x58(%rcx),%xmm10
  addsd  %xmm11,%xmm14
  movsd  0x48(%rsi),%xmm11
  addsd  %xmm2,%xmm1
  movsd  0x50(%rcx),%xmm2
  addsd  %xmm0,%xmm5
  movsd  0x40(%rsi),%xmm0
  addsd  %xmm7,%xmm9
  addsd  %xmm3,%xmm6
  movsd  0x48(%rcx),%xmm3
  addsd  %xmm4,%xmm8
  movsd  0x40(%rcx),%xmm4
  movapd %xmm4,%xmm7
  mulsd  %xmm0,%xmm7
  mulsd  %xmm11,%xmm4
  addsd  %xmm13,%xmm7
  movapd %xmm3,%xmm13
  mulsd  %xmm0,%xmm13
  addsd  %xmm9,%xmm4
  movsd  0x70(%rcx),%xmm9
  mulsd  %xmm11,%xmm3
  addsd  %xmm12,%xmm13
  movapd %xmm2,%xmm12
  mulsd  %xmm0,%xmm12
  addsd  %xmm8,%xmm3
  movsd  0x68(%rsi),%xmm8
  mulsd  %xmm10,%xmm0
  mulsd  %xmm11,%xmm2
  addsd  %xmm14,%xmm12
  addsd  %xmm1,%xmm0
  movapd %xmm10,%xmm1
  movsd  0x68(%rcx),%xmm10
  mulsd  %xmm11,%xmm1
  movsd  0x60(%rcx),%xmm11
  addsd  %xmm6,%xmm2
  movsd  0x78(%rcx),%xmm6
  lea    0x1(%r10),%ecx
  movapd %xmm11,%xmm14
  shl    $0x7,%rcx
  mulsd  %xmm8,%xmm11
  add    %rcx,%r9
  add    %rcx,%rdi
  addsd  %xmm5,%xmm1
  movsd  0x60(%rsi),%xmm5
  mulsd  %xmm5,%xmm14
  movapd %xmm11,%xmm15
  addsd  %xmm4,%xmm15
  addsd  %xmm14,%xmm7
  movapd %xmm10,%xmm14
  mulsd  %xmm5,%xmm14
  mulsd  %xmm8,%xmm10
  addsd  %xmm13,%xmm14
  movapd %xmm9,%xmm13
  mulsd  %xmm5,%xmm13
  addsd  %xmm3,%xmm10
  mulsd  %xmm6,%xmm5
  mulsd  %xmm8,%xmm9
  movsd  %xmm14,-0x78(%rsp)
  mulsd  %xmm8,%xmm6
  movapd %xmm10,%xmm14
  addsd  %xmm13,%xmm12
  addsd  %xmm0,%xmm5
  addsd  %xmm2,%xmm9
  addsd  %xmm1,%xmm6
  movapd %xmm5,%xmm13
  movsd  %xmm9,-0x48(%rsp)
  movapd %xmm6,%xmm10
L232:
  cmp    %ebx,%ebp
  jle    L27
  sub    %ebx,%ebp
  cmp    $0x1,%ebp
  je     L91
  movupd 0x10(%r9),%xmm3
  movupd (%rdi),%xmm4
  movapd %xmm10,%xmm0
  lea    -0x1(%rbp),%ecx
  movupd 0x10(%r9),%xmm1
  movupd (%r9),%xmm2
  unpcklpd %xmm13,%xmm0
  unpckhpd %xmm3,%xmm3
  shufpd $0x1,%xmm4,%xmm4
  mulpd  %xmm4,%xmm3
  unpcklpd %xmm1,%xmm1
  unpckhpd %xmm2,%xmm2
  mulpd  %xmm4,%xmm1
  mulpd  %xmm4,%xmm2
  addpd  %xmm0,%xmm3
  movsd  -0x48(%rsp),%xmm0
  unpcklpd %xmm12,%xmm0
  addpd  %xmm0,%xmm1
  movapd %xmm14,%xmm0
  movhpd -0x78(%rsp),%xmm0
  addpd  %xmm0,%xmm2
  movupd (%r9),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  movapd %xmm15,%xmm4
  unpcklpd %xmm7,%xmm4
  addpd  %xmm4,%xmm0
  cmp    $0x2,%ebp
  je     L41
  movupd 0x30(%r9),%xmm4
  movupd 0x20(%rdi),%xmm5
  unpckhpd %xmm4,%xmm4
  shufpd $0x1,%xmm5,%xmm5
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm3
  movupd 0x30(%r9),%xmm4
  unpcklpd %xmm4,%xmm4
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm1
  movupd 0x20(%r9),%xmm4
  unpckhpd %xmm4,%xmm4
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm2
  movupd 0x20(%r9),%xmm4
  unpcklpd %xmm4,%xmm4
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm0
  cmp    $0x2,%ecx
  je     L41
  movupd 0x50(%r9),%xmm4
  movupd 0x40(%rdi),%xmm5
  unpckhpd %xmm4,%xmm4
  shufpd $0x1,%xmm5,%xmm5
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm3
  movupd 0x50(%r9),%xmm4
  unpcklpd %xmm4,%xmm4
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm1
  movupd 0x40(%r9),%xmm4
  unpckhpd %xmm4,%xmm4
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm2
  movupd 0x40(%r9),%xmm4
  unpcklpd %xmm4,%xmm4
  mulpd  %xmm5,%xmm4
  addpd  %xmm4,%xmm0
L41:
  shl    $0x5,%rcx
  movapd %xmm3,%xmm10
  movlpd %xmm1,-0x48(%rsp)
  unpckhpd %xmm3,%xmm3
  unpckhpd %xmm1,%xmm1
  movapd %xmm0,%xmm15
  unpckhpd %xmm0,%xmm0
  add    %rcx,%r9
  movapd %xmm3,%xmm13
  movapd %xmm1,%xmm12
  movapd %xmm2,%xmm14
  add    %rcx,%rdi
  movhpd %xmm2,-0x78(%rsp)
  movapd %xmm0,%xmm7
L91:
  movsd  (%rdi),%xmm1
  movsd  (%r9),%xmm5
  movsd  0x8(%r9),%xmm3
  movsd  0x8(%rdi),%xmm0
  movapd %xmm1,%xmm6
  movsd  0x10(%r9),%xmm2
  movsd  0x18(%r9),%xmm4
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm5
  addsd  %xmm6,%xmm7
  movapd %xmm1,%xmm6
  mulsd  %xmm3,%xmm6
  addsd  %xmm5,%xmm15
  addsd  -0x78(%rsp),%xmm6
  mulsd  %xmm0,%xmm3
  movsd  %xmm6,-0x78(%rsp)
  movapd %xmm1,%xmm6
  mulsd  %xmm2,%xmm6
  mulsd  %xmm4,%xmm1
  addsd  %xmm3,%xmm14
  mulsd  %xmm0,%xmm2
  mulsd  %xmm4,%xmm0
  addsd  -0x48(%rsp),%xmm2
  addsd  %xmm6,%xmm12
  addsd  %xmm1,%xmm13
  movsd  %xmm2,-0x48(%rsp)
  addsd  %xmm0,%xmm10
L27:
  cmp    $0x3,%r8d
  jle    L142
  sub    $0x4,%r8d
  mov    %r8d,%r9d
  shr    $0x2,%r9d
  cmp    $0x3,%r8d
  jbe    L153
  movsd  -0x48(%rsp),%xmm2
  movapd %xmm10,%xmm3
  mov    %rdx,%rsi
  xor    %edi,%edi
  movapd %xmm14,%xmm1
  movapd %xmm15,%xmm4
  unpcklpd %xmm13,%xmm3
  mov    %rax,%rcx
  unpcklpd %xmm12,%xmm2
  movhpd -0x78(%rsp),%xmm1
  unpcklpd %xmm7,%xmm4
  nopw   0x0(%rax,%rax,1)
L162:
  movupd 0x10(%rcx),%xmm0
  movupd (%rsi),%xmm8
  add    $0x1,%edi
  sub    $0xffffffffffffff80,%rsi
  movupd -0x60(%rsi),%xmm7
  movupd -0x40(%rsi),%xmm6
  sub    $0xffffffffffffff80,%rcx
  unpckhpd %xmm0,%xmm0
  shufpd $0x1,%xmm8,%xmm8
  movupd -0x20(%rsi),%xmm5
  mulpd  %xmm8,%xmm0
  shufpd $0x1,%xmm7,%xmm7
  shufpd $0x1,%xmm6,%xmm6
  shufpd $0x1,%xmm5,%xmm5
  subpd  %xmm0,%xmm3
  movupd -0x50(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x30(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x10(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm5,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x70(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm8,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x50(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x30(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x10(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm5,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x80(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm8,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x60(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x40(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x20(%rcx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm5,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x80(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm8,%xmm0
  subpd  %xmm0,%xmm4
  movupd -0x60(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm4
  movupd -0x40(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm4
  movupd -0x20(%rcx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm5,%xmm0
  subpd  %xmm0,%xmm4
  cmp    %edi,%r9d
  ja     L162
  shl    $0x7,%r9
  movapd %xmm3,%xmm10
  movlpd %xmm2,-0x48(%rsp)
  unpckhpd %xmm3,%xmm3
  unpckhpd %xmm2,%xmm2
  movapd %xmm4,%xmm15
  unpckhpd %xmm4,%xmm4
  add    %r9,%rax
  movapd %xmm3,%xmm13
  movapd %xmm2,%xmm12
  movapd %xmm1,%xmm14
  add    %r9,%rdx
  movhpd %xmm1,-0x78(%rsp)
  movapd %xmm4,%xmm7
L153:
  movsd  (%rdx),%xmm1
  movsd  (%rax),%xmm5
  movapd %xmm13,%xmm11
  movapd %xmm14,%xmm8
  movsd  0x8(%rax),%xmm3
  movsd  0x18(%rax),%xmm9
  movapd %xmm1,%xmm6
  movsd  -0x78(%rsp),%xmm4
  movsd  0x8(%rdx),%xmm0
  mulsd  %xmm5,%xmm6
  movsd  0x10(%rax),%xmm2
  mulsd  %xmm0,%xmm5
  subsd  %xmm6,%xmm7
  movapd %xmm1,%xmm6
  mulsd  %xmm3,%xmm6
  subsd  %xmm5,%xmm15
  movsd  -0x48(%rsp),%xmm5
  mulsd  %xmm0,%xmm3
  subsd  %xmm6,%xmm4
  movapd %xmm1,%xmm6
  mulsd  %xmm9,%xmm1
  subsd  %xmm3,%xmm8
  movsd  0x28(%rax),%xmm3
  mulsd  %xmm2,%xmm6
  mulsd  %xmm0,%xmm2
  mulsd  %xmm9,%xmm0
  movapd %xmm10,%xmm9
  movsd  0x20(%rax),%xmm10
  subsd  %xmm1,%xmm11
  movsd  0x20(%rdx),%xmm1
  subsd  %xmm6,%xmm12
  movsd  0x38(%rax),%xmm6
  movapd %xmm1,%xmm14
  subsd  %xmm2,%xmm5
  movsd  0x30(%rax),%xmm2
  mulsd  %xmm10,%xmm14
  subsd  %xmm0,%xmm9
  movsd  0x28(%rdx),%xmm0
  subsd  %xmm14,%xmm7
  movapd %xmm1,%xmm14
  mulsd  %xmm3,%xmm14
  mulsd  %xmm0,%xmm3
  subsd  %xmm14,%xmm4
  movapd %xmm1,%xmm14
  mulsd  %xmm6,%xmm1
  subsd  %xmm3,%xmm8
  movsd  0x40(%rax),%xmm3
  mulsd  %xmm2,%xmm14
  mulsd  %xmm0,%xmm2
  movapd %xmm4,%xmm13
  movapd %xmm10,%xmm4
  mulsd  %xmm0,%xmm4
  mulsd  %xmm6,%xmm0
  movsd  0x50(%rax),%xmm6
  subsd  %xmm1,%xmm11
  movsd  0x40(%rdx),%xmm1
  subsd  %xmm14,%xmm12
  movapd %xmm1,%xmm14
  subsd  %xmm2,%xmm5
  movsd  0x48(%rax),%xmm2
  mulsd  %xmm3,%xmm14
  subsd  %xmm4,%xmm15
  movapd %xmm9,%xmm4
  movsd  0x58(%rax),%xmm9
  subsd  %xmm0,%xmm4
  movsd  0x48(%rdx),%xmm0
  mulsd  %xmm0,%xmm3
  movapd %xmm15,%xmm10
  subsd  %xmm14,%xmm7
  movapd %xmm1,%xmm14
  mulsd  %xmm2,%xmm14
  mulsd  %xmm0,%xmm2
  subsd  %xmm3,%xmm10
  movsd  0x60(%rax),%xmm3
  subsd  %xmm14,%xmm13
  movapd %xmm1,%xmm14
  movapd %xmm10,%xmm15
  mulsd  %xmm9,%xmm1
  subsd  %xmm2,%xmm8
  movsd  0x68(%rax),%xmm2
  mulsd  %xmm6,%xmm14
  mulsd  %xmm0,%xmm6
  mulsd  %xmm9,%xmm0
  movsd  0x70(%rax),%xmm9
  subsd  %xmm1,%xmm11
  movsd  0x60(%rdx),%xmm1
  subsd  %xmm14,%xmm12
  movapd %xmm1,%xmm14
  subsd  %xmm6,%xmm5
  movsd  0x78(%rax),%xmm6
  mulsd  %xmm3,%xmm14
  subsd  %xmm0,%xmm4
  movsd  0x68(%rdx),%xmm0
  mulsd  %xmm0,%xmm3
  subsd  %xmm14,%xmm7
  movapd %xmm1,%xmm14
  mulsd  %xmm2,%xmm14
  mulsd  %xmm0,%xmm2
  subsd  %xmm3,%xmm15
  subsd  %xmm14,%xmm13
  subsd  %xmm2,%xmm8
  movsd  %xmm13,-0x78(%rsp)
  movapd %xmm1,%xmm13
  mulsd  %xmm6,%xmm1
  movapd %xmm8,%xmm14
  mulsd  %xmm9,%xmm13
  subsd  %xmm1,%xmm11
  movapd %xmm9,%xmm1
  mulsd  %xmm0,%xmm1
  subsd  %xmm13,%xmm12
  mulsd  %xmm6,%xmm0
  movapd %xmm11,%xmm13
  subsd  %xmm1,%xmm5
  subsd  %xmm0,%xmm4
  movsd  %xmm5,-0x48(%rsp)
  movapd %xmm4,%xmm10
L142:
  mov    0x78(%rsp),%eax
  test   %eax,%eax
  je     L93
  movsd  -0x78(%rsp),%xmm4
  addsd  0x8(%r14),%xmm4
  addsd  (%r14),%xmm7
  addsd  0x10(%r14),%xmm12
  addsd  0x18(%r14),%xmm13
  addsd  0x20(%r14),%xmm15
  movsd  %xmm4,-0x78(%rsp)
  movsd  -0x48(%rsp),%xmm4
  addsd  0x30(%r14),%xmm4
  addsd  0x28(%r14),%xmm14
  addsd  0x38(%r14),%xmm10
  movsd  %xmm4,-0x48(%rsp)
L93:
  movsd  (%r15),%xmm3
  movsd  -0x78(%rsp),%xmm0
  movapd %xmm12,%xmm4
  cmpl   $0x3,0x4(%rsp)
  mulsd  %xmm3,%xmm7
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm4
  mulsd  %xmm13,%xmm3
  movsd  %xmm7,0x0(%r13)
  movsd  %xmm0,0x8(%r13)
  movsd  %xmm4,0x10(%r13)
  jle    L8
  movsd  %xmm3,0x18(%r13)
  cmp    $0x1,%r12d
  je     L230
  movsd  0x8(%r15),%xmm6
  movapd %xmm15,%xmm1
  movapd %xmm14,%xmm2
  movsd  0x10(%r15),%xmm5
  mulsd  %xmm6,%xmm7
  mulsd  %xmm6,%xmm0
  mulsd  %xmm6,%xmm4
  mulsd  %xmm6,%xmm3
  subsd  %xmm7,%xmm1
  movsd  -0x48(%rsp),%xmm7
  subsd  %xmm0,%xmm2
  movapd %xmm10,%xmm0
  subsd  %xmm4,%xmm7
  subsd  %xmm3,%xmm0
  mulsd  %xmm5,%xmm1
  mulsd  %xmm5,%xmm2
  mulsd  %xmm5,%xmm7
  mulsd  %xmm5,%xmm0
  movsd  %xmm1,0x20(%r13)
  movsd  %xmm2,0x28(%r13)
  movsd  %xmm7,0x30(%r13)
  movsd  %xmm0,0x38(%r13)
L230:
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L202:
  movsd  (%r9),%xmm1
  movsd  (%rdi),%xmm7
  pxor   %xmm0,%xmm0
  mulsd  %xmm1,%xmm7
  mulsd  0x8(%rdi),%xmm1
  addsd  %xmm0,%xmm7
  addsd  %xmm0,%xmm1
  movapd %xmm1,%xmm15
  cmp    $0x3,%ecx
  jg     L97
  cmp    $0x1,%ecx
  je     L140
  movsd  0x20(%r9),%xmm2
  movsd  0x28(%r9),%xmm1
  movsd  0x20(%rdi),%xmm3
  movsd  0x28(%rdi),%xmm4
  movapd %xmm2,%xmm5
  mulsd  %xmm3,%xmm5
  mulsd  %xmm1,%xmm3
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm2
  addsd  %xmm5,%xmm7
  addsd  %xmm0,%xmm3
  addsd  %xmm0,%xmm1
  addsd  %xmm2,%xmm15
  movsd  %xmm3,-0x78(%rsp)
  movapd %xmm1,%xmm14
  cmp    $0x3,%ecx
  je     L183
  movsd  %xmm0,-0x48(%rsp)
  movapd %xmm0,%xmm12
  mov    $0x2,%ebx
L192:
  movapd %xmm0,%xmm10
  movapd %xmm0,%xmm13
  jmp    L232
  nopl   0x0(%rax,%rax,1)
L8:
  cmp    $0x1,%r12d
  je     L230
  movsd  0x8(%r15),%xmm2
  movapd %xmm15,%xmm5
  movapd %xmm14,%xmm3
  movsd  0x10(%r15),%xmm1
  mulsd  %xmm2,%xmm7
  mulsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm2
  movsd  -0x48(%rsp),%xmm4
  subsd  %xmm7,%xmm5
  subsd  %xmm0,%xmm3
  subsd  %xmm2,%xmm4
  mulsd  %xmm1,%xmm5
  mulsd  %xmm1,%xmm3
  mulsd  %xmm4,%xmm1
  movsd  %xmm5,0x20(%r13)
  movsd  %xmm3,0x28(%r13)
  movsd  %xmm1,0x30(%r13)
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L48:
  pxor   %xmm10,%xmm10
  movapd %xmm10,%xmm13
  movapd %xmm10,%xmm12
  movsd  %xmm10,-0x48(%rsp)
  movapd %xmm10,%xmm14
  movsd  %xmm10,-0x78(%rsp)
  movapd %xmm10,%xmm15
  movapd %xmm10,%xmm7
  jmp    L27
  nopl   0x0(%rax)
L97:
  movsd  0x20(%r9),%xmm2
  movsd  0x28(%rdi),%xmm4
  sub    $0xffffffffffffff80,%r9
  sub    $0xffffffffffffff80,%rdi
  movsd  -0x58(%r9),%xmm1
  movsd  -0x60(%rdi),%xmm3
  mov    $0x4,%ebx
  movapd %xmm2,%xmm11
  movsd  -0x40(%r9),%xmm5
  movsd  -0x38(%rdi),%xmm9
  mulsd  %xmm3,%xmm11
  mulsd  %xmm1,%xmm3
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm2
  movsd  -0x38(%r9),%xmm4
  addsd  %xmm7,%xmm11
  movapd %xmm5,%xmm7
  movapd %xmm4,%xmm12
  addsd  %xmm0,%xmm3
  mulsd  %xmm9,%xmm5
  addsd  %xmm0,%xmm1
  mulsd  %xmm9,%xmm4
  addsd  %xmm15,%xmm2
  movapd %xmm3,%xmm10
  movsd  -0x30(%r9),%xmm3
  movapd %xmm1,%xmm6
  movsd  -0x40(%rdi),%xmm1
  movapd %xmm2,%xmm8
  mulsd  %xmm1,%xmm7
  addsd  %xmm8,%xmm5
  addsd  %xmm6,%xmm4
  movsd  -0x18(%rdi),%xmm8
  mulsd  %xmm1,%xmm12
  movsd  -0x8(%r9),%xmm6
  mulsd  %xmm3,%xmm1
  mulsd  %xmm9,%xmm3
  movsd  -0x10(%r9),%xmm9
  addsd  %xmm11,%xmm7
  movsd  -0x20(%r9),%xmm11
  addsd  %xmm10,%xmm12
  movsd  -0x18(%r9),%xmm10
  movapd %xmm1,%xmm2
  movsd  -0x20(%rdi),%xmm1
  movapd %xmm11,%xmm13
  addsd  %xmm0,%xmm3
  mulsd  %xmm8,%xmm11
  addsd  %xmm0,%xmm2
  mulsd  %xmm1,%xmm13
  movapd %xmm11,%xmm15
  addsd  %xmm13,%xmm7
  movapd %xmm10,%xmm13
  addsd  %xmm5,%xmm15
  mulsd  %xmm1,%xmm13
  mulsd  %xmm8,%xmm10
  addsd  %xmm12,%xmm13
  movapd %xmm9,%xmm12
  mulsd  %xmm1,%xmm12
  addsd  %xmm4,%xmm10
  mulsd  %xmm6,%xmm1
  mulsd  %xmm8,%xmm9
  movsd  %xmm13,-0x78(%rsp)
  mulsd  %xmm8,%xmm6
  movapd %xmm10,%xmm14
  addsd  %xmm2,%xmm12
  addsd  %xmm0,%xmm1
  addsd  %xmm3,%xmm9
  addsd  %xmm0,%xmm6
  movapd %xmm1,%xmm13
  movsd  %xmm9,-0x48(%rsp)
  movapd %xmm6,%xmm10
  jmp    L128
L175:
  mov    %rdi,%rsi
  mov    %r9,%rcx
  jmp    L92
L183:
  movsd  0x40(%r9),%xmm4
  movsd  0x40(%rdi),%xmm1
  mov    $0x3,%ebx
  movsd  0x48(%r9),%xmm3
  movsd  0x48(%rdi),%xmm5
  movapd %xmm4,%xmm6
  movsd  0x50(%r9),%xmm2
  mulsd  %xmm1,%xmm6
  mulsd  %xmm5,%xmm4
  addsd  %xmm6,%xmm7
  movapd %xmm3,%xmm6
  mulsd  %xmm1,%xmm6
  addsd  %xmm4,%xmm15
  mulsd  %xmm2,%xmm1
  addsd  -0x78(%rsp),%xmm6
  mulsd  %xmm5,%xmm2
  mulsd  %xmm5,%xmm3
  movsd  %xmm6,-0x78(%rsp)
  addsd  %xmm0,%xmm1
  addsd  %xmm0,%xmm2
  addsd  %xmm3,%xmm14
  movapd %xmm1,%xmm12
  movsd  %xmm2,-0x48(%rsp)
  jmp    L192
L140:
  mov    $0x1,%ebx
  movsd  %xmm0,-0x48(%rsp)
  movapd %xmm0,%xmm12
  movapd %xmm0,%xmm14
  movsd  %xmm0,-0x78(%rsp)
  jmp    L192
```

assistant: ```c
void kernel_dgemm_dtrsm_nt_4x2_vs_lib4(int km, int kn, int tri, int kadd, int ksub, double *Ap, double *Bp, double *Am, double *Bm, double *C, double *D, double *fact, int alg) {
  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 == 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;
  a_00 = fact[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 = 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;
  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;
}
```