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

```asm
<main>:
  endbr64
  push   %r15
  lea    D8(%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    0x18(%rsp),%rdx
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    0x14(%rsp),%eax
  lea    (%rax,%rax,2),%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    0x14(%rsp),%edx
  mov    %rax,0x8(%rsp)
  test   %edx,%edx
  jle    L44
  mov    %rax,%r13
  mov    %rax,%r12
  lea    D14(%rip),%rbp
  xor    %r14d,%r14d
  nopl   0x0(%rax,%rax,1)
L99:
  mov    %r12,%rsi
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  xor    %r15d,%r15d
  call   <scanf@plt>
  lea    0x1c(%rsp),%rbx
  movl   $0x0,0x14(%r12)
  mov    0x18(%rsp),%eax
  test   %eax,%eax
  jle    L111
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  add    %eax,0x14(%r12)
  cmp    %r15d,0x18(%rsp)
  jg     L3
L111:
  mov    0x14(%rsp),%eax
  add    $0x1,%r14d
  add    $0x18,%r12
  cmp    %r14d,%eax
  jg     L99
  test   %eax,%eax
  jle    L44
  mov    0x8(%rsp),%r12
  xor    %r15d,%r15d
  nopw   0x0(%rax,%rax,1)
L94:
  add    $0x1,%r15d
  cmp    %r15d,%eax
  jle    L149
  mov    %r12,%rbp
  add    $0x18,%r12
  mov    %r15d,%r14d
  mov    %r12,%rbx
  jmp    L24
  nopl   0x0(%rax)
L67:
  movdqu (%rbx),%xmm1
  movdqu 0x0(%rbp),%xmm0
  mov    0x10(%rbp),%rdx
  movups %xmm1,0x0(%rbp)
  mov    0x10(%rbx),%rcx
  mov    %rdx,0x30(%rsp)
  mov    %rcx,0x10(%rbp)
  mov    %rdx,0x10(%rbx)
  movaps %xmm0,0x20(%rsp)
  movups %xmm0,(%rbx)
L85:
  add    $0x1,%r14d
  add    $0x18,%rbx
  cmp    %eax,%r14d
  jge    L137
L24:
  mov    0x14(%rbx),%ecx
  cmp    %ecx,0x14(%rbp)
  jl     L67
  jne    L85
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L95
  movdqu (%rbx),%xmm2
  movdqu 0x0(%rbp),%xmm0
  mov    0x10(%rbp),%rax
  movups %xmm2,0x0(%rbp)
  mov    0x10(%rbx),%rdx
  mov    %rax,0x30(%rsp)
  mov    %rdx,0x10(%rbp)
  mov    %rax,0x10(%rbx)
  movaps %xmm0,0x20(%rsp)
  movups %xmm0,(%rbx)
L95:
  mov    0x14(%rsp),%eax
  add    $0x1,%r14d
  add    $0x18,%rbx
  cmp    %eax,%r14d
  jl     L24
  nopl   0x0(%rax)
L137:
  cmp    %eax,%r15d
  jl     L94
  nopl   0x0(%rax)
L149:
  test   %eax,%eax
  jle    L44
  xor    %ebx,%ebx
  lea    D0(%rip),%rbp
  nopl   (%rax)
L62:
  mov    0x14(%r13),%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  add    $0x1,%ebx
  add    $0x18,%r13
  call   <printf@plt>
  cmp    %ebx,0x14(%rsp)
  jg     L62
L44:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L121
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L121:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D8
type: string
name: disassemble_data
arguments: data_label: D14
type: string
name: disassemble_data
arguments: data_label: D12
type: string
name: disassemble_data
arguments: data_label: D0
type: string

tool: D8: %d %d

tool: D14: %d

tool: D12: %s

tool: D0: %s %d


assistant: ```c
int main() {
  struct Aluno {
    char nome[20];
    int nota;
  };
  int n, p, i, j;
  scanf("%d %d", &n, &p);
  struct Aluno aluno;
  struct Aluno *alunos = malloc(sizeof(struct Aluno) * n);
  for (i = 0; i < n; i++) {
    scanf("%s", alunos[i].nome);
    alunos[i].nota = 0;
    for (j = 0; j < p; j++) {
      int nota;
      scanf("%d", &nota);
      alunos[i].nota += nota;
    }
  }
  for (i = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      if (alunos[i].nota < alunos[j].nota) {
        aluno = alunos[i];
        alunos[i] = alunos[j];
        alunos[j] = aluno;
      } else if (alunos[i].nota == alunos[j].nota && strcmp(alunos[i].nome, alunos[j].nome) > 0) {
        aluno = alunos[i];
        alunos[i] = alunos[j];
        alunos[j] = aluno;
      }
    }
  }
  for (i = 0; i < n; i++) {
    printf("%s %d\n", alunos[i].nome, alunos[i].nota);
  }
  return 0;
}
```