user: Translate the below assembly code into C programming language:

```asm
<c4matrix>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,%ebx
  mov    %esi,0x40(%rsp)
  mov    %edx,0x44(%rsp)
  mov    %ecx,0xc(%rsp)
  mov    %r8d,0x28(%rsp)
  mov    %r9d,%r12d
  mov    0xa0(%rsp),%r15d
  mov    %esi,%eax
  sub    %edi,%eax
  lea    0x1(%rax),%edi
  shl    $0x3,%rdi
  call   <malloc@plt>
  test   %rax,%rax
  je     L42
  movslq %ebx,%rcx
  mov    %rcx,0x30(%rsp)
  lea    0x0(,%rcx,8),%rdx
  sub    %rdx,%rax
  mov    %rax,0x38(%rsp)
  cmp    %ebx,0x40(%rsp)
  jl     L103
  mov    0xc(%rsp),%eax
  mov    0x44(%rsp),%esi
  sub    %esi,%eax
  lea    0x1(%rax),%eax
  shl    $0x3,%rax
  mov    %rax,0x48(%rsp)
  movslq %esi,%rax
  mov    %rax,0x50(%rsp)
  shl    $0x3,%rax
  neg    %rax
  mov    %rax,0x58(%rsp)
  mov    %r12d,%eax
  mov    0x28(%rsp),%ecx
  sub    %ecx,%eax
  lea    0x1(%rax),%eax
  shl    $0x3,%rax
  mov    %rax,0x10(%rsp)
  movslq %ecx,%rax
  mov    %rax,0x20(%rsp)
  shl    $0x3,%rax
  neg    %rax
  mov    %rax,0x18(%rsp)
  mov    0xa8(%rsp),%eax
  sub    %r15d,%eax
  mov    %eax,0x2c(%rsp)
  jmp    L50
L42:
  mov    $0x14,%edi
  call   <exit@plt>
L76:
  mov    $0x14,%edi
  call   <exit@plt>
L27:
  mov    $0x14,%edi
  call   <exit@plt>
L121:
  mov    $0x14,%edi
  call   <exit@plt>
L98:
  add    $0x1,%r14
  cmp    %r14d,0xc(%rsp)
  jl     L63
L126:
  mov    0x10(%rsp),%rdi
  call   <malloc@plt>
  mov    (%rsp),%rcx
  mov    %rax,(%rcx,%r14,8)
  test   %rax,%rax
  je     L27
  mov    0x18(%rsp),%rsi
  lea    (%rax,%rsi,1),%rbp
  mov    (%rsp),%rax
  mov    %rbp,(%rax,%r14,8)
  cmp    0x28(%rsp),%r12d
  jl     L98
  mov    0x20(%rsp),%rbx
  mov    0x2c(%rsp),%eax
  lea    0x1(%rax),%r13d
L114:
  mov    %r13,%rdi
  call   <malloc@plt>
  mov    %rax,0x0(%rbp,%rbx,8)
  test   %rax,%rax
  je     L121
  movslq %r15d,%rdx
  sub    %rdx,%rax
  mov    %rax,0x0(%rbp,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jge    L114
  jmp    L98
L63:
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  cmp    %eax,0x40(%rsp)
  jl     L103
L50:
  mov    0x48(%rsp),%rdi
  call   <malloc@plt>
  mov    0x38(%rsp),%rcx
  mov    0x30(%rsp),%rsi
  mov    %rax,(%rcx,%rsi,8)
  test   %rax,%rax
  je     L76
  add    0x58(%rsp),%rax
  mov    %rax,(%rsp)
  mov    0x38(%rsp),%rcx
  mov    0x30(%rsp),%rsi
  mov    %rax,(%rcx,%rsi,8)
  mov    0x44(%rsp),%ecx
  cmp    %ecx,0xc(%rsp)
  jl     L63
  mov    0x50(%rsp),%r14
  jmp    L126
L103:
  mov    0x38(%rsp),%rax
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
unsigned char ****c4matrix(nql, nqh, nzl, nzh, nrl, nrh, ncl, nch)
int nrl, nrh, ncl, nch, nzl, nzh, nql, nqh;
{
  unsigned char ****m;
  int i, j, k;
  m = (unsigned char ****)malloc((unsigned)(nqh - nql + 1) * sizeof(unsigned char ***));
  if (!m)
    exit(20);
  m -= nql;
  for (k = nql; k <= nqh; k++) {
    m[k] = (unsigned char ***)malloc((unsigned)(nzh - nzl + 1) * sizeof(unsigned char **));
    if (!m[k])
      exit(20);
    m[k] -= nzl;
    for (i = nzl; i <= nzh; i++) {
      m[k][i] = (unsigned char **)malloc((unsigned)(nrh - nrl + 1) * sizeof(unsigned char *));
      if (!m[k][i])
        exit(20);
      m[k][i] -= nrl;
      for (j = nrl; j <= nrh; j++) {
        m[k][i][j] = (unsigned char *)malloc((unsigned)(nch - ncl + 1) * sizeof(unsigned char));
        if (!m[k][i][j])
          exit(20);
        m[k][i][j] -= ncl;
      }
    }
  }
  return m;
}
```