user: Converte this assembly snippet into its equivalent C code:

```asm
<imprimeTabuleiro>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x14(%rbp)
  jmp    L147
L17:
  mov    -0x14(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L45
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  add    $0x61,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L43
L45:
  mov    $0x20,%edi
  call   <putchar@plt>
L43:
  addl   $0x1,-0x14(%rbp)
L147:
  cmpl   $0x13,-0x14(%rbp)
  jle    L17
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x10(%rbp)
  jmp    L71
L69:
  mov    $0x2d,%edi
  call   <putchar@plt>
  addl   $0x1,-0x10(%rbp)
L71:
  cmpl   $0x12,-0x10(%rbp)
  jle    L69
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L11
L83:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%esi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x8(%rbp)
  jmp    L3
L150:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L2
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L72
L2:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L24
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L72
L24:
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L72:
  addl   $0x1,-0x8(%rbp)
L3:
  cmpl   $0x9,-0x8(%rbp)
  jle    L150
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  addl   $0x1,-0xc(%rbp)
L11:
  cmpl   $0x9,-0xc(%rbp)
  jle    L83
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L148
L25:
  mov    $0x2d,%edi
  call   <putchar@plt>
  addl   $0x1,-0x4(%rbp)
L148:
  cmpl   $0x12,-0x4(%rbp)
  jle    L25
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D21
type: string
name: extract_symbolic_data
arguments: data_label: D60
type: string
name: extract_symbolic_data
arguments: data_label: D41
type: string
name: extract_symbolic_data
arguments: data_label: D61
type: string
name: extract_symbolic_data
arguments: data_label: D49
type: string
name: extract_symbolic_data
arguments: data_label: D75
type: string
name: extract_symbolic_data
arguments: data_label: D70
type: string

tool: D21:    

tool: D60: 
   

tool: D41: %2d|

tool: D61: x 

tool: D49: o 

tool: D75:   

tool: D70: |

assistant: ```c
void imprimeTabuleiro(int **tabuleiro) {
  printf("   ");
  for (int i = 0; i < (2 * 10); i++) {
    if (!(i % 2))
      printf("%c", ((i / 2) + 97));
    else
      printf(" ");
  }
  printf("\n   ");
  for (int i = 0; i < ((2 * 10) - 1); i++)
    printf("-");
  printf("\n");
  for (int i = 0; i < 10; i++) {
    printf("%2d|", (i + 1));
    for (int j = 0; j < 10; j++) {
      if (tabuleiro[i][j] == 1)
        printf("x ");
      else if (tabuleiro[i][j] == -1)
        printf("o ");
      else
        printf("  ");
    }
    printf("\b|\n");
  }
  printf("   ");
  for (int i = 0; i < ((2 * 10) - 1); i++)
    printf("-");
  printf("\n");
}
```