user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<kernel_dgetrf_nn_2x4_vs_lib4>:
  endbr64
  push   %r13
  mov    %esi,%r10d
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x30(%rsp),%rbp
  mov    0x38(%rsp),%rbx
  mov    0x40(%rsp),%r12
  test   %edx,%edx
  jle    L19
  mov    %edx,%r11d
  mov    %rcx,%rsi
  cmp    $0x3,%edx
  jle    L131
  shl    $0x2,%r9d
  lea    -0x4(%rdx),%eax
  movslq %r9d,%rcx
  mov    %eax,%edx
  shl    $0x3,%rcx
  shr    $0x2,%edx
  cmp    $0x3,%eax
  jbe    L94
  pxor   %xmm5,%xmm5
  mov    %rsi,%r9
  mov    %r8,%rax
  xor    %r13d,%r13d
  movaps %xmm5,-0x48(%rsp)
  movapd %xmm5,%xmm4
  movaps %xmm5,-0x58(%rsp)
  movaps %xmm5,-0x68(%rsp)
  nop
L23:
  movupd (%r9),%xmm14
  movupd (%r9),%xmm15
  add    $0x1,%r13d
  sub    $0xffffffffffffff80,%r9
  movupd 0x60(%rax),%xmm0
  movupd -0x60(%r9),%xmm7
  unpckhpd %xmm14,%xmm14
  unpcklpd %xmm15,%xmm15
  movupd -0x60(%r9),%xmm13
  movupd 0x40(%rax),%xmm10
  movhpd 0x40(%rax),%xmm0
  movaps %xmm15,-0x28(%rsp)
  unpcklpd %xmm7,%xmm7
  movapd %xmm14,%xmm15
  mulpd  %xmm0,%xmm15
  movaps %xmm7,-0x18(%rsp)
  unpckhpd %xmm13,%xmm13
  movapd -0x68(%rsp),%xmm7
  movlpd 0x68(%rax),%xmm10
  movupd -0x40(%r9),%xmm12
  movupd 0x70(%rax),%xmm3
  movupd 0x50(%rax),%xmm9
  unpckhpd %xmm12,%xmm12
  movlpd 0x78(%rax),%xmm9
  movupd -0x20(%r9),%xmm11
  movhpd 0x50(%rax),%xmm3
  movupd 0x20(%rax),%xmm6
  movupd (%rax),%xmm8
  subpd  %xmm15,%xmm7
  movapd %xmm13,%xmm15
  unpckhpd %xmm11,%xmm11
  movlpd 0x28(%rax),%xmm8
  mulpd  %xmm10,%xmm15
  movhpd (%rax),%xmm6
  movupd 0x30(%rax),%xmm1
  movupd 0x10(%rax),%xmm5
  mulpd  %xmm6,%xmm14
  movlpd 0x38(%rax),%xmm5
  movupd -0x40(%r9),%xmm2
  mulpd  %xmm8,%xmm13
  movhpd 0x10(%rax),%xmm1
  add    %rcx,%rax
  movaps %xmm5,-0x38(%rsp)
  movapd %xmm1,%xmm5
  movupd -0x20(%r9),%xmm1
  unpcklpd %xmm2,%xmm2
  subpd  %xmm15,%xmm7
  movapd %xmm12,%xmm15
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm3,%xmm15
  mulpd  %xmm5,%xmm12
  mulpd  %xmm2,%xmm3
  mulpd  %xmm5,%xmm2
  subpd  %xmm15,%xmm7
  movapd %xmm9,%xmm15
  mulpd  %xmm11,%xmm15
  mulpd  %xmm1,%xmm9
  subpd  %xmm15,%xmm7
  movaps %xmm7,-0x68(%rsp)
  movapd -0x58(%rsp),%xmm7
  subpd  %xmm14,%xmm7
  movapd -0x38(%rsp),%xmm14
  mulpd  %xmm14,%xmm11
  subpd  %xmm13,%xmm7
  mulpd  %xmm14,%xmm1
  subpd  %xmm12,%xmm7
  movapd %xmm7,%xmm12
  subpd  %xmm11,%xmm12
  movaps %xmm12,-0x58(%rsp)
  movapd -0x28(%rsp),%xmm15
  movapd -0x18(%rsp),%xmm7
  mulpd  %xmm15,%xmm0
  mulpd  %xmm7,%xmm10
  mulpd  %xmm7,%xmm8
  subpd  %xmm0,%xmm4
  movapd -0x48(%rsp),%xmm0
  subpd  %xmm10,%xmm4
  subpd  %xmm3,%xmm4
  movapd %xmm15,%xmm3
  mulpd  %xmm6,%xmm3
  subpd  %xmm9,%xmm4
  subpd  %xmm3,%xmm0
  subpd  %xmm8,%xmm0
  subpd  %xmm2,%xmm0
  subpd  %xmm1,%xmm0
  movaps %xmm0,-0x48(%rsp)
  cmp    %r13d,%edx
  ja     L23
  movapd -0x68(%rsp),%xmm6
  mov    %edx,%eax
  movapd %xmm4,%xmm8
  unpckhpd %xmm4,%xmm4
  mov    %rax,%r9
  imul   %rcx,%rax
  movapd %xmm12,%xmm2
  movapd %xmm6,%xmm5
  unpckhpd %xmm6,%xmm6
  shl    $0x7,%r9
  movapd %xmm4,%xmm7
  movapd %xmm6,%xmm9
  movapd %xmm12,%xmm6
  add    %rsi,%r9
  unpckhpd %xmm6,%xmm6
  add    %r8,%rax
  movapd %xmm6,%xmm1
  movapd %xmm0,%xmm6
  unpckhpd %xmm0,%xmm0
