// File: /workspace/github_c_makefile_star2_O3/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 $0x1778, %rsp           # imm = 0x1778
movl %edx, %r12d
movl %esi, %ebx
movq %rdi, %r14
movl %edx, %edi
movl %ecx, %esi
movl $0x1, %edx
callq 0x761c
movq %rbx, 0x8(%rsp)
cmpl $0x2, %ebx
jl 0x1c089
movl 0xa370(%rip), %eax      # 0x2608c
leal 0x2(%rax), %r15d
movl %r15d, 0xa365(%rip)     # 0x2608c
cmpl $0x752f, %eax           # imm = 0x752F
jl 0x1bd5d
movl $0x2, 0xa354(%rip)      # 0x2608c
movl $0x30, %eax
leaq 0x2288dc(%rip), %rcx    # 0x244620
movl $0x0, (%rax,%rcx)
addq $0x40, %rax
cmpq $0x46630, %rax          # imm = 0x46630
jne 0x1bd44
movl $0x2, %r15d
movl 0xa32d(%rip), %eax      # 0x26090
leal 0x1(%rax), %ecx
movl %ecx, 0xa324(%rip)      # 0x26090
cmpl $0x7530, %eax           # imm = 0x7530
jl 0x1bd95
movl $0x1, 0xa313(%rip)      # 0x26090
leaq 0x26eeac(%rip), %rdi    # 0x28ac30
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x1030
movl $0x1, %ecx
movl 0xa41d(%rip), %edx      # 0x261b8
movb 0xa312(%rip), %sil      # 0x260b4
movl 0x8(%rsp), %ebp
xorl %eax, %eax
leaq 0x26ee81(%rip), %rdi    # 0x28ac30
leaq 0xbe3a(%rip), %rbx      # 0x27bf0
xorl %r8d, %r8d
movq %rbp, 0x20(%rsp)
movq (%r14,%r8,8), %r10
movl %r15d, 0x30(%r10)
movq 0x20(%r10), %r9
movl %r15d, 0x30(%r9)
movslq (%r10), %r11
cmpl %ecx, (%rdi,%r11,4)
jne 0x1bf0a
movq 0x10(%r10), %r11
movq 0x10(%r11), %r13
cmpl %r15d, 0x30(%r13)
jl 0x1be2a
movslq 0x4(%r11), %r13
cmpl %edx, (%rbx,%r13,4)
jle 0x1be2a
cmpl %r13d, (%r11)
je 0x1be2a
testb $0x1, %sil
jne 0x1be1d
movq 0x20(%r11), %r13
movq 0x10(%r13), %rbp
movq 0x18(%r13), %r13
movq 0x18(%r13), %r13
movq 0x20(%r13), %r13
cmpq 0x10(%rbp), %r13
movq 0x20(%rsp), %rbp
je 0x1be2a
movq 0x28(%r11), %r11
cltq
movq %r11, 0x30(%rsp,%rax,8)
incl %eax
movq 0x18(%r10), %r10
movq 0x18(%r10), %r11
cmpl %r15d, 0x30(%r11)
jl 0x1be74
movslq 0x4(%r10), %r11
cmpl %edx, (%rbx,%r11,4)
jle 0x1be74
cmpl %r11d, (%r10)
je 0x1be74
testb $0x1, %sil
jne 0x1be67
movq 0x20(%r10), %r11
movq 0x10(%r11), %r13
movq 0x18(%r11), %r11
movq 0x18(%r11), %r11
movq 0x20(%r11), %r11
cmpq 0x10(%r13), %r11
je 0x1be74
movq 0x28(%r10), %r10
cltq
movq %r10, 0x30(%rsp,%rax,8)
incl %eax
movq 0x10(%r9), %r10
movq 0x10(%r10), %r11
cmpl %r15d, 0x30(%r11)
jl 0x1bebe
movslq 0x4(%r10), %r11
cmpl %edx, (%rbx,%r11,4)
jle 0x1bebe
cmpl %r11d, (%r10)
je 0x1bebe
testb $0x1, %sil
jne 0x1beb1
movq 0x20(%r10), %r11
movq 0x10(%r11), %r13
movq 0x18(%r11), %r11
movq 0x18(%r11), %r11
movq 0x20(%r11), %r11
cmpq 0x10(%r13), %r11
je 0x1bebe
movq 0x28(%r10), %r10
cltq
movq %r10, 0x30(%rsp,%rax,8)
incl %eax
movq 0x18(%r9), %r9
movq 0x18(%r9), %r10
cmpl %r15d, 0x30(%r10)
jl 0x1bf0e
movslq 0x4(%r9), %r10
cmpl %edx, (%rbx,%r10,4)
jle 0x1bf0e
cmpl %r10d, (%r9)
je 0x1bf0e
testb $0x1, %sil
jne 0x1befb
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 0x1bf0e
movq 0x28(%r9), %r9
cltq
movq %r9, 0x30(%rsp,%rax,8)
incl %eax
jmp 0x1bf0e
movl %ecx, (%rdi,%r11,4)
incq %r8
cmpq %r8, %rbp
jne 0x1bdbe
movl %eax, 0x14(%rsp)
testl %eax, %eax
je 0x1c089
cmpl $0x2, %r12d
jl 0x1bf44
leaq 0x30(%rsp), %rdi
leaq 0x14(%rsp), %r15
movq %r15, %rsi
movl %r12d, %edx
callq 0x1766f
movl (%r15), %eax
testl %eax, %eax
jle 0x1c089
movq 0x8(%rsp), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x10(%rsp)
decl %ecx
movl %eax, %eax
movq %rax, 0x28(%rsp)
incq %rcx
movq %rcx, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0x11a0(%rsp), %r15
leaq 0xbd0(%rsp), %r12
movq 0x30(%rsp,%rbp,8), %r13
movq %r13, %rdi
callq 0x16b44
movq 0x20(%rsp), %rax
movq %r13, (%r14,%rax,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, 0x11a0(%rsp)
movq %rax, 0xbd0(%rsp)
movslq 0x4(%rcx), %rax
movl (%rbx,%rax,4), %eax
movq 0x8(%rsp), %rcx
movl $0x1, %esi
movq -0x8(%r14,%rcx,8), %rdx
movq 0x10(%rdx), %r9
movq 0x18(%rdx), %r8
movl (%r8), %edi
movl 0x4(%r8), %r8d
cmpl %r8d, %edi
sete %r10b
movl (%r9), %r11d
cmpl 0x4(%r9), %r11d
sete %r9b
cmpb %r9b, %r10b
je 0x1c024
movslq 0x4(%rdx), %r9
cmpl %eax, (%rbx,%r9,4)
jl 0x1c073
jne 0x1c024
cmpl %r8d, %edi
movslq %esi, %rdi
movq %r12, %r8
cmoveq %r15, %r8
leal 0x1(%rsi), %esi
movq %r15, %r9
cmoveq %r12, %r9
movq %rdx, (%r8,%rdi,8)
movq 0x20(%rdx), %rdx
movq %rdx, (%r9,%rdi,8)
decq %rcx
jg 0x1bfca
testl %esi, %esi
jle 0x1c073
subq $0x8, %rsp
movq %r15, %rdi
movl $0x1, %edx
movq %r12, %rcx
movl %esi, %r8d
movl $0x1, %r9d
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
pushq %rbx
callq 0xc7bb
addq $0x20, %rsp
testl %eax, %eax
je 0x1c073
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %ecx
movq %r14, %rdi
movl 0x10(%rsp), %esi
callq 0x1bce1
movq %r13, %rdi
callq 0x175ce
incq %rbp
cmpq 0x28(%rsp), %rbp
jne 0x1bf7b
addq $0x1778, %rsp           # imm = 0x1778
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq