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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x3fc(%rbp)
  lea    -0x40c(%rbp),%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L104
L73:
  movl   $0x1,-0x3f8(%rbp)
  movl   $0x0,-0x404(%rbp)
  jmp    L8
L88:
  movl   $0x0,-0x400(%rbp)
  jmp    L97
L52:
  mov    -0x400(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x404(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movl   $0x0,-0x3f0(%rbp,%rax,4)
  mov    -0x400(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x404(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movl   $0x0,-0x2a0(%rbp,%rax,4)
  mov    -0x400(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x404(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movl   $0x0,-0x150(%rbp,%rax,4)
  addl   $0x1,-0x400(%rbp)
L97:
  cmpl   $0x8,-0x400(%rbp)
  jle    L52
  addl   $0x1,-0x404(%rbp)
L8:
  cmpl   $0x8,-0x404(%rbp)
  jle    L88
  movl   $0x0,-0x404(%rbp)
  jmp    L134
L131:
  movl   $0x0,-0x400(%rbp)
  jmp    L153
L42:
  lea    -0x408(%rbp),%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x400(%rbp),%edx
  mov    -0x404(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <getQuad@plt>
  mov    %eax,-0x3f4(%rbp)
  mov    -0x408(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x404(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  mov    -0x2a0(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L108
  movl   $0x0,-0x3f8(%rbp)
L108:
  mov    -0x408(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x400(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  mov    -0x3f0(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L29
  movl   $0x0,-0x3f8(%rbp)
L29:
  mov    -0x408(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x3f4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  mov    -0x150(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L113
  movl   $0x0,-0x3f8(%rbp)
L113:
  mov    -0x408(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x404(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movl   $0x1,-0x2a0(%rbp,%rax,4)
  mov    -0x408(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x400(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movl   $0x1,-0x3f0(%rbp,%rax,4)
  mov    -0x408(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  mov    -0x3f4(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    %rcx,%rax
  movl   $0x1,-0x150(%rbp,%rax,4)
  addl   $0x1,-0x400(%rbp)
L153:
  cmpl   $0x8,-0x400(%rbp)
  jle    L42
  addl   $0x1,-0x404(%rbp)
L134:
  cmpl   $0x8,-0x404(%rbp)
  jle    L131
  mov    -0x3fc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x3fc(%rbp)
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x3f8(%rbp)
  je     L125
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L104
L125:
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L104:
  mov    -0x40c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40c(%rbp)
  test   %eax,%eax
  jne    L73
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L139
  call   <__stack_chk_fail@plt>
L139:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D31
type: string
name: unpack_data
arguments: label: D20
type: string
name: unpack_data
arguments: label: D2
type: string
name: unpack_data
arguments: label: D32
type: string

tool: D31: %d

tool: D20: Instancia %d


tool: D2: SIM


tool: D32: NAO


assistant: ```c
int main() {
  int mat[9][9], columns[9][9], rows[9][9], quads[9][9];
  int i, j, n, k = 1, c, flag, nQuad;
  scanf("%d", &n);
  while (n--) {
    flag = 1;
    for (i = 0; i < 9; i++) {
      for (j = 0; j < 9; j++) {
        columns[i][j] = 0;
        rows[i][j] = 0;
        quads[i][j] = 0;
      }
    }
    for (i = 0; i < 9; i++) {
      for (j = 0; j < 9; j++) {
        scanf("%d", &c);
        nQuad = getQuad(i, j);
        if (rows[i][c - 1]) {
          flag = 0;
        }
        if (columns[j][c - 1]) {
          flag = 0;
        }
        if (quads[nQuad][c - 1]) {
          flag = 0;
        }
        rows[i][c - 1] = 1;
        columns[j][c - 1] = 1;
        quads[nQuad][c - 1] = 1;
      }
    }
    printf("Instancia %d\n", k++);
    if (flag) {
      printf("SIM\n\n");
    } else {
      printf("NAO\n\n");
    }
  }
  return 0;
}
```