user: 请将以下的汇编代码转换成C语言代码:

```asm
<kernel_sgemv_t_4_vs_lib4>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x20(%rsp),%r11
  mov    0x28(%rsp),%ebx
  test   %edi,%edi
  jle    L95
  cmp    $0x3,%edi
  jle    L68
  lea    -0x4(%rdi),%ebp
  shl    $0x2,%edx
  pxor   %xmm8,%xmm8
  mov    %rsi,%rax
  shr    $0x2,%ebp
  movaps %xmm8,%xmm6
  movaps %xmm8,%xmm5
  movslq %edx,%rdx
  lea    0x1(%rbp),%r12d
  shl    $0x2,%rdx
  movaps %xmm8,%xmm4
  mov    %r12,%r10
  mov    %r12,%rbp
  shl    $0x4,%r10
  add    %rcx,%r10
  nopw   0x0(%rax,%rax,1)
L109:
  movss  (%rcx),%xmm2
  movss  (%rax),%xmm7
  add    $0x10,%rcx
  movss  -0xc(%rcx),%xmm1
  movss  -0x8(%rcx),%xmm0
  mulss  %xmm2,%xmm7
  movss  -0x4(%rcx),%xmm3
  addss  %xmm4,%xmm7
  movss  0x10(%rax),%xmm4
  mulss  %xmm2,%xmm4
  addss  %xmm5,%xmm4
  movss  0x20(%rax),%xmm5
  mulss  %xmm2,%xmm5
  mulss  0x30(%rax),%xmm2
  addss  %xmm6,%xmm5
  movss  0x4(%rax),%xmm6
  addss  %xmm8,%xmm2
  mulss  %xmm1,%xmm6
  addss  %xmm7,%xmm6
  movss  0x14(%rax),%xmm7
  mulss  %xmm1,%xmm7
  addss  %xmm4,%xmm7
  movss  0x24(%rax),%xmm4
  mulss  %xmm1,%xmm4
  mulss  0x34(%rax),%xmm1
  addss  %xmm5,%xmm4
  movss  0x8(%rax),%xmm5
  addss  %xmm2,%xmm1
  movss  0x28(%rax),%xmm2
  mulss  %xmm0,%xmm5
  mulss  %xmm0,%xmm2
  addss  %xmm6,%xmm5
  movss  0x18(%rax),%xmm6
  addss  %xmm4,%xmm2
  movss  0xc(%rax),%xmm4
  mulss  %xmm0,%xmm6
  mulss  %xmm3,%xmm4
  mulss  0x38(%rax),%xmm0
  addss  %xmm7,%xmm6
  addss  %xmm5,%xmm4
  movss  0x1c(%rax),%xmm5
  addss  %xmm1,%xmm0
  mulss  %xmm3,%xmm5
  addss  %xmm6,%xmm5
  movss  0x2c(%rax),%xmm6
  mulss  %xmm3,%xmm6
  mulss  0x3c(%rax),%xmm3
  add    %rdx,%rax
  addss  %xmm2,%xmm6
  addss  %xmm0,%xmm3
  movaps %xmm3,%xmm8
  cmp    %r10,%rcx
  jne    L109
  imul   %r12,%rdx
  add    %rdx,%rsi
  lea    0x0(,%rbp,4),%edx
  cmp    %edx,%edi
  jle    L83
L85:
  xor    %eax,%eax
L116:
  movss  (%r10,%rax,4),%xmm0
  movss  (%rsi,%rax,4),%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm4
  movss  0x10(%rsi,%rax,4),%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm5
  movss  0x20(%rsi,%rax,4),%xmm1
  mulss  %xmm0,%xmm1
  mulss  0x30(%rsi,%rax,4),%xmm0
  add    $0x1,%rax
  lea    (%rdx,%rax,1),%ecx
  addss  %xmm1,%xmm6
  addss  %xmm0,%xmm8
  cmp    %ecx,%edi
  jg     L116
L83:
  test   %r8d,%r8d
  je     L96
  movss  (%r9),%xmm3
  movss  0x4(%r9),%xmm2
  movss  0x8(%r9),%xmm1
  movss  0xc(%r9),%xmm0
  cmp    $0x1,%r8d
  je     L41
  subss  %xmm4,%xmm3
  subss  %xmm5,%xmm2
  subss  %xmm6,%xmm1
  subss  %xmm8,%xmm0
  movaps %xmm3,%xmm4
  movaps %xmm2,%xmm5
  movaps %xmm1,%xmm6
  movaps %xmm0,%xmm8
L96:
  movss  %xmm4,(%r11)
  cmp    $0x3,%ebx
  jg     L87
L128:
  cmp    $0x1,%ebx
  jle    L95
  movss  %xmm5,0x4(%r11)
  cmp    $0x3,%ebx
  je     L130
L95:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nop
L87:
  movss  %xmm5,0x4(%r11)
  movss  %xmm6,0x8(%r11)
  movss  %xmm8,0xc(%r11)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L130:
  movss  %xmm6,0x8(%r11)
  jmp    L95
  nopl   0x0(%rax,%rax,1)
L41:
  addss  %xmm3,%xmm4
  addss  %xmm2,%xmm5
  addss  %xmm1,%xmm6
  addss  %xmm0,%xmm8
  movss  %xmm4,(%r11)
  cmp    $0x3,%ebx
  jle    L128
  jmp    L87
  nopl   (%rax)
L68:
  pxor   %xmm8,%xmm8
  mov    %rcx,%r10
  xor    %edx,%edx
  movaps %xmm8,%xmm6
  movaps %xmm8,%xmm5
  movaps %xmm8,%xmm4
  jmp    L85
```

