user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rsi
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L209
L6:
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rsi
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
L209:
  mov    -0xc0(%rbp),%eax
  test   %eax,%eax
  js     L6
  mov    -0xc0(%rbp),%eax
  cmp    $0x14,%eax
  jg     L6
L110:
  movl   $0x0,-0xb8(%rbp)
  jmp    L119
L123:
  lea    -0xb0(%rbp),%rdx
  mov    -0xb8(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0xb8(%rbp)
L119:
  mov    -0xc0(%rbp),%eax
  cmp    %eax,-0xb8(%rbp)
  jl     L123
  mov    -0xb0(%rbp),%eax
  test   %eax,%eax
  jne    L110
  mov    -0xc0(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L110
  movl   $0x0,-0xbc(%rbp)
  jmp    L189
L62:
  movl   $0x0,-0xb4(%rbp)
  movl   $0x0,-0xb8(%rbp)
  jmp    L172
L135:
  mov    -0xb8(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L228
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L230
L228:
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L230:
  addl   $0x1,-0xb8(%rbp)
L172:
  mov    -0xc0(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xb8(%rbp)
  jl     L135
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xc0(%rbp),%edx
  lea    -0xb0(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <next_generation@plt>
  movl   $0x0,-0xb8(%rbp)
  jmp    L128
L46:
  mov    -0xb8(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L148
  movl   $0x1,-0xb4(%rbp)
  jmp    L26
L148:
  addl   $0x1,-0xb8(%rbp)
L128:
  mov    -0xc0(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xb8(%rbp)
  jl     L46
L26:
  cmpl   $0x1,-0xb4(%rbp)
  je     L208
  movl   $0x0,-0xb8(%rbp)
  jmp    L175
L114:
  mov    -0xb8(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L102
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L98
L102:
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L98:
  addl   $0x1,-0xb8(%rbp)
L175:
  mov    -0xc0(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xb8(%rbp)
  jl     L114
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L95
L208:
  addl   $0x1,-0xbc(%rbp)
L189:
  cmpl   $0x3e7,-0xbc(%rbp)
  jle    L62
L95:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L194
  call   <__stack_chk_fail@plt>
L194:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D84
data_type: string
name: disassemble_data
arguments: data_tag: D25
data_type: string
name: disassemble_data
arguments: data_tag: D88
data_type: string
name: disassemble_data
arguments: data_tag: D41
data_type: string

tool: D84: %d

tool: D25: .

tool: D88: *

tool: D41:  


assistant: ```c
int main() {
  int n, j, i, check, current[20], next[20];
  scanf("%d", &n);
  while (n < 0 || n > 20) {
    scanf("%d", &n);
  }
  do {
    for (i = 0; i < n; i++) {
      scanf("%d", &current[i]);
    }
  } while (current[0] != 0 || current[n - 1] != 0);
  for (j = 0; j < 1000; j++) {
    check = 0;
    for (i = 0; i < n - 1; i++) {
      if (current[i] == 0) {
        printf(".");
      } else {
        printf("*");
      }
    }
    printf(" \n");
    next_generation(&next[0], &current[0], n);
    for (i = 0; i < n - 1; i++) {
      if (current[i] != 0) {
        check = 1;
        break;
      }
    }
    if (check != 1) {
      for (i = 0; i < n - 1; i++) {
        if (current[i] == 0) {
          printf(".");
        } else {
          printf("*");
        }
      }
      printf(" \n");
      break;
    }
  }
}
```