user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r14
  mov    $0x20,%ecx
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x120,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  rep stos %rax,%es:(%rdi)
  lea    D16(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L194
  xor    %ebx,%ebx
  lea    0xc(%rsp),%r14
  lea    0x8(%rsp),%r13
  lea    D31(%rip),%r12
L124:
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq 0xc(%rsp),%rdi
  movslq 0x8(%rsp),%r8
  lea    (%rdi,%r8,8),%rax
  mov    %r8,%rcx
  lea    0x0(%rbp,%rdi,4),%rdx
  mov    %rdi,%rsi
  movl   $0x1,0x10(%rsp,%rax,4)
  xor    %eax,%eax
  nopl   0x0(%rax)
L33:
  cmpl   $0x1,(%rdx)
  jne    L107
  cmp    %eax,%ecx
  jne    L197
L107:
  add    $0x1,%eax
  add    $0x20,%rdx
  cmp    $0x8,%eax
  jne    L33
  mov    %r8,%rdx
  xor    %eax,%eax
  shl    $0x5,%rdx
  add    %rbp,%rdx
  nopl   0x0(%rax)
L70:
  cmpl   $0x1,(%rdx,%rax,4)
  jne    L103
  cmp    %eax,%esi
  jne    L197
L103:
  add    $0x1,%rax
  cmp    $0x8,%rax
  jne    L70
  mov    %ecx,%edx
  lea    -0x1(%rcx),%eax
  neg    %edx
  jns    L138
  test   %esi,%esi
  jle    L138
  lea    (%rdi,%r8,8),%rdx
  lea    0x0(%rbp,%rdx,4),%rdx
  jmp    L12
  nopl   0x0(%rax)
L154:
  sub    $0x1,%eax
  sub    $0x24,%rdx
  lea    (%rsi,%rax,1),%r9d
  cmp    %ecx,%r9d
  js     L138
  test   %eax,%eax
  js     L138
L12:
  cmpl   $0x1,-0x24(%rdx)
  jne    L154
L197:
  lea    D12(%rip),%rdi
  call   <printf@plt>
L226:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L149
  add    $0x120,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L138:
  lea    0x1(%rcx),%eax
  cmp    $0x6,%esi
  jg     L104
  cmp    $0x7,%eax
  jg     L104
  lea    (%rdi,%r8,8),%rdx
  lea    0x0(%rbp,%rdx,4),%rdi
  jmp    L27
  nopl   0x0(%rax,%rax,1)
L126:
  add    $0x1,%eax
  add    $0x24,%rdi
  lea    (%rsi,%rax,1),%edx
  sub    %ecx,%edx
  cmp    $0x7,%edx
  jg     L104
  cmp    $0x7,%eax
  jg     L104
L27:
  cmpl   $0x1,0x24(%rdi)
  jne    L126
  jmp    L197
L104:
  add    $0x1,%ebx
  cmp    %ebx,0x4(%rsp)
  jg     L124
L194:
  lea    D9(%rip),%rdi
  call   <printf@plt>
  jmp    L226
L149:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D16
type_infered: string
name: extract_symbolic_data
arguments: data_label: D31
type_infered: string
name: extract_symbolic_data
arguments: data_label: D12
type_infered: string
name: extract_symbolic_data
arguments: data_label: D9
type_infered: string

tool: D16: %d

tool: D31: %d %d


tool: D12: no

tool: D9: yes

assistant: ```c
int main() {
  int mat[8][8] = {};
  int n, i, j, k, r, c;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d %d\n", &r, &c);
    mat[r][c] = 1;
    k = c;
    for (j = 0; j < 8; j++) {
      if (mat[j][k] == 1 && j != r) {
        printf("no");
        return 0;
      }
    }
    j = r;
    for (k = 0; k < 8; k++) {
      if (mat[j][k] == 1 && k != c) {
        printf("no");
        return 0;
      }
    }
    k = c - 1;
    for (j = r - 1; j >= 0 && k >= 0; j--) {
      if (mat[j][k] == 1) {
        printf("no");
        return 0;
      }
      k = k - 1;
    }
    k = c + 1;
    for (j = r + 1; j < 8 && k < 8; j++) {
      if (mat[j][k] == 1) {
        printf("no");
        return 0;
      }
      k = k + 1;
    }
  }
  printf("yes");
  return 0;
}
```