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

```asm
<get_colamd>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x228,%rsp
  mov    %edi,0x4(%rsp)
  mov    %esi,%ebx
  mov    %edx,%r14d
  mov    %rcx,0x8(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %r9,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  mov    %esi,%edx
  mov    %edi,%esi
  mov    %r14d,%edi
  call   <colamd_recommended@plt>
  mov    %eax,%r15d
  lea    0x70(%rsp),%rdi
  call   <colamd_set_defaults@plt>
  lea    0x0(,%r15,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L115
L76:
  lea    0x4(,%rbx,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L80
L23:
  test   %ebx,%ebx
  js     L127
  lea    0x1(%rbx),%eax
  lea    (%r12,%rax,4),%rsi
  mov    %r12,%rax
  mov    0x8(%rsp),%rcx
  sub    %r12,%rcx
L89:
  mov    (%rcx,%rax,1),%edx
  mov    %edx,(%rax)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L89
L127:
  test   %r14d,%r14d
  jle    L61
  mov    %r14d,%r14d
  lea    0x0(%r13,%r14,4),%rsi
  mov    %r13,%rax
  mov    0x10(%rsp),%rcx
  sub    %r13,%rcx
L78:
  mov    (%rcx,%rax,1),%edx
  mov    %edx,(%rax)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L78
L61:
  sub    $0x8,%rsp
  lea    0x28(%rsp),%rax
  push   %rax
  lea    0x80(%rsp),%r9
  mov    %r12,%r8
  mov    %r13,%rcx
  mov    %r15d,%edx
  mov    %ebx,%esi
  mov    0x14(%rsp),%edi
  call   <colamd@plt>
  add    $0x10,%rsp
  test   %eax,%eax
  je     L36
L46:
  test   %ebx,%ebx
  jle    L55
  mov    %r12,%rdx
  mov    $0x0,%eax
L44:
  movslq (%rdx),%rcx
  mov    %eax,0x0(%rbp,%rcx,4)
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %eax,%ebx
  jne    L44
L55:
  mov    %r13,%rdi
  call   <superlu_free@plt>
  mov    %r12,%rdi
  call   <superlu_free@plt>
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L128
  add    $0x228,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L115:
  lea    0x110(%rsp),%r12
  lea    D36(%rip),%r8
  mov    $0x21,%ecx
  lea    D6(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L76
L80:
  lea    0x110(%rsp),%rax
  lea    D36(%rip),%r8
  mov    $0x23,%ecx
  lea    D3(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %rax,0x18(%rsp)
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    0x18(%rsp),%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L23
L36:
  lea    0x110(%rsp),%r14
  lea    D36(%rip),%r8
  mov    $0x27,%ecx
  lea    D76(%rip),%rdx
  lea    D38(%rip),%rsi
  mov    %r14,%rdi
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L46
L128:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D36
data_type: string
name: disassemble_data
arguments: tag: D6
data_type: string
name: disassemble_data
arguments: tag: D38
data_type: string
name: disassemble_data
arguments: tag: D3
data_type: string
name: disassemble_data
arguments: tag: D76
data_type: string

tool: D36: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Narrat/eispice/refs/heads/master/libs/superlu/SRC/get_perm_c.c

tool: D6: Malloc fails for A[]

tool: D38: %s at line %d in file %s


tool: D3: Malloc fails for p[]

tool: D76: COLAMD failed

assistant: ```c
void get_colamd(const int m, const int n, const int nnz, int *colptr, int *rowind, int *perm_c) {
  int Alen, *A, i, info, *p;
  double knobs[20];
  int stats[20];
  Alen = colamd_recommended(nnz, m, n);
  colamd_set_defaults(knobs);
  if (!(A = (int *)superlu_malloc(Alen * sizeof(int)))) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "Malloc fails for A[]", 33, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Narrat/eispice/refs/heads/master/libs/superlu/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  if (!(p = (int *)superlu_malloc((n + 1) * sizeof(int)))) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "Malloc fails for p[]", 35, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Narrat/eispice/refs/heads/master/libs/superlu/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  for (i = 0; i <= n; ++i)
    p[i] = colptr[i];
  for (i = 0; i < nnz; ++i)
    A[i] = rowind[i];
  info = colamd(m, n, Alen, A, p, knobs, stats);
  if (info == 0) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "COLAMD failed", 39, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Narrat/eispice/refs/heads/master/libs/superlu/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  for (i = 0; i < n; ++i)
    perm_c[p[i]] = i;
  superlu_free(A);
  superlu_free(p);
}
```