user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<kernel_sgemv_t_1_lib4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %rdx,-0x40(%rbp)
  mov    %ecx,-0x44(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jle    L108
  movl   $0x4,-0x1c(%rbp)
  movl   $0x4,-0x18(%rbp)
  mov    -0x34(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jle    L76
  movl   $0x0,-0x24(%rbp)
  jmp    L98
L3:
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x40(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  -0x10(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  addq   $0x4,-0x40(%rbp)
  addq   $0x4,-0x50(%rbp)
  addl   $0x1,-0x24(%rbp)
L98:
  mov    -0x24(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L3
  mov    -0x44(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x40(%rbp)
L76:
  movl   $0x0,-0x24(%rbp)
  jmp    L85
L72:
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x50(%rbp),%rax
  movss  0x4(%rax),%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x50(%rbp),%rax
  movss  0x8(%rax),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x50(%rbp),%rax
  movss  0xc(%rax),%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x40(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  -0x10(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  -0xc(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  -0x8(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  -0x4(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x44(%rbp),%eax
  imul   -0x18(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x40(%rbp)
  addq   $0x10,-0x50(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,-0x24(%rbp)
L85:
  mov    -0x14(%rbp),%eax
  sub    -0x18(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L72
  jmp    L117
L101:
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x40(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  -0x10(%rbp),%xmm0
  movss  -0x20(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  addq   $0x4,-0x40(%rbp)
  addq   $0x4,-0x50(%rbp)
  addl   $0x1,-0x24(%rbp)
L117:
  mov    -0x24(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L101
  cmpl   $0x0,0x10(%rbp)
  jne    L100
  mov    -0x58(%rbp),%rax
  movss  -0x20(%rbp),%xmm0
  movss  %xmm0,(%rax)
  jmp    L59
L100:
  cmpl   $0x1,0x10(%rbp)
  jne    L118
  mov    -0x58(%rbp),%rax
  movss  (%rax),%xmm0
  addss  -0x20(%rbp),%xmm0
  mov    -0x58(%rbp),%rax
  movss  %xmm0,(%rax)
  jmp    L59
L118:
  mov    -0x58(%rbp),%rax
  movss  (%rax),%xmm0
  subss  -0x20(%rbp),%xmm0
  mov    -0x58(%rbp),%rax
  movss  %xmm0,(%rax)
  jmp    L59
L108:
  nop
L59:
  pop    %rbp
  ret
```

assistant: ```c
void kernel_sgemv_t_1_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;
  if (kna > 0) {
    k = 0;
    for (; k < kna; k++) {
      x_0 = x[0];
      y_0 += A[0 + lda * 0] * 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_0 += A[1 + lda * 0] * x_1;
    y_0 += A[2 + lda * 0] * x_2;
    y_0 += A[3 + lda * 0] * x_3;
    A += sda * bs;
    x += 4;
  }
  for (; k < ka; k++) {
    x_0 = x[0];
    y_0 += A[0 + lda * 0] * x_0;
    A += 1;
    x += 1;
  }
  if (alg == 0) {
    y[0] = y_0;
  } else if (alg == 1) {
    y[0] += y_0;
  } else {
    y[0] -= y_0;
  }
}
```