user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r14
  lea    D39(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0x7,%eax
  jg     L6
  test   %eax,%eax
  jle    L163
  lea    0x10(%rsp),%r12
  xor    %ebx,%ebx
  lea    0x30(%rsp),%r13
  mov    %r12,%rbp
  lea    D6(%rip),%r14
  nopl   0x0(%rax,%rax,1)
L136:
  lea    0x0(%r13,%rbx,4),%rdx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%edx
  add    $0x1,%rbx
  add    $0x4,%rbp
  cmp    %ebx,%edx
  jg     L136
  test   %edx,%edx
  jle    L163
  mov    $0x1,%esi
L152:
  cmp    %esi,%edx
  jle    L186
  mov    -0x4(%r12,%rsi,4),%ecx
  mov    %rsi,%rax
  jmp    L65
  nopl   (%rax)
L187:
  add    $0x1,%rax
  cmp    %eax,%edx
  jle    L24
L65:
  cmp    (%r12,%rax,4),%ecx
  jne    L187
L6:
  lea    D17(%rip),%rdi
  call   <printf@plt>
L5:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L30
  add    $0x60,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L24:
  add    $0x1,%rsi
  jmp    L152
L186:
  mov    $0x1,%esi
L224:
  lea    -0x1(%rsi),%eax
  cmp    %eax,%edx
  jle    L1
  cmp    %esi,%edx
  jle    L237
  mov    -0x4(%r13,%rsi,4),%ecx
  mov    %rsi,%rax
  jmp    L64
L115:
  add    $0x1,%rax
  cmp    %eax,%edx
  jle    L237
L64:
  cmp    0x0(%r13,%rax,4),%ecx
  jne    L115
  jmp    L6
L237:
  add    $0x1,%rsi
  jmp    L224
L1:
  mov    $0x2,%r9d
L102:
  lea    -0x1(%r9),%eax
  cmp    %eax,%edx
  jle    L163
  mov    -0x4(%r13,%r9,4),%edi
  mov    %r9,%rax
  sub    -0x4(%r12,%r9,4),%edi
  jmp    L14
L141:
  mov    0x0(%r13,%rax,4),%esi
  mov    (%r12,%rax,4),%ecx
  mov    %esi,%r8d
  sub    %ecx,%r8d
  cmp    %r8d,%edi
  je     L6
  sub    %esi,%ecx
  add    $0x1,%rax
  cmp    %edi,%ecx
  je     L6
L14:
  cmp    %eax,%edx
  jg     L141
  add    $0x1,%r9
  jmp    L102
L163:
  lea    D11(%rip),%rdi
  call   <printf@plt>
  jmp    L5
L30:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D39
data_type: string
name: unpack_data
arguments: data_tag: D6
data_type: string
name: unpack_data
arguments: data_tag: D17
data_type: string
name: unpack_data
arguments: data_tag: D11
data_type: string

tool: D39: %d

tool: D6: %d %d

tool: D17: no

tool: D11: 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;
}
```