user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xe8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  movabs $0x6e6f6c6563726142,%rax
  mov    %rax,0x50(%rsp)
  movw   $0x61,0x58(%rsp)
  movabs $0x6e616c694d,%rax
  mov    %rax,0x5a(%rsp)
  movw   $0x0,0x62(%rsp)
  movabs $0x6f6163736156,%rax
  mov    %rax,0x64(%rsp)
  movw   $0x0,0x6c(%rsp)
  movl   $0x9,0x38(%rsp)
  movl   $0x5,0x3c(%rsp)
  movl   $0x6,0x40(%rsp)
  movl   $0x0,0x70(%rsp)
  movl   $0x0,0x74(%rsp)
  movl   $0x0,0x88(%rsp)
  movl   $0x0,0x8c(%rsp)
  movl   $0x0,0xa0(%rsp)
  movl   $0x0,0xa4(%rsp)
  lea    D13(%rip),%rdi
  call   <puts@plt>
  lea    0x50(%rsp),%rdx
  mov    $0x0,%esi
  lea    D96(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x5a(%rsp),%rdx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x64(%rsp),%rdx
  mov    $0x2,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D119(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x2c(%rsp),%rsi
  lea    D120(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movl   $0x0,0x44(%rsp)
  movl   $0x0,0x48(%rsp)
  movl   $0x0,0x4c(%rsp)
  mov    0x2c(%rsp),%esi
  lea    D63(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x2c(%rsp)
  jle    L51
  movl   $0x0,0x14(%rsp)
  lea    0xce(%rsp),%rax
  mov    %rax,(%rsp)
  lea    0xc4(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L85
L185:
  add    $0x1,%rbp
  add    $0xa,%r12
  cmp    $0x3,%rbp
  je     L101
L130:
  mov    0x38(%rsp,%rbp,4),%r15d
  mov    %r15d,%edx
  mov    %r12,%rsi
  mov    0x8(%rsp),%rdi
  mov    $0x0,%eax
  call   <strAreEquals@plt>
  test   %eax,%eax
  cmovne %ebp,%ebx
  mov    %r15d,%edx
  mov    %r12,%rsi
  mov    (%rsp),%rdi
  mov    $0x0,%eax
  call   <strAreEquals@plt>
  test   %eax,%eax
  cmovne %ebp,%r14d
  cmp    $0xffffffff,%ebx
  je     L185
  cmp    $0xffffffff,%r14d
  je     L185
L101:
  lea    D98(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%eax
  and    %r14d,%eax
  cmp    $0xffffffff,%eax
  je     L58
  lea    D15(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x30(%rsp),%edi
  movslq %ebx,%rbx
  lea    (%rbx,%rbx,1),%r12
  lea    (%r12,%rbx,1),%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %edi,%xmm0
  addss  0x70(%rsp,%rax,8),%xmm0
  movss  %xmm0,0x18(%rsp)
  movss  %xmm0,0x70(%rsp,%rax,8)
  mov    0x34(%rsp),%esi
  pxor   %xmm0,%xmm0
  cvtsi2ss %esi,%xmm0
  movaps %xmm0,%xmm4
  addss  0x74(%rsp,%rax,8),%xmm4
  movss  %xmm4,0x1c(%rsp)
  movss  %xmm4,0x74(%rsp,%rax,8)
  mov    $0x0,%eax
  call   <points@plt>
  mov    %eax,%ecx
  lea    (%r12,%rbx,1),%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %ecx,%xmm0
  addss  0x7c(%rsp,%rax,8),%xmm0
  movss  %xmm0,0x7c(%rsp,%rax,8)
  pxor   %xmm0,%xmm0
  cvtss2sd 0x18(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x1c(%rsp),%xmm1
  mov    $0x2,%eax
  call   <average@plt>
  mov    0x34(%rsp),%edi
  movslq %r14d,%rbp
  lea    0x0(%rbp,%rbp,1),%r13
  lea    0x0(%r13,%rbp,1),%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %edi,%xmm0
  addss  0x70(%rsp,%rax,8),%xmm0
  movss  %xmm0,0x18(%rsp)
  movss  %xmm0,0x70(%rsp,%rax,8)
  mov    0x30(%rsp),%esi
  pxor   %xmm0,%xmm0
  cvtsi2ss %esi,%xmm0
  movaps %xmm0,%xmm5
  addss  0x74(%rsp,%rax,8),%xmm5
  movss  %xmm5,0x1c(%rsp)
  movss  %xmm5,0x74(%rsp,%rax,8)
  mov    $0x0,%eax
  call   <points@plt>
  mov    %eax,%edx
  lea    0x0(%r13,%rbp,1),%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %edx,%xmm0
  movaps %xmm0,%xmm6
  addss  0x7c(%rsp,%rax,8),%xmm6
  movd   %xmm6,%r14d
  movss  %xmm6,0x7c(%rsp,%rax,8)
  pxor   %xmm0,%xmm0
  cvtss2sd 0x18(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x1c(%rsp),%xmm1
  mov    $0x2,%eax
  call   <average@plt>
  add    %rbx,%r12
  movss  0x7c(%rsp,%r12,8),%xmm0
  movss  %xmm0,0x44(%rsp,%rbx,4)
  mov    %r14d,0x44(%rsp,%rbp,4)
  lea    D131(%rip),%rdi
  call   <puts@plt>
  addl   $0x1,0x14(%rsp)
  mov    0x14(%rsp),%eax
  cmp    %eax,0x2c(%rsp)
  jle    L51
L85:
  lea    0x34(%rsp),%rcx
  lea    0x30(%rsp),%rdx
  mov    (%rsp),%r8
  mov    0x8(%rsp),%rsi
  lea    D48(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    0x50(%rsp),%r12
  mov    $0x0,%ebp
  mov    $0xffffffff,%r14d
  mov    $0xffffffff,%ebx
  jmp    L130
L51:
  lea    D69(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movss  0x44(%rsp),%xmm1
  movss  0x48(%rsp),%xmm0
  movss  0x4c(%rsp),%xmm2
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    $0x0,%ecx
  mov    $0x1,%eax
L169:
  comiss %xmm1,%xmm0
  jbe    L36
  comiss %xmm1,%xmm2
  jbe    L146
  mov    %eax,%ecx
L149:
  mov    %eax,%edx
L19:
  movaps %xmm1,%xmm3
  movaps %xmm0,%xmm1
  movaps %xmm2,%xmm0
  movaps %xmm3,%xmm2
  mov    %eax,%esi
  jmp    L169
L89:
  movaps %xmm1,%xmm3
  movaps %xmm0,%xmm1
  movaps %xmm3,%xmm0
  jmp    L149
L146:
  movaps %xmm1,%xmm3
  movaps %xmm2,%xmm1
  movaps %xmm3,%xmm2
  mov    %eax,%ecx
  jmp    L19
L58:
  mov    $0x29a,%eax
  jmp    L193
L36:
  comiss %xmm0,%xmm2
  ja     L89
  test   %dl,%dl
  je     L111
  movss  %xmm2,0x4c(%rsp)
L111:
  test   %sil,%sil
  je     L114
  movss  %xmm0,0x48(%rsp)
L114:
  test   %cl,%cl
  je     L56
  movss  %xmm1,0x44(%rsp)
L56:
  lea    D97(%rip),%rdi
  call   <puts@plt>
  lea    0x50(%rsp),%rdx
  mov    $0x0,%esi
  lea    D26(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x5a(%rsp),%rdx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x64(%rsp),%rdx
  mov    $0x2,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%ebx
  lea    D135(%rip),%rbp
L155:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x44(%rsp,%rbx,4),%xmm0
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0x3,%rbx
  jne    L155
  lea    D103(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
L193:
  mov    0xd8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L22
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D13
type: string
name: parse_data
arguments: label: D96
type: string
name: parse_data
arguments: label: D119
type: string
name: parse_data
arguments: label: D120
type: string
name: parse_data
arguments: label: D63
type: string
name: parse_data
arguments: label: D98
type: string
name: parse_data
arguments: label: D15
type: string
name: parse_data
arguments: label: D131
type: string
name: parse_data
arguments: label: D48
type: string
name: parse_data
arguments: label: D69
type: string
name: parse_data
arguments: label: D97
type: string
name: parse_data
arguments: label: D26
type: string
name: parse_data
arguments: label: D135
type: string
name: parse_data
arguments: label: D103
type: string

tool: D13: Times cadastrados:

tool: D96: %d -> %s


tool: D119: 
Quantidade de jogos: 

tool: D120: %d

tool: D63: 
Resultados das %d partidas (ex: "Vascao 1 x 3 Barcelona"):


tool: D98: (Procurando times... 

tool: D15: Ok. Processando escrita... 

tool: D131: Ok. Pronto.)

tool: D48:  %s %d x %d %s

tool: D69: 
(Classificando... 

tool: D97: Ok. Imprimindo...)

tool: D26: %d: %s


tool: D135: %do lugar tem %f pontos.


tool: D103: (Pronto.)

assistant: ```c
int main() {
  int gamesQtt;
  char table_names[3][10] = {"Barcelona", "Milan", "Vascao"};
  int table_names_sizes[3] = {9, 5, 6};
  float table_data[3][6];
  int i, j, k;
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      table_data[i][j] = 0;
    }
  }
  printf("Times cadastrados:\n");
  for (i = 0; i < 3; i++) {
    printf("%d -> %s\n", i, table_names[i]);
  }
  printf("\nQuantidade de jogos: ");
  scanf("%d", &gamesQtt);
  char teamName1[10], teamName2[10];
  int teamScore1, teamScore2;
  int teamIndex1, teamIndex2;
  float pointsAux[3] = {0, 0, 0};
  printf("\nResultados das %d partidas (ex: \"Vascao 1 x 3 Barcelona\"):\n", gamesQtt);
  for (i = 0; i < gamesQtt; i++) {
    scanf(" %s %d x %d %s", teamName1, &teamScore1, &teamScore2, teamName2);
    teamIndex1 = -1;
    teamIndex2 = -1;
    for (j = 0; j < 3; j++) {
      if (strAreEquals(teamName1, table_names[j], table_names_sizes[j]))
        teamIndex1 = j;
      if (strAreEquals(teamName2, table_names[j], table_names_sizes[j]))
        teamIndex2 = j;
      if ((teamIndex1 != -1) && (teamIndex2 != -1))
        break;
    }
    printf("(Procurando times... ");
    if ((teamIndex1 == -1) && (teamIndex2 == -1))
      return 666;
    printf("Ok. Processando escrita... ");
    table_data[teamIndex1][0] += (float)teamScore1;
    table_data[teamIndex1][1] += (float)teamScore2;
    table_data[teamIndex1][2] += (teamScore1 > teamScore2) ? 1.0 : 0.0;
    table_data[teamIndex1][3] += points(teamScore1, teamScore2);
    table_data[teamIndex1][4] += (float)(teamScore1 - teamScore2);
    table_data[teamIndex1][5] = average(table_data[teamIndex1][0], table_data[teamIndex1][1]);
    table_data[teamIndex2][0] += (float)teamScore2;
    table_data[teamIndex2][1] += (float)teamScore1;
    table_data[teamIndex2][2] += (teamScore2 > teamScore1) ? 1.0 : 0.0;
    table_data[teamIndex2][3] += points(teamScore2, teamScore1);
    table_data[teamIndex2][4] += (float)(teamScore2 - teamScore1);
    table_data[teamIndex2][5] = average(table_data[teamIndex2][0], table_data[teamIndex2][1]);
    pointsAux[teamIndex1] = table_data[teamIndex1][3];
    pointsAux[teamIndex2] = table_data[teamIndex2][3];
    printf("Ok. Pronto.)\n");
  }
  int classification[3] = {0, 1, 2};
  float aux;
  int leftIndex, rightIndex, swapped;
  printf("\n(Classificando... ");
  do {
    swapped = 0;
    for (i = 1; i < 3; i++) {
      leftIndex = i - 1;
      rightIndex = i;
      if (pointsAux[leftIndex] < pointsAux[rightIndex]) {
        aux = pointsAux[leftIndex];
        pointsAux[leftIndex] = pointsAux[rightIndex];
        pointsAux[rightIndex] = aux;
        swapped = 1;
      }
    }
  } while (swapped);
  printf("Ok. Imprimindo...)\n");
  for (i = 0; i < 3; i++) {
    printf("%d: %s\n", i, table_names[i]);
  }
  for (i = 0; i < 3; i++) {
    printf("%do lugar tem %f pontos.\n", i, pointsAux[i]);
  }
  printf("(Pronto.)\n");
  return 0;
}
```