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

```asm
<mp_squ>:
  endbr64
  push   %r15
  mov    %rcx,%r10
  mov    %r8,%r11
  push   %r14
  mov    %esi,%r14d
  push   %r13
  mov    %r9d,%r13d
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  sar    %r12d
  mov    %edi,%ebp
  push   %rbx
  add    $0x1,%r12d
  mov    %rdx,%rbx
  sub    $0x48,%rsp
  mov    0x88(%rsp),%rax
  mov    0x80(%rsp),%r15
  mov    %rax,0x18(%rsp)
  mov    0x90(%rsp),%rax
  mov    %rax,0x8(%rsp)
  mov    0x98(%rsp),%rax
  mov    %rax,0x10(%rsp)
  cmp    %edi,%r12d
  jge    L3
  movslq %r12d,%rdx
  jmp    L19
  cs nopw 0x0(%rax,%rax,1)
L14:
  lea    0x1(%rdx),%r12d
  add    $0x1,%rdx
  cmp    %edx,%ebp
  jle    L3
L19:
  mov    0x8(%rbx,%rdx,4),%eax
  mov    %edx,%r12d
  test   %eax,%eax
  je     L14
L3:
  mov    %ebp,%edx
  mov    %ebp,%ecx
  mov    %r15,%r9
  mov    %rbx,%r8
  shr    $0x1f,%edx
  sub    %r12d,%ecx
  mov    %r14d,%esi
  mov    %ebp,%edi
  add    %ebp,%edx
  mov    %r10,0x30(%rsp)
  sar    %edx
  mov    %r11,0x38(%rsp)
  add    $0x1,%edx
  cmp    %ecx,%edx
  cmovge %edx,%ecx
  mov    %r13d,%edx
  mov    %ecx,0x24(%rsp)
  xor    %ecx,%ecx
  call   <mp_mul_i2d@plt>
  lea    0x8(%r15),%rax
  mov    0x10(%rsp),%r8
  mov    %r13d,%edi
  mov    0x8(%rsp),%rcx
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    %rax,0x28(%rsp)
  call   <rdft@plt>
  mov    0x18(%rsp),%r9
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %ebp,%edi
  call   <mp_mul_i2d@plt>
  mov    0x18(%rsp),%rbx
  mov    0x10(%rsp),%r8
  mov    %r13d,%edi
  mov    0x8(%rsp),%rcx
  mov    $0x1,%esi
  lea    0x8(%rbx),%r12
  mov    %r12,%rdx
  call   <rdft@plt>
  mov    %rbx,%rdx
  mov    %r15,%rsi
  mov    %r13d,%edi
  call   <mp_mul_cmul@plt>
  mov    0x10(%rsp),%r8
  mov    %r12,%rdx
  mov    %r13d,%edi
  mov    0x8(%rsp),%rcx
  mov    $0xffffffff,%esi
  call   <rdft@plt>
  mov    0x38(%rsp),%r11
  mov    %rbx,%rcx
  mov    %r13d,%edx
  mov    0x24(%rsp),%ebx
  mov    %r14d,%esi
  mov    %r11,%r8
  mov    %r11,0x18(%rsp)
  mov    %ebx,%edi
  call   <mp_mul_d2i@plt>
  mov    0x18(%rsp),%r11
  mov    %r14d,%esi
  mov    %ebx,%edi
  mov    %r11,%r8
  mov    %r11,%rcx
  mov    %r11,%rdx
  call   <mp_add@plt>
  mov    %r15,%rsi
  mov    %r13d,%edi
  call   <mp_mul_csqu@plt>
  mov    0x10(%rsp),%r8
  mov    0x8(%rsp),%rcx
  mov    %r13d,%edi
  mov    0x28(%rsp),%rdx
  mov    $0xffffffff,%esi
  call   <rdft@plt>
  mov    0x30(%rsp),%r10
  mov    %r15,%rcx
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %ebp,%edi
  mov    %r10,%r8
  mov    %r10,0x8(%rsp)
  call   <mp_mul_d2i@plt>
  mov    0x8(%rsp),%r10
  mov    %r14d,%esi
  mov    %ebp,%edi
  mov    0x18(%rsp),%rcx
  add    $0x48,%rsp
  pop    %rbx
  mov    %r10,%r8
  pop    %rbp
  mov    %r10,%rdx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10e0 <mp_add@plt>
```

assistant: ```c
void mp_squ(int n, int radix, int in[], int out[], int tmp[], int nfft, double tmp1fft[], double tmp2fft[], int ip[], double w[]) {
  void mp_add(int n, int radix, int in1[], int in2[], int out[]);
  void rdft(int n, int isgn, double *a, int *ip, double *w);
  void mp_mul_i2d(int n, int radix, int nfft, int shift, int in[], double dout[]);
  void mp_mul_cmul(int nfft, double din[], double dinout[]);
  void mp_mul_csqu(int nfft, double dinout[]);
  void mp_mul_d2i(int n, int radix, int nfft, double din[], int out[]);
  int n_h, shift;
  shift = (nfft >> 1) + 1;
  while (n > shift) {
    if (in[shift + 2] != 0) {
      break;
    }
    shift++;
  }
  n_h = n / 2 + 1;
  if (n_h < n - shift) {
    n_h = n - shift;
  }
  mp_mul_i2d(n, radix, nfft, 0, in, tmp1fft);
  rdft(nfft, 1, &tmp1fft[1], ip, w);
  mp_mul_i2d(n, radix, nfft, shift, in, tmp2fft);
  rdft(nfft, 1, &tmp2fft[1], ip, w);
  mp_mul_cmul(nfft, tmp1fft, tmp2fft);
  rdft(nfft, -1, &tmp2fft[1], ip, w);
  mp_mul_d2i(n_h, radix, nfft, tmp2fft, tmp);
  mp_add(n_h, radix, tmp, tmp, tmp);
  mp_mul_csqu(nfft, tmp1fft);
  rdft(nfft, -1, &tmp1fft[1], ip, w);
  mp_mul_d2i(n, radix, nfft, tmp1fft, out);
  mp_add(n, radix, out, tmp, out);
}
```