L130:
  movsd  0x8(%r9),%xmm10
  movsd  (%rax),%xmm13
  movsd  0x20(%rax),%xmm12
  movsd  0x40(%rax),%xmm11
  movapd %xmm13,%xmm14
  movsd  (%r9),%xmm3
  movsd  0x60(%rax),%xmm4
  mulsd  %xmm10,%xmm13
  mulsd  %xmm3,%xmm14
  subsd  %xmm13,%xmm1
  movapd %xmm12,%xmm13
  mulsd  %xmm10,%xmm12
  subsd  %xmm14,%xmm0
  mulsd  %xmm3,%xmm13
  subsd  %xmm12,%xmm2
  movapd %xmm11,%xmm12
  mulsd  %xmm3,%xmm12
  subsd  %xmm13,%xmm6
  movsd  0x8(%rax),%xmm13
  mulsd  %xmm4,%xmm3
  mulsd  %xmm10,%xmm4
  mulsd  %xmm10,%xmm11
  movsd  0x48(%rax),%xmm10
  subsd  %xmm12,%xmm7
  movsd  0x68(%rax),%xmm12
  subsd  %xmm3,%xmm8
  movsd  0x28(%r9),%xmm3
  subsd  %xmm4,%xmm5
  movsd  0x20(%r9),%xmm4
  subsd  %xmm11,%xmm9
  movsd  0x28(%rax),%xmm11
  movapd %xmm4,%xmm14
  mulsd  %xmm13,%xmm14
  mulsd  %xmm3,%xmm13
  subsd  %xmm14,%xmm0
  subsd  %xmm13,%xmm1
  movapd %xmm4,%xmm13
  mulsd  %xmm11,%xmm13
  mulsd  %xmm3,%xmm11
  subsd  %xmm13,%xmm6
  movsd  0x10(%rax),%xmm13
  subsd  %xmm11,%xmm2
  movapd %xmm4,%xmm11
  mulsd  %xmm12,%xmm4
  mulsd  %xmm10,%xmm11
  mulsd  %xmm3,%xmm10
  mulsd  %xmm12,%xmm3
  movsd  0x30(%rax),%xmm12
  subsd  %xmm4,%xmm8
  movsd  0x40(%r9),%xmm4
  subsd  %xmm11,%xmm7
  movsd  0x50(%rax),%xmm11
  movapd %xmm4,%xmm14
  subsd  %xmm10,%xmm9
  movsd  0x70(%rax),%xmm10
  subsd  %xmm3,%xmm5
  movsd  0x48(%r9),%xmm3
  mulsd  %xmm13,%xmm14
  mulsd  %xmm3,%xmm13
  subsd  %xmm14,%xmm0
  subsd  %xmm13,%xmm1
  movapd %xmm4,%xmm13
  mulsd  %xmm12,%xmm13
  mulsd  %xmm3,%xmm12
  subsd  %xmm13,%xmm6
  movsd  0x18(%rax),%xmm13
  subsd  %xmm12,%xmm2
  movapd %xmm4,%xmm12
  mulsd  %xmm10,%xmm4
  mulsd  %xmm11,%xmm12
  mulsd  %xmm3,%xmm11
  mulsd  %xmm10,%xmm3
  movsd  0x58(%rax),%xmm10
  subsd  %xmm4,%xmm8
  movsd  0x60(%r9),%xmm4
  subsd  %xmm12,%xmm7
  movsd  0x78(%rax),%xmm12
  movapd %xmm4,%xmm14
  subsd  %xmm11,%xmm9
  movsd  0x38(%rax),%xmm11
  lea    0x1(%rdx),%eax
  mulsd  %xmm13,%xmm14
  imul   %rax,%rcx
  subsd  %xmm3,%xmm5
  mov    %rax,%rdx
  movsd  0x68(%r9),%xmm3
  mov    %rax,%r9
  shl    $0x2,%edx
  shl    $0x7,%r9
  mulsd  %xmm3,%xmm13
  add    %r9,%rsi
  add    %rcx,%r8
  subsd  %xmm14,%xmm0
  subsd  %xmm13,%xmm1
  movapd %xmm4,%xmm13
  mulsd  %xmm11,%xmm13
  mulsd  %xmm3,%xmm11
  subsd  %xmm13,%xmm6
  subsd  %xmm11,%xmm2
  movapd %xmm4,%xmm11
  mulsd  %xmm10,%xmm11
  mulsd  %xmm12,%xmm4
  mulsd  %xmm3,%xmm10
  mulsd  %xmm12,%xmm3
  subsd  %xmm11,%xmm7
  subsd  %xmm4,%xmm8
  subsd  %xmm10,%xmm9
  subsd  %xmm3,%xmm5
  cmp    %edx,%r11d
  jle    L83
