// File: /workspace/github_c_makefile_star2_O3/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, 0x8(%rsp)
movl %edi, %ebp
cmpl $0x2, %edi
jl 0x12529
cmpl $0x5, 0x13cd2(%rip)     # 0x261b8
jne 0x12529
movl 0x232125(%rip), %r15d   # 0x244614
movq %r15, %r14
shlq $0x3, %r14
xorl %r12d, %r12d
leaq 0x157f0(%rip), %r13     # 0x27cf0
movl %ebp, %ebx
testl %r15d, %r15d
jle 0x1251e
leaq 0x281d62(%rip), %rax    # 0x294270
leaq (%rax,%r12), %rdi
leaq (%r12,%r13), %rsi
movq %r14, %rdx
callq 0x1070
addq $0xba0, %r12            # imm = 0xBA0
decl %ebx
jne 0x12502
movl 0x13c75(%rip), %eax     # 0x261a4
movl 0x2320da(%rip), %r14d   # 0x244610
movl %eax, 0xc(%rsp)
cmpl $0x2, %eax
jg 0x1257b
testl %r14d, %r14d
jle 0x12635
movq %r14, %r12
shlq $0x6, %r12
leaq 0x2787ea(%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 0x1255b
testl %r14d, %r14d
jle 0x125f3
xorl %eax, %eax
movl 0x13c18(%rip), %ecx     # 0x261a0
leaq 0x15461(%rip), %rdx     # 0x279f0
leaq 0x1565a(%rip), %rdi     # 0x27bf0
leaq 0x2787a3(%rip), %r8     # 0x28ad40
xorl %esi, %esi
movq (%rdx,%rax,8), %r9
movq %r9, %r10
movslq (%r10), %r11
cmpq 0x28(%r10), %r10
jne 0x125c8
cmpl %ecx, (%rdi,%r11,4)
jle 0x125c8
movslq 0x4(%r10), %rbx
cmpl %ecx, (%rdi,%rbx,4)
jle 0x125c8
movslq %esi, %rbx
incl %esi
movq %r10, 0x10(%rsp,%rbx,8)
movl $0x3, 0x38(%r10)
movslq 0x4(%r10), %rbx
shlq $0x6, %r11
addq %r8, %r11
movb $0x1, (%rbx,%r11)
movq 0x18(%r10), %r10
cmpq %r9, %r10
jne 0x125a6
incq %rax
cmpq %r14, %rax
jne 0x1259f
jmp 0x125f5
xorl %esi, %esi
leaq 0x4(%rsp), %rcx
movl %esi, (%rcx)
leaq 0x10(%rsp), %rdi
movq %rdi, %rdx
callq 0x14582
cmpl $0x3, 0xc(%rsp)
jne 0x1264f
movl 0x4(%rsp), %ecx
subq $0x8, %rsp
leaq 0x18(%rsp), %rdx
movl %ebp, %edi
movl 0x10(%rsp), %esi
movl $0x3, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0x145e0
jmp 0x12670
leaq 0x4(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
movq %rdi, %rdx
callq 0x14582
movl 0x4(%rsp), %ecx
leaq 0x10(%rsp), %rdx
movl %ebp, %edi
movl 0x8(%rsp), %esi
movl $0x3, %r8d
xorl %r9d, %r9d
pushq $0x3
pushq $0x0
callq 0x15151
addq $0x10, %rsp
cmpl $0x2, %ebp
jl 0x126c1
cmpl $0x5, 0x13b38(%rip)     # 0x261b8
jne 0x126c1
movl 0x231f8b(%rip), %r15d   # 0x244614
movq %r15, %r14
shlq $0x3, %r14
xorl %r12d, %r12d
leaq 0x15656(%rip), %r13     # 0x27cf0
leaq 0x281bcf(%rip), %rbx    # 0x294270
testl %r15d, %r15d
jle 0x126b6
leaq (%r12,%r13), %rdi
leaq (%rbx,%r12), %rsi
movq %r14, %rdx
callq 0x1070
addq $0xba0, %r12            # imm = 0xBA0
decl %ebp
jne 0x126a1
addq $0x5e8, %rsp            # imm = 0x5E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq