user: 这段汇编代码用C语言表示是什么样的：

```asm
<kernel_dtrsm_nn_ll_diag_2x2_vs_lib4>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x28(%rsp),%rbx
  mov    0x30(%rsp),%r11
  test   %edx,%edx
  jle    L48
  mov    %edx,%r10d
  cmp    $0x3,%edx
  jle    L102
  shl    $0x2,%r9d
  movslq %r9d,%rdx
  lea    -0x4(%r10),%r9d
  mov    %r9d,%eax
  shl    $0x3,%rdx
  shr    $0x2,%eax
  cmp    $0x3,%r9d
  jbe    L14
  pxor   %xmm0,%xmm0
  mov    %rcx,%rbp
  mov    %r8,%r9
  xor    %r12d,%r12d
  movapd %xmm0,%xmm1
  cs nopw 0x0(%rax,%rax,1)
L76:
  movupd 0x20(%r9),%xmm5
  movupd 0x0(%rbp),%xmm2
  add    $0x1,%r12d
  sub    $0xffffffffffffff80,%rbp
  movupd (%r9),%xmm6
  movlpd 0x28(%r9),%xmm6
  movhpd (%r9),%xmm5
  unpckhpd %xmm2,%xmm2
  movupd 0x30(%r9),%xmm4
  movupd 0x10(%r9),%xmm3
  mulpd  %xmm5,%xmm2
  movlpd 0x38(%r9),%xmm3
  movhpd 0x10(%r9),%xmm4
  add    %rdx,%r9
  subpd  %xmm2,%xmm1
  movupd -0x60(%rbp),%xmm2
  unpckhpd %xmm2,%xmm2
  mulpd  %xmm6,%xmm2
  subpd  %xmm2,%xmm1
  movupd -0x40(%rbp),%xmm2
  unpckhpd %xmm2,%xmm2
  mulpd  %xmm4,%xmm2
  subpd  %xmm2,%xmm1
  movupd -0x20(%rbp),%xmm2
  unpckhpd %xmm2,%xmm2
  mulpd  %xmm3,%xmm2
  subpd  %xmm2,%xmm1
  movupd -0x80(%rbp),%xmm2
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm5,%xmm2
  subpd  %xmm2,%xmm0
  movupd -0x60(%rbp),%xmm2
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm6,%xmm2
  subpd  %xmm2,%xmm0
  movupd -0x40(%rbp),%xmm2
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm4,%xmm2
  subpd  %xmm2,%xmm0
  movupd -0x20(%rbp),%xmm2
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm3,%xmm2
  subpd  %xmm2,%xmm0
  cmp    %r12d,%eax
  ja     L76
  mov    %eax,%r9d
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm3
  mov    %r9,%rbp
  imul   %rdx,%r9
  unpckhpd %xmm1,%xmm1
  shl    $0x7,%rbp
  unpckhpd %xmm0,%xmm0
  add    %rcx,%rbp
  add    %r8,%r9
L73:
  movsd  0x20(%r9),%xmm7
  movsd  0x0(%rbp),%xmm5
  movsd  0x8(%rbp),%xmm4
  movsd  (%r9),%xmm6
  movapd %xmm5,%xmm8
  mulsd  %xmm7,%xmm5
  mulsd  %xmm6,%xmm8
  mulsd  %xmm4,%xmm6
  mulsd  %xmm7,%xmm4
  movsd  0x28(%r9),%xmm7
  subsd  %xmm5,%xmm3
  movsd  0x20(%rbp),%xmm5
  subsd  %xmm8,%xmm0
  subsd  %xmm6,%xmm1
  movsd  0x8(%r9),%xmm6
  movapd %xmm5,%xmm8
  subsd  %xmm4,%xmm2
  movsd  0x28(%rbp),%xmm4
  mulsd  %xmm7,%xmm5
  mulsd  %xmm6,%xmm8
  mulsd  %xmm4,%xmm6
  mulsd  %xmm7,%xmm4
  movsd  0x30(%r9),%xmm7
  subsd  %xmm5,%xmm3
  movsd  0x40(%rbp),%xmm5
  subsd  %xmm8,%xmm0
  subsd  %xmm6,%xmm1
  movsd  0x10(%r9),%xmm6
  movapd %xmm5,%xmm8
  subsd  %xmm4,%xmm2
  movsd  0x48(%rbp),%xmm4
  mulsd  %xmm7,%xmm5
  mulsd  %xmm6,%xmm8
  mulsd  %xmm4,%xmm6
  mulsd  %xmm7,%xmm4
  movsd  0x38(%r9),%xmm7
  subsd  %xmm5,%xmm3
  movsd  0x60(%rbp),%xmm5
  subsd  %xmm8,%xmm0
  subsd  %xmm6,%xmm1
  movsd  0x18(%r9),%xmm6
  movapd %xmm5,%xmm8
  lea    0x1(%rax),%r9d
  mulsd  %xmm7,%xmm5
  imul   %r9,%rdx
  subsd  %xmm4,%xmm2
  mov    %r9,%rax
  movsd  0x68(%rbp),%xmm4
  mulsd  %xmm6,%xmm8
  mov    %r9,%rbp
  shl    $0x2,%eax
  shl    $0x7,%rbp
  mulsd  %xmm4,%xmm6
  add    %rbp,%rcx
  add    %rdx,%r8
  mulsd  %xmm7,%xmm4
  subsd  %xmm5,%xmm3
  subsd  %xmm8,%xmm0
  subsd  %xmm6,%xmm1
  subsd  %xmm4,%xmm2
  cmp    %eax,%r10d
  jle    L110
L107:
  mov    %r10d,%r9d
  mov    $0x1,%edx
  sub    %eax,%r9d
  cmp    %r10d,%eax
  cmovl  %r9d,%edx
  sub    $0x1,%r9d
  cmp    $0x1,%r9d
  jbe    L135
  cmp    %r10d,%eax
  jge    L135
  movupd (%rcx),%xmm4
  movupd 0x20(%rcx),%xmm5
  sub    $0x1,%edx
  movupd 0x30(%rcx),%xmm6
  movlpd 0x28(%rcx),%xmm6
  and    $0xfffffffe,%edx
  movhpd 0x30(%rcx),%xmm5
  movhpd 0x10(%rcx),%xmm4
  mov    %edx,%r9d
  add    %edx,%eax
  unpcklpd %xmm5,%xmm4
  movupd 0x10(%rcx),%xmm5
  movlpd 0x8(%rcx),%xmm5
  mov    %r9,%rbp
  movupd 0x20(%r8),%xmm7
  shl    $0x5,%rbp
  unpcklpd %xmm6,%xmm5
  movupd (%r8),%xmm6
  add    %rbp,%rcx
  mulpd  %xmm4,%xmm6
  mulpd  %xmm7,%xmm4
  subsd  %xmm6,%xmm0
  unpckhpd %xmm6,%xmm6
  subsd  %xmm4,%xmm3
  unpckhpd %xmm4,%xmm4
  subsd  %xmm6,%xmm0
  movupd (%r8),%xmm6
  lea    (%r8,%r9,8),%r8
  subsd  %xmm4,%xmm3
  movapd %xmm7,%xmm4
  mulpd  %xmm5,%xmm6
  mulpd  %xmm5,%xmm4
  subsd  %xmm6,%xmm1
  unpckhpd %xmm6,%xmm6
  subsd  %xmm4,%xmm2
  unpckhpd %xmm4,%xmm4
  subsd  %xmm6,%xmm1
  subsd  %xmm4,%xmm2
L135:
  movsd  (%rcx),%xmm5
  movsd  0x8(%rcx),%xmm7
  add    $0x1,%eax
  movsd  (%r8),%xmm6
  movsd  0x20(%r8),%xmm4
  movapd %xmm5,%xmm8
  mulsd  %xmm6,%xmm8
  mulsd  %xmm4,%xmm5
  mulsd  %xmm7,%xmm6
  mulsd  %xmm7,%xmm4
  subsd  %xmm8,%xmm0
  subsd  %xmm5,%xmm3
  subsd  %xmm6,%xmm1
  subsd  %xmm4,%xmm2
  cmp    %eax,%r10d
  jle    L110
  movsd  0x8(%r8),%xmm6
  movsd  0x20(%rcx),%xmm5
  movsd  0x28(%rcx),%xmm7
  movsd  0x28(%r8),%xmm4
  movapd %xmm6,%xmm8
  mulsd  %xmm5,%xmm8
  mulsd  %xmm7,%xmm6
  mulsd  %xmm4,%xmm5
  mulsd  %xmm7,%xmm4
  subsd  %xmm8,%xmm0
  subsd  %xmm6,%xmm1
  subsd  %xmm5,%xmm3
  subsd  %xmm4,%xmm2
  nopw   0x0(%rax,%rax,1)
L110:
  mov    0x20(%rsp),%eax
  test   %eax,%eax
  je     L75
  addsd  (%rbx),%xmm0
  addsd  0x8(%rbx),%xmm1
  addsd  0x20(%rbx),%xmm3
  addsd  0x28(%rbx),%xmm2
L75:
  movsd  %xmm0,(%r11)
  cmp    $0x1,%esi
  jle    L133
  movsd  %xmm3,0x20(%r11)
  cmp    $0x1,%edi
  jle    L127
  mov    0x38(%rsp),%rax
  movsd  0x8(%rax),%xmm4
  mulsd  %xmm4,%xmm0
  mulsd  %xmm4,%xmm3
  subsd  %xmm0,%xmm1
  subsd  %xmm3,%xmm2
  movsd  %xmm1,0x8(%r11)
  movsd  %xmm2,0x28(%r11)
L127:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L133:
  cmp    $0x1,%edi
  jle    L127
  mov    0x38(%rsp),%rax
  mulsd  0x8(%rax),%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%r11)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  xchg   %ax,%ax
L48:
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm1
  movapd %xmm2,%xmm3
  movapd %xmm2,%xmm0
  jmp    L110
  nopl   (%rax)
L102:
  pxor   %xmm2,%xmm2
  xor    %eax,%eax
  movapd %xmm2,%xmm1
  movapd %xmm2,%xmm3
  movapd %xmm2,%xmm0
  jmp    L107
L14:
  pxor   %xmm2,%xmm2
  mov    %r8,%r9
  mov    %rcx,%rbp
  movapd %xmm2,%xmm1
  movapd %xmm2,%xmm3
  movapd %xmm2,%xmm0
  jmp    L73
```

