// File: /workspace/github_c_makefile_star2_O2/mishun[P]plantri/plantri.c
// Function: startpolyscan
static void
startpolyscan(int nbtot, int nbop)

/* This routine begins the scan for general connected planar graphs formed
   by removing edges from triangulations.  The current graph is such a
   triangulation, and the group is known (parameters nbtot,nbop).
*/

{
    EDGE *feasible[MAXE/2];
    EDGE *e,*ex;
    EDGE **nb0,**nb1;
    int i,j,nfeas;

   /* In the -m5 case, the group must be saved and restored. */

    if (minimumdeg == 5 && nbtot > 1)
    {
        nb0 = (EDGE**)numbering[0];
        nb1 = (EDGE**)saved_numbering[0];
        for (i = 0; i < nbtot; ++i, nb0 += MAXE, nb1 += MAXE)
            for (j = 0; j < ne; ++j) nb1[j] = nb0[j];
    }

    if (minpolyconnec < 3)
    {
        for (i = 0; i < nv; ++i)
        {
            for (j = 0; j < nv; ++j) am2[i][j] = 0;
            am2[i][i] = 1;
        }
    }

    nfeas = 0;
    for (i = 0; i < nv; ++i)
    {
        e = ex = firstedge[i];
        do
        {
            if (e == e->min && degree[e->start] > minpolydeg
                            && degree[e->end] > minpolydeg)
                feasible[nfeas++] = e;
	    e->left_facesize = 3;
	    am2[e->start][e->end] = 1;
            e = e->next;
        } while (e != ex);
    }

    prune_poly_edgelist(feasible,nfeas,feasible,&nfeas);

    if (minpolyconnec == 3) scanpoly_c3(nbtot,nbop,feasible,nfeas,3,0,0);
    else                    scanpoly(nbtot,nbop,feasible,nfeas,3,0,0,3);

    if (minimumdeg == 5 && nbtot > 1)
    {
        nb0 = (EDGE**)saved_numbering[0];
        nb1 = (EDGE**)numbering[0];
        for (i = 0; i < nbtot; ++i, nb0 += MAXE, nb1 += MAXE)
            for (j = 0; j < ne; ++j) nb1[j] = nb0[j];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x5f0, %rsp            # imm = 0x5F0
movl %esi, %ebp
movl %edi, %ebx
cmpl $0x2, %edi
jl 0x11257
cmpl $0x5, 0x12f96(%rip)     # 0x241a8
jne 0x11257
movl 0x2313ea(%rip), %eax    # 0x242604
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
leaq 0x281038(%rip), %rdx    # 0x292260
leaq 0x14ab1(%rip), %rsi     # 0x25ce0
movl $0xba0, %edi            # imm = 0xBA0
cmpl %ebx, %ecx
je 0x11257
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x1124d
movq (%rsi,%r8,8), %r9
movq %r9, (%rdx,%r8,8)
incq %r8
jmp 0x1123b
incl %ecx
addq %rdi, %rsi
addq %rdi, %rdx
jmp 0x11234
movl 0x12f36(%rip), %r15d    # 0x24194
movl 0x23139c(%rip), %edx    # 0x242600
xorl %esi, %esi
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
leaq 0x277ab9(%rip), %rcx    # 0x288d30
cmpl $0x2, %r15d
jg 0x112b1
xorl %edi, %edi
movq %rcx, %r8
cmpq %rax, %rdi
je 0x112b1
xorl %r9d, %r9d
cmpq %r9, %rdx
je 0x11299
movb $0x0, (%r8,%r9)
incq %r9
jmp 0x1128a
movq %rdi, %r9
shlq $0x6, %r9
addq %rcx, %r9
movb $0x1, (%rdi,%r9)
incq %rdi
addq $0x40, %r8
jmp 0x11282
movl 0x12ed9(%rip), %edx     # 0x24190
leaq 0x14722(%rip), %rdi     # 0x259e0
leaq 0x1491b(%rip), %r8      # 0x25be0
xorl %r9d, %r9d
cmpq %rax, %r9
je 0x1131d
movq (%rdi,%r9,8), %r10
movq %r10, %r11
movslq (%r11), %r14
cmpq 0x28(%r11), %r11
jne 0x112f7
cmpl %edx, (%r8,%r14,4)
jle 0x112f7
movslq 0x4(%r11), %r12
cmpl %edx, (%r8,%r12,4)
jle 0x112f7
movslq %esi, %r12
incl %esi
movq %r11, 0x20(%rsp,%r12,8)
movl $0x3, 0x38(%r11)
movslq 0x4(%r11), %r12
shlq $0x6, %r14
addq %rcx, %r14
movb $0x1, (%r12,%r14)
movq 0x18(%r11), %r11
cmpq %r10, %r11
jne 0x112d4
incq %r9
jmp 0x112c8
leaq 0x1c(%rsp), %r14
movl %esi, (%r14)
leaq 0x20(%rsp), %rdi
movq %rdi, %rdx
movq %r14, %rcx
callq 0x13115
movl (%r14), %ecx
cmpl $0x3, %r15d
jne 0x11359
andl $0x0, (%rsp)
leaq 0x20(%rsp), %rdx
pushq $0x3
popq %r8
movl %ebx, %edi
movl %ebp, %esi
xorl %r9d, %r9d
callq 0x13170
jmp 0x1137a
movl $0x3, 0x8(%rsp)
andl $0x0, (%rsp)
leaq 0x20(%rsp), %rdx
pushq $0x3
popq %r8
movl %ebx, %edi
movl %ebp, %esi
xorl %r9d, %r9d
callq 0x13d14
cmpl $0x2, %ebx
jl 0x113cb
cmpl $0x5, 0x12e22(%rip)     # 0x241a8
jne 0x113cb
movl 0x231276(%rip), %eax    # 0x242604
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
leaq 0x14944(%rip), %rdx     # 0x25ce0
leaq 0x280ebd(%rip), %rsi    # 0x292260
movl $0xba0, %edi            # imm = 0xBA0
cmpl %ebx, %ecx
je 0x113cb
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x113c1
movq (%rsi,%r8,8), %r9
movq %r9, (%rdx,%r8,8)
incq %r8
jmp 0x113af
incl %ecx
addq %rdi, %rsi
addq %rdi, %rdx
jmp 0x113a8
addq $0x5f0, %rsp            # imm = 0x5F0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq