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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D112(%rip),%r13
  lea    D99(%rip),%rbx
  lea    D39(%rip),%r12
  lea    D110(%rip),%rbp
L27:
  mov    %r13,%rdi
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %rsp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0x4,(%rsp)
  ja     L26
  mov    (%rsp),%eax
  lea    D62(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    0x4(%rsp),%edi
  call   <no_of_digits@plt>
  mov    %eax,%edx
  mov    0x4(%rsp),%esi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L27
  mov    0x4(%rsp),%esi
  lea    D83(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <reverse@plt>
  mov    %eax,%esi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L27
  mov    0x4(%rsp),%esi
  lea    D72(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rdi
  call   <reverse_original@plt>
  mov    0x4(%rsp),%esi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L27
  lea    D93(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L51
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  mov    0x4(%rsp),%edi
  call   <isPalindrome@plt>
  jmp    L27
L26:
  lea    D95(%rip),%rdi
  call   <puts@plt>
  jmp    L27
L51:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D112
datatype: string
name: parse_data
arguments: data_label: D99
datatype: string
name: parse_data
arguments: data_label: D39
datatype: string
name: parse_data
arguments: data_label: D110
datatype: string
name: parse_data
arguments: data_label: D55
datatype: string
name: parse_data
arguments: data_label: D83
datatype: string
name: parse_data
arguments: data_label: D35
datatype: string
name: parse_data
arguments: data_label: D72
datatype: string
name: parse_data
arguments: data_label: D93
datatype: string
name: parse_data
arguments: data_label: D95
datatype: string

tool: D112: 
Enter a number:

tool: D99: %d

tool: D39: Enter 1 to print the no of digits,2 to reverse the no using pass by value,3 to reverse no using pass by reference and 4 to check if entered no is pallindrome or not

tool: D110: Enter a menu indice:

tool: D55: The no of digits in %d is %d 


tool: D83: The original no is: %d 


tool: D35: The reversed no is %d

tool: D72: The original no is %d 


tool: D93: Program terminates

tool: D95: Im sorry I dont understand you:

assistant: ```c
int main() {
  int choice, no;
  int i = 1;
  while (i == 1) {
    puts("\nEnter a number:");
    scanf("%d", &no);
    puts("Enter 1 to print the no of digits,2 to reverse the no using pass by value,3 to reverse no using pass by reference and 4 to check if entered no is pallindrome or not");
    puts("Enter a menu indice:");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      printf("The no of digits in %d is %d \n", no, no_of_digits(no));
      break;
    case 2: {
      printf("The original no is: %d \n", no);
      printf("The reversed no is %d", reverse(no));
      break;
    }
    case 3: {
      printf("The original no is %d \n", no);
      reverse_original(&no);
      printf("The reversed no is %d", no);
      break;
    }
    case 0: {
      puts("Program terminates");
      i = 2;
      break;
    }
    case 4:
      isPalindrome(no);
      break;
    default:
      puts("Im sorry I dont understand you:");
      break;
    }
  }
  return 0;
}
```