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

```asm
<main>:
  endbr64
  push   %r13
  lea    D15(%rip),%rdi
  lea    D89(%rip),%r13
  push   %r12
  lea    D6(%rip),%r12
  push   %rbp
  lea    D10(%rip),%rbp
  push   %rbx
  lea    D105(%rip),%rbx
  sub    $0x8,%rsp
  call   <printf@plt>
  cs nopw 0x0(%rax,%rax,1)
L3:
  xor    %eax,%eax
  call   <getchar@plt>
  cmp    $0xa,%al
  je     L40
L4:
  lea    -0x41(%rax),%edx
  cmp    $0x38,%dl
  ja     L42
  movzbl %dl,%edx
  movslq (%rbx,%rdx,4),%rdx
  add    %rbx,%rdx
  notrack jmp *%rdx
  nopl   0x0(%rax)
  mov    %r13,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  cmp    $0xa,%al
  jne    L4
L40:
  lea    D35(%rip),%rdi
  call   <printf@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L3
  nopw   0x0(%rax,%rax,1)
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L3
  nopw   0x0(%rax,%rax,1)
  lea    D1(%rip),%rdi
  call   <printf@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    D66(%rip),%rdi
  call   <printf@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    D22(%rip),%rdi
  call   <printf@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    D106(%rip),%rdi
  call   <printf@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    D56(%rip),%rdi
  call   <printf@plt>
  jmp    L3
  nopl   0x0(%rax)
L42:
  movsbl %al,%edi
  call   <putchar@plt>
  jmp    L3
```

tool_calls: name: parse_data
arguments: tag: D15
type_infered: string
name: parse_data
arguments: tag: D89
type_infered: string
name: parse_data
arguments: tag: D6
type_infered: string
name: parse_data
arguments: tag: D10
type_infered: string
name: parse_data
arguments: tag: D35
type_infered: string
name: parse_data
arguments: tag: D1
type_infered: string
name: parse_data
arguments: tag: D66
type_infered: string
name: parse_data
arguments: tag: D22
type_infered: string
name: parse_data
arguments: tag: D106
type_infered: string
name: parse_data
arguments: tag: D56
type_infered: string

tool: D15: Enter phone number: 

tool: D89: 9

tool: D6: 8

tool: D10: 7

tool: D35: 


tool: D1: 6

tool: D66: 5

tool: D22: 4

tool: D106: 3

tool: D56: 2

assistant: ```c
int main(void) {
  char ch;
  printf("Enter phone number: ");
  while ((ch = getchar()) != '\n') {
    switch (ch) {
    case 'A':
    case 'a':
    case 'B':
    case 'b':
    case 'C':
    case 'c':
      printf("2");
      break;
    case 'D':
    case 'd':
    case 'E':
    case 'e':
    case 'F':
    case 'f':
      printf("3");
      break;
    case 'G':
    case 'g':
    case 'H':
    case 'h':
    case 'I':
    case 'i':
      printf("4");
      break;
    case 'J':
    case 'j':
    case 'K':
    case 'k':
    case 'L':
    case 'l':
      printf("5");
      break;
    case 'M':
    case 'm':
    case 'N':
    case 'n':
    case 'O':
    case 'o':
      printf("6");
      break;
    case 'P':
    case 'p':
    case 'R':
    case 'r':
    case 'S':
    case 's':
      printf("7");
      break;
    case 'T':
    case 't':
    case 'U':
    case 'u':
    case 'V':
    case 'v':
      printf("8");
      break;
    case 'W':
    case 'w':
    case 'X':
    case 'x':
    case 'Y':
    case 'y':
      printf("9");
      break;
    default:
      putchar(ch);
    }
  }
  printf("\n");
  return 0;
}
```