// File: /workspace/github_c_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x5e8, %rsp            # imm = 0x5E8
movl %esi, 0x4(%rsp)
movl %edi, %ebp
cmpl $0x2, %edi
jl 0x12419
cmpl $0x5, 0x13de2(%rip)     # 0x261b8
jne 0x12419
movl 0x232235(%rip), %r15d   # 0x244614
movq %r15, %r14
shlq $0x3, %r14
xorl %r12d, %r12d
leaq 0x15900(%rip), %r13     # 0x27cf0
movl %ebp, %ebx
testl %r15d, %r15d
jle 0x1240e
leaq 0x281e72(%rip), %rax    # 0x294270
leaq (%rax,%r12), %rdi
leaq (%r12,%r13), %rsi
movq %r14, %rdx
callq 0x1080
addq $0xba0, %r12            # imm = 0xBA0
decl %ebx
jne 0x123f2
movl 0x13d85(%rip), %eax     # 0x261a4
movl %eax, 0x8(%rsp)
cmpl $0x2, %eax
jg 0x12467
movslq 0x2321e1(%rip), %r14    # 0x244610
testq %r14, %r14
jle 0x12467
movq %r14, %r12
shlq $0x6, %r12
leaq 0x2788fe(%rip), %r15    # 0x28ad40
xorl %ebx, %ebx
movq %r15, %r13
leaq (%r15,%rbx), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1030
movb $0x1, (%r13)
addq $0x41, %r13
addq $0x40, %rbx
cmpq %rbx, %r12
jne 0x12447
movl $0x0, 0xc(%rsp)
movslq 0x23219a(%rip), %rax    # 0x244610
testq %rax, %rax
jle 0x124f2
xorl %ecx, %ecx
movl 0x13d1d(%rip), %edx     # 0x261a0
leaq 0x15566(%rip), %rdi     # 0x279f0
leaq 0x1575f(%rip), %r8      # 0x27bf0
leaq 0x2788a8(%rip), %r9     # 0x28ad40
xorl %esi, %esi
movq (%rdi,%rcx,8), %r10
movq %r10, %r11
cmpq 0x28(%r11), %r11
jne 0x124c4
movslq (%r11), %rbx
cmpl %edx, (%r8,%rbx,4)
jle 0x124c4
movslq 0x4(%r11), %rbx
cmpl %edx, (%r8,%rbx,4)
jle 0x124c4
movslq %esi, %rbx
incl %esi
movq %r11, 0x10(%rsp,%rbx,8)
movl $0x3, 0x38(%r11)
movslq (%r11), %rbx
movslq 0x4(%r11), %r14
shlq $0x6, %rbx
addq %r9, %rbx
movb $0x1, (%r14,%rbx)
movq 0x18(%r11), %r11
cmpq %r10, %r11
jne 0x124a1
incq %rcx
cmpq %rax, %rcx
jne 0x1249a
jmp 0x124f4
xorl %esi, %esi
leaq 0xc(%rsp), %r14
movl %esi, (%r14)
leaq 0x10(%rsp), %rdi
movq %rdi, %rdx
movq %r14, %rcx
callq 0x145a9
movl (%r14), %ecx
cmpl $0x3, 0x8(%rsp)
jne 0x12537
subq $0x8, %rsp
leaq 0x18(%rsp), %rdx
movl %ebp, %edi
movl 0xc(%rsp), %esi
movl $0x3, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0x14607
jmp 0x12554
leaq 0x10(%rsp), %rdx
movl %ebp, %edi
movl 0x4(%rsp), %esi
movl $0x3, %r8d
xorl %r9d, %r9d
pushq $0x3
pushq $0x0
callq 0x1525b
addq $0x10, %rsp
cmpl $0x2, %ebp
jl 0x125a5
cmpl $0x5, 0x13c54(%rip)     # 0x261b8
jne 0x125a5
movl 0x2320a7(%rip), %r15d   # 0x244614
movq %r15, %r14
shlq $0x3, %r14
xorl %r12d, %r12d
leaq 0x15772(%rip), %r13     # 0x27cf0
leaq 0x281ceb(%rip), %rbx    # 0x294270
testl %r15d, %r15d
jle 0x1259a
leaq (%r12,%r13), %rdi
leaq (%rbx,%r12), %rsi
movq %r14, %rdx
callq 0x1080
addq $0xba0, %r12            # imm = 0xBA0
decl %ebp
jne 0x12585
addq $0x5e8, %rsp            # imm = 0x5E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq