user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r15
  lea    D2(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rsi
  lea    0x34(%rsp),%rdx
  call   <scanf@plt>
  movslq 0x30(%rsp),%rax
  lea    0x0(,%rax,4),%r14
  mov    %eax,0x8(%rsp)
  mov    %r14,%rdi
  mov    %rax,0x10(%rsp)
  call   <malloc@plt>
  movslq 0x34(%rsp),%rdi
  mov    %rax,%rbp
  mov    0x8(%rsp),%eax
  mov    %rdi,%r12
  cltd
  idiv   %edi
  shl    $0x3,%rdi
  mov    %eax,0x24(%rsp)
  call   <malloc@plt>
  test   %r12d,%r12d
  mov    0x8(%rsp),%esi
  mov    %rax,%r13
  jle    L140
  movslq 0x24(%rsp),%rbx
  mov    %r12d,%r12d
  mov    %rax,%r15
  lea    (%rax,%r12,8),%r12
  shl    $0x2,%rbx
  nopl   0x0(%rax)
L234:
  mov    %rbx,%rdi
  mov    %esi,0x8(%rsp)
  add    $0x8,%r15
  call   <malloc@plt>
  mov    0x8(%rsp),%esi
  mov    %rax,-0x8(%r15)
  cmp    %r12,%r15
  jne    L234
L140:
  mov    0x10(%rsp),%r15
  shl    $0x3,%r15
  test   %esi,%esi
  jle    L388
  mov    %esi,%ecx
  mov    %rbp,%rdi
  xor    %esi,%esi
  lea    0x0(,%rcx,4),%rdx
  mov    %rcx,0x8(%rsp)
  call   <memset@plt>
  mov    %r15,%rdi
  call   <malloc@plt>
  mov    0x8(%rsp),%rcx
  mov    %rax,%r12
  mov    %rax,%rbx
  lea    (%rax,%rcx,8),%rax
  mov    %r12,%r15
  mov    %rax,0x8(%rsp)
  xchg   %ax,%ax
L172:
  mov    %r14,%rdi
  add    $0x8,%r15
  call   <malloc@plt>
  mov    %rax,-0x8(%r15)
  cmp    0x8(%rsp),%r15
  jne    L172
  movl   $0x0,0x8(%rsp)
  lea    D14(%rip),%r14
  cs nopw 0x0(%rax,%rax,1)
L395:
  mov    (%rbx),%rax
  xor    %r15d,%r15d
  cs nopw 0x0(%rax,%rax,1)
L211:
  lea    (%rax,%r15,4),%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    (%rbx),%rax
  movss  0x0(%rbp,%r15,4),%xmm0
  mov    0x30(%rsp),%esi
  addss  (%rax,%r15,4),%xmm0
  movss  %xmm0,0x0(%rbp,%r15,4)
  add    $0x1,%r15
  cmp    %r15d,%esi
  jg     L211
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    %eax,%esi
  jle    L300
  add    $0x8,%rbx
  jmp    L395
L388:
  mov    %r15,%rdi
  mov    %esi,0x8(%rsp)
  call   <malloc@plt>
  mov    0x8(%rsp),%esi
  mov    %rax,%r12
L176:
  mov    0x34(%rsp),%eax
  xor    %ebx,%ebx
  test   %eax,%eax
  jle    L53
  nopw   0x0(%rax,%rax,1)
L156:
  mov    %rbp,%rcx
  xor    %r8d,%r8d
  cmp    $0x1,%esi
  jle    L55
  movss  0x0(%rbp),%xmm1
  lea    0x4(%rbp),%rax
  mov    $0x1,%edx
  xor    %r8d,%r8d
  jmp    L401
  xchg   %ax,%ax
L4:
  movslq %r8d,%rcx
  add    $0x1,%edx
  add    $0x4,%rax
  lea    0x0(%rbp,%rcx,4),%rcx
  cmp    %esi,%edx
  je     L55
L401:
  movss  (%rax),%xmm0
  mov    %rax,%rcx
  comiss %xmm1,%xmm0
  jbe    L4
  mov    %edx,%r8d
  add    $0x1,%edx
  movaps %xmm0,%xmm1
  add    $0x4,%rax
  cmp    %esi,%edx
  jne    L401
L55:
  mov    0x0(%r13,%rbx,8),%rax
  movl   $0xbf800000,(%rcx)
  mov    %r8d,%edx
  mov    %r12,%rdi
  add    $0x1,%rbx
  mov    %r8d,(%rax)
  xor    %eax,%eax
  call   <negativar@plt>
  mov    0x34(%rsp),%eax
  cmp    %ebx,%eax
  jle    L121
  mov    0x30(%rsp),%esi
  jmp    L156
L121:
  cmpl   $0x1,0x24(%rsp)
  jle    L410
L380:
  mov    0x24(%rsp),%ebx
  xor    %r14d,%r14d
  sub    $0x2,%ebx
  mov    %rbx,0x10(%rsp)
  test   %eax,%eax
  jle    L17
  nop
L49:
  lea    0x1(%r14),%rax
  xor    %r15d,%r15d
  mov    %rax,0x8(%rsp)
  lea    0x0(,%rax,4),%rbx
  nopl   0x0(%rax)
L41:
  mov    0x0(%r13,%r15,8),%rdi
  mov    0x30(%rsp),%r9d
  movslq (%rdi),%rax
  cmp    $0x1,%r9d
  jle    L352
  mov    (%r12,%rax,8),%rcx
  movslq %r9d,%rsi
  mov    $0x1,%eax
  xor    %edx,%edx
  movss  (%rcx),%xmm0
  nopl   0x0(%rax)
L422:
  movss  (%rcx,%rax,4),%xmm1
  comiss %xmm0,%xmm1
  maxss  %xmm0,%xmm1
  cmova  %eax,%edx
  add    $0x1,%rax
  movaps %xmm1,%xmm0
  cmp    %rax,%rsi
  jne    L422
L318:
  mov    %edx,(%rdi,%rbx,1)
  mov    %r9d,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <negativar@plt>
  mov    0x34(%rsp),%eax
  cmp    %r15d,%eax
  jg     L41
  cmp    %r14,0x10(%rsp)
  je     L410
  mov    0x8(%rsp),%r14
  test   %eax,%eax
  jg     L49
L17:
  mov    %rbp,%rdi
  call   <free@plt>
L10:
  mov    %r13,%rdi
  xor    %ebx,%ebx
  call   <free@plt>
  mov    0x30(%rsp),%eax
  test   %eax,%eax
  jle    L129
  xchg   %ax,%ax
L264:
  mov    (%r12,%rbx,8),%rdi
  add    $0x1,%rbx
  call   <free@plt>
  cmp    %ebx,0x30(%rsp)
  jg     L264
L129:
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L204
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L352:
  xor    %edx,%edx
  jmp    L318
L410:
  test   %eax,%eax
  jle    L17
  mov    0x24(%rsp),%eax
  mov    %r13,0x10(%rsp)
  lea    D35(%rip),%r14
  mov    %r13,0x18(%rsp)
  sub    $0x1,%eax
  movl   $0x0,0x8(%rsp)
  lea    0x4(,%rax,4),%rax
  mov    %rax,0x28(%rsp)
  nopl   0x0(%rax,%rax,1)
L354:
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%esi
  lea    D24(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  jle    L79
  mov    0x18(%rsp),%rax
  mov    (%rax),%r15
  mov    0x28(%rsp),%rax
  lea    (%rax,%r15,1),%rbx
L92:
  mov    (%r15),%eax
  mov    %r14,%rdi
  add    $0x4,%r15
  lea    0x1(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    %rbx,%r15
  jne    L92
L79:
  mov    $0xa,%edi
  call   <putchar@plt>
  addq   $0x8,0x18(%rsp)
  mov    0x34(%rsp),%ebx
  cmp    %ebx,0x8(%rsp)
  jl     L354
  mov    %rbp,%rdi
  call   <free@plt>
  test   %ebx,%ebx
  jle    L10
  lea    0x0(%r13,%rbx,8),%rbx
  nopl   0x0(%rax,%rax,1)
L123:
  mov    0x10(%rsp),%r14
  mov    (%r14),%rdi
  call   <free@plt>
  mov    %r14,%rax
  add    $0x8,%rax
  mov    %rax,0x10(%rsp)
  cmp    %rax,%rbx
  jne    L123
  jmp    L10
L53:
  cmpl   $0x1,0x24(%rsp)
  jg     L380
  jmp    L17
L204:
  call   <__stack_chk_fail@plt>
L300:
  test   %esi,%esi
  jle    L176
  pxor   %xmm2,%xmm2
  lea    -0x1(%rsi),%eax
  cvtsi2ss %esi,%xmm2
  cmp    $0x2,%eax
  jbe    L16
  mov    %esi,%edx
  movaps %xmm2,%xmm1
  mov    %rbp,%rax
  shr    $0x2,%edx
  shufps $0x0,%xmm1,%xmm1
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rbp,%rdx,1),%rdx
L73:
  movups (%rax),%xmm0
  add    $0x10,%rax
  divps  %xmm1,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L73
  mov    %esi,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%sil
  je     L176
L282:
  movslq %eax,%rdx
  shl    $0x2,%rdx
  lea    0x0(%rbp,%rdx,1),%rcx
  movss  (%rcx),%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rcx)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%esi
  jle    L176
  lea    0x4(%rbp,%rdx,1),%rcx
  add    $0x2,%eax
  movss  (%rcx),%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rcx)
  cmp    %eax,%esi
  jle    L176
  lea    0x8(%rbp,%rdx,1),%rax
  movss  (%rax),%xmm0
  divss  %xmm2,%xmm0
  movss  %xmm0,(%rax)
  jmp    L176
