user: Converte this assembly snippet into its equivalent C code:

```asm
<evolveUniv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %esi,-0x78(%rbp)
  mov    %rdx,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    -0x78(%rbp),%edi
  mov    %edi,-0x84(%rbp)
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  movslq %edi,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  mov    %rsp,%rax
  mov    %rax,-0x90(%rbp)
  mov    -0x78(%rbp),%esi
  mov    -0x74(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %esi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %edi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L149:
  cmp    %rdx,%rsp
  je     L15
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L149
L15:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L119
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L119:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L62
L83:
  movl   $0x0,-0x60(%rbp)
  jmp    L102
L27:
  mov    -0x80(%rbp),%rdi
  mov    -0x78(%rbp),%ecx
  mov    -0x74(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x64(%rbp),%eax
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <getNeighbours@plt>
  mov    %eax,-0x5c(%rbp)
  cmpl   $0x3,-0x5c(%rbp)
  je     L23
  cmpl   $0x2,-0x5c(%rbp)
  jne    L141
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  movslq -0x84(%rbp),%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  mov    -0x60(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  test   %eax,%eax
  je     L141
L23:
  mov    $0x1,%esi
  jmp    L31
L141:
  mov    $0x0,%esi
L31:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdi
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  mov    %esi,(%rax,%rdx,4)
  addl   $0x1,-0x60(%rbp)
L102:
  mov    -0x60(%rbp),%eax
  cmp    -0x78(%rbp),%eax
  jne    L27
  addl   $0x1,-0x64(%rbp)
L62:
  mov    -0x64(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jne    L83
  movl   $0x0,-0x64(%rbp)
  jmp    L101
L95:
  movl   $0x0,-0x60(%rbp)
  jmp    L130
L11:
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  movslq -0x84(%rbp),%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdi
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x60(%rbp),%eax
  cltq
  mov    %edx,(%rcx,%rax,4)
  addl   $0x1,-0x60(%rbp)
L130:
  mov    -0x60(%rbp),%eax
  cmp    -0x78(%rbp),%eax
  jne    L11
  addl   $0x1,-0x64(%rbp)
L101:
  mov    -0x64(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jne    L95
  mov    -0x90(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L84
  call   <__stack_chk_fail@plt>
L84:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void evolveUniv(int rows, int cols, int univ[][cols]) {
  int new_univ[rows][cols];
  int i, j;
  int live_neighbours;
  for (i = 0; i != rows; i++) {
    for (j = 0; j != cols; j++) {
      live_neighbours = getNeighbours(i, j, rows, cols, univ);
      new_univ[i][j] = (live_neighbours == 3 || (live_neighbours == 2 && univ[i][j]));
    }
  }
  for (i = 0; i != rows; i++) {
    for (j = 0; j != cols; j++) {
      univ[i][j] = new_univ[i][j];
    }
  }
}
```