ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Converte this assembly snippet into its equivalent C code:

```asm
<memmove>:
  endbr64
  mov    %rdi,%r8
  mov    %rdx,%rax
  cmp    %rsi,%rdi
  jb     L32
  test   %rdx,%rdx
  je     L179
  nopl   0x0(%rax)
L137:
  sub    $0x1,%rax
  movzbl (%rsi,%rax,1),%edx
  mov    %dl,(%r8,%rax,1)
  jne    L137
L179:
  mov    %r8,%rax
  ret
  nopw   0x0(%rax,%rax,1)
L32:
  test   %rdx,%rdx
  je     L179
  lea    0x1(%rsi),%rdi
  mov    %r8,%rcx
  lea    -0x1(%rdx),%rdx
  sub    %rdi,%rcx
  cmp    $0xe,%rcx
  jbe    L102
  cmp    $0x6,%rdx
  jbe    L102
  mov    %rax,%rcx
  cmp    $0xe,%rdx
  jbe    L107
  and    $0xfffffffffffffff0,%rcx
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L19:
  movdqu (%rsi,%rdx,1),%xmm0
  movups %xmm0,(%r8,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdx,%rcx
  jne    L19
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  test   $0xf,%al
  je     L179
  mov    %rax,%rcx
  sub    %rdx,%rcx
  lea    -0x1(%rcx),%rdi
  cmp    $0x6,%rdi
  jbe    L177
L71:
  mov    (%rsi,%rdx,1),%rdi
  mov    %rdi,(%r8,%rdx,1)
  mov    %rcx,%rdi
  and    $0xfffffffffffffff8,%rdi
  add    %rdi,%rdx
  cmp    %rdi,%rcx
  je     L179
L177:
  movzbl (%rsi,%rdx,1),%ecx
  mov    %cl,(%r8,%rdx,1)
  lea    0x1(%rdx),%rcx
  cmp    %rcx,%rax
  jbe    L179
  movzbl 0x1(%rsi,%rdx,1),%ecx
  mov    %cl,0x1(%r8,%rdx,1)
  lea    0x2(%rdx),%rcx
  cmp    %rcx,%rax
  jbe    L179
  movzbl 0x2(%rsi,%rdx,1),%ecx
  mov    %cl,0x2(%r8,%rdx,1)
  lea    0x3(%rdx),%rcx
  cmp    %rcx,%rax
  jbe    L179
  movzbl 0x3(%rsi,%rdx,1),%ecx
  mov    %cl,0x3(%r8,%rdx,1)
  lea    0x4(%rdx),%rcx
  cmp    %rcx,%rax
  jbe    L179
  movzbl 0x4(%rsi,%rdx,1),%ecx
  mov    %cl,0x4(%r8,%rdx,1)
  lea    0x5(%rdx),%rcx
  cmp    %rcx,%rax
  jbe    L179
  movzbl 0x5(%rsi,%rdx,1),%ecx
  mov    %cl,0x5(%r8,%rdx,1)
  lea    0x6(%rdx),%rcx
  cmp    %rcx,%rax
  jbe    L179
  movzbl 0x6(%rsi,%rdx,1),%eax
  mov    %al,0x6(%r8,%rdx,1)
  mov    %r8,%rax
  ret
  nop
L102:
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L99:
  movzbl (%rsi,%rdx,1),%ecx
  mov    %cl,(%r8,%rdx,1)
  add    $0x1,%rdx
  cmp    %rdx,%rax
  jne    L99
  jmp    L179
L107:
  xor    %edx,%edx
  jmp    L71
```

assistant: ```c
void *memmove(void *dstptr, const void *srcptr, size_t size) {
  unsigned char *dst = (unsigned char *)dstptr;
  const unsigned char *src = (const unsigned char *)srcptr;
  size_t i;
  if (dst < src)
    for (i = 0; i < size; i++)
      dst[i] = src[i];
  else
    for (i = size; i != 0; i--)
      dst[i - 1] = src[i - 1];
  return dstptr;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<innerprod_float>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L12
L4:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x8(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x8(%rbp)
  addl   $0x1,-0x4(%rbp)
L12:
  mov    -0x4(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L4
  movss  -0x8(%rbp),%xmm0
  pop    %rbp
  ret
```

