user: Please show me the C implementation that matches the assembly code listed below:

```asm
<kernel_strmv_u_n_4_lib8>:
  endbr64
  test   %edi,%edi
  jle    L30
  mov    %rsi,%r10
  push   %rbx
  movss  0x4(%rdx),%xmm1
  pxor   %xmm4,%xmm4
  movss  (%r10),%xmm2
  mulss  (%rdx),%xmm2
  mov    %rdx,%rsi
  mov    %rcx,%r9
  movss  0x20(%r10),%xmm3
  movss  0x8(%rdx),%xmm0
  add    $0x10,%rsi
  lea    0x80(%r10),%rax
  movups 0x60(%r10),%xmm6
  mulss  %xmm1,%xmm3
  mulss  0x24(%r10),%xmm1
  addss  %xmm4,%xmm2
  addss  %xmm2,%xmm3
  movss  0x40(%r10),%xmm2
  addss  %xmm4,%xmm1
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm2
  movss  0x44(%r10),%xmm3
  mulss  %xmm0,%xmm3
  mulss  0x48(%r10),%xmm0
  addss  %xmm1,%xmm3
  addss  %xmm4,%xmm0
  unpcklps %xmm3,%xmm2
  unpcklps %xmm4,%xmm0
  movlhps %xmm0,%xmm2
  movups (%rdx),%xmm0
  shufps $0xff,%xmm0,%xmm0
  mulps  %xmm6,%xmm0
  addps  %xmm0,%xmm2
  cmp    $0x7,%edi
  jle    L24
  lea    -0x8(%rdi),%ebx
  mov    %rsi,%rcx
  shr    $0x2,%ebx
  mov    %ebx,%r11d
  lea    0x2(%r11),%rdx
  shl    $0x7,%rdx
  add    %r10,%rdx
  nopl   (%rax)
L80:
  movups (%rcx),%xmm0
  movups (%rax),%xmm5
  sub    $0xffffffffffffff80,%rax
  add    $0x10,%rcx
  movups -0x60(%rax),%xmm7
  movups -0x40(%rax),%xmm4
  movaps %xmm0,%xmm1
  shufps $0x0,%xmm0,%xmm1
  mulps  %xmm5,%xmm1
  addps  %xmm2,%xmm1
  movaps %xmm0,%xmm2
  shufps $0x55,%xmm0,%xmm2
  mulps  %xmm7,%xmm2
  addps  %xmm2,%xmm1
  movaps %xmm0,%xmm2
  shufps $0xaa,%xmm0,%xmm2
  mulps  %xmm4,%xmm2
  shufps $0xff,%xmm0,%xmm0
  addps  %xmm2,%xmm1
  movups -0x20(%rax),%xmm2
  mulps  %xmm0,%xmm2
  addps  %xmm1,%xmm2
  cmp    %rdx,%rax
  jne    L80
  add    $0x1,%r11
  lea    0x8(,%rbx,4),%ecx
  shl    $0x4,%r11
  add    %r11,%rsi
L57:
  cmp    %ecx,%edi
  jle    L40
  lea    -0x1(%rdi),%r10d
  sub    %ecx,%r10d
  cmp    $0x3,%r10d
  jbe    L16
  mov    %r10d,%ebx
  mov    %rdx,%rax
  mov    %rsi,%r11
  shr    $0x2,%ebx
  sub    $0x1,%ebx
  shl    $0x7,%rbx
  lea    0x80(%rdx,%rbx,1),%rbx
L79:
  movups (%rax),%xmm4
  movups 0x10(%rax),%xmm5
  sub    $0xffffffffffffff80,%rax
  add    $0x10,%r11
  movups -0x60(%rax),%xmm8
  movups -0x40(%rax),%xmm6
  movaps %xmm4,%xmm1
  shufps $0xdd,%xmm5,%xmm4
  movups -0x20(%rax),%xmm7
  movups -0x10(%r11),%xmm9
  shufps $0x88,%xmm5,%xmm1
  movups -0x50(%rax),%xmm5
  movaps %xmm8,%xmm12
  movaps %xmm6,%xmm10
  movaps %xmm7,%xmm11
  movaps %xmm1,%xmm0
  shufps $0xdd,%xmm5,%xmm8
  shufps $0x88,%xmm5,%xmm12
  movups -0x30(%rax),%xmm5
  shufps $0x88,%xmm12,%xmm0
  shufps $0xdd,%xmm12,%xmm1
  shufps $0x88,%xmm5,%xmm10
  shufps $0xdd,%xmm5,%xmm6
  movups -0x10(%rax),%xmm5
  movaps %xmm10,%xmm3
  shufps $0xdd,%xmm5,%xmm7
  shufps $0x88,%xmm5,%xmm11
  movaps %xmm6,%xmm5
  shufps $0x88,%xmm11,%xmm3
  shufps $0x88,%xmm3,%xmm0
  movaps %xmm4,%xmm3
  shufps $0x88,%xmm7,%xmm5
  shufps $0xdd,%xmm11,%xmm10
  mulps  %xmm9,%xmm0
  shufps $0x88,%xmm8,%xmm3
  shufps $0x88,%xmm10,%xmm1
  shufps $0x88,%xmm5,%xmm3
  mulps  %xmm9,%xmm1
  movaps %xmm3,%xmm5
  shufps $0xdd,%xmm7,%xmm6
  shufps $0xdd,%xmm8,%xmm4
  mulps  %xmm9,%xmm5
  shufps $0x88,%xmm6,%xmm4
  mulps  %xmm9,%xmm4
  movaps %xmm0,%xmm3
  movaps %xmm1,%xmm6
  unpcklps %xmm5,%xmm3
  unpcklps %xmm4,%xmm6
  movaps %xmm4,%xmm8
  movlhps %xmm6,%xmm3
  movaps %xmm5,%xmm6
  shufps $0x55,%xmm4,%xmm8
  shufps $0x55,%xmm5,%xmm6
  addps  %xmm3,%xmm2
  movaps %xmm6,%xmm7
  movaps %xmm0,%xmm3
  movaps %xmm1,%xmm6
  shufps $0x55,%xmm0,%xmm3
  unpcklps %xmm7,%xmm3
  shufps $0x55,%xmm1,%xmm6
  unpcklps %xmm8,%xmm6
  movaps %xmm4,%xmm8
  movlhps %xmm6,%xmm3
  movaps %xmm5,%xmm6
  unpckhps %xmm4,%xmm8
  shufps $0xff,%xmm4,%xmm4
  unpckhps %xmm5,%xmm6
  addps  %xmm3,%xmm2
  movaps %xmm0,%xmm3
  shufps $0xff,%xmm5,%xmm5
  movaps %xmm6,%xmm7
  movaps %xmm1,%xmm6
  unpckhps %xmm0,%xmm3
  shufps $0xff,%xmm0,%xmm0
  unpckhps %xmm1,%xmm6
  unpcklps %xmm7,%xmm3
  unpcklps %xmm5,%xmm0
  shufps $0xff,%xmm1,%xmm1
  unpcklps %xmm8,%xmm6
  unpcklps %xmm4,%xmm1
  movlhps %xmm6,%xmm3
  movlhps %xmm1,%xmm0
  addps  %xmm3,%xmm2
  addps  %xmm0,%xmm2
  cmp    %rbx,%rax
  jne    L79
  and    $0xfffffffc,%r10d
  mov    %r10d,%eax
  add    %r10d,%ecx
  mov    %rax,%r11
  lea    (%rsi,%rax,4),%rsi
  shl    $0x5,%r11
  add    %r11,%rdx
L16:
  movss  (%rsi),%xmm0
  movups (%rdx),%xmm7
  lea    0x1(%rcx),%eax
  shufps $0x0,%xmm0,%xmm0
  mulps  %xmm7,%xmm0
  addps  %xmm0,%xmm2
  cmp    %eax,%edi
  jle    L40
  movss  0x4(%rsi),%xmm0
  movups 0x20(%rdx),%xmm6
  lea    0x2(%rcx),%eax
  shufps $0x0,%xmm0,%xmm0
  mulps  %xmm6,%xmm0
  addps  %xmm0,%xmm2
  cmp    %eax,%edi
  jle    L40
  movss  0x8(%rsi),%xmm0
  movups 0x40(%rdx),%xmm7
  add    $0x3,%ecx
  shufps $0x0,%xmm0,%xmm0
  mulps  %xmm7,%xmm0
  addps  %xmm0,%xmm2
  cmp    %ecx,%edi
  jle    L40
  movups 0x60(%rdx),%xmm0
  movss  0xc(%rsi),%xmm1
  shufps $0x0,%xmm1,%xmm1
  mulps  %xmm1,%xmm0
  addps  %xmm0,%xmm2
L40:
  test   %r8d,%r8d
  je     L25
  movups (%r9),%xmm0
  cmp    $0x1,%r8d
  je     L1
  subps  %xmm2,%xmm0
  movups %xmm0,(%r9)
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L25:
  movups %xmm2,(%r9)
  pop    %rbx
  ret
  xchg   %ax,%ax
L30:
  ret
  nopl   0x0(%rax)
L1:
  addps  %xmm2,%xmm0
  movups %xmm0,(%r9)
  pop    %rbx
  ret
  nopl   0x0(%rax)
L24:
  mov    %rax,%rdx
  mov    $0x4,%ecx
  jmp    L57
```

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;
  }
}
```