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

```asm
<kernel_strmv_u_t_2_lib4>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%r11d
  mov    %rsi,%r10
  mov    %edx,%edi
  mov    %rcx,%rax
  cmp    $0x7,%r11d
  jle    L47
  lea    0x0(,%rdx,4),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rsi
  lea    (%r10,%rdx,4),%rcx
  lea    -0x8(%r11),%ebp
  shr    $0x3,%ebp
  lea    0x1(%rbp),%r12d
  mov    %r12d,%r12d
  mov    %r12,%rbx
  shl    $0x5,%rbx
  add    %rax,%rbx
  mov    %r10,%rdx
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
L14:
  movss  (%rax),%xmm3
  movss  0x4(%rax),%xmm2
  movss  0x8(%rax),%xmm1
  movss  0xc(%rax),%xmm4
  movaps %xmm3,%xmm6
  mulss  (%rdx),%xmm6
  addss  %xmm5,%xmm6
  mulss  0x10(%rdx),%xmm3
  addss  %xmm0,%xmm3
  movaps %xmm2,%xmm5
  mulss  0x4(%rdx),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x14(%rdx),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm0
  mulss  0x8(%rdx),%xmm0
  addss  %xmm5,%xmm0
  mulss  0x18(%rdx),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm6
  mulss  0xc(%rdx),%xmm6
  addss  %xmm0,%xmm6
  mulss  0x1c(%rdx),%xmm4
  addss  %xmm1,%xmm4
  movss  0x10(%rax),%xmm3
  movss  0x14(%rax),%xmm2
  movss  0x18(%rax),%xmm1
  movss  0x1c(%rax),%xmm0
  movaps %xmm3,%xmm5
  mulss  (%rcx),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x10(%rcx),%xmm3
  addss  %xmm4,%xmm3
  movaps %xmm2,%xmm4
  mulss  0x4(%rcx),%xmm4
  addss  %xmm5,%xmm4
  mulss  0x14(%rcx),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm3
  mulss  0x8(%rcx),%xmm3
  addss  %xmm4,%xmm3
  mulss  0x18(%rcx),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm0,%xmm5
  mulss  0xc(%rcx),%xmm5
  addss  %xmm3,%xmm5
  mulss  0x1c(%rcx),%xmm0
  addss  %xmm1,%xmm0
  add    %rsi,%rdx
  add    $0x20,%rax
  add    %rsi,%rcx
  cmp    %rax,%rbx
  jne    L14
  imul   %r12,%rsi
  add    %rsi,%r10
  lea    0x8(,%rbp,8),%edx
L96:
  lea    -0x3(%r11),%ecx
  cmp    %edx,%ecx
  jle    L81
  lea    0x0(,%rdi,4),%ecx
  movslq %ecx,%rcx
  shl    $0x2,%rcx
  lea    -0x4(%r11),%esi
  sub    %edx,%esi
  shr    $0x2,%esi
  add    $0x1,%esi
  mov    %esi,%esi
  mov    %rsi,%rdi
  shl    $0x4,%rdi
  add    %rax,%rdi
  mov    %r10,%rdx
L40:
  movss  (%rax),%xmm3
  movss  0x4(%rax),%xmm2
  movss  0x8(%rax),%xmm1
  movss  0xc(%rax),%xmm4
  movaps %xmm3,%xmm6
  mulss  (%rdx),%xmm6
  addss  %xmm5,%xmm6
  mulss  0x10(%rdx),%xmm3
  addss  %xmm0,%xmm3
  movaps %xmm2,%xmm5
  mulss  0x4(%rdx),%xmm5
  addss  %xmm6,%xmm5
  mulss  0x14(%rdx),%xmm2
  addss  %xmm3,%xmm2
  movaps %xmm1,%xmm0
  mulss  0x8(%rdx),%xmm0
  addss  %xmm5,%xmm0
  mulss  0x18(%rdx),%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm5
  mulss  0xc(%rdx),%xmm5
  addss  %xmm0,%xmm5
  mulss  0x1c(%rdx),%xmm4
  movaps %xmm4,%xmm0
  addss  %xmm1,%xmm0
  add    %rcx,%rdx
  add    $0x10,%rax
  cmp    %rdi,%rax
  jne    L40
  imul   %rsi,%rcx
  add    %rcx,%r10
L74:
  movss  (%rdi),%xmm1
  movaps %xmm1,%xmm2
  mulss  (%r10),%xmm2
  addss  %xmm5,%xmm2
  mulss  0x10(%r10),%xmm1
  addss  %xmm0,%xmm1
  movss  0x14(%r10),%xmm0
  mulss  0x4(%rdi),%xmm0
  addss  %xmm1,%xmm0
  test   %r9d,%r9d
  jne    L38
  movss  %xmm2,(%r8)
L72:
  movss  %xmm0,0x4(%r8)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L47:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  mov    $0x0,%edx
  jmp    L96
L81:
  mov    %rax,%rdi
  jmp    L74
L38:
  cmp    $0x1,%r9d
  je     L58
  movss  (%r8),%xmm1
  subss  %xmm2,%xmm1
  movss  %xmm1,(%r8)
  movss  0x4(%r8),%xmm1
  subss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  jmp    L72
L58:
  addss  (%r8),%xmm2
  movss  %xmm2,(%r8)
  addss  0x4(%r8),%xmm0
  jmp    L72
```

assistant: ```c
void kernel_strmv_u_t_2_lib4(int kmax, float *A, int sda, float *x, float *y, int alg) {
  const int lda = 4;
  const int bs = 4;
  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;
    A += sda * bs;
    x += 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 += sda * bs;
    x += 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[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 += sda * bs;
    x += 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_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;
  }
}
```