user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<kernel_dtrinv_4x2_lib4>:
  endbr64
  movsd  (%rsi),%xmm1
  movsd  (%rdx),%xmm2
  pxor   %xmm6,%xmm6
  mov    %rsi,%rax
  movapd %xmm6,%xmm0
  movapd %xmm6,%xmm14
  movsd  0x28(%rdx),%xmm5
  movsd  0x20(%rdx),%xmm4
  mulsd  %xmm1,%xmm2
  movapd %xmm6,%xmm15
  mov    %rcx,%r10
  movsd  0x48(%rsi),%xmm12
  mulsd  0x8(%rdx),%xmm1
  movapd %xmm6,%xmm13
  movupd 0x20(%rdx),%xmm3
  sub    $0xffffffffffffff80,%rax
  movupd 0x60(%rdx),%xmm8
  movupd 0x70(%rsi),%xmm9
  lea    0x80(%rdx),%rcx
  shufpd $0x1,%xmm3,%xmm3
  movupd 0x60(%rsi),%xmm7
  movsd  0x48(%rdx),%xmm11
  subsd  %xmm2,%xmm0
  movsd  0x20(%rsi),%xmm2
  subsd  %xmm1,%xmm14
  movsd  0x28(%rsi),%xmm1
  movapd %xmm2,%xmm10
  mulsd  %xmm4,%xmm10
  mulsd  %xmm1,%xmm4
  mulsd  %xmm5,%xmm1
  mulsd  %xmm5,%xmm2
  movupd 0x40(%rdx),%xmm5
  subsd  %xmm10,%xmm0
  movapd %xmm14,%xmm10
  shufpd $0x1,%xmm5,%xmm5
  subsd  %xmm4,%xmm15
  movsd  0x40(%rsi),%xmm4
  subsd  %xmm1,%xmm13
  movsd  0x40(%rdx),%xmm1
  subsd  %xmm2,%xmm10
  movapd %xmm8,%xmm2
  mulsd  %xmm1,%xmm4
  unpcklpd %xmm8,%xmm2
  movapd %xmm2,%xmm14
  mulpd  %xmm9,%xmm2
  mulpd  %xmm7,%xmm14
  subsd  %xmm4,%xmm0
  movapd %xmm12,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  0x50(%rsi),%xmm1
  mulsd  %xmm11,%xmm12
  subsd  %xmm4,%xmm15
  subsd  %xmm12,%xmm13
  unpcklpd %xmm15,%xmm0
  movupd (%rsi),%xmm15
  movapd %xmm0,%xmm4
  movapd %xmm6,%xmm0
  subsd  %xmm1,%xmm0
  movupd (%rdx),%xmm1
  unpcklpd %xmm15,%xmm15
  subpd  %xmm14,%xmm4
  movapd %xmm8,%xmm14
  shufpd $0x1,%xmm1,%xmm1
  mulpd  %xmm1,%xmm15
  shufpd $0x1,%xmm8,%xmm14
  unpckhpd %xmm8,%xmm8
  movq   %xmm0,%xmm0
  subpd  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm1
  subpd  %xmm15,%xmm1
  movupd 0x20(%rsi),%xmm15
  unpcklpd %xmm15,%xmm15
  mulpd  %xmm3,%xmm15
  subpd  %xmm15,%xmm1
  movupd 0x40(%rsi),%xmm15
  unpcklpd %xmm15,%xmm15
  mulpd  %xmm5,%xmm15
  subpd  %xmm15,%xmm1
  movapd %xmm7,%xmm15
  unpcklpd %xmm7,%xmm15
  mulpd  %xmm14,%xmm15
  subpd  %xmm15,%xmm1
  movupd 0x20(%rsi),%xmm15
  unpckhpd %xmm15,%xmm15
  mulpd  %xmm3,%xmm15
  movapd %xmm2,%xmm3
  subpd  %xmm15,%xmm3
  movupd 0x40(%rsi),%xmm15
  unpckhpd %xmm15,%xmm15
  mulpd  %xmm5,%xmm15
  subpd  %xmm15,%xmm3
  movapd %xmm7,%xmm15
  unpckhpd %xmm7,%xmm15
  mulpd  %xmm14,%xmm15
  mulpd  %xmm8,%xmm7
  mulpd  %xmm9,%xmm8
  subpd  %xmm15,%xmm3
  movupd 0x50(%rsi),%xmm15
  unpcklpd %xmm15,%xmm15
  mulpd  %xmm5,%xmm15
  movapd %xmm2,%xmm5
  subpd  %xmm15,%xmm5
  movapd %xmm9,%xmm15
  unpcklpd %xmm9,%xmm15
  mulpd  %xmm14,%xmm15
  subpd  %xmm15,%xmm5
  movapd %xmm9,%xmm15
  unpckhpd %xmm9,%xmm15
  mulpd  %xmm14,%xmm15
  subpd  %xmm15,%xmm2
  movsd  0x40(%rsi),%xmm15
  mulsd  %xmm11,%xmm15
  subsd  %xmm15,%xmm10
  movapd %xmm10,%xmm12
  movsd  0x50(%rsi),%xmm10
  unpcklpd %xmm13,%xmm12
  mulsd  %xmm11,%xmm10
  subpd  %xmm7,%xmm12
  movaps %xmm12,-0x58(%rsp)
  subsd  %xmm10,%xmm6
  movq   %xmm6,%xmm6
  subpd  %xmm8,%xmm6
  movaps %xmm6,-0x48(%rsp)
  cmp    $0x7,%edi
  jle    L24
  sub    $0x8,%edi
  mov    %edi,%r9d
  shr    $0x2,%r9d
  cmp    $0x3,%edi
  jbe    L5
  mov    %rcx,%rsi
  mov    %rax,%rdx
  xor    %edi,%edi
  nopw   0x0(%rax,%rax,1)
