user: 请从给定的汇编指令推导出C源代码:

```asm
<addnod_>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  subq   $0x4,0x18(%rbp)
  subq   $0x8,-0x38(%rbp)
  subq   $0x8,-0x30(%rbp)
  subq   $0x8,-0x28(%rbp)
  subq   $0x4,-0x40(%rbp)
  subq   $0x4,0x10(%rbp)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,D199(%rip)
  mov    D199(%rip),%eax
  cmp    $0x3,%eax
  jle    L15
  mov    D199(%rip),%eax
  sub    $0x1,%eax
  mov    %eax,D85(%rip)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,D92(%rip)
  mov    D92(%rip),%eax
  test   %eax,%eax
  jg     L165
  mov    D85(%rip),%eax
  mov    %eax,D967(%rip)
L165:
  mov    D199(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,D967(%rip)
  mov    D199(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,D391(%rip)
  mov    D199(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,D932(%rip)
  mov    0x18(%rbp),%rax
  lea    0x4(%rax),%rsi
  mov    0x10(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    -0x40(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x38(%rbp),%rax
  lea    0x8(%rax),%r9
  mov    -0x30(%rbp),%rax
  lea    0x8(%rax),%r8
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  sub    $0x8,%rsp
  lea    D966(%rip),%rdi
  push   %rdi
  lea    D773(%rip),%rdi
  push   %rdi
  lea    D427(%rip),%rdi
  push   %rdi
  lea    D998(%rip),%rdi
  push   %rdi
  lea    D368(%rip),%rdi
  push   %rdi
  lea    D945(%rip),%rdi
  push   %rdi
  push   %rsi
  push   %rcx
  push   %rdx
  mov    %rax,%rcx
  lea    D85(%rip),%rax
  mov    %rax,%rdx
  lea    D967(%rip),%rax
  mov    %rax,%rsi
  lea    D967(%rip),%rax
  mov    %rax,%rdi
  call   <trfind_@plt>
  add    $0x50,%rsp
  mov    D427(%rip),%eax
  test   %eax,%eax
  je     L13
  mov    D966(%rip),%eax
  test   %eax,%eax
  je     L333
  mov    D427(%rip),%eax
  mov    %eax,D332(%rip)
  movsd  D967(%rip),%xmm0
  mov    D332(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L353
  ucomisd %xmm1,%xmm0
  jne    L353
  movsd  D391(%rip),%xmm0
  mov    D332(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L353
  ucomisd %xmm1,%xmm0
  jne    L353
  movsd  D932(%rip),%xmm0
  mov    D332(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L353
  ucomisd %xmm1,%xmm0
  je     L38
L353:
  mov    D773(%rip),%eax
  mov    %eax,D724(%rip)
  movsd  D967(%rip),%xmm0
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L189
  ucomisd %xmm1,%xmm0
  jne    L189
  movsd  D391(%rip),%xmm0
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L189
  ucomisd %xmm1,%xmm0
  jne    L189
  movsd  D932(%rip),%xmm0
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L189
  ucomisd %xmm1,%xmm0
  je     L64
L189:
  mov    D966(%rip),%eax
  mov    %eax,D724(%rip)
  movsd  D967(%rip),%xmm0
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L68
  ucomisd %xmm1,%xmm0
  jne    L68
  movsd  D391(%rip),%xmm0
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L68
  ucomisd %xmm1,%xmm0
  jne    L68
  movsd  D932(%rip),%xmm0
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L68
  ucomisd %xmm1,%xmm0
  je     L303
L68:
  mov    0x18(%rbp),%rax
  add    $0x4,%rax
  mov    0x10(%rbp),%rdx
  lea    0x4(%rdx),%rcx
  mov    -0x40(%rbp),%rdx
  add    $0x4,%rdx
  push   0x20(%rbp)
  push   %rax
  mov    %rcx,%r9
  mov    %rdx,%r8
  lea    D966(%rip),%rax
  mov    %rax,%rcx
  lea    D773(%rip),%rax
  mov    %rax,%rdx
  lea    D427(%rip),%rax
  mov    %rax,%rsi
  lea    D199(%rip),%rax
  mov    %rax,%rdi
  call   <intadd_@plt>
  add    $0x10,%rsp
  jmp    L73
L333:
  mov    D427(%rip),%edx
  mov    D773(%rip),%eax
  cmp    %eax,%edx
  je     L319
  mov    0x18(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    0x10(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x40(%rbp),%rax
  add    $0x4,%rax
  sub    $0x8,%rsp
  push   0x20(%rbp)
  mov    %rcx,%r9
  mov    %rdx,%r8
  mov    %rax,%rcx
  lea    D773(%rip),%rax
  mov    %rax,%rdx
  lea    D427(%rip),%rax
  mov    %rax,%rsi
  lea    D199(%rip),%rax
  mov    %rax,%rdi
  call   <bdyadd_@plt>
  add    $0x10,%rsp
  jmp    L73
L319:
  mov    0x18(%rbp),%rax
  lea    0x4(%rax),%rsi
  mov    0x10(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x40(%rbp),%rax
  add    $0x4,%rax
  mov    0x20(%rbp),%rcx
  mov    %rcx,%r9
  mov    %rsi,%r8
  mov    %rdx,%rcx
  mov    %rax,%rdx
  lea    D427(%rip),%rax
  mov    %rax,%rsi
  lea    D199(%rip),%rax
  mov    %rax,%rdi
  call   <covsph_@plt>
L73:
  mov    0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    D199(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,D724(%rip)
  mov    D724(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,D839(%rip)
  mov    D839(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,D875(%rip)
  mov    D839(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,D950(%rip)
  mov    D950(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,D922(%rip)
L304:
  mov    0x10(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    -0x40(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    D922(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    0x18(%rbp),%rax
  add    %rsi,%rax
  lea    D875(%rip),%rsi
  mov    %rax,%rdi
  call   <lstptr_@plt>
  mov    %eax,D6(%rip)
  mov    D6(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L100
  mov    D6(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,D6(%rip)
  mov    D6(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,D6(%rip)
  mov    D950(%rip),%eax
  mov    %eax,D602(%rip)
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  mov    -0x30(%rbp),%rdx
  lea    0x8(%rdx),%rcx
  mov    -0x28(%rbp),%rdx
  add    $0x8,%rdx
  sub    $0x8,%rsp
  push   %rax
  mov    %rcx,%r9
  mov    %rdx,%r8
  lea    D875(%rip),%rax
  mov    %rax,%rcx
  lea    D922(%rip),%rax
  mov    %rax,%rdx
  lea    D199(%rip),%rax
  mov    %rax,%rsi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <swptst_@plt>
  add    $0x10,%rsp
  test   %eax,%eax
  je     L102
  mov    0x18(%rbp),%rax
  add    $0x4,%rax
  mov    0x10(%rbp),%rdx
  lea    0x4(%rdx),%rsi
  mov    -0x40(%rbp),%rdx
  lea    0x4(%rdx),%rcx
  lea    D950(%rip),%rdx
  push   %rdx
  push   %rax
  mov    %rsi,%r9
  mov    %rcx,%r8
  lea    D875(%rip),%rax
  mov    %rax,%rcx
  lea    D922(%rip),%rax
  mov    %rax,%rdx
  lea    D199(%rip),%rax
  mov    %rax,%rsi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <swap_@plt>
  add    $0x10,%rsp
  mov    D950(%rip),%eax
  test   %eax,%eax
  jne    L49
  mov    D602(%rip),%eax
  mov    %eax,D383(%rip)
  jmp    L309
L49:
  mov    D6(%rip),%eax
  mov    %eax,D383(%rip)
  jmp    L304
L100:
  nop
  jmp    L309
L102:
  nop
L309:
  mov    D383(%rip),%edx
  mov    D839(%rip),%eax
  cmp    %eax,%edx
  je     L256
  mov    D383(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L262
L256:
  mov    $0x0,%eax
  jmp    L181
L262:
  mov    D383(%rip),%eax
  mov    %eax,D383(%rip)
  mov    D383(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,D383(%rip)
  mov    D383(%rip),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,D383(%rip)
  jmp    L304
L15:
  nop
  mov    0x28(%rbp),%rax
  movl   $0xffffffff,(%rax)
  mov    $0x0,%eax
  jmp    L181
L13:
  nop
  mov    0x28(%rbp),%rax
  movl   $0xfffffffe,(%rax)
  mov    $0x0,%eax
  jmp    L181
L38:
  nop
  jmp    L86
L64:
  nop
  jmp    L86
L303:
  nop
L86:
  mov    D724(%rip),%edx
  mov    0x28(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
L181:
  leave
  ret
```

