user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x14000(%rsp),%r11
L184:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L184
  sub    $0x5b0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x14594(%rbp)
  jmp    L175
L25:
  lea    -0x14590(%rbp),%rax
  mov    $0xa290,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movl   $0x0,-0x1459c(%rbp)
  jmp    L109
L222:
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movl   $0x0,-0x14598(%rbp)
  jmp    L36
L58:
  mov    -0x14598(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x2a,%al
  jne    L182
  mov    -0x1459c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  movl   $0x1,-0x14590(%rbp,%rax,4)
  jmp    L238
L182:
  mov    -0x1459c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  movl   $0x0,-0x14590(%rbp,%rax,4)
L238:
  addl   $0x1,-0x14598(%rbp)
L36:
  mov    -0x145a0(%rbp),%eax
  cmp    %eax,-0x14598(%rbp)
  jl     L58
  addl   $0x1,-0x1459c(%rbp)
L109:
  mov    -0x145a4(%rbp),%eax
  cmp    %eax,-0x1459c(%rbp)
  jl     L222
  movl   $0x1,-0x1459c(%rbp)
  jmp    L0
L213:
  movl   $0x1,-0x14598(%rbp)
  jmp    L208
L124:
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rdx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L56
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rdx,%rax
  movl   $0xffffffff,-0xa300(%rbp,%rax,4)
  jmp    L30
L56:
  mov    -0x1459c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  mov    -0x14590(%rbp,%rax,4),%ecx
  mov    -0x1459c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rsi
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rsi,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  lea    (%rcx,%rax,1),%esi
  mov    -0x1459c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  lea    (%rsi,%rax,1),%ecx
  mov    -0x14598(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rdx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rdx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  add    %eax,%ecx
  mov    -0x14598(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rdx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  lea    (%rcx,%rax,1),%esi
  mov    -0x1459c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  add    %eax,%esi
  mov    -0x1459c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  add    %eax,%esi
  mov    -0x1459c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x14598(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  mov    -0x14590(%rbp,%rax,4),%eax
  lea    (%rsi,%rax,1),%edx
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rcx,%rax
  mov    %edx,-0xa300(%rbp,%rax,4)
L30:
  addl   $0x1,-0x14598(%rbp)
L208:
  mov    -0x145a0(%rbp),%eax
  cmp    %eax,-0x14598(%rbp)
  jle    L124
  addl   $0x1,-0x1459c(%rbp)
L0:
  mov    -0x145a4(%rbp),%eax
  cmp    %eax,-0x1459c(%rbp)
  jle    L213
  cmpl   $0x1,-0x14594(%rbp)
  jle    L63
  mov    $0xa,%edi
  call   <putchar@plt>
L63:
  mov    -0x14594(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14594(%rbp)
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x1459c(%rbp)
  jmp    L193
L179:
  movl   $0x1,-0x14598(%rbp)
  jmp    L105
L49:
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rdx,%rax
  mov    -0xa300(%rbp,%rax,4),%eax
  cmp    $0xffffffff,%eax
  jne    L22
  mov    $0x2a,%edi
  call   <putchar@plt>
  jmp    L145
L22:
  mov    -0x14598(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x1459c(%rbp),%eax
  cltq
  imul   $0x66,%rax,%rax
  add    %rdx,%rax
  mov    -0xa300(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L145:
  addl   $0x1,-0x14598(%rbp)
L105:
  mov    -0x145a0(%rbp),%eax
  cmp    %eax,-0x14598(%rbp)
  jle    L49
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x1459c(%rbp)
L193:
  mov    -0x145a4(%rbp),%eax
  cmp    %eax,-0x1459c(%rbp)
  jle    L179
L175:
  lea    -0x145a0(%rbp),%rdx
  lea    -0x145a4(%rbp),%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L185
  mov    -0x145a4(%rbp),%eax
  test   %eax,%eax
  je     L185
  mov    -0x145a0(%rbp),%eax
  test   %eax,%eax
  jne    L25
L185:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L113
  call   <__stack_chk_fail@plt>
L113:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D6
type_guessed: string
name: read_data
arguments: data_label: D26
type_guessed: string
name: read_data
arguments: data_label: D33
type_guessed: string
name: read_data
arguments: data_label: D31
type_guessed: string

tool: D6: %s

tool: D26: Field #%d:


tool: D33: %d

tool: D31: %d %d

assistant: ```c
int main() {
  int in_field[102][102];
  int out_field[102][102];
  int n_rows, n_cols;
  int i, j, field_id;
  char line_buf[102];
  field_id = 1;
  while (scanf("%d %d", &n_rows, &n_cols) == 2 && n_rows && n_cols) {
    memset(in_field, 0, 102 * 102 * sizeof(int));
    for (i = 0; i < n_rows; i++) {
      scanf("%s", line_buf);
      for (j = 0; j < n_cols; j++) {
        if (line_buf[j] == '*')
          in_field[i + 1][j + 1] = 1;
        else
          in_field[i + 1][j + 1] = 0;
      }
    }
    for (i = 1; i <= n_rows; i++) {
      for (j = 1; j <= n_cols; j++) {
        if (in_field[i][j] == 1)
          out_field[i][j] = -1;
        else {
          out_field[i][j] = in_field[i - 1][j - 1] + in_field[i - 1][j] + in_field[i - 1][j + 1] + in_field[i][j - 1] + in_field[i][j + 1] + in_field[i + 1][j - 1] + in_field[i + 1][j] + in_field[i + 1][j + 1];
        }
      }
    }
    if (field_id > 1)
      printf("\n");
    printf("Field #%d:\n", field_id++);
    for (i = 1; i <= n_rows; i++) {
      for (j = 1; j <= n_cols; j++) {
        if (out_field[i][j] == -1)
          printf("*");
        else
          printf("%d", out_field[i][j]);
      }
      printf("\n");
    }
  }
  return 0;
}
```