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

```asm
<kernel_strmv_u_t_8_lib4>:
  endbr64
  mov    %edi,%eax
  lea    0x0(,%rdx,4),%edi
  push   %rbx
  movslq %edi,%rdi
  lea    0x0(,%rdi,4),%rbx
  cmp    $0x7,%eax
  jle    L8
  lea    -0x8(%rax),%r11d
  pxor   %xmm0,%xmm0
  shl    $0x3,%rdi
  lea    (%rsi,%rbx,1),%rdx
  shr    $0x3,%r11d
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm6
  mov    %rsi,%rax
  movaps %xmm0,%xmm7
  movaps %xmm0,%xmm8
  movaps %xmm0,%xmm9
  add    $0x1,%r11d
  mov    %r11,%r10
  movaps %xmm0,%xmm10
  movaps %xmm0,%xmm11
  shl    $0x5,%r10
  add    %rcx,%r10
L15:
  movss  (%rcx),%xmm4
  movss  (%rax),%xmm12
  add    $0x20,%rcx
  movss  0x20(%rax),%xmm13
  movss  0x30(%rax),%xmm14
  mulss  %xmm4,%xmm12
  movss  -0x1c(%rcx),%xmm3
  movss  -0x18(%rcx),%xmm2
  mulss  %xmm4,%xmm13
  movss  -0x14(%rcx),%xmm1
  mulss  %xmm4,%xmm14
  addss  %xmm12,%xmm11
  movss  0x10(%rax),%xmm12
  addss  %xmm9,%xmm13
  movss  0x50(%rax),%xmm9
  mulss  %xmm4,%xmm12
  addss  %xmm8,%xmm14
  movss  0x60(%rax),%xmm8
  mulss  %xmm4,%xmm9
  mulss  %xmm4,%xmm8
  addss  %xmm10,%xmm12
  movss  0x40(%rax),%xmm10
  addss  %xmm6,%xmm9
  movss  0x44(%rax),%xmm6
  mulss  %xmm4,%xmm10
  addss  %xmm5,%xmm8
  movss  0x64(%rax),%xmm5
  mulss  0x70(%rax),%xmm4
  mulss  %xmm3,%xmm6
  mulss  %xmm3,%xmm5
  addss  %xmm7,%xmm10
  movss  0x34(%rax),%xmm7
  addss  %xmm0,%xmm4
  movss  0x4(%rax),%xmm0
  mulss  %xmm3,%xmm7
  mulss  %xmm3,%xmm0
  addss  %xmm8,%xmm5
  movss  0x38(%rax),%xmm8
  addss  %xmm10,%xmm6
  movss  0x18(%rax),%xmm10
  mulss  %xmm2,%xmm8
  mulss  %xmm2,%xmm10
  addss  %xmm14,%xmm7
  addss  %xmm0,%xmm11
  movss  0x14(%rax),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm7,%xmm8
  movss  0x48(%rax),%xmm7
  mulss  %xmm2,%xmm7
  addss  %xmm0,%xmm12
  movss  0x24(%rax),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm6,%xmm7
  movss  0xc(%rax),%xmm6
  addss  %xmm12,%xmm10
  movss  0x3c(%rax),%xmm12
  mulss  %xmm1,%xmm6
  mulss  %xmm1,%xmm12
  addss  %xmm0,%xmm13
  movss  0x54(%rax),%xmm0
  mulss  %xmm3,%xmm0
  mulss  0x74(%rax),%xmm3
  addss  %xmm8,%xmm12
  addss  %xmm9,%xmm0
  movss  0x28(%rax),%xmm9
  addss  %xmm4,%xmm3
  movss  0x8(%rax),%xmm4
  mulss  %xmm2,%xmm9
  mulss  %xmm2,%xmm4
  addss  %xmm13,%xmm9
  addss  %xmm4,%xmm11
  movss  0x58(%rax),%xmm4
  mulss  %xmm2,%xmm4
  addss  %xmm11,%xmm6
  movss  0x2c(%rax),%xmm11
  mulss  %xmm1,%xmm11
  addss  %xmm0,%xmm4
  movss  0x68(%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm9,%xmm11
  mulss  0x78(%rax),%xmm2
  addss  %xmm5,%xmm0
  movss  0x1c(%rax),%xmm5
  addss  %xmm2,%xmm3
  mulss  %xmm1,%xmm5
  addss  %xmm10,%xmm5
  movss  0x4c(%rax),%xmm10
  movss  0x5c(%rax),%xmm9
  movss  0x6c(%rax),%xmm8
  mulss  %xmm1,%xmm10
  mulss  %xmm1,%xmm9
  mulss  %xmm1,%xmm8
  mulss  0x7c(%rax),%xmm1
  add    %rdi,%rax
  addss  %xmm7,%xmm10
  movss  (%rdx),%xmm7
  addss  %xmm4,%xmm9
  movss  -0xc(%rcx),%xmm4
  addss  %xmm0,%xmm8
  movss  -0x4(%rcx),%xmm0
  movaps %xmm1,%xmm2
  movss  -0x8(%rcx),%xmm1
  addss  %xmm3,%xmm2
  movss  -0x10(%rcx),%xmm3
  mulss  %xmm3,%xmm7
  addss  %xmm6,%xmm7
  movss  0x10(%rdx),%xmm6
  mulss  %xmm3,%xmm6
  addss  %xmm5,%xmm6
  movss  0x20(%rdx),%xmm5
  mulss  %xmm3,%xmm5
  addss  %xmm11,%xmm5
  movss  0x30(%rdx),%xmm11
  mulss  %xmm3,%xmm11
  addss  %xmm12,%xmm11
  movss  0x40(%rdx),%xmm12
  mulss  %xmm3,%xmm12
  addss  %xmm10,%xmm12
  movss  0x50(%rdx),%xmm10
  mulss  %xmm3,%xmm10
  addss  %xmm9,%xmm10
  movss  0x60(%rdx),%xmm9
  mulss  %xmm3,%xmm9
  mulss  0x70(%rdx),%xmm3
  addss  %xmm8,%xmm9
  movss  0x4(%rdx),%xmm8
  addss  %xmm2,%xmm3
  movss  0x54(%rdx),%xmm2
  mulss  %xmm4,%xmm8
  mulss  %xmm4,%xmm2
  addss  %xmm7,%xmm8
  movss  0x14(%rdx),%xmm7
  addss  %xmm10,%xmm2
  movss  0x64(%rdx),%xmm10
  mulss  %xmm4,%xmm7
  mulss  %xmm4,%xmm10
  addss  %xmm6,%xmm7
  movss  0x24(%rdx),%xmm6
  addss  %xmm9,%xmm10
  movss  0x8(%rdx),%xmm9
  mulss  %xmm4,%xmm6
  mulss  %xmm1,%xmm9
  addss  %xmm5,%xmm6
  movss  0x34(%rdx),%xmm5
  addss  %xmm8,%xmm9
  movss  0x18(%rdx),%xmm8
  mulss  %xmm4,%xmm5
  mulss  %xmm1,%xmm8
  addss  %xmm11,%xmm5
  movss  0x44(%rdx),%xmm11
  addss  %xmm7,%xmm8
  movss  0x28(%rdx),%xmm7
  mulss  %xmm4,%xmm11
  mulss  %xmm1,%xmm7
  mulss  0x74(%rdx),%xmm4
  addss  %xmm12,%xmm11
  addss  %xmm6,%xmm7
  movss  0x38(%rdx),%xmm6
  addss  %xmm3,%xmm4
  movss  0x58(%rdx),%xmm3
  mulss  %xmm1,%xmm6
  mulss  %xmm1,%xmm3
  addss  %xmm5,%xmm6
  movss  0x48(%rdx),%xmm5
  addss  %xmm2,%xmm3
  movss  0x68(%rdx),%xmm2
  mulss  %xmm1,%xmm5
  mulss  %xmm1,%xmm2
  mulss  0x78(%rdx),%xmm1
  addss  %xmm11,%xmm5
  movss  0xc(%rdx),%xmm11
  addss  %xmm10,%xmm2
  movss  0x1c(%rdx),%xmm10
  mulss  %xmm0,%xmm11
  addss  %xmm4,%xmm1
  mulss  %xmm0,%xmm10
  addss  %xmm9,%xmm11
  movss  0x2c(%rdx),%xmm9
  addss  %xmm8,%xmm10
  movss  0x3c(%rdx),%xmm8
  mulss  %xmm0,%xmm9
  mulss  %xmm0,%xmm8
  addss  %xmm7,%xmm9
  movss  0x4c(%rdx),%xmm7
  addss  %xmm6,%xmm8
  movss  0x5c(%rdx),%xmm6
  mulss  %xmm0,%xmm7
  mulss  %xmm0,%xmm6
  addss  %xmm5,%xmm7
  movss  0x6c(%rdx),%xmm5
  addss  %xmm3,%xmm6
  mulss  %xmm0,%xmm5
  mulss  0x7c(%rdx),%xmm0
  add    %rdi,%rdx
  addss  %xmm2,%xmm5
  addss  %xmm1,%xmm0
  cmp    %r10,%rcx
  jne    L15
  imul   %rdi,%r11
  add    %r11,%rsi
L51:
  movss  (%r10),%xmm1
  movss  (%rsi),%xmm12
  movss  0x4(%r10),%xmm2
  movss  0x8(%r10),%xmm3
  mulss  %xmm1,%xmm12
  movss  0xc(%r10),%xmm4
  addss  %xmm12,%xmm11
  movss  0x10(%rsi),%xmm12
  mulss  %xmm1,%xmm12
  addss  %xmm12,%xmm10
  movss  0x20(%rsi),%xmm12
  mulss  %xmm1,%xmm12
  addss  %xmm12,%xmm9
  movss  0x30(%rsi),%xmm12
  mulss  %xmm1,%xmm12
  addss  %xmm12,%xmm8
  movss  0x40(%rsi),%xmm12
  mulss  %xmm1,%xmm12
  addss  %xmm7,%xmm12
  movss  0x50(%rsi),%xmm7
  mulss  %xmm1,%xmm7
  addss  %xmm7,%xmm6
  movss  0x60(%rsi),%xmm7
  mulss  %xmm1,%xmm7
  mulss  0x70(%rsi),%xmm1
  addss  %xmm5,%xmm7
  movss  0x14(%rsi),%xmm5
  addss  %xmm0,%xmm1
  movss  0x34(%rsi),%xmm0
  mulss  %xmm2,%xmm5
  mulss  %xmm2,%xmm0
  addss  %xmm10,%xmm5
  movss  0x24(%rsi),%xmm10
  addss  %xmm0,%xmm8
  movss  0x44(%rsi),%xmm0
  mulss  %xmm2,%xmm10
  mulss  %xmm2,%xmm0
  addss  %xmm9,%xmm10
  movss  0x54(%rsi),%xmm9
  addss  %xmm0,%xmm12
  mulss  %xmm2,%xmm9
  addss  %xmm6,%xmm9
  movss  0x64(%rsi),%xmm6
  mulss  %xmm2,%xmm6
  mulss  0x74(%rsi),%xmm2
  addss  %xmm7,%xmm6
  movss  0x58(%rsi),%xmm7
  movaps %xmm2,%xmm0
  movss  0x28(%rsi),%xmm2
  addss  %xmm1,%xmm0
  movss  0x68(%rsi),%xmm1
  mulss  %xmm3,%xmm7
  mulss  %xmm3,%xmm2
  mulss  %xmm3,%xmm1
  addss  %xmm9,%xmm7
  movss  0x4c(%rsi),%xmm9
  addss  %xmm10,%xmm2
  movss  0x38(%rsi),%xmm10
  addss  %xmm6,%xmm1
  movss  0x3c(%rsi),%xmm6
  mulss  %xmm4,%xmm9
  mulss  %xmm3,%xmm10
  mulss  %xmm4,%xmm6
  addss  %xmm8,%xmm10
  movss  0x48(%rsi),%xmm8
  mulss  %xmm3,%xmm8
  mulss  0x78(%rsi),%xmm3
  addss  %xmm10,%xmm6
  movss  0x5c(%rsi),%xmm10
  mulss  %xmm4,%xmm10
  addss  %xmm12,%xmm8
  addss  %xmm0,%xmm3
  addss  %xmm8,%xmm9
  movss  0x6c(%rsi),%xmm8
  addss  %xmm7,%xmm10
  mulss  %xmm4,%xmm8
  mulss  0x7c(%rsi),%xmm4
  add    %rbx,%rsi
  addss  %xmm1,%xmm8
  movss  0x14(%r10),%xmm1
  addss  %xmm3,%xmm4
  movaps %xmm4,%xmm0
  movss  0x10(%r10),%xmm4
  movss  0x18(%r10),%xmm3
  movss  0x40(%rsi),%xmm7
  mulss  %xmm4,%xmm7
  addss  %xmm9,%xmm7
  movss  0x50(%rsi),%xmm9
  mulss  %xmm4,%xmm9
  addss  %xmm10,%xmm9
  movss  0x60(%rsi),%xmm10
  mulss  %xmm4,%xmm10
  mulss  0x70(%rsi),%xmm4
  addss  %xmm8,%xmm10
  movss  0x54(%rsi),%xmm8
  addss  %xmm0,%xmm4
  mulss  %xmm1,%xmm8
  addss  %xmm9,%xmm8
  movss  0x64(%rsi),%xmm9
  mulss  %xmm1,%xmm9
  mulss  0x74(%rsi),%xmm1
  addss  %xmm10,%xmm9
  movaps %xmm1,%xmm0
  movss  0x68(%rsi),%xmm1
  addss  %xmm4,%xmm0
  mulss  %xmm3,%xmm1
  mulss  0x78(%rsi),%xmm3
  addss  %xmm9,%xmm1
  addss  %xmm0,%xmm3
  movss  0x7c(%rsi),%xmm0
  mulss  0x1c(%r10),%xmm0
  addss  %xmm3,%xmm0
  test   %r9d,%r9d
  je     L28
  movss  (%r8),%xmm15
  movss  0x4(%r8),%xmm14
  movss  0x8(%r8),%xmm13
  movss  0xc(%r8),%xmm12
  movss  0x10(%r8),%xmm10
  movss  0x14(%r8),%xmm9
  movss  0x18(%r8),%xmm4
  movss  0x1c(%r8),%xmm3
  cmp    $0x1,%r9d
  je     L39
  subss  %xmm11,%xmm15
  subss  %xmm5,%xmm14
  subss  %xmm2,%xmm13
  subss  %xmm6,%xmm12
  subss  %xmm7,%xmm10
  subss  %xmm8,%xmm9
  subss  %xmm1,%xmm4
  subss  %xmm0,%xmm3
  movaps %xmm15,%xmm11
  movaps %xmm14,%xmm5
  movaps %xmm13,%xmm2
  movaps %xmm12,%xmm6
  movaps %xmm10,%xmm7
  movaps %xmm9,%xmm8
  movaps %xmm4,%xmm1
  movaps %xmm3,%xmm0
L28:
  movss  %xmm11,(%r8)
  pop    %rbx
  movss  %xmm5,0x4(%r8)
  movss  %xmm2,0x8(%r8)
  movss  %xmm6,0xc(%r8)
  movss  %xmm7,0x10(%r8)
  movss  %xmm8,0x14(%r8)
  movss  %xmm1,0x18(%r8)
  movss  %xmm0,0x1c(%r8)
  ret
  nopw   0x0(%rax,%rax,1)
L39:
  addss  %xmm15,%xmm11
  addss  %xmm14,%xmm5
  addss  %xmm13,%xmm2
  addss  %xmm12,%xmm6
  addss  %xmm10,%xmm7
  addss  %xmm9,%xmm8
  addss  %xmm4,%xmm1
  addss  %xmm3,%xmm0
  jmp    L28
  nopl   0x0(%rax,%rax,1)
L8:
  pxor   %xmm0,%xmm0
  mov    %rcx,%r10
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm7
  movaps %xmm0,%xmm8
  movaps %xmm0,%xmm9
  movaps %xmm0,%xmm10
  movaps %xmm0,%xmm11
  jmp    L51
```

