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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D34(%rip),%r13
  push   %r12
  mov    %r13,%rdi
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rsi
  call   <scanf@plt>
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  je     L89
  lea    0x20(%rsp),%rbp
  xor    %ebx,%ebx
  lea    0x70(%rsp),%r15
  mov    %rbp,%r12
  nopw   0x0(%rax,%rax,1)
L31:
  mov    %r12,%rsi
  mov    %r13,%rdi
  add    $0x4,%r12
  call   <scanf@plt>
  mov    -0x4(%r12),%eax
  lea    0x1(%rbx),%edx
  mov    %eax,(%r15,%rbx,4)
  add    $0x1,%rbx
  mov    %ebx,%eax
  cmp    %ebx,0x1c(%rsp)
  jne    L31
L99:
  movslq %edx,%rdx
  movl   $0x0,0x20(%rsp)
  lea    D17(%rip),%r13
  lea    D24(%rip),%r14
  movl   $0x0,0x70(%rsp)
  movl   $0x0,0x20(%rsp,%rdx,4)
  movl   $0x0,0x70(%rsp,%rdx,4)
  movl   $0x0,0xc(%rsp)
  test   %eax,%eax
  je     L76
  nopl   0x0(%rax,%rax,1)
L16:
  xor    %r12d,%r12d
  mov    $0x1,%ebx
  jmp    L58
  nopw   0x0(%rax,%rax,1)
L121:
  cmp    $0x1,%eax
  je     L98
L12:
  add    $0x1,%r12
  cmp    %r12d,0x1c(%rsp)
  je     L23
L58:
  mov    0x0(%rbp,%r12,4),%eax
  test   %eax,%eax
  jne    L121
  mov    %r13,%rdi
  call   <printf@plt>
  mov    0x0(%rbp,%r12,4),%eax
  cmp    $0x1,%eax
  jne    L12
L98:
  mov    %r14,%rdi
  xor    %ebx,%ebx
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,0x1c(%rsp)
  jne    L58
L23:
  lea    D3(%rip),%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <next_generation@plt>
  addl   $0x1,0xc(%rsp)
  mov    0xc(%rsp),%eax
  cmp    $0x3e8,%eax
  je     L96
  test   %ebx,%ebx
  jne    L96
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jne    L16
L76:
  lea    D3(%rip),%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <next_generation@plt>
L96:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L83
  add    $0xd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L89:
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  lea    0x70(%rsp),%r15
  jmp    L99
L83:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D34
data_type: string
name: unpack_data
arguments: data_tag: D17
data_type: string
name: unpack_data
arguments: data_tag: D24
data_type: string
name: unpack_data
arguments: data_tag: D3
data_type: string

tool: D34: %d

tool: D17: .

tool: D24: *

tool: D3: 


assistant: ```c
int main(void) {
  int old_cells[20];
  int new_cells[20];
  int limiter;
  int counter;
  int generation_counter = 0;
  int deadflag = 1;
  scanf("%d", &limiter);
  counter = 0;
  while (counter != limiter) {
    scanf("%d", &old_cells[counter]);
    new_cells[counter] = old_cells[counter];
    counter++;
  }
  old_cells[0] = 0;
  old_cells[counter] = 0;
  new_cells[0] = 0;
  new_cells[counter] = 0;
  while (generation_counter != 1000) {
    counter = 0;
    while (counter != limiter) {
      if (old_cells[counter] == 0) {
        printf(".");
      }
      if (old_cells[counter] == 1) {
        printf("*");
        deadflag = 0;
      }
      counter++;
    }
    printf("\n");
    next_generation(old_cells, new_cells, limiter);
    generation_counter++;
    if (deadflag == 1) {
      return 0;
    }
    deadflag = 1;
  }
  return 0;
}
```