user: Please show me the C implementation that matches the assembly code listed below:

```asm
<init_array>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L168
L185:
  movl   $0x0,-0x18(%rbp)
  jmp    L72
L144:
  mov    -0x18(%rbp),%eax
  neg    %eax
  cltd
  idivl  -0x24(%rbp)
  mov    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x24(%rbp),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  mov    -0x1c(%rbp),%eax
  cltq
  imul   $0x3e80,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  movsd  D15(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x18(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x18(%rbp)
L72:
  mov    -0x18(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L144
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L60
L87:
  mov    -0x1c(%rbp),%eax
  cltq
  imul   $0x3e80,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x18(%rbp)
L60:
  mov    -0x18(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L87
  mov    -0x1c(%rbp),%eax
  cltq
  imul   $0x3e80,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  movsd  D15(%rip),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x1c(%rbp)
L168:
  mov    -0x1c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L185
  mov    $0x8,%esi
  mov    $0x3d0900,%edi
  call   <polybench_alloc_data@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L31
L152:
  movl   $0x0,-0x10(%rbp)
  jmp    L115
L29:
  mov    -0x8(%rbp),%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  imul   $0x7d0,%rdx,%rdx
  add    %rcx,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x10(%rbp)
L115:
  mov    -0x10(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L29
  addl   $0x1,-0x14(%rbp)
L31:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L152
  movl   $0x0,-0xc(%rbp)
  jmp    L28
L42:
  movl   $0x0,-0x14(%rbp)
  jmp    L110
L1:
  movl   $0x0,-0x10(%rbp)
  jmp    L33
L176:
  mov    -0x8(%rbp),%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  imul   $0x7d0,%rdx,%rdx
  add    %rcx,%rdx
  movsd  (%rax,%rdx,8),%xmm1
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0x3e80,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm2
  mov    -0x10(%rbp),%eax
  cltq
  imul   $0x3e80,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  imul   $0x7d0,%rdx,%rdx
  add    %rcx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x10(%rbp)
L33:
  mov    -0x10(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L176
  addl   $0x1,-0x14(%rbp)
L110:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L1
  addl   $0x1,-0xc(%rbp)
L28:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L42
  movl   $0x0,-0x14(%rbp)
  jmp    L85
L90:
  movl   $0x0,-0x10(%rbp)
  jmp    L52
L171:
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0x3e80,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  mov    -0x10(%rbp),%ecx
  movslq %ecx,%rsi
  mov    -0x14(%rbp),%ecx
  movslq %ecx,%rcx
  imul   $0x7d0,%rcx,%rcx
  add    %rsi,%rcx
  movsd  (%rax,%rcx,8),%xmm0
  mov    -0x10(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x10(%rbp)
L52:
  mov    -0x10(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L171
  addl   $0x1,-0x14(%rbp)
L85:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L90
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D15
datatype: byte[8]

tool: {"D15": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void init_array(int n, double A[2000 + 0][2000 + 0]) {
  int i, j;
  for (i = 0; i < n; i++) {
    for (j = 0; j <= i; j++)
      A[i][j] = (double)(-j % n) / n + 1;
    for (j = i + 1; j < n; j++) {
      A[i][j] = 0;
    }
    A[i][i] = 1;
  }
  int r, s, t;
  double(*B)[2000 + 0][2000 + 0];
  B = (double(*)[2000 + 0][2000 + 0]) polybench_alloc_data((2000 + 0) * (2000 + 0), sizeof(double));
  ;
  for (r = 0; r < n; ++r)
    for (s = 0; s < n; ++s)
      (*B)[r][s] = 0;
  for (t = 0; t < n; ++t)
    for (r = 0; r < n; ++r)
      for (s = 0; s < n; ++s)
        (*B)[r][s] += A[r][t] * A[s][t];
  for (r = 0; r < n; ++r)
    for (s = 0; s < n; ++s)
      A[r][s] = (*B)[r][s];
  free((void *)B);
  ;
}
```