user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r13
  pxor   %xmm0,%xmm0
  lea    D33(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  movaps %xmm0,0x80(%rsp)
  movaps %xmm0,0x90(%rsp)
  movaps %xmm0,0xa0(%rsp)
  movaps %xmm0,0xb0(%rsp)
  movaps %xmm0,0xc0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  movaps %xmm0,0x100(%rsp)
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L388
  mov    $0x1,%ebx
  lea    0xc(%rsp),%r13
  lea    0x8(%rsp),%r12
  lea    D38(%rip),%rbp
  nopw   0x0(%rax,%rax,1)
L340:
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq 0xc(%rsp),%rax
  movslq 0x8(%rsp),%rdx
  add    $0x1,%ebx
  lea    (%rax,%rdx,8),%rax
  movl   $0x1,0x10(%rsp,%rax,4)
  cmp    %ebx,0x4(%rsp)
  jge    L340
L388:
  lea    0x10(%rsp),%r13
  xor    %r12d,%r12d
  xor    %ebp,%ebp
  mov    %r13,%rbx
  jmp    L257
  cs nopw 0x0(%rax,%rax,1)
L179:
  cmpl   $0x1,0x4(%rbx)
  je     L222
L246:
  cmpl   $0x1,0x8(%rbx)
  je     L390
L221:
  cmpl   $0x1,0xc(%rbx)
  je     L154
L55:
  cmpl   $0x1,0x10(%rbx)
  je     L420
L288:
  cmpl   $0x1,0x14(%rbx)
  je     L270
L22:
  cmpl   $0x1,0x18(%rbx)
  je     L452
L518:
  cmpl   $0x1,0x1c(%rbx)
  je     L458
L53:
  add    $0x1,%ebp
  add    $0x20,%rbx
  cmp    $0x8,%ebp
  je     L380
L257:
  cmpl   $0x1,(%rbx)
  jne    L179
  xor    %esi,%esi
  mov    %r13,%rdx
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L126
L496:
  add    $0x1,%r12d
  cmpl   $0x1,0x4(%rbx)
  jne    L246
  cs nopw 0x0(%rax,%rax,1)
L222:
  mov    %r13,%rdx
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L20
L342:
  add    $0x1,%r12d
  cmpl   $0x1,0x8(%rbx)
  jne    L221
  cs nopw 0x0(%rax,%rax,1)
L390:
  mov    %r13,%rdx
  mov    $0x2,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L514
L60:
  add    $0x1,%r12d
  cmpl   $0x1,0xc(%rbx)
  jne    L55
  cs nopw 0x0(%rax,%rax,1)
L154:
  mov    %r13,%rdx
  mov    $0x3,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L502
L426:
  add    $0x1,%r12d
  cmpl   $0x1,0x10(%rbx)
  jne    L288
  cs nopw 0x0(%rax,%rax,1)
L420:
  mov    %r13,%rdx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L448
L5:
  add    $0x1,%r12d
  cmpl   $0x1,0x14(%rbx)
  jne    L22
  cs nopw 0x0(%rax,%rax,1)
L270:
  mov    %r13,%rdx
  mov    $0x5,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L210
L144:
  add    $0x1,%r12d
  cmpl   $0x1,0x18(%rbx)
  jne    L518
  cs nopw 0x0(%rax,%rax,1)
L452:
  mov    %r13,%rdx
  mov    $0x6,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L308
L123:
  add    $0x1,%r12d
  cmpl   $0x1,0x1c(%rbx)
  jne    L53
  cs nopw 0x0(%rax,%rax,1)
L458:
  mov    %r13,%rdx
  mov    $0x7,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L57
L393:
  add    $0x1,%ebp
  add    $0x1,%r12d
  add    $0x20,%rbx
  cmp    $0x8,%ebp
  jne    L257
  nopl   0x0(%rax,%rax,1)
L380:
  cmp    %r12d,0x4(%rsp)
  je     L348
  lea    D31(%rip),%rdi
  call   <printf@plt>
L79:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L376
  add    $0x128,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L57:
  mov    %r13,%rdx
  mov    $0x7,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L393
  mov    %r13,%rdx
  mov    $0x7,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L393
  jmp    L53
L210:
  mov    %r13,%rdx
  mov    $0x5,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L144
  mov    %r13,%rdx
  mov    $0x5,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L144
  jmp    L22
L308:
  mov    %r13,%rdx
  mov    $0x6,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L123
  mov    %r13,%rdx
  mov    $0x6,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L123
  jmp    L518
L502:
  mov    %r13,%rdx
  mov    $0x3,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L426
  mov    %r13,%rdx
  mov    $0x3,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L426
  jmp    L55
L448:
  mov    %r13,%rdx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L5
  mov    %r13,%rdx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L5
  jmp    L288
L514:
  mov    %r13,%rdx
  mov    $0x2,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L60
  mov    %r13,%rdx
  mov    $0x2,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L60
  jmp    L221
L126:
  xor    %esi,%esi
  mov    %r13,%rdx
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L496
  xor    %esi,%esi
  mov    %r13,%rdx
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L496
  jmp    L179
L20:
  mov    %r13,%rdx
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  je     L342
  mov    %r13,%rdx
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  test   %rax,%rax
  je     L342
  jmp    L246
L348:
  lea    D30(%rip),%rdi
  call   <printf@plt>
  jmp    L79
L376:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D33
datatype: string
name: extract_symbolic_data
arguments: data_label: D38
datatype: string
name: extract_symbolic_data
arguments: data_label: D31
datatype: string
name: extract_symbolic_data
arguments: data_label: D30
datatype: string

tool: D33: %d


tool: D38: %d%d


tool: D31: no

tool: D30: yes

assistant: ```c
int main() {
  int chess[8][8];
  int i, j, N, R, C, count = 0;
  for (i = 0; i < 8; i++) {
    for (j = 0; j < 8; j++) {
      chess[i][j] = 0;
    }
  }
  scanf("%d\n", &N);
  for (i = 1; i <= N; i++) {
    scanf("%d%d\n", &R, &C);
    chess[R][C] = 1;
  }
  for (i = 0; i < 8; i++) {
    for (j = 0; j < 8; j++) {
      if (chess[i][j] == 1) {
        if (!(checkrow(i, j, chess) && checkcolumn(i, j, chess) && checkdiagonal(i, j, chess))) {
          count++;
        }
      }
    }
  }
  if (count == N) {
    printf("yes");
  } else {
    printf("no");
  }
  return 0;
}
```