L91:
  mov    %r11d,%ecx
  mov    $0x1,%eax
  sub    %edx,%ecx
  cmp    %r11d,%edx
  cmovl  %ecx,%eax
  sub    $0x1,%ecx
  cmp    $0x1,%ecx
  jbe    L6
  cmp    %r11d,%edx
  jge    L6
  movupd (%rsi),%xmm3
  movupd 0x20(%rsi),%xmm4
  sub    $0x1,%eax
  movupd 0x30(%rsi),%xmm10
  movlpd 0x28(%rsi),%xmm10
  and    $0xfffffffe,%eax
  movhpd 0x30(%rsi),%xmm4
  movhpd 0x10(%rsi),%xmm3
  mov    %eax,%ecx
  add    %eax,%edx
  unpcklpd %xmm4,%xmm3
  movupd 0x10(%rsi),%xmm4
  movlpd 0x8(%rsi),%xmm4
  mov    %rcx,%r9
  movupd 0x60(%r8),%xmm15
  shl    $0x5,%r9
  unpcklpd %xmm10,%xmm4
  movupd (%r8),%xmm10
  add    %r9,%rsi
  mulpd  %xmm3,%xmm10
  subsd  %xmm10,%xmm0
  unpckhpd %xmm10,%xmm10
  subsd  %xmm10,%xmm0
  movupd (%r8),%xmm10
  mulpd  %xmm4,%xmm10
  subsd  %xmm10,%xmm1
  unpckhpd %xmm10,%xmm10
  subsd  %xmm10,%xmm1
  movupd 0x20(%r8),%xmm10
  mulpd  %xmm3,%xmm10
  subsd  %xmm10,%xmm6
  unpckhpd %xmm10,%xmm10
  subsd  %xmm10,%xmm6
  movupd 0x20(%r8),%xmm10
  mulpd  %xmm4,%xmm10
  subsd  %xmm10,%xmm2
  unpckhpd %xmm10,%xmm10
  subsd  %xmm10,%xmm2
  movupd 0x40(%r8),%xmm10
  mulpd  %xmm3,%xmm10
  mulpd  %xmm15,%xmm3
  subsd  %xmm10,%xmm7
  unpckhpd %xmm10,%xmm10
  subsd  %xmm3,%xmm8
  unpckhpd %xmm3,%xmm3
  subsd  %xmm10,%xmm7
  movupd 0x40(%r8),%xmm10
  lea    (%r8,%rcx,8),%r8
  subsd  %xmm3,%xmm8
  movapd %xmm15,%xmm3
  mulpd  %xmm4,%xmm10
  mulpd  %xmm4,%xmm3
  subsd  %xmm10,%xmm9
  unpckhpd %xmm10,%xmm10
  subsd  %xmm3,%xmm5
  unpckhpd %xmm3,%xmm3
  subsd  %xmm10,%xmm9
  subsd  %xmm3,%xmm5
