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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x144(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x144(%rbp),%eax
  cmp    $0x7,%eax
  jle    L197
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L41
L197:
  movl   $0x0,-0x140(%rbp)
  jmp    L18
L103:
  lea    -0x110(%rbp),%rdx
  mov    -0x140(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  lea    -0x130(%rbp),%rcx
  mov    -0x140(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x140(%rbp)
L18:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x140(%rbp)
  jl     L103
  movl   $0x0,-0x140(%rbp)
  jmp    L101
L170:
  mov    -0x140(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x13c(%rbp)
  jmp    L29
L228:
  mov    -0x140(%rbp),%eax
  cltq
  mov    -0x130(%rbp,%rax,4),%edx
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x130(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L10
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L41
L10:
  addl   $0x1,-0x13c(%rbp)
L29:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x13c(%rbp)
  jl     L228
  addl   $0x1,-0x140(%rbp)
L101:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x140(%rbp)
  jl     L170
  movl   $0x0,-0x140(%rbp)
  jmp    L120
L119:
  mov    -0x140(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x13c(%rbp)
  jmp    L176
L149:
  mov    -0x140(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,4),%edx
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L225
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L41
L225:
  addl   $0x1,-0x13c(%rbp)
L176:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x13c(%rbp)
  jl     L149
  addl   $0x1,-0x140(%rbp)
L120:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x140(%rbp)
  jl     L119
  movl   $0x1,-0x140(%rbp)
  jmp    L22
L38:
  mov    -0x140(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,4),%edx
  mov    -0x140(%rbp),%eax
  cltq
  mov    -0x130(%rbp,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x138(%rbp)
  mov    -0x140(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x13c(%rbp)
  jmp    L226
L9:
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,4),%edx
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x130(%rbp,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x134(%rbp)
  mov    -0x138(%rbp),%eax
  cmp    -0x134(%rbp),%eax
  je     L212
  mov    -0x134(%rbp),%eax
  neg    %eax
  cmp    %eax,-0x138(%rbp)
  jne    L78
L212:
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L41
L78:
  addl   $0x1,-0x13c(%rbp)
L226:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x13c(%rbp)
  jl     L9
  addl   $0x1,-0x140(%rbp)
L22:
  mov    -0x144(%rbp),%eax
  cmp    %eax,-0x140(%rbp)
  jl     L38
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
L41:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L13
  call   <__stack_chk_fail@plt>
L13:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D41
datatype: string
name: retrieve_data
arguments: data_label: D0
datatype: string
name: retrieve_data
arguments: data_label: D5
datatype: string
name: retrieve_data
arguments: data_label: D17
datatype: string

tool: D41: %d

tool: D0: no

tool: D5: %d %d

tool: D17: yes

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