user: Demonstrate the C code that generates the assembly output below:

```asm
<checkAvailable>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,%eax
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x38(%rbp)
  mov    %al,-0x34(%rbp)
  movl   $0x0,-0x24(%rbp)
  movb   $0x61,-0x26(%rbp)
  jmp    L108
L8:
  movb   $0x61,-0x25(%rbp)
  jmp    L57
L104:
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0xffffffffffffffff
  mov    $0xffffffff,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x20(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    $0xffffffff,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x1c(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x18(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x1
  mov    $0x0,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x14(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x1
  mov    $0x1,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x10(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x1,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0xc(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0xffffffffffffffff
  mov    $0x1,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x8(%rbp)
  movsbl -0x34(%rbp),%edi
  movsbl -0x25(%rbp),%ecx
  movsbl -0x26(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   $0xffffffffffffffff
  mov    $0x0,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <checkLegalInDirection@plt>
  add    $0x10,%rsp
  mov    %eax,-0x4(%rbp)
  cmpl   $0x1,-0x20(%rbp)
  je     L64
  cmpl   $0x1,-0x1c(%rbp)
  je     L64
  cmpl   $0x1,-0x18(%rbp)
  je     L64
  cmpl   $0x1,-0x14(%rbp)
  je     L64
  cmpl   $0x1,-0x10(%rbp)
  je     L64
  cmpl   $0x1,-0xc(%rbp)
  je     L64
  cmpl   $0x1,-0x8(%rbp)
  je     L64
  cmpl   $0x1,-0x4(%rbp)
  jne    L21
L64:
  movl   $0x1,-0x24(%rbp)
L21:
  movzbl -0x25(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x25(%rbp)
L57:
  movsbl -0x25(%rbp),%eax
  mov    -0x38(%rbp),%edx
  add    $0x60,%edx
  cmp    %edx,%eax
  jle    L104
  movzbl -0x26(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x26(%rbp)
L108:
  movsbl -0x26(%rbp),%eax
  mov    -0x38(%rbp),%edx
  add    $0x60,%edx
  cmp    %edx,%eax
  jle    L8
  mov    -0x24(%rbp),%eax
  leave
  ret
```

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);
}
```