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,D385(%rip)
  mov    (%r10),%edx
  mov    %edx,D1953(%rip)
  mov    (%r9),%ecx
  test   %edx,%edx
  setle  %al
  mov    %ecx,D364(%rip)
  shr    $0x1f,%ecx
  or     %ecx,%eax
  test   %esi,%esi
  setle  %cl
  or     %ecx,%eax
  cmp    %edx,%esi
  sete   %cl
  or     %cl,%al
  je     L437
  movl   $0x1,(%rbx)
L125:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L719
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L437:
  mov    0x10(%rsp),%rbx
  mov    0x18(%rsp),%rax
  lea    -0x4(%rbx),%rbp
  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,D2141(%rip)
  mov    %eax,%ecx
  mov    %eax,0x64(%rsp)
  neg    %ecx
  cmovs  %eax,%ecx
  xor    %r8d,%r8d
  movslq %edi,%rax
  mov    %ecx,D2149(%rip)
  jmp    L440
  nopl   0x0(%rax,%rax,1)
L317:
  movslq 0x0(%rbp,%rax,4),%rax
  mov    $0x1,%r8d
  movslq %eax,%rcx
  mov    0x0(%r13,%rcx,4),%ecx
  mov    %ecx,D33(%rip)
  cmp    %eax,%edi
  je     L18
L440:
  cmp    %ecx,%edx
  jne    L317
  test   %r8b,%r8b
  je     L476
  mov    %eax,D33(%rip)
