// File: /workspace/github_c_makefile_star2_O2/mishun[P]plantri/plantri.c
// Function: initialize_quadrangulations
static void
initialize_quadrangulations(void)

/* initialize edges for the generation of all simple quadrangulations
   and make the initial path P3 */

{
    EDGE *run,*start;
    int n;

/* Initialize the edges for operation P0. They look like

       a
      / \
    ?b   c    Vertex c is the new point. (a,c) and (d,c) are the
      \ /     new edges with a-->c taken as quadr_P0(n) 
       d

It is assumed that for 3<=n<MAXN after quadr_P0(n) there is room for 4 edges.
*/

    for (n=3; n<MAXN; n++)
      { run=start=quadr_P0(n);
        run->end=n; run->min=run;
        run->invers=start+1; 

        run=start+1; run->start=n; 
        run->prev=run->next=start+3;
        run->min=run->invers=start; 

        run=start+2; run->end=n; run->min=run; run->invers=start+3;

        run=start+3; run->start=n; run->min=run->invers=start+2;
        run->prev=run->next=start+1;
      }

/* Then initialize the edges for operation P1. They look like

       a
    ? / \ 
   --b   c--  Vertex c is the new point. (a,c) and (d,c) are the
    ? \ /     new edges with a-->c taken as quadr_P1(n) 
       d

It is assumed that for 5<=n<MAXN after quadr_P1(n) there is room for 4 edges.
*/

    for (n=5; n<MAXN; n++)
      { run=start=quadr_P1(n);
        run->end=n; run->min=run;
        run->invers=start+1; 

        run=start+1; run->start=n; 
        run->min=run->invers=start; run->prev=start+3;

        run=start+2; run->end=n; run->min=run; run->invers=start+3;

        run=start+3; run->start=n; run->min=run->invers=start+2;
        run->next=start+1;
      }

   make_P3();
}

// Assembly:
pushq $0x3
popq %rcx
xorl %edx, %edx
leaq 0x23d5af(%rip), %rax    # 0x242610
cmpq $0x3d00, %rdx           # imm = 0x3D00
je 0x50d3
leaq (%rdx,%rax), %rsi
addq $0x4100, %rsi           # imm = 0x4100
movl %ecx, 0x4(%rsi)
movq %rsi, 0x28(%rsi)
leaq 0x4140(%rdx,%rax), %rdi
movq %rdi, -0x20(%rdi)
movl %ecx, (%rdi)
leaq 0x41c0(%rdx,%rax), %r8
movq %r8, -0x68(%r8)
movq %r8, -0x70(%r8)
movq %rsi, -0x60(%r8)
movq %rsi, -0x58(%r8)
leaq 0x4180(%rdx,%rax), %rsi
movl %ecx, 0x4(%rsi)
movq %rsi, 0x28(%rsi)
movq %r8, 0x20(%rsi)
movl %ecx, 0x40(%rsi)
movq %rsi, 0x60(%rsi)
movq %rsi, 0x68(%rsi)
movq %rdi, 0x58(%rsi)
movq %rdi, 0x50(%rsi)
addq $0x100, %rdx            # imm = 0x100
incl %ecx
jmp 0x5061
pushq $0x5
popq %rcx
xorl %edx, %edx
cmpq $0x3b00, %rdx           # imm = 0x3B00
je 0x5144
leaq (%rdx,%rax), %rsi
addq $0x600, %rsi            # imm = 0x600
movl %ecx, 0x4(%rsi)
movq %rsi, 0x28(%rsi)
leaq 0x640(%rdx,%rax), %rdi
movq %rdi, -0x20(%rdi)
movl %ecx, (%rdi)
movq %rsi, 0x20(%rdi)
movq %rsi, 0x28(%rdi)
leaq 0x6c0(%rdx,%rax), %rsi
movq %rsi, -0x70(%rsi)
leaq 0x680(%rdx,%rax), %r8
movl %ecx, 0x4(%r8)
movq %r8, 0x28(%r8)
movq %rsi, 0x20(%r8)
movl %ecx, 0x40(%r8)
movq %r8, 0x60(%r8)
movq %r8, 0x68(%r8)
movq %rdi, 0x58(%r8)
addq $0x100, %rdx            # imm = 0x100
incl %ecx
jmp 0x50d8
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0x23d4bb(%rip)    # 0x242610
movq %rax, 0x23d4cc(%rip)    # 0x242628
movq %rax, 0x23d4bd(%rip)    # 0x242620
leaq 0x23d4e6(%rip), %rcx    # 0x242650
movq %rcx, 0x23d4bf(%rip)    # 0x242630
movq %rax, 0x23d4c0(%rip)    # 0x242638
movq $0x1, 0x23d4cd(%rip) # 0x242650
leaq 0x23d506(%rip), %rdx    # 0x242690
movq %rdx, 0x23d4d7(%rip)    # 0x242668
movq %rdx, 0x23d4c8(%rip)    # 0x242660
movq %rax, 0x23d4d1(%rip)    # 0x242670
movq %rax, 0x23d4d2(%rip)    # 0x242678
movabsq $0x200000001, %rsi      # imm = 0x200000001
movq %rsi, 0x23d4d9(%rip)    # 0x242690
movq %rcx, 0x23d4ea(%rip)    # 0x2426a8
movq %rcx, 0x23d4db(%rip)    # 0x2426a0
leaq 0x23d504(%rip), %rdi    # 0x2426d0
movq %rdi, 0x23d4dd(%rip)    # 0x2426b0
movq %rdx, 0x23d4de(%rip)    # 0x2426b8
movabsq $0x100000002, %r8       # imm = 0x100000002
movq %r8, 0x23d4e5(%rip)     # 0x2426d0
movq %rdi, 0x23d4f6(%rip)    # 0x2426e8
movq %rdi, 0x23d4e7(%rip)    # 0x2426e0
movq %rdx, 0x23d4f0(%rip)    # 0x2426f0
movq %rdx, 0x23d4f1(%rip)    # 0x2426f8
movq %rax, 0x207d2(%rip)     # 0x259e0
movq %rcx, 0x207d3(%rip)     # 0x259e8
movq %rdi, 0x207d4(%rip)     # 0x259f0
movl $0x1, 0x209c2(%rip)     # 0x25be8
movq %rsi, 0x209b3(%rip)     # 0x25be0
movl $0x3, 0x23d3c9(%rip)    # 0x242600
movl $0x4, 0x23d3c3(%rip)    # 0x242604
retq