// File: /workspace/github_c_makefile_star2_O1/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:
movl $0x3, %ecx
xorl %edx, %edx
leaq 0x23e4a2(%rip), %rax    # 0x244620
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
cmpq $0x3d00, %rdx           # imm = 0x3D00
jne 0x617e
movl $0x5, %ecx
xorl %edx, %edx
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
cmpq $0x3b00, %rdx           # imm = 0x3B00
jne 0x61f5
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0x23e3b0(%rip)    # 0x244620
movq %rax, 0x23e3c1(%rip)    # 0x244638
movq %rax, 0x23e3b2(%rip)    # 0x244630
leaq 0x23e3db(%rip), %rcx    # 0x244660
movq %rcx, 0x23e3b4(%rip)    # 0x244640
movq %rax, 0x23e3b5(%rip)    # 0x244648
movq $0x1, 0x23e3c2(%rip) # 0x244660
leaq 0x23e3fb(%rip), %rdx    # 0x2446a0
movq %rdx, 0x23e3cc(%rip)    # 0x244678
movq %rdx, 0x23e3bd(%rip)    # 0x244670
movq %rax, 0x23e3c6(%rip)    # 0x244680
movq %rax, 0x23e3c7(%rip)    # 0x244688
movabsq $0x200000001, %rsi      # imm = 0x200000001
movq %rsi, 0x23e3ce(%rip)    # 0x2446a0
movq %rcx, 0x23e3df(%rip)    # 0x2446b8
movq %rcx, 0x23e3d0(%rip)    # 0x2446b0
leaq 0x23e3f9(%rip), %rdi    # 0x2446e0
movq %rdi, 0x23e3d2(%rip)    # 0x2446c0
movq %rdx, 0x23e3d3(%rip)    # 0x2446c8
movabsq $0x100000002, %r8       # imm = 0x100000002
movq %r8, 0x23e3da(%rip)     # 0x2446e0
movq %rdi, 0x23e3eb(%rip)    # 0x2446f8
movq %rdi, 0x23e3dc(%rip)    # 0x2446f0
movq %rdx, 0x23e3e5(%rip)    # 0x244700
movq %rdx, 0x23e3e6(%rip)    # 0x244708
movq %rax, 0x216c7(%rip)     # 0x279f0
movq %rcx, 0x216c8(%rip)     # 0x279f8
movq %rdi, 0x216c9(%rip)     # 0x27a00
movl $0x1, 0x218b7(%rip)     # 0x27bf8
movq %rsi, 0x218a8(%rip)     # 0x27bf0
movl $0x3, 0x23e2be(%rip)    # 0x244610
movl $0x4, 0x23e2b8(%rip)    # 0x244614
retq