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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L151:
  cmp    %rdx,%rsp
  je     L39
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L151
L39:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L127
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L127:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L189:
  cmp    %rdx,%rsp
  je     L1
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L189
L1:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L107
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L107:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
L132:
  movl   $0x0,-0x6c(%rbp)
  jmp    L177
L60:
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x6c(%rbp)
L177:
  mov    -0x70(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L60
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L132
  mov    -0x70(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  je     L77
  jmp    L132
L77:
  movl   $0x0,-0x68(%rbp)
  jmp    L157
L210:
  movl   $0x0,-0x5c(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L129
L62:
  mov    -0x50(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  jne    L213
  mov    $0x2e,%eax
  jmp    L214
L213:
  mov    $0x2a,%eax
L214:
  mov    %eax,%edi
  call   <putchar@plt>
  addl   $0x1,-0x64(%rbp)
L129:
  mov    -0x70(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L62
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x70(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <checkAlive@plt>
  mov    %eax,-0x5c(%rbp)
  mov    -0x70(%rbp),%edx
  mov    -0x40(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <next_generation@plt>
  mov    -0x70(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x40(%rbp),%rdx
  movslq %eax,%rcx
  movl   $0x0,(%rdx,%rcx,4)
  mov    -0x40(%rbp),%rdx
  cltq
  mov    (%rdx,%rax,4),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  movl   $0x0,-0x60(%rbp)
  jmp    L14
L185:
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x50(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x60(%rbp)
L14:
  mov    -0x70(%rbp),%eax
  cmp    %eax,-0x60(%rbp)
  jl     L185
  cmpl   $0x1,-0x5c(%rbp)
  jne    L16
  addl   $0x1,-0x68(%rbp)
L157:
  cmpl   $0x3e7,-0x68(%rbp)
  jle    L210
  jmp    L120
L16:
  nop
L120:
  mov    %rbx,%rsp
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L21
  call   <__stack_chk_fail@plt>
L21:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_label: D3
type_guessed: string
name: read_data
arguments: data_label: D11
type_guessed: string

tool: D3: %d

tool: D11:  

assistant: ```c
int main() {
  int n;
  scanf("%d", &n);
  int current[n], next[n];
retry:
  for (int i = 0; i < n; i++)
    scanf("%d", &current[i]);
  if (current[0] != 0 || current[n - 1] != 0)
    goto retry;
  int proverka;
  for (int j = 0; j < 1000; j++) {
    proverka = 0;
    for (int i = 0; i < n; i++)
      printf("%c", (current[i] == 0) ? '.' : '*');
    printf(" \n");
    proverka = checkAlive(current, n);
    next_generation(current, next, n);
    next[0] = next[n - 1] = 0;
    for (int i = 0; i < n; i++)
      current[i] = next[i];
    if (proverka != 1)
      break;
  }
}
```