user: Translate the below assembly code into C programming language:

```asm
<all_mu_comp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x28(%rsp)
  mov    %esi,%r14d
  mov    %edx,%r15d
  mov    %ecx,%ebp
  mov    %r8d,0x34(%rsp)
  mov    %r9,0x38(%rsp)
  mov    0x90(%rsp),%r12
  mov    %esi,%ebx
  imul   %edx,%ebx
  movslq %ebx,%rbx
  mov    $0x8,%esi
  mov    %rbx,%rdi
  call   <calloc@plt>
  mov    %rax,0x8(%rsp)
  mov    $0x8,%esi
  mov    %rbx,%rdi
  call   <calloc@plt>
  mov    %rax,%r13
  mov    %r14d,%edi
  imul   %ebp,%edi
  movslq %edi,%rdi
  mov    $0x8,%esi
  call   <calloc@plt>
  mov    %rax,%rbx
  mov    %r14d,0x30(%rsp)
  movslq %r14d,%r14
  mov    $0x4,%esi
  mov    %r14,%rdi
  call   <calloc@plt>
  mov    %rax,0x10(%rsp)
  mov    0x30(%rsp),%edi
  test   %edi,%edi
  jle    L141
  mov    %edi,%edx
  lea    (%rax,%rdx,4),%rdx
L111:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L111
L141:
  mov    $0x4,%esi
  mov    %r14,%rdi
  call   <calloc@plt>
  mov    %rax,0x18(%rsp)
  mov    $0x4,%esi
  mov    %r14,%rdi
  call   <calloc@plt>
  mov    0x34(%rsp),%edi
  lea    -0x1(%rdi),%esi
  sub    $0x8,%rsp
  push   %r13
  mov    %rax,0x30(%rsp)
  push   %rax
  mov    0x48(%rsp),%r14d
  push   %r14
  mov    0x30(%rsp),%r9
  mov    %r14d,%r8d
  mov    0x48(%rsp),%rcx
  mov    %r15d,%edx
  mov    0xa0(%rsp),%rdi
  mov    $0x0,%eax
  call   <spline_basis@plt>
  add    $0x18,%rsp
  push   0x10(%rsp)
  push   0x28(%rsp)
  push   %r14
  mov    0x30(%rsp),%r9
  mov    %r14d,%r8d
  mov    0x48(%rsp),%rcx
  mov    %r15d,%edx
  mov    0x54(%rsp),%esi
  mov    0x58(%rsp),%rdi
  mov    $0x0,%eax
  call   <spline_basis@plt>
  add    $0x20,%rsp
  test   %r15d,%r15d
  jle    L60
  mov    %r15d,%ecx
  mov    0x20(%rsp),%rax
  movslq (%rax),%rax
  lea    (%rbx,%rax,8),%rdx
  mov    $0x0,%eax
L18:
  movsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L18
L60:
  mov    0x30(%rsp),%eax
  cmp    $0x1,%eax
  jle    L112
  mov    0x18(%rsp),%rcx
  lea    0x4(%rcx),%rdi
  lea    -0x2(%rax),%eax
  lea    0x8(%rcx,%rax,4),%r10
  mov    %ebp,%r9d
  mov    %r15d,%r8d
  mov    %r15d,%edx
  mov    0x8(%rsp),%r11
  jmp    L74
L131:
  test   %r15d,%r15d
  jle    L179
  movslq %r8d,%rcx
  lea    (%r11,%rcx,8),%rsi
  add    %r9d,%eax
  cltq
  lea    (%rbx,%rax,8),%rcx
  mov    $0x0,%eax
L205:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,-0x8(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L205
L179:
  add    $0x4,%rdi
  add    %r15d,%r8d
  add    %ebp,%r9d
  cmp    %r10,%rdi
  je     L7
L74:
  mov    (%rdi),%eax
  test   %eax,%eax
  jne    L131
  cmp    $0x1,%r15d
  jle    L179
  movslq %r8d,%rax
  lea    (%r11,%rax,8),%rsi
  movslq %r9d,%rax
  lea    (%rbx,%rax,8),%rcx
  mov    $0x1,%eax
L155:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,-0x8(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L155
  jmp    L179
L112:
  cmpl   $0x1,0x30(%rsp)
  jne    L37
L7:
  mov    $0x0,%r15d
  movslq %ebp,%r14
  mov    %r13,0x28(%rsp)
  mov    0x88(%rsp),%r13
  jmp    L115
L110:
  lea    0x1(%r15),%edx
  mov    %edx,%eax
  imul   %r15d,%eax
  mov    %eax,%r11d
  shr    $0x1f,%r11d
  add    %eax,%r11d
  sar    %r11d
  mov    %r11d,%r8d
  add    %edx,%r11d
  imul   %ebp,%eax
  mov    %eax,%edx
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cltq
  lea    0x0(%r13,%rax,8),%rsi
  mov    %ebp,%edi
  mov    $0x0,%r10d
  mov    $0x0,%r9d
L177:
  mov    %edi,%ecx
  cmp    %r9d,%edi
  jle    L204
  movslq %r8d,%rax
  lea    (%r12,%rax,8),%rdx
  mov    %r10,%rax
L103:
  movsd  (%rbx,%rax,8),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L103
L204:
  add    %ebp,%r9d
  add    %ebp,%edi
  add    %r14,%r10
  add    $0x1,%r8d
  cmp    %r11d,%r8d
  jne    L177
L90:
  add    $0x1,%r15d
  cmp    %r15d,0x30(%rsp)
  jle    L108
L115:
  test   %r15d,%r15d
  jns    L110
  jmp    L90
L108:
  mov    0x28(%rsp),%r13
L37:
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void all_mu_comp(double *eta, int p, int order, int m, int nknots, double *knots, double *knotsI, double *all_beta, double *all_mu) {
  int i, j, k, supi;
  double *B, *BI, *Ball;
  int *offsets, *offsetsI, *derivs;
  B = (double *)calloc(order * p, sizeof(double));
  BI = (double *)calloc(order * p, sizeof(double));
  Ball = (double *)calloc(m * p, sizeof(double));
  derivs = (int *)calloc(p, sizeof(int));
  for (i = 0; i < p; i++)
    derivs[i] = 0;
  offsets = (int *)calloc(p, sizeof(int));
  offsetsI = (int *)calloc(p, sizeof(int));
  spline_basis(knotsI, (nknots - 1), order, eta, p, derivs, p, offsetsI, BI);
  spline_basis(knots, nknots, order, eta, p, derivs, p, offsets, B);
  for (i = 0; i < order; i++) {
    Ball[offsetsI[0] + i] = BI[i];
  }
  for (j = 1; j < p; j++) {
    if (offsets[j] != 0) {
      for (i = 0; i < order; i++) {
        Ball[m * j + offsets[j] + i - 1] = B[j * order + i];
      }
    } else {
      for (i = 1; i < order; i++) {
        Ball[m * j + offsets[j] + i - 1] = B[j * order + i];
        ;
      }
    }
  }
  for (j = 0; j < p; j++) {
    for (k = 0; k <= j; k++) {
      for (supi = k * m; supi < (k + 1) * m; supi++)
        all_mu[j * (j + 1) / 2 + k] += Ball[supi] * all_beta[j * (j + 1) * m / 2 + supi];
    }
  }
  free(B);
  free(BI);
  free(Ball);
  free(offsets);
  free(offsetsI);
  free(derivs);
}
```