user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r13
  pxor   %xmm0,%xmm0
  lea    D6(%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    L31
  mov    $0x1,%ebx
  lea    0xc(%rsp),%r13
  lea    0x8(%rsp),%r12
  lea    D35(%rip),%rbp
  nopw   0x0(%rax,%rax,1)
L322:
  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    L322
L31:
  lea    0x10(%rsp),%r12
  xor    %r13d,%r13d
  xor    %ebp,%ebp
  mov    %r12,%rbx
  jmp    L45
  cs nopw 0x0(%rax,%rax,1)
L252:
  cmpl   $0x1,0x4(%rbx)
  je     L112
L261:
  cmpl   $0x1,0x8(%rbx)
  je     L366
L367:
  cmpl   $0x1,0xc(%rbx)
  je     L211
L384:
  cmpl   $0x1,0x10(%rbx)
  je     L258
L56:
  cmpl   $0x1,0x14(%rbx)
  je     L359
L188:
  cmpl   $0x1,0x18(%rbx)
  je     L307
L332:
  cmpl   $0x1,0x1c(%rbx)
  je     L237
L294:
  add    $0x1,%ebp
  add    $0x20,%rbx
  cmp    $0x8,%ebp
  je     L194
L45:
  cmpl   $0x1,(%rbx)
  jne    L252
  xor    %esi,%esi
  mov    %r12,%rdx
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L252
  xor    %esi,%esi
  mov    %r12,%rdx
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L252
  xor    %esi,%esi
  mov    %r12,%rdx
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L252
  nopw   0x0(%rax,%rax,1)
L237:
  mov    %r12,%rdx
  mov    $0x7,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L294
  mov    %r12,%rdx
  mov    $0x7,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L294
  mov    %r12,%rdx
  mov    $0x7,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L294
  nopl   0x0(%rax)
L307:
  mov    %r12,%rdx
  mov    $0x6,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L332
  mov    %r12,%rdx
  mov    $0x6,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L332
  mov    %r12,%rdx
  mov    $0x6,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L332
  nopl   0x0(%rax)
L359:
  mov    %r12,%rdx
  mov    $0x5,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L188
  mov    %r12,%rdx
  mov    $0x5,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L188
  mov    %r12,%rdx
  mov    $0x5,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L188
  nopl   0x0(%rax)
L258:
  mov    %r12,%rdx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L56
  mov    %r12,%rdx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L56
  mov    %r12,%rdx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L56
  nopl   0x0(%rax)
L211:
  mov    %r12,%rdx
  mov    $0x3,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L384
  mov    %r12,%rdx
  mov    $0x3,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L384
  mov    %r12,%rdx
  mov    $0x3,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L384
  nopl   0x0(%rax)
L366:
  mov    %r12,%rdx
  mov    $0x2,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L367
  mov    %r12,%rdx
  mov    $0x2,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L367
  mov    %r12,%rdx
  mov    $0x2,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L367
  nopl   0x0(%rax)
L112:
  mov    %r12,%rdx
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <checkrow@plt>
  test   %rax,%rax
  jne    L261
  mov    %r12,%rdx
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <checkcolumn@plt>
  test   %rax,%rax
  jne    L261
  mov    %r12,%rdx
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <checkdiagonal@plt>
  cmp    $0x1,%rax
  adc    $0x0,%r13d
  jmp    L261
  nopl   0x0(%rax)
L194:
  cmp    %r13d,0x4(%rsp)
  je     L22
  lea    D29(%rip),%rdi
  call   <printf@plt>
L35:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  add    $0x128,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L22:
  lea    D5(%rip),%rdi
  call   <printf@plt>
  jmp    L35
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D6
type_infered: string
name: read_data
arguments: data_label: D35
type_infered: string
name: read_data
arguments: data_label: D29
type_infered: string
name: read_data
arguments: data_label: D5
type_infered: string

tool: D6: %d


tool: D35: %d%d


tool: D29: no

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