// File: /workspace/github_c_makefile_star2_O1/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 $0x1788, %rsp           # imm = 0x1788
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
movl %edx, %edi
movl %ecx, %esi
movl $0x1, %edx
callq 0x76f0
movl $0x0, 0x4(%rsp)
movq %rbx, 0x10(%rsp)
cmpl $0x2, %ebx
jl 0x1bd5e
movl 0xa570(%rip), %eax      # 0x26094
leal 0x2(%rax), %ecx
movl %ecx, 0xa567(%rip)      # 0x26094
cmpl $0x752f, %eax           # imm = 0x752F
jl 0x1bb5d
movl $0x2, 0xa556(%rip)      # 0x26094
movl $0x30, %eax
leaq 0x228ad6(%rip), %rcx    # 0x244620
movl $0x0, (%rax,%rcx)
addq $0x40, %rax
cmpq $0x46630, %rax          # imm = 0x46630
jne 0x1bb4a
movl 0xa535(%rip), %eax      # 0x26098
leal 0x1(%rax), %ecx
movl %ecx, 0xa52c(%rip)      # 0x26098
cmpl $0x7530, %eax           # imm = 0x7530
jl 0x1bb90
movl $0x1, 0xa51b(%rip)      # 0x26098
leaq 0x26f0ac(%rip), %rdi    # 0x28ac30
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x1030
movl 0xa4fe(%rip), %eax      # 0x26094
movl 0xa4fc(%rip), %ecx      # 0x26098
movl 0xa616(%rip), %edx      # 0x261b8
movb 0xa50b(%rip), %sil      # 0x260b4
movq 0x10(%rsp), %r8
cmpl $0x2, %r8d
movl $0x1, %edi
cmovgel %r8d, %edi
movl 0x4(%rsp), %r8d
xorl %r9d, %r9d
leaq 0x26f066(%rip), %r10    # 0x28ac30
leaq 0xc01f(%rip), %r11      # 0x27bf0
movq (%r14,%r9,8), %r15
movl %eax, 0x30(%r15)
movq 0x20(%r15), %rbx
movl %eax, 0x30(%rbx)
movslq (%r15), %r12
cmpl %ecx, (%r10,%r12,4)
jne 0x1bd49
movq 0x10(%r15), %r12
movq 0x10(%r12), %r13
cmpl %eax, 0x30(%r13)
jl 0x1bc4f
movslq 0x4(%r12), %r13
cmpl %edx, (%r11,%r13,4)
jle 0x1bc4f
cmpl %r13d, (%r12)
je 0x1bc4f
testb $0x1, %sil
jne 0x1bc3c
movq 0x20(%r12), %r13
movb %sil, 0x8(%rsp)
movl %ebp, %esi
movq 0x10(%r13), %rbp
movq 0x18(%r13), %r13
movq 0x18(%r13), %r13
movq 0x20(%r13), %r13
cmpq 0x10(%rbp), %r13
movl %esi, %ebp
movb 0x8(%rsp), %sil
je 0x1bc4f
movq 0x28(%r12), %r12
movslq %r8d, %r8
movq %r12, 0x610(%rsp,%r8,8)
incl %r8d
movq 0x18(%r15), %r15
movq 0x18(%r15), %r12
cmpl %eax, 0x30(%r12)
jl 0x1bca3
movslq 0x4(%r15), %r12
cmpl %edx, (%r11,%r12,4)
jle 0x1bca3
cmpl %r12d, (%r15)
je 0x1bca3
testb $0x1, %sil
jne 0x1bc91
movq 0x20(%r15), %r12
movq 0x10(%r12), %r13
movq 0x18(%r12), %r12
movq 0x18(%r12), %r12
movq 0x20(%r12), %r12
cmpq 0x10(%r13), %r12
je 0x1bca3
movq 0x28(%r15), %r15
movslq %r8d, %r8
movq %r15, 0x610(%rsp,%r8,8)
incl %r8d
movq 0x10(%rbx), %r15
movq 0x10(%r15), %r12
cmpl %eax, 0x30(%r12)
jl 0x1bcf7
movslq 0x4(%r15), %r12
cmpl %edx, (%r11,%r12,4)
jle 0x1bcf7
cmpl %r12d, (%r15)
je 0x1bcf7
testb $0x1, %sil
jne 0x1bce5
movq 0x20(%r15), %r12
movq 0x10(%r12), %r13
movq 0x18(%r12), %r12
movq 0x18(%r12), %r12
movq 0x20(%r12), %r12
cmpq 0x10(%r13), %r12
je 0x1bcf7
movq 0x28(%r15), %r15
movslq %r8d, %r8
movq %r15, 0x610(%rsp,%r8,8)
incl %r8d
movq 0x18(%rbx), %rbx
movq 0x18(%rbx), %r15
cmpl %eax, 0x30(%r15)
jl 0x1bd4d
movslq 0x4(%rbx), %r15
cmpl %edx, (%r11,%r15,4)
jle 0x1bd4d
cmpl %r15d, (%rbx)
je 0x1bd4d
testb $0x1, %sil
jne 0x1bd35
movq 0x20(%rbx), %r15
movq 0x10(%r15), %r12
movq 0x18(%r15), %r15
movq 0x18(%r15), %r15
movq 0x20(%r15), %r15
cmpq 0x10(%r12), %r15
je 0x1bd4d
movq 0x28(%rbx), %rbx
movslq %r8d, %r8
movq %rbx, 0x610(%rsp,%r8,8)
incl %r8d
jmp 0x1bd4d
movl %ecx, (%r10,%r12,4)
incq %r9
cmpq %r9, %rdi
jne 0x1bbd1
movl %r8d, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
je 0x1bf04
cmpl $0x2, %ebp
jl 0x1bd82
leaq 0x610(%rsp), %rdi
leaq 0x4(%rsp), %rsi
movl %ebp, %edx
callq 0x17580
movslq 0x4(%rsp), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jle 0x1bf04
movq 0x10(%rsp), %rax
movslq %eax, %rcx
movq %rcx, 0x38(%rsp)
leal 0x1(%rax), %ecx
movl %ecx, 0x1c(%rsp)
movslq %ecx, %rcx
movq %rcx, 0x30(%rsp)
decl %eax
incq %rax
movq %rax, 0x28(%rsp)
xorl %ebx, %ebx
leaq 0xbe2c(%rip), %rbp      # 0x27bf0
leaq 0x40(%rsp), %r15
leaq 0x11b0(%rsp), %r12
movq 0x610(%rsp,%rbx,8), %r13
movq %r13, %rdi
callq 0x16a28
movq 0x38(%rsp), %rax
movq %r13, (%r14,%rax,8)
movq 0x30(%rsp), %rax
movq -0x8(%r14,%rax,8), %rax
movq 0x18(%rax), %rcx
movl (%rcx), %edx
cmpl 0x4(%rcx), %edx
jne 0x1be0a
movq %rax, 0x40(%rsp)
movq 0x20(%rax), %rax
jmp 0x1be13
movq 0x20(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x11b0(%rsp)
cmpl $0x0, 0x10(%rsp)
jle 0x1be9b
movq 0x40(%rsp), %rax
movslq 0x4(%rax), %rax
movl (%rbp,%rax,4), %eax
movl $0x1, %esi
movq 0x28(%rsp), %rcx
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 0x1be94
movslq 0x4(%rdx), %r9
cmpl %eax, (%rbp,%r9,4)
jl 0x1bea2
jne 0x1be94
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 0x1be39
jmp 0x1bea4
movl $0x1, %esi
jmp 0x1bea4
xorl %esi, %esi
testl %esi, %esi
jle 0x1beee
subq $0x8, %rsp
movq %r15, %rdi
movl $0x1, %edx
movq %r12, %rcx
movl %esi, %r8d
movl $0x1, %r9d
leaq 0x28(%rsp), %rax
pushq %rax
leaq 0x34(%rsp), %rax
pushq %rax
pushq %rbp
callq 0xc654
addq $0x20, %rsp
testl %eax, %eax
je 0x1beee
movl 0x24(%rsp), %edx
movl 0x20(%rsp), %ecx
movq %r14, %rdi
movl 0x1c(%rsp), %esi
callq 0x1bae2
movq %r13, %rdi
callq 0x174cd
incq %rbx
cmpq 0x8(%rsp), %rbx
jne 0x1bdd1
addq $0x1788, %rsp           # imm = 0x1788
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq