user: Please show me the C implementation that matches the assembly code listed below:

```asm
<computer_move>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,%ecx
  mov    %edx,%eax
  mov    %ecx,%edx
  mov    %dl,-0x7c(%rbp)
  mov    %al,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    D18(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x5c(%rbp)
  movl   $0x0,-0x58(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L13
L63:
  movl   $0x0,-0x60(%rbp)
  jmp    L86
L17:
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L57
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%eax
  cltq
  add    %rax,%rdx
  movzbl -0x7c(%rbp),%eax
  mov    %al,(%rdx)
  mov    D6(%rip),%rax
  mov    (%rax),%edi
  mov    D18(%rip),%rax
  mov    (%rax),%ecx
  movsbl -0x80(%rbp),%edx
  movsbl -0x7c(%rbp),%esi
  mov    -0x78(%rbp),%rax
  mov    $0xffffffff,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <minimax@plt>
  mov    %eax,-0x54(%rbp)
  mov    -0x54(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jle    L55
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x5c(%rbp)
  movl   $0x1,-0x58(%rbp)
  mov    -0x64(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x60(%rbp),%eax
  mov    %eax,-0x4c(%rbp)
  jmp    L44
L55:
  mov    -0x54(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jne    L44
  mov    -0x58(%rbp),%eax
  cltq
  mov    -0x64(%rbp),%edx
  mov    %edx,-0x50(%rbp,%rax,8)
  mov    -0x58(%rbp),%eax
  cltq
  mov    -0x60(%rbp),%edx
  mov    %edx,-0x4c(%rbp,%rax,8)
  addl   $0x1,-0x58(%rbp)
L44:
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%eax
  cltq
  add    %rdx,%rax
  movb   $0x2d,(%rax)
L57:
  addl   $0x1,-0x60(%rbp)
L86:
  cmpl   $0x2,-0x60(%rbp)
  jle    L17
  addl   $0x1,-0x64(%rbp)
L13:
  cmpl   $0x2,-0x64(%rbp)
  jle    L63
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0x58(%rbp)
  mov    %edx,-0x58(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,8),%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  mov    -0x4c(%rbp,%rax,8),%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%eax
  cltq
  add    %rax,%rdx
  movzbl -0x7c(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0x1,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L75
  call   <__stack_chk_fail@plt>
L75:
  leave
  ret
```

assistant: ```c
int computer_move(char **board, char piece1, char piece2) {
  int i, j;
  int bestValue = INT_MIN;
  int bestMoves[9][2], bestLen = 0;
  for (i = 0; i < 3; i++)
    for (j = 0; j < 3; j++)
      if (board[i][j] == '-') {
        board[i][j] = piece1;
        int score = minimax(board, piece1, piece2, INT_MIN, INT_MAX, -1);
        if (score > bestValue) {
          bestValue = score;
          bestLen = 1;
          bestMoves[0][0] = i;
          bestMoves[0][1] = j;
        } else if (score == bestValue) {
          bestMoves[bestLen][0] = i;
          bestMoves[bestLen][1] = j;
          bestLen++;
        }
        board[i][j] = '-';
      }
  bestLen = rand() % bestLen;
  i = bestMoves[bestLen][0];
  j = bestMoves[bestLen][1];
  board[i][j] = piece1;
  return 1;
}
```