assistant: ```c
float innerprod_float(float *v1, float *v2, int dimension) {
  float res = 0;
  for (int i = 0; i < dimension; ++i) {
    res += v1[i] * v2[i];
  }
  return res;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<innerprod_float>:
  endbr64
  test   %edx,%edx
  jle    L12
  mov    %edx,%edx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L17:
  movss  (%rdi,%rax,4),%xmm0
  mulss  (%rsi,%rax,4),%xmm0
  addss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L17
L23:
  movaps %xmm1,%xmm0
  ret
L12:
  pxor   %xmm1,%xmm1
  jmp    L23
```

assistant: ```c
float innerprod_float(float *v1, float *v2, int dimension) {
  float res = 0;
  for (int i = 0; i < dimension; ++i) {
    res += v1[i] * v2[i];
  }
  return res;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<innerprod_float>:
  endbr64
  test   %edx,%edx
  jle    L16
  movslq %edx,%rdx
  xor    %eax,%eax
  pxor   %xmm1,%xmm1
  nopl   0x0(%rax)
L4:
  movss  (%rdi,%rax,4),%xmm0
  mulss  (%rsi,%rax,4),%xmm0
  add    $0x1,%rax
  addss  %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L4
  movaps %xmm1,%xmm0
  ret
  nopl   0x0(%rax,%rax,1)
L16:
  pxor   %xmm1,%xmm1
  movaps %xmm1,%xmm0
  ret
```

assistant: ```c
float innerprod_float(float *v1, float *v2, int dimension) {
  float res = 0;
  for (int i = 0; i < dimension; ++i) {
    res += v1[i] * v2[i];
  }
  return res;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<innerprod_float>:
  endbr64
  mov    %rdi,%rcx
  test   %edx,%edx
  jle    L19
  lea    -0x1(%rdx),%eax
  cmp    $0x2,%eax
  jbe    L46
  mov    %edx,%edi
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  shr    $0x2,%edi
  shl    $0x4,%rdi
  nopw   0x0(%rax,%rax,1)
L41:
  movups (%rcx,%rax,1),%xmm1
  movups (%rsi,%rax,1),%xmm3
  add    $0x10,%rax
  mulps  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm1,%xmm2
  shufps $0x55,%xmm1,%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm1,%xmm2
  unpckhps %xmm1,%xmm2
  shufps $0xff,%xmm1,%xmm1
  addss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  cmp    %rax,%rdi
  jne    L41
  mov    %edx,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%dl
  je     L58
L50:
  movslq %eax,%r8
  movss  (%rcx,%r8,4),%xmm1
  mulss  (%rsi,%r8,4),%xmm1
  lea    0x0(,%r8,4),%rdi
  lea    0x1(%rax),%r8d
  addss  %xmm1,%xmm0
  cmp    %r8d,%edx
  jle    L45
  movss  0x4(%rcx,%rdi,1),%xmm1
  mulss  0x4(%rsi,%rdi,1),%xmm1
  add    $0x2,%eax
  addss  %xmm1,%xmm0
  cmp    %eax,%edx
  jle    L45
  movss  0x8(%rsi,%rdi,1),%xmm1
  mulss  0x8(%rcx,%rdi,1),%xmm1
  addss  %xmm1,%xmm0
  ret
  nopl   0x0(%rax,%rax,1)
L19:
  pxor   %xmm0,%xmm0
L45:
  ret
  nopl   (%rax)
L58:
  ret
L46:
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  jmp    L50
```

