user: 请从给定的汇编指令推导出C源代码:

```asm
<kernel_sgemv_t_2_lib8>:
  endbr64
  mov    %edi,%eax
  push   %rbx
  mov    0x10(%rsp),%edi
  test   %eax,%eax
  jle    L41
  movslq %esi,%r10
  mov    %rdx,%rsi
  mov    %ecx,%edx
  sub    %r10d,%eax
  mov    %eax,%ecx
  test   %r10d,%r10d
  jle    L27
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  movaps %xmm0,%xmm5
  nopw   0x0(%rax,%rax,1)
L34:
  movss  (%r8,%rax,4),%xmm1
  movss  (%rsi,%rax,4),%xmm2
  mulss  %xmm1,%xmm2
  mulss  0x20(%rsi,%rax,4),%xmm1
  add    $0x1,%rax
  addss  %xmm2,%xmm5
  addss  %xmm1,%xmm0
  cmp    %rax,%r10
  jne    L34
  lea    -0x8(,%rdx,8),%eax
  shl    $0x2,%r10
  cltq
  add    %r10,%r8
  lea    (%r10,%rax,4),%rax
  add    %rax,%rsi
L44:
  cmp    $0x7,%ecx
  jle    L60
  lea    -0x8(%rcx),%eax
  shl    $0x3,%edx
  shr    $0x3,%eax
  movslq %edx,%rdx
  lea    0x1(%rax),%ebx
  shl    $0x2,%rdx
  mov    %rsi,%rax
  mov    %rbx,%r11
  mov    %rbx,%r10
  shl    $0x5,%r11
  add    %r8,%r11
  nopl   0x0(%rax)
L53:
  movss  (%r8),%xmm3
  movss  (%rax),%xmm6
  add    $0x20,%r8
  movss  -0x1c(%r8),%xmm2
  movss  -0x18(%r8),%xmm1
  mulss  %xmm3,%xmm6
  movss  -0x14(%r8),%xmm4
  mulss  0x20(%rax),%xmm3
  addss  %xmm5,%xmm6
  movss  0x4(%rax),%xmm5
  addss  %xmm0,%xmm3
  movss  0x8(%rax),%xmm0
  mulss  %xmm2,%xmm5
  mulss  0x24(%rax),%xmm2
  mulss  %xmm1,%xmm0
  mulss  0x28(%rax),%xmm1
  addss  %xmm6,%xmm5
  movss  0xc(%rax),%xmm6
  addss  %xmm3,%xmm2
  movss  -0x10(%r8),%xmm3
  mulss  %xmm4,%xmm6
  mulss  0x2c(%rax),%xmm4
  addss  %xmm5,%xmm0
  movss  0x10(%rax),%xmm5
  addss  %xmm2,%xmm1
  movss  -0xc(%r8),%xmm2
  mulss  %xmm3,%xmm5
  mulss  0x30(%rax),%xmm3
  addss  %xmm0,%xmm6
  movss  -0x4(%r8),%xmm0
  addss  %xmm1,%xmm4
  movss  -0x8(%r8),%xmm1
  addss  %xmm6,%xmm5
  addss  %xmm4,%xmm3
  movss  0x14(%rax),%xmm4
  mulss  %xmm2,%xmm4
  mulss  0x34(%rax),%xmm2
  addss  %xmm5,%xmm4
  movss  0x1c(%rax),%xmm5
  addss  %xmm3,%xmm2
  movss  0x18(%rax),%xmm3
  mulss  %xmm0,%xmm5
  mulss  %xmm1,%xmm3
  mulss  0x38(%rax),%xmm1
  mulss  0x3c(%rax),%xmm0
  add    %rdx,%rax
  addss  %xmm4,%xmm3
  addss  %xmm2,%xmm1
  addss  %xmm3,%xmm5
  addss  %xmm1,%xmm0
  cmp    %r11,%r8
  jne    L53
  imul   %rbx,%rdx
  lea    0x0(,%r10,8),%eax
  add    %rdx,%rsi
L42:
  cmp    %ecx,%eax
  jge    L76
  lea    -0x1(%rcx),%edx
  sub    %eax,%edx
  xor    %eax,%eax
L89:
  movss  (%r11,%rax,4),%xmm1
  movss  (%rsi,%rax,4),%xmm2
  mov    %rax,%rcx
  mulss  %xmm1,%xmm2
  mulss  0x20(%rsi,%rax,4),%xmm1
  add    $0x1,%rax
  addss  %xmm2,%xmm5
  addss  %xmm1,%xmm0
  cmp    %rcx,%rdx
  jne    L89
L76:
  test   %edi,%edi
  jne    L24
  movss  %xmm5,(%r9)
  movss  %xmm0,0x4(%r9)
L41:
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L27:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  jmp    L44
  nopl   0x0(%rax)
L24:
  movss  (%r9),%xmm2
  movss  0x4(%r9),%xmm1
  cmp    $0x1,%edi
  je     L33
  subss  %xmm5,%xmm2
  subss  %xmm0,%xmm1
  pop    %rbx
  movss  %xmm2,(%r9)
  movss  %xmm1,0x4(%r9)
  ret
  nopl   (%rax)
L33:
  addss  %xmm5,%xmm2
  addss  %xmm0,%xmm1
  pop    %rbx
  movss  %xmm2,(%r9)
  movss  %xmm1,0x4(%r9)
  ret
  nopl   (%rax)
L60:
  mov    %r8,%r11
  xor    %eax,%eax
  jmp    L42
```

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;
  }
}
```