user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<Transpose_SemiNaive_Naive_Pml_Table>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,(%rax)
  movl   $0x1,-0x20(%rbp)
  jmp    L5
L3:
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rbx
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%edi
  call   <TableSize@plt>
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  add    %rbx,%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x20(%rbp)
L5:
  mov    -0x20(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L3
  cmpl   $0x0,-0x30(%rbp)
  jne    L23
  movl   $0x0,-0x1c(%rbp)
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L124
L111:
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x2c(%rbp),%eax
  sub    %ecx,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x18(%rbp),%rax
  add    %rsi,%rax
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x20(%rbp)
L124:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L111
  jmp    L53
L23:
  mov    -0x30(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%edi
  call   <TableSize@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x18(%rbp),%rax
  add    %rsi,%rax
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L89
L20:
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x2c(%rbp),%eax
  sub    %ecx,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x18(%rbp),%rax
  add    %rsi,%rax
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  addl   $0x1,-0x20(%rbp)
L89:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L20
L53:
  movl   $0x0,-0x20(%rbp)
  jmp    L22
L10:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <Transpose_CosPmlTableGen@plt>
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  je     L35
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rbx
  mov    -0x2c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <TableSize@plt>
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  add    %rbx,%rdx
  mov    %rdx,(%rax)
L35:
  addl   $0x1,-0x20(%rbp)
L22:
  mov    -0x20(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L10
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L122
L31:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x40(%rbp),%rcx
  mov    -0x20(%rbp),%esi
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <PmlTableGen@plt>
  addl   $0x1,-0x20(%rbp)
L122:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L31
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  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;
}
```