user: 下面的汇编指令对应的C源代码是什么：

```asm
<__mpn_impn_sqr_n>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r14
  mov    %edx,%r13d
  mov    %rcx,%r12
  test   $0x1,%dl
  je     L65
  lea    -0x1(%rdx),%ebx
  cmp    $0x1f,%ebx
  jg     L121
  mov    %ebx,%edx
  call   <__mpn_impn_sqr_n_basecase@plt>
L145:
  movslq %ebx,%r12
  shl    $0x2,%r12
  lea    (%r14,%r12,1),%r15
  add    %rbp,%r12
  mov    (%r15),%ecx
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <__mpn_addmul_1@plt>
  mov    %eax,%edx
  lea    (%rbx,%rbx,1),%eax
  cltq
  mov    %edx,0x0(%rbp,%rax,4)
  mov    (%r15),%ecx
  mov    %r13d,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <__mpn_addmul_1@plt>
  add    %r13d,%ebx
  movslq %ebx,%rbx
  mov    %eax,0x0(%rbp,%rbx,4)
L129:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L121:
  mov    %ebx,%edx
  call   <__mpn_impn_sqr_n>
  jmp    L145
L65:
  mov    %edx,%ebx
  sar    %ebx
  cmp    $0x3f,%edx
  jg     L80
  movslq %ebx,%rax
  lea    (%rsi,%rax,4),%rsi
  movslq %edx,%rax
  lea    (%rdi,%rax,4),%rdi
  mov    %ebx,%edx
  call   <__mpn_impn_sqr_n_basecase@plt>
L159:
  movslq %ebx,%r15
  lea    0x0(,%r15,4),%rax
  mov    %rax,0x8(%rsp)
  add    %r14,%rax
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %rax,0x10(%rsp)
  mov    %eax,%edi
  call   <__mpn_cmp@plt>
  test   %rax,%rax
  js     L74
  mov    %ebx,%ecx
  mov    %r14,%rdx
  mov    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <__mpn_sub_n@plt>
L91:
  cmp    $0x1f,%ebx
  jg     L142
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <__mpn_impn_sqr_n_basecase@plt>
  test   %ebx,%ebx
  jg     L84
  movslq %r13d,%rax
  add    %rax,%r15
  lea    0x0(%rbp,%r15,4),%rdx
  mov    %rdx,0x20(%rsp)
  lea    0x0(%rbp,%rax,4),%rax
  mov    %rax,%rsi
  mov    %rax,0x28(%rsp)
  mov    %ebx,%ecx
  mov    %rax,%rdi
  call   <__mpn_add_n@plt>
  mov    %eax,0x10(%rsp)
  mov    0x8(%rsp),%rsi
  lea    0x0(%rbp,%rsi,1),%r15
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <__mpn_sub_n@plt>
  mov    0x10(%rsp),%edi
  sub    %eax,%edi
  mov    %edi,0x10(%rsp)
L42:
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <__mpn_impn_sqr_n_basecase@plt>
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <__mpn_add_n@plt>
  mov    0x10(%rsp),%ecx
  add    %eax,%ecx
  jne    L114
L130:
  test   %ebx,%ebx
  jle    L16
L144:
  mov    $0x0,%eax
L141:
  mov    (%r12,%rax,4),%edx
  mov    %edx,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L141
L16:
  mov    0x8(%rsp),%rdx
  add    %r12,%rdx
  mov    %ebx,%ecx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <__mpn_add_n@plt>
  test   %eax,%eax
  je     L129
  mov    $0x1,%ecx
  mov    %r13d,%edx
  mov    0x28(%rsp),%rdi
  mov    %rdi,%rsi
  call   <__mpn_add_1@plt>
  jmp    L129
L80:
  movslq %ebx,%rax
  lea    (%rsi,%rax,4),%rsi
  movslq %edx,%rax
  lea    (%rdi,%rax,4),%rdi
  mov    %ebx,%edx
  call   <__mpn_impn_sqr_n>
  jmp    L159
L74:
  mov    %ebx,%ecx
  mov    0x10(%rsp),%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <__mpn_sub_n@plt>
  jmp    L91
L142:
  movslq %r13d,%rax
  lea    (%r12,%rax,4),%rcx
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <__mpn_impn_sqr_n>
L84:
  movslq %r13d,%rax
  lea    0x0(%rbp,%rax,4),%rsi
  mov    0x8(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rcx
  mov    $0x0,%eax
L131:
  mov    (%rsi,%rax,4),%edx
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L131
  movslq %r13d,%rax
  lea    (%r15,%rax,1),%rdx
  lea    0x0(%rbp,%rdx,4),%rdx
  mov    %rdx,0x20(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x18(%rsp)
  add    %rbp,%rax
  mov    %rax,%rdi
  mov    %rax,0x28(%rsp)
  mov    %ebx,%ecx
  mov    %rax,%rsi
  call   <__mpn_add_n@plt>
  mov    %eax,0x10(%rsp)
  mov    0x8(%rsp),%rcx
  lea    0x0(%rbp,%rcx,1),%r15
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <__mpn_sub_n@plt>
  mov    0x10(%rsp),%edi
  sub    %eax,%edi
  mov    %edi,0x10(%rsp)
  cmp    $0x1f,%ebx
  jle    L42
  mov    0x18(%rsp),%rcx
  add    %r12,%rcx
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <__mpn_impn_sqr_n>
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <__mpn_add_n@plt>
  mov    0x10(%rsp),%ecx
  add    %eax,%ecx
  je     L144
L114:
  mov    %ebx,%edx
  mov    0x20(%rsp),%rdi
  mov    %rdi,%rsi
  call   <__mpn_add_1@plt>
  jmp    L130
```