L13:
  movupd 0x10(%rdx),%xmm0
  movupd (%rsi),%xmm8
  add    $0x1,%edi
  sub    $0xffffffffffffff80,%rsi
  movupd -0x60(%rsi),%xmm7
  movupd -0x40(%rsi),%xmm6
  sub    $0xffffffffffffff80,%rdx
  unpckhpd %xmm0,%xmm0
  shufpd $0x1,%xmm8,%xmm8
  movupd -0x20(%rsi),%xmm4
  mulpd  %xmm8,%xmm0
  shufpd $0x1,%xmm7,%xmm7
  shufpd $0x1,%xmm6,%xmm6
  shufpd $0x1,%xmm4,%xmm4
  subpd  %xmm0,%xmm2
  movupd -0x50(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x30(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x10(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  subpd  %xmm0,%xmm2
  movupd -0x70(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm8,%xmm0
  subpd  %xmm0,%xmm5
  movupd -0x50(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm5
  movupd -0x30(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm5
  movupd -0x10(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  subpd  %xmm0,%xmm5
  movupd -0x80(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm8,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x60(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x40(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x20(%rdx),%xmm0
  unpckhpd %xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  subpd  %xmm0,%xmm3
  movupd -0x80(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm8,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x60(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm7,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x40(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm6,%xmm0
  subpd  %xmm0,%xmm1
  movupd -0x20(%rdx),%xmm0
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm4,%xmm0
  subpd  %xmm0,%xmm1
  cmp    %edi,%r9d
  ja     L13
  movapd %xmm5,%xmm7
  shl    $0x7,%r9
  unpckhpd %xmm2,%xmm5
  unpcklpd %xmm2,%xmm7
  movapd %xmm5,%xmm0
  add    %r9,%rax
  add    %r9,%rcx
  movaps %xmm7,-0x48(%rsp)
  movapd %xmm1,%xmm7
  unpckhpd %xmm3,%xmm1
  unpcklpd %xmm3,%xmm7
  movapd %xmm1,%xmm4
  movaps %xmm7,-0x58(%rsp)
L5:
  movupd (%rcx),%xmm3
  movupd 0x50(%rax),%xmm15
  movupd (%rax),%xmm10
  movupd 0x20(%rcx),%xmm5
  movapd %xmm3,%xmm14
  movaps %xmm15,-0x18(%rsp)
  movupd 0x40(%rcx),%xmm2
  movupd 0x20(%rax),%xmm9
  unpcklpd %xmm3,%xmm14
  movapd %xmm5,%xmm13
  movupd 0x40(%rax),%xmm8
  movupd 0x60(%rcx),%xmm1
  movapd %xmm14,%xmm15
  unpcklpd %xmm5,%xmm13
  movapd %xmm2,%xmm12
  movupd 0x10(%rax),%xmm6
  mulpd  %xmm10,%xmm15
  unpcklpd %xmm2,%xmm12
  movupd 0x30(%rax),%xmm7
  movapd %xmm1,%xmm11
  mulpd  %xmm6,%xmm14
  unpcklpd %xmm1,%xmm11
  unpckhpd %xmm5,%xmm5
  movaps %xmm7,-0x28(%rsp)
  unpckhpd %xmm3,%xmm3
  unpckhpd %xmm2,%xmm2
  unpckhpd %xmm1,%xmm1
  movupd 0x60(%rax),%xmm7
  movaps %xmm5,-0x38(%rsp)
  movupd 0x70(%rax),%xmm5
  mulpd  %xmm3,%xmm6
  mulpd  %xmm3,%xmm10
  movapd -0x48(%rsp),%xmm3
  subpd  %xmm15,%xmm4
  movapd %xmm9,%xmm15
  mulpd  %xmm13,%xmm15
  subpd  %xmm14,%xmm0
  movapd -0x28(%rsp),%xmm14
  mulpd  %xmm14,%xmm13
  subpd  %xmm6,%xmm3
  movapd %xmm14,%xmm6
  subpd  %xmm15,%xmm4
  movapd %xmm8,%xmm15
  mulpd  %xmm12,%xmm15
  subpd  %xmm13,%xmm0
  movapd -0x38(%rsp),%xmm13
  mulpd  %xmm2,%xmm8
  mulpd  %xmm13,%xmm6
  subpd  %xmm15,%xmm4
  movapd %xmm11,%xmm15
  mulpd  %xmm7,%xmm15
  mulpd  %xmm5,%xmm11
  subpd  %xmm6,%xmm3
  mulpd  %xmm1,%xmm7
  mulpd  %xmm1,%xmm5
  subpd  %xmm15,%xmm4
  movapd -0x18(%rsp),%xmm15
  mulpd  %xmm15,%xmm12
  movapd %xmm15,%xmm6
  mulpd  %xmm2,%xmm6
  movapd %xmm3,%xmm2
  subpd  %xmm12,%xmm0
  subpd  %xmm6,%xmm2
  subpd  %xmm11,%xmm0
  movapd -0x58(%rsp),%xmm11
  subpd  %xmm5,%xmm2
  subpd  %xmm10,%xmm11
  movapd %xmm9,%xmm10
  mulpd  %xmm13,%xmm10
  movaps %xmm2,-0x48(%rsp)
  movapd %xmm11,%xmm9
  subpd  %xmm10,%xmm9
  subpd  %xmm8,%xmm9
  subpd  %xmm7,%xmm9
  movaps %xmm9,-0x58(%rsp)
L24:
  movupd (%r8),%xmm1
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm1,%xmm4
  mulpd  %xmm1,%xmm0
  movapd -0x58(%rsp),%xmm1
  movups %xmm4,(%r10)
  movups %xmm0,0x10(%r10)
  movupd (%r8),%xmm2
  movsd  0x10(%r8),%xmm3
  unpckhpd %xmm2,%xmm2
  unpcklpd %xmm3,%xmm3
  mulpd  %xmm2,%xmm4
  mulpd  %xmm2,%xmm0
  subpd  %xmm4,%xmm1
  mulpd  %xmm3,%xmm1
  movups %xmm1,0x20(%r10)
  movapd -0x48(%rsp),%xmm1
  subpd  %xmm0,%xmm1
  mulpd  %xmm3,%xmm1
  movups %xmm1,0x30(%r10)
  ret
```

assistant: ```c
void kernel_dtrinv_4x2_lib4(int kmax, double *A, double *B, double *C, double *fact) {
  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;
  a_0 = A[0 + bs * 0];
  b_0 = B[0 + bs * 0];
  b_1 = B[1 + bs * 0];
  c_00 -= a_0 * b_0;
  c_01 -= a_0 * b_1;
  a_0 = A[0 + bs * 1];
  a_1 = A[1 + bs * 1];
  b_0 = B[0 + bs * 1];
  b_1 = B[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 = A[0 + bs * 2];
  a_1 = A[1 + bs * 2];
  a_2 = A[2 + bs * 2];
  b_0 = B[0 + bs * 2];
  b_1 = B[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 = 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[0 + bs * 3];
  b_1 = B[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;
  A += 16;
  B += 16;
  k = 4;
  for (; 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[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 = 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[0 + bs * 1];
    b_1 = B[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 = 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[0 + bs * 2];
    b_1 = B[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 = 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[0 + bs * 3];
    b_1 = B[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;
    A += 16;
    B += 16;
  }
  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;
  C[0 + bs * 0] = c_00;
  C[1 + bs * 0] = c_10;
  C[2 + bs * 0] = c_20;
  C[3 + bs * 0] = c_30;
  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;
  C[0 + bs * 1] = c_01;
  C[1 + bs * 1] = c_11;
  C[2 + bs * 1] = c_21;
  C[3 + bs * 1] = c_31;
}
```