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

```asm
<main>:
  endbr64
  push   %r15
  lea    D35(%rip),%rsi
  lea    D26(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1f8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1e8(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  lea    0x14(%rsp),%rdx
  lea    D29(%rip),%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x14(%rsp),%ecx
  test   %ecx,%ecx
  jle    L53
  lea    0x1c(%rsp),%rax
  mov    $0x1,%r13d
  lea    D11(%rip),%r12
  mov    %rax,0x8(%rsp)
  lea    0x18(%rsp),%rax
  mov    %rax,(%rsp)
L119:
  mov    0x8(%rsp),%rcx
  mov    (%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D45(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%r14d
  test   %r14d,%r14d
  jle    L136
  xor    %r15d,%r15d
  lea    0x20(%rsp),%rbx
L45:
  lea    (%r15,%r15,4),%rax
  mov    %r12,%rsi
  mov    %rbp,%rdi
  lea    (%r15,%rax,4),%rdx
  xor    %eax,%eax
  add    $0x1,%r15
  add    %rbx,%rdx
  call   <fscanf@plt>
  mov    0x18(%rsp),%r14d
  cmp    %r15d,%r14d
  jg     L45
  movslq 0x1c(%rsp),%rax
  test   %eax,%eax
  js     L74
L88:
  lea    0x1(%rax),%rdx
  movslq %r14d,%rax
  xor    %esi,%esi
  lea    (%rax,%rax,4),%rcx
  lea    (%rax,%rcx,4),%rdi
  add    %rbx,%rdi
  call   <memset@plt>
L74:
  xor    %r15d,%r15d
  test   %r14d,%r14d
  jle    L32
L129:
  mov    0x1c(%rsp),%edx
  xor    %r14d,%r14d
  test   %edx,%edx
  jle    L10
  nopl   0x0(%rax,%rax,1)
L121:
  mov    %r14d,%edx
  mov    %r15d,%esi
  mov    %rbx,%rdi
  add    $0x1,%r14d
  call   <processTile@plt>
  cmp    %r14d,0x1c(%rsp)
  jg     L121
L10:
  add    $0x1,%r15d
  cmp    %r15d,0x18(%rsp)
  jg     L129
L32:
  mov    %r13d,%esi
  lea    D6(%rip),%rdi
  xor    %eax,%eax
  xor    %ebx,%ebx
  call   <printf@plt>
  mov    0x18(%rsp),%eax
  lea    0x20(%rsp),%r14
  test   %eax,%eax
  jle    L63
  nopl   0x0(%rax)
L22:
  mov    %r14,%rdi
  add    $0x1,%ebx
  add    $0x15,%r14
  call   <puts@plt>
  cmp    %ebx,0x18(%rsp)
  jg     L22
L63:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x1(%r13),%eax
  cmp    %r13d,0x14(%rsp)
  jle    L53
  mov    %eax,%r13d
  jmp    L119
L53:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x1e8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  add    $0x1f8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L136:
  movslq 0x1c(%rsp),%rax
  lea    0x20(%rsp),%rbx
  test   %eax,%eax
  jns    L88
  jmp    L32
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D35
data_type: string
name: read_data
arguments: label: D26
data_type: string
name: read_data
arguments: label: D29
data_type: string
name: read_data
arguments: label: D11
data_type: string
name: read_data
arguments: label: D45
data_type: string
name: read_data
arguments: label: D6
data_type: string

tool: D35: r

tool: D26: fire.in

tool: D29: %d

tool: D11: %s

tool: D45: %d %d

tool: D6: Map #%d:


assistant: ```c
int main(void) {
  int cases, caseNum = 0;
  int rows, cols, r, c;
  FILE *fp = fopen("fire.in", "r");
  fscanf(fp, "%d", &cases);
  char map[21][21];
  while (caseNum++ < cases) {
    fscanf(fp, "%d %d", &rows, &cols);
    for (r = 0; r < rows; r++) {
      fscanf(fp, "%s", map[r]);
    }
    for (c = 0; c <= cols; c++) {
      map[rows][c] = '\0';
    }
    for (r = 0; r < rows; r++) {
      for (c = 0; c < cols; c++) {
        processTile(map, r, c);
      }
    }
    printf("Map #%d:\n", caseNum);
    for (r = 0; r < rows; r++) {
      printf("%s\n", map[r]);
    }
    printf("\n");
  }
  fclose(fp);
  return 0;
}
```