user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<at_plus_a>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x158,%rsp
  mov    %edi,%r14d
  mov    %esi,%r13d
  mov    %rdx,0x8(%rsp)
  mov    %rcx,%rbp
  mov    %r8,0x10(%rsp)
  mov    %r9,0x28(%rsp)
  mov    0x190(%rsp),%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  movslq %edi,%rax
  mov    %rax,0x30(%rsp)
  lea    0x0(,%rdi,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L366
L407:
  lea    0x4(,%r14,4),%eax
  mov    %eax,0x18(%rsp)
  mov    %eax,%edi
  call   <superlu_malloc@plt>
  mov    %rax,0x20(%rsp)
  test   %rax,%rax
  je     L423
L41:
  lea    0x0(,%r13,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L381
L454:
  test   %r14d,%r14d
  jle    L172
  lea    -0x1(%r14),%ecx
  shl    $0x2,%rcx
  lea    0x4(%rcx),%rdi
  lea    (%rdi,%rbx,1),%rdx
  mov    %rbx,%rax
L267:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L267
  mov    0x8(%rsp),%rax
  lea    0x4(%rax),%r10
  lea    0x8(%rax,%rcx,1),%r8
  mov    %r10,%rsi
L1:
  mov    %rsi,%rcx
  mov    -0x4(%rsi),%eax
  cmp    (%rsi),%eax
  jge    L166
  cltq
L427:
  movslq 0x0(%rbp,%rax,4),%rdx
  addl   $0x1,(%rbx,%rdx,4)
  add    $0x1,%rax
  cmp    %eax,(%rcx)
  jg     L427
L166:
  add    $0x4,%rsi
  cmp    %r8,%rsi
  jne    L1
  mov    0x20(%rsp),%rsi
  mov    %rsi,%rax
  movl   $0x0,(%rsi)
  add    %rsi,%rdi
  mov    %rbx,%r8
  sub    %rsi,%r8
L485:
  mov    %rax,%rsi
  lea    (%r8,%rax,1),%rcx
  add    $0x4,%rax
  mov    (%rcx),%edx
  add    (%rsi),%edx
  mov    %edx,(%rax)
  mov    (%rsi),%edx
  mov    %edx,(%rcx)
  cmp    %rdi,%rax
  jne    L485
  mov    %r10,%rdi
  mov    $0x0,%r8d
  jmp    L217
L366:
  lea    0x40(%rsp),%r15
  lea    D40(%rip),%r8
  mov    $0xdb,%ecx
  lea    D69(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %r15,%rdi
  call   <sprintf@plt>
  mov    %r15,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L407
L423:
  lea    0x40(%rsp),%r15
  lea    D40(%rip),%r8
  mov    $0xdd,%ecx
  lea    D90(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %r15,%rdi
  call   <sprintf@plt>
  mov    %r15,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L41
L381:
  lea    0x40(%rsp),%r15
  lea    D40(%rip),%r8
  mov    $0xdf,%ecx
  lea    D28(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %r15,%rdi
  call   <sprintf@plt>
  mov    %r15,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L454
L337:
  mov    %eax,%r8d
L217:
  mov    %rdi,%rsi
  mov    -0x4(%rdi),%eax
  cmp    (%rdi),%eax
  jge    L480
  cltq
L70:
  movslq 0x0(%rbp,%rax,4),%rdx
  lea    (%rbx,%rdx,4),%rdx
  movslq (%rdx),%rcx
  mov    %r8d,0x0(%r13,%rcx,4)
  addl   $0x1,(%rdx)
  add    $0x1,%rax
  cmp    %eax,(%rsi)
  jg     L70
L480:
  lea    0x1(%r8),%eax
  add    $0x4,%rdi
  cmp    %eax,%r14d
  jne    L337
  mov    %r8d,%eax
  lea    0x4(%rbx,%rax,4),%rdx
  mov    %rbx,%rax
L400:
  movl   $0xffffffff,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L400
  mov    $0x0,%esi
  mov    $0x0,%eax
  mov    $0xfffffffffffffffc,%r11
  mov    0x8(%rsp),%rdi
  sub    %rdi,%r11
  mov    0x20(%rsp),%rcx
  mov    %rcx,%r15
  sub    %rdi,%r15
  mov    %r14d,0x3c(%rsp)
  mov    %rcx,%r14
  jmp    L298
L10:
  mov    %eax,(%rcx)
  add    $0x1,%esi
L93:
  add    $0x1,%rdx
  cmp    %edx,(%rdi)
  jle    L388
L380:
  movslq 0x0(%rbp,%rdx,4),%rcx
  lea    (%rbx,%rcx,4),%rcx
  cmp    %eax,(%rcx)
  jne    L10
  jmp    L93
L388:
  lea    (%r10,%r11,1),%rdx
  mov    (%rdx,%r14,1),%edx
  lea    (%r15,%r10,1),%r9
  cmp    (%r9),%edx
  jge    L206
  movslq %edx,%rcx
  lea    0x0(%r13,%rcx,4),%rcx
  jmp    L271
L382:
  mov    %eax,(%rdi)
  add    $0x1,%esi
L63:
  add    $0x1,%edx
  add    $0x4,%rcx
  cmp    %edx,(%r9)
  jle    L206
L271:
  movslq (%rcx),%rdi
  lea    (%rbx,%rdi,4),%rdi
  cmp    %eax,(%rdi)
  jne    L382
  jmp    L63
L206:
  lea    0x1(%rax),%edx
  add    $0x4,%r10
  cmp    %eax,%r8d
  je     L341
  mov    %edx,%eax
L298:
  lea    (%r10,%r11,1),%rdx
  mov    %eax,(%rdx,%rbx,1)
  mov    %r10,%rdi
  mov    -0x4(%r10),%edx
  cmp    (%r10),%edx
  jge    L388
  movslq %edx,%rdx
  jmp    L380
L341:
  mov    0x3c(%rsp),%r14d
L416:
  mov    0x10(%rsp),%rax
  mov    %esi,(%rax)
  mov    0x18(%rsp),%edi
  call   <superlu_malloc@plt>
  mov    0x28(%rsp),%rsi
  mov    %rax,(%rsi)
  test   %rax,%rax
  je     L15
L266:
  mov    0x10(%rsp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L11
L434:
  test   %r14d,%r14d
  jle    L394
  mov    %r14d,%eax
  lea    (%rbx,%rax,4),%rdx
  mov    %rbx,%rax
L312:
  movl   $0xffffffff,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L312
  mov    0x8(%rsp),%r15
  add    $0x4,%r15
  mov    %r14d,%eax
  mov    %rax,0x8(%rsp)
  mov    0x20(%rsp),%rcx
  mov    %rcx,%r14
  mov    $0x0,%esi
  mov    $0x0,%eax
  mov    %rbx,%rdi
  sub    %rcx,%rdi
  mov    %rdi,0x10(%rsp)
  mov    %r13,0x18(%rsp)
  mov    0x28(%rsp),%r13
  jmp    L487
L15:
  lea    0x40(%rsp),%r15
  lea    D40(%rip),%r8
  mov    $0x11e,%ecx
  lea    D21(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %r15,%rdi
  call   <sprintf@plt>
  mov    %r15,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L266
L11:
  lea    0x0(,%rax,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,(%r12)
  test   %rax,%rax
  jne    L434
  lea    0x40(%rsp),%r15
  lea    D40(%rip),%r8
  mov    $0x121,%ecx
  lea    D24(%rip),%rdx
  lea    D60(%rip),%rsi
  mov    %r15,%rdi
  call   <sprintf@plt>
  mov    %r15,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L434
L265:
  mov    %r8d,(%rdi)
  movslq %eax,%r9
  mov    (%r12),%rdi
  mov    %ecx,(%rdi,%r9,4)
  lea    0x1(%rax),%eax
L171:
  add    $0x1,%rdx
  cmp    %edx,(%r10)
  jle    L185
L253:
  mov    0x0(%rbp,%rdx,4),%ecx
  movslq %ecx,%rdi
  lea    (%rbx,%rdi,4),%rdi
  cmp    %esi,(%rdi)
  jne    L265
  jmp    L171
L185:
  mov    (%r14),%edx
  add    $0x4,%r14
  mov    %r14,%r11
  cmp    (%r14),%edx
  jge    L374
  movslq %edx,%rcx
  mov    0x18(%rsp),%rdi
  lea    (%rdi,%rcx,4),%rcx
  jmp    L326
L424:
  mov    %r8d,(%r9)
  movslq %eax,%r10
  mov    (%r12),%r9
  mov    %edi,(%r9,%r10,4)
  lea    0x1(%rax),%eax
L66:
  add    $0x1,%edx
  add    $0x4,%rcx
  cmp    %edx,(%r11)
  jle    L374
L326:
  mov    (%rcx),%edi
  movslq %edi,%r9
  lea    (%rbx,%r9,4),%r9
  cmp    %esi,(%r9)
  jne    L424
  jmp    L66
L374:
  add    $0x1,%rsi
  add    $0x4,%r15
  cmp    0x8(%rsp),%rsi
  je     L39
L487:
  mov    %esi,%r8d
  mov    0x0(%r13),%rdx
  mov    %eax,(%rdx,%rsi,4)
  mov    0x10(%rsp),%rcx
  mov    %esi,(%rcx,%r14,1)
  mov    %r15,%r10
  mov    -0x4(%r15),%edx
  cmp    (%r15),%edx
  jge    L185
  movslq %edx,%rdx
  jmp    L253
L39:
  mov    0x18(%rsp),%r13
L152:
  mov    0x28(%rsp),%rsi
  mov    (%rsi),%rdx
  mov    0x30(%rsp),%rsi
  mov    %eax,(%rdx,%rsi,4)
  mov    %rbx,%rdi
  call   <superlu_free@plt>
  mov    0x20(%rsp),%rdi
  call   <superlu_free@plt>
  mov    %r13,%rdi
  call   <superlu_free@plt>
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L301
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L394:
  mov    $0x0,%eax
  jmp    L152
L172:
  mov    0x20(%rsp),%rax
  movl   $0x0,(%rax)
  mov    $0x0,%esi
  jmp    L416
L301:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D40
type: string
name: unpack_data
arguments: data_tag: D69
type: string
name: unpack_data
arguments: data_tag: D60
type: string
name: unpack_data
arguments: data_tag: D90
type: string
name: unpack_data
arguments: data_tag: D28
type: string
name: unpack_data
arguments: data_tag: D21
type: string
name: unpack_data
arguments: data_tag: D24
type: string

tool: D40: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dilawar/sesc/refs/heads/master/src/libsesctherm/SuperLU_MT/SRC/get_perm_c.c

tool: D69: SUPERLU_MALLOC fails for marker[]

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


tool: D90: SUPERLU_MALLOC fails for t_colptr[]

tool: D28: SUPERLU_MALLOC fails t_rowind[]

tool: D21: SUPERLU_MALLOC fails for b_colptr[]

tool: D24: SUPERLU_MALLOC fails for b_rowind[]

assistant: ```c
void at_plus_a(const int n, const int nz, int *colptr, int *rowind, int *bnz, int **b_colptr, int **b_rowind) {
  register int i, j, k, col, num_nz;
  int *t_colptr, *t_rowind;
  int *marker;
  if (!(marker = (int *)superlu_malloc(n * sizeof(int)))) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "SUPERLU_MALLOC fails for marker[]", 219, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dilawar/sesc/refs/heads/master/src/libsesctherm/SuperLU_MT/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  if (!(t_colptr = (int *)superlu_malloc((n + 1) * sizeof(int)))) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "SUPERLU_MALLOC fails for t_colptr[]", 221, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dilawar/sesc/refs/heads/master/src/libsesctherm/SuperLU_MT/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  if (!(t_rowind = (int *)superlu_malloc(nz * sizeof(int)))) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "SUPERLU_MALLOC fails t_rowind[]", 223, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dilawar/sesc/refs/heads/master/src/libsesctherm/SuperLU_MT/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  for (i = 0; i < n; ++i)
    marker[i] = 0;
  for (j = 0; j < n; ++j) {
    for (i = colptr[j]; i < colptr[j + 1]; ++i)
      ++marker[rowind[i]];
  }
  t_colptr[0] = 0;
  for (i = 0; i < n; ++i) {
    t_colptr[i + 1] = t_colptr[i] + marker[i];
    marker[i] = t_colptr[i];
  }
  for (j = 0; j < n; ++j)
    for (i = colptr[j]; i < colptr[j + 1]; ++i) {
      col = rowind[i];
      t_rowind[marker[col]] = j;
      ++marker[col];
    }
  for (i = 0; i < n; ++i)
    marker[i] = -1;
  num_nz = 0;
  for (j = 0; j < n; ++j) {
    marker[j] = j;
    for (i = colptr[j]; i < colptr[j + 1]; ++i) {
      k = rowind[i];
      if (marker[k] != j) {
        marker[k] = j;
        ++num_nz;
      }
    }
    for (i = t_colptr[j]; i < t_colptr[j + 1]; ++i) {
      k = t_rowind[i];
      if (marker[k] != j) {
        marker[k] = j;
        ++num_nz;
      }
    }
  }
  *bnz = num_nz;
  if (!(*b_colptr = (int *)superlu_malloc((n + 1) * sizeof(int)))) {
    char msg[256];
    sprintf(msg, "%s at line %d in file %s\n", "SUPERLU_MALLOC fails for b_colptr[]", 286, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dilawar/sesc/refs/heads/master/src/libsesctherm/SuperLU_MT/SRC/get_perm_c.c");
    superlu_abort_and_exit(msg);
  };
  if (*bnz) {
    if (!(*b_rowind = (int *)superlu_malloc(*bnz * sizeof(int)))) {
      char msg[256];
      sprintf(msg, "%s at line %d in file %s\n", "SUPERLU_MALLOC fails for b_rowind[]", 289, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dilawar/sesc/refs/heads/master/src/libsesctherm/SuperLU_MT/SRC/get_perm_c.c");
      superlu_abort_and_exit(msg);
    };
  }
  for (i = 0; i < n; ++i)
    marker[i] = -1;
  num_nz = 0;
  for (j = 0; j < n; ++j) {
    (*b_colptr)[j] = num_nz;
    marker[j] = j;
    for (i = colptr[j]; i < colptr[j + 1]; ++i) {
      k = rowind[i];
      if (marker[k] != j) {
        marker[k] = j;
        (*b_rowind)[num_nz++] = k;
      }
    }
    for (i = t_colptr[j]; i < t_colptr[j + 1]; ++i) {
      k = t_rowind[i];
      if (marker[k] != j) {
        marker[k] = j;
        (*b_rowind)[num_nz++] = k;
      }
    }
  }
  (*b_colptr)[n] = num_nz;
  superlu_free(marker);
  superlu_free(t_colptr);
  superlu_free(t_rowind);
}
```