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

```asm
<at_plus_a>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x158,%rsp
  mov    %edi,0x30(%rsp)
  mov    0x190(%rsp),%r12
  mov    %rdx,0x10(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r9,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  movslq %edi,%rax
  shl    $0x2,%edi
  mov    %rax,0x28(%rsp)
  call   <superlu_malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L157
L71:
  mov    0x30(%rsp),%eax
  lea    0x4(,%rax,4),%eax
  mov    %eax,%edi
  mov    %eax,0x34(%rsp)
  call   <superlu_malloc@plt>
  mov    %rax,0x8(%rsp)
  test   %rax,%rax
  je     L296
L144:
  lea    0x0(,%r13,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L260
L108:
  mov    0x30(%rsp),%r15d
  test   %r15d,%r15d
  jle    L83
  mov    %r15d,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  shl    $0x2,%rdx
  mov    %rdx,0x38(%rsp)
  call   <memset@plt>
  mov    0x10(%rsp),%rdx
  lea    -0x1(%r15),%eax
  lea    0x4(%rdx),%r14
  lea    0x8(%rdx,%rax,4),%rdi
  mov    0x38(%rsp),%rdx
  mov    %r14,%rsi
L18:
  movslq -0x4(%rsi),%rax
  cmp    %eax,(%rsi)
  jle    L371
  nopl   0x0(%rax,%rax,1)
L382:
  movslq (%rbx,%rax,4),%rcx
  add    $0x1,%rax
  addl   $0x1,0x0(%rbp,%rcx,4)
  cmp    %eax,(%rsi)
  jg     L382
L371:
  add    $0x4,%rsi
  cmp    %rsi,%rdi
  jne    L18
  mov    0x8(%rsp),%rsi
  lea    -0x4(%rbp),%rdi
  xor    %ecx,%ecx
  movl   $0x0,(%rsi)
  lea    0x4(%rsi),%rax
  lea    (%rsi,%rdx,1),%r8
  sub    %rsi,%rdi
  jmp    L42
  nopl   0x0(%rax,%rax,1)
L178:
  mov    (%rax),%ecx
  add    $0x4,%rax
L42:
  lea    (%rdi,%rax,1),%rsi
  add    (%rsi),%ecx
  mov    %ecx,(%rax)
  mov    -0x4(%rax),%ecx
  mov    %ecx,(%rsi)
  cmp    %rax,%r8
  jne    L178
  mov    0x30(%rsp),%r8d
  mov    %r14,%rdi
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L339:
  movslq -0x4(%rdi),%rax
  cmp    (%rdi),%eax
  jge    L309
L252:
  movslq (%rbx,%rax,4),%rcx
  add    $0x1,%rax
  lea    0x0(%rbp,%rcx,4),%rcx
  movslq (%rcx),%rsi
  mov    %r15d,0x0(%r13,%rsi,4)
  addl   $0x1,(%rcx)
  cmp    %eax,(%rdi)
  jg     L252
L309:
  lea    0x1(%r15),%eax
  add    $0x4,%rdi
  cmp    %eax,%r8d
  je     L38
  mov    %eax,%r15d
  jmp    L339
  xchg   %ax,%ax
L38:
  mov    $0xff,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    0x10(%rsp),%rdi
  xor    %esi,%esi
  xor    %eax,%eax
  mov    0x8(%rsp),%rdx
  mov    $0xfffffffffffffffc,%r9
  sub    %rdi,%r9
  lea    0x0(%rbp,%r9,1),%r11
  add    %rdx,%r9
  sub    %rdi,%rdx
  mov    %rdx,%r10
  nopl   0x0(%rax,%rax,1)
L165:
  mov    %eax,(%r11,%r14,1)
  movslq -0x4(%r14),%rdx
  cmp    (%r14),%edx
  jge    L383
  nopl   (%rax)
L31:
  movslq (%rbx,%rdx,4),%rcx
  lea    0x0(%rbp,%rcx,4),%rcx
  cmp    %eax,(%rcx)
  je     L299
  mov    %eax,(%rcx)
  add    $0x1,%esi
L299:
  add    $0x1,%rdx
  cmp    %edx,(%r14)
  jg     L31
L383:
  lea    (%r10,%r14,1),%r8
  mov    (%r9,%r14,1),%edx
  cmp    (%r8),%edx
  jge    L152
  movslq %edx,%rcx
  lea    0x0(%r13,%rcx,4),%rcx
  nopl   0x0(%rax,%rax,1)
L224:
  movslq (%rcx),%rdi
  lea    0x0(%rbp,%rdi,4),%rdi
  cmp    %eax,(%rdi)
  je     L87
  mov    %eax,(%rdi)
  add    $0x1,%esi
L87:
  add    $0x1,%edx
  add    $0x4,%rcx
  cmp    %edx,(%r8)
  jg     L224
L152:
  lea    0x1(%rax),%edx
  add    $0x4,%r14
  cmp    %eax,%r15d
  je     L58
  mov    %edx,%eax
  jmp    L165
L83:
  mov    0x8(%rsp),%rax
  xor    %esi,%esi
  movl   $0x0,(%rax)
  nopw   0x0(%rax,%rax,1)
L58:
  mov    0x18(%rsp),%rax
  mov    0x34(%rsp),%edi
  mov    %esi,(%rax)
  call   <superlu_malloc@plt>
  mov    0x20(%rsp),%rsi
  mov    %rax,(%rsi)
  test   %rax,%rax
  je     L23
L322:
  mov    0x18(%rsp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L113
L258:
  mov    0x20(%rsp),%rax
  mov    (%rax),%r15
  mov    0x30(%rsp),%eax
  mov    %r15,0x18(%rsp)
  test   %eax,%eax
  jle    L264
  mov    0x28(%rsp),%rax
  mov    $0xff,%esi
  mov    %rbp,%rdi
  mov    %rbp,%r14
  lea    0x0(,%rax,4),%rdx
  call   <memset@plt>
  mov    0x8(%rsp),%rsi
  xor    %eax,%eax
  xor    %edx,%edx
  mov    0x10(%rsp),%r9
  mov    %rsi,%r8
  sub    %rsi,%r15
  sub    %rsi,%r14
  add    $0x4,%r9
  nopl   0x0(%rax)
L200:
  mov    %eax,(%r15,%r8,1)
  mov    %edx,(%r14,%r8,1)
  movslq -0x4(%r9),%rcx
  cmp    (%r9),%ecx
  jge    L146
  nopl   0x0(%rax)
L373:
  movslq (%rbx,%rcx,4),%rdi
  mov    %rdi,%rsi
  lea    0x0(%rbp,%rdi,4),%rdi
  cmp    %edx,(%rdi)
  je     L192
  mov    %edx,(%rdi)
  mov    (%r12),%rdi
  movslq %eax,%r10
  add    $0x1,%eax
  mov    %esi,(%rdi,%r10,4)
L192:
  add    $0x1,%rcx
  cmp    %ecx,(%r9)
  jg     L373
L146:
  mov    (%r8),%ecx
  add    $0x4,%r8
  cmp    (%r8),%ecx
  jge    L257
  movslq %ecx,%rsi
  lea    0x0(%r13,%rsi,4),%rsi
  nopl   (%rax)
L287:
  movslq (%rsi),%r10
  mov    %r10,%rdi
  lea    0x0(%rbp,%r10,4),%r10
  cmp    %edx,(%r10)
  je     L194
  mov    %edx,(%r10)
  mov    (%r12),%r10
  movslq %eax,%r11
  add    $0x1,%eax
  mov    %edi,(%r10,%r11,4)
L194:
  add    $0x1,%ecx
  add    $0x4,%rsi
  cmp    %ecx,(%r8)
  jg     L287
L257:
  add    $0x1,%edx
  add    $0x4,%r9
  cmp    %edx,0x30(%rsp)
  jne    L200
L385:
  mov    0x18(%rsp),%rbx
  mov    0x28(%rsp),%rsi
  mov    %rbp,%rdi
  mov    %eax,(%rbx,%rsi,4)
  call   <superlu_free@plt>
  mov    0x8(%rsp),%rdi
  call   <superlu_free@plt>
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L377
  add    $0x158,%rsp
  mov    %r13,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10e0 <superlu_free@plt>
L157:
  lea    0x40(%rsp),%r14
  lea    D56(%rip),%r8
  mov    $0xdb,%ecx
  mov    %r14,%rdi
  lea    D7(%rip),%rdx
  lea    D78(%rip),%rsi
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L71
L113:
  lea    0x0(,%rax,4),%edi
  call   <superlu_malloc@plt>
  mov    %rax,(%r12)
  test   %rax,%rax
  jne    L258
  lea    0x40(%rsp),%r14
  lea    D56(%rip),%r8
  mov    $0x121,%ecx
  mov    %r14,%rdi
  lea    D106(%rip),%rdx
  lea    D78(%rip),%rsi
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L258
L260:
  lea    0x40(%rsp),%r14
  lea    D56(%rip),%r8
  mov    $0xdf,%ecx
  mov    %r14,%rdi
  lea    D17(%rip),%rdx
  lea    D78(%rip),%rsi
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L108
L296:
  lea    0x40(%rsp),%r14
  lea    D56(%rip),%r8
  mov    $0xdd,%ecx
  mov    %r14,%rdi
  lea    D48(%rip),%rdx
  lea    D78(%rip),%rsi
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L144
L23:
  lea    0x40(%rsp),%r14
  lea    D56(%rip),%r8
  mov    $0x11e,%ecx
  mov    %r14,%rdi
  lea    D86(%rip),%rdx
  lea    D78(%rip),%rsi
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <superlu_abort_and_exit@plt>
  jmp    L322
L264:
  xor    %eax,%eax
  jmp    L385
L377:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D56
type: string
name: unpack_data
arguments: tag: D7
type: string
name: unpack_data
arguments: tag: D78
type: string
name: unpack_data
arguments: tag: D106
type: string
name: unpack_data
arguments: tag: D17
type: string
name: unpack_data
arguments: tag: D48
type: string
name: unpack_data
arguments: tag: D86
type: string

tool: D56: /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: D7: SUPERLU_MALLOC fails for marker[]

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


tool: D106: SUPERLU_MALLOC fails for b_rowind[]

tool: D17: SUPERLU_MALLOC fails t_rowind[]

tool: D48: SUPERLU_MALLOC fails for t_colptr[]

tool: D86: SUPERLU_MALLOC fails for b_colptr[]

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);
}
```