user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x14000(%rsp),%r11
L374:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L374
  sub    $0x5b8,%rsp
  mov    $0x1,%ebp
  lea    D104(%rip),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x145a8(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%rax
  lea    0x1c(%rsp),%r15
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L268:
  mov    0x8(%rsp),%rsi
  xor    %eax,%eax
  mov    %r15,%rdx
  lea    D31(%rip),%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L148
  mov    0x18(%rsp),%edx
  test   %edx,%edx
  je     L148
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L148
  lea    0x20(%rsp),%rdi
  mov    $0xa290,%edx
  xor    %esi,%esi
  call   <memset@plt>
  mov    0x18(%rsp),%edi
  test   %edi,%edi
  jle    L153
  lea    0x1bc(%rsp),%rbx
  xor    %r14d,%r14d
  lea    0x14540(%rsp),%r12
  nopw   0x0(%rax,%rax,1)
L12:
  xor    %eax,%eax
  mov    %r12,%rsi
  mov    %r13,%rdi
  add    $0x1,%r14d
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  pxor   %xmm2,%xmm2
  test   %eax,%eax
  jle    L84
  lea    -0x1(%rax),%edx
  cmp    $0xe,%edx
  jbe    L77
  movdqa 0x14540(%rsp),%xmm0
  movdqa %xmm2,%xmm1
  mov    %eax,%edx
  shr    $0x4,%edx
  pcmpeqb D108(%rip),%xmm0
  pand   D131(%rip),%xmm0
  pcmpgtb %xmm0,%xmm1
  movdqa %xmm0,%xmm3
  punpcklbw %xmm1,%xmm3
  punpckhbw %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  movdqa %xmm1,%xmm4
  movdqa %xmm3,%xmm5
  pcmpgtw %xmm3,%xmm4
  punpckhwd %xmm4,%xmm3
  punpcklwd %xmm4,%xmm5
  movdqa %xmm0,%xmm4
  movups %xmm3,0x10(%rbx)
  movdqa %xmm1,%xmm3
  pcmpgtw %xmm0,%xmm3
  movups %xmm5,(%rbx)
  punpcklwd %xmm3,%xmm4
  punpckhwd %xmm3,%xmm0
  movups %xmm4,0x20(%rbx)
  movups %xmm0,0x30(%rbx)
  cmp    $0x1,%edx
  je     L231
  movdqa 0x14550(%rsp),%xmm0
  movdqa %xmm2,%xmm4
  pcmpeqb D108(%rip),%xmm0
  pand   D131(%rip),%xmm0
  pcmpgtb %xmm0,%xmm4
  movdqa %xmm0,%xmm3
  punpcklbw %xmm4,%xmm3
  punpckhbw %xmm4,%xmm0
  movdqa %xmm1,%xmm4
  pcmpgtw %xmm3,%xmm4
  movdqa %xmm3,%xmm5
  punpckhwd %xmm4,%xmm3
  punpcklwd %xmm4,%xmm5
  movdqa %xmm0,%xmm4
  movups %xmm3,0x50(%rbx)
  movdqa %xmm1,%xmm3
  pcmpgtw %xmm0,%xmm3
  movups %xmm5,0x40(%rbx)
  punpcklwd %xmm3,%xmm4
  punpckhwd %xmm3,%xmm0
  movups %xmm4,0x60(%rbx)
  movups %xmm0,0x70(%rbx)
  cmp    $0x2,%edx
  je     L231
  movdqa 0x14560(%rsp),%xmm0
  movdqa %xmm2,%xmm4
  pcmpeqb D108(%rip),%xmm0
  pand   D131(%rip),%xmm0
  pcmpgtb %xmm0,%xmm4
  movdqa %xmm0,%xmm3
  punpcklbw %xmm4,%xmm3
  punpckhbw %xmm4,%xmm0
  movdqa %xmm1,%xmm4
  pcmpgtw %xmm3,%xmm4
  movdqa %xmm3,%xmm5
  punpckhwd %xmm4,%xmm3
  punpcklwd %xmm4,%xmm5
  movdqa %xmm0,%xmm4
  movups %xmm3,0x90(%rbx)
  movdqa %xmm1,%xmm3
  pcmpgtw %xmm0,%xmm3
  movups %xmm5,0x80(%rbx)
  punpcklwd %xmm3,%xmm4
  punpckhwd %xmm3,%xmm0
  movups %xmm4,0xa0(%rbx)
  movups %xmm0,0xb0(%rbx)
  cmp    $0x3,%edx
  je     L231
  movdqa 0x14570(%rsp),%xmm0
  movdqa %xmm2,%xmm4
  pcmpeqb D108(%rip),%xmm0
  pand   D131(%rip),%xmm0
  pcmpgtb %xmm0,%xmm4
  movdqa %xmm0,%xmm3
  punpcklbw %xmm4,%xmm3
  punpckhbw %xmm4,%xmm0
  movdqa %xmm1,%xmm4
  pcmpgtw %xmm3,%xmm4
  movdqa %xmm3,%xmm5
  punpckhwd %xmm4,%xmm3
  punpcklwd %xmm4,%xmm5
  movdqa %xmm0,%xmm4
  movups %xmm3,0xd0(%rbx)
  movdqa %xmm1,%xmm3
  pcmpgtw %xmm0,%xmm3
  movups %xmm5,0xc0(%rbx)
  punpcklwd %xmm3,%xmm4
  punpckhwd %xmm3,%xmm0
  movups %xmm4,0xe0(%rbx)
  movups %xmm0,0xf0(%rbx)
  cmp    $0x4,%edx
  je     L231
  movdqa 0x14580(%rsp),%xmm0
  movdqa %xmm2,%xmm4
  pcmpeqb D108(%rip),%xmm0
  pand   D131(%rip),%xmm0
  pcmpgtb %xmm0,%xmm4
  movdqa %xmm0,%xmm3
  punpcklbw %xmm4,%xmm3
  punpckhbw %xmm4,%xmm0
  movdqa %xmm1,%xmm4
  pcmpgtw %xmm3,%xmm4
  movdqa %xmm3,%xmm5
  punpckhwd %xmm4,%xmm3
  punpcklwd %xmm4,%xmm5
  movdqa %xmm0,%xmm4
  movups %xmm3,0x110(%rbx)
  movdqa %xmm1,%xmm3
  pcmpgtw %xmm0,%xmm3
  movups %xmm5,0x100(%rbx)
  punpcklwd %xmm3,%xmm4
  punpckhwd %xmm3,%xmm0
  movups %xmm4,0x120(%rbx)
  movups %xmm0,0x130(%rbx)
  cmp    $0x5,%edx
  je     L231
  movdqa 0x14590(%rsp),%xmm0
  movdqa %xmm2,%xmm4
  pcmpeqb D108(%rip),%xmm0
  pand   D131(%rip),%xmm0
  pcmpgtb %xmm0,%xmm4
  movdqa %xmm0,%xmm3
  punpcklbw %xmm4,%xmm3
  punpckhbw %xmm4,%xmm0
  movdqa %xmm1,%xmm4
  pcmpgtw %xmm3,%xmm4
  pcmpgtw %xmm0,%xmm1
  movdqa %xmm3,%xmm5
  punpckhwd %xmm4,%xmm3
  punpcklwd %xmm4,%xmm5
  movups %xmm3,0x150(%rbx)
  movdqa %xmm0,%xmm3
  punpckhwd %xmm1,%xmm0
  punpcklwd %xmm1,%xmm3
  movups %xmm5,0x140(%rbx)
  movups %xmm3,0x160(%rbx)
  movups %xmm0,0x170(%rbx)
L231:
  mov    %eax,%edx
  and    $0xfffffff0,%edx
  test   $0xf,%al
  je     L84
L235:
  movslq %r14d,%rsi
  movslq %edx,%r10
  lea    0x1(%rdx),%edi
  imul   $0x66,%rsi,%rcx
  movslq %edi,%r8
  cmpb   $0x2a,0x14540(%rsp,%r10,1)
  sete   %r10b
  movzbl %r10b,%r10d
  lea    (%rcx,%r8,1),%r9
  mov    %r10d,0x20(%rsp,%r9,4)
  cmp    %edi,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  lea    0x2(%rdx),%edi
  movslq %edi,%r9
  sete   %r8b
  lea    (%rcx,%r9,1),%r10
  movzbl %r8b,%r8d
  mov    %r8d,0x20(%rsp,%r10,4)
  cmp    %eax,%edi
  jge    L84
  cmpb   $0x2a,0x14540(%rsp,%r9,1)
  lea    0x3(%rdx),%edi
  movslq %edi,%r8
  sete   %r9b
  lea    (%rcx,%r8,1),%r10
  movzbl %r9b,%r9d
  mov    %r9d,0x20(%rsp,%r10,4)
  cmp    %eax,%edi
  jge    L84
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  lea    0x4(%rdx),%edi
  movslq %edi,%r9
  sete   %r8b
  lea    (%rcx,%r9,1),%r10
  movzbl %r8b,%r8d
  mov    %r8d,0x20(%rsp,%r10,4)
  cmp    %edi,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r9,1)
  lea    0x5(%rdx),%edi
  movslq %edi,%r8
  sete   %r9b
  lea    (%rcx,%r8,1),%r10
  movzbl %r9b,%r9d
  mov    %r9d,0x20(%rsp,%r10,4)
  cmp    %edi,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  lea    0x6(%rdx),%edi
  movslq %edi,%r9
  sete   %r8b
  lea    (%rcx,%r9,1),%r10
  movzbl %r8b,%r8d
  mov    %r8d,0x20(%rsp,%r10,4)
  cmp    %edi,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r9,1)
  lea    0x7(%rdx),%edi
  movslq %edi,%r8
  sete   %r9b
  lea    (%rcx,%r8,1),%r10
  movzbl %r9b,%r9d
  mov    %r9d,0x20(%rsp,%r10,4)
  cmp    %edi,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  lea    0x8(%rdx),%edi
  movslq %edi,%r9
  sete   %r8b
  lea    (%rcx,%r9,1),%r10
  movzbl %r8b,%r8d
  mov    %r8d,0x20(%rsp,%r10,4)
  cmp    %edi,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r9,1)
  lea    0x9(%rdx),%edi
  movslq %edi,%r8
  sete   %r9b
  lea    (%rcx,%r8,1),%r10
  movzbl %r9b,%r9d
  mov    %r9d,0x20(%rsp,%r10,4)
  cmp    %edi,%eax
  jle    L84
  lea    0xa(%rdx),%edi
  movslq %edi,%r9
  add    %r9,%rcx
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  mov    %r8d,0x20(%rsp,%rcx,4)
  cmp    %edi,%eax
  jle    L84
  imul   $0x66,%rsi,%rsi
  lea    0xb(%rdx),%ecx
  cmpb   $0x2a,0x14540(%rsp,%r9,1)
  movslq %ecx,%rdi
  sete   %r9b
  movzbl %r9b,%r9d
  lea    (%rsi,%rdi,1),%r8
  mov    %r9d,0x20(%rsp,%r8,4)
  cmp    %ecx,%eax
  jle    L84
  lea    0xc(%rdx),%ecx
  cmpb   $0x2a,0x14540(%rsp,%rdi,1)
  movslq %ecx,%r8
  sete   %dil
  lea    (%rsi,%r8,1),%r9
  movzbl %dil,%edi
  mov    %edi,0x20(%rsp,%r9,4)
  cmp    %ecx,%eax
  jle    L84
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  lea    0xd(%rdx),%ecx
  movslq %ecx,%rdi
  sete   %r8b
  lea    (%rsi,%rdi,1),%r9
  movzbl %r8b,%r8d
  mov    %r8d,0x20(%rsp,%r9,4)
  cmp    %ecx,%eax
  jle    L84
  lea    0xe(%rdx),%ecx
  cmpb   $0x2a,0x14540(%rsp,%rdi,1)
  movslq %ecx,%r8
  sete   %dil
  lea    (%rsi,%r8,1),%r9
  movzbl %dil,%edi
  mov    %edi,0x20(%rsp,%r9,4)
  cmp    %ecx,%eax
  jle    L84
  add    $0xf,%edx
  movslq %edx,%rdx
  add    %rdx,%rsi
  xor    %edx,%edx
  cmpb   $0x2a,0x14540(%rsp,%r8,1)
  sete   %dl
  mov    %edx,0x20(%rsp,%rsi,4)
  nop
