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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    $0x0,%eax
  call   <rin@plt>
  mov    %eax,-0x68(%rbp)
  jmp    L22
L167:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <rin@plt>
  mov    %eax,-0x50(%rbp)
  mov    $0x0,%eax
  call   <rin@plt>
  mov    %eax,-0x4c(%rbp)
  movl   $0x0,-0x64(%rbp)
  movl   $0x0,-0x60(%rbp)
  movl   $0x1,-0x5c(%rbp)
  mov    -0x50(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  lea    0x0(,%rax,4),%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
L185:
  cmp    %rdx,%rsp
  je     L145
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L185
L145:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L193
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L193:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L29
L143:
  mov    $0x0,%eax
  call   <rin@plt>
  mov    -0x40(%rbp),%rdx
  mov    -0x58(%rbp),%ecx
  movslq %ecx,%rcx
  mov    %eax,(%rdx,%rcx,4)
  addl   $0x1,-0x58(%rbp)
L29:
  mov    -0x58(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L143
  movl   $0x0,-0x54(%rbp)
  jmp    L187
L161:
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x4c(%rbp),%edx
  sar    %edx
  cmp    %edx,%eax
  jl     L169
  addl   $0x1,-0x64(%rbp)
  cmpl   $0x1,-0x64(%rbp)
  jle    L107
  movl   $0x0,-0x5c(%rbp)
  jmp    L92
L169:
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  imul   $0x66666667,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x2,%ecx
  sar    $0x1f,%eax
  mov    %eax,%esi
  mov    %ecx,%eax
  sub    %esi,%eax
  cmp    %eax,%edx
  jg     L107
  addl   $0x1,-0x60(%rbp)
  cmpl   $0x2,-0x60(%rbp)
  jle    L107
  movl   $0x0,-0x5c(%rbp)
  jmp    L92
L107:
  addl   $0x1,-0x54(%rbp)
L187:
  mov    -0x54(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L161
L92:
  cmpl   $0x0,-0x5c(%rbp)
  je     L186
  cmpl   $0x2,-0x60(%rbp)
  jne    L186
  cmpl   $0x1,-0x64(%rbp)
  jne    L186
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L99
L186:
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L99:
  mov    %rbx,%rsp
L22:
  mov    -0x68(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x68(%rbp)
  test   %eax,%eax
  jne    L167
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L176
  call   <__stack_chk_fail@plt>
L176:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D5
datatype: string
name: parse_data
arguments: label: D12
datatype: string

tool: D5: yes


tool: D12: no


assistant: ```c
int main() {
  int T = rin();
  while (T--) {
    int n = rin(), p = rin(), cakec = 0, hardc = 0, suc = 1;
    int arr[n];
    for (int i = 0; i < n; i++)
      arr[i] = rin();
    for (int i = 0; i < n; i++) {
      if (arr[i] >= (p >> 1)) {
        cakec++;
        if (cakec > 1) {
          suc = 0;
          break;
        }
      } else if (arr[i] <= p / 10) {
        hardc++;
        if (hardc > 2) {
          suc = 0;
          break;
        }
      }
    }
    if (suc && hardc == 2 && cakec == 1)
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
```