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

```asm
<sCompRow_to_CompCol>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,%edi
  call   <doubleMalloc@plt>
  mov    %rax,%rdx
  mov    0x10(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x3c(%rbp),%eax
  mov    %eax,%edi
  call   <intMalloc@plt>
  mov    %rax,%rdx
  mov    0x18(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <intMalloc@plt>
  mov    %rax,%rdx
  mov    0x20(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%eax
  mov    %eax,%edi
  call   <intCalloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    $0x0,%r12d
  jmp    L32
L85:
  movslq %r12d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ebx
  jmp    L77
L17:
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  add    $0x1,%ebx
L77:
  movslq %r12d,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,%ebx
  jl     L17
  add    $0x1,%r12d
L32:
  cmp    -0x34(%rbp),%r12d
  jl     L85
  mov    0x20(%rbp),%rax
  mov    (%rax),%rax
  movl   $0x0,(%rax)
  mov    $0x0,%ebx
  jmp    L16
L33:
  mov    0x20(%rbp),%rax
  mov    (%rax),%rdx
  movslq %ebx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    0x20(%rbp),%rax
  mov    (%rax),%rsi
  movslq %ebx,%rax
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    0x20(%rbp),%rax
  mov    (%rax),%rdx
  movslq %ebx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  movslq %ebx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  add    $0x1,%ebx
L16:
  cmp    -0x38(%rbp),%ebx
  jl     L33
  mov    $0x0,%r12d
  jmp    L43
L88:
  movslq %r12d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ebx
  jmp    L62
L52:
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%r13d
  movslq %r13d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%r14d
  mov    0x18(%rbp),%rax
  mov    (%rax),%rdx
  movslq %r14d,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %r12d,(%rax)
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    0x10(%rbp),%rax
  mov    (%rax),%rcx
  movslq %r14d,%rax
  shl    $0x3,%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  movslq %r13d,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  add    $0x1,%ebx
L62:
  movslq %r12d,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,%ebx
  jl     L52
  add    $0x1,%r12d
L43:
  cmp    -0x34(%rbp),%r12d
  jl     L88
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <superlu_free@plt>
  nop
  add    $0x40,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
```

assistant: ```c
void sCompRow_to_CompCol(int m, int n, int nnz, double *a, int *colind, int *rowptr, double **at, int **rowind, int **colptr) {
  register int i, j, col, relpos;
  int *marker;
  *at = (double *)doubleMalloc(nnz);
  *rowind = (int *)intMalloc(nnz);
  *colptr = (int *)intMalloc(n + 1);
  marker = (int *)intCalloc(n);
  for (i = 0; i < m; ++i)
    for (j = rowptr[i]; j < rowptr[i + 1]; ++j)
      ++marker[colind[j]];
  (*colptr)[0] = 0;
  for (j = 0; j < n; ++j) {
    (*colptr)[j + 1] = (*colptr)[j] + marker[j];
    marker[j] = (*colptr)[j];
  }
  for (i = 0; i < m; ++i) {
    for (j = rowptr[i]; j < rowptr[i + 1]; ++j) {
      col = colind[j];
      relpos = marker[col];
      (*rowind)[relpos] = i;
      (*at)[relpos] = a[j];
      ++marker[col];
    }
  }
  superlu_free(marker);
}
```