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

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0xb0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  lea    D22(%rip),%rdi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L266
  mov    %rsp,%rdx
  lea    -0x1(%rax),%eax
  lea    0x1(%rsp,%rax,1),%rdi
  mov    $0x0,%esi
  lea    D10(%rip),%rcx
  jmp    L105
  add    $0x1,%esi
L138:
  add    $0x1,%rdx
  cmp    %rdi,%rdx
  je     L174
L105:
  movzbl (%rdx),%eax
  sub    $0x20,%eax
  cmp    $0x5a,%al
  ja     L138
  movzbl %al,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x1,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x2,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x3,%esi
  jmp    L138
  add    $0x4,%esi
  jmp    L138
  add    $0x4,%esi
  jmp    L138
L266:
  mov    $0x0,%esi
L174:
  lea    D25(%rip),%rdi
  call   <printf@plt>
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L293
  mov    $0x0,%eax
  add    $0xb0,%rsp
  pop    %rbx
  ret
L293:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D22
datatype: string
name: extract_symbolic_data
arguments: data_label: D25
datatype: string

tool: D22: %[^
]s

tool: D25: %d

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