user: 这段汇编代码用C语言表示是什么样的？

```asm
<detrend>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm2
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  test   %rdi,%rdi
  jle    L73
  ucomisd %xmm0,%xmm0
  pxor   %xmm5,%xmm5
  mov    %rdx,%r13
  mov    %rdi,%rbp
  movapd %xmm5,%xmm6
  movapd %xmm5,%xmm7
  movapd %xmm5,%xmm4
  mov    %rsi,%r12
  setp   %dl
  xor    %eax,%eax
  xor    %r14d,%r14d
  jmp    L2
  cs nopw 0x0(%rax,%rax,1)
L84:
  ucomisd %xmm2,%xmm2
  jnp    L36
  ucomisd %xmm0,%xmm0
  jp     L86
L36:
  pxor   %xmm1,%xmm1
  addsd  %xmm0,%xmm6
  add    $0x1,%r14
  cvtsi2sd %rax,%xmm1
  mulsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm4
  mulsd  %xmm1,%xmm1
  addsd  %xmm0,%xmm5
  addsd  %xmm1,%xmm7
L86:
  add    $0x1,%rax
  cmp    %rax,%rbp
  je     L60
L2:
  movsd  (%r12,%rax,8),%xmm0
  ucomisd %xmm0,%xmm0
  jp     L84
  test   %dl,%dl
  jne    L84
  comisd %xmm0,%xmm2
  ja     L36
  comisd %xmm2,%xmm0
  ja     L36
  add    $0x1,%rax
  cmp    %rax,%rbp
  jne    L2
  nop
L60:
  cvttsd2si %xmm4,%rdi
  movapd %xmm4,%xmm0
  movapd %xmm2,%xmm1
  xor    %ebx,%ebx
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm7,0x18(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  mov    %r14,%rdi
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x18(%rsp),%xmm7
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  movapd %xmm2,%xmm3
  movapd %xmm7,%xmm0
  call   <_FSUB_@plt>
  movsd  0x20(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm2
  mov    %rax,%r15
  cvttsd2si %xmm6,%rdi
  movapd %xmm4,%xmm0
  movsd  %xmm6,0x18(%rsp)
  movapd %xmm2,%xmm1
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  mov    %r14,%rdi
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x28(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  movapd %xmm2,%xmm3
  movapd %xmm5,%xmm0
  call   <_FSUB_@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm2
  mov    %r15,%rdi
  cvtsi2sd %rax,%xmm0
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm2
  mov    %r14,%rdi
  movq   %xmm0,%r15
  movapd %xmm2,%xmm1
  movapd %xmm4,%xmm0
  call   <_FDIV_@plt>
  movq   %r15,%xmm7
  movsd  0x8(%rsp),%xmm2
  cvttsd2si %xmm7,%rdi
  movapd %xmm2,%xmm1
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm6
  mov    %r14,%rdi
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm2,%xmm1
  movapd %xmm6,%xmm0
  call   <_FDIV_@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm4
  movapd %xmm2,%xmm3
  movapd %xmm4,%xmm1
  call   <_FSUB_@plt>
  pxor   %xmm7,%xmm7
  movsd  0x8(%rsp),%xmm2
  cvtsi2sd %rax,%xmm7
  movq   %xmm7,%r14
  nopl   0x0(%rax)
L72:
  mov    %rbx,%rdi
  movapd %xmm2,%xmm1
  movq   %r15,%xmm0
  movsd  %xmm2,0x8(%rsp)
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  movq   %r14,%xmm0
  movapd %xmm2,%xmm3
  call   <_FADD_@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  movsd  (%r12,%rbx,8),%xmm0
  movapd %xmm2,%xmm3
  call   <_FSUB_@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm2
  cvtsi2sd %rax,%xmm0
  movsd  %xmm0,0x0(%r13,%rbx,8)
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L72
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L73:
  movapd %xmm0,%xmm1
  movsd  %xmm0,0x8(%rsp)
  xor    %edi,%edi
  pxor   %xmm0,%xmm0
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  xor    %edi,%edi
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  movapd %xmm2,%xmm3
  call   <_FSUB_@plt>
  movsd  0x8(%rsp),%xmm2
  xor    %edi,%edi
  pxor   %xmm0,%xmm0
  mov    %rax,%rbp
  movapd %xmm2,%xmm1
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  xor    %edi,%edi
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  movapd %xmm2,%xmm3
  call   <_FSUB_@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm2
  mov    %rbp,%rdi
  cvtsi2sd %rax,%xmm0
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x8(%rsp),%xmm2
  xor    %edi,%edi
  movq   %xmm0,%rbx
  pxor   %xmm0,%xmm0
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movq   %rbx,%xmm7
  movsd  0x8(%rsp),%xmm2
  cvttsd2si %xmm7,%rdi
  movapd %xmm2,%xmm1
  call   <_FMUL_@plt>
  movsd  0x8(%rsp),%xmm2
  xor    %edi,%edi
  movsd  %xmm0,0x10(%rsp)
  pxor   %xmm0,%xmm0
  movapd %xmm2,%xmm1
  call   <_FDIV_@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm4
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  movapd %xmm2,%xmm3
  pop    %r12
  movapd %xmm4,%xmm1
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <_FSUB_@plt>
```

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);
}
```