assistant: ```c
float innerprod_float(float *v1, float *v2, int dimension) {
  float res = 0;
  for (int i = 0; i < dimension; ++i) {
    res += v1[i] * v2[i];
  }
  return res;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<strto_double>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  mov    D5(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  mov    D5(%rip),%rax
  movl   $0x0,(%rax)
  lea    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtod@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    %rax,-0x28(%rbp)
  je     L32
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L22
L32:
  movl   $0x1,-0x20(%rbp)
L22:
  cmpl   $0x0,-0x20(%rbp)
  jne    L10
  mov    -0x30(%rbp),%rax
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
L10:
  mov    D5(%rip),%rax
  mov    -0x1c(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x20(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L30
  call   <__stack_chk_fail@plt>
L30:
  leave
  ret
```

assistant: ```c
int strto_double(char *s, double *val) {
  char *end;
  int status = 0;
  double v;
  int save_errno;
  save_errno = errno;
  errno = 0;
  v = strtod(s, &end);
  if ((end == s) || (*end != '\0'))
    status = 1;
  if (status == 0)
    *val = v;
  errno = save_errno;
  return (status);
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<strto_double>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    D2(%rip),%rax
  mov    (%rax),%r12d
  movl   $0x0,(%rax)
  mov    %rsp,%rsi
  call   <strtod@plt>
  mov    (%rsp),%rdx
  mov    $0x1,%eax
  cmp    %rbx,%rdx
  je     L7
  cmpb   $0x0,(%rdx)
  jne    L7
  movsd  %xmm0,0x0(%rbp)
  mov    $0x0,%eax
L7:
  mov    D2(%rip),%rdx
  mov    %r12d,(%rdx)
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L29
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L29:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int strto_double(char *s, double *val) {
  char *end;
  int status = 0;
  double v;
  int save_errno;
  save_errno = errno;
  errno = 0;
  v = strtod(s, &end);
  if ((end == s) || (*end != '\0'))
    status = 1;
  if (status == 0)
    *val = v;
  errno = save_errno;
  return (status);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<strto_double>:
  endbr64
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    D3(%rip),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  mov    0x0(%rbp),%r13d
  movl   $0x0,0x0(%rbp)
  call   <strtod@plt>
  mov    (%rsp),%rax
  mov    $0x1,%r8d
  cmp    %rbx,%rax
  je     L11
  cmpb   $0x0,(%rax)
  je     L2
L11:
  mov    %r13d,0x0(%rbp)
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  add    $0x18,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L2:
  movsd  %xmm0,(%r12)
  xor    %r8d,%r8d
  jmp    L11
L10:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int strto_double(char *s, double *val) {
  char *end;
  int status = 0;
  double v;
  int save_errno;
  save_errno = errno;
  errno = 0;
  v = strtod(s, &end);
  if ((end == s) || (*end != '\0'))
    status = 1;
  if (status == 0)
    *val = v;
  errno = save_errno;
  return (status);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<strto_double>:
  endbr64
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    D4(%rip),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  mov    0x0(%rbp),%r13d
  movl   $0x0,0x0(%rbp)
  call   <strtod@plt>
  mov    (%rsp),%rax
  mov    $0x1,%r8d
  cmp    %rbx,%rax
  je     L5
  cmpb   $0x0,(%rax)
  je     L34
L5:
  mov    %r13d,0x0(%rbp)
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L35
  add    $0x18,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L34:
  movsd  %xmm0,(%r12)
  xor    %r8d,%r8d
  jmp    L5
L35:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int strto_double(char *s, double *val) {
  char *end;
  int status = 0;
  double v;
  int save_errno;
  save_errno = errno;
  errno = 0;
  v = strtod(s, &end);
  if ((end == s) || (*end != '\0'))
    status = 1;
  if (status == 0)
    *val = v;
  errno = save_errno;
  return (status);
}
```
user: Translate the below assembly code into C programming language:

```asm
<bunyan_warnx>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %rdi,-0xc8(%rbp)
  mov    %rsi,-0xa8(%rbp)
  mov    %rdx,-0xa0(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L2
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L2:
  mov    -0xc8(%rbp),%rdx
  mov    -0xb4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0xb4(%rbp),%edx
  mov    -0xc8(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x28,%edi
  call   <vbunyan@plt>
  mov    -0xb4(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  nop
  leave
  ret
```

