user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x158,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdi
  mov    $0x90,%edx
  mov    $0x2e,%esi
  call   <memset@plt>
  lea    0xa0(%rsp),%rdi
  mov    $0x90,%edx
  mov    $0x2e,%esi
  call   <memset@plt>
  movl   $0x0,0xc(%rsp)
  lea    0x70(%rsp),%r15
  jmp    L37
L96:
  mov    %ecx,0x8(%rsp)
  mov    %esi,0x4(%rsp)
L4:
  add    $0x1,%rax
  cmp    $0x8,%rax
  je     L92
L101:
  lea    0x2(%rax),%ecx
  movzbl (%rax,%r13,1),%edx
  mov    %dl,0x1a(%rbx,%rax,1)
  cmp    $0x6b,%dl
  je     L96
  cmp    $0x4b,%dl
  cmove  %ecx,%r12d
  cmove  %esi,%ebp
  jmp    L4
L92:
  add    $0x1,%r14d
  add    $0xc,%rbx
  cmp    %r15,%rbx
  je     L68
L49:
  mov    %r13,%rdi
  call   <gets@plt>
  mov    $0x0,%eax
  mov    %r14d,%esi
  jmp    L101
L68:
  lea    0x130(%rsp),%rdi
  call   <gets@plt>
  lea    0xa0(%rsp),%rsi
  lea    0x10(%rsp),%rdi
  mov    $0x90,%edx
  call   <memcmp@plt>
  test   %rax,%rax
  je     L20
  lea    0x10(%rsp),%rdi
  mov    0x8(%rsp),%edx
  mov    0x4(%rsp),%esi
  call   <check_the_check@plt>
  test   %rax,%rax
  je     L9
  mov    0xc(%rsp),%esi
  lea    D6(%rip),%rdi
  call   <printf@plt>
L37:
  addl   $0x1,0xc(%rsp)
  lea    0x10(%rsp),%rbx
  mov    $0x2,%r14d
  lea    0x130(%rsp),%r13
  jmp    L49
L9:
  lea    0x10(%rsp),%rdi
  mov    %r12d,%edx
  mov    %ebp,%esi
  call   <check_the_check@plt>
  test   %rax,%rax
  je     L110
  mov    0xc(%rsp),%esi
  lea    D8(%rip),%rdi
  call   <printf@plt>
  jmp    L37
L110:
  mov    0xc(%rsp),%esi
  lea    D1(%rip),%rdi
  call   <printf@plt>
  jmp    L37
L20:
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L93
  mov    $0x0,%eax
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L93:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D6
datatype: string
name: read_data
arguments: tag: D8
datatype: string
name: read_data
arguments: tag: D1
datatype: string

tool: D6: Game #%d: black king is in check.


tool: D8: Game #%d: white king is in check.


tool: D1: Game #%d: no king is in check.


assistant: ```c
int main() {
  char chess_board[12][12];
  char empty_board[12][12];
  char line[16], piece;
  int count, i, j;
  int i_black_king, j_black_king, i_white_king, j_white_king;
  memset(chess_board, '.', 12 * 12 * sizeof(char));
  memset(empty_board, '.', 12 * 12 * sizeof(char));
  count = 0;
  while (1) {
    ++count;
    for (i = 0; i < 8; i++) {
      gets(line);
      for (j = 0; j < 8; j++) {
        piece = chess_board[i + 2][j + 2] = line[j];
        if (piece == 'k')
          i_black_king = i + 2, j_black_king = j + 2;
        else if (piece == 'K')
          i_white_king = i + 2, j_white_king = j + 2;
      }
    }
    gets(line);
    if (memcmp(chess_board, empty_board, 12 * 12 * sizeof(char)) == 0)
      break;
    if (check_the_check(chess_board, i_black_king, j_black_king))
      printf("Game #%d: black king is in check.\n", count);
    else if (check_the_check(chess_board, i_white_king, j_white_king))
      printf("Game #%d: white king is in check.\n", count);
    else
      printf("Game #%d: no king is in check.\n", count);
  }
  return 0;
}
```