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

```asm
<kernel_ssymv_2_lib8>:
  endbr64
  mov    %edi,%r10d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x30(%rsp),%rdi
  mov    0x38(%rsp),%rbp
  mov    0x48(%rsp),%r12d
  test   %r10d,%r10d
  jle    L32
  mov    %esi,%r11d
  movss  (%r8),%xmm2
  mov    %rdx,%rsi
  movss  0x4(%r8),%xmm3
  mov    %ecx,%edx
  cmp    $0x1,%r12d
  je     L95
  movss  D1(%rip),%xmm0
  xorps  %xmm0,%xmm2
  xorps  %xmm0,%xmm3
L95:
  cmpl   $0x1,0x40(%rsp)
  je     L67
  pxor   %xmm0,%xmm0
  test   %r11d,%r11d
  jle    L79
  xor    %ecx,%ecx
  movaps %xmm0,%xmm1
L40:
  lea    -0x1(%r11),%eax
  sub    %ecx,%eax
  lea    0x4(,%rax,4),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L91:
  movss  (%rdi,%rax,1),%xmm5
  movss  (%rsi,%rax,1),%xmm6
  movaps %xmm2,%xmm7
  movss  0x20(%rsi,%rax,1),%xmm4
  mulss  %xmm6,%xmm7
  mulss  %xmm5,%xmm6
  addss  (%r9,%rax,1),%xmm7
  mulss  %xmm4,%xmm5
  mulss  %xmm3,%xmm4
  addss  %xmm6,%xmm1
  addss  %xmm5,%xmm0
  addss  %xmm7,%xmm4
  movss  %xmm4,(%r9,%rax,1)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L91
  add    %rax,%rsi
  add    %rax,%r9
  add    %rax,%rdi
L85:
  lea    -0x8(,%rdx,8),%eax
  cltq
  lea    (%rsi,%rax,4),%rsi
L146:
  lea    -0x7(%r10),%eax
  cmp    %eax,%r11d
  jge    L80
  lea    -0x8(%r10),%ebx
  lea    0x0(,%rdx,8),%r8d
  mov    %rsi,%rax
  mov    %rdi,%rdx
  sub    %r11d,%ebx
  movslq %r8d,%r8
  shr    $0x3,%ebx
  shl    $0x2,%r8
  lea    0x1(%rbx),%r13d
  mov    %r13,%r14
  shl    $0x5,%r14
  lea    (%r9,%r14,1),%rcx
  nopl   (%rax)
L92:
  movss  (%rdx),%xmm4
  movss  (%rax),%xmm6
  movaps %xmm2,%xmm7
  add    $0x20,%r9
  movss  0x20(%rax),%xmm5
  add    $0x20,%rdx
  mulss  %xmm6,%xmm7
  mulss  %xmm4,%xmm6
  addss  -0x20(%r9),%xmm7
  mulss  %xmm5,%xmm4
  mulss  %xmm3,%xmm5
  addss  %xmm1,%xmm6
  addss  %xmm0,%xmm4
  addss  %xmm7,%xmm5
  movaps %xmm2,%xmm7
  movss  %xmm5,-0x20(%r9)
  movss  0x4(%rax),%xmm5
  movss  0x24(%rax),%xmm1
  movss  -0x1c(%rdx),%xmm0
  mulss  %xmm5,%xmm7
  mulss  %xmm0,%xmm5
  addss  -0x1c(%r9),%xmm7
  mulss  %xmm1,%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm6
  addss  %xmm0,%xmm4
  addss  %xmm7,%xmm1
  movaps %xmm2,%xmm7
  movss  %xmm1,-0x1c(%r9)
  movss  0x8(%rax),%xmm5
  movss  0x28(%rax),%xmm1
  movss  -0x18(%rdx),%xmm0
  mulss  %xmm5,%xmm7
  mulss  %xmm0,%xmm5
  addss  -0x18(%r9),%xmm7
  mulss  %xmm1,%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm6
  addss  %xmm0,%xmm4
  addss  %xmm7,%xmm1
  movaps %xmm2,%xmm7
  movss  %xmm1,-0x18(%r9)
  movss  0xc(%rax),%xmm5
  movss  0x2c(%rax),%xmm1
  movss  -0x14(%rdx),%xmm0
  mulss  %xmm5,%xmm7
  mulss  %xmm0,%xmm5
  addss  -0x14(%r9),%xmm7
  mulss  %xmm1,%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm6
  addss  %xmm0,%xmm4
  addss  %xmm7,%xmm1
  movaps %xmm2,%xmm7
  movss  %xmm1,-0x14(%r9)
  movss  0x10(%rax),%xmm5
  movss  0x30(%rax),%xmm1
  movss  -0x10(%rdx),%xmm0
  mulss  %xmm5,%xmm7
  mulss  %xmm0,%xmm5
  addss  -0x10(%r9),%xmm7
  mulss  %xmm1,%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm6
  addss  %xmm0,%xmm4
  addss  %xmm7,%xmm1
  movaps %xmm2,%xmm7
  movss  %xmm1,-0x10(%r9)
  movss  0x14(%rax),%xmm5
  movss  0x34(%rax),%xmm1
  movss  -0xc(%rdx),%xmm0
  mulss  %xmm5,%xmm7
  mulss  %xmm0,%xmm5
  addss  -0xc(%r9),%xmm7
  mulss  %xmm1,%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm6
  addss  %xmm0,%xmm4
  addss  %xmm7,%xmm1
  movaps %xmm2,%xmm7
  movss  %xmm1,-0xc(%r9)
  movss  0x18(%rax),%xmm5
  movss  -0x8(%rdx),%xmm0
  movss  0x38(%rax),%xmm1
  mulss  %xmm5,%xmm7
  mulss  %xmm0,%xmm5
  addss  -0x8(%r9),%xmm7
  mulss  %xmm1,%xmm0
  mulss  %xmm3,%xmm1
  addss  %xmm5,%xmm6
  addss  %xmm4,%xmm0
  addss  %xmm7,%xmm1
  movaps %xmm2,%xmm7
  movaps %xmm0,%xmm5
  movss  %xmm1,-0x8(%r9)
  movss  0x1c(%rax),%xmm1
  movss  0x3c(%rax),%xmm4
  add    %r8,%rax
  movss  -0x4(%rdx),%xmm0
  mulss  %xmm1,%xmm7
  mulss  %xmm0,%xmm1
  addss  -0x4(%r9),%xmm7
  mulss  %xmm4,%xmm0
  mulss  %xmm3,%xmm4
  addss  %xmm6,%xmm1
  addss  %xmm5,%xmm0
  addss  %xmm7,%xmm4
  movss  %xmm4,-0x4(%r9)
  cmp    %rcx,%r9
  jne    L92
  imul   %r13,%r8
  add    %r14,%rdi
  lea    0x8(%r11,%rbx,8),%r11d
  add    %r8,%rsi
L28:
  cmp    %r11d,%r10d
  jle    L122
  sub    $0x1,%r10d
  xor    %eax,%eax
  sub    %r11d,%r10d
  nopw   0x0(%rax,%rax,1)
L21:
  movss  (%rdi,%rax,4),%xmm5
  movss  (%rsi,%rax,4),%xmm6
  movaps %xmm2,%xmm7
  mov    %rax,%rdx
  movss  0x20(%rsi,%rax,4),%xmm4
  mulss  %xmm6,%xmm7
  mulss  %xmm5,%xmm6
  addss  (%rcx,%rax,4),%xmm7
  mulss  %xmm4,%xmm5
  mulss  %xmm3,%xmm4
  addss  %xmm6,%xmm1
  addss  %xmm5,%xmm0
  addss  %xmm7,%xmm4
  movss  %xmm4,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %r10,%rdx
  jne    L21
L122:
  movss  0x0(%rbp),%xmm3
  movss  0x4(%rbp),%xmm2
  cmp    $0x1,%r12d
  je     L20
  subss  %xmm1,%xmm3
  subss  %xmm0,%xmm2
  movss  %xmm3,0x0(%rbp)
  movss  %xmm2,0x4(%rbp)
L32:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L67:
  movss  (%rdi),%xmm5
  mulss  (%rsi),%xmm5
  pxor   %xmm6,%xmm6
  add    $0x8,%rsi
  movss  0x4(%rdi),%xmm0
  movss  -0x4(%rsi),%xmm4
  add    $0x8,%r9
  add    $0x8,%rdi
  movaps %xmm0,%xmm1
  mulss  %xmm4,%xmm1
  mulss  0x1c(%rsi),%xmm0
  addss  %xmm6,%xmm5
  mulss  %xmm2,%xmm4
  addss  -0x4(%r9),%xmm4
  addss  %xmm5,%xmm1
  movss  %xmm4,-0x4(%r9)
  addss  %xmm6,%xmm0
  cmp    $0x2,%r11d
  jle    L48
  mov    $0x2,%ecx
  jmp    L40
  nopw   0x0(%rax,%rax,1)
L20:
  addss  %xmm1,%xmm3
  addss  %xmm0,%xmm2
  movss  %xmm3,0x0(%rbp)
  movss  %xmm2,0x4(%rbp)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L79:
  movaps %xmm0,%xmm1
  xor    %r11d,%r11d
  jmp    L146
  nopl   0x0(%rax,%rax,1)
L80:
  mov    %r9,%rcx
  jmp    L28
L48:
  mov    $0x2,%r11d
  jmp    L85
```

