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

```asm
<init>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  mov    %edi,%r14d
  imul   %esi,%r14d
  push   %r13
  mov    %esi,%r13d
  mov    $0x4,%esi
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  movslq %r14d,%r12
  mov    %rdx,%rbx
  mov    %r12,%rdi
  sub    $0x18,%rsp
  call   <calloc@plt>
  mov    %r12,%rdi
  mov    $0x4,%esi
  mov    %rax,(%rbx)
  call   <calloc@plt>
  mov    %rax,(%r15)
  mov    %rax,%r12
  test   %ebp,%ebp
  jle    L30
  mov    (%rbx),%rdi
  cmp    $0x1,%r13d
  jne    L122
  lea    0x4(%rax),%rdx
  mov    %ebp,%esi
  lea    0x4(%rdi),%rcx
  xor    %eax,%eax
L43:
  movl   $0x0,(%rdi,%rax,4)
  movl   $0x0,-0x4(%rcx,%rax,4)
  movl   $0x0,(%r12,%rax,4)
  movl   $0x0,-0x4(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L43
  lea    -0x1(%rbp),%eax
  mov    %eax,0x4(%rsp)
  jmp    L81
L122:
  movslq %r13d,%rcx
  xor    %edx,%edx
  shl    $0x2,%rcx
  lea    (%rax,%rcx,1),%rsi
  lea    (%rdi,%rcx,1),%r8
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L126:
  add    $0x1,%edx
  movl   $0x0,(%rdi,%rax,1)
  movl   $0x0,-0x4(%r8,%rax,1)
  movl   $0x0,(%r12,%rax,1)
  movl   $0x0,-0x4(%rsi,%rax,1)
  add    %rcx,%rax
  cmp    %edx,%ebp
  jne    L126
L30:
  lea    -0x1(%rbp),%eax
  mov    %eax,0x4(%rsp)
  test   %r13d,%r13d
  jle    L74
  mov    (%rbx),%rdi
L81:
  sub    %r13d,%r14d
  mov    %r13d,%esi
  movslq %r14d,%rax
  lea    0x0(,%rsi,4),%r14
  lea    (%rsi,%rax,1),%rdx
  shl    $0x2,%rax
  lea    (%rdi,%r14,1),%rbp
  shl    $0x2,%rdx
  lea    (%rdi,%rax,1),%r15
  lea    (%r12,%rax,1),%r8
  mov    %rbp,0x8(%rsp)
  lea    (%r12,%rdx,1),%r10
  lea    (%rdi,%rdx,1),%r9
  cmp    %r10,%r15
  lea    (%r12,%r14,1),%r11
  setae  %bpl
  cmp    %r9,%r8
  setae  %cl
  or     %ebp,%ecx
  cmp    %rax,%r14
  mov    0x8(%rsp),%rbp
  setle  %al
  test   %rdx,%rdx
  setle  %dl
  or     %edx,%eax
  and    %eax,%ecx
  cmp    %rbp,%r8
  setae  %al
  cmp    %r10,%rdi
  mov    %ecx,%edx
  setae  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %r9,%r12
  setae  %dl
  cmp    %r11,%r15
  setae  %cl
  or     %ecx,%edx
  test   %dl,%al
  je     L70
  cmp    %rbp,%r12
  setae  %al
  cmp    %r11,%rdi
  setae  %dl
  or     %dl,%al
  je     L70
  mov    %r14,%rdx
  xor    %esi,%esi
  mov    %r8,0x8(%rsp)
  call   <memset@plt>
  mov    %r14,%rdx
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <memset@plt>
  mov    %r14,%rdx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  mov    0x8(%rsp),%rdi
  mov    %r14,%rdx
  xor    %esi,%esi
  call   <memset@plt>
L74:
  xor    %eax,%eax
  mov    $0x3039,%edi
  call   <srand48@plt>
  cmpl   $0x1,0x4(%rsp)
  jle    L49
  cmp    $0x2,%r13d
  jle    L49
  movslq %r13d,%rax
  lea    -0x3(%r13),%r15d
  mov    $0x1,%r13d
  lea    0x2(%r15,%rax,1),%r12
  not    %r15
  lea    0x0(,%rax,4),%r14
  shl    $0x2,%r12
  shl    $0x2,%r15
  nopl   (%rax)
L113:
  lea    (%r15,%r12,1),%rbp
  nopl   0x0(%rax)
L69:
  xor    %eax,%eax
  call   <drand48@plt>
  xor    %edx,%edx
  mov    (%rbx),%rcx
  test   %eax,%eax
  setle  %dl
  mov    %edx,(%rcx,%rbp,1)
  add    $0x4,%rbp
  cmp    %rbp,%r12
  jne    L69
  add    $0x1,%r13d
  add    %r14,%r12
  cmp    0x4(%rsp),%r13d
  jne    L113
L49:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  xor    %eax,%eax
  nopl   0x0(%rax)
L11:
  movl   $0x0,(%rdi,%rax,4)
  movl   $0x0,(%r15,%rax,4)
  movl   $0x0,(%r12,%rax,4)
  movl   $0x0,(%r8,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L11
  jmp    L74
```

assistant: ```c
void init(int Nrows, int Ncolumns, int **board, int **newboard) {
  int r, c, n;
  *board = (int *)calloc(Nrows * Ncolumns, sizeof(int));
  *newboard = (int *)calloc(Nrows * Ncolumns, sizeof(int));
  for (r = 0; r < Nrows; ++r) {
    (*board)[((r)*Ncolumns + (0))] = 0;
    (*board)[((r)*Ncolumns + (Ncolumns - 1))] = 0;
    (*newboard)[((r)*Ncolumns + (0))] = 0;
    (*newboard)[((r)*Ncolumns + (Ncolumns - 1))] = 0;
  }
  for (c = 0; c < Ncolumns; ++c) {
    (*board)[((0) * Ncolumns + (c))] = 0;
    (*board)[((Nrows - 1) * Ncolumns + (c))] = 0;
    (*newboard)[((0) * Ncolumns + (c))] = 0;
    (*newboard)[((Nrows - 1) * Ncolumns + (c))] = 0;
  }
  srand48(12345);
  for (r = 1; r < Nrows - 1; ++r) {
    for (c = 1; c < Ncolumns - 1; ++c) {
      double rn = drand48();
      (*board)[((r)*Ncolumns + (c))] = 1 * (rn < 0.5) + 0 * (rn >= 0.5);
    }
  }
}
```