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

/* The main node of the recursion for 3-connected quadrangulations
   without non-facial 4-cycles.
   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 spoke!=NULL the input is a pseudo-double wheel and this is a
   spoke from the rim towards the hub.
   If dosplit==TRUE, this is the place to do splitting (if any).
   Splitting is a bit more complicated because the P operation adds
   two vertices.
   P1edge[0..nP1edges-1] are edges of the graph that were reference
   edges for P1-operations in ancestors of this graph.  They may not
   be reference edges for P1-reductions now, but at least they are edges.
   However, if nP1edges>0, we can say that certainly P1edge[nP1edges-1]
   is a P1-operation that was just done.
*/

{
    EDGE *firstedge_save[MAXN];
    EDGE *extP1[MAXE];
    EDGE *good_or[MAXE],*good_mir[MAXE];
    int ngood_or,ngood_mir,ngood_ref,ngood_mir_ref;
    int nextP1,i;
    int xnbtot,xnbop;
    EDGE *newP1edge[MAXN],*rededge;
    EDGE *hint;

    if (nv == maxnv)
    {
	got_one(nbtot,nbop,4);   /* Note connectivity is really 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_QUAD_NF4
    if (!(PRE_FILTER_QUAD_NF4)) return;
#endif

#ifndef FIND_EXTENSIONS_QUAD_NF4
#define FIND_EXTENSIONS_QUAD_NF4 find_extensions_quad_nf4
#endif

    FIND_EXTENSIONS_QUAD_NF4(nbtot,nbop,extP1,&nextP1,
				  (nP1edges==0?NULL:P1edge[nP1edges-1]));

    if (spoke && nv <= maxnv-2)
    {
        rededge = extend_quadr_P2(spoke);
#ifdef FAST_FILTER_QUAD_NF4
        if (FAST_FILTER_QUAD_NF4)
#endif  
        {
            (void)canon(degree,numbering,&xnbtot,&xnbop);
            scanquadrangulations_nf4(xnbtot,xnbop,spoke,
                              nv==splitlevel||nv==splitlevel+1,newP1edge,0);
	}
        reduce_quadr_P2(rededge);
    }

    hint = NULL;
    for (i = 0; i < nextP1; ++i)
    {
        rededge = extend_quadr_P1(extP1[i]);
#ifdef FAST_FILTER_QUAD_NF4
        if (FAST_FILTER_QUAD_NF4)
#endif  
        {
	    quadr_P1_legal_nf4(rededge,good_or,&ngood_or,&ngood_ref,good_mir,
                           &ngood_mir,&ngood_mir_ref,P1edge,nP1edges,&hint);
            if (ngood_ref+ngood_mir_ref > 0)
	    {
	        if (nv == maxnv && !needgroup && ngood_or == ngood_ref
                                              && ngood_mir == ngood_mir_ref)
		    got_one(1,1,4);
	        else if (ngood_or+ngood_mir==1)
	        {
    		    P1edge[nP1edges] = rededge;
    		    scanquadrangulations_nf4(1,1,NULL,nv==splitlevel,
							P1edge,nP1edges+1);
	        }
	        else if (canon_edge_oriented(good_or,ngood_or,ngood_ref,
                                             good_mir,ngood_mir,ngood_mir_ref,
                                             degree,numbering,&xnbtot,&xnbop))
	        {
		    P1edge[nP1edges] = rededge;
	            scanquadrangulations_nf4(xnbtot,xnbop,NULL,nv==splitlevel,
                                                            P1edge,nP1edges+1);
	        }
	    }
	}
	reduce_quadr_P1(rededge);
    }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x2788, %rsp           # imm = 0x2788
movl %edi, -0xc(%rbp)
movl %esi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movl 0x225d79(%rip), %eax    # 0x25a620
cmpl 0x79d3(%rip), %eax      # 0x3c280
jne 0x348c4
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
movl $0x4, %edx
callq 0x8080
jmp 0x34d00
cmpl $0x0, -0x1c(%rbp)
je 0x34940
movl 0x26c360(%rip), %eax    # 0x2a0c30
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, 0x26c355(%rip)    # 0x2a0c30
cmpl $0x0, %eax
je 0x348e5
jmp 0x34d00
movl 0x7991(%rip), %eax      # 0x3c27c
subl $0x1, %eax
movl %eax, 0x26c33c(%rip)    # 0x2a0c30
movl $0x0, -0x2528(%rbp)
movl -0x2528(%rbp), %eax
cmpl 0x225d16(%rip), %eax    # 0x25a620
jge 0x3493e
movslq -0x2528(%rbp), %rcx
leaq 0x90e6(%rip), %rax      # 0x3da00
movq (%rax,%rcx,8), %rcx
movslq -0x2528(%rbp), %rax
movq %rcx, -0x230(%rbp,%rax,8)
movl -0x2528(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2528(%rbp)
jmp 0x348fe
jmp 0x34940
movl -0xc(%rbp), %eax
movl %eax, -0x2750(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x274c(%rbp)
leaq -0xdd0(%rbp), %rax
movq %rax, -0x2748(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x34971
xorl %eax, %eax
movq %rax, -0x2758(%rbp)
jmp 0x34989
movq -0x28(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x2758(%rbp)
movq -0x2748(%rbp), %rdx
movl -0x274c(%rbp), %esi
movl -0x2750(%rbp), %edi
movq -0x2758(%rbp), %r8
leaq -0x2524(%rbp), %rcx
callq 0x34d10
cmpq $0x0, -0x18(%rbp)
je 0x34a8e
movl 0x225c60(%rip), %eax    # 0x25a620
movl 0x78ba(%rip), %ecx      # 0x3c280
subl $0x2, %ecx
cmpl %ecx, %eax
jg 0x34a8e
movq -0x18(%rbp), %rdi
callq 0x13f40
movq %rax, -0x2738(%rbp)
leaq 0x9218(%rip), %rdi      # 0x3dc00
leaq 0x9311(%rip), %rsi      # 0x3dd00
leaq -0x252c(%rbp), %rdx
leaq -0x2530(%rbp), %rcx
callq 0x7410
movl -0x252c(%rbp), %eax
movl %eax, -0x2770(%rbp)
movl -0x2530(%rbp), %eax
movl %eax, -0x276c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x2768(%rbp)
movl 0x225bf5(%rip), %ecx    # 0x25a620
movb $0x1, %al
cmpl 0x8fc1(%rip), %ecx      # 0x3d9f4
movb %al, -0x2759(%rbp)
je 0x34a55
movl 0x225bdf(%rip), %eax    # 0x25a620
movl 0x8fad(%rip), %ecx      # 0x3d9f4
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x2759(%rbp)
movq -0x2768(%rbp), %rdx
movl -0x276c(%rbp), %esi
movl -0x2770(%rbp), %edi
movb -0x2759(%rbp), %al
andb $0x1, %al
movzbl %al, %ecx
leaq -0x2730(%rbp), %r8
xorl %r9d, %r9d
callq 0x34880
movq -0x2738(%rbp), %rdi
callq 0x14200
movq $0x0, -0x2740(%rbp)
movl $0x0, -0x2528(%rbp)
movl -0x2528(%rbp), %eax
cmpl -0x2524(%rbp), %eax
jge 0x34cae
movslq -0x2528(%rbp), %rax
movq -0xdd0(%rbp,%rax,8), %rdi
callq 0xf9e0
movq %rax, -0x2738(%rbp)
movq -0x2738(%rbp), %rdi
leaq -0x1970(%rbp), %rsi
leaq -0x2510(%rbp), %r8
movq -0x28(%rbp), %r11
movl -0x2c(%rbp), %r10d
leaq -0x2514(%rbp), %rdx
leaq -0x251c(%rbp), %rcx
leaq -0x2518(%rbp), %r9
leaq -0x2520(%rbp), %rbx
leaq -0x2740(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x350f0
movl -0x251c(%rbp), %eax
addl -0x2520(%rbp), %eax
cmpl $0x0, %eax
jle 0x34c8e
movl 0x225add(%rip), %eax    # 0x25a620
cmpl 0x7737(%rip), %eax      # 0x3c280
jne 0x34b86
cmpl $0x0, 0x8e9e(%rip)      # 0x3d9f0
jne 0x34b86
movl -0x2514(%rbp), %eax
cmpl -0x251c(%rbp), %eax
jne 0x34b86
movl -0x2518(%rbp), %eax
cmpl -0x2520(%rbp), %eax
jne 0x34b86
movl $0x1, %esi
movl $0x4, %edx
movl %esi, %edi
callq 0x8080
jmp 0x34c8c
movl -0x2514(%rbp), %eax
addl -0x2518(%rbp), %eax
cmpl $0x1, %eax
jne 0x34bdf
movq -0x2738(%rbp), %rdx
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x225a70(%rip), %eax    # 0x25a620
cmpl 0x8e3e(%rip), %eax      # 0x3d9f4
sete %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x28(%rbp), %r8
movl -0x2c(%rbp), %r9d
addl $0x1, %r9d
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
movl %esi, %edi
callq 0x34880
jmp 0x34c8a
leaq -0x1970(%rbp), %rdi
movl -0x2514(%rbp), %esi
movl -0x251c(%rbp), %edx
leaq -0x2510(%rbp), %rcx
movl -0x2518(%rbp), %r8d
movl -0x2520(%rbp), %r9d
leaq 0x8ff2(%rip), %rbx      # 0x3dc00
leaq 0x90eb(%rip), %r11      # 0x3dd00
leaq -0x252c(%rbp), %r10
leaq -0x2530(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xf4b0
cmpl $0x0, %eax
je 0x34c88
movq -0x2738(%rbp), %rdx
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x252c(%rbp), %edi
movl -0x2530(%rbp), %esi
movl 0x2259bb(%rip), %eax    # 0x25a620
cmpl 0x8d89(%rip), %eax      # 0x3d9f4
sete %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x28(%rbp), %r8
movl -0x2c(%rbp), %r9d
addl $0x1, %r9d
xorl %eax, %eax
movl %eax, %edx
callq 0x34880
jmp 0x34c8a
jmp 0x34c8c
jmp 0x34c8e
movq -0x2738(%rbp), %rdi
callq 0x10150
movl -0x2528(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2528(%rbp)
jmp 0x34aa3
cmpl $0x0, -0x1c(%rbp)
je 0x34d00
movl $0x0, -0x2528(%rbp)
movl -0x2528(%rbp), %eax
cmpl 0x225956(%rip), %eax    # 0x25a620
jge 0x34cfe
movslq -0x2528(%rbp), %rax
movq -0x230(%rbp,%rax,8), %rdx
movslq -0x2528(%rbp), %rcx
leaq 0x8d17(%rip), %rax      # 0x3da00
movq %rdx, (%rax,%rcx,8)
movl -0x2528(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2528(%rbp)
jmp 0x34cbe
jmp 0x34d00
addq $0x2788, %rsp           # imm = 0x2788
popq %rbx
popq %rbp
retq
nopw (%rax,%rax)