user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<detrend>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x68(%rbp)
  movsd  %xmm0,-0x70(%rbp)
  mov    %rsi,-0x78(%rbp)
  mov    %rdx,-0x80(%rbp)
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  jmp    L78
L93:
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L131
  ucomisd %xmm1,%xmm0
  jne    L131
  movsd  -0x70(%rbp),%xmm0
  ucomisd -0x70(%rbp),%xmm0
  jnp    L71
L131:
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L27
  ucomisd %xmm1,%xmm0
  je     L107
L27:
  movsd  -0x70(%rbp),%xmm0
  ucomisd -0x70(%rbp),%xmm0
  jp     L0
L107:
  mov    $0x1,%eax
  jmp    L104
L0:
  mov    $0x0,%eax
L104:
  and    $0x1,%eax
  jmp    L154
L71:
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L123
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x70(%rbp),%xmm0
  jbe    L44
L123:
  mov    $0x1,%eax
  jmp    L90
L44:
  mov    $0x0,%eax
L90:
  and    $0x1,%eax
L154:
  test   %al,%al
  je     L66
  pxor   %xmm0,%xmm0
  cvtsi2sdq -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x50(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x18(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  -0x48(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  addq   $0x1,-0x60(%rbp)
L66:
  addq   $0x1,-0x58(%rbp)
L78:
  mov    -0x58(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jl     L93
  movsd  -0x50(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x50(%rbp),%rdx
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %rax,%rdi
  call   <_FMUL_@plt>
  movq   %xmm0,%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x60(%rbp),%rdx
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %rdx,%rdi
  movq   %rax,%xmm0
  call   <_FDIV_@plt>
  movq   %xmm0,%rdx
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x48(%rbp),%rax
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm2
  movq   %rdx,%xmm1
  movq   %rax,%xmm0
  call   <_FSUB_@plt>
  mov    %rax,%rbx
  movsd  -0x40(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x50(%rbp),%rdx
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %rax,%rdi
  call   <_FMUL_@plt>
  movq   %xmm0,%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x60(%rbp),%rdx
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %rdx,%rdi
  movq   %rax,%xmm0
  call   <_FDIV_@plt>
  movq   %xmm0,%rdx
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x38(%rbp),%rax
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm2
  movq   %rdx,%xmm1
  movq   %rax,%xmm0
  call   <_FSUB_@plt>
  pxor   %xmm4,%xmm4
  cvtsi2sd %rax,%xmm4
  movq   %xmm4,%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %rbx,%rdi
  movq   %rax,%xmm0
  call   <_FDIV_@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x60(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %rdx,%rdi
  movq   %rax,%xmm0
  call   <_FDIV_@plt>
  movq   %xmm0,%rax
  movsd  -0x28(%rbp),%xmm0
  cvttsd2si %xmm0,%rdx
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  mov    %rdx,%rdi
  call   <_FMUL_@plt>
  movq   %xmm0,%rbx
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x60(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %rdx,%rdi
  movq   %rax,%xmm0
  call   <_FDIV_@plt>
  movq   %xmm0,%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm2
  movq   %rbx,%xmm1
  movq   %rax,%xmm0
  call   <_FSUB_@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movq   $0x0,-0x58(%rbp)
  jmp    L47
L145:
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x28(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %rax,%rdi
  call   <_FMUL_@plt>
  movq   %xmm0,%rdx
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm2
  movq   %rdx,%xmm1
  movq   %rax,%xmm0
  call   <_FADD_@plt>
  movq   %xmm0,%rdx
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm1,%xmm3
  movapd %xmm0,%xmm2
  movq   %rdx,%xmm1
  movq   %rax,%xmm0
  call   <_FSUB_@plt>
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0x80(%rbp),%rax
  add    %rcx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  movsd  %xmm0,(%rax)
  addq   $0x1,-0x58(%rbp)
L47:
  mov    -0x58(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jl     L145
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void detrend(long nts, double missval1, double *array1, double *array2) {
  long n;
  long j;
  double zj;
  double sumj, sumjj;
  double sumx, sumjx;
  double work1, work2;
  double missval2 = missval1;
  sumx = sumjx = 0;
  sumj = sumjj = 0;
  n = 0;
  for (j = 0; j < nts; j++)
    if (!(((array1[j]) != (array1[j])) || ((missval1) != (missval1)) ? (((array1[j]) != (array1[j])) && ((missval1) != (missval1)) ? 1 : 0) : !(array1[j] < missval1 || missval1 < array1[j]))) {
      zj = j;
      sumx += array1[j];
      sumjx += zj * array1[j];
      sumj += zj;
      sumjj += zj * zj;
      n++;
    }
  work1 = _FDIV_(_FSUB_(sumjx, _FDIV_(_FMUL_(sumx, sumj, missval1, missval2), n, missval1, missval2), missval1, missval2), _FSUB_(sumjj, _FDIV_(_FMUL_(sumj, sumj, missval1, missval2), n, missval1, missval2), missval1, missval2), missval1, missval2);
  work2 = _FSUB_(_FDIV_(sumx, n, missval1, missval2), _FMUL_(work1, _FDIV_(sumj, n, missval1, missval2), missval1, missval2), missval1, missval2);
  for (j = 0; j < nts; j++)
    array2[j] = _FSUB_(array1[j], _FADD_(work2, _FMUL_(j, work1, missval1, missval2), missval1, missval2), missval1, missval2);
}
```