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

```asm
<all_mu_comp>:
  endbr64
  push   %r15
  mov    %edx,%r15d
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  imul   %edx,%ebp
  mov    %r8d,%ebx
  sub    $0x68,%rsp
  movslq %ebp,%rbp
  mov    0xa0(%rsp),%r10
  mov    0xa8(%rsp),%rax
  mov    %esi,0xc(%rsp)
  mov    %rbp,%rdi
  mov    $0x8,%esi
  mov    %r9,0x28(%rsp)
  mov    0xb0(%rsp),%r13
  mov    %r10,0x20(%rsp)
  mov    %rax,0x50(%rsp)
  call   <calloc@plt>
  mov    %rbp,%rdi
  mov    $0x8,%esi
  mov    %rax,0x10(%rsp)
  call   <calloc@plt>
  mov    0xc(%rsp),%edi
  mov    $0x8,%esi
  mov    %rax,0x30(%rsp)
  imul   %r12d,%edi
  movslq %edi,%rdi
  call   <calloc@plt>
  movslq 0xc(%rsp),%rdi
  mov    $0x4,%esi
  mov    %rax,%rbp
  mov    %rdi,0x18(%rsp)
  call   <calloc@plt>
  mov    0x18(%rsp),%rdi
  mov    $0x4,%esi
  mov    %rax,0x38(%rsp)
  call   <calloc@plt>
  mov    0x18(%rsp),%rdi
  mov    $0x4,%esi
  mov    %rax,0x40(%rsp)
  call   <calloc@plt>
  sub    $0x8,%rsp
  lea    -0x1(%rbx),%esi
  mov    %r14,%rcx
  mov    %rax,0x50(%rsp)
  mov    %r15d,%edx
  push   0x38(%rsp)
  push   %rax
  xor    %eax,%eax
  mov    0x24(%rsp),%edi
  push   %rdi
  mov    %edi,%r8d
  mov    0x58(%rsp),%r9
  mov    %edi,0x2c(%rsp)
  mov    0x40(%rsp),%rdi
  call   <spline_basis@plt>
  add    $0x18,%rsp
  mov    %r14,%rcx
  mov    %r15d,%edx
  push   0x18(%rsp)
  xor    %eax,%eax
  push   0x50(%rsp)
  mov    0x24(%rsp),%esi
  push   %rsi
  mov    0x58(%rsp),%r9
  mov    %esi,%r8d
  mov    %ebx,%esi
  mov    0x48(%rsp),%rdi
  call   <spline_basis@plt>
  add    $0x20,%rsp
  test   %r15d,%r15d
  jle    L1
  mov    0x48(%rsp),%rax
  movslq %r15d,%rdx
  mov    0x30(%rsp),%rsi
  shl    $0x3,%rdx
  movslq (%rax),%rax
  lea    0x0(%rbp,%rax,8),%rdi
  call   <memcpy@plt>
L1:
  cmpl   $0x1,0xc(%rsp)
  jle    L127
  mov    0xc(%rsp),%eax
  mov    0x40(%rsp),%rbx
  mov    %r13,0x58(%rsp)
  mov    %r12d,%r14d
  mov    %r15d,%r13d
  sub    $0x2,%eax
  lea    0x4(%rbx),%rcx
  lea    0x8(%rbx,%rax,4),%rax
  mov    %r15d,%ebx
  mov    %rax,0x18(%rsp)
  lea    -0x2(%r15),%eax
  lea    0x8(,%rax,8),%rax
  mov    %rax,0x28(%rsp)
  lea    -0x1(%r15),%eax
  mov    %rcx,%r15
  lea    0x8(,%rax,8),%rax
  mov    %rax,0x20(%rsp)
  jmp    L37
L84:
  cmp    $0x1,%ebx
  jle    L71
  movslq %r14d,%rax
  mov    0x10(%rsp),%rcx
  mov    0x28(%rsp),%rdx
  lea    0x0(%rbp,%rax,8),%rdi
  movslq %r13d,%rax
  lea    0x8(%rcx,%rax,8),%rsi
  call   <memcpy@plt>
L71:
  add    $0x4,%r15
  add    %r12d,%r14d
  add    %ebx,%r13d
  cmp    0x18(%rsp),%r15
  je     L46
L37:
  mov    (%r15),%eax
  test   %eax,%eax
  je     L84
  test   %ebx,%ebx
  jle    L71
  add    %r14d,%eax
  mov    0x10(%rsp),%rcx
  mov    0x20(%rsp),%rdx
  cltq
  lea    -0x8(%rbp,%rax,8),%rdi
  movslq %r13d,%rax
  lea    (%rcx,%rax,8),%rsi
  call   <memcpy@plt>
  jmp    L71
L46:
  mov    0x58(%rsp),%r13
L7:
  mov    0x50(%rsp),%r15
  xor    %eax,%eax
  movslq %r12d,%r14
  lea    (%r12,%r12,1),%r11d
L122:
  lea    0x1(%rax),%ebx
  xor    %r8d,%r8d
  imul   %ebx,%eax
  mov    %eax,%edi
  imul   %r12d,%eax
  sar    %edi
  lea    (%rdi,%rbx,1),%r10d
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  mov    %r12d,%edx
  sar    %eax
  cltq
  lea    (%r15,%rax,8),%rsi
  nopw   0x0(%rax,%rax,1)
L97:
  mov    %edx,%r9d
  sub    %r12d,%r9d
  cmp    %edx,%r9d
  jge    L138
  movslq %edi,%rax
  lea    0x0(%r13,%rax,8),%rcx
  mov    %r8,%rax
  movsd  (%rcx),%xmm1
  nopw   0x0(%rax,%rax,1)
L103:
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  cmp    %eax,%edx
  jg     L103
L138:
  add    $0x1,%edi
  lea    (%r11,%r9,1),%edx
  add    %r14,%r8
  cmp    %r10d,%edi
  jne    L97
  mov    %ebx,%eax
  cmp    %ebx,0xc(%rsp)
  jg     L122
L98:
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x40(%rsp),%rdi
  call   <free@plt>
  mov    0x48(%rsp),%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rdi
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
L127:
  jne    L98
  jmp    L7
```

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);
}
```