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

```asm
<possible_win_multi>:
  endbr64
  push   %r14
  cmp    $0x78,%sil
  mov    $0x32,%eax
  push   %r13
  mov    $0x12,%r13d
  push   %r12
  cmovne %eax,%r13d
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
L57:
  mov    (%rbx,%r12,8),%rax
  mov    %r12d,%r14d
  movsbl (%rax),%edi
  call   <val@plt>
  mov    %eax,%ebp
  mov    (%rbx,%r12,8),%rax
  movsbl 0x1(%rax),%edi
  call   <val@plt>
  imul   %eax,%ebp
  mov    (%rbx,%r12,8),%rax
  movsbl 0x2(%rax),%edi
  call   <val@plt>
  imul   %eax,%ebp
  cmp    %r13d,%ebp
  je     L76
L210:
  add    $0x1,%r12
  cmp    $0x3,%r12
  jne    L57
  xor    %r12d,%r12d
L208:
  mov    (%rbx),%rax
  mov    %r12d,%r14d
  movsbl (%rax,%r12,1),%edi
  call   <val@plt>
  mov    %eax,%ebp
  mov    0x8(%rbx),%rax
  movsbl (%rax,%r12,1),%edi
  call   <val@plt>
  imul   %eax,%ebp
  mov    0x10(%rbx),%rax
  movsbl (%rax,%r12,1),%edi
  call   <val@plt>
  imul   %eax,%ebp
  cmp    %r13d,%ebp
  je     L146
L104:
  add    $0x1,%r12
  cmp    $0x3,%r12
  jne    L208
  mov    (%rbx),%rax
  movsbl (%rax),%edi
  call   <val@plt>
  mov    %eax,%ebp
  mov    0x8(%rbx),%rax
  movsbl 0x1(%rax),%edi
  call   <val@plt>
  imul   %eax,%ebp
  mov    0x10(%rbx),%rax
  movsbl 0x2(%rax),%edi
  call   <val@plt>
  imul   %eax,%ebp
  mov    (%rbx),%rax
  cmp    %r13d,%ebp
  jne    L69
  cmpb   $0x2d,(%rax)
  je     L145
  mov    0x8(%rbx),%rdx
  cmpb   $0x2d,0x1(%rdx)
  je     L27
  mov    0x10(%rbx),%rdx
  cmpb   $0x2d,0x2(%rdx)
  je     L67
L69:
  movsbl 0x2(%rax),%edi
  call   <val@plt>
  mov    %eax,%ebp
  mov    0x8(%rbx),%rax
  movsbl 0x1(%rax),%edi
  call   <val@plt>
  imul   %eax,%ebp
  mov    0x10(%rbx),%rax
  movsbl (%rax),%edi
  call   <val@plt>
  imul   %eax,%ebp
  cmp    %r13d,%ebp
  je     L87
L169:
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L76:
  mov    (%rbx,%r12,8),%rax
  cmpb   $0x2d,(%rax)
  je     L50
  cmpb   $0x2d,0x1(%rax)
  je     L8
  cmpb   $0x2d,0x2(%rax)
  jne    L210
L207:
  mov    $0x2,%eax
L217:
  lea    (%r14,%r14,2),%edx
  lea    D10(%rip),%rdi
  lea    0x1(%rax,%rdx,1),%r12d
  mov    %r12d,%esi
  call   <printf@plt>
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L146:
  mov    (%rbx,%r12,8),%rax
  cmpb   $0x2d,(%rax)
  je     L50
  cmpb   $0x2d,0x1(%rax)
  je     L8
  cmpb   $0x2d,0x2(%rax)
  jne    L104
  jmp    L207
  nop
L87:
  mov    (%rbx),%rax
  cmpb   $0x2d,0x2(%rax)
  je     L185
  mov    0x8(%rbx),%rax
  cmpb   $0x2d,0x1(%rax)
  je     L30
  mov    0x10(%rbx),%rax
  cmpb   $0x2d,(%rax)
  jne    L169
  mov    $0x2,%eax
  xor    %edx,%edx
L75:
  lea    (%rax,%rax,2),%eax
  lea    D10(%rip),%rdi
  lea    0x1(%rdx,%rax,1),%r12d
  mov    %r12d,%esi
  call   <printf@plt>
  jmp    L169
L67:
  mov    $0x2,%eax
L106:
  lea    0x1(,%rax,4),%r12d
  lea    D10(%rip),%rdi
  mov    %r12d,%esi
  call   <printf@plt>
  jmp    L169
  nopl   0x0(%rax)
L50:
  xor    %eax,%eax
  jmp    L217
  nop
L8:
  mov    $0x1,%eax
  jmp    L217
L145:
  xor    %eax,%eax
  jmp    L106
L27:
  mov    $0x1,%eax
  jmp    L106
L185:
  xor    %eax,%eax
  mov    $0x2,%edx
  jmp    L75
L30:
  mov    $0x1,%eax
  mov    $0x1,%edx
  jmp    L75
```

tool_calls: name: parse_data
arguments: data_tag: D10
type: string

tool: D10: returning: %d


assistant: ```c
int possible_win_multi(char **board, char piece) {
  int i, j;
  int win_value = (piece == 'x') ? 18 : 50;
  for (i = 0; i < 3; ++i) {
    if ((val(board[i][0]) * val(board[i][1]) * val(board[i][2])) == win_value) {
      for (j = 0; j < 3; ++j) {
        if (board[i][j] == '-') {
          printf("returning: %d\n", (3 * i + j + 1));
          return (3 * i + j + 1);
        }
      }
    }
  }
  for (i = 0; i < 3; ++i) {
    if ((val(board[0][i]) * val(board[1][i]) * val(board[2][i])) == win_value) {
      for (j = 0; j < 3; ++j) {
        if (board[i][j] == '-') {
          printf("returning: %d\n", (3 * i + j + 1));
          return (3 * i + j + 1);
        }
      }
    }
  }
  if ((val(board[0][0]) * val(board[1][1]) * val(board[2][2])) == win_value) {
    for (j = 0; j < 3; ++j) {
      if (board[j][j] == '-') {
        printf("returning: %d\n", (3 * j + j + 1));
        return (3 * j + j + 1);
      }
    }
  }
  if ((val(board[0][2]) * val(board[1][1]) * val(board[2][0])) == win_value) {
    for (j = 0; j < 3; ++j) {
      if (board[j][2 - j] == '-') {
        printf("returning: %d\n", (3 * j + (2 - j) + 1));
        return (3 * j + (2 - j) + 1);
      }
    }
  }
}
```