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

/* The main node of the recursion for bipartite triangulations
   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 wheelrim != NULL, the input is a double wheel and *wheelrim is
   one of the edges on the rim.
   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.
   Pedges[0..nPedges-1] are edges of the graph that were reference
   edges for P-operations in ancestors of this graph.  They may not
   be reference edges for P-reductions now, but at least they are edges.
   However, if nPedges>0, we can say that certainly Pedges[nPedges-1]
   is a P-operation that was just done.
*/
{
    EDGE *firstedge_save[MAXN];
    EDGE *extP[MAXE],*extQ[MAXE];
    EDGE *good_or[MAXE],*good_mir[MAXE];
    int ngood_or,ngood_mir,ngood_ref,ngood_mir_ref;
    int nextP,nextQ,i;
    int xnbtot,xnbop;
    EDGE *hint,*newPedges[MAXN/2];

    if (nv == maxnv)
    {
	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_BIP
    if (!(PRE_FILTER_BIP)) return;
#endif

#ifndef FIND_EXTENSIONS_BIP
#define FIND_EXTENSIONS_BIP find_extensions_bip
#endif

    FIND_EXTENSIONS_BIP(nbtot,nbop,extP,&nextP,extQ,&nextQ,Pedges,nPedges);

    if (wheelrim && nv <= maxnv-2)
    {
        extend_bip_P(wheelrim);
#ifdef FAST_FILTER_BIP
        if (FAST_FILTER_BIP)
#endif  
        {
            (void)canon(degree,numbering,&xnbtot,&xnbop);
            scanbipartite(xnbtot,xnbop,wheelrim,
                          nv==splitlevel||nv==splitlevel+1,Pedges,0);
	}
        reduce_bip_P(wheelrim);
    }

    for (i = 0; i < nextP; ++i)
    {
        extend_bip_P(extP[i]);
#ifdef FAST_FILTER_BIP
        if (FAST_FILTER_BIP)
#endif 
        {
	    bip_P_legal(extP[i],good_or,&ngood_or,&ngood_ref,
		        good_mir,&ngood_mir,&ngood_mir_ref,
		        nPedges?Pedges[nPedges-1]:NULL);
            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)
	        {
    		    Pedges[nPedges] = extP[i];
    		    scanbipartite(1,1,NULL,
                          nv==splitlevel||nv==splitlevel+1,Pedges,nPedges+1);
	        }
	        else if (canon_edge_oriented(good_or,ngood_or,ngood_ref,
                                           good_mir,ngood_mir,ngood_mir_ref,
                                           degree,numbering,&xnbtot,&xnbop))
	        {
		    Pedges[nPedges] = extP[i];
	            scanbipartite(xnbtot,xnbop,NULL,
                         nv==splitlevel||nv==splitlevel+1,Pedges,nPedges+1);
	        }
	    }
	}
	reduce_bip_P(extP[i]);
    }

    hint = NULL;
    for (i = 0; i < nextQ; ++i)
    {
        extend_bip_Q(extQ[i]);
#ifdef FAST_FILTER_BIP
        if (FAST_FILTER_BIP)
#endif 
        {
            if (!hint || !is_bip_P(hint)) hint = has_bip_P();

            if (!hint)
	    {
	        bip_Q_legal(extQ[i],good_or,&ngood_or,&ngood_ref,
                            good_mir,&ngood_mir,&ngood_mir_ref);
                if (ngood_ref+ngood_mir_ref > 0
                    && canon_edge_oriented(good_or,ngood_or,ngood_ref,
                                           good_mir,ngood_mir,ngood_mir_ref,
                                           degree,numbering,&xnbtot,&xnbop))
	           scanbipartite(xnbtot,xnbop,NULL,nv==splitlevel,newPedges,0);
	    }
	}
	reduce_bip_Q(extQ[i]);
    }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x3248, %rsp           # imm = 0x3248
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 0x2292b9(%rip), %eax    # 0x25a620
cmpl 0xaf13(%rip), %eax      # 0x3c280
jne 0x31384
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
movl $0x3, %edx
callq 0x8080
jmp 0x319ba
cmpl $0x0, -0x1c(%rbp)
je 0x31400
movl 0x26f8a0(%rip), %eax    # 0x2a0c30
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, 0x26f895(%rip)    # 0x2a0c30
cmpl $0x0, %eax
je 0x313a5
jmp 0x319ba
movl 0xaed1(%rip), %eax      # 0x3c27c
subl $0x1, %eax
movl %eax, 0x26f87c(%rip)    # 0x2a0c30
movl $0x0, -0x30cc(%rbp)
movl -0x30cc(%rbp), %eax
cmpl 0x229256(%rip), %eax    # 0x25a620
jge 0x313fe
movslq -0x30cc(%rbp), %rcx
leaq 0xc626(%rip), %rax      # 0x3da00
movq (%rax,%rcx,8), %rcx
movslq -0x30cc(%rbp), %rax
movq %rcx, -0x230(%rbp,%rax,8)
movl -0x30cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30cc(%rbp)
jmp 0x313be
jmp 0x31400
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
leaq -0xdd0(%rbp), %rdx
leaq -0x1970(%rbp), %r8
movq -0x28(%rbp), %r10
movl -0x2c(%rbp), %eax
leaq -0x30c4(%rbp), %rcx
leaq -0x30c8(%rbp), %r9
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x319d0
cmpq $0x0, -0x18(%rbp)
je 0x31508
movl 0x2291d9(%rip), %eax    # 0x25a620
movl 0xae33(%rip), %ecx      # 0x3c280
subl $0x2, %ecx
cmpl %ecx, %eax
jg 0x31508
movq -0x18(%rbp), %rdi
callq 0x32840
leaq 0xc798(%rip), %rdi      # 0x3dc00
leaq 0xc891(%rip), %rsi      # 0x3dd00
leaq -0x30d0(%rbp), %rdx
leaq -0x30d4(%rbp), %rcx
callq 0x7410
movl -0x30d0(%rbp), %eax
movl %eax, -0x31f8(%rbp)
movl -0x30d4(%rbp), %eax
movl %eax, -0x31f4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x31f0(%rbp)
movl 0x229175(%rip), %ecx    # 0x25a620
movb $0x1, %al
cmpl 0xc541(%rip), %ecx      # 0x3d9f4
movb %al, -0x31e1(%rbp)
je 0x314d5
movl 0x22915f(%rip), %eax    # 0x25a620
movl 0xc52d(%rip), %ecx      # 0x3d9f4
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x31e1(%rbp)
movq -0x31f0(%rbp), %rdx
movl -0x31f4(%rbp), %esi
movl -0x31f8(%rbp), %edi
movb -0x31e1(%rbp), %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x28(%rbp), %r8
xorl %r9d, %r9d
callq 0x31340
movq -0x18(%rbp), %rdi
callq 0x32b60
movl $0x0, -0x30cc(%rbp)
movl -0x30cc(%rbp), %eax
cmpl -0x30c4(%rbp), %eax
jge 0x317e3
movslq -0x30cc(%rbp), %rax
movq -0xdd0(%rbp,%rax,8), %rdi
callq 0x32840
movslq -0x30cc(%rbp), %rax
movq -0xdd0(%rbp,%rax,8), %rax
movq %rax, -0x3210(%rbp)
leaq -0x2510(%rbp), %rax
movq %rax, -0x3208(%rbp)
leaq -0x30b0(%rbp), %rax
movq %rax, -0x3200(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x3158a
movq -0x28(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x3218(%rbp)
jmp 0x31595
xorl %eax, %eax
movq %rax, -0x3218(%rbp)
jmp 0x31595
movq -0x3200(%rbp), %r8
movq -0x3208(%rbp), %rsi
movq -0x3210(%rbp), %rdi
movq -0x3218(%rbp), %rax
leaq -0x30b4(%rbp), %rdx
leaq -0x30bc(%rbp), %rcx
leaq -0x30b8(%rbp), %r9
leaq -0x30c0(%rbp), %r10
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x32d10
movl -0x30bc(%rbp), %eax
addl -0x30c0(%rbp), %eax
cmpl $0x0, %eax
jle 0x317bb
movl 0x22902a(%rip), %eax    # 0x25a620
cmpl 0xac84(%rip), %eax      # 0x3c280
jne 0x31639
cmpl $0x0, 0xc3eb(%rip)      # 0x3d9f0
jne 0x31639
movl -0x30b4(%rbp), %eax
cmpl -0x30bc(%rbp), %eax
jne 0x31639
movl -0x30b8(%rbp), %eax
cmpl -0x30c0(%rbp), %eax
jne 0x31639
movl $0x1, %esi
movl $0x3, %edx
movl %esi, %edi
callq 0x8080
jmp 0x317b9
movl -0x30b4(%rbp), %eax
addl -0x30b8(%rbp), %eax
cmpl $0x1, %eax
jne 0x316c1
movslq -0x30cc(%rbp), %rax
movq -0xdd0(%rbp,%rax,8), %rdx
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x228fb5(%rip), %ecx    # 0x25a620
movb $0x1, %al
cmpl 0xc381(%rip), %ecx      # 0x3d9f4
movb %al, -0x3219(%rbp)
je 0x31695
movl 0x228f9f(%rip), %eax    # 0x25a620
movl 0xc36d(%rip), %ecx      # 0x3d9f4
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x3219(%rbp)
movb -0x3219(%rbp), %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 0x31340
jmp 0x317b7
leaq -0x2510(%rbp), %rdi
movl -0x30b4(%rbp), %esi
movl -0x30bc(%rbp), %edx
leaq -0x30b0(%rbp), %rcx
movl -0x30b8(%rbp), %r8d
movl -0x30c0(%rbp), %r9d
leaq 0xc510(%rip), %rbx      # 0x3dc00
leaq 0xc609(%rip), %r11      # 0x3dd00
leaq -0x30d0(%rbp), %r10
leaq -0x30d4(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xf4b0
cmpl $0x0, %eax
je 0x317b5
movslq -0x30cc(%rbp), %rax
movq -0xdd0(%rbp,%rax,8), %rdx
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x30d0(%rbp), %eax
movl %eax, -0x3224(%rbp)
movl -0x30d4(%rbp), %eax
movl %eax, -0x3220(%rbp)
movl 0x228ec1(%rip), %ecx    # 0x25a620
movb $0x1, %al
cmpl 0xc28d(%rip), %ecx      # 0x3d9f4
movb %al, -0x321a(%rbp)
je 0x31789
movl 0x228eab(%rip), %eax    # 0x25a620
movl 0xc279(%rip), %ecx      # 0x3d9f4
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x321a(%rbp)
movl -0x3220(%rbp), %esi
movl -0x3224(%rbp), %edi
movb -0x321a(%rbp), %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 0x31340
jmp 0x317b7
jmp 0x317b9
jmp 0x317bb
movslq -0x30cc(%rbp), %rax
movq -0xdd0(%rbp,%rax,8), %rdi
callq 0x32b60
movl -0x30cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30cc(%rbp)
jmp 0x31512
movq $0x0, -0x30e0(%rbp)
movl $0x0, -0x30cc(%rbp)
movl -0x30cc(%rbp), %eax
cmpl -0x30c8(%rbp), %eax
jge 0x31968
movslq -0x30cc(%rbp), %rax
movq -0x1970(%rbp,%rax,8), %rdi
callq 0x338c0
cmpq $0x0, -0x30e0(%rbp)
je 0x31839
movq -0x30e0(%rbp), %rdi
callq 0x33bd0
cmpl $0x0, %eax
jne 0x31845
callq 0x33d20
movq %rax, -0x30e0(%rbp)
cmpq $0x0, -0x30e0(%rbp)
jne 0x31940
movslq -0x30cc(%rbp), %rax
movq -0x1970(%rbp,%rax,8), %rdi
leaq -0x2510(%rbp), %rsi
leaq -0x30b0(%rbp), %r8
leaq -0x30b4(%rbp), %rdx
leaq -0x30bc(%rbp), %rcx
leaq -0x30b8(%rbp), %r9
leaq -0x30c0(%rbp), %rax
movq %rax, (%rsp)
callq 0x33ef0
movl -0x30bc(%rbp), %eax
addl -0x30c0(%rbp), %eax
cmpl $0x0, %eax
jle 0x3193e
leaq -0x2510(%rbp), %rdi
movl -0x30b4(%rbp), %esi
movl -0x30bc(%rbp), %edx
leaq -0x30b0(%rbp), %rcx
movl -0x30b8(%rbp), %r8d
movl -0x30c0(%rbp), %r9d
leaq 0xc327(%rip), %rbx      # 0x3dc00
leaq 0xc420(%rip), %r11      # 0x3dd00
leaq -0x30d0(%rbp), %r10
leaq -0x30d4(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xf4b0
cmpl $0x0, %eax
je 0x3193e
movl -0x30d0(%rbp), %edi
movl -0x30d4(%rbp), %esi
movl 0x228d03(%rip), %eax    # 0x25a620
cmpl 0xc0d1(%rip), %eax      # 0x3d9f4
sete %al
andb $0x1, %al
movzbl %al, %ecx
leaq -0x31e0(%rbp), %r8
xorl %eax, %eax
movl %eax, %edx
xorl %r9d, %r9d
callq 0x31340
jmp 0x31940
movslq -0x30cc(%rbp), %rax
movq -0x1970(%rbp,%rax,8), %rdi
callq 0x346d0
movl -0x30cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30cc(%rbp)
jmp 0x317f8
cmpl $0x0, -0x1c(%rbp)
je 0x319ba
movl $0x0, -0x30cc(%rbp)
movl -0x30cc(%rbp), %eax
cmpl 0x228c9c(%rip), %eax    # 0x25a620
jge 0x319b8
movslq -0x30cc(%rbp), %rax
movq -0x230(%rbp,%rax,8), %rdx
movslq -0x30cc(%rbp), %rcx
leaq 0xc05d(%rip), %rax      # 0x3da00
movq %rdx, (%rax,%rcx,8)
movl -0x30cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30cc(%rbp)
jmp 0x31978
jmp 0x319ba
addq $0x3248, %rsp           # imm = 0x3248
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)