assistant: ```c
void kernel_dtrsm_nn_ll_diag_2x2_vs_lib4(int km, int kn, int kmax, double *A, double *B, int sdb, int alg, double *C, double *D, double *E) {
  const int bs = 4;
  int k;
  double tmp, a_0, a_1, b_0, b_1, e_1, e_2, e_3, d_00 = 0, d_01 = 0, d_10 = 0, d_11 = 0;
  if (kmax <= 0)
    goto add;
  for (k = 0; k < kmax - 3; k += 4) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    b_0 = B[1 + bs * 0];
    b_1 = B[1 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    b_0 = B[2 + bs * 0];
    b_1 = B[2 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    b_0 = B[3 + bs * 0];
    b_1 = B[3 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    A += 16;
    B += 4 * sdb;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    A += 4;
    B += 1;
  }
add:
  if (alg != 0) {
    d_00 += C[0 + bs * 0];
    d_10 += C[1 + bs * 0];
    d_01 += C[0 + bs * 1];
    d_11 += C[1 + bs * 1];
  }
  D[0 + bs * 0] = d_00;
  if (kn >= 2)
    D[0 + bs * 1] = d_01;
  if (km < 2)
    return;
  e_1 = E[1 + bs * 0];
  d_10 -= e_1 * d_00;
  d_11 -= e_1 * d_01;
  D[1 + bs * 0] = d_10;
  if (kn >= 2)
    D[1 + bs * 1] = d_11;
  return;
}
```