user: 请将以下的汇编代码转换成C语言代码：

```asm
<delnod_>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdx,0x18(%rsp)
  movslq (%rdi),%rdx
  mov    $0x1,%edi
  mov    %rcx,0x28(%rsp)
  mov    0xe0(%rsp),%rbx
  mov    %edx,D899(%rip)
  mov    (%rsi),%ecx
  mov    %rsi,0x30(%rsp)
  cmp    %ecx,%edx
  mov    %ecx,D960(%rip)
  setg   %al
  test   %edx,%edx
  mov    %r8,0x20(%rsp)
  setle  %sil
  or     %esi,%eax
  cmp    $0x3,%ecx
  setle  %cl
  or     %cl,%al
  mov    %al,0x38(%rsp)
  je     L564
L134:
  mov    0x108(%rsp),%rax
  mov    %edi,(%rax)
  add    $0xa8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L564:
  mov    0xf8(%rsp),%rax
  mov    (%rax),%r8d
  test   %r8d,%r8d
  js     L134
  lea    -0x4(%rbx),%r15
  mov    %rbx,%rsi
  lea    -0x4(%r9),%rbp
  mov    %r9,%r13
  mov    0xe8(%rsp),%rax
  lea    D180(%rip),%rdi
  sub    $0x4,%rax
  mov    %rax,0x8(%rsp)
  movslq (%rax,%rdx,4),%rax
  mov    %eax,D1401(%rip)
  mov    (%r15,%rax,4),%eax
  mov    %eax,D1401(%rip)
  xor    %eax,%eax
  call   <nbcnt_@plt>
  movslq D1401(%rip),%rdx
  mov    %eax,D457(%rip)
  mov    0x0(%rbp,%rdx,4),%edx
  mov    %edx,%esi
  shr    $0x1f,%esi
  mov    %esi,D429(%rip)
  test   %edx,%edx
  jns    L678
  add    $0x1,%eax
  mov    %eax,D954(%rip)
L678:
  cmp    $0x2,%eax
  jle    L546
  mov    0xf8(%rsp),%rdi
  lea    -0x3(%rax),%edx
  mov    (%rdi),%ecx
  mov    %edx,(%rdi)
  mov    $0x2,%edi
  cmp    %edx,%ecx
  jl     L134
  mov    0x20(%rsp),%rdi
  mov    0x18(%rsp),%rcx
  movl   $0x0,D954(%rip)
  lea    -0x8(%rdi),%r12
  mov    0x28(%rsp),%rdi
  lea    -0x8(%rcx),%r14
  sub    $0x8,%rdi
  mov    %rdi,0x48(%rsp)
  cmp    $0x3,%eax
  je     L491
  mov    0x100(%rsp),%rax
  movslq D1401(%rip),%rdx
  mov    %r15,0x10(%rsp)
  sub    $0xc,%rax
  mov    %rax,0x40(%rsp)
  movslq D899(%rip),%rax
  movsd  (%r14,%rax,8),%xmm0
  movsd  %xmm0,D1374(%rip)
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,D1556(%rip)
  movsd  (%r12,%rax,8),%xmm0
  movslq 0x0(%rbp,%rdx,4),%rax
  movsd  %xmm0,D1547(%rip)
  movsd  (%r14,%rax,8),%xmm0
  mov    %rax,%rcx
  mov    %eax,D1440(%rip)
  movslq (%r15,%rdx,4),%rdx
  movsd  %xmm0,D619(%rip)
  movsd  (%rdi,%rax,8),%xmm0
  mov    %eax,D586(%rip)
  movsd  %xmm0,D1149(%rip)
  movsd  (%r12,%rax,8),%xmm0
  movslq 0x0(%rbp,%rdx,4),%rax
  movsd  %xmm0,D1613(%rip)
  movsd  (%r14,%rax,8),%xmm0
  mov    %eax,D1489(%rip)
  movsd  %xmm0,D761(%rip)
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,D109(%rip)
  movsd  (%r12,%rax,8),%xmm0
  mov    (%r15,%rdx,4),%eax
  mov    %rdi,%r15
  mov    %eax,D1290(%rip)
  movsd  %xmm0,D282(%rip)
  jmp    L668
  cs nopw 0x0(%rax,%rax,1)
L251:
  cltq
  mov    0x8(%rsp),%rdi
  movsd  (%r14,%rax,8),%xmm0
  movsd  %xmm0,D710(%rip)
  movsd  (%r15,%rax,8),%xmm0
  movsd  %xmm0,D304(%rip)
  movsd  (%r12,%rax,8),%xmm0
  movslq D1489(%rip),%rax
  movslq (%rdi,%rax,4),%rax
  movsd  %xmm0,D314(%rip)
  mov    %eax,D97(%rip)
  test   %esi,%esi
  je     L454
L269:
  mov    0x0(%rbp,%rax,4),%esi
  test   %esi,%esi
  js     L106
  sub    $0x8,%rsp
  lea    D282(%rip),%rax
  lea    D1613(%rip),%r9
  push   %rax
  lea    D109(%rip),%rax
  lea    D1149(%rip),%r8
  push   %rax
  lea    D761(%rip),%rax
  lea    D619(%rip),%rcx
  push   %rax
  lea    D314(%rip),%rdx
  lea    D304(%rip),%rsi
  xor    %eax,%eax
  lea    D710(%rip),%rdi
  call   <left_@plt>
  add    $0x20,%rsp
  test   %eax,%eax
  je     L540
L106:
  lea    D1338(%rip),%rax
  mov    %rbx,%r9
  mov    %r13,%r8
  push   %rax
  lea    D164(%rip),%r10
  xor    %eax,%eax
  lea    D1489(%rip),%rcx
  push   0xf0(%rsp)
  lea    D899(%rip),%rdx
  mov    %r10,%rdi
  lea    D1440(%rip),%rsi
  call   <swap_@plt>
  mov    D1338(%rip),%ecx
  pop    %rax
  lea    D164(%rip),%r10
  pop    %rdx
  test   %ecx,%ecx
  je     L540
  mov    D954(%rip),%eax
  mov    D164(%rip),%edx
  xor    %ecx,%ecx
  mov    0x40(%rsp),%rdi
  add    $0x1,%eax
  mov    %eax,D600(%rip)
  add    %eax,%eax
  cmp    D899(%rip),%edx
  setg   %cl
  cltq
  sub    %ecx,%edx
  xor    %ecx,%ecx
  mov    %edx,0x4(%rdi,%rax,4)
  mov    D600(%rip),%eax
  mov    D1440(%rip),%edx
  add    %eax,%eax
  cmp    D899(%rip),%edx
  setg   %cl
  cltq
  sub    %ecx,%edx
  mov    %edx,0x8(%rdi,%rax,4)
  mov    0x8(%rsp),%rdi
  movslq D899(%rip),%rax
  movslq (%rdi,%rax,4),%rax
  mov    D954(%rip),%edi
  lea    -0x1(%rdi),%edx
  mov    0x10(%rsp),%rdi
  mov    %eax,D600(%rip)
  mov    %edx,D600(%rip)
  lea    (%rdi,%rax,4),%rcx
  cmp    $0x3,%edx
  je     L187
  movslq (%rcx),%rax
  mov    %r13,%rdx
  mov    %rbx,%rcx
  mov    %r10,%rsi
  lea    D600(%rip),%rdi
  mov    %eax,D600(%rip)
  mov    0x0(%rbp,%rax,4),%eax
  mov    %eax,D600(%rip)
  xor    %eax,%eax
  call   <lstptr_@plt>
  mov    D1440(%rip),%edx
  mov    D600(%rip),%ecx
  mov    %eax,D600(%rip)
  cmp    %ecx,%edx
  je     L140
  mov    %edx,D600(%rip)
  mov    0x10(%rsp),%rsi
  movslq D1338(%rip),%rdx
  movsd  D619(%rip),%xmm0
  movslq (%rsi,%rdx,4),%rdx
  movsd  %xmm0,D600(%rip)
  movsd  D1149(%rip),%xmm0
  mov    %edx,D600(%rip)
  movslq (%rsi,%rdx,4),%rdx
  movsd  %xmm0,D600(%rip)
  movsd  D1613(%rip),%xmm0
  mov    %edx,D600(%rip)
  mov    0x0(%rbp,%rdx,4),%esi
  movsd  %xmm0,D600(%rip)
  mov    %esi,%edx
  neg    %edx
  cmovs  %esi,%edx
  mov    %edx,D600(%rip)
  movslq %edx,%rdx
  movsd  (%r14,%rdx,8),%xmm0
  movsd  %xmm0,D600(%rip)
  movsd  (%r15,%rdx,8),%xmm0
  movsd  %xmm0,D600(%rip)
  movsd  (%r12,%rdx,8),%xmm0
  movsd  %xmm0,D600(%rip)
L226:
  mov    D429(%rip),%esi
L668:
  cltq
  mov    0x0(%rbp,%rax,4),%edx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  mov    %eax,D600(%rip)
  cmp    %ecx,%eax
  jne    L251
  test   %esi,%esi
  je     L251
  mov    0x10(%rsp),%r15
  movslq D600(%rip),%rdx
  nopl   0x0(%rax)
L138:
  mov    0xf0(%rsp),%rax
  mov    %r15,0x8(%rsp)
  lea    D600(%rip),%r12
  lea    D899(%rip),%r14
  mov    %rbp,0x10(%rsp)
  mov    0x30(%rsp),%r15
  mov    %rbx,%rbp
  mov    (%rax),%eax
  mov    0xe8(%rsp),%rbx
  mov    %eax,D600(%rip)
  jmp    L558
  nopw   0x0(%rax,%rax,1)
L235:
  mov    D600(%rip),%eax
  mov    D600(%rip),%esi
  cmp    %esi,%eax
  jne    L451
  mov    %ecx,D1234(%rip)
  mov    %ecx,%eax
L451:
  movslq D600(%rip),%rdx
  cmp    %edx,%esi
  jne    L239
  mov    %ecx,D1234(%rip)
  movslq %ecx,%rdx
L239:
  cmp    %edx,%eax
  je     L634
L558:
  mov    0x8(%rsp),%rax
  mov    0x10(%rsp),%rdi
  mov    %r13,%rcx
  mov    %r14,%rsi
  mov    %rbx,%r9
  mov    %rbp,%r8
  movslq (%rax,%rdx,4),%rax
  mov    (%rdi,%rax,4),%edx
  mov    %eax,D1234(%rip)
  mov    %r12,%rdi
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  mov    %r15,%rdx
  mov    %eax,D1234(%rip)
  lea    D1234(%rip),%rax
  push   %rax
  lea    D600(%rip),%rax
  push   %rax
  xor    %eax,%eax
  call   <delnb_@plt>
  mov    D1234(%rip),%ecx
  pop    %rsi
  pop    %rdi
  test   %ecx,%ecx
  jns    L235
L546:
  mov    $0x3,%edi
  jmp    L134
  nopl   0x0(%rax,%rax,1)
L454:
  sub    $0x8,%rsp
  lea    D1547(%rip),%rax
  lea    D304(%rip),%r8
  push   %rax
  lea    D1556(%rip),%rax
  lea    D314(%rip),%r9
  push   %rax
  lea    D1374(%rip),%rax
  lea    D710(%rip),%rcx
  push   %rax
  lea    D600(%rip),%rdx
  lea    D600(%rip),%rsi
  xor    %eax,%eax
  lea    D600(%rip),%rdi
  call   <left_@plt>
  add    $0x20,%rsp
  mov    %eax,%r8d
  movslq D97(%rip),%rax
  test   %r8d,%r8d
  jne    L269
L540:
  movsd  D600(%rip),%xmm0
  mov    D1234(%rip),%eax
  mov    D600(%rip),%ecx
  movsd  %xmm0,D1651(%rip)
  movsd  D600(%rip),%xmm0
  mov    %eax,D1651(%rip)
  movsd  %xmm0,D1651(%rip)
  movsd  D600(%rip),%xmm0
  movsd  %xmm0,D1651(%rip)
L405:
  cmp    %ecx,%eax
  je     L623
  mov    D600(%rip),%eax
  movsd  D710(%rip),%xmm0
  mov    0x10(%rsp),%rdi
  mov    %eax,D1651(%rip)
  movslq D1234(%rip),%rax
  movsd  %xmm0,D1651(%rip)
  movsd  D304(%rip),%xmm0
  mov    (%rdi,%rax,4),%eax
  movsd  %xmm0,D1651(%rip)
  movsd  D314(%rip),%xmm0
  mov    %eax,D1651(%rip)
  movsd  %xmm0,D1651(%rip)
  jmp    L226
  nopl   0x0(%rax)
L140:
  mov    D1651(%rip),%eax
  jmp    L405
  nopl   0x0(%rax,%rax,1)
L634:
  mov    D960(%rip),%r9d
  mov    D899(%rip),%edx
  mov    %rbp,%rbx
  mov    0x8(%rsp),%r15
  mov    0x10(%rsp),%rbp
  lea    -0x1(%r9),%r12d
  mov    %r12d,D1651(%rip)
  cmp    %edx,%r12d
  jl     L2
  mov    %r9d,%ecx
  movslq %edx,%rax
  mov    0x20(%rsp),%r8
  mov    0xe8(%rsp),%r11
  sub    %edx,%ecx
  lea    0x0(,%rax,4),%rdi
  lea    -0x1(%rcx),%esi
  mov    %rdi,0x88(%rsp)
  lea    0x2(%rsi,%rax,1),%rdx
  mov    %rsi,0x90(%rsp)
  lea    -0x8(,%rdx,8),%rcx
  mov    0xe8(%rsp),%rdx
  mov    %rcx,%r10
  lea    -0x4(%rdx,%rdi,1),%rdi
  mov    %r10,0x58(%rsp)
  mov    %rdi,0x70(%rsp)
  lea    0x1(%rax),%rdi
  lea    (%rdi,%rsi,1),%rdx
  mov    %rdi,0x98(%rsp)
  lea    -0x4(%r11,%rdx,4),%r11
  shl    $0x3,%rdx
  mov    %r11,0x68(%rsp)
  lea    0x0(,%rax,8),%r11
  lea    -0x8(%r11),%rdi
  lea    (%r8,%rdi,1),%r14
  mov    %r14,0x10(%rsp)
  mov    0x28(%rsp),%r14
  mov    %r14,%rsi
  add    %rcx,%rsi
  mov    0x18(%rsp),%rcx
  mov    %rsi,0x50(%rsp)
  lea    (%r14,%rdi,1),%rsi
  mov    %rsi,0x8(%rsp)
  mov    %rcx,%rsi
  add    %rcx,%rdi
  lea    -0x8(%rdx),%rcx
  add    %r10,%rsi
  mov    %r8,%r10
  mov    %rsi,0x38(%rsp)
  mov    %r8,%rsi
  mov    %r14,%r8
  add    %rcx,%r8
  add    %rcx,%rsi
  add    0x18(%rsp),%rcx
  mov    %r8,0x48(%rsp)
  mov    %r10,%r8
  lea    (%r10,%r11,1),%r10
  mov    %r10,0x40(%rsp)
  lea    (%r8,%rdx,1),%r10
  mov    %rcx,%r8
  mov    %r14,%rcx
  add    %rcx,%rdx
  lea    (%r14,%r11,1),%r14
  mov    %r8,0x60(%rsp)
  cmp    %rdx,%rdi
  mov    %r14,0x80(%rsp)
  setae  %dl
  cmp    %r14,%r8
  mov    0x8(%rsp),%r8
  setbe  %cl
  or     %ecx,%edx
  cmp    %r8,0x38(%rsp)
  setbe  %cl
  cmp    %rdi,0x48(%rsp)
  setbe  0x8(%rsp)
  movzbl 0x8(%rsp),%r14d
  mov    %r8,0x8(%rsp)
  or     %r14d,%ecx
  and    %edx,%ecx
  cmp    %r8,%rsi
  mov    0x50(%rsp),%r8
  setbe  %dl
  cmp    0x10(%rsp),%r8
  setbe  0x7f(%rsp)
  movzbl 0x7f(%rsp),%r14d
  or     %r14d,%edx
  mov    %r10,%r14
  and    %ecx,%edx
  cmp    0x8(%rsp),%r10
  mov    0x40(%rsp),%r10
  setbe  %cl
  cmp    0x48(%rsp),%r10
  setae  %r8b
  or     %r8d,%ecx
  mov    0x10(%rsp),%r8
  and    %edx,%ecx
  cmp    %rdi,%rsi
  setbe  %dl
  cmp    %r8,0x38(%rsp)
  setbe  %sil
  or     %esi,%edx
  and    %ecx,%edx
  cmp    %r10,0x60(%rsp)
  mov    0x68(%rsp),%r10
  setbe  %cl
  cmp    %rdi,%r14
  mov    0x70(%rsp),%r14
  setbe  %sil
  or     %esi,%ecx
  mov    0x10(%rsp),%rsi
  and    %edx,%ecx
  mov    0x58(%rsp),%rdx
  add    0x20(%rsp),%rdx
  cmp    %rdx,%r14
  setae  %dl
  cmp    %r10,%rsi
  setae  %sil
  or     %esi,%edx
  and    %ecx,%edx
  cmp    %r10,0x8(%rsp)
  setae  %cl
  cmp    %r14,0x50(%rsp)
  setbe  %sil
  or     %esi,%ecx
  test   %cl,%dl
  je     L279
  cmp    %r10,%rdi
  setae  %cl
  cmp    %r14,0x38(%rsp)
  setbe  %dl
  or     %cl,%dl
  je     L279
  mov    0x90(%rsp),%rax
  mov    0x18(%rsp),%rcx
  mov    %r9d,0x50(%rsp)
  add    $0x1,%rax
  lea    (%rcx,%r11,1),%rsi
  lea    0x0(,%rax,8),%rdx
  mov    %rax,0x48(%rsp)
  mov    %rdx,0x38(%rsp)
  call   <memmove@plt>
  mov    0x38(%rsp),%rdx
  mov    0x8(%rsp),%rdi
  mov    0x80(%rsp),%rsi
  call   <memmove@plt>
  mov    0x38(%rsp),%rdx
  mov    0x40(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <memmove@plt>
  mov    0x48(%rsp),%rcx
  mov    0x88(%rsp),%rsi
  mov    %r14,%rdi
  add    0xe8(%rsp),%rsi
  lea    0x0(,%rcx,4),%rdx
  call   <memmove@plt>
  mov    0x50(%rsp),%r9d
L338:
  movl   $0x1,D1651(%rip)
  mov    D600(%rip),%edi
  cmp    $0x1,%edi
  jle    L12
  lea    -0x1(%rdi),%eax
  mov    %r13,%rcx
  lea    0x0(%r13,%rax,4),%rsi
  nopw   0x0(%rax,%rax,1)
L35:
  mov    (%rcx),%eax
  mov    D899(%rip),%edx
  cmp    %edx,%eax
  jle    L353
  sub    $0x1,%eax
  mov    %eax,(%rcx)
  mov    D899(%rip),%edx
L353:
  neg    %edx
  cmp    %eax,%edx
  jle    L119
  add    $0x1,%eax
  mov    %eax,(%rcx)
L119:
  add    $0x4,%rcx
  cmp    %rsi,%rcx
  jne    L35
  mov    %edi,D424(%rip)
L12:
  mov    D1234(%rip),%eax
L2:
  mov    D429(%rip),%edx
  mov    D600(%rip),%r10d
  test   %edx,%edx
  je     L414
  sub    $0x1,%r10d
  mov    %r10d,D424(%rip)
L414:
  mov    %eax,D424(%rip)
  movl   $0x1,D1467(%rip)
  test   %r10d,%r10d
  jle    L542
  mov    0xe8(%rsp),%rdi
  movslq %r12d,%rdx
  lea    -0x2(%r9),%ecx
  shl    $0x2,%rcx
  lea    -0x4(%rdi,%rdx,4),%r11
  movslq %r9d,%rdx
  lea    -0xc(,%rdx,4),%rdx
  sub    %rcx,%rdx
  add    %rdi,%rdx
  xor    %edi,%edi
  nopw   0x0(%rax,%rax,1)
L535:
  mov    D600(%rip),%esi
  movslq %eax,%r9
  lea    (%r15,%r9,4),%r8
  lea    -0x1(%rsi),%ecx
  mov    %ecx,D756(%rip)
  movslq %ecx,%rcx
  mov    (%r8),%esi
  mov    0x0(%rbp,%rcx,4),%ecx
  mov    %ecx,0x0(%rbp,%r9,4)
  movslq D756(%rip),%rcx
  mov    (%r15,%rcx,4),%ecx
  mov    %ecx,(%r8)
  movslq %esi,%rcx
  mov    D756(%rip),%r8d
  lea    (%r15,%rcx,4),%rcx
  cmp    %r8d,(%rcx)
  jne    L659
  mov    %eax,(%rcx)
  mov    D756(%rip),%r8d
L659:
  cmp    %r8d,%esi
  cmove  %eax,%esi
  test   %r12d,%r12d
  jle    L445
  mov    %r11,%rcx
  jmp    L497
  nop
L44:
  sub    $0x4,%rcx
  cmp    %rdx,%rcx
  je     L445
L497:
  cmp    %r8d,(%rcx)
  jne    L44
  mov    %eax,(%rcx)
  mov    D756(%rip),%r8d
L445:
  lea    -0x1(%r8),%ecx
  test   %ecx,%ecx
  jle    L311
  lea    -0x2(%r8),%ecx
  movslq %ecx,%rcx
  jmp    L446
  nopl   0x0(%rax,%rax,1)
L592:
  mov    D756(%rip),%r8d
  sub    $0x1,%rcx
L446:
  cmp    %r8d,(%rbx,%rcx,4)
  jne    L320
  mov    %eax,(%rbx,%rcx,4)
L320:
  test   %ecx,%ecx
  jg     L592
  xor    %ecx,%ecx
L311:
  add    $0x1,%edi
  cmp    %r10d,%edi
  je     L351
  mov    %esi,%eax
  jmp    L535
  nopl   0x0(%rax)
L351:
  add    $0x1,%edi
  mov    %ecx,D756(%rip)
  mov    %edi,D756(%rip)
  mov    %eax,D756(%rip)
  mov    %esi,D756(%rip)
L542:
  mov    0x30(%rsp),%rax
  mov    0xf0(%rsp),%rdi
  mov    %r12d,(%rax)
  mov    D756(%rip),%eax
  mov    %eax,(%rdi)
  mov    D600(%rip),%eax
  test   %eax,%eax
  jg     L174
  xor    %edi,%edi
  jmp    L134
L174:
  shl    $0x2,%eax
  mov    %rbx,%r9
  lea    D600(%rip),%rcx
  mov    %r13,%r8
  mov    %eax,D756(%rip)
  lea    D1283(%rip),%rax
  push   %rax
  lea    D756(%rip),%rax
  push   0x108(%rsp)
  push   %rax
  xor    %eax,%eax
  push   0x100(%rsp)
  mov    0x38(%rsp),%rdi
  mov    0x40(%rsp),%rdx
  mov    0x48(%rsp),%rsi
  call   <optim_@plt>
  add    $0x20,%rsp
  cmpl   $0x1,D1283(%rip)
  mov    $0x5,%edi
  ja     L134
  mov    $0x6,%edi
  je     L134
  xor    %edi,%edi
  jmp    L134
  cs nopw 0x0(%rax,%rax,1)
L623:
  mov    D429(%rip),%r11d
  mov    0x10(%rsp),%r15
  test   %r11d,%r11d
  jne    L622
  mov    D424(%rip),%esi
  cmp    $0x3,%esi
  jle    L197
  movl   $0x1,D429(%rip)
L297:
  movl   $0x1,D756(%rip)
  mov    D1651(%rip),%ecx
  test   %ecx,%ecx
  jle    L556
  mov    0x50(%rsp),%r8d
  movzbl 0x38(%rsp),%r9d
  mov    $0x2,%eax
  mov    0xe8(%rsp),%rdi
  jmp    L121
L613:
  mov    %eax,%r8d
  add    $0x1,%rax
  mov    $0x1,%r9d
  lea    -0x1(%rax),%edx
  cmp    %edx,%ecx
  jl     L63
L121:
  movslq -0x8(%rdi,%rax,4),%rdx
  mov    0x0(%rbp,%rdx,4),%r10d
  test   %r10d,%r10d
  jns    L613
  test   %r9b,%r9b
  je     L15
  mov    %r8d,D1091(%rip)
L15:
  movl   $0x0,D429(%rip)
L376:
  mov    $0x4,%edi
  cmp    $0x3,%esi
  jg     L134
L622:
  movslq D1234(%rip),%rdx
  jmp    L138
L187:
  mov    D429(%rip),%esi
  mov    %rdi,%r15
  mov    %rax,%rdx
L8:
  test   %esi,%esi
  jne    L138
L468:
  movslq (%r15,%rdx,4),%rax
  mov    0x48(%rsp),%r8
  sub    $0x8,%rsp
  movslq 0x0(%rbp,%rax,4),%rcx
  mov    %eax,D1091(%rip)
  mov    %ecx,D1091(%rip)
  movslq (%r15,%rax,4),%rax
  shl    $0x3,%rcx
  lea    (%r8,%rcx,1),%rsi
  lea    (%r12,%rcx,1),%r10
  mov    %eax,D1091(%rip)
  movslq 0x0(%rbp,%rax,4),%rax
  lea    (%r14,%rcx,1),%rdi
  mov    %eax,D1091(%rip)
  shl    $0x3,%rax
  movslq 0x0(%rbp,%rdx,4),%rdx
  lea    (%r12,%rax,1),%rcx
  push   %rcx
  lea    (%r8,%rax,1),%rcx
  add    %r14,%rax
  push   %rcx
  mov    %edx,D1091(%rip)
  shl    $0x3,%rdx
  push   %rax
  lea    (%r14,%rdx,1),%r11
  lea    (%r12,%rdx,1),%r9
  add    %rdx,%r8
  mov    %r11,%rcx
  mov    %r10,%rdx
  xor    %eax,%eax
  call   <left_@plt>
  mov    D424(%rip),%esi
  add    $0x20,%rsp
  mov    %eax,D1091(%rip)
  test   %eax,%eax
  je     L376
  jmp    L297
  nopl   0x0(%rax)
L491:
  movslq D1234(%rip),%rdx
  jmp    L8
L63:
  mov    %r8d,D1091(%rip)
L556:
  movslq D1234(%rip),%rax
  add    $0x1,%esi
  mov    %esi,D1091(%rip)
  negl   0x0(%rbp,%rax,4)
  movslq D1234(%rip),%rdx
  jmp    L138
L279:
  mov    0x18(%rsp),%rdx
  mov    0x28(%rsp),%rcx
  mov    0x20(%rsp),%rsi
  mov    0xe8(%rsp),%rdi
  mov    0x98(%rsp),%r10
  jmp    L637
L633:
  add    $0x1,%r10
L637:
  movsd  (%rdx,%rax,8),%xmm0
  mov    (%rdi,%rax,4),%r8d
  movsd  %xmm0,-0x8(%rdx,%rax,8)
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,-0x8(%rcx,%rax,8)
  movsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,-0x8(%rsi,%rax,8)
  mov    %r8d,-0x4(%rdi,%rax,4)
  mov    %r10,%rax
  cmp    %r10d,%r12d
  jge    L633
  jmp    L338
L197:
  movslq D1234(%rip),%rdx
  jmp    L468
```

