user: Demonstrate the C code that generates the assembly output below:

```asm
<init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  cltq
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x14(%rbp),%eax
  imul   -0x18(%rbp),%eax
  cltq
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,(%rax)
  movl   $0x0,-0x10(%rbp)
  jmp    L35
L16:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  imul   -0x18(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  add    %ecx,%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  imul   -0x18(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  add    %ecx,%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x10(%rbp)
L35:
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L16
  movl   $0x0,-0xc(%rbp)
  jmp    L53
L65:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x14(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x14(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0xc(%rbp)
L53:
  mov    -0xc(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L65
  mov    $0x3039,%edi
  mov    $0x0,%eax
  call   <srand48@plt>
  movl   $0x1,-0x10(%rbp)
  jmp    L48
L50:
  movl   $0x1,-0xc(%rbp)
  jmp    L20
L1:
  mov    $0x0,%eax
  call   <drand48@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  D0(%rip),%xmm0
  comisd -0x8(%rbp),%xmm0
  seta   %cl
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%esi
  mov    -0xc(%rbp),%eax
  add    %esi,%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  movzbl %cl,%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0xc(%rbp)
L20:
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L1
  addl   $0x1,-0x10(%rbp)
L48:
  mov    -0x14(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jl     L50
  nop
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D0
data_type: f64

tool: D0: 0.5

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);
    }
  }
}
```