assistant: ```c
void bunyan_warnx(const char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  vbunyan(40, fmt, ap);
  va_end(ap);
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<bunyan_warnx>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %rdi,%rsi
  mov    $0x0,%ebp
  mov    %ebp,%edi
  call   <va_start@plt>
  mov    %ebp,%edx
  mov    %rbx,%rsi
  mov    $0x28,%edi
  call   <vbunyan@plt>
  mov    %ebp,%edi
  call   <va_end@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void bunyan_warnx(const char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  vbunyan(40, fmt, ap);
  va_end(ap);
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<bunyan_warnx>:
  endbr64
  push   %r12
  xor    %r12d,%r12d
  mov    %rdi,%rsi
  push   %rbp
  mov    %rdi,%rbp
  mov    %r12d,%edi
  sub    $0x8,%rsp
  call   <va_start@plt>
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    $0x28,%edi
  call   <vbunyan@plt>
  mov    %r12d,%edi
  call   <va_end@plt>
  add    $0x8,%rsp
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
void bunyan_warnx(const char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  vbunyan(40, fmt, ap);
  va_end(ap);
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<bunyan_warnx>:
  endbr64
  push   %r12
  xor    %r12d,%r12d
  mov    %rdi,%rsi
  push   %rbp
  mov    %rdi,%rbp
  mov    %r12d,%edi
  sub    $0x8,%rsp
  call   <va_start@plt>
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    $0x28,%edi
  call   <vbunyan@plt>
  mov    %r12d,%edi
  call   <va_end@plt>
  add    $0x8,%rsp
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
void bunyan_warnx(const char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  vbunyan(40, fmt, ap);
  va_end(ap);
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<mp_invisqrt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %r8,-0x30(%rbp)
  mov    %r9,-0x38(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jg     L42
  mov    $0xffffffff,%eax
  jmp    L27
L42:
  mov    -0x18(%rbp),%eax
  mov    0x10(%rbp),%esi
  mov    %eax,%edi
  call   <mp_get_nfft_init@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L45
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x10(%rbp)
L45:
  mov    -0x28(%rbp),%rcx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <mp_invisqrt_init@plt>
  movl   $0x8,-0x8(%rbp)
L67:
  mov    -0xc(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L51
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x10(%rbp)
L51:
  mov    -0x38(%rbp),%r9
  mov    -0x30(%rbp),%r8
  mov    -0x28(%rbp),%rcx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x10(%rbp),%eax
  sub    $0x8,%rsp
  push   0x20(%rbp)
  push   0x18(%rbp)
  mov    -0xc(%rbp),%edi
  push   %rdi
  mov    %eax,%edi
  call   <mp_invisqrt_newton@plt>
  add    $0x20,%rsp
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  imul   -0xc(%rbp),%eax
  cmp    %eax,0x10(%rbp)
  jg     L12
  movl   $0x0,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,%edx
  jle    L24
  sarl   -0xc(%rbp)
  jmp    L24
L12:
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,%edx
  jge    L24
  sarl   -0xc(%rbp)
L24:
  shll   -0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jle    L67
  mov    $0x0,%eax
L27:
  leave
  ret
```

