user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movq   $0x0,0xe(%rsp)
  movw   $0x0,0x16(%rsp)
  call   <printStudInfo@plt>
  lea    D99(%rip),%rdi
  call   <printf@plt>
  lea    D84(%rip),%rbp
  lea    D75(%rip),%r12
L105:
  lea    D100(%rip),%r13
L92:
  lea    D94(%rip),%r14
L94:
  lea    0xe(%rsp),%rdi
  mov    %rbp,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L50
  lea    0xe(%rsp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L50
  lea    0xe(%rsp),%rdi
  mov    %r13,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L50
  mov    %r14,%rdi
  call   <printf@plt>
  lea    0xe(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D1(%rip),%rdi
  call   <scanf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L94
  mov    %rbx,%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L92
  mov    %rbx,%rdi
  lea    D100(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L105
  lea    D41(%rip),%rdi
  call   <printf@plt>
  jmp    L105
L50:
  lea    0xe(%rsp),%rdi
  lea    D84(%rip),%rsi
  call   <strcmp@plt>
  mov    $0x1e,%edi
  test   %rax,%rax
  jne    L115
L48:
  call   <printIntro@plt>
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    $0x8,%esi
  mov    $0xa,%edi
  call   <calloc@plt>
  mov    %rax,%rbp
  mov    %rax,%rbx
  lea    0x50(%rax),%r12
L40:
  mov    $0x4,%esi
  mov    $0xa,%edi
  call   <calloc@plt>
  mov    %rax,(%rbx)
  add    $0x8,%rbx
  cmp    %rbx,%r12
  jne    L40
  lea    D44(%rip),%rdi
  call   <printf@plt>
L95:
  mov    $0x4,%esi
  mov    %rbp,%rdi
  call   <assignShip@plt>
  test   %eax,%eax
  je     L95
L10:
  mov    $0x5,%esi
  mov    %rbp,%rdi
  call   <assignShip@plt>
  test   %eax,%eax
  je     L10
  mov    %rbp,%rdi
  call   <dispGrid@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L110
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L115:
  lea    0xe(%rsp),%rdi
  lea    D75(%rip),%rsi
  call   <strcmp@plt>
  cmp    $0x1,%rax
  sbb    %edi,%edi
  and    $0x5,%edi
  add    $0x14,%edi
  jmp    L48
L110:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D99
type_infered: string
name: parse_data
arguments: label: D84
type_infered: string
name: parse_data
arguments: label: D75
type_infered: string
name: parse_data
arguments: label: D100
type_infered: string
name: parse_data
arguments: label: D94
type_infered: string
name: parse_data
arguments: label: D1
type_infered: string
name: parse_data
arguments: label: D41
type_infered: string
name: parse_data
arguments: label: D55
type_infered: string
name: parse_data
arguments: label: D44
type_infered: string

tool: D99: 
                Welcome to Battleship!                    



tool: D84: easy

tool: D75: normal

tool: D100: hard

tool: D94: Enter difficulty level of game (easy, normal, hard): 

tool: D1: %s

tool: D41: Invalid input. Response is case sensitive. Please select again.


tool: D55: Initializing board... 

tool: D44: now let's begin!



assistant: ```c
int main(void) {
  int **board;
  int i;
  int j;
  char level[10] = "";
  int maxTries;
  int validLoc = 0;
  printStudInfo();
  printf("\n                Welcome to Battleship!                    \n\n");
  while ((strcmp(level, "easy")) && (strcmp(level, "normal")) && (strcmp(level, "hard"))) {
    printf("Enter difficulty level of game (easy, normal, hard): ");
    scanf("%s", level);
    if ((strcmp(level, "easy")) && (strcmp(level, "normal")) && (strcmp(level, "hard"))) {
      printf("Invalid input. Response is case sensitive. Please select again.\n");
    }
  }
  if (!strcmp(level, "easy")) {
    maxTries = 30;
  } else if (!strcmp(level, "normal")) {
    maxTries = 25;
  } else {
    maxTries = 20;
  }
  printIntro(maxTries);
  printf("Initializing board... ");
  board = calloc(10, sizeof(int *));
  for (i = 0; i < 10; i++) {
    board[i] = calloc(10, sizeof(int));
  }
  printf("now let's begin!\n\n");
  while (!validLoc) {
    validLoc = assignShip(board, 4);
  }
  validLoc = 0;
  while (!validLoc) {
    validLoc = assignShip(board, 5);
  }
  dispGrid(board);
  return 0;
}
```