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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x1,-0x14(%rbp)
  jmp    L35
L82:
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x9(%rbp),%rax
  mov    %rax,%rsi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,-0x10(%rbp)
  js     L34
  cmpl   $0x50,-0x10(%rbp)
  jg     L34
  cmpl   $0x15,-0x10(%rbp)
  jg     L69
  addl   $0x1,-0x18(%rbp)
L69:
  cmpl   $0x27,-0x10(%rbp)
  jle    L42
  lea    -0x9(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L42
  addl   $0x1,-0x1c(%rbp)
L42:
  lea    -0x9(%rbp),%rax
  mov    %rax,%rsi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L34
  addl   $0x1,-0x20(%rbp)
L34:
  addl   $0x1,-0x14(%rbp)
L35:
  cmpl   $0x3,-0x14(%rbp)
  jle    L82
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D28
type_infered: string
name: parse_data
arguments: data_label: D23
type_infered: string
name: parse_data
arguments: data_label: D74
type_infered: string
name: parse_data
arguments: data_label: D16
type_infered: string
name: parse_data
arguments: data_label: D65
type_infered: string
name: parse_data
arguments: data_label: D54
type_infered: string
name: parse_data
arguments: data_label: D47
type_infered: string
name: parse_data
arguments: data_label: D84
type_infered: string
name: parse_data
arguments: data_label: D72
type_infered: string

tool: D28: Entre com a idade: 

tool: D23: %d

tool: D74: Entre com o sexo: 

tool: D16: %s

tool: D65: M

tool: D54: F

tool: D47: Quantidade de Mulheres: %d 


tool: D84: Quantidade de Homens: %d 


tool: D72: Quantidade de Jovens: %d 


assistant: ```c
int main() {
  int idade_entrada = 0;
  int idade = 0;
  int mulheres = 0;
  int homens = 0;
  int jovens = 0;
  char sexo[1];
  for (int i = 1; i <= 3; i++) {
    printf("Entre com a idade: ");
    scanf("%d", &idade_entrada);
    idade = idade_entrada;
    printf("Entre com o sexo: ");
    scanf("%s", &sexo);
    if (idade >= 0 && idade <= 80) {
      if (idade <= 21) {
        jovens = jovens + 1;
      }
      if (idade >= 40 && (strncasecmp("M", sexo) == 0)) {
        homens = homens + 1;
      }
      if (strncasecmp("F", sexo) == 0) {
        mulheres = mulheres + 1;
      }
    }
  }
  printf("Quantidade de Mulheres: %d \n", mulheres);
  printf("Quantidade de Homens: %d \n", homens);
  printf("Quantidade de Jovens: %d \n", jovens);
  return 0;
}
```