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

```asm
<display_game_menu>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,0xc(%rsp)
  mov    %esi,0x10(%rsp)
  mov    %edx,0x14(%rsp)
  mov    %ecx,0x18(%rsp)
  mov    %r8d,0x1c(%rsp)
  mov    0x80(%rsp),%r15
  mov    0x88(%rsp),%ebx
  mov    0x98(%rsp),%r13d
  mov    %r9d,%r14d
  movzbl 0x70(%rsp),%r12d
  movzbl 0x78(%rsp),%ebp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x24(%rsp)
  movb   $0x0,0x23(%rsp)
  jmp    L118
L16:
  movsbl %r12b,%esi
  mov    0x18(%rsp),%edx
  lea    D42(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L33
L112:
  lea    D65(%rip),%rdi
  call   <puts@plt>
  mov    %r15,%rsi
  lea    D61(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %ebx,%ebx
  je     L136
  cmp    $0x1,%ebx
  je     L70
L46:
  mov    $0x0,%eax
  call   <_flushall@plt>
  lea    D74(%rip),%rdi
  call   <system@plt>
  mov    %r13d,%edx
  mov    0x90(%rsp),%esi
  mov    0x24(%rsp),%edi
  call   <is_valid_item@plt>
  test   %eax,%eax
  jne    L121
L118:
  movsbl %r14b,%ecx
  mov    0x14(%rsp),%r8d
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%esi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    $0x30,%r12b
  jne    L16
L33:
  cmp    $0x30,%bpl
  je     L112
  movsbl %bpl,%esi
  mov    0x1c(%rsp),%edx
  lea    D42(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L112
L136:
  lea    0x24(%rsp),%rsi
  lea    D49(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  test   %eax,%eax
  jne    L46
  lea    -0x1(%r13),%eax
  mov    %eax,0x24(%rsp)
  jmp    L46
L70:
  lea    0x23(%rsp),%rsi
  lea    D43(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  test   %eax,%eax
  jne    L4
  lea    -0x1(%r13),%eax
  mov    %eax,0x24(%rsp)
  jmp    L46
L4:
  movsbl 0x23(%rsp),%edi
  call   <char_convert@plt>
  mov    %eax,0x24(%rsp)
  jmp    L46
L121:
  mov    0x24(%rsp),%eax
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L48
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D42
type: string
name: read_data
arguments: label: D65
type: string
name: read_data
arguments: label: D61
type: string
name: read_data
arguments: label: D74
type: string
name: read_data
arguments: label: D35
type: string
name: read_data
arguments: label: D49
type: string
name: read_data
arguments: label: D43
type: string

tool: D42:  %c %d

tool: D65:  = ?

tool: D61: %s



tool: D74: cls

tool: D35: Question #%d: %d %c %d

tool: D49:  %d

tool: D43:  %c

assistant: ```c
int display_game_menu(int questions, int term1, int term2, int term3, int term4, char operand1, char operand2, char operand3, char menu_items[], int menu_type, int num_items, int min_items) {
  int option = 0, error_check = 0;
  char char_option = '\0';
  do {
    printf("Question #%d: %d %c %d", questions, term1, operand1, term2);
    if (operand2 != '0') {
      printf(" %c %d", operand2, term3);
    }
    if (operand3 != '0') {
      printf(" %c %d", operand3, term4);
    }
    printf(" = ?\n");
    printf("%s\n\n", menu_items);
    if (menu_type == 0) {
      error_check = scanf(" %d", &option);
      if (!error_check) {
        option = min_items - 1;
      }
    } else if (menu_type == 1) {
      error_check = scanf(" %c", &char_option);
      if (!error_check) {
        option = min_items - 1;
      } else {
        option = char_convert(char_option);
      }
    }
    _flushall();
    system("cls");
  } while (!is_valid_item(option, num_items, min_items));
  return option;
}
```