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

```asm
<str_stats>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdi,%r8
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movl   $0x41,0x30(%rsp)
  movl   $0x45,0x34(%rsp)
  movl   $0x49,0x38(%rsp)
  movl   $0x4f,0x3c(%rsp)
  movl   $0x55,0x40(%rsp)
  movl   $0x59,0x44(%rsp)
  movl   $0x42,0x60(%rsp)
  movl   $0x43,0x64(%rsp)
  movl   $0x44,0x68(%rsp)
  movl   $0x46,0x6c(%rsp)
  movl   $0x47,0x70(%rsp)
  movl   $0x48,0x74(%rsp)
  movl   $0x4a,0x78(%rsp)
  movl   $0x4b,0x7c(%rsp)
  movl   $0x4c,0x80(%rsp)
  movl   $0x4d,0x84(%rsp)
  movl   $0x4e,0x88(%rsp)
  movl   $0x50,0x8c(%rsp)
  movl   $0x51,0x90(%rsp)
  movl   $0x52,0x94(%rsp)
  movl   $0x53,0x98(%rsp)
  movl   $0x54,0x9c(%rsp)
  movl   $0x56,0xa0(%rsp)
  movl   $0x57,0xa4(%rsp)
  movl   $0x58,0xa8(%rsp)
  movl   $0x59,0xac(%rsp)
  movl   $0x5a,0xb0(%rsp)
  movl   $0x0,(%rsp)
  movl   $0x1,0x4(%rsp)
  movl   $0x2,0x8(%rsp)
  movl   $0x3,0xc(%rsp)
  movl   $0x4,0x10(%rsp)
  movl   $0x5,0x14(%rsp)
  movl   $0x6,0x18(%rsp)
  movl   $0x7,0x1c(%rsp)
  movl   $0x8,0x20(%rsp)
  movl   $0x9,0x24(%rsp)
  lea    0x1(%rdi),%rdx
L37:
  mov    %eax,%edi
  add    $0x1,%eax
  add    $0x1,%rdx
  cmpb   $0x0,-0x1(%rdx)
  jne    L37
  test   %eax,%eax
  jle    L1
  mov    %r8,%rsi
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  mov    $0x0,%ebp
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  mov    $0x0,%r11d
  lea    0x60(%rsp),%r10
  lea    0xb4(%rsp),%r9
  lea    0x28(%rsp),%r13
  jmp    L138
L58:
  mov    %r11d,%r15d
L66:
  add    $0x1,%rsi
  mov    %esi,%eax
  sub    %r8d,%eax
  sub    $0x1,%eax
  cmp    %eax,%edi
  jle    L51
L138:
  movzbl (%rsi),%eax
  movsbl %al,%edx
  lea    -0x20(%rdx),%ecx
  cmp    $0xf,%ecx
  jbe    L58
  lea    -0x7b(%rdx),%ecx
  cmp    $0x4,%ecx
  jbe    L68
  lea    -0x5b(%rdx),%ecx
  cmp    $0x5,%ecx
  jbe    L68
  lea    -0x30(%rdx),%ecx
  cmp    $0x2a,%ecx
  jbe    L94
  sub    $0x61,%edx
  cmp    $0x19,%edx
  ja     L66
L94:
  cmp    $0x1,%r15d
  adc    $0x0,%r14d
  movsbl %al,%eax
  lea    0x30(%rsp),%rcx
L122:
  mov    (%rcx),%edx
  cmp    %eax,%edx
  sete   %r15b
  movzbl %r15b,%r15d
  add    %r15d,%ebp
  add    $0x20,%edx
  cmp    %eax,%edx
  sete   %dl
  movzbl %dl,%edx
  add    %edx,%ebp
  add    $0x4,%rcx
  cmp    %r10,%rcx
  jne    L122
  lea    0x60(%rsp),%rcx
L49:
  mov    (%rcx),%edx
  cmp    %eax,%edx
  sete   %r15b
  movzbl %r15b,%r15d
  add    %r15d,%ebx
  add    $0x20,%edx
  cmp    %eax,%edx
  sete   %dl
  movzbl %dl,%edx
  add    %edx,%ebx
  add    $0x4,%rcx
  cmp    %r9,%rcx
  jne    L49
  mov    %rsp,%rdx
L61:
  mov    (%rdx),%ecx
  add    $0x30,%ecx
  cmp    %eax,%ecx
  sete   %cl
  movzbl %cl,%ecx
  add    %ecx,%r12d
  add    $0x4,%rdx
  cmp    %rdx,%r13
  jne    L61
  mov    $0x1,%r15d
  jmp    L66
L68:
  mov    %r11d,%r15d
  jmp    L66
L1:
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  mov    $0x0,%ebp
  mov    $0x0,%r14d
L51:
  mov    %r14d,%esi
  lea    D24(%rip),%rdi
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D21(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D35(%rip),%rdi
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D15(%rip),%rdi
  call   <printf@plt>
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L142
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L142:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D24
datatype: string
name: parse_data
arguments: data_label: D21
datatype: string
name: parse_data
arguments: data_label: D35
datatype: string
name: parse_data
arguments: data_label: D15
datatype: string

tool: D24: %d mot(s)


tool: D21: %d consonnes(s)


tool: D35: %d voyelle(s)


tool: D15: %d chiffre(s)

assistant: ```c
void str_stats(char *arg) {
  const DEHORS = 0;
  const DEDANS = 1;
  enum voyellesMaj { A = 65, E = 69, I = 73, O = 79, U = 85, Y = 89 };
  enum chiffres { ZERO, UN, DEUX, TROIS, QUATRE, CINQ, SIX, SEPT, HUIT, NEUF };
  enum consonnes { B = 66, C = 67, D = 68, F = 70, G = 71, H = 72, J = 74, K = 75, L = 76, M = 77, N = 78, P = 80, Q = 81, R = 82, S = 83, T = 84, V = 86, W = 87, X = 88, Z = 90 };
  int i, j, g, taille, tailleV, tailleCo, tailleCh, etat, mots, voyelles, consonnes, chiffres;
  etat = mots = voyelles = consonnes = chiffres = 0;
  taille = tailleCo = tailleCh = 0;
  int tabv[12] = {A, E, I, O, U, Y};
  int tabco[21] = {B, C, D, F, G, H, J, K, L, M, N, P, Q, R, S, T, V, W, X, Y, Z};
  int tabch[10] = {ZERO, UN, DEUX, TROIS, QUATRE, CINQ, SIX, SEPT, HUIT, NEUF};
  do {
    taille++;
  } while (arg[taille] != '\0');
  for (i = 0; i < taille; i++) {
    int c = arg[i];
    if ((c >= ' ' && c <= '/') || (c >= '{' && c < 128 || c >= '[' && c <= 96)) {
      etat = DEHORS;
    } else if (c >= '0' && c <= 'Z' || c >= 'a' && c <= 'z') {
      if (etat == DEHORS)
        mots++;
      etat = DEDANS;
      for (j = 0; j < 12; j++) {
        (c == tabv[j]) ? voyelles++ : 0;
        (c == (tabv[j] + 32)) ? voyelles++ : 0;
      }
      for (j = 0; j < 21; j++) {
        (c == tabco[j]) ? consonnes++ : 0;
        (c == (tabco[j] + 32)) ? consonnes++ : 0;
      }
      for (j = 0; j < 10; j++) {
        (c == (tabch[j] + 48)) ? chiffres++ : 0;
      }
    }
  }
  printf("%d mot(s)\n", mots);
  printf("%d consonnes(s)\n", consonnes);
  printf("%d voyelle(s)\n", voyelles);
  printf("%d chiffre(s)", chiffres);
}
```