user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1c0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x1c0(%rbp),%rax
  mov    %rax,%rsi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movl   $0x0,-0x1b4(%rbp)
  jmp    L3
L86:
  lea    -0x1a0(%rbp),%rdx
  mov    -0x1b4(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x1b4(%rbp)
L3:
  mov    -0x1c0(%rbp),%eax
  cmp    %eax,-0x1b4(%rbp)
  jl     L86
  lea    -0x1bc(%rbp),%rax
  mov    %rax,%rsi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movl   $0x0,-0x1b0(%rbp)
  jmp    L53
L64:
  lea    -0xd0(%rbp),%rdx
  mov    -0x1b0(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x1b0(%rbp)
L53:
  mov    -0x1bc(%rbp),%eax
  cmp    %eax,-0x1b0(%rbp)
  jl     L64
  movl   $0x0,-0x1b8(%rbp)
  jmp    L16
L78:
  movl   $0x0,-0x1ac(%rbp)
  mov    -0x1b8(%rbp),%eax
  mov    %eax,-0x1a8(%rbp)
  movl   $0x0,-0x1a4(%rbp)
  jmp    L122
L74:
  mov    -0x1a8(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1a4(%rbp),%eax
  cltq
  mov    -0xd0(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L15
  addl   $0x1,-0x1ac(%rbp)
L15:
  addl   $0x1,-0x1a8(%rbp)
  addl   $0x1,-0x1a4(%rbp)
L122:
  mov    -0x1bc(%rbp),%edx
  mov    -0x1b8(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x1a8(%rbp)
  jge    L83
  mov    -0x1bc(%rbp),%eax
  cmp    %eax,-0x1a4(%rbp)
  jl     L74
L83:
  mov    -0x1bc(%rbp),%eax
  cmp    %eax,-0x1ac(%rbp)
  jne    L47
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L29
L47:
  mov    -0x1bc(%rbp),%eax
  cmp    %eax,-0x1ac(%rbp)
  je     L143
  mov    -0x1c0(%rbp),%eax
  mov    -0x1bc(%rbp),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cmp    %eax,-0x1b8(%rbp)
  jne    L143
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L143:
  addl   $0x1,-0x1b8(%rbp)
L16:
  mov    -0x1c0(%rbp),%eax
  mov    -0x1bc(%rbp),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cmp    %eax,-0x1b8(%rbp)
  jle    L78
L29:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L93
  call   <__stack_chk_fail@plt>
L93:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D59
datatype: string
name: extract_symbolic_data
arguments: tag: D2
datatype: string
name: extract_symbolic_data
arguments: tag: D20
datatype: string

tool: D59: %d

tool: D2: YES

tool: D20: NO

assistant: ```c
int main() {
  int N1, N2, a[50], b[50], k, x, y;
  scanf("%d", &N1);
  for (int i = 0; i < N1; i++) {
    scanf("%d", &a[i]);
  }
  scanf("%d", &N2);
  for (int i = 0; i < N2; i++) {
    scanf("%d", &b[i]);
  }
  for (k = 0; k <= N1 - N2 + 1; k++) {
    int count = 0, x = k, y = 0;
    while ((x < k + N2) && (y <= N2 - 1)) {
      if (a[x] == b[y])
        count++;
      x++;
      y++;
    }
    if (count == N2) {
      printf("YES");
      break;
    } else if ((count != N2) && (k == N1 - N2 + 1))
      printf("NO");
  }
  return 0;
}
```