user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rdi
  call   <gets@plt>
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  mov    %eax,-0xe8(%rbp)
  movl   $0x0,-0xe4(%rbp)
  jmp    L59
L76:
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0xe0(%rbp,%rax,1),%edx
  mov    -0xe4(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  subl   $0x1,-0xe8(%rbp)
  addl   $0x1,-0xe4(%rbp)
L59:
  cmpl   $0x0,-0xe8(%rbp)
  jns    L76
  mov    -0xe4(%rbp),%eax
  cltq
  movb   $0x0,-0x70(%rbp,%rax,1)
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0xe8(%rbp)
  jmp    L133
L77:
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x61,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x65,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x69,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x6f,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x75,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x41,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x45,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x49,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x4f,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x55,%al
  je     L41
  mov    -0xe8(%rbp),%eax
  cltq
  movb   $0x23,-0x70(%rbp,%rax,1)
L41:
  addl   $0x1,-0xe8(%rbp)
L133:
  lea    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0xe8(%rbp)
  jl     L77
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L98
  call   <__stack_chk_fail@plt>
L98:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D17
type_guessed: string
name: disassemble_data
arguments: data_tag: D9
type_guessed: string
name: disassemble_data
arguments: data_tag: D12
type_guessed: string
name: disassemble_data
arguments: data_tag: D16
type_guessed: string

tool: D17: Digite uma frase: 

tool: D9: 
Frase invertida = %s.



tool: D12: 
Frase criptografada = %s.



tool: D16: pause

assistant: ```c
int main() {
  char entrada[101], inversa[101];
  int i, j;
  printf("Digite uma frase: ");
  gets(entrada);
  for (i = (strlen(entrada) - 1), j = 0; i >= 0; i--, j++)
    inversa[j] = entrada[i];
  inversa[j] = '\0';
  printf("\nFrase invertida = %s.\n\n", inversa);
  for (i = 0; i < strlen(inversa); i++) {
    if ((inversa[i] != 'a') && (inversa[i] != 'e') && (inversa[i] != 'i') && (inversa[i] != 'o') && (inversa[i] != 'u') && (inversa[i] != 'A') && (inversa[i] != 'E') && (inversa[i] != 'I') && (inversa[i] != 'O') && (inversa[i] != 'U')) {
      inversa[i] = '#';
    }
  }
  printf("\nFrase criptografada = %s.\n\n", inversa);
  system("pause");
  return (0);
}
```