user: 这段汇编代码用C语言表示是什么样的？

```asm
<kernel_dgemv_n_8_lib4>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x28(%rsp),%ebx
  test   %edi,%edi
  jle    L30
  mov    %edi,%r10d
  mov    %rsi,%rax
  mov    %rcx,%r11
  shl    $0x2,%edx
  movslq %edx,%rdx
  lea    (%rsi,%rdx,8),%rdi
  cmp    $0x3,%r10d
  jle    L41
  lea    -0x4(%r10),%r12d
  shr    $0x2,%r12d
  lea    0x1(%r12),%ebp
  mov    %ebp,%ebp
  mov    %rbp,%r13
  shl    $0x7,%r13
  lea    (%rsi,%r13,1),%rsi
  mov    %rdi,%rdx
  pxor   %xmm14,%xmm14
  movapd %xmm14,%xmm4
  movapd %xmm14,%xmm5
  movapd %xmm14,%xmm6
  movapd %xmm14,%xmm7
  movapd %xmm14,%xmm8
  movapd %xmm14,%xmm9
  movapd %xmm14,%xmm10
L51:
  movsd  (%rcx),%xmm2
  movsd  0x8(%rcx),%xmm1
  movsd  0x10(%rcx),%xmm0
  movsd  0x18(%rcx),%xmm3
  movapd %xmm2,%xmm11
  mulsd  (%rax),%xmm11
  addsd  %xmm10,%xmm11
  movapd %xmm2,%xmm10
  mulsd  0x8(%rax),%xmm10
  addsd  %xmm9,%xmm10
  movapd %xmm2,%xmm12
  mulsd  0x10(%rax),%xmm12
  addsd  %xmm8,%xmm12
  movapd %xmm2,%xmm13
  mulsd  0x18(%rax),%xmm13
  addsd  %xmm7,%xmm13
  movapd %xmm2,%xmm9
  mulsd  (%rdx),%xmm9
  addsd  %xmm6,%xmm9
  movapd %xmm2,%xmm8
  mulsd  0x8(%rdx),%xmm8
  addsd  %xmm5,%xmm8
  movapd %xmm2,%xmm7
  mulsd  0x10(%rdx),%xmm7
  addsd  %xmm4,%xmm7
  mulsd  0x18(%rdx),%xmm2
  addsd  %xmm14,%xmm2
  movapd %xmm1,%xmm6
  mulsd  0x20(%rax),%xmm6
  addsd  %xmm11,%xmm6
  movapd %xmm1,%xmm4
  mulsd  0x28(%rax),%xmm4
  addsd  %xmm4,%xmm10
  movapd %xmm1,%xmm11
  mulsd  0x30(%rax),%xmm11
  addsd  %xmm12,%xmm11
  movapd %xmm1,%xmm5
  mulsd  0x38(%rax),%xmm5
  addsd  %xmm13,%xmm5
  movapd %xmm1,%xmm4
  mulsd  0x20(%rdx),%xmm4
  addsd  %xmm9,%xmm4
  movapd %xmm1,%xmm9
  mulsd  0x28(%rdx),%xmm9
  addsd  %xmm8,%xmm9
  movapd %xmm1,%xmm8
  mulsd  0x30(%rdx),%xmm8
  addsd  %xmm7,%xmm8
  mulsd  0x38(%rdx),%xmm1
  addsd  %xmm2,%xmm1
  movapd %xmm0,%xmm13
  mulsd  0x40(%rax),%xmm13
  addsd  %xmm6,%xmm13
  movapd %xmm0,%xmm12
  mulsd  0x48(%rax),%xmm12
  addsd  %xmm10,%xmm12
  movapd %xmm0,%xmm7
  mulsd  0x50(%rax),%xmm7
  addsd  %xmm11,%xmm7
  movapd %xmm0,%xmm6
  mulsd  0x58(%rax),%xmm6
  addsd  %xmm5,%xmm6
  movapd %xmm0,%xmm5
  mulsd  0x40(%rdx),%xmm5
  addsd  %xmm4,%xmm5
  movapd %xmm0,%xmm4
  mulsd  0x48(%rdx),%xmm4
  addsd  %xmm9,%xmm4
  movapd %xmm0,%xmm2
  mulsd  0x50(%rdx),%xmm2
  addsd  %xmm8,%xmm2
  mulsd  0x58(%rdx),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm3,%xmm10
  mulsd  0x60(%rax),%xmm10
  addsd  %xmm13,%xmm10
  movapd %xmm3,%xmm9
  mulsd  0x68(%rax),%xmm9
  addsd  %xmm12,%xmm9
  movapd %xmm3,%xmm8
  mulsd  0x70(%rax),%xmm8
  addsd  %xmm7,%xmm8
  movapd %xmm3,%xmm7
  mulsd  0x78(%rax),%xmm7
  addsd  %xmm6,%xmm7
  movapd %xmm3,%xmm6
  mulsd  0x60(%rdx),%xmm6
  addsd  %xmm5,%xmm6
  movapd %xmm3,%xmm5
  mulsd  0x68(%rdx),%xmm5
  addsd  %xmm4,%xmm5
  movapd %xmm3,%xmm4
  mulsd  0x70(%rdx),%xmm4
  addsd  %xmm2,%xmm4
  mulsd  0x78(%rdx),%xmm3
  addsd  %xmm0,%xmm3
  movapd %xmm3,%xmm14
  sub    $0xffffffffffffff80,%rax
  sub    $0xffffffffffffff80,%rdx
  add    $0x20,%rcx
  cmp    %rsi,%rax
  jne    L51
  add    %r13,%rdi
  shl    $0x5,%rbp
  add    %rbp,%r11
  lea    0x4(,%r12,4),%edx
  cmp    %edx,%r10d
  jle    L61
L48:
  mov    $0x0,%eax
L71:
  movsd  (%r11,%rax,1),%xmm0
  movapd %xmm0,%xmm1
  mulsd  (%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm10
  movapd %xmm0,%xmm1
  mulsd  0x8(%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm9
  movapd %xmm0,%xmm1
  mulsd  0x10(%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm8
  movapd %xmm0,%xmm1
  mulsd  0x18(%rsi,%rax,4),%xmm1
  addsd  %xmm1,%xmm7
  movapd %xmm0,%xmm1
  mulsd  (%rdi,%rax,4),%xmm1
  addsd  %xmm1,%xmm6
  movapd %xmm0,%xmm1
  mulsd  0x8(%rdi,%rax,4),%xmm1
  addsd  %xmm1,%xmm5
  movapd %xmm0,%xmm1
  mulsd  0x10(%rdi,%rax,4),%xmm1
  addsd  %xmm1,%xmm4
  mulsd  0x18(%rdi,%rax,4),%xmm0
  addsd  %xmm0,%xmm14
  add    $0x1,%edx
  add    $0x8,%rax
  cmp    %edx,%r10d
  jg     L71
L61:
  test   %ebx,%ebx
  jne    L70
  movsd  %xmm10,(%r9)
  movsd  %xmm9,0x8(%r9)
  movsd  %xmm8,0x10(%r9)
  movsd  %xmm7,0x18(%r9)
  movsd  %xmm6,0x20(%r9)
  movsd  %xmm5,0x28(%r9)
  movsd  %xmm4,0x30(%r9)
  movsd  %xmm14,0x38(%r9)
L30:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L41:
  pxor   %xmm14,%xmm14
  movapd %xmm14,%xmm4
  movapd %xmm14,%xmm5
  movapd %xmm14,%xmm6
  movapd %xmm14,%xmm7
  movapd %xmm14,%xmm8
  movapd %xmm14,%xmm9
  movapd %xmm14,%xmm10
  mov    $0x0,%edx
  jmp    L48
L70:
  cmp    $0x1,%ebx
  je     L26
  movsd  (%r8),%xmm0
  subsd  %xmm10,%xmm0
  movsd  %xmm0,(%r9)
  movsd  0x8(%r8),%xmm0
  subsd  %xmm9,%xmm0
  movsd  %xmm0,0x8(%r9)
  movsd  0x10(%r8),%xmm0
  subsd  %xmm8,%xmm0
  movsd  %xmm0,0x10(%r9)
  movsd  0x18(%r8),%xmm0
  subsd  %xmm7,%xmm0
  movsd  %xmm0,0x18(%r9)
  movsd  0x20(%r8),%xmm0
  subsd  %xmm6,%xmm0
  movsd  %xmm0,0x20(%r9)
  movsd  0x28(%r8),%xmm0
  subsd  %xmm5,%xmm0
  movsd  %xmm0,0x28(%r9)
  movsd  0x30(%r8),%xmm0
  subsd  %xmm4,%xmm0
  movsd  %xmm0,0x30(%r9)
  movsd  0x38(%r8),%xmm0
  subsd  %xmm14,%xmm0
  movsd  %xmm0,0x38(%r9)
  jmp    L30
L26:
  addsd  (%r8),%xmm10
  movsd  %xmm10,(%r9)
  addsd  0x8(%r8),%xmm9
  movsd  %xmm9,0x8(%r9)
  addsd  0x10(%r8),%xmm8
  movsd  %xmm8,0x10(%r9)
  addsd  0x18(%r8),%xmm7
  movsd  %xmm7,0x18(%r9)
  addsd  0x20(%r8),%xmm6
  movsd  %xmm6,0x20(%r9)
  addsd  0x28(%r8),%xmm5
  movsd  %xmm5,0x28(%r9)
  addsd  0x30(%r8),%xmm4
  movsd  %xmm4,0x30(%r9)
  addsd  0x38(%r8),%xmm14
  movsd  %xmm14,0x38(%r9)
  jmp    L30
```

assistant: ```c
void kernel_dgemv_n_8_lib4(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) {
    z[0] = y_0;
    z[1] = y_1;
    z[2] = y_2;
    z[3] = y_3;
    z[4] = y_4;
    z[5] = y_5;
    z[6] = y_6;
    z[7] = y_7;
  } else if (alg == 1) {
    z[0] = y[0] + y_0;
    z[1] = y[1] + y_1;
    z[2] = y[2] + y_2;
    z[3] = y[3] + y_3;
    z[4] = y[4] + y_4;
    z[5] = y[5] + y_5;
    z[6] = y[6] + y_6;
    z[7] = y[7] + y_7;
  } else {
    z[0] = y[0] - y_0;
    z[1] = y[1] - y_1;
    z[2] = y[2] - y_2;
    z[3] = y[3] - y_3;
    z[4] = y[4] - y_4;
    z[5] = y[5] - y_5;
    z[6] = y[6] - y_6;
    z[7] = y[7] - y_7;
  }
}
```