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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x7b,%ecx
  pxor   %xmm0,%xmm0
  lea    D5(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D20(%rip),%rbp
  push   %rbx
  lea    D53(%rip),%rbx
  sub    $0xbf8,%rsp
  mov    %edi,0x4(%rsp)
  lea    0x20(%rsp),%r12
  lea    0x810(%rsp),%rdi
  mov    %rsi,0x8(%rsp)
  lea    0x410(%rsp),%r13
  lea    D44(%rip),%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0xbe8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x800(%rsp)
  movl   $0x0,0x1c(%rsp)
  rep stos %rax,%es:(%rdi)
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  lea    D55(%rip),%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
L91:
  cmpl   $0x9,0x1c(%rsp)
  je     L55
L7:
  xor    %esi,%esi
  mov    $0xa,%edi
  call   <saida@plt>
  xor    %eax,%eax
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmpl   $0x9,0x1c(%rsp)
  ja     L18
  mov    0x1c(%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  mov    %r12,%rdi
  call   <limpa_arquivo@plt>
  cmpl   $0x9,0x1c(%rsp)
  jne    L7
  nop
L55:
  mov    0xbe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  add    $0xbf8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
  mov    %r12,%rdi
  call   <pesquisa@plt>
  jmp    L91
  nopl   (%rax)
  mov    %r12,%rdi
  call   <apaga@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <copia@plt>
  jmp    L91
  nopl   0x0(%rax,%rax,1)
  mov    %r12,%rdi
  call   <edita@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <copia@plt>
  jmp    L91
  nopl   0x0(%rax,%rax,1)
  mov    %r12,%rdi
  call   <lista@plt>
  jmp    L91
  nopl   (%rax)
  cmpl   $0x2,0x4(%rsp)
  je     L115
  mov    %r15,%rdi
  lea    0x800(%rsp),%r14
  call   <puts@plt>
  mov    %r14,%rsi
  lea    D23(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %r14,%rdi
  call   <cria_agenda_arquivo@plt>
  jmp    L91
  nopl   (%rax)
L18:
  xor    %esi,%esi
  mov    $0x9,%edi
  call   <saida@plt>
  jmp    L91
  nopl   0x0(%rax)
L115:
  mov    0x8(%rsp),%rax
  mov    0x8(%rax),%rdi
  call   <cria_agenda_arquivo@plt>
  jmp    L91
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D5
datatype: string
name: unpack_data
arguments: data_tag: D20
datatype: string
name: unpack_data
arguments: data_tag: D44
datatype: string
name: unpack_data
arguments: data_tag: D55
datatype: string
name: unpack_data
arguments: data_tag: D23
datatype: string

tool: D5: Informe o nome do arquivo:

tool: D20: %d

tool: D44: Agenda.txt

tool: D55: .editado

tool: D23: %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;
}
```