user: Converte this assembly snippet into its equivalent C code:

```asm
<kernel_strmv_u_t_4_lib8>:
  endbr64
  cmp    $0x7,%edi
  jle    L45
  shl    $0x3,%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x8(%rdi),%r10d
  shr    $0x3,%r10d
  add    $0x1,%r10d
  mov    %r10d,%r10d
  mov    %r10,%rdi
  shl    $0x5,%rdi
  add    %rcx,%rdi
  mov    %rsi,%rax
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm7
L69:
  movss  (%rcx),%xmm2
  movss  0x4(%rcx),%xmm1
  movss  0x8(%rcx),%xmm3
  movss  0xc(%rcx),%xmm4
  movaps %xmm2,%xmm9
  mulss  (%rax),%xmm9
  addss  %xmm7,%xmm9
  movaps %xmm2,%xmm8
  mulss  0x20(%rax),%xmm8
  addss  %xmm6,%xmm8
  movaps %xmm2,%xmm6
  mulss  0x40(%rax),%xmm6
  addss  %xmm6,%xmm5
  mulss  0x60(%rax),%xmm2
  addss  %xmm0,%xmm2
  movaps %xmm1,%xmm7
  mulss  0x4(%rax),%xmm7
  addss  %xmm9,%xmm7
  movaps %xmm1,%xmm6
  mulss  0x24(%rax),%xmm6
  addss  %xmm8,%xmm6
  movaps %xmm1,%xmm0
  mulss  0x44(%rax),%xmm0
  addss  %xmm5,%xmm0
  mulss  0x64(%rax),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm3,%xmm5
  mulss  0x8(%rax),%xmm5
  addss  %xmm7,%xmm5
  movaps %xmm3,%xmm7
  mulss  0x28(%rax),%xmm7
  addss  %xmm6,%xmm7
  movaps %xmm3,%xmm2
  mulss  0x48(%rax),%xmm2
  addss  %xmm0,%xmm2
  mulss  0x68(%rax),%xmm3
  movaps %xmm3,%xmm0
  addss  %xmm1,%xmm0
  movaps %xmm4,%xmm6
  mulss  0xc(%rax),%xmm6
  addss  %xmm5,%xmm6
  movaps %xmm4,%xmm5
  mulss  0x2c(%rax),%xmm5
  addss  %xmm7,%xmm5
  movaps %xmm4,%xmm8
  mulss  0x4c(%rax),%xmm8
  addss  %xmm2,%xmm8
  mulss  0x6c(%rax),%xmm4
  addss  %xmm0,%xmm4
  movss  0x10(%rcx),%xmm3
  movss  0x14(%rcx),%xmm2
  movss  0x18(%rcx),%xmm1
  movss  0x1c(%rcx),%xmm0
  movaps %xmm3,%xmm7
  mulss  0x10(%rax),%xmm7
  addss  %xmm6,%xmm7
  movaps %xmm3,%xmm6
  mulss  0x30(%rax),%xmm6
  addss  %xmm5,%xmm6
  movaps %xmm3,%xmm5
  mulss  0x50(%rax),%xmm5
  addss  %xmm8,%xmm5
  mulss  0x70(%rax),%xmm3
  addss  %xmm4,%xmm3
  movaps %xmm2,%xmm4
  mulss  0x14(%rax),%xmm4
  addss  %xmm7,%xmm4
  movaps %xmm2,%xmm7
  mulss  0x34(%rax),%xmm7
  addss  %xmm6,%xmm7
  movaps %xmm2,%xmm6
  mulss  0x54(%rax),%xmm6
  addss  %xmm5,%xmm6
  mulss  0x74(%rax),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm5
  mulss  0x18(%rax),%xmm5
  addss  %xmm4,%xmm5
  movaps %xmm1,%xmm4
  mulss  0x38(%rax),%xmm4
  addss  %xmm7,%xmm4
  movaps %xmm1,%xmm3
  mulss  0x58(%rax),%xmm3
  addss  %xmm6,%xmm3
  mulss  0x78(%rax),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm0,%xmm7
  mulss  0x1c(%rax),%xmm7
  addss  %xmm5,%xmm7
  movaps %xmm0,%xmm6
  mulss  0x3c(%rax),%xmm6
  addss  %xmm4,%xmm6
  movaps %xmm0,%xmm5
  mulss  0x5c(%rax),%xmm5
  addss  %xmm3,%xmm5
  mulss  0x7c(%rax),%xmm0
  addss  %xmm1,%xmm0
  add    %rdx,%rax
  add    $0x20,%rcx
  cmp    %rdi,%rcx
  jne    L69
  imul   %r10,%rdx
  add    %rdx,%rsi
L40:
  movss  (%rdi),%xmm1
  movss  0x4(%rdi),%xmm2
  movss  0x8(%rdi),%xmm3
  movaps %xmm1,%xmm4
  mulss  (%rsi),%xmm4
  addss  %xmm4,%xmm7
  movaps %xmm1,%xmm4
  mulss  0x20(%rsi),%xmm4
  addss  %xmm6,%xmm4
  movaps %xmm1,%xmm6
  mulss  0x40(%rsi),%xmm6
  addss  %xmm5,%xmm6
  mulss  0x60(%rsi),%xmm1
  addss  %xmm0,%xmm1
  movaps %xmm2,%xmm0
  mulss  0x24(%rsi),%xmm0
  addss  %xmm0,%xmm4
  movaps %xmm2,%xmm5
  mulss  0x44(%rsi),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x64(%rsi),%xmm2
  addss  %xmm1,%xmm2
  movaps %xmm3,%xmm0
  mulss  0x48(%rsi),%xmm0
  addss  %xmm0,%xmm5
  mulss  0x68(%rsi),%xmm3
  addss  %xmm2,%xmm3
  movss  0x6c(%rsi),%xmm0
  mulss  0xc(%rdi),%xmm0
  addss  %xmm3,%xmm0
  test   %r9d,%r9d
  jne    L29
  movss  %xmm7,(%r8)
  movss  %xmm4,0x4(%r8)
  movss  %xmm5,0x8(%r8)
L14:
  movss  %xmm0,0xc(%r8)
  ret
L45:
  mov    %rcx,%rdi
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm7
  jmp    L40
L29:
  cmp    $0x1,%r9d
  je     L48
  movss  (%r8),%xmm2
  subss  %xmm7,%xmm2
  movss  %xmm2,(%r8)
  movss  0x4(%r8),%xmm2
  subss  %xmm4,%xmm2
  movss  %xmm2,0x4(%r8)
  movss  0x8(%r8),%xmm2
  subss  %xmm5,%xmm2
  movss  %xmm2,0x8(%r8)
  movss  0xc(%r8),%xmm1
  subss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  jmp    L14
L48:
  addss  (%r8),%xmm7
  movss  %xmm7,(%r8)
  addss  0x4(%r8),%xmm4
  movss  %xmm4,0x4(%r8)
  addss  0x8(%r8),%xmm5
  movss  %xmm5,0x8(%r8)
  addss  0xc(%r8),%xmm0
  jmp    L14
```

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