L84:
  mov    0x18(%rsp),%edx
  add    $0x198,%rbx
  cmp    %r14d,%edx
  jg     L12
  test   %edx,%edx
  jle    L153
  test   %eax,%eax
  jle    L153
  add    $0x65,%eax
  lea    0x1b8(%rsp),%r9
  lea    0xa44c(%rsp),%r10
  lea    0x24(%rsp,%rax,4),%r8
  lea    -0x1(%rdx),%eax
  imul   $0x198,%rax,%rax
  lea    0x350(%rsp,%rax,1),%r11
  xchg   %ax,%ax
L32:
  lea    -0x198(%r9),%rsi
  mov    %r9,%rdx
  mov    %r10,%rdi
  add    $0x198,%r9
  mov    %r9,%rcx
  jmp    L241
  nopl   0x0(%rax)
L134:
  mov    0x4(%rsi),%eax
  add    (%rsi),%eax
  add    0x8(%rsi),%eax
  add    (%rdx),%eax
  add    0x8(%rdx),%eax
  add    (%rcx),%eax
  add    0x4(%rcx),%eax
  add    0x8(%rcx),%eax
  mov    %eax,(%rdi)
L111:
  add    $0x4,%rdx
  add    $0x4,%rdi
  add    $0x4,%rsi
  add    $0x4,%rcx
  cmp    %r8,%rdx
  je     L301