assistant: ```c
int addnod_(int *nst, int *k, double *x, double *y, double *z__, int *list, int *lptr, int *lend, int *lnew, int *ier) {
  int i__1;
  static int l;
  static double p[3], b1, b2, b3;
  static int i1, i2, i3, kk, lp, in1, io1, io2, km1, lpf, ist, lpo1;
  static int lpo1s;
  --lend;
  --z__;
  --y;
  --x;
  --list;
  --lptr;
  kk = *k;
  if (kk < 4) {
    goto L3;
  }
  km1 = kk - 1;
  ist = *nst;
  if (ist < 1) {
    ist = km1;
  }
  p[0] = x[kk];
  p[1] = y[kk];
  p[2] = z__[kk];
  trfind_(&ist, p, &km1, &x[1], &y[1], &z__[1], &list[1], &lptr[1], &lend[1], &b1, &b2, &b3, &i1, &i2, &i3);
  if (i1 == 0) {
    goto L4;
  }
  if (i3 != 0) {
    l = i1;
    if (p[0] == x[l] && p[1] == y[l] && p[2] == z__[l]) {
      goto L5;
    }
    l = i2;
    if (p[0] == x[l] && p[1] == y[l] && p[2] == z__[l]) {
      goto L5;
    }
    l = i3;
    if (p[0] == x[l] && p[1] == y[l] && p[2] == z__[l]) {
      goto L5;
    }
    intadd_(&kk, &i1, &i2, &i3, &list[1], &lptr[1], &lend[1], lnew);
  } else {
    if (i1 != i2) {
      bdyadd_(&kk, &i1, &i2, &list[1], &lptr[1], &lend[1], lnew);
    } else {
      covsph_(&kk, &i1, &list[1], &lptr[1], &lend[1], lnew);
    }
  }
  *ier = 0;
  lp = lend[kk];
  lpf = lptr[lp];
  io2 = list[lpf];
  lpo1 = lptr[lpf];
  io1 = (i__1 = list[lpo1], ((i__1) >= 0 ? (i__1) : -(i__1)));
L1:
  lp = lstptr_(&lend[io1], &io2, &list[1], &lptr[1]);
  if (list[lp] < 0) {
    goto L2;
  }
  lp = lptr[lp];
  in1 = (i__1 = list[lp], ((i__1) >= 0 ? (i__1) : -(i__1)));
  lpo1s = lpo1;
  if (!swptst_(&in1, &kk, &io1, &io2, &x[1], &y[1], &z__[1])) {
    goto L2;
  }
  swap_(&in1, &kk, &io1, &io2, &list[1], &lptr[1], &lend[1], &lpo1);
  if (lpo1 == 0) {
    lpo1 = lpo1s;
    goto L2;
  }
  io1 = in1;
  goto L1;
L2:
  if (lpo1 == lpf || list[lpo1] < 0) {
    return 0;
  }
  io2 = io1;
  lpo1 = lptr[lpo1];
  io1 = (i__1 = list[lpo1], ((i__1) >= 0 ? (i__1) : -(i__1)));
  goto L1;
L3:
  *ier = -1;
  return 0;
L4:
  *ier = -2;
  return 0;
L5:
  *ier = l;
  return 0;
}
```