assistant: ```c
void __mpn_impn_sqr_n(mp_ptr prodp, mp_srcptr up, mp_size_t size, mp_ptr tspace) {
  if ((size & 1) != 0) {
    mp_size_t esize = size - 1;
    mp_limb_t cy_limb;
    do {
      if ((esize) < 32)
        __mpn_impn_sqr_n_basecase(prodp, up, esize);
      else
        __mpn_impn_sqr_n(prodp, up, esize, tspace);
    } while (0);
    ;
    cy_limb = __mpn_addmul_1(prodp + esize, up, esize, up[esize]);
    prodp[esize + esize] = cy_limb;
    cy_limb = __mpn_addmul_1(prodp + esize, up, size, up[esize]);
    prodp[esize + size] = cy_limb;
  } else {
    mp_size_t hsize = size >> 1;
    mp_limb_t cy;
    do {
      if ((hsize) < 32)
        __mpn_impn_sqr_n_basecase(prodp + size, up + hsize, hsize);
      else
        __mpn_impn_sqr_n(prodp + size, up + hsize, hsize, tspace);
    } while (0);
    ;
    if (__mpn_cmp(up + hsize, up, hsize) >= 0) {
      __mpn_sub_n(prodp, up + hsize, up, hsize);
    } else {
      __mpn_sub_n(prodp, up, up + hsize, hsize);
    }
    do {
      if ((hsize) < 32)
        __mpn_impn_sqr_n_basecase(tspace, prodp, hsize);
      else
        __mpn_impn_sqr_n(tspace, prodp, hsize, tspace + size);
    } while (0);
    ;
    do {
      mp_size_t __i;
      for (__i = 0; __i < (hsize); __i++)
        (prodp + hsize)[__i] = (prodp + size)[__i];
    } while (0);
    cy = __mpn_add_n(prodp + size, prodp + size, prodp + size + hsize, hsize);
    cy -= __mpn_sub_n(prodp + hsize, prodp + hsize, tspace, size);
    do {
      if ((hsize) < 32)
        __mpn_impn_sqr_n_basecase(tspace, up, hsize);
      else
        __mpn_impn_sqr_n(tspace, up, hsize, tspace + size);
    } while (0);
    ;
    cy += __mpn_add_n(prodp + hsize, prodp + hsize, tspace, size);
    if (cy)
      __mpn_add_1(prodp + hsize + size, prodp + hsize + size, hsize, cy);
    do {
      mp_size_t __i;
      for (__i = 0; __i < (hsize); __i++)
        (prodp)[__i] = (tspace)[__i];
    } while (0);
    cy = __mpn_add_n(prodp + hsize, prodp + hsize, tspace + hsize, hsize);
    if (cy)
      __mpn_add_1(prodp + size, prodp + size, size, 1);
  }
}
```