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

```asm
<main>:
  endbr64
  push   %r15
  lea    D36(%rip),%r15
  push   %r14
  lea    D2(%rip),%r14
  push   %r13
  lea    D35(%rip),%r13
  push   %r12
  lea    D117(%rip),%r12
  push   %rbp
  lea    D86(%rip),%rbp
  push   %rbx
  lea    D119(%rip),%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x17(%rsp),%rax
  mov    %rax,0x8(%rsp)
L40:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <printf@plt>
  lea    D60(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  lea    D65(%rip),%rdi
  call   <scanf@plt>
  movzbl 0x17(%rsp),%eax
  sub    $0x41,%eax
  cmp    $0x24,%al
  ja     L4
  lea    D91(%rip),%rcx
  movzbl %al,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
L4:
  lea    D48(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <main>
L20:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L35
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <volumeComputation@plt>
L47:
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D25(%rip),%rdi
  call   <printf@plt>
  movzbl 0x17(%rsp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x45,%al
  jne    L40
  lea    D62(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L20
  nopw   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <perimeterComputation@plt>
  jmp    L47
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <areaComputation@plt>
  jmp    L47
L35:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D36
data_type: string
name: read_data
arguments: data_tag: D2
data_type: string
name: read_data
arguments: data_tag: D35
data_type: string
name: read_data
arguments: data_tag: D117
data_type: string
name: read_data
arguments: data_tag: D86
data_type: string
name: read_data
arguments: data_tag: D119
data_type: string
name: read_data
arguments: data_tag: D60
data_type: string
name: read_data
arguments: data_tag: D65
data_type: string
name: read_data
arguments: data_tag: D48
data_type: string
name: read_data
arguments: data_tag: D25
data_type: string
name: read_data
arguments: data_tag: D62
data_type: string

tool: D36: 
 Main Menu

tool: D2: 
================

tool: D35: 
 A - AREA

tool: D117: 
 B - VOLUME

tool: D86: 
 C - PERIMETER

tool: D119: 
 E - Exit

tool: D60: 
 Enter selection: 

tool: D65: %c

tool: D48: 
 Invalid selection

tool: D25: 


tool: D62: 
 Bye ...


assistant: ```c
main() {
  char selection;
  while (1) {
    printf("\n Main Menu");
    printf("\n================");
    printf("\n A - AREA");
    printf("\n B - VOLUME");
    printf("\n C - PERIMETER");
    printf("\n E - Exit");
    printf("\n Enter selection: ");
    scanf("%c", &selection);
    switch (selection) {
    case 'A':
    case 'a':
      areaComputation();
      break;
    case 'B':
    case 'b':
      volumeComputation();
      break;
    case 'C':
    case 'c':
      break;
    case 'E':
    case 'e':
      perimeterComputation();
      break;
    default:
      printf("\n Invalid selection");
      return main();
    }
    getchar();
    printf("\n");
    if (selection == 'E' || selection == 'e')
      break;
  }
  printf("\n Bye ...\n");
  return 0;
}
```