L16:
  xor    %eax,%eax
  jmp    L282
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D35
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D24
type_guessed: string

tool: D2: %d %d

tool: D14: %f

tool: D35:  %d

tool: D24: Time %d:

assistant: ```c
int main() {
  int nJogadores, nTimes, jTimes;
  int maior, capitao, i, j, k, **time;
  float **jogadores, *media;
  scanf("%d %d", &nJogadores, &nTimes);
  media = malloc(nJogadores * sizeof(float));
  jTimes = nJogadores / nTimes;
  time = malloc(nTimes * sizeof(int *));
  for (i = 0; i < nTimes; i++)
    time[i] = malloc(jTimes * sizeof(int));
  for (i = 0; i < nJogadores; i++)
    media[i] = 0;
  jogadores = malloc(nJogadores * sizeof(float *));
  for (i = 0; i < nJogadores; i++)
    jogadores[i] = malloc(nJogadores * sizeof(float));
  for (i = 0; i < nJogadores; i++) {
    for (j = 0; j < nJogadores; j++) {
      scanf("%f", &jogadores[i][j]);
      media[j] += jogadores[i][j];
    }
  }
  for (i = 0; i < nJogadores; i++)
    media[i] /= nJogadores;
  for (i = 0; i < nTimes; i++) {
    maior = 0;
    for (j = 1; j < nJogadores; j++) {
      if (media[j] > media[maior]) {
        maior = j;
      }
    }
    time[i][0] = maior;
    media[maior] = -1;
    negativar(jogadores, nJogadores, maior);
  }
  for (i = 1; i < jTimes; i++) {
    for (j = 0; j < nTimes; j++) {
      maior = 0;
      capitao = time[j][0];
      for (k = 1; k < nJogadores; k++) {
        if (jogadores[capitao][k] > jogadores[capitao][maior])
          maior = k;
      }
      time[j][i] = maior;
      negativar(jogadores, nJogadores, maior);
    }
  }
  for (i = 0; i < nTimes; i++) {
    printf("Time %d:", i + 1);
    for (j = 0; j < jTimes; j++) {
      printf(" %d", time[i][j] + 1);
    }
    printf("\n");
  }
  free(media);
  for (i = 0; i < nTimes; i++)
    free(time[i]);
  free(time);
  for (i = 0; i < nJogadores; i++)
    free(jogadores[i]);
  free(jogadores);
  return 0;
}
```