user: What would the C source look like for the assembly code provided here:

```asm
<Transpose_SemiNaive_Naive_Pml_Table>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %esi,%ebx
  mov    %edx,%ebp
  mov    %rcx,%r12
  mov    %r8,0x8(%rsp)
  lea    0x8(,%rsi,8),%edi
  call   <malloc@plt>
  mov    %rax,0x10(%rsp)
  mov    %r12,(%rax)
  cmp    $0x1,%ebp
  jle    L128
  mov    %rax,%r13
  lea    -0x1(%rbp),%r15d
  mov    $0x0,%r12d
L93:
  mov    0x0(%r13),%r14
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <TableSize@plt>
  add    $0x8,%r13
  cltq
  lea    (%r14,%rax,8),%rax
  mov    %rax,0x0(%r13)
  add    $0x1,%r12
  cmp    %r15,%r12
  jne    L93
L113:
  lea    -0x1(%rbp),%edi
  mov    %ebx,%esi
  call   <TableSize@plt>
  movslq %ebp,%rdx
  lea    0x0(,%rdx,8),%rsi
  movslq %eax,%rcx
  mov    0x10(%rsp),%r9
  mov    -0x8(%r9,%rsi,1),%rax
  lea    (%rax,%rcx,8),%rax
  mov    %rax,(%r9,%rdx,8)
  lea    0x1(%rbp),%eax
  cmp    %eax,%ebx
  jle    L120
  lea    (%rsi,%r9,1),%rax
  mov    %ebx,%esi
  neg    %esi
  add    %esi,%esi
  movslq %esi,%rsi
  shl    $0x3,%rsi
  mov    %ebx,%ecx
  sub    %ebp,%ecx
  imul   %ebx,%ecx
  add    %ecx,%ecx
  movslq %ecx,%rcx
  shl    $0x3,%rcx
  mov    %ebx,%edi
  sub    %ebp,%edi
  lea    -0x2(%rdi),%edi
  lea    0x1(%rdx,%rdi,1),%rdx
  lea    (%r9,%rdx,8),%rdi
L74:
  mov    (%rax),%rdx
  add    $0x8,%rax
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  add    %rsi,%rcx
  cmp    %rdi,%rax
  jne    L74
L120:
  test   %ebp,%ebp
  jle    L83
  mov    0x10(%rsp),%rax
  mov    %rax,%r13
  mov    $0x0,%r12d
  mov    0x18(%rsp),%r14
  sub    %rax,%r14
  jmp    L148
L128:
  test   %ebp,%ebp
  jne    L113
  cmp    $0x1,%ebx
  jle    L83
  mov    0x10(%rsp),%rdi
  mov    %rdi,%rax
  mov    %ebx,%esi
  neg    %esi
  add    %esi,%esi
  movslq %esi,%rsi
  shl    $0x3,%rsi
  mov    %ebx,%ecx
  imul   %ebx,%ecx
  add    %ecx,%ecx
  movslq %ecx,%rcx
  shl    $0x3,%rcx
  lea    -0x1(%rbx),%edx
  lea    (%rdi,%rdx,8),%rdi
L7:
  mov    (%rax),%rdx
  add    $0x8,%rax
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  add    %rsi,%rcx
  cmp    %rdi,%rax
  jne    L7
  jmp    L116
L49:
  add    $0x1,%r12d
  add    $0x8,%r13
  cmp    %r12d,%ebp
  je     L83
L148:
  mov    (%r14,%r13,1),%rdx
  mov    0x0(%r13),%rcx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <Transpose_CosPmlTableGen@plt>
  lea    -0x1(%rbx),%eax
  cmp    %r12d,%eax
  je     L49
  mov    0x0(%r13),%r15
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <TableSize@plt>
  cltq
  lea    (%r15,%rax,8),%rax
  mov    %rax,0x8(%r13)
  jmp    L49
L83:
  cmp    %ebp,%ebx
  jle    L17
L116:
  movslq %ebp,%rax
  mov    0x10(%rsp),%rcx
  lea    (%rcx,%rax,8),%r12
L53:
  mov    0x8(%rsp),%rcx
  mov    (%r12),%rdx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <PmlTableGen@plt>
  add    $0x1,%ebp
  add    $0x8,%r12
  cmp    %ebp,%ebx
  jne    L53
L17:
  mov    0x10(%rsp),%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
double **Transpose_SemiNaive_Naive_Pml_Table(double **seminaive_naive_pml_table, int bw, int m, double *resultspace, double *workspace) {
  int i, lastspace;
  double **trans_seminaive_naive_pml_table;
  trans_seminaive_naive_pml_table = (double **)malloc(sizeof(double *) * (bw + 1));
  trans_seminaive_naive_pml_table[0] = resultspace;
  for (i = 1; i < m; i++) {
    trans_seminaive_naive_pml_table[i] = trans_seminaive_naive_pml_table[i - 1] + TableSize(i - 1, bw);
  }
  if (m == 0) {
    lastspace = 0;
    for (i = m + 1; i < bw; i++) {
      trans_seminaive_naive_pml_table[i] = trans_seminaive_naive_pml_table[i - 1] + (2 * bw * (bw - (i - 1)));
    }
  } else {
    lastspace = TableSize(m - 1, bw);
    trans_seminaive_naive_pml_table[m] = trans_seminaive_naive_pml_table[m - 1] + lastspace;
    for (i = m + 1; i < bw; i++) {
      trans_seminaive_naive_pml_table[i] = trans_seminaive_naive_pml_table[i - 1] + (2 * bw * (bw - (i - 1)));
    }
  }
  for (i = 0; i < m; i++) {
    Transpose_CosPmlTableGen(bw, i, seminaive_naive_pml_table[i], trans_seminaive_naive_pml_table[i]);
    if (i != (bw - 1)) {
      trans_seminaive_naive_pml_table[i + 1] = trans_seminaive_naive_pml_table[i] + TableSize(i, bw);
    }
  }
  for (i = m; i < bw; i++) {
    PmlTableGen(bw, i, trans_seminaive_naive_pml_table[i], workspace);
  }
  return trans_seminaive_naive_pml_table;
}
```