user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D23(%rip),%r15
  push   %r14
  lea    D36(%rip),%r14
  push   %r13
  lea    D42(%rip),%r13
  push   %r12
  lea    D5(%rip),%r12
  push   %rbp
  lea    D6(%rip),%rbp
  push   %rbx
  lea    D11(%rip),%rbx
  sub    $0xf8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%rax
  movl   $0x0,0x1c(%rsp)
  mov    %rax,(%rsp)
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopl   (%rax)
L10:
  mov    %r15,%rdi
  call   <puts@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D66(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%rsi
  lea    D7(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x4,0x18(%rsp)
  ja     L31
  mov    0x18(%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   (%rax)
  mov    0x1c(%rsp),%esi
  mov    0x8(%rsp),%rdi
  call   <qiksort@plt>
L30:
  mov    0x8(%rsp),%rdi
  mov    0x1c(%rsp),%esi
  call   <display@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
L38:
  mov    0x18(%rsp),%eax
  test   %eax,%eax
  jne    L10
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0xf8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
  mov    0x8(%rsp),%rdi
  lea    0x1c(%rsp),%rsi
  call   <accept@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L38
  nopl   0x0(%rax,%rax,1)
  lea    D29(%rip),%rdi
  call   <puts@plt>
  jmp    L38
  cs nopw 0x0(%rax,%rax,1)
  mov    0x1c(%rsp),%esi
  mov    0x8(%rsp),%rdi
  call   <mrgsort@plt>
  jmp    L30
L31:
  lea    D21(%rip),%rdi
  call   <puts@plt>
  jmp    L38
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D23
type_infered: string
name: parse_data
arguments: label: D36
type_infered: string
name: parse_data
arguments: label: D42
type_infered: string
name: parse_data
arguments: label: D5
type_infered: string
name: parse_data
arguments: label: D6
type_infered: string
name: parse_data
arguments: label: D66
type_infered: string
name: parse_data
arguments: label: D7
type_infered: string
name: parse_data
arguments: label: D29
type_infered: string
name: parse_data
arguments: label: D21
type_infered: string

tool: D23: What would you like to do?

tool: D36:  ( 0) Exit

tool: D42:  ( 1) Populate Array

tool: D5:  ( 2) Print

tool: D6:  ( 3) Quick Sort

tool: D66:  ( 4) Merge Sort

tool: D7:  %u%*c

tool: D29: Bye!

tool: D21: Incorrect Choice!

assistant: ```c
int main() {
  unsigned ch, n = 0;
  int a[50];
  do {
    puts("What would you like to do?");
    puts(" ( 0) Exit");
    puts(" ( 1) Populate Array");
    puts(" ( 2) Print");
    puts(" ( 3) Quick Sort");
    puts(" ( 4) Merge Sort");
    scanf(" %u%*c", &ch);
    switch (ch) {
    case 0:
      puts("Bye!");
      break;
    case 1:
      accept(a, &n);
      putchar('\n');
      break;
    case 2:
      display(a, n);
      putchar('\n');
      break;
    case 3:
      qiksort(a, n);
      display(a, n);
      putchar('\n');
      break;
    case 4:
      mrgsort(a, n);
      display(a, n);
      putchar('\n');
      break;
    default:
      puts("Incorrect Choice!");
      break;
    }
  } while (ch);
  putchar('\n');
  return 0;
}
```