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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xb8(%rbp)
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xb4(%rbp)
  movl   $0x0,-0xbc(%rbp)
  jmp    L63
L76:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x61,%al
  jne    L222
  addl   $0x1,-0xb8(%rbp)
L222:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x64,%al
  jne    L136
  addl   $0x1,-0xb8(%rbp)
L136:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x67,%al
  jne    L80
  addl   $0x1,-0xb8(%rbp)
L80:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x6a,%al
  jne    L267
  addl   $0x1,-0xb8(%rbp)
L267:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x6d,%al
  jne    L123
  addl   $0x1,-0xb8(%rbp)
L123:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x70,%al
  jne    L190
  addl   $0x1,-0xb8(%rbp)
L190:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x74,%al
  jne    L286
  addl   $0x1,-0xb8(%rbp)
L286:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x77,%al
  jne    L262
  addl   $0x1,-0xb8(%rbp)
L262:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  jne    L239
  addl   $0x1,-0xb8(%rbp)
L239:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x62,%al
  jne    L102
  addl   $0x2,-0xb8(%rbp)
L102:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x65,%al
  jne    L113
  addl   $0x2,-0xb8(%rbp)
L113:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x68,%al
  jne    L181
  addl   $0x2,-0xb8(%rbp)
L181:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x6b,%al
  jne    L172
  addl   $0x2,-0xb8(%rbp)
L172:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x6e,%al
  jne    L291
  addl   $0x2,-0xb8(%rbp)
L291:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x71,%al
  jne    L105
  addl   $0x2,-0xb8(%rbp)
L105:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x75,%al
  jne    L164
  addl   $0x2,-0xb8(%rbp)
L164:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x78,%al
  jne    L287
  addl   $0x2,-0xb8(%rbp)
L287:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x63,%al
  jne    L128
  addl   $0x3,-0xb8(%rbp)
L128:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x66,%al
  jne    L153
  addl   $0x3,-0xb8(%rbp)
L153:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x69,%al
  jne    L3
  addl   $0x3,-0xb8(%rbp)
L3:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x6c,%al
  jne    L77
  addl   $0x3,-0xb8(%rbp)
L77:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x6f,%al
  jne    L220
  addl   $0x3,-0xb8(%rbp)
L220:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x72,%al
  jne    L188
  addl   $0x3,-0xb8(%rbp)
L188:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x76,%al
  jne    L197
  addl   $0x3,-0xb8(%rbp)
L197:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x79,%al
  jne    L232
  addl   $0x3,-0xb8(%rbp)
L232:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x73,%al
  jne    L50
  addl   $0x4,-0xb8(%rbp)
L50:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0xb0(%rbp,%rax,1),%eax
  cmp    $0x7a,%al
  jne    L103
  addl   $0x4,-0xb8(%rbp)
L103:
  addl   $0x1,-0xbc(%rbp)
L63:
  mov    -0xbc(%rbp),%eax
  cmp    -0xb4(%rbp),%eax
  jl     L76
  mov    -0xb8(%rbp),%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D2
type_infered: string
name: parse_data
arguments: data_label: D9
type_infered: string

tool: D2: %[^
]s

tool: D9: button klicks = %d 


assistant: ```c
int main() {
  char n[160];
  int l, i, button = 0;
  scanf("%[^\n]s", n);
  l = strlen(n);
  for (i = 0; i < l; i++) {
    if (n[i] == 'a')
      button = button + 1;
    if (n[i] == 'd')
      button = button + 1;
    if (n[i] == 'g')
      button = button + 1;
    if (n[i] == 'j')
      button = button + 1;
    if (n[i] == 'm')
      button = button + 1;
    if (n[i] == 'p')
      button = button + 1;
    if (n[i] == 't')
      button = button + 1;
    if (n[i] == 'w')
      button = button + 1;
    if (n[i] == ' ')
      button = button + 1;
    if (n[i] == 'b')
      button = button + 2;
    if (n[i] == 'e')
      button = button + 2;
    if (n[i] == 'h')
      button = button + 2;
    if (n[i] == 'k')
      button = button + 2;
    if (n[i] == 'n')
      button = button + 2;
    if (n[i] == 'q')
      button = button + 2;
    if (n[i] == 'u')
      button = button + 2;
    if (n[i] == 'x')
      button = button + 2;
    if (n[i] == 'c')
      button = button + 3;
    if (n[i] == 'f')
      button = button + 3;
    if (n[i] == 'i')
      button = button + 3;
    if (n[i] == 'l')
      button = button + 3;
    if (n[i] == 'o')
      button = button + 3;
    if (n[i] == 'r')
      button = button + 3;
    if (n[i] == 'v')
      button = button + 3;
    if (n[i] == 'y')
      button = button + 3;
    if (n[i] == 's')
      button = button + 4;
    if (n[i] == 'z')
      button = button + 4;
  }
  printf("button klicks = %d \n", button);
  return 0;
}
```