// File: /workspace/github_c_makefile_star2_O0/mishun[P]plantri/plantri.c
// Function: has_bip_P
static EDGE*
has_bip_P(void)

/* If the graph has a legal P-reduction return an example;
   otherwise return NULL. */
{

    int i,j,w,z;
    EDGE *e,*e1,*ez,*ezlast;

    for (i = 0; i < nv; ++i)
    if (degree[i] == 4)
    {
	e = firstedge[i];
	j = 0;
	if (degree[e->end] == 4) {e1 = e; ++j;} e=e->next;
	if (degree[e->end] == 4) {e1 = e; ++j;} e=e->next;
	if (degree[e->end] == 4) {e1 = e; ++j;} e=e->next;
	if (degree[e->end] == 4) {e1 = e; ++j;}
	if (j != 1) continue;

	e = e1->next->next;
        
	w = e->end;
	z = e1->invers->next->next->end;
        
	if (degree[z] != 4)
	{
            ezlast = ez = firstedge[z];
            do
            {
                if (ez->end == w) break;
                ez = ez->next;
            } while (ez != ezlast);
            if (ez->end == w) continue;
	}

	return e;
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl 0x2268ec(%rip), %eax    # 0x25a620
jge 0x33ed6
movslq -0xc(%rbp), %rcx
leaq 0x9ebb(%rip), %rax      # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jne 0x33ec6
movslq -0xc(%rbp), %rcx
leaq 0x9ca6(%rip), %rax      # 0x3da00
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x9e88(%rip), %rax      # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jne 0x33d8f
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x9e56(%rip), %rax      # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jne 0x33dc1
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x9e24(%rip), %rax      # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jne 0x33df3
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x9df2(%rip), %rax      # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jne 0x33e25
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
cmpl $0x1, -0x10(%rbp)
je 0x33e30
jmp 0x33ec8
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
movl 0x4(%rax), %eax
movl %eax, -0x18(%rbp)
movslq -0x18(%rbp), %rcx
leaq 0x9d95(%rip), %rax      # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
je 0x33ebc
movslq -0x18(%rbp), %rcx
leaq 0x9b84(%rip), %rax      # 0x3da00
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x33e96
jmp 0x33eac
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x33e88
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x33eba
jmp 0x33ec8
jmp 0x33ebc
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33ede
jmp 0x33ec8
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x33d2b
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)