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    D89(%rip),%r13
  lea    D74(%rip),%r12
  lea    D55(%rip),%rbp
  jmp    L2
  mov    $0x0,%eax
  call   <insertParams@plt>
L2:
  lea    D84(%rip),%rbx
  cmpl   $0x5,0x4(%rsp)
  je     L66
  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    D106(%rip),%rdi
  call   <printf@plt>
  lea    D17(%rip),%rdi
  call   <printf@plt>
  lea    D49(%rip),%rdi
  call   <printf@plt>
  lea    D98(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D19(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x4(%rsp)
  ja     L56
  mov    0x4(%rsp),%eax
  lea    D100(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x0,%eax
  call   <calcCPI@plt>
  jmp    L2
  mov    $0x0,%eax
  call   <executionTime@plt>
  jmp    L2
  mov    $0x0,%eax
  call   <mips@plt>
  jmp    L2
L56:
  lea    D68(%rip),%rdi
  call   <printf@plt>
  jmp    L2
L66:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D89
type_infered: string
name: parse_data
arguments: tag: D74
type_infered: string
name: parse_data
arguments: tag: D55
type_infered: string
name: parse_data
arguments: tag: D84
type_infered: string
name: parse_data
arguments: tag: D106
type_infered: string
name: parse_data
arguments: tag: D17
type_infered: string
name: parse_data
arguments: tag: D49
type_infered: string
name: parse_data
arguments: tag: D98
type_infered: string
name: parse_data
arguments: tag: D19
type_infered: string
name: parse_data
arguments: tag: D68
type_infered: string

tool: D89: 
Menu of Options

tool: D74: 
---------------

tool: D55: 
1) Enter parameters

tool: D84: 
2) Calculate average CPI of a sequence of instructions

tool: D106: 
3) Calculate total execution time of a sequence of instructions

tool: D17: 
4) Calculate MIPS of a sequence of instructions

tool: D49: 
5) Quit



tool: D98: Enter selection: 

tool: D19: %d

tool: D68: 
Please enter a valid input (1-5)

assistant: ```c
int main() {
  int choice;
  while (choice != 5) {
    printf("\nMenu of Options");
    printf("\n---------------");
    printf("\n1) Enter parameters");
    printf("\n2) Calculate average CPI of a sequence of instructions");
    printf("\n3) Calculate total execution time of a sequence of instructions");
    printf("\n4) Calculate MIPS of a sequence of instructions");
    printf("\n5) Quit\n\n");
    printf("Enter selection: ");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      insertParams();
      break;
    case 2:
      calcCPI();
      break;
    case 3:
      executionTime();
      break;
    case 4:
      mips();
      break;
    case 5:
      break;
    default:
      printf("\nPlease enter a valid input (1-5)");
    }
  }
  return 0;
}
```