user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<kernel_dgemv_n_8_vs_lib4>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x30(%rsp),%rbx
  mov    0x38(%rsp),%ebp
  test   %esi,%esi
  jle    L114
  mov    %edi,%r11d
  mov    %esi,%r10d
  mov    %rdx,%rax
  shl    $0x2,%ecx
  movslq %ecx,%rcx
  lea    (%rdx,%rcx,8),%rdi
  cmp    $0x3,%esi
  jle    L76
  lea    -0x4(%rsi),%r13d
  shr    $0x2,%r13d
  lea    0x1(%r13),%r12d
  mov    %r12d,%r12d
  mov    %r12,%r14
  shl    $0x7,%r14
  lea    (%rdx,%r14,1),%rsi
  mov    %rdi,%rdx
  mov    %r8,%rcx
  pxor   %xmm14,%xmm14
  movapd %xmm14,%xmm10
  movapd %xmm14,%xmm9
  movapd %xmm14,%xmm4
  movapd %xmm14,%xmm5
  movapd %xmm14,%xmm6
  movapd %xmm14,%xmm7
  movapd %xmm14,%xmm8
L54:
  movsd  (%rcx),%xmm2
  movsd  0x8(%rcx),%xmm1
  movsd  0x10(%rcx),%xmm0
  movsd  0x18(%rcx),%xmm3
  movapd %xmm2,%xmm11
  mulsd  (%rax),%xmm11
  addsd  %xmm8,%xmm11
  movapd %xmm2,%xmm8
  mulsd  0x8(%rax),%xmm8
  addsd  %xmm7,%xmm8
  movapd %xmm2,%xmm12
  mulsd  0x10(%rax),%xmm12
  addsd  %xmm6,%xmm12
  movapd %xmm2,%xmm13
  mulsd  0x18(%rax),%xmm13
  addsd  %xmm5,%xmm13
  movapd %xmm2,%xmm7
  mulsd  (%rdx),%xmm7
  addsd  %xmm4,%xmm7
  movapd %xmm2,%xmm6
  mulsd  0x8(%rdx),%xmm6
  addsd  %xmm9,%xmm6
  movapd %xmm2,%xmm5
  mulsd  0x10(%rdx),%xmm5
  addsd  %xmm10,%xmm5
  mulsd  0x18(%rdx),%xmm2
  addsd  %xmm14,%xmm2
  movapd %xmm1,%xmm4
  mulsd  0x20(%rax),%xmm4
  addsd  %xmm11,%xmm4
  movapd %xmm1,%xmm10
  mulsd  0x28(%rax),%xmm10
  addsd  %xmm8,%xmm10
  movapd %xmm1,%xmm11
  mulsd  0x30(%rax),%xmm11
  addsd  %xmm12,%xmm11
  movapd %xmm1,%xmm9
  mulsd  0x38(%rax),%xmm9
  addsd  %xmm13,%xmm9
  movapd %xmm1,%xmm8
  mulsd  0x20(%rdx),%xmm8
  addsd  %xmm7,%xmm8
  movapd %xmm1,%xmm7
  mulsd  0x28(%rdx),%xmm7
  addsd  %xmm6,%xmm7
  movapd %xmm1,%xmm6
  mulsd  0x30(%rdx),%xmm6
  addsd  %xmm5,%xmm6
  mulsd  0x38(%rdx),%xmm1
  addsd  %xmm2,%xmm1
  movapd %xmm0,%xmm13
  mulsd  0x40(%rax),%xmm13
  addsd  %xmm4,%xmm13
  movapd %xmm0,%xmm12
  mulsd  0x48(%rax),%xmm12
  addsd  %xmm10,%xmm12
  movapd %xmm0,%xmm5
  mulsd  0x50(%rax),%xmm5
  addsd  %xmm11,%xmm5
  movapd %xmm0,%xmm4
  mulsd  0x58(%rax),%xmm4
  addsd  %xmm9,%xmm4
  movapd %xmm0,%xmm9
  mulsd  0x40(%rdx),%xmm9
  addsd  %xmm8,%xmm9
  movapd %xmm0,%xmm10
  mulsd  0x48(%rdx),%xmm10
  addsd  %xmm7,%xmm10
  movapd %xmm0,%xmm2
  mulsd  0x50(%rdx),%xmm2
  addsd  %xmm6,%xmm2
  mulsd  0x58(%rdx),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm3,%xmm8
  mulsd  0x60(%rax),%xmm8
  addsd  %xmm13,%xmm8
  movapd %xmm3,%xmm7
  mulsd  0x68(%rax),%xmm7
  addsd  %xmm12,%xmm7
  movapd %xmm3,%xmm6
  mulsd  0x70(%rax),%xmm6
  addsd  %xmm5,%xmm6
  movapd %xmm3,%xmm5
  mulsd  0x78(%rax),%xmm5
  addsd  %xmm4,%xmm5
  movapd %xmm3,%xmm4
  mulsd  0x60(%rdx),%xmm4
  addsd  %xmm9,%xmm4
  movapd %xmm3,%xmm9
  mulsd  0x68(%rdx),%xmm9
  addsd  %xmm10,%xmm9
  movapd %xmm3,%xmm10
  mulsd  0x70(%rdx),%xmm10
  addsd  %xmm2,%xmm10
  mulsd  0x78(%rdx),%xmm3
  addsd  %xmm0,%xmm3
  movapd %xmm3,%xmm14
  sub    $0xffffffffffffff80,%rax
  sub    $0xffffffffffffff80,%rdx
  add    $0x20,%rcx
  cmp    %rsi,%rax
  jne    L54
  add    %r14,%rdi
  shl    $0x5,%r12
  add    %r12,%r8
  lea    0x4(,%r13,4),%edx
  cmp    %edx,%r10d
  jle    L14
L43:
  mov    $0x0,%eax
L67:
  movsd  (%r8,%rax,1),%xmm0
  movapd %xmm0,%xmm1
  mulsd  (%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm8
  movapd %xmm0,%xmm1
  mulsd  0x8(%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm7
  movapd %xmm0,%xmm1
  mulsd  0x10(%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm6
  movapd %xmm0,%xmm1
  mulsd  0x18(%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm5
  movapd %xmm0,%xmm1
  mulsd  (%rdi,%rax,4),%xmm1
  addsd  %xmm1,%xmm4
  movapd %xmm0,%xmm1
  mulsd  0x8(%rdi,%rax,4),%xmm1
  addsd  %xmm1,%xmm9
  movapd %xmm0,%xmm1
  mulsd  0x10(%rdi,%rax,4),%xmm1
  addsd  %xmm1,%xmm10
  mulsd  0x18(%rdi,%rax,4),%xmm0
  addsd  %xmm0,%xmm14
  add    $0x1,%edx
  add    $0x8,%rax
  cmp    %edx,%r10d
  jg     L67
L14:
  test   %ebp,%ebp
  je     L96
  cmp    $0x1,%ebp
  je     L107
  movsd  (%r9),%xmm0
  subsd  %xmm8,%xmm0
  movapd %xmm0,%xmm8
  movsd  0x8(%r9),%xmm0
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm7
  movsd  0x10(%r9),%xmm0
  subsd  %xmm6,%xmm0
  movapd %xmm0,%xmm6
  movsd  0x18(%r9),%xmm0
  subsd  %xmm5,%xmm0
  movapd %xmm0,%xmm5
  movsd  0x20(%r9),%xmm0
  subsd  %xmm4,%xmm0
  movapd %xmm0,%xmm4
  movsd  0x28(%r9),%xmm0
  subsd  %xmm9,%xmm0
  movapd %xmm0,%xmm9
  movsd  0x30(%r9),%xmm0
  subsd  %xmm10,%xmm0
  movapd %xmm0,%xmm10
  movsd  0x38(%r9),%xmm0
  subsd  %xmm14,%xmm0
  movapd %xmm0,%xmm14
L96:
  movsd  %xmm8,(%rbx)
  movsd  %xmm7,0x8(%rbx)
  movsd  %xmm6,0x10(%rbx)
  movsd  %xmm5,0x18(%rbx)
  cmp    $0x7,%r11d
  jle    L42
  movsd  %xmm4,0x20(%rbx)
  movsd  %xmm9,0x28(%rbx)
  movsd  %xmm10,0x30(%rbx)
  movsd  %xmm14,0x38(%rbx)
L114:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L76:
  mov    %rdx,%rsi
  pxor   %xmm14,%xmm14
  movapd %xmm14,%xmm10
  movapd %xmm14,%xmm9
  movapd %xmm14,%xmm4
  movapd %xmm14,%xmm5
  movapd %xmm14,%xmm6
  movapd %xmm14,%xmm7
  movapd %xmm14,%xmm8
  mov    $0x0,%edx
  jmp    L43
L107:
  addsd  (%r9),%xmm8
  addsd  0x8(%r9),%xmm7
  addsd  0x10(%r9),%xmm6
  addsd  0x18(%r9),%xmm5
  addsd  0x20(%r9),%xmm4
  addsd  0x28(%r9),%xmm9
  addsd  0x30(%r9),%xmm10
  addsd  0x38(%r9),%xmm14
  jmp    L96
L42:
  movsd  %xmm4,0x20(%rbx)
  cmp    $0x5,%r11d
  jle    L114
  movsd  %xmm9,0x28(%rbx)
  cmp    $0x7,%r11d
  jne    L114
  movsd  %xmm10,0x30(%rbx)
  jmp    L114
```

assistant: ```c
void kernel_dgemv_n_8_vs_lib4(int km, int kmax, double *A0, int sda, double *x, double *y, double *z, int alg) {
  if (kmax <= 0)
    return;
  double *A1 = A0 + 4 * sda;
  const int lda = 4;
  int k;
  double x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0, y_2 = 0, y_3 = 0, y_4 = 0, y_5 = 0, y_6 = 0, y_7 = 0;
  k = 0;
  for (; k < kmax - 3; k += 4) {
    x_0 = x[0];
    x_1 = x[1];
    x_2 = x[2];
    x_3 = x[3];
    y_0 += A0[0 + lda * 0] * x_0;
    y_1 += A0[1 + lda * 0] * x_0;
    y_2 += A0[2 + lda * 0] * x_0;
    y_3 += A0[3 + lda * 0] * x_0;
    y_4 += A1[0 + lda * 0] * x_0;
    y_5 += A1[1 + lda * 0] * x_0;
    y_6 += A1[2 + lda * 0] * x_0;
    y_7 += A1[3 + lda * 0] * x_0;
    y_0 += A0[0 + lda * 1] * x_1;
    y_1 += A0[1 + lda * 1] * x_1;
    y_2 += A0[2 + lda * 1] * x_1;
    y_3 += A0[3 + lda * 1] * x_1;
    y_4 += A1[0 + lda * 1] * x_1;
    y_5 += A1[1 + lda * 1] * x_1;
    y_6 += A1[2 + lda * 1] * x_1;
    y_7 += A1[3 + lda * 1] * x_1;
    y_0 += A0[0 + lda * 2] * x_2;
    y_1 += A0[1 + lda * 2] * x_2;
    y_2 += A0[2 + lda * 2] * x_2;
    y_3 += A0[3 + lda * 2] * x_2;
    y_4 += A1[0 + lda * 2] * x_2;
    y_5 += A1[1 + lda * 2] * x_2;
    y_6 += A1[2 + lda * 2] * x_2;
    y_7 += A1[3 + lda * 2] * x_2;
    y_0 += A0[0 + lda * 3] * x_3;
    y_1 += A0[1 + lda * 3] * x_3;
    y_2 += A0[2 + lda * 3] * x_3;
    y_3 += A0[3 + lda * 3] * x_3;
    y_4 += A1[0 + lda * 3] * x_3;
    y_5 += A1[1 + lda * 3] * x_3;
    y_6 += A1[2 + lda * 3] * x_3;
    y_7 += A1[3 + lda * 3] * x_3;
    A0 += 4 * lda;
    A1 += 4 * lda;
    x += 4;
  }
  for (; k < kmax; k++) {
    x_0 = x[0];
    y_0 += A0[0 + lda * 0] * x_0;
    y_1 += A0[1 + lda * 0] * x_0;
    y_2 += A0[2 + lda * 0] * x_0;
    y_3 += A0[3 + lda * 0] * x_0;
    y_4 += A1[0 + lda * 0] * x_0;
    y_5 += A1[1 + lda * 0] * x_0;
    y_6 += A1[2 + lda * 0] * x_0;
    y_7 += A1[3 + lda * 0] * x_0;
    A0 += 1 * lda;
    A1 += 1 * lda;
    x += 1;
  }
  if (alg == 0) {
    goto store;
  } else if (alg == 1) {
    y_0 += y[0];
    y_1 += y[1];
    y_2 += y[2];
    y_3 += y[3];
    y_4 += y[4];
    y_5 += y[5];
    y_6 += y[6];
    y_7 += y[7];
    goto store;
  } else {
    y_0 = y[0] - y_0;
    y_1 = y[1] - y_1;
    y_2 = y[2] - y_2;
    y_3 = y[3] - y_3;
    y_4 = y[4] - y_4;
    y_5 = y[5] - y_5;
    y_6 = y[6] - y_6;
    y_7 = y[7] - y_7;
    goto store;
  }
store:
  z[0] = y_0;
  z[1] = y_1;
  z[2] = y_2;
  z[3] = y_3;
  if (km >= 8) {
    z[4] = y_4;
    z[5] = y_5;
    z[6] = y_6;
    z[7] = y_7;
  } else {
    z[4] = y_4;
    if (km >= 6) {
      z[5] = y_5;
      if (km > 6) {
        z[6] = y_6;
      }
    }
  }
}
```