user: Translate the below assembly code into C programming language:

```asm
<rover_stats>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%eax
  mov    %ecx,%ebp
  mov    %r9d,%r12d
  movsbl %dil,%esi
  cmp    %eax,%esi
  je     L57
  mov    %r8d,%ebx
  cmp    %edx,%esi
  je     L4
  lea    D28(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x1,0x28(%rsp)
  je     L1
  mov    %ebp,%esi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D42(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L19:
  mov    0x20(%rsp),%esi
  lea    D21(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L3:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L57:
  lea    D75(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%edx
  mov    %ebp,%esi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x64,%ebp,%eax
  cltd
  idiv   %r12d
  mov    0x20(%rsp),%edx
  mov    %eax,%esi
  lea    D61(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L3
L4:
  lea    D75(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%edx
  mov    %ebx,%esi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   $0x64,%ebx,%eax
  cltd
  idiv   %r12d
  mov    0x20(%rsp),%edx
  mov    %eax,%esi
  lea    D61(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L3
L1:
  mov    %ebp,%esi
  lea    D59(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D46(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L19
```

tool_calls: name: parse_data
arguments: data_tag: D28
datatype: string
name: parse_data
arguments: data_tag: D9
datatype: string
name: parse_data
arguments: data_tag: D42
datatype: string
name: parse_data
arguments: data_tag: D21
datatype: string
name: parse_data
arguments: data_tag: D75
datatype: string
name: parse_data
arguments: data_tag: D22
datatype: string
name: parse_data
arguments: data_tag: D61
datatype: string
name: parse_data
arguments: data_tag: D59
datatype: string
name: parse_data
arguments: data_tag: D46
datatype: string

tool: D28: Stalemate... nobody won :(

tool: D9: Player 1 has won %d game(s), 

tool: D42: Player 2 has won %d game(s)


tool: D21: Stalemate count is %d time(s)


tool: D75: TicTacToe! %c wins!


tool: D22: Current winner has won %d game(s) out of %d, 

tool: D61: %d%% win(s) including %d stalemate(s)


tool: D59: Human player has won %d game(s), 

tool: D46: Computer player has won %d game(s)


assistant: ```c
void rover_stats(char winner, int player1, int player2, int wplayer1, int wplayer2, int nreplays, int nstalemates, int mode) {
  int p1stats, p2stats;
  p1stats = wplayer1 * 100 / nreplays;
  p2stats = wplayer2 * 100 / nreplays;
  if (winner == player1) {
    printf("TicTacToe! %c wins!\n", winner);
    printf("Current winner has won %d game(s) out of %d, ", wplayer1, nreplays);
    printf("%d%% win(s) including %d stalemate(s)\n", p1stats, nstalemates);
  } else if (winner == player2) {
    printf("TicTacToe! %c wins!\n", winner);
    printf("Current winner has won %d game(s) out of %d, ", wplayer2, nreplays);
    printf("%d%% win(s) including %d stalemate(s)\n", p2stats, nstalemates);
  } else {
    printf("Stalemate... nobody won :(\n");
    if (mode == 1) {
      printf("Human player has won %d game(s), ", wplayer1);
      printf("Computer player has won %d game(s)\n", wplayer2);
    } else {
      printf("Player 1 has won %d game(s), ", wplayer1);
      printf("Player 2 has won %d game(s)\n", wplayer2);
    }
    printf("Stalemate count is %d time(s)\n", nstalemates);
  }
}
```