user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xbf0,%rsp
  mov    %edi,-0xbe4(%rbp)
  mov    %rsi,-0xbf0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xbd8(%rbp)
  movl   $0x0,-0xbd4(%rbp)
  movq   $0x0,-0x3f0(%rbp)
  movq   $0x0,-0x3e8(%rbp)
  lea    -0x3e0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x7b,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    -0xbd0(%rbp),%rax
  lea    D49(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  lea    -0xbd0(%rbp),%rdx
  lea    -0x7e0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  lea    -0x7e0(%rbp),%rax
  lea    D18(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L92
L99:
  mov    $0x0,%esi
  mov    $0xa,%edi
  call   <saida@plt>
  lea    -0xbd8(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0xbd8(%rbp),%eax
  cmp    $0x9,%eax
  ja     L36
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D1(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D1(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  cmpl   $0x2,-0xbe4(%rbp)
  jne    L103
  mov    -0xbf0(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <cria_agenda_arquivo@plt>
  jmp    L92
L103:
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rsi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    -0x3f0(%rbp),%rax
  mov    %rax,%rdi
  call   <cria_agenda_arquivo@plt>
  jmp    L92
  lea    -0xbd0(%rbp),%rax
  mov    %rax,%rdi
  call   <lista@plt>
  jmp    L92
  lea    -0xbd0(%rbp),%rax
  mov    %rax,%rdi
  call   <edita@plt>
  lea    -0x7e0(%rbp),%rdx
  lea    -0xbd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <copia@plt>
  jmp    L92
  lea    -0xbd0(%rbp),%rax
  mov    %rax,%rdi
  call   <apaga@plt>
  lea    -0x7e0(%rbp),%rdx
  lea    -0xbd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <copia@plt>
  jmp    L92
  lea    -0xbd0(%rbp),%rax
  mov    %rax,%rdi
  call   <pesquisa@plt>
  jmp    L92
  lea    -0xbd0(%rbp),%rax
  mov    %rax,%rdi
  call   <limpa_arquivo@plt>
  jmp    L92
L36:
  mov    $0x0,%esi
  mov    $0x9,%edi
  call   <saida@plt>
  nop
L92:
  mov    -0xbd8(%rbp),%eax
  cmp    $0x9,%eax
  jne    L99
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L37
  call   <__stack_chk_fail@plt>
L37:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D49
type_infered: string
name: parse_data
arguments: tag: D18
type_infered: string
name: parse_data
arguments: tag: D48
type_infered: string
name: parse_data
arguments: tag: D39
type_infered: string
name: parse_data
arguments: tag: D22
type_infered: string

tool: D49: Agenda.txt

tool: D18: .editado

tool: D48: %d

tool: D39: Informe o nome do arquivo:

tool: D22: %s

assistant: ```c
int main(int argc, const char *argv[]) {
  int op = 0, op2 = 0;
  char arquivo[1000], origem[1000], file[1000] = "", nome_agenda[1000];
  strcat(arquivo, "Agenda.txt");
  strcat(origem, arquivo);
  strcat(origem, ".editado");
  while (op != 9) {
    saida(10, 0);
    scanf("%d", &op);
    switch (op) {
    case 1:
      if (argc == 2)
        cria_agenda_arquivo(argv[1]);
      else {
        puts("Informe o nome do arquivo:");
        scanf("%s", file);
        cria_agenda_arquivo(file);
      }
      break;
    case 2:
      lista(arquivo);
      break;
    case 3:
      edita(arquivo);
      copia(arquivo, origem);
      break;
    case 4:
      apaga(arquivo);
      copia(arquivo, origem);
      break;
    case 5:
      pesquisa(arquivo);
      break;
    case 6:
      limpa_arquivo(arquivo);
      break;
    case 9:
      break;
    default:
      saida(9, 0);
      break;
    }
  }
  return 0;
}
```