user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbx
  lea    D11(%rip),%rdi
  sub    $0xd0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %al,%al
  jle    L458
  movsbl %al,%eax
  mov    %rbx,%rdx
  xor    %esi,%esi
  sub    $0x1,%eax
  lea    0x1(%rsp,%rax,1),%rcx
  nopl   0x0(%rax)
L381:
  movzbl (%rdx),%eax
  cmp    $0x61,%al
  je     L183
  cmp    $0x64,%al
  je     L183
  cmp    $0x67,%al
  jne    L148
  nopw   0x0(%rax,%rax,1)
L183:
  add    $0x1,%esi
L554:
  add    $0x1,%rdx
  cmp    %rcx,%rdx
  jne    L381
L398:
  lea    D18(%rip),%rdi
  call   <printf@plt>
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L333
  add    $0xd0,%rsp
  xor    %eax,%eax
  pop    %rbx
  ret
L148:
  cmp    $0x6a,%al
  je     L183
  cmp    $0x6d,%al
  je     L183
  cmp    $0x70,%al
  je     L183
  cmp    $0x74,%al
  je     L183
  cmp    $0x77,%al
  je     L183
  cmp    $0x20,%al
  je     L183
  cmp    $0x41,%al
  je     L183
  cmp    $0x44,%al
  je     L183
  cmp    $0x47,%al
  je     L183
  cmp    $0x4a,%al
  je     L183
  cmp    $0x4d,%al
  je     L183
  cmp    $0x50,%al
  je     L183
  cmp    $0x54,%al
  je     L183
  cmp    $0x57,%al
  je     L183
  cmp    $0x62,%al
  jne    L518
  cs nopw 0x0(%rax,%rax,1)
L3:
  add    $0x2,%esi
  jmp    L554
L518:
  cmp    $0x65,%al
  je     L3
  cmp    $0x6b,%al
  je     L3
  cmp    $0x68,%al
  je     L3
  cmp    $0x6e,%al
  je     L3
  cmp    $0x71,%al
  je     L3
  cmp    $0x75,%al
  je     L3
  cmp    $0x78,%al
  je     L3
  cmp    $0x42,%al
  je     L3
  cmp    $0x45,%al
  je     L3
  cmp    $0x4b,%al
  je     L3
  cmp    $0x48,%al
  je     L3
  cmp    $0x4e,%al
  je     L3
  cmp    $0x51,%al
  je     L3
  cmp    $0x55,%al
  je     L3
  cmp    $0x58,%al
  je     L3
  cmp    $0x63,%al
  jne    L233
  nopl   0x0(%rax,%rax,1)
L165:
  add    $0x3,%esi
  jmp    L554
L233:
  cmp    $0x66,%al
  je     L165
  cmp    $0x69,%al
  je     L165
  cmp    $0x6c,%al
  je     L165
  cmp    $0x6f,%al
  je     L165
  cmp    $0x72,%al
  je     L165
  cmp    $0x76,%al
  je     L165
  cmp    $0x79,%al
  je     L165
  cmp    $0x43,%al
  je     L165
  cmp    $0x46,%al
  je     L165
  cmp    $0x49,%al
  je     L165
  cmp    $0x4c,%al
  je     L165
  cmp    $0x4f,%al
  je     L165
  cmp    $0x52,%al
  je     L165
  cmp    $0x56,%al
  je     L165
  cmp    $0x59,%al
  je     L165
  cmp    $0x73,%al
  jne    L90
L550:
  add    $0x4,%esi
  jmp    L554
L90:
  cmp    $0x7a,%al
  je     L550
  cmp    $0x53,%al
  je     L550
  cmp    $0x5a,%al
  je     L550
  jmp    L554
L458:
  xor    %esi,%esi
  jmp    L398
L333:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D11
datatype: string
name: disassemble_data
arguments: data_tag: D18
datatype: string

tool: D11: %[^
]s

tool: D18: 
%d

assistant: ```c
int main() {
  char Nokia[200], l;
  int counter = 0, count;
  scanf("%[^\n]s", Nokia);
  l = strlen(Nokia);
  for (count = 0; count < l; count++) {
    if (Nokia[count] == 'a')
      counter++;
    if (Nokia[count] == 'd')
      counter++;
    if (Nokia[count] == 'g')
      counter++;
    if (Nokia[count] == 'j')
      counter++;
    if (Nokia[count] == 'm')
      counter++;
    if (Nokia[count] == 'p')
      counter++;
    if (Nokia[count] == 't')
      counter++;
    if (Nokia[count] == 'w')
      counter++;
    if (Nokia[count] == ' ')
      counter++;
    if (Nokia[count] == 'A')
      counter++;
    if (Nokia[count] == 'D')
      counter++;
    if (Nokia[count] == 'G')
      counter++;
    if (Nokia[count] == 'J')
      counter++;
    if (Nokia[count] == 'M')
      counter++;
    if (Nokia[count] == 'P')
      counter++;
    if (Nokia[count] == 'T')
      counter++;
    if (Nokia[count] == 'W')
      counter++;
    if (Nokia[count] == 'b')
      counter = counter + 2;
    if (Nokia[count] == 'e')
      counter = counter + 2;
    if (Nokia[count] == 'k')
      counter = counter + 2;
    if (Nokia[count] == 'h')
      counter = counter + 2;
    if (Nokia[count] == 'n')
      counter = counter + 2;
    if (Nokia[count] == 'q')
      counter = counter + 2;
    if (Nokia[count] == 'u')
      counter = counter + 2;
    if (Nokia[count] == 'x')
      counter = counter + 2;
    if (Nokia[count] == 'B')
      counter = counter + 2;
    if (Nokia[count] == 'E')
      counter = counter + 2;
    if (Nokia[count] == 'K')
      counter = counter + 2;
    if (Nokia[count] == 'H')
      counter = counter + 2;
    if (Nokia[count] == 'N')
      counter = counter + 2;
    if (Nokia[count] == 'Q')
      counter = counter + 2;
    if (Nokia[count] == 'U')
      counter = counter + 2;
    if (Nokia[count] == 'X')
      counter = counter + 2;
    if (Nokia[count] == 'c')
      counter = counter + 3;
    if (Nokia[count] == 'f')
      counter = counter + 3;
    if (Nokia[count] == 'i')
      counter = counter + 3;
    if (Nokia[count] == 'l')
      counter = counter + 3;
    if (Nokia[count] == 'o')
      counter = counter + 3;
    if (Nokia[count] == 'r')
      counter = counter + 3;
    if (Nokia[count] == 'v')
      counter = counter + 3;
    if (Nokia[count] == 'y')
      counter = counter + 3;
    if (Nokia[count] == 'C')
      counter = counter + 3;
    if (Nokia[count] == 'F')
      counter = counter + 3;
    if (Nokia[count] == 'I')
      counter = counter + 3;
    if (Nokia[count] == 'L')
      counter = counter + 3;
    if (Nokia[count] == 'O')
      counter = counter + 3;
    if (Nokia[count] == 'R')
      counter = counter + 3;
    if (Nokia[count] == 'V')
      counter = counter + 3;
    if (Nokia[count] == 'Y')
      counter = counter + 3;
    if (Nokia[count] == 's')
      counter = counter + 4;
    if (Nokia[count] == 'z')
      counter = counter + 4;
    if (Nokia[count] == 'S')
      counter = counter + 4;
    if (Nokia[count] == 'Z')
      counter = counter + 4;
  }
  printf("\n%d", counter);
  return 0;
}
```