assistant: ```c
void kernel_strmv_u_t_8_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, y_2 = 0, y_3 = 0, y_4 = 0, y_5 = 0, y_6 = 0, y_7 = 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_4 += A[0 + lda * 4] * x_0;
    y_5 += A[0 + lda * 5] * x_0;
    y_6 += A[0 + lda * 6] * x_0;
    y_7 += A[0 + lda * 7] * 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_4 += A[1 + lda * 4] * x_1;
    y_5 += A[1 + lda * 5] * x_1;
    y_6 += A[1 + lda * 6] * x_1;
    y_7 += A[1 + lda * 7] * 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_4 += A[2 + lda * 4] * x_2;
    y_5 += A[2 + lda * 5] * x_2;
    y_6 += A[2 + lda * 6] * x_2;
    y_7 += A[2 + lda * 7] * 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;
    y_4 += A[3 + lda * 4] * x_3;
    y_5 += A[3 + lda * 5] * x_3;
    y_6 += A[3 + lda * 6] * x_3;
    y_7 += A[3 + lda * 7] * 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_2 += A[0 + lda * 2] * x_0;
    y_3 += A[0 + lda * 3] * x_0;
    y_4 += A[0 + lda * 4] * x_0;
    y_5 += A[0 + lda * 5] * x_0;
    y_6 += A[0 + lda * 6] * x_0;
    y_7 += A[0 + lda * 7] * 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_4 += A[1 + lda * 4] * x_1;
    y_5 += A[1 + lda * 5] * x_1;
    y_6 += A[1 + lda * 6] * x_1;
    y_7 += A[1 + lda * 7] * 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_4 += A[2 + lda * 4] * x_2;
    y_5 += A[2 + lda * 5] * x_2;
    y_6 += A[2 + lda * 6] * x_2;
    y_7 += A[2 + lda * 7] * 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;
    y_4 += A[3 + lda * 4] * x_3;
    y_5 += A[3 + lda * 5] * x_3;
    y_6 += A[3 + lda * 6] * x_3;
    y_7 += A[3 + lda * 7] * 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_2 += A[0 + lda * 2] * x_0;
  y_3 += A[0 + lda * 3] * x_0;
  y_4 += A[0 + lda * 4] * x_0;
  y_5 += A[0 + lda * 5] * x_0;
  y_6 += A[0 + lda * 6] * x_0;
  y_7 += A[0 + lda * 7] * 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_4 += A[1 + lda * 4] * x_1;
  y_5 += A[1 + lda * 5] * x_1;
  y_6 += A[1 + lda * 6] * x_1;
  y_7 += A[1 + lda * 7] * x_1;
  y_2 += A[2 + lda * 2] * x_2;
  y_3 += A[2 + lda * 3] * x_2;
  y_4 += A[2 + lda * 4] * x_2;
  y_5 += A[2 + lda * 5] * x_2;
  y_6 += A[2 + lda * 6] * x_2;
  y_7 += A[2 + lda * 7] * x_2;
  y_3 += A[3 + lda * 3] * x_3;
  y_4 += A[3 + lda * 4] * x_3;
  y_5 += A[3 + lda * 5] * x_3;
  y_6 += A[3 + lda * 6] * x_3;
  y_7 += A[3 + lda * 7] * x_3;
  A += sda * bs;
  x += 4;
  x_0 = x[0];
  x_1 = x[1];
  x_2 = x[2];
  x_3 = x[3];
  y_4 += A[0 + lda * 4] * x_0;
  y_5 += A[0 + lda * 5] * x_0;
  y_6 += A[0 + lda * 6] * x_0;
  y_7 += A[0 + lda * 7] * x_0;
  y_5 += A[1 + lda * 5] * x_1;
  y_6 += A[1 + lda * 6] * x_1;
  y_7 += A[1 + lda * 7] * x_1;
  y_6 += A[2 + lda * 6] * x_2;
  y_7 += A[2 + lda * 7] * x_2;
  y_7 += A[3 + lda * 7] * x_3;
  if (alg == 0) {
    y[0] = y_0;
    y[1] = y_1;
    y[2] = y_2;
    y[3] = y_3;
    y[4] = y_4;
    y[5] = y_5;
    y[6] = y_6;
    y[7] = y_7;
  } else if (alg == 1) {
    y[0] += y_0;
    y[1] += y_1;
    y[2] += y_2;
    y[3] += y_3;
    y[4] += y_4;
    y[5] += y_5;
    y[6] += y_6;
    y[7] += y_7;
  } else {
    y[0] -= y_0;
    y[1] -= y_1;
    y[2] -= y_2;
    y[3] -= y_3;
    y[4] -= y_4;
    y[5] -= y_5;
    y[6] -= y_6;
    y[7] -= y_7;
  }
}
```