assistant: ```c
int mp_invisqrt(int n, int radix, int in, int out[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]) {
  int mp_get_nfft_init(int radix, int nfft_max);
  void mp_invisqrt_init(int n, int radix, int in, int out[]);
  int mp_invisqrt_newton(int n, int radix, int in, int inout[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]);
  int n_nwt, nfft_nwt, thr, prc;
  if (in <= 0) {
    return -1;
  }
  nfft_nwt = mp_get_nfft_init(radix, nfft);
  n_nwt = nfft_nwt + 2;
  if (n_nwt > n) {
    n_nwt = n;
  }
  mp_invisqrt_init(n_nwt, radix, in, out);
  thr = 8;
  do {
    n_nwt = nfft_nwt + 2;
    if (n_nwt > n) {
      n_nwt = n;
    }
    prc = mp_invisqrt_newton(n_nwt, radix, in, out, tmp1, tmp2, nfft_nwt, tmp1fft, tmp2fft);
    if (thr * nfft_nwt >= nfft) {
      thr = 0;
      if (2 * prc <= n_nwt - 2) {
        nfft_nwt >>= 1;
      }
    } else {
      if (3 * prc < n_nwt - 2) {
        nfft_nwt >>= 1;
      }
    }
    nfft_nwt <<= 1;
  } while (nfft_nwt <= nfft);
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<mp_invisqrt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %esi,0x8(%rsp)
  mov    %edx,0xc(%rsp)
  mov    %rcx,(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %r9,0x18(%rsp)
  mov    0x60(%rsp),%r13d
  mov    0x70(%rsp),%r15
  test   %edx,%edx
  jle    L6
  mov    %edi,%r12d
  mov    %esi,%ebp
  mov    %edx,%r14d
  mov    %r13d,%esi
  mov    %ebp,%edi
  call   <mp_get_nfft_init@plt>
  mov    %eax,%ebx
  lea    0x2(%rax),%edi
  cmp    %r12d,%edi
  cmovg  %r12d,%edi
  mov    (%rsp),%rcx
  mov    %r14d,%edx
  mov    %ebp,%esi
  call   <mp_invisqrt_init@plt>
  mov    $0x8,%r14d
  jmp    L12
L64:
  lea    (%rax,%rax,2),%edx
  sub    $0x2,%ebp
  mov    %ebx,%eax
  sar    %eax
  cmp    %ebp,%edx
  cmovl  %eax,%ebx
L13:
  add    %ebx,%ebx
  cmp    %ebx,%r13d
  jl     L60
L12:
  lea    0x2(%rbx),%ebp
  cmp    %r12d,%ebp
  cmovg  %r12d,%ebp
  sub    $0x8,%rsp
  push   %r15
  push   0x78(%rsp)
  push   %rbx
  mov    0x38(%rsp),%r9
  mov    0x30(%rsp),%r8
  mov    0x20(%rsp),%rcx
  mov    0x2c(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    %ebp,%edi
  call   <mp_invisqrt_newton@plt>
  mov    %ebx,%edx
  imul   %r14d,%edx
  add    $0x20,%rsp
  cmp    %r13d,%edx
  jl     L64
  sub    $0x1,%ebp
  add    %eax,%eax
  mov    $0x0,%r14d
  cmp    %eax,%ebp
  jle    L13
  sar    %ebx
  jmp    L13
L60:
  mov    $0x0,%eax
L18:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  mov    $0xffffffff,%eax
  jmp    L18
```

