user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  lea    D18(%rip),%r15
  push   %r14
  lea    -0x3c(%rbp),%rsi
  mov    %r15,%rdi
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rdx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdi
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rdi
  and    $0xfffffffffffffff0,%rcx
  sub    %rdi,%rsi
  cmp    %rsi,%rsp
  je     L159
L139:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L139
L159:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L149
L188:
  mov    %rax,%rcx
  mov    %rsp,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rbx
  and    $0xfffffffffffffff0,%rcx
  sub    %rax,%rsi
L5:
  cmp    %rsi,%rsp
  je     L130
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L5
L149:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L188
L130:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L99
L25:
  mov    %rsp,%r12
  nopl   0x0(%rax)
L120:
  test   %edx,%edx
  jle    L164
  mov    %rbx,%r14
  xor    %r13d,%r13d
  nopw   0x0(%rax,%rax,1)
L7:
  mov    %r14,%rsi
  mov    %r15,%rdi
  add    $0x1,%r13d
  add    $0x4,%r14
  call   <scanf@plt>
  mov    -0x3c(%rbp),%edx
  cmp    %r13d,%edx
  jg     L7
L164:
  mov    (%rbx),%ecx
  test   %ecx,%ecx
  jne    L120
  lea    -0x1(%rdx),%eax
  cltq
  mov    (%rbx,%rax,4),%eax
  test   %eax,%eax
  jne    L120
  mov    $0x3e8,%r13d
  lea    D9(%rip),%r14
  nopw   0x0(%rax,%rax,1)
L199:
  xor    %r15d,%r15d
  test   %edx,%edx
  jle    L166
  nop
L191:
  cmpl   $0x1,(%rbx,%r15,4)
  sbb    %edi,%edi
  add    $0x1,%r15
  and    $0x4,%edi
  add    $0x2a,%edi
  call   <putchar@plt>
  cmp    %r15d,-0x3c(%rbp)
  jg     L191
L166:
  mov    %r14,%rdi
  call   <puts@plt>
  mov    -0x3c(%rbp),%esi
  mov    %rbx,%rdi
  call   <checkAlive@plt>
  mov    -0x3c(%rbp),%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  mov    %eax,%r15d
  call   <next_generation@plt>
  mov    -0x3c(%rbp),%edx
  lea    -0x1(%rdx),%esi
  movslq %esi,%rax
  movl   $0x0,(%r12,%rax,4)
  movl   $0x0,(%r12)
  test   %edx,%edx
  jle    L100
  mov    %esi,%esi
  xor    %ecx,%ecx
  xor    %eax,%eax
  shl    $0x2,%rsi
  jmp    L108
  nopl   0x0(%rax)
L114:
  mov    0x4(%r12,%rax,1),%ecx
  add    $0x4,%rax
L108:
  mov    %ecx,(%rbx,%rax,1)
  cmp    %rax,%rsi
  jne    L114
L100:
  cmp    $0x1,%r15d
  jne    L28
  sub    $0x1,%r13d
  jne    L199
L28:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L99:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L25
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D18
type: string
name: parse_data
arguments: label: D9
type: string

tool: D18: %d

tool: D9:  

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;
  }
}
```