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

```asm
<kernel_dtrsm_nn_ll_diag_4x2_vs_lib4>:
  endbr64
  push   %r13
  push   %r12
  mov    %edi,%r12d
  mov    %esi,%edi
  push   %rbp
  push   %rbx
  mov    0x30(%rsp),%rbp
  mov    0x38(%rsp),%r11
  mov    0x40(%rsp),%rbx
  test   %edx,%edx
  jle    L65
  mov    %edx,%r10d
  mov    %rcx,%rax
  cmp    $0x3,%edx
  jle    L69
  lea    -0x4(%rdx),%edx
  shl    $0x2,%r9d
  pxor   %xmm0,%xmm0
  shr    $0x2,%edx
  movapd %xmm0,%xmm4
  movapd %xmm0,%xmm7
  movslq %r9d,%rsi
  lea    0x1(%rdx),%r9d
  shl    $0x3,%rsi
  movapd %xmm0,%xmm1
  mov    %r8,%rdx
  mov    %r9,%rcx
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm3
  mov    %r9,%r13
  shl    $0x7,%rcx
  movapd %xmm0,%xmm8
  movapd %xmm0,%xmm2
  add    %rax,%rcx
  nopl   0x0(%rax,%rax,1)
L11:
  movsd  (%rax),%xmm13
  movsd  (%rdx),%xmm5
  sub    $0xffffffffffffff80,%rax
  movsd  -0x78(%rax),%xmm12
  movsd  0x20(%rdx),%xmm10
  movapd %xmm13,%xmm14
  movsd  -0x70(%rax),%xmm11
  movsd  -0x68(%rax),%xmm9
  mulsd  %xmm5,%xmm14
  mulsd  %xmm10,%xmm13
  subsd  %xmm14,%xmm2
  movapd %xmm12,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm13,%xmm8
  movsd  0x8(%rdx),%xmm13
  mulsd  %xmm10,%xmm12
  subsd  %xmm14,%xmm3
  movapd %xmm11,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm12,%xmm6
  movsd  -0x60(%rax),%xmm12
  mulsd  %xmm10,%xmm11
  mulsd  %xmm9,%xmm5
  mulsd  %xmm10,%xmm9
  movsd  -0x50(%rax),%xmm10
  subsd  %xmm14,%xmm1
  movapd %xmm12,%xmm14
  mulsd  %xmm13,%xmm14
  subsd  %xmm11,%xmm7
  movsd  -0x58(%rax),%xmm11
  subsd  %xmm5,%xmm4
  movsd  -0x48(%rax),%xmm5
  subsd  %xmm9,%xmm0
  movsd  0x28(%rdx),%xmm9
  mulsd  %xmm9,%xmm12
  subsd  %xmm14,%xmm2
  movapd %xmm11,%xmm14
  mulsd  %xmm13,%xmm14
  mulsd  %xmm9,%xmm11
  subsd  %xmm12,%xmm8
  movsd  -0x38(%rax),%xmm12
  subsd  %xmm14,%xmm3
  movapd %xmm10,%xmm14
  mulsd  %xmm13,%xmm14
  subsd  %xmm11,%xmm6
  movsd  -0x30(%rax),%xmm11
  mulsd  %xmm5,%xmm13
  mulsd  %xmm9,%xmm5
  mulsd  %xmm9,%xmm10
  movsd  -0x28(%rax),%xmm9
  subsd  %xmm14,%xmm1
  subsd  %xmm13,%xmm4
  movsd  -0x40(%rax),%xmm13
  subsd  %xmm5,%xmm0
  movsd  0x10(%rdx),%xmm5
  movapd %xmm13,%xmm14
  subsd  %xmm10,%xmm7
  movsd  0x30(%rdx),%xmm10
  mulsd  %xmm5,%xmm14
  mulsd  %xmm10,%xmm13
  subsd  %xmm14,%xmm2
  movapd %xmm12,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm13,%xmm8
  movsd  0x18(%rdx),%xmm13
  mulsd  %xmm10,%xmm12
  subsd  %xmm14,%xmm3
  movapd %xmm11,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm12,%xmm6
  movsd  -0x20(%rax),%xmm12
  mulsd  %xmm10,%xmm11
  mulsd  %xmm9,%xmm5
  mulsd  %xmm10,%xmm9
  movsd  -0x10(%rax),%xmm10
  subsd  %xmm14,%xmm1
  movapd %xmm12,%xmm14
  mulsd  %xmm13,%xmm14
  subsd  %xmm11,%xmm7
  movsd  -0x18(%rax),%xmm11
  subsd  %xmm5,%xmm4
  movsd  -0x8(%rax),%xmm5
  subsd  %xmm9,%xmm0
  movsd  0x38(%rdx),%xmm9
  add    %rsi,%rdx
  mulsd  %xmm9,%xmm12
  subsd  %xmm14,%xmm2
  movapd %xmm11,%xmm14
  mulsd  %xmm13,%xmm14
  mulsd  %xmm9,%xmm11
  subsd  %xmm12,%xmm8
  subsd  %xmm14,%xmm3
  movapd %xmm10,%xmm14
  mulsd  %xmm13,%xmm14
  subsd  %xmm11,%xmm6
  mulsd  %xmm5,%xmm13
  mulsd  %xmm9,%xmm10
  mulsd  %xmm9,%xmm5
  subsd  %xmm14,%xmm1
  subsd  %xmm13,%xmm4
  subsd  %xmm10,%xmm7
  subsd  %xmm5,%xmm0
  cmp    %rcx,%rax
  jne    L11
  imul   %r9,%rsi
  shl    $0x2,%r13d
  add    %rsi,%r8
  cmp    %r13d,%r10d
  jle    L109
L40:
  movsd  (%rcx),%xmm13
  movsd  (%r8),%xmm5
  add    $0x1,%r13d
  add    $0x20,%rcx
  movsd  -0x18(%rcx),%xmm12
  movsd  -0x10(%rcx),%xmm11
  add    $0x8,%r8
  movapd %xmm13,%xmm14
  movsd  0x18(%r8),%xmm10
  movsd  -0x8(%rcx),%xmm9
  mulsd  %xmm5,%xmm14
  mulsd  %xmm10,%xmm13
  subsd  %xmm14,%xmm2
  movapd %xmm12,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm13,%xmm8
  mulsd  %xmm10,%xmm12
  subsd  %xmm14,%xmm3
  movapd %xmm11,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm12,%xmm6
  mulsd  %xmm9,%xmm5
  mulsd  %xmm10,%xmm11
  mulsd  %xmm10,%xmm9
  subsd  %xmm14,%xmm1
  subsd  %xmm5,%xmm4
  subsd  %xmm11,%xmm7
  subsd  %xmm9,%xmm0
  cmp    %r13d,%r10d
  jg     L40
L109:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  je     L55
  addsd  0x0(%rbp),%xmm2
  addsd  0x8(%rbp),%xmm3
  addsd  0x10(%rbp),%xmm1
  addsd  0x18(%rbp),%xmm4
  addsd  0x20(%rbp),%xmm8
  addsd  0x28(%rbp),%xmm6
  addsd  0x30(%rbp),%xmm7
  addsd  0x38(%rbp),%xmm0
L55:
  movsd  %xmm2,(%r11)
  cmp    $0x1,%edi
  jle    L6
  movsd  %xmm8,0x20(%r11)
  movapd %xmm2,%xmm11
  movsd  0x10(%rbx),%xmm5
  movsd  0x8(%rbx),%xmm10
  movsd  0x18(%rbx),%xmm9
  mulsd  %xmm10,%xmm11
  mulsd  %xmm8,%xmm10
  subsd  %xmm11,%xmm3
  movapd %xmm2,%xmm11
  mulsd  %xmm9,%xmm2
  subsd  %xmm10,%xmm6
  mulsd  %xmm5,%xmm11
  movsd  %xmm3,0x8(%r11)
  mulsd  %xmm8,%xmm5
  movsd  %xmm6,0x28(%r11)
  movsd  0x38(%rbx),%xmm10
  subsd  %xmm2,%xmm4
  movsd  0x30(%rbx),%xmm2
  subsd  %xmm11,%xmm1
  movapd %xmm2,%xmm11
  subsd  %xmm5,%xmm7
  mulsd  %xmm3,%xmm11
  mulsd  %xmm6,%xmm2
  subsd  %xmm11,%xmm1
  subsd  %xmm2,%xmm7
  movsd  %xmm1,0x10(%r11)
  movsd  %xmm7,0x30(%r11)
  cmp    $0x3,%r12d
  jle    L1
  mulsd  %xmm9,%xmm8
  movsd  0x58(%rbx),%xmm2
  mulsd  %xmm10,%xmm3
  mulsd  %xmm10,%xmm6
  mulsd  %xmm2,%xmm1
  mulsd  %xmm7,%xmm2
  subsd  %xmm8,%xmm0
  subsd  %xmm3,%xmm4
  subsd  %xmm6,%xmm0
  subsd  %xmm1,%xmm4
  subsd  %xmm2,%xmm0
  movsd  %xmm4,0x18(%r11)
  movsd  %xmm0,0x38(%r11)
L1:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nop
L6:
  movsd  0x8(%rbx),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  %xmm0,%xmm3
  movsd  0x10(%rbx),%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  0x18(%rbx),%xmm2
  movsd  %xmm3,0x8(%r11)
  subsd  %xmm0,%xmm1
  movsd  0x38(%rbx),%xmm0
  subsd  %xmm2,%xmm4
  movsd  0x30(%rbx),%xmm2
  mulsd  %xmm3,%xmm2
  subsd  %xmm2,%xmm1
  movsd  %xmm1,0x10(%r11)
  cmp    $0x3,%r12d
  jle    L1
  mulsd  %xmm3,%xmm0
  mulsd  0x58(%rbx),%xmm1
  subsd  %xmm0,%xmm4
  subsd  %xmm1,%xmm4
  movsd  %xmm4,0x18(%r11)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   (%rax)
L65:
  pxor   %xmm0,%xmm0
  movapd %xmm0,%xmm4
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm3
  movapd %xmm0,%xmm8
  movapd %xmm0,%xmm2
  jmp    L109
  xchg   %ax,%ax
L69:
  pxor   %xmm0,%xmm0
  xor    %r13d,%r13d
  movapd %xmm0,%xmm4
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm3
  movapd %xmm0,%xmm8
  movapd %xmm0,%xmm2
  jmp    L40
```

