user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    -0x5c(%rbp),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L81:
  cmp    %rdx,%rsp
  je     L89
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L81
L89:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L112
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L112:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x50(%rbp)
  jmp    L53
L94:
  lea    -0x54(%rbp),%rdx
  lea    -0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  movb   $0x20,-0x5e(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L72
L76:
  cmpb   $0x2d,-0x5d(%rbp)
  je     L87
  cmpb   $0x30,-0x5d(%rbp)
  jne    L105
L87:
  cmpb   $0x20,-0x5e(%rbp)
  jne    L105
  addl   $0x1,-0x4c(%rbp)
L105:
  movzbl -0x5d(%rbp),%eax
  mov    %al,-0x5e(%rbp)
L72:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,-0x5d(%rbp)
  cmpb   $0xa,-0x5d(%rbp)
  jne    L76
  mov    -0x54(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  test   %eax,%eax
  jle    L119
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  lea    D26(%rip),%rcx
  mov    %rcx,(%rax,%rdx,8)
  jmp    L96
L119:
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  lea    D14(%rip),%rcx
  mov    %rcx,(%rax,%rdx,8)
L96:
  addl   $0x1,-0x50(%rbp)
L53:
  mov    -0x5c(%rbp),%eax
  cmp    %eax,-0x50(%rbp)
  jl     L94
  movl   $0x0,-0x50(%rbp)
  jmp    L7
L118:
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  addl   $0x1,-0x50(%rbp)
L7:
  mov    -0x5c(%rbp),%eax
  cmp    %eax,-0x50(%rbp)
  jl     L118
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L70
  call   <__stack_chk_fail@plt>
L70:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: label: D1
data_type: string
name: unpack_data
arguments: label: D0
data_type: string
name: unpack_data
arguments: label: D26
data_type: string
name: unpack_data
arguments: label: D14
data_type: string

tool: D1: %d

tool: D0: %d %d

tool: D26: YES

tool: D14: NO

assistant: ```c
int main() {
  int count;
  int a, k, i;
  scanf("%d", &count);
  char *answer[count];
  for (i = 0; i < count; i++) {
    scanf("%d %d", &a, &k);
    getchar();
    char c;
    char p = ' ';
    int on_time = 0;
    while ((c = getchar()) != '\n') {
      if ((c == '-' || c == '0') && p == ' ') {
        on_time++;
      }
      p = c;
    }
    if (k - on_time > 0)
      answer[i] = "YES";
    else
      answer[i] = "NO";
  }
  for (i = 0; i < count; i++)
    puts(answer[i]);
  return 0;
}
```