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

```asm
<kernel_strmv_u_t_2_lib4>:
  endbr64
  push   %r13
  mov    %rcx,%r10
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  cmp    $0x7,%edi
  jle    L23
  lea    -0x8(%rdi),%ebp
  lea    0x0(,%rdx,4),%r11d
  pxor   %xmm0,%xmm0
  mov    %r10,%rax
  mov    %ebp,%r13d
  movslq %r11d,%r11
  movaps %xmm0,%xmm1
  mov    %rsi,%rdx
  shr    $0x3,%r13d
  lea    0x0(,%r11,4),%r12
  shl    $0x3,%r11
  add    $0x1,%r13d
  lea    (%rsi,%r12,1),%rcx
  shl    $0x5,%r13
  add    %r10,%r13
  cmp    $0x1,%ebx
  jne    L66
  xchg   %ax,%ax
L17:
  movss  (%rax),%xmm5
  movss  (%rdx),%xmm6
  add    $0x20,%rax
  movss  -0x1c(%rax),%xmm4
  movss  -0x18(%rax),%xmm3
  mulss  %xmm5,%xmm6
  movss  -0x14(%rax),%xmm2
  mulss  0x10(%rdx),%xmm5
  addss  %xmm1,%xmm6
  movss  0x4(%rdx),%xmm1
  addss  %xmm0,%xmm5
  movss  0x8(%rdx),%xmm0
  mulss  %xmm4,%xmm1
  mulss  0x14(%rdx),%xmm4
  mulss  %xmm3,%xmm0
  mulss  0x18(%rdx),%xmm3
  addss  %xmm6,%xmm1
  movss  0xc(%rdx),%xmm6
  addss  %xmm5,%xmm4
  movss  (%rcx),%xmm5
  mulss  %xmm2,%xmm6
  mulss  0x1c(%rdx),%xmm2
  addss  %xmm1,%xmm0
  movss  -0x8(%rax),%xmm1
  add    %r11,%rdx
  addss  %xmm4,%xmm3
  addss  %xmm0,%xmm6
  movss  -0x4(%rax),%xmm0
  movaps %xmm2,%xmm4
  movss  -0xc(%rax),%xmm2
  addss  %xmm3,%xmm4
  movss  -0x10(%rax),%xmm3
  mulss  %xmm3,%xmm5
  mulss  0x10(%rcx),%xmm3
  addss  %xmm6,%xmm5
  addss  %xmm4,%xmm3
  movss  0x4(%rcx),%xmm4
  mulss  %xmm2,%xmm4
  mulss  0x14(%rcx),%xmm2
  addss  %xmm5,%xmm4
  addss  %xmm3,%xmm2
  movss  0x8(%rcx),%xmm3
  mulss  %xmm1,%xmm3
  mulss  0x18(%rcx),%xmm1
  addss  %xmm4,%xmm3
  addss  %xmm1,%xmm2
  movss  0xc(%rcx),%xmm1
  mulss  %xmm0,%xmm1
  mulss  0x1c(%rcx),%xmm0
  add    %r11,%rcx
  addss  %xmm3,%xmm1
  addss  %xmm2,%xmm0
  cmp    %r13,%rax
  jne    L17
L42:
  shr    $0x3,%ebp
  lea    0x1(%rbp),%eax
  imul   %rax,%r12
  mov    %rax,%rbp
  shl    $0x5,%rax
  add    %rax,%r10
  shl    $0x3,%ebp
  lea    (%rsi,%r12,2),%rsi
L33:
  lea    -0x3(%rdi),%eax
  cmp    %ebp,%eax
  jle    L22
  lea    -0x4(%rdi),%ecx
  lea    0x0(,%rbx,4),%r11d
  mov    %rsi,%rdx
  xor    %eax,%eax
  sub    %ebp,%ecx
  movslq %r11d,%r11
  shr    $0x2,%ecx
  shl    $0x2,%r11
  add    $0x1,%ecx
L27:
  mov    %rax,%rdi
  movups (%rdx),%xmm3
  movups 0x10(%rdx),%xmm2
  add    $0x1,%rax
  shl    $0x4,%rdi
  add    %r11,%rdx
  movups (%r10,%rdi,1),%xmm4
  mulps  %xmm4,%xmm3
  mulps  %xmm4,%xmm2
  addss  %xmm3,%xmm1
  movaps %xmm3,%xmm5
  addss  %xmm2,%xmm0
  movaps %xmm2,%xmm4
  shufps $0x55,%xmm3,%xmm5
  shufps $0x55,%xmm2,%xmm4
  addss  %xmm1,%xmm5
  movaps %xmm3,%xmm1
  addss  %xmm0,%xmm4
  movaps %xmm2,%xmm0
  unpckhps %xmm3,%xmm1
  shufps $0xff,%xmm3,%xmm3
  unpckhps %xmm2,%xmm0
  shufps $0xff,%xmm2,%xmm2
  addss  %xmm5,%xmm1
  addss  %xmm4,%xmm0
  addss  %xmm3,%xmm1
  addss  %xmm2,%xmm0
  cmp    %eax,%ecx
  ja     L27
  imul   %rcx,%r11
  shl    $0x4,%rcx
  add    %rcx,%r10
  add    %r11,%rsi
L22:
  movq   (%rsi),%xmm4
  movq   0x10(%rsi),%xmm3
  movq   (%r10),%xmm2
  movss  %xmm4,%xmm3
  mulps  %xmm2,%xmm3
  mulss  0x10(%rsi),%xmm2
  addss  %xmm0,%xmm2
  unpcklps %xmm2,%xmm1
  addps  %xmm1,%xmm3
  test   %r9d,%r9d
  je     L92
  movq   (%r8),%xmm1
  cmp    $0x1,%r9d
  je     L79
  subps  %xmm3,%xmm1
  movaps %xmm1,%xmm3
L92:
  pop    %rbx
  movlps %xmm3,(%r8)
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   (%rax)
L66:
  movss  (%rax),%xmm5
  movss  (%rdx),%xmm6
  add    $0x20,%rax
  movss  -0x1c(%rax),%xmm4
  movss  -0x18(%rax),%xmm3
  mulss  %xmm5,%xmm6
  movss  -0x14(%rax),%xmm2
  mulss  0x10(%rdx),%xmm5
  addss  %xmm1,%xmm6
  movss  0x4(%rdx),%xmm1
  addss  %xmm0,%xmm5
  movss  0x8(%rdx),%xmm0
  mulss  %xmm4,%xmm1
  mulss  0x14(%rdx),%xmm4
  mulss  %xmm3,%xmm0
  mulss  0x18(%rdx),%xmm3
  addss  %xmm6,%xmm1
  movss  0xc(%rdx),%xmm6
  addss  %xmm5,%xmm4
  movss  (%rcx),%xmm5
  mulss  %xmm2,%xmm6
  mulss  0x1c(%rdx),%xmm2
  addss  %xmm1,%xmm0
  movss  -0x8(%rax),%xmm1
  add    %r11,%rdx
  addss  %xmm4,%xmm3
  addss  %xmm0,%xmm6
  movss  -0x4(%rax),%xmm0
  addss  %xmm3,%xmm2
  movss  -0x10(%rax),%xmm3
  mulss  %xmm3,%xmm5
  mulss  0x10(%rcx),%xmm3
  movaps %xmm2,%xmm4
  movss  -0xc(%rax),%xmm2
  addss  %xmm6,%xmm5
  addss  %xmm4,%xmm3
  movss  0x4(%rcx),%xmm4
  mulss  %xmm2,%xmm4
  mulss  0x14(%rcx),%xmm2
  addss  %xmm5,%xmm4
  addss  %xmm3,%xmm2
  movss  0x8(%rcx),%xmm3
  mulss  %xmm1,%xmm3
  mulss  0x18(%rcx),%xmm1
  addss  %xmm4,%xmm3
  addss  %xmm1,%xmm2
  movss  0xc(%rcx),%xmm1
  mulss  %xmm0,%xmm1
  mulss  0x1c(%rcx),%xmm0
  add    %r11,%rcx
  addss  %xmm3,%xmm1
  addss  %xmm2,%xmm0
  cmp    %r13,%rax
  jne    L66
  jmp    L42
L79:
  addps  %xmm1,%xmm3
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  movlps %xmm3,(%r8)
  ret
  xchg   %ax,%ax
L23:
  pxor   %xmm0,%xmm0
  xor    %ebp,%ebp
  movaps %xmm0,%xmm1
  jmp    L33
```

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