L241:
  cmpl   $0x1,0x4(%rdx)
  jne    L134
  movl   $0xffffffff,(%rdi)
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L301:
  add    $0x198,%r8
  add    $0x198,%r10
  cmp    %r9,%r11
  jne    L32
L153:
  cmp    $0x1,%ebp
  je     L452
  mov    $0xa,%edi
  call   <putchar@plt>
L452:
  lea    0x1(%rbp),%eax
  mov    %ebp,%esi
  lea    D92(%rip),%rdi
  mov    %eax,0x4(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  test   %esi,%esi
  jle    L323
  lea    0xa448(%rsp),%rbx
  mov    $0x1,%r12d
  lea    D4(%rip),%rbp
  cs nopw 0x0(%rax,%rax,1)
L224:
  mov    0x1c(%rsp),%ecx
  mov    $0x1,%r14d
  test   %ecx,%ecx
  jle    L270
  xchg   %ax,%ax
L9:
  mov    (%rbx,%r14,4),%esi
  cmp    $0xffffffff,%esi
  je     L29
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r14d,0x1c(%rsp)
  jge    L9
L270:
  mov    $0xa,%edi
  add    $0x1,%r12d
  add    $0x198,%rbx
  call   <putchar@plt>
  cmp    %r12d,0x18(%rsp)
  jge    L224
L323:
  mov    0x4(%rsp),%ebp
  jmp    L268
  nopl   0x0(%rax,%rax,1)
L29:
  mov    $0x2a,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  cmp    %r14d,0x1c(%rsp)
  jge    L9
  jmp    L270
L77:
  xor    %edx,%edx
  jmp    L235
L148:
  mov    0x145a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L109
  add    $0x145b8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L109:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D104
type: string
name: read_data
arguments: label: D31
type: string
name: read_data
arguments: label: D108
type: byte[16]
name: read_data
arguments: label: D131
type: byte[16]
name: read_data
arguments: label: D92
type: string
name: read_data
arguments: label: D4
type: string

tool: D104: %s

tool: D31: %d %d

tool: {"D108": [0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a]}

tool: {"D131": [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]}

tool: D92: Field #%d:


tool: D4: %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;
}
```