L476:
  mov    0x30(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L125
  nopl   0x0(%rax)
L18:
  movl   $0x0,D33(%rip)
  mov    0x48(%rsp),%rax
  movl   $0x0,D224(%rip)
  lea    -0x8(%rax),%r15
  mov    0x40(%rsp),%rax
  lea    -0x8(%rax),%r12
  mov    0x38(%rsp),%rax
  lea    -0x8(%rax),%rbx
L411:
  movsd  (%rbx,%rsi,8),%xmm0
  movslq %edx,%rax
  movsd  %xmm0,D1699(%rip)
  movsd  (%r12,%rsi,8),%xmm0
  movsd  %xmm0,D1193(%rip)
  movsd  (%r15,%rsi,8),%xmm0
  movsd  %xmm0,D221(%rip)
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,D93(%rip)
  movsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,D402(%rip)
  movsd  (%r15,%rax,8),%xmm0
  mov    0x20(%rsp),%rax
  movslq (%rax,%rsi,4),%rax
  movsd  %xmm0,D736(%rip)
  movslq 0x0(%rbp,%rax,4),%rdx
  mov    0x0(%r13,%rax,4),%ecx
  movslq 0x0(%r13,%rdx,4),%rax
  mov    %edx,D1312(%rip)
  mov    %eax,D1312(%rip)
  mov    %eax,D438(%rip)
  test   %ecx,%ecx
  js     L622
  lea    D402(%rip),%rdi
  mov    %rbp,(%rsp)
  lea    D736(%rip),%r14
  mov    %rdi,%rbp
  jmp    L332
  nopl   (%rax)
L278:
  movslq D1312(%rip),%rax
  mov    (%rsp),%rdi
  movslq (%rdi,%rax,4),%rax
  mov    %eax,D1957(%rip)
  movslq 0x0(%r13,%rax,4),%rax
  cmp    D1312(%rip),%eax
  mov    %eax,D1957(%rip)
  je     L633
L332:
  shl    $0x3,%rax
  sub    $0x8,%rsp
  lea    D221(%rip),%r9
  mov    %rbp,%rsi
  lea    (%r15,%rax,1),%rdx
  lea    D1193(%rip),%r8
  push   %rdx
  lea    (%r12,%rax,1),%rdx
  add    %rbx,%rax
  lea    D1699(%rip),%rcx
  push   %rdx
  lea    D93(%rip),%rdi
  mov    %r14,%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L278
  mov    (%rsp),%rbp
  mov    D1957(%rip),%eax
  movslq D1957(%rip),%rdx
  jmp    L622
  nopl   0x0(%rax,%rax,1)
L335:
  movapd %xmm3,%xmm6
  movapd %xmm1,%xmm5
  mulsd  %xmm0,%xmm6
  subsd  %xmm6,%xmm5
  comisd %xmm7,%xmm5
  jb     L670
L686:
  mulsd  %xmm3,%xmm2
  pxor   %xmm7,%xmm7
  subsd  %xmm2,%xmm4
  comisd %xmm7,%xmm4
  jae    L231
  mulsd  %xmm1,%xmm3
  pxor   %xmm7,%xmm7
  subsd  %xmm3,%xmm0
  comisd %xmm7,%xmm0
  jae    L231
L670:
  sub    $0x8,%rsp
  lea    D221(%rip),%r9
  lea    D1193(%rip),%r8
  push   %rax
  lea    D1699(%rip),%rcx
  lea    D736(%rip),%rdx
  push   %rdi
  lea    D93(%rip),%rdi
  push   %rsi
  lea    D402(%rip),%rsi
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L514
L699:
  mov    D1957(%rip),%eax
  cmp    D1312(%rip),%eax
  je     L514
  movslq D1957(%rip),%rdx
L622:
  mov    %eax,D1957(%rip)
  movslq 0x0(%rbp,%rdx,4),%rax
  lea    D736(%rip),%r9
  lea    D402(%rip),%r8
  lea    D93(%rip),%rcx
  lea    D1193(%rip),%rsi
  mov    0x0(%r13,%rax,4),%edx
  mov    %eax,D73(%rip)
  lea    D1699(%rip),%rdi
  mov    %edx,%eax
  mov    %edx,0x64(%rsp)
  neg    %eax
  cmovs  %edx,%eax
  sub    $0x8,%rsp
  mov    %eax,D73(%rip)
  cltq
  shl    $0x3,%rax
  lea    (%r15,%rax,1),%rdx
  push   %rdx
  lea    (%r12,%rax,1),%rdx
  add    %rbx,%rax
  push   %rdx
  lea    D221(%rip),%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L699
  movsd  D1699(%rip),%xmm0
  movsd  D93(%rip),%xmm1
  movsd  D1193(%rip),%xmm8
  movsd  D402(%rip),%xmm6
  movapd %xmm0,%xmm3
  movsd  D221(%rip),%xmm7
  movapd %xmm0,%xmm4
  movsd  D736(%rip),%xmm5
  mulsd  %xmm1,%xmm3
  movapd %xmm8,%xmm2
  movslq D73(%rip),%rax
  movapd %xmm8,%xmm11
  mulsd  %xmm6,%xmm2
  movslq D1957(%rip),%rdx
  mov    %rax,%rcx
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%rsi
  lea    (%r12,%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  (%r12,%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    L686
  jmp    L335
  nopl   0x0(%rax,%rax,1)
L633:
  mov    %rdi,%rbp
L514:
  mov    D224(%rip),%eax
  test   %eax,%eax
  jg     L691
  movslq D1953(%rip),%rsi
  mov    0x28(%rsp),%rax
  movl   $0x1,D224(%rip)
  mov    %esi,D73(%rip)
  mov    (%rax),%edx
  mov    %edx,D73(%rip)
  jmp    L411
L231:
  mov    D33(%rip),%eax
  lea    0x1(%rax),%r8d
  cmp    %r8d,D73(%rip)
  mov    %r8d,D73(%rip)
  jl     L605
  mov    0x50(%rsp),%rax
  lea    -0xc(%rax),%r14
  mov    %r14,%rax
  mov    %r13,%r14
  mov    %rax,%r13
  nopw   0x0(%rax,%rax,1)
L152:
  lea    (%r8,%r8,1),%eax
  mov    0x20(%rsp),%rdi
  xor    %esi,%esi
  cltq
  add    $0x1,%rax
  mov    %ecx,0x0(%r13,%rax,4)
  mov    D1957(%rip),%edx
  mov    %edx,0x4(%r13,%rax,4)
  movslq D73(%rip),%rax
  movslq (%rdi,%rax,4),%r9
  movslq 0x0(%rbp,%r9,4),%rdi
  mov    %r9,%rcx
  movslq %edi,%rax
  jmp    L556
  nopl   0x0(%rax)
L413:
  movslq 0x0(%rbp,%rax,4),%rax
  mov    $0x1,%esi
  cmp    %eax,%ecx
  je     L260
L556:
  lea    0x0(,%rax,4),%r11
  cmp    (%r14,%rax,4),%edx
  jne    L413
  shl    $0x2,%rdi
  test   %sil,%sil
  cmove  %rdi,%r11
L230:
  movslq 0x0(%rbp,%r11,1),%rax
  mov    (%r14,%rax,4),%edx
  mov    %eax,D73(%rip)
  mov    %edx,%eax
  mov    %edx,0x64(%rsp)
  neg    %eax
  cmovs  %edx,%eax
  cmp    D73(%rip),%eax
  mov    %eax,D73(%rip)
  je     L160
  cltq
  sub    $0x8,%rsp
  lea    D736(%rip),%r9
  shl    $0x3,%rax
  lea    D402(%rip),%r8
  lea    D93(%rip),%rcx
  lea    (%r15,%rax,1),%rdx
  lea    D1193(%rip),%rsi
  push   %rdx
  lea    (%r12,%rax,1),%rdx
  add    %rbx,%rax
  lea    D1699(%rip),%rdi
  push   %rdx
  lea    D221(%rip),%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  mov    D73(%rip),%eax
  je     L286
  mov    %eax,D1082(%rip)
L465:
  mov    D73(%rip),%eax
  lea    0x1(%rax),%r8d
  cmp    D73(%rip),%r8d
  mov    %r8d,D1082(%rip)
  jg     L605
  mov    D1082(%rip),%ecx
  jmp    L152
  nopl   0x0(%rax,%rax,1)
L260:
  mov    %ecx,D1082(%rip)
  lea    0x0(,%r9,4),%r11
  cmp    (%r14,%r9,4),%edx
  je     L230
L691:
  mov    0x30(%rsp),%rax
  movl   $0x3,(%rax)
  jmp    L125
  nopl   0x0(%rax,%rax,1)
L286:
  mov    %eax,D1082(%rip)
  jmp    L465
L605:
  mov    0x30(%rsp),%rax
  movl   $0x2,(%rax)
  jmp    L125
L160:
  mov    0x58(%rsp),%rax
  mov    %r8d,D1082(%rip)
  mov    %rbx,%rdi
  mov    %r13,%r14
  mov    D1082(%rip),%esi
  mov    %r12,%rbx
  movl   $0x1,D1082(%rip)
  lea    D596(%rip),%r13
  mov    %r8d,(%rax)
  lea    D2321(%rip),%rbp
  mov    $0x1,%eax
  mov    %rdi,%r12
  cs nopw 0x0(%rax,%rax,1)
L475:
  lea    (%rax,%rax,1),%ecx
  mov    D73(%rip),%edx
  movsd  D1699(%rip),%xmm0
  movl   $0x0,D1032(%rip)
  movslq %ecx,%rcx
  mov    %eax,D1550(%rip)
  add    $0x1,%rcx
  mov    %edx,D1606(%rip)
  movsd  %xmm0,D1606(%rip)
  mov    (%r14,%rcx,4),%edx
  movsd  D1193(%rip),%xmm0
  mov    %edx,D1606(%rip)
  mov    0x4(%r14,%rcx,4),%ecx
  movsd  %xmm0,D1606(%rip)
  movsd  D221(%rip),%xmm0
  mov    %ecx,D1606(%rip)
  movsd  %xmm0,D1606(%rip)
  cmp    %esi,%eax
  jne    L599
  jmp    L584
  nopl   0x0(%rax,%rax,1)
L601:
  shl    $0x3,%rax
  sub    $0x8,%rsp
  movslq %edx,%rdi
  mov    %rbp,%r8
  lea    (%r15,%rax,1),%rcx
  shl    $0x3,%rdi
  lea    D1606(%rip),%r9
  push   %rcx
  lea    (%rbx,%rax,1),%rcx
  add    %r12,%rax
  lea    (%r15,%rdi,1),%rdx
  push   %rcx
  lea    (%rbx,%rdi,1),%rsi
  mov    %r13,%rcx
  add    %r12,%rdi
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L91
  mov    D1032(%rip),%r8d
  test   %r8d,%r8d
  jle    L481
  movslq D73(%rip),%rax
  sub    $0x8,%rsp
  movslq D1606(%rip),%rdx
  mov    %r13,%rdi
  shl    $0x3,%rax
  shl    $0x3,%rdx
  lea    (%r15,%rax,1),%rsi
  lea    (%r12,%rdx,1),%rcx
  push   %rsi
  lea    (%rbx,%rax,1),%rsi
  add    %r12,%rax
  lea    (%r15,%rdx,1),%r9
  push   %rsi
  lea    (%rbx,%rdx,1),%r8
  mov    %rbp,%rsi
  lea    D1606(%rip),%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  jne    L83
L91:
  movslq D1606(%rip),%rax
  movl   $0xffffffff,D1032(%rip)
  movsd  (%r12,%rax,8),%xmm0
  mov    %eax,D2264(%rip)
  movsd  %xmm0,D2264(%rip)
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,D2264(%rip)
  movsd  (%r15,%rax,8),%xmm0
  mov    D1550(%rip),%eax
  movsd  %xmm0,D2264(%rip)
L705:
  mov    D73(%rip),%edx
  add    $0x1,%eax
  mov    %eax,D2264(%rip)
  mov    %edx,D2264(%rip)
  mov    D1082(%rip),%edx
L123:
  cmp    %edx,%eax
  je     L313
L544:
  mov    D2264(%rip),%edx
L599:
  add    $0x1,%eax
  mov    %eax,D2264(%rip)
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  movslq (%r14,%rax,4),%rax
  mov    %eax,D270(%rip)
  cmp    %edx,%eax
  jne    L601
  movslq 0x4(%r14,%rcx,1),%rax
  sub    $0x8,%rsp
  movslq D1606(%rip),%rdx
  mov    %r13,%rdi
  mov    %eax,D270(%rip)
  shl    $0x3,%rax
  shl    $0x3,%rdx
  lea    (%r15,%rax,1),%rsi
  lea    (%r12,%rdx,1),%rcx
  push   %rsi
  lea    (%rbx,%rax,1),%rsi
  add    %r12,%rax
  lea    (%r15,%rdx,1),%r9
  push   %rsi
  lea    (%rbx,%rdx,1),%r8
  mov    %rbp,%rsi
  lea    D2264(%rip),%rdx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L345
  mov    D1032(%rip),%eax
  test   %eax,%eax
  jns    L527
  movslq D270(%rip),%rax
  sub    $0x8,%rsp
  mov    %rbp,%r8
  movslq D2264(%rip),%rdi
  lea    D2264(%rip),%r9
  shl    $0x3,%rax
  shl    $0x3,%rdi
  lea    (%r15,%rax,1),%rcx
  lea    (%r15,%rdi,1),%rdx
  push   %rcx
  lea    (%rbx,%rax,1),%rcx
  add    %r12,%rax
  lea    (%rbx,%rdi,1),%rsi
  push   %rcx
  add    %r12,%rdi
  mov    %r13,%rcx
  push   %rax
  call   <left_@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  jne    L520
L345:
  movslq D1606(%rip),%rax
  movl   $0x1,D1032(%rip)
  movsd  (%r12,%rax,8),%xmm0
  mov    %eax,D270(%rip)
  movsd  %xmm0,D270(%rip)
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,D270(%rip)
  movsd  (%r15,%rax,8),%xmm0
  mov    D2264(%rip),%eax
  movsd  %xmm0,D270(%rip)
L717:
  mov    D270(%rip),%edx
  add    $0x1,%eax
  mov    %eax,D270(%rip)
  mov    %edx,D270(%rip)
  mov    D1082(%rip),%edx
  cmp    %edx,%eax
  jne    L544
L313:
  mov    D73(%rip),%eax
  cmp    %eax,D270(%rip)
  je     L584
  mov    D1032(%rip),%r9d
  test   %r9d,%r9d
  js     L507
  sub    $0x8,%rsp
  lea    D736(%rip),%rdi
  movslq D270(%rip),%rax
  lea    D402(%rip),%rsi
  push   %rdi
  lea    D93(%rip),%rdi
  lea    D270(%rip),%rdx
  push   %rsi
  shl    $0x3,%rax
  mov    %rbp,%rsi
  push   %rdi
  lea    (%r12,%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    L143
  mov    D1082(%rip),%eax
  mov    D1082(%rip),%esi
  jmp    L475
  nopl   0x0(%rax)
L527:
  lea    D270(%rip),%rax
  lea    D2264(%rip),%rdx
  push   %rax
  lea    D270(%rip),%rsi
  lea    D270(%rip),%rdi
  push   0x20(%rsp)
  mov    0x18(%rsp),%r8
  lea    D270(%rip),%rcx
  mov    0x20(%rsp),%r9
  call   <swap_@plt>
  mov    D1082(%rip),%edx
  mov    D2264(%rip),%edi
  mov    %edx,0x74(%rsp)
  lea    (%rdi,%rdi,1),%esi
  pop    %r11
  lea    0x1(%rdx),%r8d
  mov    %edi,D288(%rip)
  pop    %rax
  cmp    %edi,%edx
  jl     L679
  nopl   0x0(%rax,%rax,1)
L392:
  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    %eax,%edx
  jne    L392
  mov    %r8d,D966(%rip)
L679:
  lea    (%rdx,%rdx,1),%eax
  mov    D270(%rip),%ecx
  sub    $0x1,%edx
  cltq
  mov    %edx,D966(%rip)
  add    $0x1,%rax
  mov    %ecx,(%r14,%rax,4)
  mov    D270(%rip),%ecx
  mov    %ecx,0x4(%r14,%rax,4)
  mov    D270(%rip),%eax
  mov    %ecx,D966(%rip)
  jmp    L123
  nopl   (%rax)
L83:
  lea    D270(%rip),%rax
  lea    D966(%rip),%rcx
  push   %rax
  lea    D2264(%rip),%rdx
  lea    D270(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D270(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D270(%rip),%eax
  mov    D270(%rip),%ecx
  lea    (%rax,%rax,1),%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D270(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  pop    %rdx
  pop    %rcx
  jmp    L705
  nopl   0x0(%rax,%rax,1)
L520:
  lea    D270(%rip),%rax
  lea    D966(%rip),%rcx
  push   %rax
  lea    D2264(%rip),%rdx
  lea    D270(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D270(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D270(%rip),%eax
  mov    D270(%rip),%ecx
  lea    (%rax,%rax,1),%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D270(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  pop    %r9
  pop    %r10
  jmp    L717
  nopl   (%rax)
L481:
  lea    D270(%rip),%rax
  lea    D270(%rip),%rsi
  push   %rax
  lea    D270(%rip),%rdi
  lea    D966(%rip),%rcx
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D2264(%rip),%rdx
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D270(%rip),%eax
  mov    D1082(%rip),%r8d
  lea    -0x1(%rax),%r9d
  mov    %r8d,0x74(%rsp)
  pop    %rsi
  mov    %r9d,D966(%rip)
  pop    %rdi
  lea    (%r9,%r9,1),%esi
  mov    %r9d,%edi
  cmp    %r9d,%r8d
  jg     L127
  nopw   0x0(%rax,%rax,1)
L200:
  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    %edx,%r8d
  jne    L200
  mov    %r8d,%edx
  sub    %eax,%edx
  add    %r9d,%edx
  mov    %edx,D966(%rip)
L127:
  lea    (%r8,%r8,1),%edx
  mov    D270(%rip),%ecx
  add    $0x1,%r8d
  movslq %edx,%rdx
  mov    %r8d,D966(%rip)
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D270(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  jmp    L705
L507:
  movslq D2264(%rip),%rax
  sub    $0x8,%rsp
  mov    %rbp,%r8
  mov    %r13,%rcx
  lea    D270(%rip),%r9
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%rsi
  lea    (%r15,%rax,1),%rdx
  lea    (%r12,%rax,1),%rdi
  lea    D736(%rip),%rax
  push   %rax
  lea    D402(%rip),%rax
  push   %rax
  lea    D93(%rip),%rax
  push   %rax
  call   <left_@plt>
  mov    D966(%rip),%esi
  add    $0x20,%rsp
  mov    %rax,%r8
  mov    D966(%rip),%eax
  test   %r8,%r8
  je     L475
  lea    D270(%rip),%rax
  lea    D966(%rip),%rcx
  push   %rax
  lea    D2264(%rip),%rdx
  lea    D270(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D73(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D966(%rip),%esi
  mov    D966(%rip),%eax
  pop    %rdx
  pop    %rcx
  lea    -0x1(%rsi),%r9d
  mov    %esi,%r8d
  lea    (%r9,%r9,1),%edi
  nop
L289:
  movslq %edi,%rcx
  lea    0x2(%rdi),%edx
  sub    $0x1,%r8d
  sub    $0x2,%edi
  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)
  cmp    %eax,%r8d
  jg     L289
  mov    %eax,%edx
  xor    %ecx,%ecx
  sub    %r9d,%edx
  cmp    %eax,%esi
  cmovle %ecx,%edx
  mov    D270(%rip),%ecx
  add    %r9d,%edx
  mov    %edx,D966(%rip)
  lea    (%rax,%rax,1),%edx
  add    $0x1,%eax
  movslq %edx,%rdx
  mov    %eax,D966(%rip)
  add    $0x1,%rdx
  mov    %ecx,(%r14,%rdx,4)
  mov    D73(%rip),%ecx
  mov    %ecx,0x4(%r14,%rdx,4)
  jmp    L475
L143:
  lea    D270(%rip),%rax
  lea    D2264(%rip),%rdx
  push   %rax
  lea    D270(%rip),%rsi
  lea    D73(%rip),%rdi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D966(%rip),%rcx
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D966(%rip),%esi
  mov    D270(%rip),%edx
  lea    (%rsi,%rsi,1),%eax
  sub    $0x1,%esi
  cltq
  mov    %esi,D966(%rip)
  add    $0x1,%rax
  mov    %edx,(%r14,%rax,4)
  mov    D73(%rip),%edx
  mov    %edx,0x4(%r14,%rax,4)
  mov    D966(%rip),%eax
  pop    %rdi
  pop    %r8
  jmp    L475
L584:
  lea    D270(%rip),%rax
  lea    D2264(%rip),%rdx
  push   %rax
  lea    D966(%rip),%rcx
  lea    D73(%rip),%rsi
  push   0x20(%rsp)
  mov    0x20(%rsp),%r9
  lea    D73(%rip),%rdi
  mov    0x18(%rsp),%r8
  call   <swap_@plt>
  mov    D270(%rip),%edx
  lea    (%rdx,%rdx,1),%eax
  cltq
  add    $0x1,%rax
  movl   $0x0,(%r14,%rax,4)
  movl   $0x0,0x4(%r14,%rax,4)
  mov    0x40(%rsp),%rax
  movl   $0x0,(%rax)
  pop    %r10
  pop    %r11
  cmp    $0x1,%edx
  jg     L190
L453:
  mov    D1082(%rip),%eax
  cmp    %edx,%eax
  jg     L461
L254:
  mov    0x30(%rsp),%rax
  cmpl   $0x5,(%rax)
  jne    L125
L118:
  mov    0x30(%rsp),%rax
  movl   $0x5,(%rax)
  jmp    L125
L190:
  sub    $0x1,%edx
  lea    0x64(%rsp),%rcx
  lea    0x0(,%rdx,4),%eax
  mov    %edx,0x64(%rsp)
  mov    %eax,D966(%rip)
  lea    D966(%rip),%rax
  push   %rax
  lea    D966(%rip),%rax
  push   0x58(%rsp)
  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,D966(%rip)
  ja     L274
  jne    L48
  mov    0x30(%rsp),%rax
  movl   $0x5,(%rax)
L48:
  mov    D270(%rip),%edx
  jmp    L453
L274:
  mov    0x30(%rsp),%rax
  movl   $0x4,(%rax)
  jmp    L125
L461:
  sub    %edx,%eax
  mov    %eax,0x64(%rsp)
  lea    0x0(,%rax,4),%ecx
  lea    D966(%rip),%rax
  mov    %ecx,D1457(%rip)
  lea    0x64(%rsp),%rcx
  push   %rax
  lea    0x2(%rdx,%rdx,1),%eax
  cltq
  lea    0x4(%r14,%rax,4),%rax
  push   %rax
  lea    D1457(%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,D966(%rip)
  ja     L274
  jne    L254
  jmp    L118
L719:
  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;
}
```