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

```asm
<kernel_dtrsm_nn_ru_2x4_vs_lib4>:
  endbr64
  push   %r14
  mov    %edi,%r10d
  mov    %esi,%r14d
  mov    %edx,%edi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%rbp
  mov    0x40(%rsp),%rbx
  mov    0x48(%rsp),%r11
  mov    0x58(%rsp),%r12
  test   %edx,%edx
  jle    L156
  mov    %rcx,%rdx
  cmp    $0x3,%edi
  jle    L94
  lea    -0x4(%rdi),%eax
  shl    $0x2,%r9d
  pxor   %xmm0,%xmm0
  shr    $0x2,%eax
  movapd %xmm0,%xmm8
  movapd %xmm0,%xmm9
  movslq %r9d,%rsi
  lea    0x1(%rax),%r9d
  shl    $0x3,%rsi
  movapd %xmm0,%xmm10
  mov    %r8,%rax
  mov    %r9,%rcx
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm5
  mov    %r9,%r13
  shl    $0x7,%rcx
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm7
  add    %rdx,%rcx
  nopl   0x0(%rax)
L155:
  movsd  (%rdx),%xmm3
  movsd  0x8(%rdx),%xmm2
  sub    $0xffffffffffffff80,%rdx
  movsd  (%rax),%xmm13
  movsd  0x20(%rax),%xmm12
  movapd %xmm3,%xmm14
  movsd  0x60(%rax),%xmm11
  movsd  0x40(%rax),%xmm4
  mulsd  %xmm13,%xmm14
  mulsd  %xmm2,%xmm13
  subsd  %xmm14,%xmm7
  subsd  %xmm13,%xmm10
  movapd %xmm3,%xmm13
  mulsd  %xmm12,%xmm13
  mulsd  %xmm2,%xmm12
  subsd  %xmm13,%xmm6
  movsd  0x8(%rax),%xmm13
  subsd  %xmm12,%xmm9
  movapd %xmm3,%xmm12
  mulsd  %xmm11,%xmm3
  mulsd  %xmm4,%xmm12
  mulsd  %xmm2,%xmm4
  mulsd  %xmm11,%xmm2
  movsd  0x48(%rax),%xmm11
  subsd  %xmm3,%xmm1
  subsd  %xmm12,%xmm5
  movsd  0x28(%rax),%xmm12
  subsd  %xmm4,%xmm8
  movsd  0x68(%rax),%xmm4
  subsd  %xmm2,%xmm0
  movsd  -0x60(%rdx),%xmm2
  movapd %xmm1,%xmm3
  movsd  -0x58(%rdx),%xmm1
  movapd %xmm2,%xmm14
  mulsd  %xmm13,%xmm14
  mulsd  %xmm1,%xmm13
  subsd  %xmm14,%xmm7
  subsd  %xmm13,%xmm10
  movapd %xmm2,%xmm13
  mulsd  %xmm12,%xmm13
  mulsd  %xmm1,%xmm12
  subsd  %xmm13,%xmm6
  movsd  0x10(%rax),%xmm13
  subsd  %xmm12,%xmm9
  movapd %xmm2,%xmm12
  mulsd  %xmm11,%xmm12
  mulsd  %xmm1,%xmm11
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm2
  movsd  -0x38(%rdx),%xmm4
  subsd  %xmm12,%xmm5
  movsd  0x30(%rax),%xmm12
  subsd  %xmm11,%xmm8
  movsd  0x70(%rax),%xmm11
  subsd  %xmm1,%xmm0
  movsd  -0x40(%rdx),%xmm1
  subsd  %xmm2,%xmm3
  movsd  0x50(%rax),%xmm2
  movapd %xmm1,%xmm14
  mulsd  %xmm13,%xmm14
  mulsd  %xmm4,%xmm13
  subsd  %xmm14,%xmm7
  subsd  %xmm13,%xmm10
  movapd %xmm1,%xmm13
  mulsd  %xmm12,%xmm13
  mulsd  %xmm4,%xmm12
  subsd  %xmm13,%xmm6
  movsd  0x18(%rax),%xmm13
  subsd  %xmm12,%xmm9
  movapd %xmm1,%xmm12
  mulsd  %xmm11,%xmm1
  mulsd  %xmm2,%xmm12
  mulsd  %xmm4,%xmm2
  mulsd  %xmm11,%xmm4
  movsd  0x58(%rax),%xmm11
  subsd  %xmm1,%xmm3
  subsd  %xmm12,%xmm5
  movsd  0x38(%rax),%xmm12
  subsd  %xmm2,%xmm8
  movsd  -0x18(%rdx),%xmm2
  movapd %xmm3,%xmm1
  movsd  -0x20(%rdx),%xmm3
  subsd  %xmm4,%xmm0
  movsd  0x78(%rax),%xmm4
  add    %rsi,%rax
  movapd %xmm3,%xmm14
  mulsd  %xmm13,%xmm14
  mulsd  %xmm2,%xmm13
  subsd  %xmm14,%xmm7
  subsd  %xmm13,%xmm10
  movapd %xmm3,%xmm13
  mulsd  %xmm12,%xmm13
  mulsd  %xmm2,%xmm12
  subsd  %xmm13,%xmm6
  subsd  %xmm12,%xmm9
  movapd %xmm3,%xmm12
  mulsd  %xmm11,%xmm12
  mulsd  %xmm4,%xmm3
  mulsd  %xmm2,%xmm11
  mulsd  %xmm4,%xmm2
  subsd  %xmm12,%xmm5
  subsd  %xmm3,%xmm1
  subsd  %xmm11,%xmm8
  subsd  %xmm2,%xmm0
  cmp    %rcx,%rdx
  jne    L155
  imul   %rsi,%r9
  lea    0x0(,%r13,4),%eax
  add    %r9,%r8
  cmp    %eax,%edi
  jle    L72
L106:
  movsd  (%rcx),%xmm3
  movsd  0x8(%rcx),%xmm2
  add    $0x1,%eax
  add    $0x20,%rcx
  movsd  (%r8),%xmm13
  movsd  0x20(%r8),%xmm11
  add    $0x8,%r8
  movapd %xmm3,%xmm14
  movsd  0x38(%r8),%xmm4
  movsd  0x58(%r8),%xmm12
  mulsd  %xmm13,%xmm14
  mulsd  %xmm2,%xmm13
  subsd  %xmm14,%xmm7
  subsd  %xmm13,%xmm10
  movapd %xmm3,%xmm13
  mulsd  %xmm11,%xmm13
  mulsd  %xmm2,%xmm11
  subsd  %xmm13,%xmm6
  subsd  %xmm11,%xmm9
  movapd %xmm3,%xmm11
  mulsd  %xmm4,%xmm11
  mulsd  %xmm12,%xmm3
  mulsd  %xmm2,%xmm4
  mulsd  %xmm12,%xmm2
  subsd  %xmm11,%xmm5
  subsd  %xmm3,%xmm1
  subsd  %xmm4,%xmm8
  subsd  %xmm2,%xmm0
  cmp    %eax,%edi
  jg     L106
L72:
  mov    0x30(%rsp),%edx
  test   %edx,%edx
  je     L58
  addsd  0x0(%rbp),%xmm7
  addsd  0x8(%rbp),%xmm10
  addsd  0x20(%rbp),%xmm6
  addsd  0x28(%rbp),%xmm9
  addsd  0x40(%rbp),%xmm5
  addsd  0x48(%rbp),%xmm8
  addsd  0x60(%rbp),%xmm1
  addsd  0x68(%rbp),%xmm0
L58:
  mov    0x50(%rsp),%eax
  test   %eax,%eax
  je     L47
  movsd  (%r12),%xmm2
  mulsd  %xmm2,%xmm7
  mulsd  %xmm10,%xmm2
  movsd  %xmm7,(%rbx)
  cmp    $0x1,%r10d
  jle    L51
  movsd  %xmm2,0x8(%rbx)
  movsd  0x20(%r11),%xmm3
  movapd %xmm7,%xmm10
  movsd  0x8(%r12),%xmm4
  movapd %xmm7,%xmm11
  mulsd  %xmm3,%xmm10
  mulsd  %xmm2,%xmm3
  subsd  %xmm10,%xmm6
  subsd  %xmm3,%xmm9
  mulsd  %xmm4,%xmm6
  mulsd  %xmm4,%xmm9
  movsd  %xmm6,0x20(%rbx)
  movsd  %xmm9,0x28(%rbx)
  movsd  0x40(%r11),%xmm4
  movsd  0x48(%r11),%xmm3
  movsd  0x10(%r12),%xmm10
  mulsd  %xmm4,%xmm11
  mulsd  %xmm2,%xmm4
  subsd  %xmm11,%xmm5
  subsd  %xmm4,%xmm8
  movapd %xmm3,%xmm4
  mulsd  %xmm6,%xmm4
  mulsd  %xmm9,%xmm3
  subsd  %xmm4,%xmm5
  subsd  %xmm3,%xmm8
  mulsd  %xmm10,%xmm5
  mulsd  %xmm10,%xmm8
  movsd  %xmm5,0x40(%rbx)
  movsd  %xmm8,0x48(%rbx)
L26:
  cmp    $0x3,%r14d
  jle    L75
  movsd  0x60(%r11),%xmm11
  movsd  0x68(%r11),%xmm10
  movsd  0x70(%r11),%xmm4
  movsd  0x18(%r12),%xmm3
  mulsd  %xmm11,%xmm7
  mulsd  %xmm10,%xmm6
  mulsd  %xmm4,%xmm5
  subsd  %xmm7,%xmm1
  subsd  %xmm6,%xmm1
  subsd  %xmm5,%xmm1
  mulsd  %xmm3,%xmm1
  movsd  %xmm1,0x60(%rbx)
  cmp    $0x1,%r10d
  jle    L75
  mulsd  %xmm2,%xmm11
  mulsd  %xmm9,%xmm10
  mulsd  %xmm8,%xmm4
  subsd  %xmm11,%xmm0
  subsd  %xmm10,%xmm0
  subsd  %xmm4,%xmm0
  mulsd  %xmm0,%xmm3
  movsd  %xmm3,0x68(%rbx)
L75:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L51:
  movsd  0x20(%r11),%xmm3
  movapd %xmm7,%xmm10
  movapd %xmm7,%xmm11
  movsd  0x8(%r12),%xmm4
  mulsd  %xmm3,%xmm10
  mulsd  %xmm2,%xmm3
  subsd  %xmm10,%xmm6
  subsd  %xmm3,%xmm9
  mulsd  %xmm4,%xmm6
  mulsd  %xmm4,%xmm9
  movsd  %xmm6,0x20(%rbx)
  movsd  0x40(%r11),%xmm4
  movsd  0x48(%r11),%xmm3
  movsd  0x10(%r12),%xmm10
  mulsd  %xmm4,%xmm11
  mulsd  %xmm2,%xmm4
  subsd  %xmm11,%xmm5
  subsd  %xmm4,%xmm8
  movapd %xmm3,%xmm4
  mulsd  %xmm6,%xmm4
  mulsd  %xmm9,%xmm3
  subsd  %xmm4,%xmm5
  subsd  %xmm3,%xmm8
  mulsd  %xmm10,%xmm5
  mulsd  %xmm10,%xmm8
  movsd  %xmm5,0x40(%rbx)
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L47:
  movsd  D2(%rip),%xmm2
  movapd %xmm2,%xmm3
  divsd  (%r11),%xmm3
  mulsd  %xmm3,%xmm7
  mulsd  %xmm10,%xmm3
  movsd  %xmm7,(%rbx)
  cmp    $0x1,%r10d
  jle    L38
  movsd  %xmm3,0x8(%rbx)
  movsd  0x20(%r11),%xmm4
  movapd %xmm7,%xmm11
  movapd %xmm2,%xmm10
  divsd  0x28(%r11),%xmm10
  movapd %xmm7,%xmm12
  mulsd  %xmm4,%xmm11
  mulsd  %xmm3,%xmm4
  subsd  %xmm11,%xmm6
  movapd %xmm2,%xmm11
  subsd  %xmm4,%xmm9
  mulsd  %xmm10,%xmm6
  mulsd  %xmm10,%xmm9
  movsd  %xmm6,0x20(%rbx)
  movsd  %xmm9,0x28(%rbx)
  movsd  0x40(%r11),%xmm10
  movsd  0x48(%r11),%xmm4
  divsd  0x50(%r11),%xmm11
  mulsd  %xmm10,%xmm12
  mulsd  %xmm3,%xmm10
  subsd  %xmm12,%xmm5
  subsd  %xmm10,%xmm8
  movapd %xmm4,%xmm10
  mulsd  %xmm6,%xmm10
  mulsd  %xmm9,%xmm4
  subsd  %xmm10,%xmm5
  subsd  %xmm4,%xmm8
  mulsd  %xmm11,%xmm5
  mulsd  %xmm11,%xmm8
  movsd  %xmm5,0x40(%rbx)
  movsd  %xmm8,0x48(%rbx)
L90:
  cmp    $0x3,%r14d
  jle    L75
  movsd  0x70(%r11),%xmm4
  movsd  0x60(%r11),%xmm11
  movsd  0x68(%r11),%xmm10
  divsd  %xmm4,%xmm2
  mulsd  %xmm11,%xmm7
  mulsd  %xmm10,%xmm6
  mulsd  %xmm4,%xmm5
  subsd  %xmm7,%xmm1
  subsd  %xmm6,%xmm1
  subsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm1,0x60(%rbx)
  cmp    $0x1,%r10d
  jle    L75
  mulsd  %xmm3,%xmm11
  mulsd  %xmm9,%xmm10
  mulsd  %xmm8,%xmm4
  subsd  %xmm11,%xmm0
  subsd  %xmm10,%xmm0
  subsd  %xmm4,%xmm0
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,0x68(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L156:
  pxor   %xmm0,%xmm0
  movapd %xmm0,%xmm8
  movapd %xmm0,%xmm9
  movapd %xmm0,%xmm10
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm5
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm7
  jmp    L72
L38:
  movsd  0x20(%r11),%xmm4
  movapd %xmm7,%xmm10
  movapd %xmm2,%xmm11
  divsd  0x28(%r11),%xmm11
  movapd %xmm7,%xmm12
  mulsd  %xmm4,%xmm10
  mulsd  %xmm3,%xmm4
  subsd  %xmm10,%xmm6
  movapd %xmm4,%xmm10
  movapd %xmm9,%xmm4
  movapd %xmm11,%xmm9
  subsd  %xmm10,%xmm4
  movapd %xmm2,%xmm10
  mulsd  %xmm11,%xmm6
  mulsd  %xmm4,%xmm9
  movsd  %xmm6,0x20(%rbx)
  movsd  0x40(%r11),%xmm11
  movsd  0x48(%r11),%xmm4
  divsd  0x50(%r11),%xmm10
  mulsd  %xmm11,%xmm12
  mulsd  %xmm3,%xmm11
  subsd  %xmm12,%xmm5
  subsd  %xmm11,%xmm8
  movapd %xmm4,%xmm11
  mulsd  %xmm6,%xmm11
  mulsd  %xmm9,%xmm4
  subsd  %xmm11,%xmm5
  subsd  %xmm4,%xmm8
  mulsd  %xmm10,%xmm5
  mulsd  %xmm10,%xmm8
  movsd  %xmm5,0x40(%rbx)
  jmp    L90
  nopl   0x0(%rax)
L94:
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  movapd %xmm0,%xmm8
  movapd %xmm0,%xmm9
  movapd %xmm0,%xmm10
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm5
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm7
  jmp    L106
```

tool_calls: name: parse_data
arguments: label: D2
type_infered: f64

tool: D2: 1

assistant: ```c
void kernel_dtrsm_nn_ru_2x4_vs_lib4(int km, int kn, int kmax, double *A, double *B, int sdb, int alg, double *C, double *D, double *E, int use_inv_diag_E, double *inv_diag_E) {
  const int bs = 4;
  int k;
  double tmp, a_0, a_1, b_0, b_1, b_2, b_3, e_00, e_01, e_02, e_03, e_11, e_12, e_13, e_22, e_23, e_33, d_00 = 0, d_01 = 0, d_02 = 0, d_03 = 0, d_10 = 0, d_11 = 0, d_12 = 0, d_13 = 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];
    b_2 = B[0 + bs * 2];
    b_3 = B[0 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    b_0 = B[1 + bs * 0];
    b_1 = B[1 + bs * 1];
    b_2 = B[1 + bs * 2];
    b_3 = B[1 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    b_0 = B[2 + bs * 0];
    b_1 = B[2 + bs * 1];
    b_2 = B[2 + bs * 2];
    b_3 = B[2 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    b_0 = B[3 + bs * 0];
    b_1 = B[3 + bs * 1];
    b_2 = B[3 + bs * 2];
    b_3 = B[3 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    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];
    b_2 = B[0 + bs * 2];
    b_3 = B[0 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    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_02 += C[0 + bs * 2];
    d_12 += C[1 + bs * 2];
    d_03 += C[0 + bs * 3];
    d_13 += C[1 + bs * 3];
  }
  if (use_inv_diag_E) {
    e_00 = inv_diag_E[0];
    d_00 *= e_00;
    d_10 *= e_00;
    D[0 + bs * 0] = d_00;
    if (km >= 2)
      D[1 + bs * 0] = d_10;
    e_01 = E[0 + bs * 1];
    e_11 = inv_diag_E[1];
    d_01 -= d_00 * e_01;
    d_11 -= d_10 * e_01;
    d_01 *= e_11;
    d_11 *= e_11;
    D[0 + bs * 1] = d_01;
    if (km >= 2)
      D[1 + bs * 1] = d_11;
    e_02 = E[0 + bs * 2];
    e_12 = E[1 + bs * 2];
    e_22 = inv_diag_E[2];
    d_02 -= d_00 * e_02;
    d_12 -= d_10 * e_02;
    d_02 -= d_01 * e_12;
    d_12 -= d_11 * e_12;
    d_02 *= e_22;
    d_12 *= e_22;
    D[0 + bs * 2] = d_02;
    if (km >= 2)
      D[1 + bs * 2] = d_12;
    if (kn < 4)
      return;
    e_03 = E[0 + bs * 3];
    e_13 = E[1 + bs * 3];
    e_23 = E[2 + bs * 3];
    e_33 = inv_diag_E[3];
    d_03 -= d_00 * e_03;
    d_13 -= d_10 * e_03;
    d_03 -= d_01 * e_13;
    d_13 -= d_11 * e_13;
    d_03 -= d_02 * e_23;
    d_13 -= d_12 * e_23;
    d_03 *= e_33;
    d_13 *= e_33;
    D[0 + bs * 3] = d_03;
    if (km >= 2)
      D[1 + bs * 3] = d_13;
  } else {
    e_00 = 1.0 / E[0 + bs * 0];
    d_00 *= e_00;
    d_10 *= e_00;
    D[0 + bs * 0] = d_00;
    if (km >= 2)
      D[1 + bs * 0] = d_10;
    e_01 = E[0 + bs * 1];
    e_11 = 1.0 / E[1 + bs * 1];
    d_01 -= d_00 * e_01;
    d_11 -= d_10 * e_01;
    d_01 *= e_11;
    d_11 *= e_11;
    D[0 + bs * 1] = d_01;
    if (km >= 2)
      D[1 + bs * 1] = d_11;
    e_02 = E[0 + bs * 2];
    e_12 = E[1 + bs * 2];
    e_22 = 1.0 / E[2 + bs * 2];
    d_02 -= d_00 * e_02;
    d_12 -= d_10 * e_02;
    d_02 -= d_01 * e_12;
    d_12 -= d_11 * e_12;
    d_02 *= e_22;
    d_12 *= e_22;
    D[0 + bs * 2] = d_02;
    if (km >= 2)
      D[1 + bs * 2] = d_12;
    if (kn < 4)
      return;
    e_03 = E[0 + bs * 3];
    e_13 = E[1 + bs * 3];
    e_23 = E[2 + bs * 3];
    e_33 = 1.0 / E[2 + bs * 3];
    d_03 -= d_00 * e_03;
    d_13 -= d_10 * e_03;
    d_03 -= d_01 * e_13;
    d_13 -= d_11 * e_13;
    d_03 -= d_02 * e_23;
    d_13 -= d_12 * e_23;
    d_03 *= e_33;
    d_13 *= e_33;
    D[0 + bs * 3] = d_03;
    if (km >= 2)
      D[1 + bs * 3] = d_13;
  }
  return;
}
```