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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D28(%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     L83
  lea    0x20(%rsp),%rbp
  xor    %ebx,%ebx
  lea    0x70(%rsp),%r14
  mov    %rbp,%r12
  nopw   0x0(%rax,%rax,1)
L12:
  mov    %r12,%rsi
  mov    %r13,%rdi
  add    $0x4,%r12
  call   <scanf@plt>
  mov    -0x4(%r12),%eax
  lea    0x1(%rbx),%edx
  mov    %eax,(%r14,%rbx,4)
  add    $0x1,%rbx
  mov    %ebx,%eax
  cmp    %ebx,0x1c(%rsp)
  jne    L12
L155:
  movslq %edx,%rdx
  movl   $0x0,0x20(%rsp)
  lea    D5(%rip),%r12
  lea    D11(%rip),%r13
  movl   $0x0,0x70(%rsp)
  movl   $0x0,0x20(%rsp,%rdx,4)
  movl   $0x0,0x70(%rsp,%rdx,4)
  movl   $0x3e8,0xc(%rsp)
  test   %eax,%eax
  je     L24
  nopl   0x0(%rax)
L118:
  xor    %r15d,%r15d
  mov    $0x1,%ebx
L129:
  mov    0x0(%rbp,%r15,4),%eax
  test   %eax,%eax
  je     L140
  cmp    $0x1,%eax
  je     L42
L117:
  add    $0x1,%r15
  cmp    %r15d,0x1c(%rsp)
  jne    L129
  lea    D34(%rip),%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <next_generation@plt>
  cmp    $0x1,%ebx
  je     L53
  subl   $0x1,0xc(%rsp)
  je     L62
L65:
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jne    L118
L24:
  lea    D34(%rip),%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <next_generation@plt>
L53:
  mov    0xc8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L119
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L140:
  mov    %r12,%rdi
  call   <printf@plt>
  mov    0x0(%rbp,%r15,4),%eax
  cmp    $0x1,%eax
  jne    L117
L42:
  mov    %r13,%rdi
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15d,0x1c(%rsp)
  je     L81
  xor    %ebx,%ebx
  jmp    L129
L81:
  lea    D34(%rip),%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <next_generation@plt>
  subl   $0x1,0xc(%rsp)
  jne    L65
L62:
  xor    %eax,%eax
  jmp    L53
L83:
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  lea    0x70(%rsp),%r14
  jmp    L155
L119:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D28
type_infered: string
name: retrieve_data
arguments: tag: D5
type_infered: string
name: retrieve_data
arguments: tag: D11
type_infered: string
name: retrieve_data
arguments: tag: D34
type_infered: string

tool: D28: %d

tool: D5: .

tool: D11: *

tool: D34: 


assistant: ```c
int main(void) {
  int old_cells[20];
  int new_cells[20];
  int limiter;
  int counter;
  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;
  int generation_counter = 0;
  int deadflag = 1;
  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;
    }
    deadflag = 1;
  }
}
```