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

```asm
<run_life>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    D29(%rip),%rax
  mov    (%rax),%r11d
  movslq %r11d,%rdx
  lea    0x0(,%rdx,4),%rax
  mov    %rax,-0x50(%rbp)
  mov    D30(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x44(%rbp)
  cltq
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L52:
  cmp    %rdx,%rsp
  je     L147
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L52
L147:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L191
  orq    $0x0,-0x8(%rsp,%rax,1)
L191:
  mov    %rsp,%rax
  cmpl   $0x0,-0x44(%rbp)
  jle    L57
  mov    %rax,%r10
  mov    -0x68(%rbp),%rbx
  mov    %rbx,-0x70(%rbp)
  mov    %rbx,-0x60(%rbp)
  mov    %rax,-0x58(%rbp)
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    -0x44(%rbp),%ebx
  sub    $0x1,%ebx
  mov    %ebx,-0x48(%rbp)
  mov    $0x0,%ebx
  lea    0x1(%r11),%r13d
  lea    -0x1(%r11),%r12d
  mov    %rax,-0x78(%rbp)
  jmp    L206
L17:
  cmp    $0x1,%ecx
  je     L174
L135:
  movl   $0x0,-0x4(%r14,%rdx,4)
L0:
  add    $0x1,%rdx
  cmp    %r13,%rdx
  je     L49
L148:
  lea    -0x1(%rdx),%eax
  lea    -0x2(%rdx),%esi
  test   %eax,%eax
  cmovle %r12d,%esi
  cmp    %edx,%r11d
  mov    %ebx,%ecx
  cmovg  %edx,%ecx
  movslq %esi,%rsi
  mov    -0x4(%r8,%rdx,4),%eax
  add    (%r8,%rsi,4),%eax
  movslq %ecx,%rcx
  add    (%r8,%rcx,4),%eax
  add    (%r9,%rsi,4),%eax
  add    (%r9,%rcx,4),%eax
  add    (%rdi,%rsi,4),%eax
  add    -0x4(%rdi,%rdx,4),%eax
  add    (%rdi,%rcx,4),%eax
  mov    -0x4(%r9,%rdx,4),%ecx
  cmp    $0x3,%eax
  jne    L17
  test   %ecx,%ecx
  jne    L17
  movl   $0x1,-0x4(%r10,%rdx,4)
  jmp    L0
L174:
  sub    $0x2,%eax
  cmp    $0x1,%eax
  ja     L135
  mov    -0x58(%rbp),%rax
  movl   $0x1,-0x4(%rax,%rdx,4)
  jmp    L0
L49:
  add    $0x1,%r15d
  mov    -0x50(%rbp),%rax
  add    %rax,%r10
  add    %rax,%r14
  add    %rax,-0x58(%rbp)
  add    %rax,-0x60(%rbp)
  cmp    %r15d,-0x44(%rbp)
  je     L15
L206:
  test   %r11d,%r11d
  jle    L49
  lea    0x1(%r15),%eax
  lea    -0x1(%r15),%r8d
  test   %r15d,%r15d
  cmovle -0x48(%rbp),%r8d
  movslq %r8d,%r8
  mov    -0x50(%rbp),%rsi
  imul   %rsi,%r8
  mov    -0x68(%rbp),%rdx
  add    %rdx,%r8
  mov    -0x60(%rbp),%r9
  cmp    %eax,-0x44(%rbp)
  cmovle %ebx,%eax
  movslq %eax,%rdi
  imul   %rsi,%rdi
  add    %rdx,%rdi
  mov    $0x1,%edx
  jmp    L148
L15:
  mov    -0x78(%rbp),%r10
  mov    $0x0,%edi
  mov    D29(%rip),%r8
  mov    %rax,%r11
  mov    -0x70(%rbp),%r9
  jmp    L99
L151:
  mov    (%r10,%rax,4),%edx
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,(%rsi)
  jg     L151
L86:
  add    $0x1,%edi
  add    %r11,%r10
  add    %r11,%r9
  mov    D30(%rip),%rax
  cmp    %edi,(%rax)
  jle    L57
L99:
  mov    %r9,%rcx
  mov    $0x0,%eax
  cmpl   $0x0,(%r8)
  jle    L86
  mov    D29(%rip),%rsi
  jmp    L151
L57:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L91
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L91:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void run_life(int grid[COLS][LINES]) {
  int i;
  int j;
  int ii;
  int jj;
  int iii;
  int jjj;
  int nei = 0;
  int newgrid[COLS][LINES];
  for (i = 0; i < COLS; i++) {
    for (j = 0; j < LINES; j++) {
      if (i - 1 < 0)
        ii = COLS - 1;
      else
        ii = i - 1;
      if (i + 1 >= COLS)
        iii = 0;
      else
        iii = i + 1;
      if (j - 1 < 0)
        jj = LINES - 1;
      else
        jj = j - 1;
      if (j + 1 >= LINES)
        jjj = 0;
      else
        jjj = j + 1;
      nei = 0;
      nei += grid[ii][jj];
      nei += grid[ii][j];
      nei += grid[ii][jjj];
      nei += grid[i][jj];
      nei += grid[i][jjj];
      nei += grid[iii][jj];
      nei += grid[iii][j];
      nei += grid[iii][jjj];
      if ((grid[i][j] == 0) && nei == 3)
        newgrid[i][j] = 1;
      else if ((grid[i][j] == 1) && (nei == 3 || nei == 2))
        newgrid[i][j] = 1;
      else
        newgrid[i][j] = 0;
    }
  }
  for (i = 0; i < COLS; i++) {
    for (j = 0; j < LINES; j++) {
      grid[i][j] = newgrid[i][j];
    }
  }
}
```