user: Demonstrate the C code that generates the assembly output below:

```asm
<mp_inv_newton>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %r8,-0x30(%rbp)
  mov    %r9,-0x38(%rbp)
  mov    0x10(%rbp),%eax
  sar    %eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  add    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  sub    -0x4(%rbp),%eax
  cmp    %eax,-0xc(%rbp)
  jge    L28
  mov    -0x14(%rbp),%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,-0xc(%rbp)
L28:
  mov    -0x28(%rbp),%rcx
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <mp_round@plt>
  mov    -0x30(%rbp),%rdi
  mov    -0x20(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  push   0x20(%rbp)
  push   0x18(%rbp)
  mov    0x10(%rbp),%r9d
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <mp_mulh@plt>
  add    $0x10,%rsp
  mov    -0x38(%rbp),%rdx
  mov    -0x18(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <mp_load_1@plt>
  mov    -0x38(%rbp),%rdi
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <mp_sub@plt>
  mov    -0x30(%rbp),%r9
  mov    -0x20(%rbp),%r8
  mov    -0x4(%rbp),%ecx
  mov    0x18(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  push   0x20(%rbp)
  mov    0x10(%rbp),%edi
  push   %rdi
  mov    %eax,%edi
  call   <mp_mulh_use_in1fft@plt>
  add    $0x10,%rsp
  mov    -0x38(%rbp),%rdi
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0xc(%rbp),%eax
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <mp_sub@plt>
  mov    -0x38(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  neg    %eax
  mov    %eax,-0x8(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L11
  mov    0x10(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
L11:
  mov    -0x38(%rbp),%r8
  mov    -0x38(%rbp),%rdi
  mov    0x18(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0xc(%rbp),%eax
  push   0x20(%rbp)
  mov    0x10(%rbp),%ecx
  push   %rcx
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    $0x0,%ecx
  mov    %eax,%edi
  call   <mp_mulh_use_in1fft@plt>
  add    $0x10,%rsp
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L0
  mov    -0x28(%rbp),%rdi
  mov    -0x38(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <mp_add@plt>
L0:
  mov    -0x8(%rbp),%eax
  leave
  ret
```

assistant: ```c
int mp_inv_newton(int n, int radix, int in[], int inout[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]) {
  void mp_load_1(int n, int radix, int out[]);
  void mp_round(int n, int radix, int m, int inout[]);
  void mp_add(int n, int radix, int in1[], int in2[], int out[]);
  void mp_sub(int n, int radix, int in1[], int in2[], int out[]);
  void mp_mulh(int n, int radix, int in1[], int in2[], int out[], int nfft, double in1fft[], double outfft[]);
  void mp_mulh_use_in1fft(int n, int radix, double in1fft[], int shift, int in2[], int out[], int nfft, double outfft[]);
  int n_h, shift, prc;
  shift = (nfft >> 1) + 1;
  n_h = n / 2 + 1;
  if (n_h < n - shift) {
    n_h = n - shift;
  }
  mp_round(n, radix, shift, inout);
  mp_mulh(n, radix, inout, in, tmp1, nfft, tmp1fft, tmp2fft);
  mp_load_1(n, radix, tmp2);
  mp_sub(n, radix, tmp2, tmp1, tmp2);
  mp_mulh_use_in1fft(n, radix, tmp1fft, shift, in, tmp1, nfft, tmp2fft);
  mp_sub(n_h, radix, tmp2, tmp1, tmp2);
  prc = -tmp2[1];
  if (tmp2[0] == 0) {
    prc = nfft + 1;
  }
  mp_mulh_use_in1fft(n_h, radix, tmp1fft, 0, tmp2, tmp2, nfft, tmp2fft);
  if (tmp2[0] != 0) {
    mp_add(n, radix, inout, tmp2, inout);
  }
  return prc;
}
```