assistant: ```c
void kernel_sgemv_t_4_vs_lib4(int kmax, float *A, int sda, float *x, int alg, float *y, float *z, int km) {
  if (kmax <= 0)
    return;
  const int bs = 4;
  int k;
  float x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0, y_2 = 0, y_3 = 0;
  k = 0;
  for (; k < kmax - bs + 1; k += bs) {
    x_0 = x[0];
    x_1 = x[1];
    x_2 = x[2];
    x_3 = x[3];
    y_0 += A[0 + bs * 0] * x_0;
    y_1 += A[0 + bs * 1] * x_0;
    y_2 += A[0 + bs * 2] * x_0;
    y_3 += A[0 + bs * 3] * x_0;
    y_0 += A[1 + bs * 0] * x_1;
    y_1 += A[1 + bs * 1] * x_1;
    y_2 += A[1 + bs * 2] * x_1;
    y_3 += A[1 + bs * 3] * x_1;
    y_0 += A[2 + bs * 0] * x_2;
    y_1 += A[2 + bs * 1] * x_2;
    y_2 += A[2 + bs * 2] * x_2;
    y_3 += A[2 + bs * 3] * x_2;
    y_0 += A[3 + bs * 0] * x_3;
    y_1 += A[3 + bs * 1] * x_3;
    y_2 += A[3 + bs * 2] * x_3;
    y_3 += A[3 + bs * 3] * x_3;
    A += sda * bs;
    x += 4;
  }
  for (; k < kmax; k++) {
    x_0 = x[0];
    y_0 += A[0 + bs * 0] * x_0;
    y_1 += A[0 + bs * 1] * x_0;
    y_2 += A[0 + bs * 2] * x_0;
    y_3 += A[0 + bs * 3] * x_0;
    A += 1;
    x += 1;
  }
  if (alg == 0) {
    goto store;
  } else if (alg == 1) {
    y_0 += y[0];
    y_1 += y[1];
    y_2 += y[2];
    y_3 += y[3];
    goto store;
  } else {
    y_0 = y[0] - y_0;
    y_1 = y[1] - y_1;
    y_2 = y[2] - y_2;
    y_3 = y[3] - y_3;
    goto store;
  }
store:
  if (km >= 4) {
    z[0] = y_0;
    z[1] = y_1;
    z[2] = y_2;
    z[3] = y_3;
  } else {
    z[0] = y_0;
    if (km >= 2) {
      z[1] = y_1;
      if (km > 2) {
        z[2] = y_2;
      }
    }
  }
}
```