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

```asm
<main>:
  endbr64
  push   %r12
  xor    %eax,%eax
  mov    $0x1,%r12d
  push   %rbp
  mov    $0x1,%ebp
  push   %rbx
  call   <init_curses@plt>
  xor    %eax,%eax
  call   <init_board@plt>
  xor    %eax,%eax
  call   <print_game_title@plt>
  xor    %eax,%eax
  call   <print_board@plt>
  xor    %eax,%eax
  call   <print_hud@plt>
  jmp    L33
  nopl   0x0(%rax,%rax,1)
L49:
  mov    $0x2,%edi
  call   <is_move_possible@plt>
  test   %rax,%rax
  je     L80
  mov    %ebp,%ebx
  xor    %r12d,%r12d
L110:
  xor    %eax,%eax
  call   <make_computer_move@plt>
L70:
  test   %ebx,%ebx
  je     L80
L33:
  xor    %eax,%eax
  call   <print_board@plt>
  xor    %eax,%eax
  call   <print_hud@plt>
  mov    $0x1,%edi
  call   <is_move_possible@plt>
  test   %rax,%rax
  je     L49
  xor    %eax,%eax
  call   <make_player_move@plt>
  mov    $0x2,%edi
  call   <is_move_possible@plt>
  test   %rax,%rax
  jne    L27
  mov    %r12d,%ebx
  xor    %ebp,%ebp
  jmp    L70
  nopl   (%rax)
L80:
  mov    $0x2,%edi
  call   <get_board_score@plt>
  mov    $0x1,%edi
  mov    %rax,%rbx
  call   <get_board_score@plt>
  cmp    %rax,%rbx
  jle    L43
  mov    $0x4,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attron@plt>
  mov    $0x2b,%esi
  mov    $0xc,%edi
  lea    D0(%rip),%rdx
  call   <mvprintw@plt>
  mov    $0x4,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attroff@plt>
L76:
  mov    $0x5,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attron@plt>
  mov    $0x2b,%esi
  mov    $0xd,%edi
  lea    D22(%rip),%rdx
  call   <mvprintw@plt>
  mov    $0x5,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attroff@plt>
  xor    %eax,%eax
  call   <refresh@plt>
  nopw   0x0(%rax,%rax,1)
L115:
  xor    %eax,%eax
  call   <getch@plt>
  cmp    $0x20,%eax
  jne    L115
  xor    %eax,%eax
  call   <endwin@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
L43:
  mov    $0x2,%edi
  call   <get_board_score@plt>
  mov    $0x1,%edi
  mov    %rax,%rbx
  call   <get_board_score@plt>
  mov    $0x3,%edi
  cmp    %rax,%rbx
  jl     L28
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attron@plt>
  lea    D31(%rip),%rdx
L100:
  mov    $0x2b,%esi
  mov    $0xc,%edi
  call   <mvprintw@plt>
  mov    $0x3,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attroff@plt>
  jmp    L76
L28:
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attron@plt>
  lea    D10(%rip),%rdx
  jmp    L100
L27:
  mov    %ebp,%ebx
  or     %r12d,%ebx
  jmp    L110
```

tool_calls: name: parse_data
arguments: data_tag: D0
type_infered: string
name: parse_data
arguments: data_tag: D22
type_infered: string
name: parse_data
arguments: data_tag: D31
type_infered: string
name: parse_data
arguments: data_tag: D10
type_infered: string

tool: D0:    GAME OVER: COMPUTER WON   

tool: D22:    PRESS SPACE KEY TO EXIT   

tool: D31:     GAME OVER: IT'S A TIE    

tool: D10:      GAME OVER: YOU WON      

assistant: ```c
int main() {
  int input;
  init_curses();
  init_board();
  print_game_title();
  print_board();
  print_hud();
  bool computer_move_possible = true;
  bool player_move_possible = true;
  while (computer_move_possible || player_move_possible) {
    print_board();
    print_hud();
    if (is_move_possible(1)) {
      make_player_move();
    } else {
      player_move_possible = false;
    }
    if (is_move_possible(2)) {
      make_computer_move();
    } else {
      computer_move_possible = false;
    }
  }
  if (get_board_score(2) > get_board_score(1)) {
    attron(COLOR_PAIR(4));
    mvprintw((3 + 1) + 8, ((8 + 2) * 4 + 2) + 1, "   GAME OVER: COMPUTER WON   ");
    attroff(COLOR_PAIR(4));
  } else if (get_board_score(2) < get_board_score(1)) {
    attron(COLOR_PAIR(3));
    mvprintw((3 + 1) + 8, ((8 + 2) * 4 + 2) + 1, "     GAME OVER: YOU WON      ");
    attroff(COLOR_PAIR(3));
  } else {
    attron(COLOR_PAIR(3));
    mvprintw((3 + 1) + 8, ((8 + 2) * 4 + 2) + 1, "    GAME OVER: IT'S A TIE    ");
    attroff(COLOR_PAIR(3));
  }
  attron(COLOR_PAIR(5));
  mvprintw((3 + 1) + 9, ((8 + 2) * 4 + 2) + 1, "   PRESS SPACE KEY TO EXIT   ");
  attroff(COLOR_PAIR(5));
  refresh();
  do {
    input = getch();
  } while (input != ' ');
  endwin();
  return 0;
}
```