// File: /workspace/github_c_makefile_star2_O3/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 0x23e5d4(%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 0x604c
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 0x60c3
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %rcx, 0x23e4e2(%rip)    # 0x244620
movq %rax, 0x23e4f3(%rip)    # 0x244638
movq %rax, 0x23e4e4(%rip)    # 0x244630
leaq 0x23e50d(%rip), %rcx    # 0x244660
movq %rcx, 0x23e4e6(%rip)    # 0x244640
movq %rax, 0x23e4e7(%rip)    # 0x244648
movq $0x1, 0x23e4f4(%rip) # 0x244660
leaq 0x23e52d(%rip), %rdx    # 0x2446a0
movq %rdx, 0x23e4fe(%rip)    # 0x244678
movq %rdx, 0x23e4ef(%rip)    # 0x244670
movq %rax, 0x23e4f8(%rip)    # 0x244680
movq %rax, 0x23e4f9(%rip)    # 0x244688
movabsq $0x200000001, %rsi      # imm = 0x200000001
movq %rsi, 0x23e500(%rip)    # 0x2446a0
movq %rcx, 0x23e511(%rip)    # 0x2446b8
movq %rcx, 0x23e502(%rip)    # 0x2446b0
leaq 0x23e52b(%rip), %rdi    # 0x2446e0
movq %rdi, 0x23e504(%rip)    # 0x2446c0
movq %rdx, 0x23e505(%rip)    # 0x2446c8
movabsq $0x100000002, %r8       # imm = 0x100000002
movq %r8, 0x23e50c(%rip)     # 0x2446e0
movq %rdi, 0x23e51d(%rip)    # 0x2446f8
movq %rdi, 0x23e50e(%rip)    # 0x2446f0
movq %rdx, 0x23e517(%rip)    # 0x244700
movq %rdx, 0x23e518(%rip)    # 0x244708
movq %rax, 0x217f9(%rip)     # 0x279f0
movq %rcx, 0x217fa(%rip)     # 0x279f8
movq %rdi, 0x217fb(%rip)     # 0x27a00
movl $0x1, 0x219e9(%rip)     # 0x27bf8
movq %rsi, 0x219da(%rip)     # 0x27bf0
movl $0x3, 0x23e3f0(%rip)    # 0x244610
movl $0x4, 0x23e3ea(%rip)    # 0x244614
retq