assistant: ```c
int delnod_(int *k, int *n, double *x, double *y, double *z__, int *list, int *lptr, int *lend, int *lnew, int *lwk, int *iwk, int *ier) {
  int i__1;
  static int i__, j, n1, n2;
  static double x1, x2, y11, y2, z1, z2;
  static int nl, lp, nn, nr;
  static double xl, yl, zl, xr, yr, zr;
  static int nnb, lp21, lpf, lph, lpl, lpn, iwl, nit, lnw, lpl2;
  static int bdry;
  static int ierr, lwkl;
  static int nfrst;
  iwk -= 3;
  --lend;
  --lptr;
  --list;
  --z__;
  --y;
  --x;
  n1 = *k;
  nn = *n;
  if (n1 < 1 || n1 > nn || nn < 4 || *lwk < 0) {
    goto L21;
  }
  lpl = lend[n1];
  lpf = lptr[lpl];
  nnb = nbcnt_(&lpl, &lptr[1]);
  bdry = list[lpl] < 0;
  if (bdry) {
    ++nnb;
  }
  if (nnb < 3) {
    goto L23;
  }
  lwkl = *lwk;
  *lwk = nnb - 3;
  if (lwkl < *lwk) {
    goto L22;
  }
  iwl = 0;
  if (nnb == 3) {
    goto L3;
  }
  x1 = x[n1];
  y11 = y[n1];
  z1 = z__[n1];
  nfrst = list[lpf];
  nr = nfrst;
  xr = x[nr];
  yr = y[nr];
  zr = z__[nr];
  lp = lptr[lpf];
  n2 = list[lp];
  x2 = x[n2];
  y2 = y[n2];
  z2 = z__[n2];
  lp = lptr[lp];
L1:
  nl = (i__1 = list[lp], ((i__1) >= 0 ? (i__1) : -(i__1)));
  if (nl == nfrst && bdry) {
    goto L3;
  }
  xl = x[nl];
  yl = y[nl];
  zl = z__[nl];
  lpl2 = lend[n2];
  if (!((bdry || left_(&xr, &yr, &zr, &xl, &yl, &zl, &x1, &y11, &z1)) && (list[lpl2] < 0 || left_(&xl, &yl, &zl, &xr, &yr, &zr, &x2, &y2, &z2)))) {
    nr = n2;
    xr = x2;
    yr = y2;
    zr = z2;
    goto L2;
  }
  swap_(&nl, &nr, &n1, &n2, &list[1], &lptr[1], &lend[1], &lp21);
  if (lp21 == 0) {
    nr = n2;
    xr = x2;
    yr = y2;
    zr = z2;
    goto L2;
  }
  ++iwl;
  if (nl <= n1) {
    iwk[(iwl << 1) + 1] = nl;
  } else {
    iwk[(iwl << 1) + 1] = nl - 1;
  }
  if (nr <= n1) {
    iwk[(iwl << 1) + 2] = nr;
  } else {
    iwk[(iwl << 1) + 2] = nr - 1;
  }
  lpl = lend[n1];
  --nnb;
  if (nnb == 3) {
    goto L3;
  }
  lpf = lptr[lpl];
  nfrst = list[lpf];
  lp = lstptr_(&lpl, &nl, &list[1], &lptr[1]);
  if (nr == nfrst) {
    goto L2;
  }
  n2 = nr;
  x2 = xr;
  y2 = yr;
  z2 = zr;
  lp21 = lptr[lp21];
  lp21 = lptr[lp21];
  nr = (i__1 = list[lp21], ((i__1) >= 0 ? (i__1) : -(i__1)));
  xr = x[nr];
  yr = y[nr];
  zr = z__[nr];
  goto L1;
L2:
  if (n2 == nfrst) {
    goto L3;
  }
  n2 = nl;
  x2 = xl;
  y2 = yl;
  z2 = zl;
  lp = lptr[lp];
  goto L1;
L3:
  if (!bdry) {
    if (nnb > 3) {
      bdry = (1);
    } else {
      lpf = lptr[lpl];
      nr = list[lpf];
      lp = lptr[lpf];
      n2 = list[lp];
      nl = list[lpl];
      bdry = left_(&x[nr], &y[nr], &z__[nr], &x[nl], &y[nl], &z__[nl], &x[n2], &y[n2], &z__[n2]);
    }
    if (bdry) {
      i__1 = nn;
      for (i__ = 1; i__ <= i__1; ++i__) {
        if (list[lend[i__]] < 0) {
          bdry = (0);
          goto L5;
        }
      }
      list[lpl] = -list[lpl];
      ++nnb;
    }
  }
L5:
  if (!bdry && nnb > 3) {
    goto L24;
  }
  lp = lpl;
  lnw = *lnew;
L6:
  lp = lptr[lp];
  n2 = (i__1 = list[lp], ((i__1) >= 0 ? (i__1) : -(i__1)));
  delnb_(&n2, &n1, n, &list[1], &lptr[1], &lend[1], &lnw, &lph);
  if (lph < 0) {
    goto L23;
  }
  if (lpl == lnw) {
    lpl = lph;
  }
  if (lp == lnw) {
    lp = lph;
  }
  if (lp != lpl) {
    goto L6;
  }
  --nn;
  if (n1 > nn) {
    goto L9;
  }
  i__1 = nn;
  for (i__ = n1; i__ <= i__1; ++i__) {
    x[i__] = x[i__ + 1];
    y[i__] = y[i__ + 1];
    z__[i__] = z__[i__ + 1];
    lend[i__] = lend[i__ + 1];
  }
  i__1 = lnw - 1;
  for (i__ = 1; i__ <= i__1; ++i__) {
    if (list[i__] > n1) {
      --list[i__];
    }
    if (list[i__] < -n1) {
      ++list[i__];
    }
  }
L9:
  if (bdry) {
    --nnb;
  }
  lpn = lpl;
  i__1 = nnb;
  for (j = 1; j <= i__1; ++j) {
    --lnw;
    lp = lpn;
    lpn = lptr[lp];
    list[lp] = list[lnw];
    lptr[lp] = lptr[lnw];
    if (lptr[lpn] == lnw) {
      lptr[lpn] = lp;
    }
    if (lpn == lnw) {
      lpn = lp;
    }
    for (i__ = nn; i__ >= 1; --i__) {
      if (lend[i__] == lnw) {
        lend[i__] = lp;
        goto L11;
      }
    }
  L11:
    for (i__ = lnw - 1; i__ >= 1; --i__) {
      if (lptr[i__] == lnw) {
        lptr[i__] = lp;
      }
    }
  }
  *n = nn;
  *lnew = lnw;
  if (iwl > 0) {
    nit = iwl << 2;
    optim_(&x[1], &y[1], &z__[1], &iwl, &list[1], &lptr[1], &lend[1], &nit, &iwk[3], &ierr);
    if (ierr != 0 && ierr != 1) {
      goto L25;
    }
    if (ierr == 1) {
      goto L26;
    }
  }
  *ier = 0;
  return 0;
L21:
  *ier = 1;
  return 0;
L22:
  *ier = 2;
  return 0;
L23:
  *ier = 3;
  return 0;
L24:
  *ier = 4;
  return 0;
L25:
  *ier = 5;
  return 0;
L26:
  *ier = 6;
  return 0;
}
```