user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x3c(%rbp),%rsi
  lea    D28(%rip),%rdi
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L55:
  cmp    %rdx,%rsp
  je     L14
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L55
L14:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L132
  orq    $0x0,-0x8(%rsp,%rax,1)
L132:
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  lea    D28(%rip),%r12
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    0x4(%rbx),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    0x8(%rbx),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    0xc(%rbx),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    0x10(%rbx),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    0x14(%rbx),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    -0x3c(%rbp),%r14d
  test   %r14d,%r14d
  jle    L77
  mov    %rbx,%r12
  lea    -0x3(%r14),%eax
  lea    0x8(%rbx,%rax,8),%rdi
  mov    $0x0,%r10d
  mov    $0x0,%r13d
  mov    $0x1,%r11d
  jmp    L47
L170:
  mov    %r11d,%r10d
L126:
  add    $0x8,%rax
  cmp    %rax,%rdi
  je     L87
L149:
  mov    0x8(%rax),%edx
  mov    %ecx,%r15d
  sub    %edx,%r15d
  je     L170
  mov    0x4(%rbx),%r9d
  mov    0xc(%rax),%r8d
  mov    %r9d,%esi
  sub    %r8d,%esi
  cmp    %r15d,%esi
  je     L147
  sub    %ecx,%edx
  cmp    %esi,%edx
  je     L174
  cmp    %r8d,%r9d
  jne    L126
L174:
  mov    %r11d,%r10d
  jmp    L126
L147:
  mov    %r11d,%r10d
  jmp    L126
L87:
  add    $0x1,%r13d
  add    $0x8,%rdi
  add    $0x8,%r12
  cmp    %r14d,%r13d
  je     L5
L47:
  cmp    $0x2,%r14d
  jle    L87
  mov    %r12,%rbx
  mov    (%r12),%ecx
  mov    %r12,%rax
  jmp    L149
L5:
  cmp    $0x1,%r10d
  je     L125
L77:
  lea    D5(%rip),%rdi
  call   <printf@plt>
L163:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L125:
  lea    D15(%rip),%rdi
  call   <printf@plt>
  jmp    L163
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D28
datatype: string
name: extract_symbolic_data
arguments: data_tag: D5
datatype: string
name: extract_symbolic_data
arguments: data_tag: D15
datatype: string

tool: D28: %d

tool: D5: yes

tool: D15: no

assistant: ```c
int main() {
  int n, r, c, i = 0, j, x, m, z = 0;
  scanf("%d", &n);
  int mt[n][2];
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 2; j++) {
      scanf("%d", &mt[i][j]);
    }
  }
  for (i = 0; i < n; i++) {
    for (m = 1; m < n - 1; m++) {
      x = mt[i][0] - mt[i + m][0];
      if (x == 0) {
        z = 1;
      } else if ((mt[i][1] - mt[i + m][1] == x) || (mt[i][1] - mt[i + m][1] == -x) || (mt[i][1] - mt[i + m][1] == 0)) {
        z = 1;
      }
    }
  }
  if (z == 1) {
    printf("no");
  } else
    printf("yes");
  return 0;
}
```