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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <clrscr@plt>
  lea    D12(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D41(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x4(%rsp),%r14d
  lea    -0x1(%r14),%r12d
  lea    D24(%rip),%rdi
  call   <puts@plt>
  test   %r12d,%r12d
  js     L87
  mov    $0x0,%r15d
  lea    D57(%rip),%r13
L41:
  movl   $0x0,0x18(%rsp,%r15,4)
  movl   $0x0,0x10(%rsp,%r15,4)
  movl   $0x0,0x8(%rsp,%r15,4)
  cmpl   $0x0,0x4(%rsp)
  js     L139
  lea    (%r15,%r15,2),%rax
  lea    0x20(%rsp,%rax,4),%rbp
  mov    $0x0,%ebx
L34:
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0x4(%rsp)
  jge    L34
L139:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jge    L41
  lea    0x20(%rsp),%r13
  mov    $0x0,%ebp
  lea    D85(%rip),%r15
L138:
  mov    $0x0,%ebx
  cmpl   $0x0,0x4(%rsp)
  js     L27
L96:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x0(%r13,%rbx,4),%xmm0
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r15,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,0x4(%rsp)
  jge    L96
L27:
  add    $0x1,%ebp
  add    $0xc,%r13
  cmp    %ebp,%r14d
  jne    L138
  lea    0x8(%rsp),%rbp
L95:
  test   %r12d,%r12d
  js     L87
  movss  0x10(%rsp),%xmm0
  movss  %xmm0,0x18(%rsp)
  jle    L1
  movss  0x14(%rsp),%xmm0
  movss  %xmm0,0x1c(%rsp)
L1:
  lea    0x20(%rsp),%rcx
  mov    $0x0,%edx
  movslq 0x4(%rsp),%rdi
  mov    %rcx,%rsi
L105:
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L13:
  cmp    %edx,%eax
  je     L12
  movss  (%rcx,%rax,4),%xmm0
  mulss  0x0(%rbp,%rax,4),%xmm0
  addss  %xmm0,%xmm1
L12:
  add    $0x1,%rax
  cmp    %eax,%r12d
  jge    L13
  movss  (%rcx,%rdi,4),%xmm0
  subss  %xmm1,%xmm0
  mov    %rdx,%rax
  shl    $0x4,%rax
  divss  (%rax,%rsi,1),%xmm0
  movss  %xmm0,0x10(%rsp,%rdx,4)
  movss  %xmm0,0x0(%rbp,%rdx,4)
  add    $0x1,%rdx
  add    $0xc,%rcx
  cmp    %edx,%r12d
  jge    L105
  mov    $0x0,%ebx
L131:
  movss  0x18(%rsp,%rbx,4),%xmm0
  subss  0x10(%rsp,%rbx,4),%xmm0
  call   <fabs@plt>
  comisd D96(%rip),%xmm0
  ja     L95
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jge    L131
  lea    D26(%rip),%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x10(%rsp),%xmm0
  mov    $0x0,%esi
  lea    D81(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  test   %r12d,%r12d
  jle    L46
  pxor   %xmm0,%xmm0
  cvtss2sd 0x14(%rsp),%xmm0
  mov    $0x1,%esi
  lea    D81(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L46
L87:
  lea    D26(%rip),%rdi
  call   <puts@plt>
L46:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L91
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L91:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D12
type_guessed: string
name: retrieve_data
arguments: tag: D41
type_guessed: string
name: retrieve_data
arguments: tag: D24
type_guessed: string
name: retrieve_data
arguments: tag: D57
type_guessed: string
name: retrieve_data
arguments: tag: D85
type_guessed: string
name: retrieve_data
arguments: tag: D96
type_guessed: f64
name: retrieve_data
arguments: tag: D26
type_guessed: string
name: retrieve_data
arguments: tag: D81
type_guessed: string

tool: D12: How many unkown X's values do you want to solve?

tool: D41: %d

tool: D24: 
Please input cofficients and constants.


tool: D57: %f

tool: D85: a[%d][%d]=%f


tool: D96: 1e-09

tool: D26: 
I'm so sorry to delay your time so long.Now the X's values under the list.


tool: D81: x%d=%f


assistant: ```c
main() {
  int n, m, i, j;
  float sum = 0, x[2], xx[2], a[2][3], xxx[2];
  clrscr();
  printf("How many unkown X's values do you want to solve?");
  scanf("%d", &m);
  n = m - 1;
  printf("\nPlease input cofficients and constants.\n\n");
  for (i = 0; i <= n; i++) {
    x[i] = xx[i] = xxx[i] = 0;
    for (j = 0; j <= m; j++)
      scanf("%f", &a[i][j]);
    printf("\n");
  }
  for (i = 0; i <= n; i++)
    for (j = 0; j <= m; j++)
      printf("a[%d][%d]=%f\n", i, j, a[i][j]);
restart:
  for (i = 0; i <= n; i++)
    xxx[i] = xx[i];
  for (i = 0; i <= n; i++) {
    sum = 0;
    for (j = 0; j <= n; j++) {
      if (i == j)
        continue;
      else
        sum += a[i][j] * x[j];
    }
    xx[i] = (a[i][m] - sum) / a[i][i];
    x[i] = xx[i];
  }
  for (i = 0; i <= n; i++) {
    if (fabs(xxx[i] - xx[i]) > 0.000000001)
      goto restart;
  }
  printf("\nI'm so sorry to delay your time so long.Now the X's values under the list.\n\n");
  for (i = 0; i <= n; i++)
    printf("x%d=%f\n", i, xx[i]);
  getch();
}
```