user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<checkAvailable>:
  endbr64
  push   %r15
  lea    0x60(%rdx),%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %eax,0x20(%rsp)
  cmp    $0x60,%eax
  jle    L128
  movsbl %dil,%r15d
  movb   $0x61,0x2f(%rsp)
  mov    $0x61,%r14d
  mov    %edx,%r13d
  movl   $0x0,0x28(%rsp)
  mov    %r15d,%eax
  mov    %r14d,%r15d
  mov    %rsi,%r14
  mov    %eax,%r12d
  nopl   0x0(%rax,%rax,1)
L46:
  mov    $0x61,%ebx
  mov    $0x61,%ebp
  mov    %r12d,%eax
  mov    %ebp,%r12d
  mov    %ebx,%ebp
  mov    %eax,%ebx
  jmp    L100
  cs nopw 0x0(%rax,%rax,1)
L75:
  cmpl   $0x1,0x10(%rsp)
  je     L63
  cmpl   $0x1,0x14(%rsp)
  je     L63
  cmpl   $0x1,0x18(%rsp)
  je     L63
  cmpl   $0x1,0x1c(%rsp)
  je     L63
  cmpl   $0x1,0x24(%rsp)
  je     L63
  cmp    $0x1,%eax
  je     L63
  add    $0x1,%ebp
  movsbl %bpl,%r12d
  cmp    0x20(%rsp),%r12d
  jg     L136
  nopw   0x0(%rax,%rax,1)
L100:
  sub    $0x8,%rsp
  mov    $0xffffffff,%r9d
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  push   $0xffffffffffffffff
  mov    %r15d,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <checkLegalInDirection@plt>
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    $0xffffffff,%r9d
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,0x18(%rsp)
  movl   $0x0,(%rsp)
  call   <checkLegalInDirection@plt>
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    $0xffffffff,%r9d
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,0x1c(%rsp)
  movl   $0x1,(%rsp)
  call   <checkLegalInDirection@plt>
  xor    %r9d,%r9d
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  movl   $0x1,(%rsp)
  mov    %eax,0x20(%rsp)
  call   <checkLegalInDirection@plt>
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    $0x1,%r9d
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,0x24(%rsp)
  movl   $0x1,(%rsp)
  call   <checkLegalInDirection@plt>
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    $0x1,%r9d
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,0x28(%rsp)
  movl   $0x0,(%rsp)
  call   <checkLegalInDirection@plt>
  mov    %ebx,%r8d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    $0x1,%r9d
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,0x2c(%rsp)
  movl   $0xffffffff,(%rsp)
  call   <checkLegalInDirection@plt>
  xor    %r9d,%r9d
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %ebx,%r8d
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,0x34(%rsp)
  movl   $0xffffffff,(%rsp)
  call   <checkLegalInDirection@plt>
  pop    %rdx
  pop    %rcx
  cmpl   $0x1,0x8(%rsp)
  je     L63
  cmpl   $0x1,0xc(%rsp)
  jne    L75
L63:
  add    $0x1,%ebp
  movl   $0x1,0x28(%rsp)
  movsbl %bpl,%r12d
  cmp    0x20(%rsp),%r12d
  jle    L100
L136:
  addb   $0x1,0x2f(%rsp)
  mov    %ebx,%r12d
  movsbl 0x2f(%rsp),%r15d
  cmp    0x20(%rsp),%r15d
  jle    L46
L54:
  mov    0x28(%rsp),%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L128:
  movl   $0x0,0x28(%rsp)
  jmp    L54
```

assistant: ```c
bool checkAvailable(char color, char board[][26], int n) {
  bool g, h, i, j, k, l, m, q;
  bool check = false;
  for (char row = 'a'; row <= 'a' + n - 1; row++) {
    for (char col = 'a'; col <= 'a' + n - 1; col++) {
      g = checkLegalInDirection(board, n, row, col, color, -1, -1);
      h = checkLegalInDirection(board, n, row, col, color, -1, 0);
      i = checkLegalInDirection(board, n, row, col, color, -1, 1);
      j = checkLegalInDirection(board, n, row, col, color, 0, 1);
      k = checkLegalInDirection(board, n, row, col, color, 1, 1);
      l = checkLegalInDirection(board, n, row, col, color, 1, 0);
      m = checkLegalInDirection(board, n, row, col, color, 1, -1);
      q = checkLegalInDirection(board, n, row, col, color, 0, -1);
      if (g == true || h == true || i == true || j == true || k == true || l == true || m == true || q == true)
        check = true;
    }
  }
  return (check);
}
```