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

```asm
<ask_menu_selection>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  lea    D25(%rip),%rdi
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D10(%rip),%rdi
  call   <printf@plt>
  lea    D33(%rip),%rdi
  call   <printf@plt>
  lea    D72(%rip),%rdi
  call   <printf@plt>
  lea    D65(%rip),%rdi
  call   <printf@plt>
  lea    D20(%rip),%rdi
  call   <printf@plt>
  lea    D77(%rip),%rdi
  call   <printf@plt>
  lea    D39(%rip),%rdi
  call   <printf@plt>
  lea    D6(%rip),%rdi
  call   <printf@plt>
  lea    D79(%rip),%rdi
  call   <printf@plt>
  lea    D31(%rip),%rdi
  call   <printf@plt>
  mov    %rbx,%rsi
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    (%rbx),%eax
  cmp    $0x5,%eax
  jle    L1
L10:
  cmp    $0x9,%eax
  jne    L33
  movl   $0x1,0x0(%rbp)
L33:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L1:
  lea    0x7(%rsp),%r13
  lea    D88(%rip),%r12
  lea    D32(%rip),%rdi
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  movl   $0x1,0x0(%rbp)
  movb   $0x79,0x7(%rsp)
  call   <scanf@plt>
  mov    (%rbx),%eax
  jmp    L10
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D25
data_type: string
name: retrieve_data
arguments: data_label: D10
data_type: string
name: retrieve_data
arguments: data_label: D33
data_type: string
name: retrieve_data
arguments: data_label: D72
data_type: string
name: retrieve_data
arguments: data_label: D65
data_type: string
name: retrieve_data
arguments: data_label: D20
data_type: string
name: retrieve_data
arguments: data_label: D77
data_type: string
name: retrieve_data
arguments: data_label: D39
data_type: string
name: retrieve_data
arguments: data_label: D6
data_type: string
name: retrieve_data
arguments: data_label: D79
data_type: string
name: retrieve_data
arguments: data_label: D31
data_type: string
name: retrieve_data
arguments: data_label: D26
data_type: string
name: retrieve_data
arguments: data_label: D88
data_type: string
name: retrieve_data
arguments: data_label: D32
data_type: string

tool: D25: 
MENU for type of start system and homotopy :


tool: D10:   1. start system is based on total degree;


tool: D33:   2. a linear-product start system will be given;


tool: D72:   3. start system and start solutions are provided;


tool: D65:   4. the homotopy is a cascade to go one level down;


tool: D20:   5. diagonal homotopy to start a cascade;


tool: D77:   6. compute witness set for a hypersurface;


tool: D39:   7. collapse extrinsic diagonal of a witness set;


tool: D6:   8. remove the last slack variable of a witness set;


tool: D79:   9. test the crude path trackers.


tool: D31: Type 1, 2, 3, 4, 5, 6, 7, 8, or 9 to select : 

tool: D26: %d

tool: D88: %c

tool: D32: 
Do you want to monitor progress of solver on screen ? (y/n) 

assistant: ```c
void ask_menu_selection(int *kind, int *monitor) {
  char ans;
  printf("\nMENU for type of start system and homotopy :\n");
  printf("  1. start system is based on total degree;\n");
  printf("  2. a linear-product start system will be given;\n");
  printf("  3. start system and start solutions are provided;\n");
  printf("  4. the homotopy is a cascade to go one level down;\n");
  printf("  5. diagonal homotopy to start a cascade;\n");
  printf("  6. compute witness set for a hypersurface;\n");
  printf("  7. collapse extrinsic diagonal of a witness set;\n");
  printf("  8. remove the last slack variable of a witness set;\n");
  printf("  9. test the crude path trackers.\n");
  printf("Type 1, 2, 3, 4, 5, 6, 7, 8, or 9 to select : ");
  scanf("%d", kind);
  if (*kind < 6) {
    printf("\nDo you want to monitor progress of solver on screen ? (y/n) ");
    scanf("%c", &ans);
    scanf("%c", &ans);
    if (ans = 'y')
      *monitor = 1;
    else
      *monitor = 0;
    scanf("%c", &ans);
  }
  if (*kind == 9)
    *monitor = 1;
}
```