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

```asm
<matrix2>:
  endbr64
  push   %r15
  mov    %esi,%eax
  mov    %r8d,%r15d
  push   %r14
  sub    %edi,%eax
  push   %r13
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,0x8(%rsp)
  lea    0x8(,%rax,8),%edi
  mov    %esi,0xc(%rsp)
  mov    %edx,0x10(%rsp)
  call   <malloc@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L17
L36:
  movslq 0x8(%rsp),%rax
  mov    %rbx,%rsi
  mov    %rax,%rcx
  shl    $0x3,%rax
  sub    %rax,%rsi
  mov    %rsi,0x28(%rsp)
  cmp    %ecx,0xc(%rsp)
  jl     L50
  mov    0x10(%rsp),%esi
  mov    %ebp,%eax
  sub    %r15d,%r12d
  lea    0x8(,%r12,8),%r13d
  movslq %r15d,%r12
  sub    %esi,%eax
  shl    $0x3,%r12
  lea    0x8(,%rax,8),%eax
  neg    %r12
  mov    %eax,0x14(%rsp)
  movslq %esi,%rax
  shl    $0x3,%rax
  mov    %rax,0x18(%rsp)
  neg    %rax
  mov    %rax,0x20(%rsp)
  nop
L37:
  mov    0x14(%rsp),%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  test   %rax,%rax
  je     L94
L52:
  add    0x20(%rsp),%rax
  mov    0x18(%rsp),%r14
  mov    %rax,(%rbx)
  mov    0x10(%rsp),%eax
  mov    %eax,%r15d
  cmp    %eax,%ebp
  jge    L105
  jmp    L3
  nop
L97:
  add    %r12,%rax
  add    $0x1,%r15d
  add    $0x8,%r14
  mov    %rax,(%rdx)
  cmp    %r15d,%ebp
  jl     L3
L105:
  mov    %r13d,%edi
  call   <malloc@plt>
  mov    (%rbx),%rdx
  add    %r14,%rdx
  mov    %rax,(%rdx)
  test   %rax,%rax
  jne    L97
  lea    D20(%rip),%rdx
  lea    D24(%rip),%rsi
  mov    $0x1db,%edi
  call   <errhandler@plt>
  mov    (%rbx),%rdx
  add    %r14,%rdx
  mov    (%rdx),%rax
  jmp    L97
  nopl   0x0(%rax)
L3:
  addl   $0x1,0x8(%rsp)
  add    $0x8,%rbx
  mov    0x8(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  jge    L37
L50:
  mov    0x28(%rsp),%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L94:
  lea    D20(%rip),%rdx
  lea    D24(%rip),%rsi
  mov    $0x1d7,%edi
  call   <errhandler@plt>
  mov    (%rbx),%rax
  jmp    L52
L17:
  lea    D20(%rip),%rdx
  lea    D24(%rip),%rsi
  mov    $0x1d2,%edi
  call   <errhandler@plt>
  jmp    L36
```

tool_calls: name: retrieve_data
arguments: tag: D20
type: string
name: retrieve_data
arguments: tag: D24
type: string

tool: D20: Storage cannot be allocated

tool: D24: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProjectBackup/helper.c

assistant: ```c
double ***matrix2(int nrl, int nrh, int ncl, int nch, int nll, int nlh) {
  double ***pArray;
  int i, j;
  pArray = (double ***)malloc((unsigned)(nrh - nrl + 1) * sizeof(double **));
  if (pArray == 0)
    errhandler(466, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProjectBackup/helper.c", "Storage cannot be allocated");
  pArray -= nrl;
  for (i = nrl; i <= nrh; i++) {
    pArray[i] = (double **)malloc((unsigned)(nch - ncl + 1) * sizeof(double *));
    if (pArray[i] == 0)
      errhandler(471, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProjectBackup/helper.c", "Storage cannot be allocated");
    pArray[i] -= ncl;
    for (j = ncl; j <= nch; j++) {
      pArray[i][j] = (double *)malloc((unsigned)(nlh - nll + 1) * sizeof(double));
      if (pArray[i][j] == 0)
        errhandler(475, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProjectBackup/helper.c", "Storage cannot be allocated");
      pArray[i][j] -= nll;
    }
  }
  return pArray;
}
```