// File: /workspace/github_c_makefile_star2_O0/mishun[P]plantri/plantri.c
// Function: scanmin4
static void
scanmin4(int nbtot, int nbop, int dosplit, EDGE *lastfour)

/* The main node of the recursion for triangulations with minimum
   degree at least 4.
   As this procedure is entered, nv,ne,degree etc are set for some graph,
   and nbtot/nbop are the values returned by canon() for that graph.
   If dosplit==TRUE, this is the place to do splitting (if any).
   Splitting is a bit more complicated because the S operation adds
   three vertices.
   If this graph was made with a four-operation, the reference edge of
   that operation is lastfour.  If not, lastfour=NULL.
*/
{
    EDGE *firstedge_save[MAXN];
    EDGE *ext4[MAXE/2],*ext5[MAXE],*extS[MAXF];
    EDGE *good_or[MAXE],*good_mir[MAXE];
    int ngood_or,ngood_mir,ngood_ref,ngood_mir_ref;
    int next4,next5,nextS,i;
    int xnbtot,xnbop;
    int hint;

    if (nv == maxnv)
    {
        if (pswitch) startpolyscan(nbtot,nbop);
	else         got_one(nbtot,nbop,3);
	return;
    }

    if (dosplit)
    {
#ifdef SPLITTEST
        ADDBIG(splitcases,1);
        return;
#endif
        if (splitcount-- != 0) return;
        splitcount = mod - 1;

        for (i = 0; i < nv; ++i) firstedge_save[i] = firstedge[i];
    }

#ifdef PRE_FILTER_MIN4
    if (!(PRE_FILTER_MIN4)) return;
#endif

#ifndef FIND_EXTENSIONS_MIN4
#define FIND_EXTENSIONS_MIN4 find_extensions_min4
#endif

    FIND_EXTENSIONS_MIN4(nbtot,nbop,ext4,&next4,ext5,&next5,extS,&nextS,
			 lastfour);

    for (i = 0; i < next4; ++i)
    {
        extend_four(ext4[i]);
#ifdef FAST_FILTER_MIN4
        if (FAST_FILTER_MIN4)
#endif 
        {
	    min4_four_legal(ext4[i],good_or,&ngood_or,&ngood_ref,
		         good_mir,&ngood_mir,&ngood_mir_ref);
    
            if (ngood_ref+ngood_mir_ref > 0)
	    {
	        if (nv == maxnv && !needgroup && ngood_or == ngood_ref
                                                && ngood_mir == ngood_mir_ref)
		    got_one(1,1,3);
	        else if (ngood_or+ngood_mir==1)
    		    scanmin4(1,1,nv==splitlevel,ext4[i]);
	        else if (canon_edge_oriented(good_or,ngood_or,ngood_ref,
                                           good_mir,ngood_mir,ngood_mir_ref,
                                           degree,numbering,&xnbtot,&xnbop))
	            scanmin4(xnbtot,xnbop,nv==splitlevel,ext4[i]);
	    }
	}
	reduce_four(ext4[i]);
    }

    /* hint = lastfour ? lastfour->start : -1; */
    hint = -1;
    for (i = 0; i < next5; ++i)
    {
        extend_five(ext5[i]);
#ifdef FAST_FILTER_MIN4
        if (FAST_FILTER_MIN4)
#endif 
        {
            if (hint < 0 || !is_min4_four_centre(hint))
	        hint = min4_four_centre();
	    if (hint < 0)
	    {
                min4_five_legal(ext5[i],good_or,&ngood_or,&ngood_ref,
                                good_mir,&ngood_mir,&ngood_mir_ref);
                if (ngood_ref+ngood_mir_ref > 0)
                {
                    if (canon_edge_oriented(good_or,ngood_or,ngood_ref,
                                            good_mir,ngood_mir,ngood_mir_ref,
                                            degree,numbering,&xnbtot,&xnbop))
                    scanmin4(xnbtot,xnbop,nv==splitlevel,NULL);
                }
	    }
	}
        reduce_five(ext5[i]);
    }

    for (i = 0; i < nextS; ++i)
    {
        extend_S(extS[i]);
#ifdef FAST_FILTER_MIN4
        if (FAST_FILTER_MIN4)
#endif 
        {
            if (degree5_vertex() < 0 && min4_four_centre() < 0)
            {
                min4_S_legal(extS[i],good_or,&ngood_or,&ngood_ref,
                             good_mir,&ngood_mir,&ngood_mir_ref);
                if (ngood_ref+ngood_mir_ref > 0)
                {
                    if (canon_edge_oriented(good_or,ngood_or,ngood_ref,
                                            good_mir,ngood_mir,ngood_mir_ref,
                                            zero,numbering,&xnbtot,&xnbop))
                    scanmin4(xnbtot,xnbop,
			     nv>=splitlevel&&nv<=splitlevel+2,NULL);
                    }
            }
        }
        reduce_S(extS[i]);
    }

    if (dosplit)
        for (i = 0; i < nv; ++i) firstedge[i] = firstedge_save[i];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x2f08, %rsp           # imm = 0x2F08
movl %edi, -0xc(%rbp)
movl %esi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl 0x240a21(%rip), %eax    # 0x25a620
cmpl 0x2267b(%rip), %eax     # 0x3c280
jne 0x19c32
cmpl $0x0, 0x2259a(%rip)     # 0x3c1a8
je 0x19c1d
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
callq 0x1c350
jmp 0x19c2d
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
movl $0x3, %edx
callq 0x8080
jmp 0x1a22f
cmpl $0x0, -0x14(%rbp)
je 0x19cae
movl 0x286ff2(%rip), %eax    # 0x2a0c30
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, 0x286fe7(%rip)    # 0x2a0c30
cmpl $0x0, %eax
je 0x19c53
jmp 0x1a22f
movl 0x22623(%rip), %eax     # 0x3c27c
subl $0x1, %eax
movl %eax, 0x286fce(%rip)    # 0x2a0c30
movl $0x0, -0x2ed0(%rbp)
movl -0x2ed0(%rbp), %eax
cmpl 0x2409a8(%rip), %eax    # 0x25a620
jge 0x19cac
movslq -0x2ed0(%rbp), %rcx
leaq 0x23d78(%rip), %rax     # 0x3da00
movq (%rax,%rcx,8), %rcx
movslq -0x2ed0(%rbp), %rax
movq %rcx, -0x220(%rbp,%rax,8)
movl -0x2ed0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2ed0(%rbp)
jmp 0x19c6c
jmp 0x19cae
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
leaq -0x7f0(%rbp), %rdx
leaq -0x1390(%rbp), %r8
leaq -0x1770(%rbp), %r11
movq -0x20(%rbp), %rax
leaq -0x2ec4(%rbp), %rcx
leaq -0x2ec8(%rbp), %r9
leaq -0x2ecc(%rbp), %r10
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x28650
movl $0x0, -0x2ed0(%rbp)
movl -0x2ed0(%rbp), %eax
cmpl -0x2ec4(%rbp), %eax
jge 0x19ecd
movslq -0x2ed0(%rbp), %rax
movq -0x7f0(%rbp,%rax,8), %rdi
callq 0x28d80
movslq -0x2ed0(%rbp), %rax
movq -0x7f0(%rbp,%rax,8), %rdi
leaq -0x2310(%rbp), %rsi
leaq -0x2eb0(%rbp), %r8
leaq -0x2eb4(%rbp), %rdx
leaq -0x2ebc(%rbp), %rcx
leaq -0x2eb8(%rbp), %r9
leaq -0x2ec0(%rbp), %rax
movq %rax, (%rsp)
callq 0x28fe0
movl -0x2ebc(%rbp), %eax
addl -0x2ec0(%rbp), %eax
cmpl $0x0, %eax
jle 0x19ea5
movl 0x24089e(%rip), %eax    # 0x25a620
cmpl 0x224f8(%rip), %eax     # 0x3c280
jne 0x19dc5
cmpl $0x0, 0x23c5f(%rip)     # 0x3d9f0
jne 0x19dc5
movl -0x2eb4(%rbp), %eax
cmpl -0x2ebc(%rbp), %eax
jne 0x19dc5
movl -0x2eb8(%rbp), %eax
cmpl -0x2ec0(%rbp), %eax
jne 0x19dc5
movl $0x1, %esi
movl $0x3, %edx
movl %esi, %edi
callq 0x8080
jmp 0x19ea3
movl -0x2eb4(%rbp), %eax
addl -0x2eb8(%rbp), %eax
cmpl $0x1, %eax
jne 0x19e0a
movl 0x240844(%rip), %eax    # 0x25a620
cmpl 0x23c12(%rip), %eax     # 0x3d9f4
sete %al
andb $0x1, %al
movzbl %al, %edx
movslq -0x2ed0(%rbp), %rax
movq -0x7f0(%rbp,%rax,8), %rcx
movl $0x1, %esi
movl %esi, %edi
callq 0x19be0
jmp 0x19ea1
leaq -0x2310(%rbp), %rdi
movl -0x2eb4(%rbp), %esi
movl -0x2ebc(%rbp), %edx
leaq -0x2eb0(%rbp), %rcx
movl -0x2eb8(%rbp), %r8d
movl -0x2ec0(%rbp), %r9d
leaq 0x23dc7(%rip), %rbx     # 0x3dc00
leaq 0x23ec0(%rip), %r11     # 0x3dd00
leaq -0x2ed4(%rbp), %r10
leaq -0x2ed8(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xf4b0
cmpl $0x0, %eax
je 0x19e9f
movl -0x2ed4(%rbp), %edi
movl -0x2ed8(%rbp), %esi
movl 0x2407a3(%rip), %eax    # 0x25a620
cmpl 0x23b71(%rip), %eax     # 0x3d9f4
sete %al
andb $0x1, %al
movzbl %al, %edx
movslq -0x2ed0(%rbp), %rax
movq -0x7f0(%rbp,%rax,8), %rcx
callq 0x19be0
jmp 0x19ea1
jmp 0x19ea3
jmp 0x19ea5
movslq -0x2ed0(%rbp), %rax
movq -0x7f0(%rbp,%rax,8), %rdi
callq 0x29760
movl -0x2ed0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2ed0(%rbp)
jmp 0x19cff
movl $0xffffffff, -0x2edc(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x2ed0(%rbp)
movl -0x2ed0(%rbp), %eax
cmpl -0x2ec8(%rbp), %eax
jge 0x1a045
movslq -0x2ed0(%rbp), %rax
movq -0x1390(%rbp,%rax,8), %rdi
callq 0x298e0
cmpl $0x0, -0x2edc(%rbp)
jl 0x19f20
movl -0x2edc(%rbp), %edi
callq 0x29c20
cmpl $0x0, %eax
jne 0x19f2b
callq 0x29cd0
movl %eax, -0x2edc(%rbp)
cmpl $0x0, -0x2edc(%rbp)
jge 0x1a01d
movslq -0x2ed0(%rbp), %rax
movq -0x1390(%rbp,%rax,8), %rdi
leaq -0x2310(%rbp), %rsi
leaq -0x2eb0(%rbp), %r8
leaq -0x2eb4(%rbp), %rdx
leaq -0x2ebc(%rbp), %rcx
leaq -0x2eb8(%rbp), %r9
leaq -0x2ec0(%rbp), %rax
movq %rax, (%rsp)
callq 0x29da0
movl -0x2ebc(%rbp), %eax
addl -0x2ec0(%rbp), %eax
cmpl $0x0, %eax
jle 0x1a01b
leaq -0x2310(%rbp), %rdi
movl -0x2eb4(%rbp), %esi
movl -0x2ebc(%rbp), %edx
leaq -0x2eb0(%rbp), %rcx
movl -0x2eb8(%rbp), %r8d
movl -0x2ec0(%rbp), %r9d
leaq 0x23c42(%rip), %rbx     # 0x3dc00
leaq 0x23d3b(%rip), %r11     # 0x3dd00
leaq -0x2ed4(%rbp), %r10
leaq -0x2ed8(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xf4b0
cmpl $0x0, %eax
je 0x1a019
movl -0x2ed4(%rbp), %edi
movl -0x2ed8(%rbp), %esi
movl 0x24061e(%rip), %eax    # 0x25a620
cmpl 0x239ec(%rip), %eax     # 0x3d9f4
sete %al
andb $0x1, %al
movzbl %al, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x19be0
jmp 0x1a01b
jmp 0x1a01d
movslq -0x2ed0(%rbp), %rax
movq -0x1390(%rbp,%rax,8), %rdi
callq 0x2a190
movl -0x2ed0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2ed0(%rbp)
jmp 0x19ee1
movl $0x0, -0x2ed0(%rbp)
movl -0x2ed0(%rbp), %eax
cmpl -0x2ecc(%rbp), %eax
jge 0x1a1dd
movslq -0x2ed0(%rbp), %rax
movq -0x1770(%rbp,%rax,8), %rdi
callq 0x2a3a0
callq 0x2a690
cmpl $0x0, %eax
jge 0x1a1b5
callq 0x29cd0
cmpl $0x0, %eax
jge 0x1a1b5
movslq -0x2ed0(%rbp), %rax
movq -0x1770(%rbp,%rax,8), %rdi
leaq -0x2310(%rbp), %rsi
leaq -0x2eb0(%rbp), %r8
leaq -0x2eb4(%rbp), %rdx
leaq -0x2ebc(%rbp), %rcx
leaq -0x2eb8(%rbp), %r9
leaq -0x2ec0(%rbp), %rax
movq %rax, (%rsp)
callq 0x2a6e0
movl -0x2ebc(%rbp), %eax
addl -0x2ec0(%rbp), %eax
cmpl $0x0, %eax
jle 0x1a1b3
leaq -0x2310(%rbp), %rdi
movl -0x2eb4(%rbp), %esi
movl -0x2ebc(%rbp), %edx
leaq -0x2eb0(%rbp), %rcx
movl -0x2eb8(%rbp), %r8d
movl -0x2ec0(%rbp), %r9d
leaq 0x4aca69(%rip), %rbx    # 0x4c6b80
leaq 0x23be2(%rip), %r11     # 0x3dd00
leaq -0x2ed4(%rbp), %r10
leaq -0x2ed8(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xf4b0
cmpl $0x0, %eax
je 0x1a1b1
movl -0x2ed4(%rbp), %eax
movl %eax, -0x2ee8(%rbp)
movl -0x2ed8(%rbp), %eax
movl %eax, -0x2ee4(%rbp)
movl 0x2404b9(%rip), %ecx    # 0x25a620
xorl %eax, %eax
cmpl 0x23885(%rip), %ecx     # 0x3d9f4
movb %al, -0x2edd(%rbp)
jl 0x1a191
movl 0x2404a3(%rip), %eax    # 0x25a620
movl 0x23871(%rip), %ecx     # 0x3d9f4
addl $0x2, %ecx
cmpl %ecx, %eax
setle %al
movb %al, -0x2edd(%rbp)
movl -0x2ee4(%rbp), %esi
movl -0x2ee8(%rbp), %edi
movb -0x2edd(%rbp), %al
andb $0x1, %al
movzbl %al, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x19be0
jmp 0x1a1b3
jmp 0x1a1b5
movslq -0x2ed0(%rbp), %rax
movq -0x1770(%rbp,%rax,8), %rdi
callq 0x2aad0
movl -0x2ed0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2ed0(%rbp)
jmp 0x1a04f
cmpl $0x0, -0x14(%rbp)
je 0x1a22f
movl $0x0, -0x2ed0(%rbp)
movl -0x2ed0(%rbp), %eax
cmpl 0x240427(%rip), %eax    # 0x25a620
jge 0x1a22d
movslq -0x2ed0(%rbp), %rax
movq -0x220(%rbp,%rax,8), %rdx
movslq -0x2ed0(%rbp), %rcx
leaq 0x237e8(%rip), %rax     # 0x3da00
movq %rdx, (%rax,%rcx,8)
movl -0x2ed0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2ed0(%rbp)
jmp 0x1a1ed
jmp 0x1a22f
addq $0x2f08, %rsp           # imm = 0x2F08
popq %rbx
popq %rbp
retq
nopl (%rax)