assistant: ```c
int mp_invisqrt(int n, int radix, int in, int out[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]) {
  int mp_get_nfft_init(int radix, int nfft_max);
  void mp_invisqrt_init(int n, int radix, int in, int out[]);
  int mp_invisqrt_newton(int n, int radix, int in, int inout[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]);
  int n_nwt, nfft_nwt, thr, prc;
  if (in <= 0) {
    return -1;
  }
  nfft_nwt = mp_get_nfft_init(radix, nfft);
  n_nwt = nfft_nwt + 2;
  if (n_nwt > n) {
    n_nwt = n;
  }
  mp_invisqrt_init(n_nwt, radix, in, out);
  thr = 8;
  do {
    n_nwt = nfft_nwt + 2;
    if (n_nwt > n) {
      n_nwt = n;
    }
    prc = mp_invisqrt_newton(n_nwt, radix, in, out, tmp1, tmp2, nfft_nwt, tmp1fft, tmp2fft);
    if (thr * nfft_nwt >= nfft) {
      thr = 0;
      if (2 * prc <= n_nwt - 2) {
        nfft_nwt >>= 1;
      }
    } else {
      if (3 * prc < n_nwt - 2) {
        nfft_nwt >>= 1;
      }
    }
    nfft_nwt <<= 1;
  } while (nfft_nwt <= nfft);
  return 0;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<mp_invisqrt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %r8,0x8(%rsp)
  mov    %r9,0x10(%rsp)
  test   %edx,%edx
  jle    L44
  mov    %esi,%r12d
  mov    0x60(%rsp),%esi
  mov    %edi,%ebx
  mov    %edx,%ebp
  mov    %r12d,%edi
  mov    %rcx,%r13
  call   <mp_get_nfft_init@plt>
  mov    %ebx,%edi
  mov    %r13,%rcx
  mov    %ebp,%edx
  mov    %eax,%r14d
  lea    0x2(%rax),%eax
  mov    %r12d,%esi
  cmp    %ebx,%eax
  mov    %eax,0x1c(%rsp)
  cmovle %eax,%edi
  call   <mp_invisqrt_init@plt>
  movl   $0x8,0x18(%rsp)
  mov    0x1c(%rsp),%edi
  jmp    L38
  cs nopw 0x0(%rax,%rax,1)
L29:
  mov    %r14d,%r10d
  lea    -0x1(%r15),%edi
  add    %eax,%eax
  mov    %r14d,%edx
  sar    %r10d
  cmp    %eax,%edi
  movl   $0x0,0x18(%rsp)
  cmovg  %r10d,%edx
  mov    %edx,%r14d
  add    %r14d,%r14d
  cmp    %r14d,0x60(%rsp)
  jl     L50
L24:
  lea    0x2(%r14),%edi
L38:
  cmp    %ebx,%edi
  mov    %ebp,%edx
  mov    %r13,%rcx
  mov    %r12d,%esi
  cmovg  %ebx,%edi
  sub    $0x8,%rsp
  push   0x78(%rsp)
  push   0x78(%rsp)
  mov    %edi,%r15d
  push   %r14
  mov    0x30(%rsp),%r9
  mov    0x28(%rsp),%r8
  call   <mp_invisqrt_newton@plt>
  mov    0x38(%rsp),%edx
  add    $0x20,%rsp
  imul   %r14d,%edx
  cmp    0x60(%rsp),%edx
  jge    L29
  lea    (%rax,%rax,2),%edx
  lea    -0x2(%r15),%edi
  mov    %r14d,%eax
  sar    %eax
  cmp    %edi,%edx
  cmovl  %eax,%r14d
  add    %r14d,%r14d
  cmp    %r14d,0x60(%rsp)
  jge    L24
L50:
  xor    %eax,%eax
L41:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L44:
  mov    $0xffffffff,%eax
  jmp    L41
```

assistant: ```c
int mp_invisqrt(int n, int radix, int in, int out[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]) {
  int mp_get_nfft_init(int radix, int nfft_max);
  void mp_invisqrt_init(int n, int radix, int in, int out[]);
  int mp_invisqrt_newton(int n, int radix, int in, int inout[], int tmp1[], int tmp2[], int nfft, double tmp1fft[], double tmp2fft[]);
  int n_nwt, nfft_nwt, thr, prc;
  if (in <= 0) {
    return -1;
  }
  nfft_nwt = mp_get_nfft_init(radix, nfft);
  n_nwt = nfft_nwt + 2;
  if (n_nwt > n) {
    n_nwt = n;
  }
  mp_invisqrt_init(n_nwt, radix, in, out);
  thr = 8;
  do {
    n_nwt = nfft_nwt + 2;
    if (n_nwt > n) {
      n_nwt = n;
    }
    prc = mp_invisqrt_newton(n_nwt, radix, in, out, tmp1, tmp2, nfft_nwt, tmp1fft, tmp2fft);
    if (thr * nfft_nwt >= nfft) {
      thr = 0;
      if (2 * prc <= n_nwt - 2) {
        nfft_nwt >>= 1;
      }
    } else {
      if (3 * prc < n_nwt - 2) {
        nfft_nwt >>= 1;
      }
    }
    nfft_nwt <<= 1;
  } while (nfft_nwt <= nfft);
  return 0;
}
```