user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  lea    D0(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  lea    -0x3c(%rbp),%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  nop
L141:
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <scanf@plt>
  mov    -0x3c(%rbp),%eax
  cmp    $0x14,%eax
  ja     L141
  movslq %eax,%rdx
  mov    %rsp,%rsi
  lea    0xf(,%rdx,4),%rdx
  mov    %rdx,%rdi
  mov    %rdx,%rcx
  and    $0xfffffffffffff000,%rdi
  and    $0xfffffffffffffff0,%rcx
  sub    %rdi,%rsi
  cmp    %rsi,%rsp
  je     L136
L125:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L125
L136:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L104
L57:
  mov    %rdx,%rcx
  mov    %rsp,%rsi
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%r12
  and    $0xfffffffffffffff0,%rcx
  sub    %rdx,%rsi
L139:
  cmp    %rsi,%rsp
  je     L186
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L139
L104:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L57
L186:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L108
L118:
  mov    %rsp,%rbx
  test   %eax,%eax
  je     L31
  mov    %r12,%r14
  xor    %r13d,%r13d
  nopw   0x0(%rax,%rax,1)
L106:
  mov    %r14,%rsi
  mov    %r15,%rdi
  add    $0x1,%r13d
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %r13d,-0x3c(%rbp)
  jg     L106
L31:
  lea    D38(%rip),%rdi
  call   <printf@plt>
  mov    -0x3c(%rbp),%esi
  test   %esi,%esi
  jle    L8
  xor    %r13d,%r13d
  lea    D33(%rip),%r14
  lea    D58(%rip),%r15
  nopl   (%rax)
L213:
  mov    (%r12,%r13,4),%ecx
  test   %ecx,%ecx
  je     L22
  mov    %r15,%rdi
  add    $0x1,%r13
  call   <printf@plt>
  cmp    %r13d,-0x3c(%rbp)
  jg     L213
L8:
  lea    D38(%rip),%rdi
  lea    D33(%rip),%r14
  call   <printf@plt>
  movl   $0x4,-0x44(%rbp)
  lea    D58(%rip),%r13
L46:
  mov    -0x3c(%rbp),%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <check_generation@plt>
  test   %rax,%rax
  je     L163
  mov    -0x3c(%rbp),%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <next_generation@plt>
  mov    -0x3c(%rbp),%edx
  test   %edx,%edx
  jle    L13
  xor    %r15d,%r15d
  nopw   0x0(%rax,%rax,1)
L234:
  mov    (%rbx,%r15,4),%eax
  test   %eax,%eax
  je     L159
  mov    %r13,%rdi
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15d,-0x3c(%rbp)
  jg     L234
L13:
  lea    D38(%rip),%rdi
  call   <printf@plt>
  mov    -0x3c(%rbp),%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcpy_int@plt>
  subl   $0x1,-0x44(%rbp)
  jne    L46
L163:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L159:
  mov    %r14,%rdi
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15d,-0x3c(%rbp)
  jg     L234
  jmp    L13
  nopl   0x0(%rax)
L22:
  mov    %r14,%rdi
  add    $0x1,%r13
  call   <printf@plt>
  cmp    %r13d,-0x3c(%rbp)
  jg     L213
  jmp    L8
L108:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L118
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D0
data_type: string
name: read_data
arguments: label: D38
data_type: string
name: read_data
arguments: label: D33
data_type: string
name: read_data
arguments: label: D58
data_type: string

tool: D0: %d

tool: D38: 


tool: D33: .

tool: D58: *

assistant: ```c
int main() {
  int array_lenght;
  do {
    scanf("%d", &array_lenght);
  } while (array_lenght < 0 || array_lenght > 20);
  int current[array_lenght];
  int next[array_lenght];
  int count, count_print;
  for (count = 0; count < array_lenght; count++)
    scanf("%d", &current[count]);
  printf("\n");
  for (count_print = 0; count_print < array_lenght; count_print++) {
    if (current[count_print])
      printf("*");
    else
      printf(".");
  }
  printf("\n");
  for (count = 0; count < 4 && check_generation(current, next, array_lenght); count++) {
    next_generation(current, next, array_lenght);
    for (count_print = 0; count_print < array_lenght; count_print++) {
      if (next[count_print])
        printf("*");
      else
        printf(".");
    }
    printf("\n");
    strcpy_int(current, next, array_lenght);
  }
  return 0;
}
```