user: What is the c source code of the assembly code below?

```asm
<MainMenu>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  lea    D62(%rip),%r13
  lea    D97(%rip),%r12
  lea    D27(%rip),%rbp
  lea    D49(%rip),%rbx
L7:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  lea    D93(%rip),%rdi
  call   <puts@plt>
  lea    D60(%rip),%rdi
  call   <puts@plt>
  lea    D52(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <LeddarGetKey@plt>
  mov    %eax,%edi
  call   <toupper@plt>
  sub    $0x1b,%eax
  cmp    $0x36,%eax
  ja     L7
  mov    %eax,%eax
  lea    D84(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x0,%edi
  call   <ConnectMenu@plt>
  jmp    L7
  mov    $0x1,%edi
  call   <ConnectMenu@plt>
  jmp    L7
  mov    %rsp,%r14
  mov    $0xff,%edx
  mov    %r14,%rsi
  lea    D80(%rip),%rdi
  call   <ListSensors@plt>
  mov    $0xff,%edx
  mov    %r14,%rsi
  lea    D88(%rip),%rdi
  call   <ListSensors@plt>
  jmp    L7
  mov    $0x0,%eax
  call   <ReplayMenu@plt>
  jmp    L7
  mov    $0x0,%eax
  call   <ConfigureRecordingMenu@plt>
  jmp    L7
  lea    D43(%rip),%rdi
  call   <puts@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D62
type_guessed: string
name: disassemble_data
arguments: label: D97
type_guessed: string
name: disassemble_data
arguments: label: D27
type_guessed: string
name: disassemble_data
arguments: label: D49
type_guessed: string
name: disassemble_data
arguments: label: D93
type_guessed: string
name: disassemble_data
arguments: label: D60
type_guessed: string
name: disassemble_data
arguments: label: D52
type_guessed: string
name: disassemble_data
arguments: label: D80
type_guessed: string
name: disassemble_data
arguments: label: D88
type_guessed: string
name: disassemble_data
arguments: label: D43
type_guessed: string

tool: D62: 

Main Menu

tool: D97:   1. Connect

tool: D27:   2. Connect to single USB sensor

tool: D49:   3. List Sensors

tool: D93:   4. Replay Record

tool: D60:   5. Configure Recording

tool: D52:   6. Quit

tool: D80: USB

tool: D88: SERIAL

tool: D43: 
*** Goodbye! ***

assistant: ```c
void MainMenu(void) {
  for (;;) {
    int lChoice;
    puts("\n\nMain Menu");
    puts("  1. Connect");
    puts("  2. Connect to single USB sensor");
    puts("  3. List Sensors");
    puts("  4. Replay Record");
    puts("  5. Configure Recording");
    puts("  6. Quit");
    lChoice = toupper(LeddarGetKey());
    switch (lChoice) {
    case '1':
      ConnectMenu(0);
      break;
    case '2':
      ConnectMenu(1);
      break;
    case '3': {
      char lAddresses[256];
      ListSensors("USB", lAddresses, 255);
      ListSensors("SERIAL", lAddresses, 255);
      break;
    }
    case '4':
      ReplayMenu();
      break;
    case '5':
      ConfigureRecordingMenu();
      break;
    case '6':
    case 'Q':
    case 27:
      puts("\n*** Goodbye! ***");
      return;
    }
  }
}
```