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

```asm
<kernel_strmv_u_t_2_lib8>:
  endbr64
  push   %rbx
  cmp    $0x7,%edi
  jle    L86
  shl    $0x3,%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x8(%rdi),%r11d
  shr    $0x3,%r11d
  lea    0x1(%r11),%ebx
  mov    %ebx,%ebx
  mov    %rbx,%r10
  shl    $0x5,%r10
  add    %rcx,%r10
  mov    %rsi,%rax
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
L16:
  movss  (%rcx),%xmm3
  movss  0x4(%rcx),%xmm2
  movss  0x8(%rcx),%xmm1
  movss  0xc(%rcx),%xmm4
  movaps %xmm3,%xmm6
  mulss  (%rax),%xmm6
  addss  %xmm5,%xmm6
  mulss  0x20(%rax),%xmm3
  addss  %xmm0,%xmm3
  movaps %xmm2,%xmm5
  mulss  0x4(%rax),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x24(%rax),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm0
  mulss  0x8(%rax),%xmm0
  addss  %xmm5,%xmm0
  mulss  0x28(%rax),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm6
  mulss  0xc(%rax),%xmm6
  addss  %xmm0,%xmm6
  mulss  0x2c(%rax),%xmm4
  addss  %xmm1,%xmm4
  movss  0x10(%rcx),%xmm3
  movss  0x14(%rcx),%xmm2
  movss  0x18(%rcx),%xmm1
  movss  0x1c(%rcx),%xmm0
  movaps %xmm3,%xmm5
  mulss  0x10(%rax),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x30(%rax),%xmm3
  addss  %xmm4,%xmm3
  movaps %xmm2,%xmm4
  mulss  0x14(%rax),%xmm4
  addss  %xmm5,%xmm4
  mulss  0x34(%rax),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x18(%rax),%xmm3
  addss  %xmm4,%xmm3
  mulss  0x38(%rax),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm0,%xmm5
  mulss  0x1c(%rax),%xmm5
  addss  %xmm3,%xmm5
  mulss  0x3c(%rax),%xmm0
  addss  %xmm1,%xmm0
  add    %rdx,%rax
  add    $0x20,%rcx
  cmp    %r10,%rcx
  jne    L16
  imul   %rbx,%rdx
  add    %rdx,%rsi
  lea    0x8(,%r11,8),%eax
L33:
  lea    -0x3(%rdi),%edx
  cmp    %eax,%edx
  jle    L32
  lea    -0x4(%rdi),%edx
  sub    %eax,%edx
  shr    $0x2,%edx
  add    $0x1,%edx
  mov    %edx,%edx
  shl    $0x4,%rdx
  lea    (%rsi,%rdx,1),%rcx
  mov    %r10,%rax
L13:
  movss  (%rax),%xmm3
  movss  0x4(%rax),%xmm2
  movss  0x8(%rax),%xmm1
  movss  0xc(%rax),%xmm4
  movaps %xmm3,%xmm6
  mulss  (%rsi),%xmm6
  addss  %xmm5,%xmm6
  mulss  0x20(%rsi),%xmm3
  addss  %xmm0,%xmm3
  movaps %xmm2,%xmm5
  mulss  0x4(%rsi),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x24(%rsi),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm0
  mulss  0x8(%rsi),%xmm0
  addss  %xmm5,%xmm0
  mulss  0x28(%rsi),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm5
  mulss  0xc(%rsi),%xmm5
  addss  %xmm0,%xmm5
  mulss  0x2c(%rsi),%xmm4
  movaps %xmm4,%xmm0
  addss  %xmm1,%xmm0
  add    $0x10,%rsi
  add    $0x10,%rax
  cmp    %rcx,%rsi
  jne    L13
  add    %rdx,%r10
L31:
  movss  (%r10),%xmm1
  movaps %xmm1,%xmm2
  mulss  (%rcx),%xmm2
  addss  %xmm5,%xmm2
  mulss  0x20(%rcx),%xmm1
  addss  %xmm0,%xmm1
  movss  0x24(%rcx),%xmm0
  mulss  0x4(%r10),%xmm0
  addss  %xmm1,%xmm0
  test   %r9d,%r9d
  jne    L56
  movss  %xmm2,(%r8)
L4:
  movss  %xmm0,0x4(%r8)
  pop    %rbx
  ret
L86:
  mov    %rcx,%r10
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  mov    $0x0,%eax
  jmp    L33
L32:
  mov    %rsi,%rcx
  jmp    L31
L56:
  cmp    $0x1,%r9d
  je     L54
  movss  (%r8),%xmm1
  subss  %xmm2,%xmm1
  movss  %xmm1,(%r8)
  movss  0x4(%r8),%xmm1
  subss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  jmp    L4
L54:
  addss  (%r8),%xmm2
  movss  %xmm2,(%r8)
  addss  0x4(%r8),%xmm0
  jmp    L4
```

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