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

```asm
<kernel_sgemv_t_3_lib4>:
  endbr64
  push   %rbx
  mov    0x10(%rsp),%r10d
  test   %edi,%edi
  jle    L83
  movslq %esi,%rax
  mov    %rdx,%rsi
  mov    %ecx,%edx
  mov    %edi,%ecx
  sub    %eax,%ecx
  test   %eax,%eax
  jle    L51
  lea    0x0(,%rax,4),%rdi
  pxor   %xmm5,%xmm5
  mov    %r8,%rax
  lea    (%rsi,%rdi,1),%r11
  movaps %xmm5,%xmm3
  movaps %xmm5,%xmm6
  nop
L63:
  movss  (%rax),%xmm0
  movss  (%rsi),%xmm1
  add    $0x4,%rsi
  add    $0x4,%rax
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm6
  movss  0xc(%rsi),%xmm1
  mulss  %xmm0,%xmm1
  mulss  0x1c(%rsi),%xmm0
  addss  %xmm1,%xmm3
  addss  %xmm0,%xmm5
  cmp    %r11,%rsi
  jne    L63
  lea    -0x4(,%rdx,4),%eax
  add    %rdi,%r8
  cltq
  lea    (%rsi,%rax,4),%rsi
L57:
  cmp    $0x3,%ecx
  jle    L82
  lea    -0x4(%rcx),%eax
  shl    $0x2,%edx
  shr    $0x2,%eax
  movslq %edx,%rdx
  lea    0x1(%rax),%ebx
  shl    $0x2,%rdx
  mov    %rsi,%rax
  mov    %rbx,%rdi
  mov    %rbx,%r11
  shl    $0x4,%rdi
  add    %r8,%rdi
  nop
L84:
  movss  (%r8),%xmm2
  movss  (%rax),%xmm7
  add    $0x10,%r8
  movss  -0xc(%r8),%xmm1
  movss  -0x8(%r8),%xmm0
  mulss  %xmm2,%xmm7
  movss  -0x4(%r8),%xmm4
  addss  %xmm6,%xmm7
  movss  0x10(%rax),%xmm6
  mulss  %xmm2,%xmm6
  mulss  0x20(%rax),%xmm2
  addss  %xmm6,%xmm3
  movss  0x4(%rax),%xmm6
  addss  %xmm5,%xmm2
  movss  0x14(%rax),%xmm5
  mulss  %xmm1,%xmm6
  mulss  %xmm1,%xmm5
  mulss  0x24(%rax),%xmm1
  addss  %xmm7,%xmm6
  addss  %xmm3,%xmm5
  movss  0x8(%rax),%xmm3
  addss  %xmm2,%xmm1
  movss  0x18(%rax),%xmm2
  mulss  %xmm0,%xmm3
  mulss  %xmm0,%xmm2
  mulss  0x28(%rax),%xmm0
  addss  %xmm6,%xmm3
  movss  0xc(%rax),%xmm6
  addss  %xmm5,%xmm2
  mulss  %xmm4,%xmm6
  addss  %xmm1,%xmm0
  addss  %xmm3,%xmm6
  movss  0x1c(%rax),%xmm3
  mulss  %xmm4,%xmm3
  mulss  0x2c(%rax),%xmm4
  add    %rdx,%rax
  addss  %xmm2,%xmm3
  addss  %xmm0,%xmm4
  movaps %xmm4,%xmm5
  cmp    %rdi,%r8
  jne    L84
  imul   %rbx,%rdx
  lea    0x0(,%r11,4),%eax
  add    %rdx,%rsi
L17:
  cmp    %ecx,%eax
  jge    L7
  sub    $0x1,%ecx
  sub    %eax,%ecx
  xor    %eax,%eax
L8:
  movss  (%rdi,%rax,4),%xmm0
  movss  (%rsi,%rax,4),%xmm1
  mov    %rax,%rdx
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm6
  movss  0x10(%rsi,%rax,4),%xmm1
  mulss  %xmm0,%xmm1
  mulss  0x20(%rsi,%rax,4),%xmm0
  add    $0x1,%rax
  addss  %xmm1,%xmm3
  addss  %xmm0,%xmm5
  cmp    %rdx,%rcx
  jne    L8
L7:
  test   %r10d,%r10d
  jne    L78
  movss  %xmm6,(%r9)
  movss  %xmm3,0x4(%r9)
  movss  %xmm5,0x8(%r9)
L83:
  pop    %rbx
  ret
  nopl   (%rax)
L51:
  pxor   %xmm5,%xmm5
  movaps %xmm5,%xmm3
  movaps %xmm5,%xmm6
  jmp    L57
  nop
L78:
  movss  (%r9),%xmm2
  movss  0x4(%r9),%xmm1
  movss  0x8(%r9),%xmm0
  cmp    $0x1,%r10d
  je     L42
  subss  %xmm6,%xmm2
  subss  %xmm3,%xmm1
  pop    %rbx
  subss  %xmm5,%xmm0
  movss  %xmm2,(%r9)
  movss  %xmm1,0x4(%r9)
  movss  %xmm0,0x8(%r9)
  ret
  cs nopw 0x0(%rax,%rax,1)
L42:
  addss  %xmm6,%xmm2
  addss  %xmm3,%xmm1
  pop    %rbx
  addss  %xmm5,%xmm0
  movss  %xmm2,(%r9)
  movss  %xmm1,0x4(%r9)
  movss  %xmm0,0x8(%r9)
  ret
  nop
L82:
  mov    %r8,%rdi
  xor    %eax,%eax
  jmp    L17
```

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