user: Translate the below assembly code into C programming language:

```asm
<edge_>:
  endbr64
  push   %r15
  mov    %rsi,%r10
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  movslq (%rdi),%rsi
  mov    0xb0(%rsp),%rax
  mov    0xd0(%rsp),%rbx
  mov    %rdx,0x38(%rsp)
  mov    %rcx,0x40(%rsp)
  mov    %rax,0x50(%rsp)
  mov    0xb8(%rsp),%rax
  mov    %rdi,0x28(%rsp)
  mov    %rax,0x8(%rsp)
  mov    0xc0(%rsp),%rax
  mov    %r8,0x48(%rsp)
  mov    %rax,0x10(%rsp)
  mov    0xc8(%rsp),%rax
  mov    %r9,0x58(%rsp)
  mov    %rax,0x18(%rsp)
  mov    %rbx,0x30(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    %esi,D2294(%rip)
  mov    (%r10),%edx
  mov    %edx,D1666(%rip)
  mov    (%r9),%ecx
  test   %edx,%edx
  setle  %al
  mov    %ecx,D1990(%rip)
  shr    $0x1f,%ecx
  or     %ecx,%eax
  test   %esi,%esi
  setle  %cl
  or     %ecx,%eax
  cmp    %edx,%esi
  sete   %cl
  or     %cl,%al
  je     L705
  movl   $0x1,(%rbx)
L488:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L441
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L705:
  mov    0x10(%rsp),%rbx
  mov    0x18(%rsp),%rax
  lea    -0x4(%rbx),%r12
  sub    $0x4,%rax
  mov    0x8(%rsp),%rbx
  mov    %rax,0x20(%rsp)
  movslq (%rax,%rsi,4),%rax
  lea    -0x4(%rbx),%r13
  mov    %rax,%rdi
  mov    0x0(%r13,%rax,4),%eax
  mov    %edi,D1531(%rip)
  mov    %eax,%ecx
  mov    %eax,0x64(%rsp)
  neg    %ecx
  cmovs  %eax,%ecx
  xor    %r8d,%r8d
  movslq %edi,%rax
  mov    %ecx,D2131(%rip)
  jmp    L120
  nopl   0x0(%rax,%rax,1)
L256:
  movslq (%r12,%rax,4),%rax
  mov    $0x1,%r8d
  movslq %eax,%rcx
  mov    0x0(%r13,%rcx,4),%ecx
  mov    %ecx,D2053(%rip)
  cmp    %eax,%edi
  je     L702
L120:
  cmp    %ecx,%edx
  jne    L256
  test   %r8b,%r8b
  je     L524
  mov    %eax,D2053(%rip)
L524:
  mov    0x30(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L488
  nopl   0x0(%rax,%rax,1)
L702:
  movl   $0x0,D2053(%rip)
  mov    0x48(%rsp),%rax
  movl   $0x0,D955(%rip)
  lea    -0x8(%rax),%r15
  mov    0x40(%rsp),%rax
  lea    -0x8(%rax),%rbp
  mov    0x38(%rsp),%rax
  lea    -0x8(%rax),%rbx
L510:
  movsd  (%rbx,%rsi,8),%xmm0
  movslq %edx,%rax
  movsd  %xmm0,D1215(%rip)
  movsd  0x0(%rbp,%rsi,8),%xmm0
  movsd  %xmm0,D139(%rip)
  movsd  (%r15,%rsi,8),%xmm0
  movsd  %xmm0,D894(%rip)
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,D1713(%rip)
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,D1837(%rip)
  movsd  (%r15,%rax,8),%xmm0
  mov    0x20(%rsp),%rax
  movslq (%rax,%rsi,4),%rax
  movsd  %xmm0,D255(%rip)
  movslq (%r12,%rax,4),%rdx
  mov    0x0(%r13,%rax,4),%ecx
  movslq 0x0(%r13,%rdx,4),%rax
  mov    %edx,D1443(%rip)
  mov    %eax,D1443(%rip)
  mov    %eax,D1239(%rip)
  test   %ecx,%ecx
  js     L528
  lea    D1837(%rip),%rdi
  mov    %r12,(%rsp)
  lea    D255(%rip),%r14
  mov    %rdi,%r12
  jmp    L303
  nopl   0x0(%rax)
L618:
  movslq D1443(%rip),%rax
  mov    (%rsp),%rdi
  movslq (%rdi,%rax,4),%rax
  mov    %eax,D1933(%rip)
  movslq 0x0(%r13,%rax,4),%rax
  cmp    D1443(%rip),%eax
  mov    %eax,D1933(%rip)
  je     L714
L303:
  shl    $0x3,%rax
  sub    $0x8,%rsp
  lea    D894(%rip),%r9
  mov    %r12,%rsi
  lea    (%r15,%rax,1),%rdx
  lea    D139(%rip),%r8
  push   %rdx
  lea    0x0(%rbp,%rax,1),%rdx
  add    %rbx,%rax
  lea    D1215(%rip),%rcx
  push   %rdx
  lea    D1713(%rip),%rdi
  mov    %r14,%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L618
  mov    (%rsp),%r12
  mov    D1933(%rip),%eax
  movslq D1933(%rip),%rdx
  jmp    L528
  nopl   0x0(%rax)
L396:
  movapd %xmm3,%xmm6
  movapd %xmm1,%xmm5
  mulsd  %xmm0,%xmm6
  subsd  %xmm6,%xmm5
  comisd %xmm7,%xmm5
  jb     L619
L202:
  mulsd  %xmm3,%xmm2
  pxor   %xmm7,%xmm7
  subsd  %xmm2,%xmm4
  comisd %xmm7,%xmm4
  jae    L204
  mulsd  %xmm1,%xmm3
  subsd  %xmm3,%xmm0
  comisd %xmm7,%xmm0
  jae    L204
L619:
  sub    $0x8,%rsp
  lea    D894(%rip),%r9
  lea    D139(%rip),%r8
  push   %rax
  lea    D1215(%rip),%rcx
  lea    D255(%rip),%rdx
  push   %rdi
  lea    D1713(%rip),%rdi
  push   %rsi
  lea    D1837(%rip),%rsi
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L143
L148:
  mov    D1933(%rip),%eax
  cmp    D1443(%rip),%eax
  je     L143
  movslq D1933(%rip),%rdx
L528:
  mov    %eax,D1933(%rip)
  movslq (%r12,%rdx,4),%rax
  lea    D255(%rip),%r9
  lea    D1837(%rip),%r8
  lea    D1713(%rip),%rcx
  lea    D139(%rip),%rsi
  mov    0x0(%r13,%rax,4),%edx
  mov    %eax,D1161(%rip)
  lea    D1215(%rip),%rdi
  mov    %edx,%eax
  mov    %edx,0x64(%rsp)
  neg    %eax
  cmovs  %edx,%eax
  sub    $0x8,%rsp
  mov    %eax,D1161(%rip)
  cltq
  shl    $0x3,%rax
  lea    (%r15,%rax,1),%rdx
  push   %rdx
  lea    0x0(%rbp,%rax,1),%rdx
  add    %rbx,%rax
  push   %rdx
  lea    D894(%rip),%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L148
  movsd  D1215(%rip),%xmm0
  movsd  D1713(%rip),%xmm1
  movsd  D139(%rip),%xmm8
  movsd  D1837(%rip),%xmm6
  movapd %xmm0,%xmm3
  movsd  D894(%rip),%xmm7
  movapd %xmm0,%xmm4
  movsd  D255(%rip),%xmm5
  mulsd  %xmm1,%xmm3
  movapd %xmm8,%xmm2
  movslq D1161(%rip),%rax
  movapd %xmm8,%xmm11
  mulsd  %xmm6,%xmm2
  movslq D1933(%rip),%rdx
  mov    %rax,%rcx
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%rsi
  lea    0x0(%rbp,%rax,1),%rdi
  add    %r15,%rax
  movsd  (%rdi),%xmm10
  movsd  (%rax),%xmm9
  addsd  %xmm2,%xmm3
  mulsd  %xmm10,%xmm11
  movapd %xmm7,%xmm2
  mulsd  %xmm5,%xmm2
  mulsd  %xmm6,%xmm10
  addsd  %xmm2,%xmm3
  movsd  (%rsi),%xmm2
  mulsd  %xmm2,%xmm4
  mulsd  %xmm1,%xmm2
  addsd  %xmm11,%xmm4
  movapd %xmm7,%xmm11
  mulsd  %xmm9,%xmm11
  addsd  %xmm10,%xmm2
  movsd  0x0(%rbp,%rdx,8),%xmm10
  mulsd  %xmm5,%xmm9
  mulsd  %xmm10,%xmm6
  mulsd  %xmm10,%xmm8
  addsd  %xmm11,%xmm4
  movsd  (%rbx,%rdx,8),%xmm11
  addsd  %xmm9,%xmm2
  movsd  (%r15,%rdx,8),%xmm9
  mulsd  %xmm11,%xmm1
  mulsd  %xmm9,%xmm5
  mulsd  %xmm11,%xmm0
  mulsd  %xmm9,%xmm7
  addsd  %xmm6,%xmm1
  movapd %xmm3,%xmm6
  mulsd  %xmm4,%xmm6
  addsd  %xmm8,%xmm0
  addsd  %xmm5,%xmm1
  movapd %xmm2,%xmm5
  addsd  %xmm7,%xmm0
  pxor   %xmm7,%xmm7
  subsd  %xmm6,%xmm5
  comisd %xmm7,%xmm5
  jae    L202
  jmp    L396
  nopl   0x0(%rax)
L714:
  mov    %rdi,%r12
L143:
  mov    D955(%rip),%eax
  test   %eax,%eax
  jg     L218
  movslq D1666(%rip),%rsi
  mov    0x28(%rsp),%rax
  movl   $0x1,D955(%rip)
  mov    %esi,D1161(%rip)
  mov    (%rax),%edx
  mov    %edx,D1161(%rip)
  jmp    L510
L204:
  mov    D2053(%rip),%eax
  lea    0x1(%rax),%r10d
  cmp    %r10d,D1161(%rip)
  mov    %r10d,D1161(%rip)
  jl     L13
  mov    0x50(%rsp),%rax
  lea    -0xc(%rax),%r14
  mov    %r14,%rax
  mov    %r13,%r14
  mov    %rax,%r13
  nopw   0x0(%rax,%rax,1)
L590:
  lea    (%r10,%r10,1),%eax
  mov    0x20(%rsp),%rdi
  xor    %esi,%esi
  cltq
  add    $0x1,%rax
  mov    %ecx,0x0(%r13,%rax,4)
  mov    D1933(%rip),%edx
  mov    %edx,0x4(%r13,%rax,4)
  movslq D1161(%rip),%rax
  movslq (%rdi,%rax,4),%r8
  movslq (%r12,%r8,4),%rdi
  mov    %r8,%rcx
  movslq %edi,%rax
  jmp    L402
  nopl   0x0(%rax,%rax,1)
L502:
  movslq (%r12,%rax,4),%rax
  mov    $0x1,%esi
  cmp    %eax,%ecx
  je     L61
L402:
  lea    0x0(,%rax,4),%r9
  cmp    (%r14,%rax,4),%edx
  jne    L502
  shl    $0x2,%rdi
  test   %sil,%sil
  cmove  %rdi,%r9
L99:
  movslq (%r12,%r9,1),%rax
  mov    (%r14,%rax,4),%edx
  mov    %eax,D1161(%rip)
  mov    %edx,%eax
  mov    %edx,0x64(%rsp)
  neg    %eax
  cmovs  %edx,%eax
  cmp    D1161(%rip),%eax
  mov    %eax,D1161(%rip)
  je     L418
  cltq
  sub    $0x8,%rsp
  lea    D255(%rip),%r9
  shl    $0x3,%rax
  lea    D1837(%rip),%r8
  lea    D1713(%rip),%rcx
  lea    (%r15,%rax,1),%rdx
  lea    D139(%rip),%rsi
  push   %rdx
  lea    0x0(%rbp,%rax,1),%rdx
  add    %rbx,%rax
  lea    D1215(%rip),%rdi
  push   %rdx
  lea    D894(%rip),%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  mov    D1161(%rip),%eax
  je     L676
  mov    %eax,D1088(%rip)
  mov    D1161(%rip),%eax
  lea    0x1(%rax),%r10d
  cmp    %r10d,D1088(%rip)
  mov    %r10d,D1088(%rip)
  jl     L13
L583:
  mov    D1088(%rip),%ecx
  jmp    L590
  nopw   0x0(%rax,%rax,1)
L61:
  mov    %ecx,D1088(%rip)
  lea    0x0(,%r8,4),%r9
  cmp    (%r14,%r8,4),%edx
  je     L99
L218:
  mov    0x30(%rsp),%rax
  movl   $0x3,(%rax)
  jmp    L488
  nopl   0x0(%rax,%rax,1)
L676:
  mov    %eax,D1088(%rip)
  mov    D1088(%rip),%eax
  lea    0x1(%rax),%r10d
  cmp    D1088(%rip),%r10d
  mov    %r10d,D1088(%rip)
  jle    L583
L13:
  mov    0x30(%rsp),%rax
  movl   $0x2,(%rax)
  jmp    L488
L418:
  mov    0x58(%rsp),%rax
  mov    %rbx,%rdi
  mov    %r13,%r14
  mov    %rbp,%rbx
  mov    %r10d,D1088(%rip)
  mov    %r10d,%edx
  mov    %rdi,%rbp
  lea    D1088(%rip),%r13
  mov    %r10d,(%rax)
  lea    D1516(%rip),%r12
  mov    $0x1,%eax
  movl   $0x1,D160(%rip)
  nopl   0x0(%rax,%rax,1)
L533:
  lea    (%rax,%rax,1),%esi
  mov    D1161(%rip),%ecx
  movsd  D1215(%rip),%xmm0
  movl   $0x0,D2276(%rip)
  movslq %esi,%rsi
  mov    %eax,D932(%rip)
  add    $0x1,%rsi
  mov    %ecx,D677(%rip)
  movsd  %xmm0,D677(%rip)
  mov    (%r14,%rsi,4),%ecx
  movsd  D139(%rip),%xmm0
  mov    %ecx,D677(%rip)
  mov    0x4(%r14,%rsi,4),%esi
  movsd  %xmm0,D677(%rip)
  movsd  D894(%rip),%xmm0
  mov    %esi,D1754(%rip)
  movsd  %xmm0,D1754(%rip)
  cmp    %edx,%eax
  jne    L529
  jmp    L701
  nopl   0x0(%rax,%rax,1)
L289:
  shl    $0x3,%rax
  sub    $0x8,%rsp
  movslq %ecx,%rdi
  mov    %r12,%r9
  lea    (%r15,%rax,1),%rcx
  shl    $0x3,%rdi
  lea    D677(%rip),%r8
  push   %rcx
  lea    (%rbx,%rax,1),%rcx
  add    %rbp,%rax
  lea    (%r15,%rdi,1),%rdx
  push   %rcx
  lea    (%rbx,%rdi,1),%rsi
  mov    %r13,%rcx
  add    %rbp,%rdi
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L668
  mov    D2276(%rip),%r8d
  test   %r8d,%r8d
  jle    L283
  movslq D1161(%rip),%rax
  sub    $0x8,%rsp
  movslq D1754(%rip),%rdx
  mov    %r13,%rdi
  shl    $0x3,%rax
  shl    $0x3,%rdx
  lea    (%r15,%rax,1),%rsi
  lea    0x0(%rbp,%rdx,1),%rcx
  push   %rsi
  lea    (%rbx,%rax,1),%rsi
  add    %rbp,%rax
  lea    (%r15,%rdx,1),%r9
  push   %rsi
  lea    (%rbx,%rdx,1),%r8
  lea    D677(%rip),%rsi
  mov    %r12,%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  jne    L407
L668:
  movslq D677(%rip),%rax
  movl   $0xffffffff,D2276(%rip)
  movsd  0x0(%rbp,%rax,8),%xmm0
  mov    %eax,D1754(%rip)
  movsd  %xmm0,D1754(%rip)
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,D1754(%rip)
  movsd  (%r15,%rax,8),%xmm0
  mov    D932(%rip),%eax
  movsd  %xmm0,D1754(%rip)
L611:
  mov    D1161(%rip),%edx
  add    $0x1,%eax
  mov    %eax,D1754(%rip)
  mov    %edx,D1754(%rip)
  mov    D1088(%rip),%edx
L550:
  cmp    %edx,%eax
  je     L285
L489:
  mov    D1754(%rip),%ecx
L529:
  add    $0x1,%eax
  mov    %eax,D1754(%rip)
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  movslq (%r14,%rax,4),%rax
  mov    %eax,D2190(%rip)
  cmp    %ecx,%eax
  jne    L289
  movslq 0x4(%r14,%rdx,1),%rax
  sub    $0x8,%rsp
  movslq D1754(%rip),%rdx
  mov    %r13,%rdi
  mov    %eax,D2190(%rip)
  shl    $0x3,%rax
  shl    $0x3,%rdx
  lea    (%r15,%rax,1),%rsi
  lea    0x0(%rbp,%rdx,1),%rcx
  push   %rsi
  lea    (%rbx,%rax,1),%rsi
  add    %rbp,%rax
  lea    (%r15,%rdx,1),%r9
  push   %rsi
  lea    (%rbx,%rdx,1),%r8
  lea    D1754(%rip),%rsi
  mov    %r12,%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L251
  mov    D2276(%rip),%eax
  test   %eax,%eax
  jns    L20
  movslq D2190(%rip),%rax
  sub    $0x8,%rsp
  mov    %r12,%r9
  movslq D1754(%rip),%rdi
  lea    D1754(%rip),%r8
  shl    $0x3,%rax
  shl    $0x3,%rdi
  lea    (%r15,%rax,1),%rcx
  lea    (%r15,%rdi,1),%rdx
  push   %rcx
  lea    (%rbx,%rax,1),%rcx
  add    %rbp,%rax
  lea    (%rbx,%rdi,1),%rsi
  push   %rcx
  add    %rbp,%rdi
  mov    %r13,%rcx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  jne    L392
L251:
  movslq D1754(%rip),%rax
  movl   $0x1,D2276(%rip)
  movsd  0x0(%rbp,%rax,8),%xmm0
  mov    %eax,D2190(%rip)
  movsd  %xmm0,D2190(%rip)
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,D2190(%rip)
  movsd  (%r15,%rax,8),%xmm0
  mov    D1754(%rip),%eax
  movsd  %xmm0,D2190(%rip)
L688:
  mov    D2190(%rip),%edx
  add    $0x1,%eax
  mov    %eax,D2190(%rip)
  mov    %edx,D2190(%rip)
  mov    D1088(%rip),%edx
  cmp    %edx,%eax
  jne    L489
L285:
  mov    D1161(%rip),%eax
  cmp    %eax,D2190(%rip)
  je     L701
  mov    D2276(%rip),%r9d
  test   %r9d,%r9d
  js     L542
  sub    $0x8,%rsp
  lea    D255(%rip),%rdi
  mov    %r12,%rdx
  movslq D2190(%rip),%rax
  push   %rdi
  lea    D1837(%rip),%rdi
  lea    D2190(%rip),%rsi
  push   %rdi
  lea    D1713(%rip),%rdi
  shl    $0x3,%rax
  push   %rdi
  lea    0x0(%rbp,%rax,1),%rcx
  lea    (%r15,%rax,1),%r9
  mov    %r13,%rdi
  lea    (%rbx,%rax,1),%r8
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  jne    L321
  mov    D160(%rip),%eax
  mov    D1088(%rip),%edx
  jmp    L533
  nopl   0x0(%rax)
L20:
  lea    D2190(%rip),%rax
  lea    D1754(%rip),%rdx
  push   %rax
  lea    D2190(%rip),%rsi
  lea    D2190(%rip),%rdi
  push   0x20(%rsp)
  mov    0x18(%rsp),%r8
  lea    D2190(%rip),%rcx
  mov    0x20(%rsp),%r9
  call   <swap_@plt>
  mov    D1088(%rip),%edx
  mov    D1754(%rip),%edi
  mov    %edx,0x74(%rsp)
  lea    (%rdi,%rdi,1),%esi
  pop    %r11
  lea    0x1(%rdx),%r8d
  mov    %edi,D1847(%rip)
  pop    %rax
  cmp    %edi,%edx
  jl     L644
  nopl   0x0(%rax,%rax,1)
L32:
  movslq %esi,%rcx
  lea    -0x2(%rsi),%eax
  add    $0x2,%esi
  add    $0x1,%rcx
  cltq
  mov    (%r14,%rcx,4),%r9d
  add    $0x1,%rax
  mov    %r9d,(%r14,%rax,4)
  mov    0x4(%r14,%rcx,4),%ecx
  mov    %ecx,0x4(%r14,%rax,4)
  mov    %edi,%eax
  add    $0x1,%edi
  cmp    %edx,%eax
  jne    L32
  mov    %r8d,D1840(%rip)
L644:
  lea    (%rdx,%rdx,1),%eax
  mov    D2190(%rip),%ecx
  sub    $0x1,%edx
  cltq
  mov    %edx,D1840(%rip)
  add    $0x1,%rax
  mov    %ecx,(%r14,%rax,4)
  mov    D2190(%rip),%ecx
  mov    %ecx,0x4(%r14,%rax,4)
  mov    D2190(%rip),%eax
  mov    %ecx,D1840(%rip)
  jmp    L550
  nopl   (%rax)
L407:
  lea    D2190(%rip),%rax
  lea    D1840(%rip),%rcx
  push   %rax
  lea    D1754(%rip),%rdx
  lea    D2190(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D2190(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D2190(%rip),%eax
  mov    D2190(%rip),%ecx
  lea    (%rax,%rax,1),%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D2190(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  pop    %rdx
  pop    %rcx
  jmp    L611
  nopl   0x0(%rax,%rax,1)
L392:
  lea    D2190(%rip),%rax
  lea    D1840(%rip),%rcx
  push   %rax
  lea    D1754(%rip),%rdx
  lea    D2190(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D2190(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D2190(%rip),%eax
  mov    D2190(%rip),%ecx
  lea    (%rax,%rax,1),%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D2190(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  pop    %r9
  pop    %r10
  jmp    L688
  nopl   (%rax)
L283:
  lea    D2190(%rip),%rax
  lea    D2190(%rip),%rsi
  push   %rax
  lea    D2190(%rip),%rdi
  lea    D1840(%rip),%rcx
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D1754(%rip),%rdx
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D2190(%rip),%eax
  mov    D160(%rip),%r8d
  lea    -0x1(%rax),%r9d
  mov    %r8d,0x74(%rsp)
  pop    %rsi
  mov    %r9d,D1840(%rip)
  pop    %rdi
  lea    (%r9,%r9,1),%esi
  mov    %r9d,%edi
  cmp    %r9d,%r8d
  jg     L367
  nopw   0x0(%rax,%rax,1)
L219:
  movslq %esi,%rcx
  lea    0x2(%rsi),%edx
  sub    $0x2,%esi
  add    $0x1,%rcx
  movslq %edx,%rdx
  mov    (%r14,%rcx,4),%r10d
  add    $0x1,%rdx
  mov    %r10d,(%r14,%rdx,4)
  mov    0x4(%r14,%rcx,4),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  mov    %edi,%edx
  sub    $0x1,%edi
  cmp    %r8d,%edx
  jne    L219
  mov    %r8d,%edx
  sub    %eax,%edx
  add    %r9d,%edx
  mov    %edx,D1840(%rip)
L367:
  lea    (%r8,%r8,1),%edx
  mov    D2190(%rip),%ecx
  add    $0x1,%r8d
  movslq %edx,%rdx
  mov    %r8d,D1840(%rip)
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D2190(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  jmp    L611
L542:
  movslq D1754(%rip),%rax
  sub    $0x8,%rsp
  mov    %r12,%r9
  mov    %r13,%rcx
  lea    D2190(%rip),%r8
  shl    $0x3,%rax
  lea    (%r15,%rax,1),%rdx
  lea    (%rbx,%rax,1),%rsi
  lea    0x0(%rbp,%rax,1),%rdi
  lea    D255(%rip),%rax
  push   %rax
  lea    D1837(%rip),%rax
  push   %rax
  lea    D1713(%rip),%rax
  push   %rax
  call   <left_@plt>
  mov    D1840(%rip),%edx
  add    $0x20,%rsp
  mov    %rax,%r8
  mov    D1840(%rip),%eax
  test   %r8,%r8
  je     L533
  lea    D2190(%rip),%rax
  lea    D1840(%rip),%rcx
  push   %rax
  lea    D1754(%rip),%rdx
  lea    D2190(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D1161(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D1840(%rip),%edx
  mov    D1840(%rip),%eax
  pop    %rcx
  pop    %rsi
  lea    -0x1(%rdx),%r9d
  mov    %edx,%r8d
  lea    (%r9,%r9,1),%edi
L596:
  movslq %edi,%rsi
  lea    0x2(%rdi),%ecx
  sub    $0x1,%r8d
  sub    $0x2,%edi
  add    $0x1,%rsi
  movslq %ecx,%rcx
  mov    (%r14,%rsi,4),%r10d
  add    $0x1,%rcx
  mov    %r10d,(%r14,%rcx,4)
  mov    0x4(%r14,%rsi,4),%esi
  mov    %esi,0x4(%r14,%rcx,4)
  cmp    %eax,%r8d
  jg     L596
  mov    %eax,%ecx
  xor    %esi,%esi
  sub    %r9d,%ecx
  cmp    %eax,%edx
  cmovle %esi,%ecx
  mov    D2190(%rip),%esi
  add    %r9d,%ecx
  mov    %ecx,D1840(%rip)
  lea    (%rax,%rax,1),%ecx
  add    $0x1,%eax
  movslq %ecx,%rcx
  mov    %eax,D1840(%rip)
  add    $0x1,%rcx
  mov    %esi,(%r14,%rcx,4)
  mov    D1161(%rip),%esi
  mov    %esi,0x4(%r14,%rcx,4)
  jmp    L533
L321:
  lea    D2190(%rip),%rax
  lea    D1840(%rip),%rcx
  push   %rax
  lea    D1754(%rip),%rdx
  lea    D1161(%rip),%rdi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D2190(%rip),%rsi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D1840(%rip),%edx
  mov    D2190(%rip),%ecx
  lea    (%rdx,%rdx,1),%eax
  sub    $0x1,%edx
  cltq
  mov    %edx,D1840(%rip)
  add    $0x1,%rax
  mov    %ecx,(%r14,%rax,4)
  mov    D1161(%rip),%ecx
  mov    %ecx,0x4(%r14,%rax,4)
  mov    D1840(%rip),%eax
  pop    %rdi
  pop    %r8
  jmp    L533
L701:
  lea    D2190(%rip),%rax
  lea    D1754(%rip),%rdx
  push   %rax
  lea    D1840(%rip),%rcx
  lea    D1161(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D1161(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D2190(%rip),%eax
  mov    0x40(%rsp),%rbx
  lea    (%rax,%rax,1),%edx
  movslq %edx,%rdx
  movq   $0x0,0x4(%r14,%rdx,4)
  movl   $0x0,(%rbx)
  pop    %r10
  pop    %r11
  cmp    $0x1,%eax
  jg     L9
L442:
  mov    D1088(%rip),%edx
  cmp    %eax,%edx
  jg     L673
L342:
  mov    0x30(%rsp),%rax
  cmpl   $0x5,(%rax)
  jne    L488
L658:
  movl   $0x5,(%rax)
  jmp    L488
L9:
  sub    $0x1,%eax
  lea    0x64(%rsp),%rcx
  mov    %eax,0x64(%rsp)
  lea    0x0(,%rax,4),%edx
  lea    D1840(%rip),%rax
  push   %rax
  lea    D955(%rip),%rax
  push   0x58(%rsp)
  push   %rax
  push   0x30(%rsp)
  mov    0x30(%rsp),%r9
  mov    0x28(%rsp),%r8
  mov    %edx,D2307(%rip)
  mov    0x60(%rsp),%rsi
  mov    0x68(%rsp),%rdx
  mov    0x58(%rsp),%rdi
  call   <optim_@plt>
  add    $0x20,%rsp
  cmpl   $0x1,D1840(%rip)
  ja     L101
  jne    L700
  mov    0x30(%rsp),%rax
  movl   $0x5,(%rax)
L700:
  mov    D2190(%rip),%eax
  jmp    L442
L101:
  mov    0x30(%rsp),%rax
  movl   $0x4,(%rax)
  jmp    L488
L673:
  sub    %eax,%edx
  lea    0x2(%rax,%rax,1),%eax
  lea    D1840(%rip),%rbx
  cltq
  lea    0x0(,%rdx,4),%ecx
  mov    %edx,0x64(%rsp)
  lea    0x4(%r14,%rax,4),%rax
  mov    %ecx,D2307(%rip)
  lea    0x64(%rsp),%rcx
  push   %rbx
  push   %rax
  lea    D2307(%rip),%rax
  push   %rax
  push   0x30(%rsp)
  mov    0x30(%rsp),%r9
  mov    0x28(%rsp),%r8
  mov    0x68(%rsp),%rdx
  mov    0x60(%rsp),%rsi
  mov    0x58(%rsp),%rdi
  call   <optim_@plt>
  add    $0x20,%rsp
  cmpl   $0x1,D1840(%rip)
  ja     L101
  mov    0x30(%rsp),%rax
  jne    L342
  jmp    L658
L441:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int edge_(int *in1, int *in2, double *x, double *y, double *z__, int *lwk, int *iwk, int *list, int *lptr, int *lend, int *ier) {
  int i__1;
  static int i__, n0, n1, n2;
  static double x0, x1, x2, y00, y11, y2, z0, z1, z2;
  static int nl, lp, nr;
  static double dp12;
  static int lp21, iwc, iwf, lft, lpl, iwl, nit;
  static double dp1l, dp2l, dp1r, dp2r;
  static int ierr;
  static int next, iwcp1, n1lst, iwend;
  static int n1frst;
  --lend;
  --lptr;
  --list;
  iwk -= 3;
  --z__;
  --y;
  --x;
  n1 = *in1;
  n2 = *in2;
  iwend = *lwk;
  if (n1 < 1 || n2 < 1 || n1 == n2 || iwend < 0) {
    goto L31;
  }
  lpl = lend[n1];
  n0 = (i__1 = list[lpl], ((i__1) >= 0 ? (i__1) : -(i__1)));
  lp = lpl;
L1:
  if (n0 == n2) {
    goto L30;
  }
  lp = lptr[lp];
  n0 = list[lp];
  if (lp != lpl) {
    goto L1;
  }
  iwl = 0;
  nit = 0;
L2:
  x1 = x[n1];
  y11 = y[n1];
  z1 = z__[n1];
  x2 = x[n2];
  y2 = y[n2];
  z2 = z__[n2];
  lpl = lend[n1];
  n1lst = list[lpl];
  lp = lptr[lpl];
  n1frst = list[lp];
  nl = n1frst;
  if (n1lst < 0) {
    goto L4;
  }
L3:
  if (left_(&x2, &y2, &z2, &x1, &y11, &z1, &x[nl], &y[nl], &z__[nl])) {
    goto L4;
  }
  lp = lptr[lp];
  nl = list[lp];
  if (nl != n1frst) {
    goto L3;
  }
  goto L5;
L4:
  nr = nl;
  lp = lptr[lp];
  nl = (i__1 = list[lp], ((i__1) >= 0 ? (i__1) : -(i__1)));
  if (left_(&x1, &y11, &z1, &x2, &y2, &z2, &x[nl], &y[nl], &z__[nl])) {
    dp12 = x1 * x2 + y11 * y2 + z1 * z2;
    dp1l = x1 * x[nl] + y11 * y[nl] + z1 * z__[nl];
    dp2l = x2 * x[nl] + y2 * y[nl] + z2 * z__[nl];
    dp1r = x1 * x[nr] + y11 * y[nr] + z1 * z__[nr];
    dp2r = x2 * x[nr] + y2 * y[nr] + z2 * z__[nr];
    if ((dp2l - dp12 * dp1l >= 0. || dp2r - dp12 * dp1r >= 0.) && (dp1l - dp12 * dp2l >= 0. || dp1r - dp12 * dp2r >= 0.)) {
      goto L6;
    }
    if (!left_(&x2, &y2, &z2, &x1, &y11, &z1, &x[nl], &y[nl], &z__[nl])) {
      goto L5;
    }
  }
  if (nl != n1frst) {
    goto L4;
  }
L5:
  if (nit > 0) {
    goto L33;
  }
  nit = 1;
  n1 = n2;
  n2 = *in1;
  goto L2;
L6:
  ++iwl;
  if (iwl > iwend) {
    goto L32;
  }
  iwk[(iwl << 1) + 1] = nl;
  iwk[(iwl << 1) + 2] = nr;
  lpl = lend[nl];
  lp = lptr[lpl];
L7:
  if (list[lp] == nr) {
    goto L8;
  }
  lp = lptr[lp];
  if (lp != lpl) {
    goto L7;
  }
  if (list[lp] != nr) {
    goto L33;
  }
L8:
  lp = lptr[lp];
  next = (i__1 = list[lp], ((i__1) >= 0 ? (i__1) : -(i__1)));
  if (next == n2) {
    goto L9;
  }
  if (left_(&x1, &y11, &z1, &x2, &y2, &z2, &x[next], &y[next], &z__[next])) {
    nl = next;
  } else {
    nr = next;
  }
  goto L6;
L9:
  *lwk = iwl;
  iwend = iwl;
  iwf = 1;
L10:
  lft = 0;
  n0 = n1;
  x0 = x1;
  y00 = y11;
  z0 = z1;
  nl = iwk[(iwf << 1) + 1];
  nr = iwk[(iwf << 1) + 2];
  iwc = iwf;
L11:
  if (iwc == iwl) {
    goto L21;
  }
  iwcp1 = iwc + 1;
  next = iwk[(iwcp1 << 1) + 1];
  if (next != nl) {
    goto L16;
  }
  next = iwk[(iwcp1 << 1) + 2];
  if (!left_(&x0, &y00, &z0, &x[nr], &y[nr], &z__[nr], &x[next], &y[next], &z__[next])) {
    goto L14;
  }
  if (lft >= 0) {
    goto L12;
  }
  if (!left_(&x[nl], &y[nl], &z__[nl], &x0, &y00, &z0, &x[next], &y[next], &z__[next])) {
    goto L14;
  }
  swap_(&next, &n0, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  iwk[(iwc << 1) + 1] = n0;
  iwk[(iwc << 1) + 2] = next;
  goto L15;
L12:
  swap_(&next, &n0, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  i__1 = iwl;
  for (i__ = iwcp1; i__ <= i__1; ++i__) {
    iwk[((i__ - 1) << 1) + 1] = iwk[(i__ << 1) + 1];
    iwk[((i__ - 1) << 1) + 2] = iwk[(i__ << 1) + 2];
  }
  iwk[(iwl << 1) + 1] = n0;
  iwk[(iwl << 1) + 2] = next;
  --iwl;
  nr = next;
  goto L11;
L14:
  n0 = nr;
  x0 = x[n0];
  y00 = y[n0];
  z0 = z__[n0];
  lft = 1;
L15:
  nr = next;
  ++iwc;
  goto L11;
L16:
  if (!left_(&x[nl], &y[nl], &z__[nl], &x0, &y00, &z0, &x[next], &y[next], &z__[next])) {
    goto L19;
  }
  if (lft <= 0) {
    goto L17;
  }
  if (!left_(&x0, &y00, &z0, &x[nr], &y[nr], &z__[nr], &x[next], &y[next], &z__[next])) {
    goto L19;
  }
  swap_(&next, &n0, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  iwk[(iwc << 1) + 1] = next;
  iwk[(iwc << 1) + 2] = n0;
  goto L20;
L17:
  swap_(&next, &n0, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  i__1 = iwf;
  for (i__ = iwc - 1; i__ >= i__1; --i__) {
    iwk[((i__ + 1) << 1) + 1] = iwk[(i__ << 1) + 1];
    iwk[((i__ + 1) << 1) + 2] = iwk[(i__ << 1) + 2];
  }
  iwk[(iwf << 1) + 1] = n0;
  iwk[(iwf << 1) + 2] = next;
  ++iwf;
  goto L20;
L19:
  n0 = nl;
  x0 = x[n0];
  y00 = y[n0];
  z0 = z__[n0];
  lft = -1;
L20:
  nl = next;
  ++iwc;
  goto L11;
L21:
  if (n0 == n1) {
    goto L24;
  }
  if (lft < 0) {
    goto L22;
  }
  if (!left_(&x0, &y00, &z0, &x[nr], &y[nr], &z__[nr], &x2, &y2, &z2)) {
    goto L10;
  }
  swap_(&n2, &n0, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  iwk[(iwl << 1) + 1] = n0;
  iwk[(iwl << 1) + 2] = n2;
  --iwl;
  goto L10;
L22:
  if (!left_(&x[nl], &y[nl], &z__[nl], &x0, &y00, &z0, &x2, &y2, &z2)) {
    goto L10;
  }
  swap_(&n2, &n0, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  i__ = iwl;
L23:
  iwk[(i__ << 1) + 1] = iwk[((i__ - 1) << 1) + 1];
  iwk[(i__ << 1) + 2] = iwk[((i__ - 1) << 1) + 2];
  --i__;
  if (i__ > iwf) {
    goto L23;
  }
  iwk[(iwf << 1) + 1] = n0;
  iwk[(iwf << 1) + 2] = n2;
  ++iwf;
  goto L10;
L24:
  swap_(&n2, &n1, &nl, &nr, &list[1], &lptr[1], &lend[1], &lp21);
  iwk[(iwc << 1) + 1] = 0;
  iwk[(iwc << 1) + 2] = 0;
  *ier = 0;
  if (iwc > 1) {
    nit = (iwc - 1) << 2;
    i__1 = iwc - 1;
    optim_(&x[1], &y[1], &z__[1], &i__1, &list[1], &lptr[1], &lend[1], &nit, &iwk[3], &ierr);
    if (ierr != 0 && ierr != 1) {
      goto L34;
    }
    if (ierr == 1) {
      *ier = 5;
    }
  }
  if (iwc < iwend) {
    nit = (iwend - iwc) << 2;
    i__1 = iwend - iwc;
    optim_(&x[1], &y[1], &z__[1], &i__1, &list[1], &lptr[1], &lend[1], &nit, &iwk[((iwc + 1) << 1) + 1], &ierr);
    if (ierr != 0 && ierr != 1) {
      goto L34;
    }
    if (ierr == 1) {
      goto L35;
    }
  }
  if (*ier == 5) {
    goto L35;
  }
  return 0;
L30:
  *ier = 0;
  return 0;
L31:
  *ier = 1;
  return 0;
L32:
  *ier = 2;
  return 0;
L33:
  *ier = 3;
  return 0;
L34:
  *ier = 4;
  return 0;
L35:
  *ier = 5;
  return 0;
}
```