L6:
  movsd  (%rsi),%xmm3
  movsd  0x8(%rsi),%xmm10
  add    $0x1,%edx
  movsd  (%r8),%xmm13
  movsd  0x20(%r8),%xmm12
  movapd %xmm3,%xmm14
  movsd  0x40(%r8),%xmm11
  movsd  0x60(%r8),%xmm4
  mulsd  %xmm13,%xmm14
  mulsd  %xmm10,%xmm13
  subsd  %xmm14,%xmm0
  subsd  %xmm13,%xmm1
  movapd %xmm3,%xmm13
  mulsd  %xmm12,%xmm13
  mulsd  %xmm10,%xmm12
  subsd  %xmm13,%xmm6
  subsd  %xmm12,%xmm2
  movapd %xmm11,%xmm12
  mulsd  %xmm3,%xmm12
  mulsd  %xmm10,%xmm11
  mulsd  %xmm4,%xmm3
  mulsd  %xmm10,%xmm4
  subsd  %xmm12,%xmm7
  subsd  %xmm11,%xmm9
  subsd  %xmm3,%xmm8
  subsd  %xmm4,%xmm5
  cmp    %edx,%r11d
  jle    L83
  movsd  0x28(%rsi),%xmm10
  movsd  0x8(%r8),%xmm13
  movsd  0x28(%r8),%xmm12
  movsd  0x48(%r8),%xmm11
  movapd %xmm13,%xmm14
  movsd  0x20(%rsi),%xmm3
  movsd  0x68(%r8),%xmm4
  mulsd  %xmm10,%xmm13
  mulsd  %xmm3,%xmm14
  subsd  %xmm13,%xmm1
  movapd %xmm12,%xmm13
  mulsd  %xmm10,%xmm12
  subsd  %xmm14,%xmm0
  mulsd  %xmm3,%xmm13
  subsd  %xmm12,%xmm2
  movapd %xmm11,%xmm12
  mulsd  %xmm3,%xmm12
  subsd  %xmm13,%xmm6
  mulsd  %xmm4,%xmm3
  mulsd  %xmm10,%xmm11
  mulsd  %xmm10,%xmm4
  subsd  %xmm12,%xmm7
  subsd  %xmm3,%xmm8
  subsd  %xmm11,%xmm9
  subsd  %xmm4,%xmm5
