// File: /workspace/github_c_makefile_star2_O2/mishun[P]plantri/plantri.c
// Function: scanspecialloops
static void
scanspecialloops(EDGE *loop[], int nloops, int nbtot, int nbop)
 
/* The recursive procedure for adding special loops.
   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.
   loops[0..nloops-1] are all the loops, of which there is at least one.
   The loops are all in min form. */
{
    register int i;
    int xnbtot,xnbop,nloopmakers,ngood;
    EDGE *loopmaker[MAXE],*good[(MAXE+1)/2],*good_inv[(MAXE+1)/2];
 
    got_one(nbtot,nbop,1);

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

    find_special_loopmakers(loop,nloops,loopmaker,&nloopmakers);
    if (nloopmakers == 0) return;
 
    if (nbtot > 1) prune_edgelist(loopmaker,&nloopmakers,nbtot);
 
    for (i = 0; i < nloopmakers; ++i)
    {
        switch_edge(loopmaker[i]);

        loop[nloops] = loopmaker[i];
        find_start_loops(loop,nloops+1,good,good_inv,&ngood);
        if (ngood > 0)
        {
            if (canon_edge_oriented(good,ngood,1,good_inv,ngood,1,
		                        degree,numbering,&xnbtot,&xnbop))
                scanspecialloops(loop,nloops+1,xnbtot,xnbop);
        }

        switch_edge_back(loopmaker[i]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1768, %rsp           # imm = 0x1768
movl %edx, %r13d
movl %esi, %ebx
movq %rdi, %r14
pushq $0x1
popq %rdx
movl %r13d, %edi
movl %ecx, %esi
callq 0x658a
movl %ebx, 0x4(%rsp)
cmpl $0x2, %ebx
jl 0x1a67e
movl 0x9d8b(%rip), %ecx      # 0x2407c
leal 0x2(%rcx), %eax
movl %eax, 0x9d82(%rip)      # 0x2407c
cmpl $0x752f, %ecx           # imm = 0x752F
jl 0x1a32c
movl $0x2, 0x9d70(%rip)      # 0x2407c
pushq $0x30
popq %rcx
pushq $0x2
popq %rax
leaq 0x2282f7(%rip), %rdx    # 0x242610
cmpq $0x46630, %rcx          # imm = 0x46630
je 0x1a32c
andl $0x0, (%rcx,%rdx)
addq $0x40, %rcx
jmp 0x1a319
movl 0x9d4e(%rip), %edx      # 0x24080
leal 0x1(%rdx), %ecx
movl %ecx, 0x9d45(%rip)      # 0x24080
cmpl $0x7530, %edx           # imm = 0x7530
jl 0x1a36c
movl $0x1, 0x9d33(%rip)      # 0x24080
xorl %edx, %edx
pushq $0x1
popq %rcx
leaq 0x26e8c7(%rip), %rsi    # 0x288c20
cmpq $0x100, %rdx            # imm = 0x100
je 0x1a36c
andl $0x0, (%rdx,%rsi)
addq $0x4, %rdx
jmp 0x1a359
movl 0x9e36(%rip), %edx      # 0x241a8
movb 0x9d2b(%rip), %sil      # 0x240a4
movl 0x4(%rsp), %ebx
xorl %r15d, %r15d
leaq 0x26e899(%rip), %rdi    # 0x288c20
leaq 0xb852(%rip), %rbp      # 0x25be0
xorl %r8d, %r8d
cmpq %r8, %rbx
je 0x1a51c
movq (%r14,%r8,8), %r10
movl %eax, 0x30(%r10)
movq 0x20(%r10), %r9
movl %eax, 0x30(%r9)
movslq (%r10), %r11
cmpl %ecx, (%rdi,%r11,4)
jne 0x1a510
movq 0x10(%r10), %r11
movq 0x10(%r11), %r12
cmpl %eax, 0x30(%r12)
jl 0x1a41c
movslq 0x4(%r11), %r12
cmpl %edx, (%rbp,%r12,4)
jle 0x1a41c
cmpl %r12d, (%r11)
je 0x1a41c
testb $0x1, %sil
jne 0x1a40a
movq 0x20(%r11), %r12
movb %sil, 0x8(%rsp)
movl %r13d, %esi
movq 0x10(%r12), %r13
movq 0x18(%r12), %r12
movq 0x18(%r12), %r12
movq 0x20(%r12), %r12
cmpq 0x10(%r13), %r12
movl %esi, %r13d
movb 0x8(%rsp), %sil
je 0x1a41c
movq 0x28(%r11), %r11
movslq %r15d, %r15
movq %r11, 0xbc0(%rsp,%r15,8)
incl %r15d
movq 0x18(%r10), %r10
movq 0x18(%r10), %r11
cmpl %eax, 0x30(%r11)
jl 0x1a46d
movslq 0x4(%r10), %r11
cmpl %edx, (%rbp,%r11,4)
jle 0x1a46d
cmpl %r11d, (%r10)
je 0x1a46d
testb $0x1, %sil
jne 0x1a45b
movq 0x20(%r10), %r11
movq 0x10(%r11), %r12
movq 0x18(%r11), %r11
movq 0x18(%r11), %r11
movq 0x20(%r11), %r11
cmpq 0x10(%r12), %r11
je 0x1a46d
movq 0x28(%r10), %r10
movslq %r15d, %r15
movq %r10, 0xbc0(%rsp,%r15,8)
incl %r15d
movq 0x10(%r9), %r10
movq 0x10(%r10), %r11
cmpl %eax, 0x30(%r11)
jl 0x1a4be
movslq 0x4(%r10), %r11
cmpl %edx, (%rbp,%r11,4)
jle 0x1a4be
cmpl %r11d, (%r10)
je 0x1a4be
testb $0x1, %sil
jne 0x1a4ac
movq 0x20(%r10), %r11
movq 0x10(%r11), %r12
movq 0x18(%r11), %r11
movq 0x18(%r11), %r11
movq 0x20(%r11), %r11
cmpq 0x10(%r12), %r11
je 0x1a4be
movq 0x28(%r10), %r10
movslq %r15d, %r15
movq %r10, 0xbc0(%rsp,%r15,8)
incl %r15d
movq 0x18(%r9), %r9
movq 0x18(%r9), %r10
cmpl %eax, 0x30(%r10)
jl 0x1a514
movslq 0x4(%r9), %r10
cmpl %edx, (%rbp,%r10,4)
jle 0x1a514
cmpl %r10d, (%r9)
je 0x1a514
testb $0x1, %sil
jne 0x1a4fc
movq 0x20(%r9), %r10
movq 0x10(%r10), %r11
movq 0x18(%r10), %r10
movq 0x18(%r10), %r10
movq 0x20(%r10), %r10
cmpq 0x10(%r11), %r10
je 0x1a514
movq 0x28(%r9), %r9
movslq %r15d, %r15
movq %r9, 0xbc0(%rsp,%r15,8)
incl %r15d
jmp 0x1a514
movl %ecx, (%rdi,%r11,4)
incq %r8
jmp 0x1a391
movq %r15, %rax
movl %eax, 0x14(%rsp)
testl %eax, %eax
je 0x1a67e
cmpl $0x2, %r13d
jl 0x1a54d
leaq 0xbc0(%rsp), %rdi
leaq 0x14(%rsp), %r12
movq %r12, %rsi
movl %r13d, %edx
callq 0x16054
movl (%r12), %r15d
incl 0x4(%rsp)
xorl %r12d, %r12d
testl %r15d, %r15d
cmovlel %r12d, %r15d
movq %r15, 0x8(%rsp)
cmpq 0x8(%rsp), %r12
je 0x1a67e
movq 0xbc0(%rsp,%r12,8), %r13
movq %r13, %rdi
callq 0x15561
movq %r13, (%r14,%rbx,8)
movq 0x18(%r13), %rax
movl (%rax), %ecx
cmpl 0x4(%rax), %ecx
movq 0x20(%r13), %rax
movq %rax, %rcx
cmoveq %r13, %rcx
cmovneq %r13, %rax
movq %rcx, 0x5f0(%rsp)
movq %rax, 0x20(%rsp)
movslq 0x4(%rcx), %rax
movl (%rbp,%rax,4), %eax
movq %rbx, %rcx
pushq $0x1
popq %rdx
movl %edx, %esi
movl %ecx, %edx
decq %rcx
testl %edx, %edx
jle 0x1a626
movq (%r14,%rcx,8), %rdi
movq 0x10(%rdi), %r10
movq 0x18(%rdi), %r9
movl (%r9), %r8d
movl 0x4(%r9), %r9d
cmpl %r9d, %r8d
sete %r11b
movl (%r10), %r15d
cmpl 0x4(%r10), %r15d
sete %r10b
cmpb %r10b, %r11b
je 0x1a5f4
movslq 0x4(%rdi), %r10
cmpl %eax, (%rbp,%r10,4)
jl 0x1a66e
je 0x1a5f8
decl %edx
jmp 0x1a5b6
cmpl %r9d, %r8d
movl %esi, %edx
leaq 0x20(%rsp), %r10
movq %r10, %r8
leaq 0x5f0(%rsp), %r9
cmoveq %r9, %r8
leal 0x1(%rsi), %esi
cmoveq %r10, %r9
movq %rdi, (%r8,%rdx,8)
movq 0x20(%rdi), %rdi
movq %rdi, (%r9,%rdx,8)
jmp 0x1a5b4
subq $0x8, %rsp
leaq 0x5f8(%rsp), %rdi
pushq $0x1
popq %rdx
leaq 0x28(%rsp), %rcx
movl %esi, %r8d
movl %edx, %r9d
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
pushq %rbp
callq 0xb886
addq $0x20, %rsp
testl %eax, %eax
je 0x1a66e
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %ecx
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x1a2b8
movq %r13, %rdi
callq 0x15fb3
incq %r12
jmp 0x1a560
addq $0x1768, %rsp           # imm = 0x1768
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq