user: Demonstrate the C code that generates the assembly output 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    D12(%rip),%r13
  lea    D91(%rip),%r12
  lea    D65(%rip),%rbp
  lea    D83(%rip),%rbx
  jmp    L50
  mov    $0x0,%eax
  call   <areaComputation@plt>
L55:
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D81(%rip),%rdi
  call   <printf@plt>
  movzbl 0x7(%rsp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x45,%al
  je     L33
L50:
  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    D19(%rip),%rdi
  call   <printf@plt>
  lea    D38(%rip),%rdi
  call   <printf@plt>
  lea    D99(%rip),%rdi
  call   <printf@plt>
  lea    0x7(%rsp),%rsi
  lea    D80(%rip),%rdi
  call   <scanf@plt>
  movzbl 0x7(%rsp),%eax
  sub    $0x41,%eax
  cmp    $0x24,%al
  ja     L44
  movzbl %al,%eax
  lea    D25(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x0,%eax
  call   <volumeComputation@plt>
  jmp    L55
  mov    $0x0,%eax
  call   <perimeterComputation@plt>
  jmp    L55
L44:
  lea    D60(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <main>
L28:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L34
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L33:
  lea    D117(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L28
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D12
type: string
name: disassemble_data
arguments: label: D91
type: string
name: disassemble_data
arguments: label: D65
type: string
name: disassemble_data
arguments: label: D83
type: string
name: disassemble_data
arguments: label: D81
type: string
name: disassemble_data
arguments: label: D19
type: string
name: disassemble_data
arguments: label: D38
type: string
name: disassemble_data
arguments: label: D99
type: string
name: disassemble_data
arguments: label: D80
type: string
name: disassemble_data
arguments: label: D60
type: string
name: disassemble_data
arguments: label: D117
type: string

tool: D12: 
 Main Menu

tool: D91: 
================

tool: D65: 
 A - AREA

tool: D83: 
 B - VOLUME

tool: D81: 


tool: D19: 
 C - PERIMETER

tool: D38: 
 E - Exit

tool: D99: 
 Enter selection: 

tool: D80: %c

tool: D60: 
 Invalid selection

tool: D117: 
 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;
}
```