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

```asm
<kernel_sgemv_t_2_lib8>:
  endbr64
  push   %rbx
  mov    0x10(%rsp),%r10d
  test   %edi,%edi
  jle    L66
  mov    %esi,%eax
  mov    %rdx,%rsi
  mov    %ecx,%edx
  sub    %eax,%edi
  test   %eax,%eax
  jle    L12
  mov    %eax,%ecx
  mov    $0x0,%eax
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm1
L54:
  movss  (%r8,%rax,4),%xmm2
  movaps %xmm2,%xmm3
  mulss  (%rsi,%rax,4),%xmm3
  addss  %xmm3,%xmm1
  mulss  0x20(%rsi,%rax,4),%xmm2
  addss  %xmm2,%xmm0
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L54
  shl    $0x2,%rcx
  add    %rcx,%r8
  lea    -0x8(,%rdx,8),%eax
  cltq
  lea    (%rcx,%rax,4),%rax
  add    %rax,%rsi
L34:
  cmp    $0x7,%edi
  jle    L36
  shl    $0x3,%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x8(%rdi),%r11d
  shr    $0x3,%r11d
  lea    0x1(%r11),%ebx
  mov    %ebx,%ebx
  mov    %rbx,%rcx
  shl    $0x5,%rcx
  add    %r8,%rcx
  mov    %rsi,%rax
L102:
  movss  (%r8),%xmm5
  movss  0x4(%r8),%xmm3
  movss  0x8(%r8),%xmm2
  movss  0xc(%r8),%xmm4
  movaps %xmm5,%xmm6
  mulss  (%rax),%xmm6
  addss  %xmm1,%xmm6
  mulss  0x20(%rax),%xmm5
  addss  %xmm0,%xmm5
  movaps %xmm3,%xmm1
  mulss  0x4(%rax),%xmm1
  addss  %xmm6,%xmm1
  mulss  0x24(%rax),%xmm3
  addss  %xmm5,%xmm3
  movaps %xmm2,%xmm0
  mulss  0x8(%rax),%xmm0
  addss  %xmm1,%xmm0
  mulss  0x28(%rax),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm4,%xmm6
  mulss  0xc(%rax),%xmm6
  addss  %xmm0,%xmm6
  mulss  0x2c(%rax),%xmm4
  addss  %xmm2,%xmm4
  movss  0x10(%r8),%xmm3
  movss  0x14(%r8),%xmm2
  movss  0x18(%r8),%xmm1
  movss  0x1c(%r8),%xmm0
  movaps %xmm3,%xmm5
  mulss  0x10(%rax),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x30(%rax),%xmm3
  addss  %xmm4,%xmm3
  movaps %xmm2,%xmm4
  mulss  0x14(%rax),%xmm4
  addss  %xmm5,%xmm4
  mulss  0x34(%rax),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x18(%rax),%xmm3
  addss  %xmm4,%xmm3
  mulss  0x38(%rax),%xmm1
  addss  %xmm1,%xmm2
  movaps %xmm0,%xmm1
  mulss  0x1c(%rax),%xmm1
  addss  %xmm3,%xmm1
  mulss  0x3c(%rax),%xmm0
  addss  %xmm2,%xmm0
  add    %rdx,%rax
  add    $0x20,%r8
  cmp    %rcx,%r8
  jne    L102
  imul   %rbx,%rdx
  add    %rdx,%rsi
  lea    0x8(,%r11,8),%eax
L98:
  cmp    %eax,%edi
  jle    L31
  lea    -0x1(%rdi),%edx
  sub    %eax,%edx
  mov    $0x0,%eax
L119:
  movss  (%rcx,%rax,4),%xmm2
  movaps %xmm2,%xmm3
  mulss  (%rsi,%rax,4),%xmm3
  addss  %xmm3,%xmm1
  mulss  0x20(%rsi,%rax,4),%xmm2
  addss  %xmm2,%xmm0
  mov    %rax,%rdi
  add    $0x1,%rax
  cmp    %rdx,%rdi
  jne    L119
L31:
  test   %r10d,%r10d
  jne    L109
  movss  %xmm1,(%r9)
  movss  %xmm0,0x4(%r9)
L66:
  pop    %rbx
  ret
L12:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm1
  jmp    L34
L36:
  mov    %r8,%rcx
  mov    $0x0,%eax
  jmp    L98
L109:
  cmp    $0x1,%r10d
  je     L93
  movss  (%r9),%xmm2
  subss  %xmm1,%xmm2
  movss  %xmm2,(%r9)
  movss  0x4(%r9),%xmm1
  subss  %xmm0,%xmm1
  movss  %xmm1,0x4(%r9)
  jmp    L66
L93:
  addss  (%r9),%xmm1
  movss  %xmm1,(%r9)
  addss  0x4(%r9),%xmm0
  movss  %xmm0,0x4(%r9)
  jmp    L66
```

assistant: ```c
void kernel_sgemv_t_2_lib8(int kmax, int kna, float *A, int sda, float *x, float *y, int alg) {
  if (kmax <= 0)
    return;
  const int lda = 8;
  const int bs = 8;
  int k, ka = kmax - kna;
  float x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0;
  if (kna > 0) {
    k = 0;
    for (; k < kna; k++) {
      x_0 = x[0];
      y_0 += A[0 + lda * 0] * x_0;
      y_1 += A[0 + lda * 1] * x_0;
      A += 1;
      x += 1;
    }
    A += (sda - 1) * lda;
  }
  k = 0;
  for (; k < ka - bs + 1; k += bs) {
    x_0 = x[0];
    x_1 = x[1];
    x_2 = x[2];
    x_3 = x[3];
    y_0 += A[0 + lda * 0] * x_0;
    y_1 += A[0 + lda * 1] * x_0;
    y_0 += A[1 + lda * 0] * x_1;
    y_1 += A[1 + lda * 1] * x_1;
    y_0 += A[2 + lda * 0] * x_2;
    y_1 += A[2 + lda * 1] * x_2;
    y_0 += A[3 + lda * 0] * x_3;
    y_1 += A[3 + lda * 1] * x_3;
    x_0 = x[4];
    x_1 = x[5];
    x_2 = x[6];
    x_3 = x[7];
    y_0 += A[4 + lda * 0] * x_0;
    y_1 += A[4 + lda * 1] * x_0;
    y_0 += A[5 + lda * 0] * x_1;
    y_1 += A[5 + lda * 1] * x_1;
    y_0 += A[6 + lda * 0] * x_2;
    y_1 += A[6 + lda * 1] * x_2;
    y_0 += A[7 + lda * 0] * x_3;
    y_1 += A[7 + lda * 1] * x_3;
    A += sda * bs;
    x += 8;
  }
  for (; k < ka; k++) {
    x_0 = x[0];
    y_0 += A[0 + lda * 0] * x_0;
    y_1 += A[0 + lda * 1] * x_0;
    A += 1;
    x += 1;
  }
  if (alg == 0) {
    y[0] = y_0;
    y[1] = y_1;
  } else if (alg == 1) {
    y[0] += y_0;
    y[1] += y_1;
  } else {
    y[0] -= y_0;
    y[1] -= y_1;
  }
}
```