L83:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  je     L33
  addsd  0x0(%rbp),%xmm0
  addsd  0x8(%rbp),%xmm1
  addsd  0x20(%rbp),%xmm6
  addsd  0x28(%rbp),%xmm2
  addsd  0x40(%rbp),%xmm7
  addsd  0x48(%rbp),%xmm9
  addsd  0x60(%rbp),%xmm8
  addsd  0x68(%rbp),%xmm5
L33:
  movsd  D3(%rip),%xmm3
  movapd %xmm3,%xmm4
  divsd  %xmm0,%xmm4
  mulsd  %xmm4,%xmm1
  movsd  %xmm4,(%r12)
  movsd  %xmm0,(%rbx)
  movapd %xmm6,%xmm0
  mulsd  %xmm1,%xmm0
  subsd  %xmm0,%xmm2
  movapd %xmm6,%xmm0
  divsd  %xmm2,%xmm3
  unpcklpd %xmm2,%xmm0
  cmp    $0x1,%edi
  jle    L81
  movsd  %xmm1,0x8(%rbx)
  movsd  %xmm3,0x8(%r12)
  movups %xmm0,0x20(%rbx)
  movapd %xmm7,%xmm0
  mulsd  %xmm1,%xmm0
  subsd  %xmm0,%xmm9
  unpcklpd %xmm9,%xmm7
  movups %xmm7,0x40(%rbx)
  cmp    $0x3,%r10d
  jle    L45
  mulsd  %xmm8,%xmm1
  subsd  %xmm1,%xmm5
  unpcklpd %xmm5,%xmm8
  movups %xmm8,0x60(%rbx)
L45:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L81:
  movsd  %xmm3,0x8(%r12)
  movsd  %xmm6,0x20(%rbx)
  movsd  %xmm7,0x40(%rbx)
  cmp    $0x3,%r10d
  jle    L45
  movsd  %xmm8,0x60(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L19:
  pxor   %xmm5,%xmm5
  movapd %xmm5,%xmm9
  movapd %xmm5,%xmm2
  movapd %xmm5,%xmm1
  movapd %xmm5,%xmm8
  movapd %xmm5,%xmm7
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm0
  jmp    L83
  nopw   0x0(%rax,%rax,1)
L131:
  pxor   %xmm5,%xmm5
  xor    %edx,%edx
  movapd %xmm5,%xmm9
  movapd %xmm5,%xmm2
  movapd %xmm5,%xmm1
  movapd %xmm5,%xmm8
  movapd %xmm5,%xmm7
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm0
  jmp    L91
L94:
  pxor   %xmm5,%xmm5
  mov    %r8,%rax
  mov    %rsi,%r9
  movapd %xmm5,%xmm9
  movapd %xmm5,%xmm2
  movapd %xmm5,%xmm1
  movapd %xmm5,%xmm8
  movapd %xmm5,%xmm7
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm0
  jmp    L130
```

tool_calls: name: read_data
arguments: data_label: D3
data_type: f64

tool: D3: 1

assistant: ```c
void kernel_dgetrf_nn_2x4_vs_lib4(int km, int kn, int kmax, double *A, double *B, int sdb, int alg, double *C, double *D, double *inv_diag_D) {
  const int bs = 4;
  int k;
  double tmp, a_0, a_1, b_0, b_1, b_2, b_3, 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];
  }
  tmp = 1.0 / d_00;
  d_10 *= tmp;
  inv_diag_D[0] = tmp;
  D[0 + bs * 0] = d_00;
  if (km >= 2)
    D[1 + bs * 0] = d_10;
  d_11 -= d_10 * d_01;
  tmp = 1.0 / d_11;
  inv_diag_D[1] = tmp;
  D[0 + bs * 1] = d_01;
  if (km >= 2)
    D[1 + bs * 1] = d_11;
  d_12 -= d_10 * d_02;
  D[0 + bs * 2] = d_02;
  if (km >= 2)
    D[1 + bs * 2] = d_12;
  if (kn < 4)
    return;
  d_13 -= d_10 * d_03;
  D[0 + bs * 3] = d_03;
  if (km >= 2)
    D[1 + bs * 3] = d_13;
  return;
}
```