// File: /workspace/github_c_makefile_star2_O1/mishun[P]plantri/plantri.c
// Function: extend_min5_c
static EDGE*
extend_min5_c(EDGE *e, EDGE **anchor)

{
/* extends a graph in the way given by the type c extension for
   5-connected triangulations. The edge e must start at
   a vertex of degree 5.

   It returns the edge characterizing this operation. This edge as
   well as the edge pointed to by *anchor must be given to the reduction
   routine.

*/

  EDGE *e1, *e2, *e3, *e4, *e5, *e1i, *e2i, *e3i, *e4i, *e5i, *start, *run;
  int v1, v2, v3, v4, v5, origin;

  *anchor=e;

  e1=e->invers->next;
  e1i=e1->invers;
  e2=e1i->next->next;
  e2i=e2->invers;
  e3=e2i->next->next;
  e3i=e3->invers;
  e4=e3i->next->next;
  e4i=e4->invers;
  e5=e4i->next->next;
  e5i=e5->invers;

  origin=e->start;
  v1=e1->start;
  v2=e1->end;
  v3=e3->start;
  v4=e3->end;
  v5=e5->start;

  start=min5_c(nv);

  firstedge[v1]=e1;
  degree[v1]++;
  firstedge[v2]=e2;
  degree[v2]++;
  firstedge[v3]=e3;
  degree[v3]++;
  firstedge[v4]=e4;
  degree[v4]++;
  firstedge[v5]=e5;
  degree[v5]++;

  firstedge[nv]=start+10; degree[nv]=5; nv++;
  firstedge[nv]=start+16; degree[nv]=5; nv++;
  firstedge[nv]=start+23; degree[nv]=5; nv++;
  firstedge[nv]=start+28; degree[nv]=5; nv++;
  firstedge[nv]=start+35; degree[nv]=5; nv++;
  firstedge[origin]=start+32; 
  /* degree[nv]=5; is already the case */

  ne+=30;

  e1->prev=start; start->next=e1;
  run=start+1;
  e5i->next=run; run->prev=e5i; 
  run++;
  e5->prev=run; run->next=e5;
  run++;
  e4i->next=run; run->prev=e4i;
  run++;
  e4->prev=run; run->next=e4;
  run++;
  e3i->next=run; run->prev=e3i;
  run++;
  e3->prev=run; run->next=e3;
  run++;
  e2i->next=run; run->prev=e2i;
  run++;
  e2->prev=run; run->next=e2;
  run++;
  e1i->next=run; run->prev=e1i;

  start->start=(start+1)->start=(start+10)->end=(start+15)->end=v1;
  (start+8)->start=(start+9)->start=(start+14)->end=(start+32)->end=v2;
  (start+7)->start=(start+6)->start=(start+27)->end=(start+31)->end=v3;
  (start+4)->start=(start+5)->start=(start+22)->end=(start+26)->end=v4;
  (start+2)->start=(start+3)->start=(start+16)->end=(start+21)->end=v5;
  (start+8)->end=(start+13)->end=(start+39)->end=(start+28)->end=(start+7)->end=origin;
  (start+30)->start=(start+31)->start=(start+32)->start=(start+33)->start=
     (start+34)->start=origin;

  return (start+35);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, (%rsi)
movq 0x20(%rdi), %rax
movq 0x18(%rax), %r13
movq 0x20(%r13), %rax
movq %rax, -0x8(%rsp)
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x10(%rsp)
movq %rax, %rsi
movq %rax, -0x30(%rsp)
movq 0x18(%rcx), %rax
movq 0x18(%rax), %r12
movq 0x20(%r12), %rax
movq %rax, -0x18(%rsp)
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x20(%rsp)
movq %rax, %rbx
movq %rax, -0x58(%rsp)
movq 0x18(%rcx), %rax
movq 0x18(%rax), %r14
movq 0x20(%r14), %rax
movq %rax, -0x28(%rsp)
movslq (%rdi), %r11
movslq (%r13), %r9
movq %r9, -0x48(%rsp)
movslq 0x4(%r13), %rax
movq %rax, -0x38(%rsp)
movslq 0x2305b9(%rip), %rcx    # 0x244610
leaq (%rcx,%rcx,4), %rdx
shlq $0x9, %rdx
movslq (%r12), %rbp
movslq 0x4(%r12), %r8
movslq (%r14), %rdi
leaq 0x1397e(%rip), %r10     # 0x279f0
movq %r13, (%r10,%r9,8)
movq %rsi, (%r10,%rax,8)
movq %r12, (%r10,%rbp,8)
movq %rbx, (%r10,%r8,8)
movq %r8, %rbx
movq %r8, -0x40(%rsp)
movq %r14, (%r10,%rdi,8)
movq %rdi, %rsi
movq %rdi, -0x50(%rsp)
leaq 0x230583(%rip), %rdi    # 0x244620
leaq (%rdx,%rdi), %r8
addq $0x11f80, %r8           # imm = 0x11F80
movq %r8, (%r10,%rcx,8)
leaq 0x13b3d(%rip), %r8      # 0x27bf0
incl (%r8,%r9,4)
incl (%r8,%rax,4)
leaq 0x2(%rcx), %r9
movl %r9d, 0x23054a(%rip)    # 0x244610
incl (%r8,%rbp,4)
incl (%r8,%rbx,4)
leaq 0x3(%rcx), %r9
movl %r9d, 0x230537(%rip)    # 0x244610
incl (%r8,%rsi,4)
leaq 0x4(%rcx), %r9
movl %r9d, 0x230528(%rip)    # 0x244610
movl $0x5, %eax
movl %eax, (%r8,%rcx,4)
movl %eax, 0x4(%r8,%rcx,4)
movl %eax, 0x8(%r8,%rcx,4)
movl %eax, 0xc(%r8,%rcx,4)
movl %eax, 0x10(%r8,%rcx,4)
leaq 0x12100(%rdx,%rdi), %rbx
movq %rbx, 0x8(%r10,%rcx,8)
leaq 0x122c0(%rdx,%rdi), %rsi
movq %rsi, -0x68(%rsp)
movq %rsi, 0x10(%r10,%rcx,8)
leaq 0x12400(%rdx,%rdi), %r15
movq %r15, 0x18(%r10,%rcx,8)
leaq (%rdx,%rdi), %rsi
addq $0x125c0, %rsi          # imm = 0x125C0
movq %rsi, -0x60(%rsp)
movq %rsi, 0x20(%r10,%rcx,8)
addl %ecx, %eax
movl %eax, 0x2304c2(%rip)    # 0x244610
leaq (%rdx,%rdi), %rsi
addq $0x12500, %rsi          # imm = 0x12500
movq %rsi, (%r10,%r11,8)
addl $0x1e, 0x2304b0(%rip)   # 0x244614
leaq (%rdx,%rdi), %rcx
addq $0x11d00, %rcx          # imm = 0x11D00
movq %rcx, 0x10(%r13)
movq %r13, 0x18(%rcx)
leaq 0x11d40(%rdx,%rdi), %rcx
movq -0x28(%rsp), %rax
movq %rcx, 0x18(%rax)
movq %rax, 0x10(%rcx)
leaq 0x11d80(%rdx,%rdi), %r10
movq %r10, 0x10(%r14)
movq %r14, 0x18(%r10)
leaq 0x11dc0(%rdx,%rdi), %r13
movq -0x20(%rsp), %rax
movq %r13, 0x18(%rax)
movq %rax, 0x10(%r13)
leaq 0x11e00(%rdx,%rdi), %r9
movq -0x58(%rsp), %rax
movq %r9, 0x10(%rax)
movq %rax, 0x18(%r9)
leaq 0x11e40(%rdx,%rdi), %r14
movq -0x18(%rsp), %rax
movq %r14, 0x18(%rax)
movq %rax, 0x10(%r14)
leaq 0x11e80(%rdx,%rdi), %r8
movq %r8, 0x10(%r12)
movq %r12, 0x18(%r8)
leaq 0x11ec0(%rdx,%rdi), %r12
movq -0x10(%rsp), %rax
movq %r12, 0x18(%rax)
movq %rax, 0x10(%r12)
leaq 0x11f00(%rdx,%rdi), %rcx
movq -0x30(%rsp), %rax
movq %rcx, 0x10(%rax)
movq %rax, 0x18(%rcx)
leaq 0x11f40(%rdx,%rdi), %rdx
movq -0x8(%rsp), %rdi
movq %rdx, 0x18(%rdi)
movq %rdi, 0x10(%rdx)
movq -0x48(%rsp), %rax
movl %eax, -0x3c(%rbx)
movl %eax, 0x44(%rdx)
movl %eax, -0x80(%r13)
movl %eax, -0x80(%r10)
movq -0x38(%rsp), %rax
movl %eax, 0x4(%rsi)
movl %eax, -0x7c(%rbx)
movl %eax, (%rdx)
movl %eax, -0x40(%rdx)
movl %ebp, -0x3c(%rsi)
movl %ebp, -0x3c(%r15)
movl %ebp, -0x80(%rcx)
movl %ebp, -0x80(%rdx)
movq -0x40(%rsp), %rax
movl %eax, -0x7c(%r15)
movq -0x68(%rsp), %rcx
movl %eax, -0x3c(%rcx)
movl %eax, -0x80(%r12)
movl %eax, -0x80(%r8)
movq -0x50(%rsp), %rax
movl %eax, -0x7c(%rcx)
movl %eax, 0x4(%rbx)
movl %eax, -0x80(%r14)
movl %eax, -0x80(%r9)
movl %r11d, -0x7c(%rdx)
movl %r11d, 0x4(%r15)
movl %r11d, 0x784(%rdx)
movl %r11d, 0x104(%rdx)
movl %r11d, -0x3c(%rdx)
movq -0x60(%rsp), %rax
movl %r11d, -0x40(%rax)
movl %r11d, 0x40(%rsi)
movl %r11d, (%rsi)
movl %r11d, -0x40(%rsi)
movl %r11d, -0x80(%rsi)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq