user: 请将以下的汇编代码转换成C语言代码:

```asm
<genWigAllTrans>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,%ebx
  mov    %rsi,%rbp
  mov    %rdx,%rsi
  lea    (%rdi,%rdi,1),%edi
  mov    %edi,%r14d
  mov    %edi,0x30(%rsp)
  movslq %edi,%rax
  shl    $0x3,%rax
  lea    (%rdx,%rax,1),%r12
  mov    %r12,0x10(%rsp)
  lea    (%r12,%rax,1),%rcx
  mov    %rcx,(%rsp)
  lea    (%rcx,%rax,1),%r15
  lea    (%r15,%rax,1),%r13
  mov    %rdx,0x8(%rsp)
  call   <SinEvalPts@plt>
  mov    %r12,%rsi
  mov    %r14d,%edi
  call   <CosEvalPts@plt>
  mov    (%rsp),%rsi
  mov    %r14d,%edi
  call   <SinEvalPts2@plt>
  mov    %r15,%rsi
  mov    %r14d,%edi
  call   <CosEvalPts2@plt>
  sub    $0x8,%rsp
  push   %r13
  push   %rbp
  push   %r15
  mov    0x20(%rsp),%r9
  mov    %r12,%r8
  mov    0x28(%rsp),%rcx
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <genWigTrans_L2@plt>
  mov    %r14d,%edx
  imul   %ebx,%edx
  movslq %edx,%rax
  lea    0x0(%rbp,%rax,8),%rbp
  add    $0x20,%rsp
  cmp    $0x1,%ebx
  jle    L29
  mov    %r14d,%eax
  neg    %eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x28(%rsp)
  sub    %r14d,%edx
  mov    %edx,0x18(%rsp)
  movslq %edx,%rax
  lea    0x0(,%rax,8),%r12
  mov    $0x1,%r14d
  mov    %r12,0x20(%rsp)
L19:
  sub    $0x8,%rsp
  push   %r13
  push   %rbp
  push   %r15
  mov    0x20(%rsp),%r9
  mov    0x30(%rsp),%r8
  mov    0x28(%rsp),%rcx
  mov    %ebx,%edx
  mov    %r14d,%esi
  mov    %r14d,%edi
  call   <genWigTrans_L2@plt>
  add    %r12,%rbp
  mov    %r14d,%eax
  add    $0x1,%r14d
  add    0x48(%rsp),%r12
  add    $0x20,%rsp
  cmp    %r14d,%ebx
  jne    L19
  mov    0x20(%rsp),%r12
  mov    %eax,0x34(%rsp)
  mov    $0x1,%ebx
L6:
  sub    $0x8,%rsp
  push   %r13
  push   %rbp
  push   %r15
  mov    0x20(%rsp),%r9
  mov    0x30(%rsp),%r8
  mov    0x28(%rsp),%rcx
  mov    %r14d,%edx
  mov    $0x0,%esi
  mov    %ebx,%edi
  call   <genWigTrans_L2@plt>
  add    %r12,%rbp
  mov    %ebx,%eax
  add    $0x1,%ebx
  add    0x48(%rsp),%r12
  add    $0x20,%rsp
  cmp    %eax,0x34(%rsp)
  jne    L6
  mov    0x18(%rsp),%eax
  mov    0x30(%rsp),%esi
  sub    %esi,%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x38(%rsp)
  mov    %esi,%eax
  neg    %eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x18(%rsp)
  movl   $0x1,0x30(%rsp)
  mov    %r14d,0x20(%rsp)
  mov    0x34(%rsp),%r14d
L57:
  mov    0x30(%rsp),%eax
  lea    0x1(%rax),%ebx
  mov    %ebx,0x34(%rsp)
  cmp    %eax,%r14d
  je     L29
  mov    0x38(%rsp),%r12
L38:
  sub    $0x8,%rsp
  push   %r13
  push   %rbp
  push   %r15
  mov    0x20(%rsp),%r9
  mov    0x30(%rsp),%r8
  mov    0x28(%rsp),%rcx
  mov    0x40(%rsp),%edx
  mov    %ebx,%esi
  mov    0x50(%rsp),%edi
  call   <genWigTrans_L2@plt>
  add    %r12,%rbp
  mov    %ebx,%eax
  add    $0x1,%ebx
  add    0x38(%rsp),%r12
  add    $0x20,%rsp
  cmp    %eax,%r14d
  jne    L38
  mov    0x28(%rsp),%rdx
  add    %rdx,0x38(%rsp)
  mov    0x34(%rsp),%eax
  mov    %eax,0x30(%rsp)
  jmp    L57
L29:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void genWigAllTrans(int bw, double *wigners, double *workspace) {
  int m1, m2, n;
  double *sinPts, *cosPts;
  double *sinPts2, *cosPts2;
  double *scratch;
  n = 2 * bw;
  sinPts = workspace;
  cosPts = sinPts + n;
  sinPts2 = cosPts + n;
  cosPts2 = sinPts2 + n;
  scratch = cosPts2 + n;
  SinEvalPts(n, sinPts);
  CosEvalPts(n, cosPts);
  SinEvalPts2(n, sinPts2);
  CosEvalPts2(n, cosPts2);
  genWigTrans_L2(0, 0, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
  wigners += bw * n;
  for (m1 = 1; m1 < bw; m1++) {
    genWigTrans_L2(m1, m1, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
    wigners += n * (bw - m1);
  }
  for (m1 = 1; m1 < bw; m1++) {
    genWigTrans_L2(m1, 0, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
    wigners += n * (bw - m1);
  }
  for (m1 = 1; m1 < bw; m1++)
    for (m2 = m1 + 1; m2 < bw; m2++) {
      genWigTrans_L2(m1, m2, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
      wigners += n * (bw - m2);
    }
}
```