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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x18000(%rsp),%r11
L63:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L63
  sub    $0x6d0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x186d0(%rbp)
  movl   $0x0,-0x186cc(%rbp)
  movl   $0x0,-0x186c8(%rbp)
  movl   $0x0,-0x186c4(%rbp)
  movl   $0x0,-0x186c0(%rbp)
  movl   $0x0,-0x186bc(%rbp)
  movl   $0x0,-0x186b8(%rbp)
  lea    -0x186b0(%rbp),%rax
  mov    %rax,%rdi
  call   <gets@plt>
  lea    -0x186b0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x186b4(%rbp)
  jmp    L110
L74:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  sub    $0x41,%eax
  cmp    $0x14,%eax
  seta   %dl
  test   %dl,%dl
  jne    L95
  mov    $0x104111,%edx
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  and    $0x1,%eax
  test   %rax,%rax
  setne  %al
  test   %al,%al
  je     L95
  addl   $0x1,-0x186b8(%rbp)
L95:
  addl   $0x1,-0x186bc(%rbp)
L110:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L74
  mov    -0x186bc(%rbp),%eax
  mov    %eax,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x186bc(%rbp)
  jmp    L195
L118:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x61,%al
  je     L169
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x41,%al
  jne    L96
L169:
  addl   $0x1,-0x186d0(%rbp)
  addl   $0x1,-0x186bc(%rbp)
  jmp    L195
L96:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x65,%al
  je     L30
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x45,%al
  jne    L3
L30:
  addl   $0x1,-0x186cc(%rbp)
  addl   $0x1,-0x186bc(%rbp)
  jmp    L195
L3:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x69,%al
  je     L15
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x49,%al
  jne    L143
L15:
  addl   $0x1,-0x186c8(%rbp)
  addl   $0x1,-0x186bc(%rbp)
  jmp    L195
L143:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x6f,%al
  je     L19
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x4f,%al
  jne    L224
L19:
  addl   $0x1,-0x186c4(%rbp)
  addl   $0x1,-0x186bc(%rbp)
  jmp    L195
L224:
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x75,%al
  je     L114
  mov    -0x186bc(%rbp),%eax
  cltq
  movzbl -0x186b0(%rbp,%rax,1),%eax
  cmp    $0x55,%al
  jne    L117
L114:
  addl   $0x1,-0x186c0(%rbp)
  addl   $0x1,-0x186bc(%rbp)
  jmp    L195
L117:
  addl   $0x1,-0x186bc(%rbp)
L195:
  mov    -0x186bc(%rbp),%eax
  cmp    -0x186b4(%rbp),%eax
  jl     L118
  mov    -0x186c0(%rbp),%edi
  mov    -0x186c4(%rbp),%esi
  mov    -0x186c8(%rbp),%ecx
  mov    -0x186cc(%rbp),%edx
  mov    -0x186d0(%rbp),%eax
  mov    %edi,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L181
  call   <__stack_chk_fail@plt>
L181:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D14
type_guessed: string
name: disassemble_data
arguments: label: D5
type_guessed: string

tool: D14: %d

tool: D5: A(a):%d E(e):%d I(i):%d O(o):%d U(u):%d


assistant: ```c
int main() {
  char str[100000];
  int a = 0, e = 0, i = 0, o = 0, u = 0, j = 0, k, p = 0;
  gets(str);
  k = strlen(str);
  while (str[j] != '\0') {
    switch (toupper(str[j])) {
    case 'A':
    case 'E':
    case 'I':
    case 'O':
    case 'U':
      p++;
    }
    j++;
  }
  printf("%d", j);
  j = 0;
  while (j < k) {
    if (str[j] == 'a' || str[j] == 'A') {
      a++;
      j++;
    } else if (str[j] == 'e' || str[j] == 'E') {
      e++;
      j++;
    } else if (str[j] == 'i' || str[j] == 'I') {
      i++;
      j++;
    } else if (str[j] == 'o' || str[j] == 'O') {
      o++;
      j++;
    } else if (str[j] == 'u' || str[j] == 'U') {
      u++;
      j++;
    } else
      j++;
  }
  printf("A(a):%d E(e):%d I(i):%d O(o):%d U(u):%d\n", a, e, i, o, u);
  return 0;
}
```