assistant: ```c
void kernel_dtrsm_nn_ll_diag_4x2_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, a_2, a_3, b_0, b_1, e_1, e_2, e_3, d_00 = 0, d_01 = 0, d_10 = 0, d_11 = 0, d_20 = 0, d_21 = 0, d_30 = 0, d_31 = 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];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + 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_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    a_2 = A[2 + bs * 1];
    a_3 = A[3 + 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_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    a_2 = A[2 + bs * 2];
    a_3 = A[3 + 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_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    a_2 = A[2 + bs * 3];
    a_3 = A[3 + 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_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    A += 16;
    B += 4 * sdb;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + 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_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    A += 4;
    B += 1;
  }
add:
  if (alg != 0) {
    d_00 += C[0 + bs * 0];
    d_10 += C[1 + bs * 0];
    d_20 += C[2 + bs * 0];
    d_30 += C[3 + bs * 0];
    d_01 += C[0 + bs * 1];
    d_11 += C[1 + bs * 1];
    d_21 += C[2 + bs * 1];
    d_31 += C[3 + bs * 1];
  }
  D[0 + bs * 0] = d_00;
  if (kn >= 2)
    D[0 + bs * 1] = d_01;
  e_1 = E[1 + bs * 0];
  e_2 = E[2 + bs * 0];
  e_3 = E[3 + bs * 0];
  d_10 -= e_1 * d_00;
  d_20 -= e_2 * d_00;
  d_30 -= e_3 * d_00;
  d_11 -= e_1 * d_01;
  d_21 -= e_2 * d_01;
  d_31 -= e_3 * d_01;
  D[1 + bs * 0] = d_10;
  if (kn >= 2)
    D[1 + bs * 1] = d_11;
  e_2 = E[2 + bs * 1];
  e_3 = E[3 + bs * 1];
  d_20 -= e_2 * d_10;
  d_30 -= e_3 * d_10;
  d_21 -= e_2 * d_11;
  d_31 -= e_3 * d_11;
  D[2 + bs * 0] = d_20;
  if (kn >= 2)
    D[2 + bs * 1] = d_21;
  if (km < 4)
    return;
  e_3 = E[3 + bs * 2];
  d_30 -= e_3 * d_20;
  d_31 -= e_3 * d_21;
  D[3 + bs * 0] = d_30;
  if (kn >= 2)
    D[3 + bs * 1] = d_31;
  return;
}
```