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

```asm
<kernel_strmv_u_n_4_lib8>:
  endbr64
  test   %edi,%edi
  jle    L31
  push   %rbx
  movss  (%rsi),%xmm2
  pxor   %xmm3,%xmm3
  mov    %edi,%r9d
  mulss  (%rdx),%xmm2
  movss  0x4(%rdx),%xmm1
  mov    %rcx,%r10
  lea    0x10(%rdx),%rdi
  movss  0x20(%rsi),%xmm4
  movss  0x8(%rdx),%xmm0
  lea    0x80(%rsi),%rax
  movss  0xc(%rdx),%xmm8
  movss  0x60(%rsi),%xmm6
  mulss  %xmm1,%xmm4
  movss  0x64(%rsi),%xmm5
  mulss  %xmm8,%xmm6
  addss  %xmm3,%xmm2
  mulss  0x24(%rsi),%xmm1
  mulss  %xmm8,%xmm5
  addss  %xmm4,%xmm2
  movss  0x40(%rsi),%xmm4
  mulss  %xmm0,%xmm4
  addss  %xmm3,%xmm1
  addss  %xmm2,%xmm4
  movss  0x44(%rsi),%xmm2
  mulss  %xmm0,%xmm2
  mulss  0x48(%rsi),%xmm0
  addss  %xmm4,%xmm6
  movss  0x68(%rsi),%xmm4
  mulss  %xmm8,%xmm4
  mulss  0x6c(%rsi),%xmm8
  addss  %xmm2,%xmm1
  addss  %xmm3,%xmm0
  addss  %xmm1,%xmm5
  addss  %xmm0,%xmm4
  addss  %xmm3,%xmm8
  cmp    $0x7,%r9d
  jle    L20
  lea    -0x8(%r9),%ebx
  shr    $0x2,%ebx
  mov    %ebx,%r11d
  lea    0x2(%r11),%rdx
  shl    $0x7,%rdx
  lea    (%rsi,%rdx,1),%rcx
  mov    %rdi,%rdx
  nop
L56:
  movss  (%rdx),%xmm2
  movss  (%rax),%xmm7
  sub    $0xffffffffffffff80,%rax
  add    $0x10,%rdx
  movss  -0xc(%rdx),%xmm1
  movss  -0x8(%rdx),%xmm0
  mulss  %xmm2,%xmm7
  movss  -0x4(%rdx),%xmm3
  addss  %xmm6,%xmm7
  movss  -0x7c(%rax),%xmm6
  mulss  %xmm2,%xmm6
  addss  %xmm5,%xmm6
  movss  -0x78(%rax),%xmm5
  mulss  %xmm2,%xmm5
  mulss  -0x74(%rax),%xmm2
  addss  %xmm4,%xmm5
  movss  -0x60(%rax),%xmm4
  addss  %xmm8,%xmm2
  mulss  %xmm1,%xmm4
  addss  %xmm7,%xmm4
  movss  -0x5c(%rax),%xmm7
  mulss  %xmm1,%xmm7
  addss  %xmm6,%xmm7
  movss  -0x58(%rax),%xmm6
  mulss  %xmm1,%xmm6
  mulss  -0x54(%rax),%xmm1
  addss  %xmm5,%xmm6
  movss  -0x40(%rax),%xmm5
  addss  %xmm2,%xmm1
  movss  -0x38(%rax),%xmm2
  mulss  %xmm0,%xmm5
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm5
  movss  -0x3c(%rax),%xmm4
  addss  %xmm6,%xmm2
  movss  -0x20(%rax),%xmm6
  mulss  %xmm0,%xmm4
  mulss  %xmm3,%xmm6
  mulss  -0x34(%rax),%xmm0
  addss  %xmm7,%xmm4
  addss  %xmm5,%xmm6
  movss  -0x1c(%rax),%xmm5
  addss  %xmm1,%xmm0
  mulss  %xmm3,%xmm5
  addss  %xmm4,%xmm5
  movss  -0x18(%rax),%xmm4
  mulss  %xmm3,%xmm4
  mulss  -0x14(%rax),%xmm3
  addss  %xmm2,%xmm4
  addss  %xmm0,%xmm3
  movaps %xmm3,%xmm8
  cmp    %rcx,%rax
  jne    L56
  add    $0x1,%r11
  lea    0x8(,%rbx,4),%edx
  shl    $0x4,%r11
  add    %r11,%rdi
L30:
  cmp    %edx,%r9d
  jle    L66
  lea    -0x1(%r9),%eax
  sub    %edx,%eax
  lea    0x4(%rdi,%rax,4),%rax
L3:
  movss  (%rdi),%xmm0
  movss  (%rcx),%xmm1
  add    $0x4,%rdi
  add    $0x20,%rcx
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm6
  movss  -0x1c(%rcx),%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm5
  movss  -0x18(%rcx),%xmm1
  mulss  %xmm0,%xmm1
  mulss  -0x14(%rcx),%xmm0
  addss  %xmm1,%xmm4
  addss  %xmm0,%xmm8
  cmp    %rax,%rdi
  jne    L3
L66:
  test   %r8d,%r8d
  je     L60
  movss  (%r10),%xmm3
  movss  0x4(%r10),%xmm2
  movss  0x8(%r10),%xmm1
  movss  0xc(%r10),%xmm0
  cmp    $0x1,%r8d
  je     L25
  subss  %xmm6,%xmm3
  subss  %xmm5,%xmm2
  subss  %xmm4,%xmm1
  subss  %xmm8,%xmm0
  movss  %xmm3,(%r10)
  movss  %xmm2,0x4(%r10)
  movss  %xmm1,0x8(%r10)
  movss  %xmm0,0xc(%r10)
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L60:
  movss  %xmm6,(%r10)
  movss  %xmm5,0x4(%r10)
  movss  %xmm4,0x8(%r10)
  movss  %xmm8,0xc(%r10)
  pop    %rbx
  ret
  nopl   0x0(%rax)
L31:
  ret
  nopl   0x0(%rax)
L25:
  addss  %xmm6,%xmm3
  addss  %xmm5,%xmm2
  addss  %xmm4,%xmm1
  addss  %xmm8,%xmm0
  movss  %xmm3,(%r10)
  movss  %xmm2,0x4(%r10)
  movss  %xmm1,0x8(%r10)
  movss  %xmm0,0xc(%r10)
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L20:
  mov    %rax,%rcx
  mov    $0x4,%edx
  jmp    L30
```

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