tool_calls: name: retrieve_data
arguments: tag: D1
type_infered: byte[4]

tool: {"D1": [0x00,0x00,0x00,0x80]}

assistant: ```c
void kernel_ssymv_2_lib8(int kmax, int kna, float *A, int sda, float *x_n, float *y_n, float *x_t, float *y_t, int tri, int alg) {
  if (kmax <= 0)
    return;
  const int lda = 8;
  int k;
  float a_00, a_01, x_n_0, x_n_1, y_n_0, x_t_0, y_t_0, y_t_1;
  if (alg == 1) {
    x_n_0 = x_n[0];
    x_n_1 = x_n[1];
  } else {
    x_n_0 = -x_n[0];
    x_n_1 = -x_n[1];
  }
  y_t_0 = 0;
  y_t_1 = 0;
  k = 0;
  if (tri == 1) {
    y_n_0 = y_n[0];
    x_t_0 = x_t[0];
    a_00 = A[0 + lda * 0];
    y_t_0 += a_00 * x_t_0;
    y_n[0] = y_n_0;
    y_n_0 = y_n[1];
    x_t_0 = x_t[1];
    a_00 = A[1 + lda * 0];
    a_01 = A[1 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_t_1 += a_01 * x_t_0;
    y_n[1] = y_n_0;
    A += 2;
    y_n += 2;
    x_t += 2;
    k += 2;
  }
  for (; k < kna; k++) {
    y_n_0 = y_n[0];
    x_t_0 = x_t[0];
    a_00 = A[0 + lda * 0];
    a_01 = A[0 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[0] = y_n_0;
    A += 1;
    y_n += 1;
    x_t += 1;
  }
  if (kna > 0 || tri == 1) {
    A += (sda - 1) * lda;
  }
  for (; k < kmax - lda + 1; k += lda) {
    y_n_0 = y_n[0];
    x_t_0 = x_t[0];
    a_00 = A[0 + lda * 0];
    a_01 = A[0 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[0] = y_n_0;
    y_n_0 = y_n[1];
    x_t_0 = x_t[1];
    a_00 = A[1 + lda * 0];
    a_01 = A[1 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[1] = y_n_0;
    y_n_0 = y_n[2];
    x_t_0 = x_t[2];
    a_00 = A[2 + lda * 0];
    a_01 = A[2 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[2] = y_n_0;
    y_n_0 = y_n[3];
    x_t_0 = x_t[3];
    a_00 = A[3 + lda * 0];
    a_01 = A[3 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[3] = y_n_0;
    y_n_0 = y_n[4];
    x_t_0 = x_t[4];
    a_00 = A[4 + lda * 0];
    a_01 = A[4 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[4] = y_n_0;
    y_n_0 = y_n[5];
    x_t_0 = x_t[5];
    a_00 = A[5 + lda * 0];
    a_01 = A[5 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[5] = y_n_0;
    y_n_0 = y_n[6];
    x_t_0 = x_t[6];
    a_00 = A[6 + lda * 0];
    a_01 = A[6 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[6] = y_n_0;
    y_n_0 = y_n[7];
    x_t_0 = x_t[7];
    a_00 = A[7 + lda * 0];
    a_01 = A[7 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[7] = y_n_0;
    A += sda * lda;
    y_n += 8;
    x_t += 8;
  }
  for (; k < kmax; k++) {
    y_n_0 = y_n[0];
    x_t_0 = x_t[0];
    a_00 = A[0 + lda * 0];
    a_01 = A[0 + lda * 1];
    y_n_0 += a_00 * x_n_0;
    y_t_0 += a_00 * x_t_0;
    y_n_0 += a_01 * x_n_1;
    y_t_1 += a_01 * x_t_0;
    y_n[0] = y_n_0;
    A += 1;
    y_n += 1;
    x_t += 1;
  }
  if (alg == 1) {
    y_t[0] += y_t_0;
    y_t[1] += y_t_1;
  } else {
    y_t[0] -= y_t_0;
    y_t[1] -= y_t_1;
  }
}
```