// File: /workspace/github_c_makefile_star2_O1/mishun[P]plantri/plantri.c
// Function: scanordloops
static void
scanordloops(int nbtot, int nbop, int numdoubles)

/* The code for adding ordinary loops using a grey code.
   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.
   numdoubles is the number of undirected edges with a parallel mate.
   There are no loops when this is called. */
{
    register int i,j;
    int xnbtot,xnbop,nloopmakers,nloops;
    EDGE *loopmaker[2*MAXN],*loop[2*MAXN],**nb0,**nb1,*e1;
    int isloop[2*MAXN],partner[2*MAXN],numpseudo,pj;
    long x,xlim,w;

/*  Meaning of isloop[i]:
 *  0 = not a loop, possibly available for switching
 *  1 = a pseudo-loop: not a loop but unavailable for switching
 *  2 = a real loop, available for unswitching
 *  numpseudo = number of pseudo-loops at the moment.
 */

    got_one(nbtot,nbop,2 + (numdoubles==0));

    // fprintf(stderr,"Check this part of the code -- changed by me:\n");
    if ((numdoubles<2) || 
	((minimumdeg>=3) && (numdoubles<4))) return;

    // was: if (numdoubles < 4) return;

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

    find_loopmakers(doubles,numdoubles,loopmaker,&nloopmakers);
    if (nloopmakers == 0) return;

    for (i = 0; i < nloopmakers; ++i) isloop[i] = 0;
    numpseudo = 0;


    if (nbtot == 1)    /* Case of trivial group */
    {
	for (i = 0; i < nloopmakers; ++i) loopmaker[i]->index = i;
	for (i = 0; i < nloopmakers; ++i)
	{
	    if (degree[loopmaker[i]->start] == 2)
		partner[i] = loopmaker[i]->next->min->index;
	    else if (degree[loopmaker[i]->end] == 2)
                partner[i] = loopmaker[i]->invers->next->min->index;
	    else
		partner[i] = -1;
	}

        xlim = 1 << nloopmakers;
        for (x = 1; x < xlim; ++x)
        {
            for (j = 0, w = x; (w & 1) == 0; ++j, w >>= 1) {}
            // if (isloop[j]) switch_edge_back(loopmaker[j]);
            // else           switch_edge(loopmaker[j]);
            // isloop[j] = !isloop[j];
	    if (isloop[j] == 0)
		if (degree[loopmaker[j]->start] == 1
                              || degree[loopmaker[j]->end] == 1)
		{
		    isloop[j] = 1;
		    ++numpseudo;
		}
		else
		{
		    switch_edge(loopmaker[j]); 
		    isloop[j] = 2;
		}
	    else if (isloop[j] == 1)
	    {
		--numpseudo;
		isloop[j] = 0;
	    }
	    else  /* isloop[j] = 2 */
	    {
		switch_edge_back(loopmaker[j]); 
		isloop[j] = 0;
		pj = partner[j];
		if (pj >= 0 && isloop[pj] == 1)
		{
		    e1 = loopmaker[pj];
		    if (degree[e1->start] > 1 && degree[e1->end] > 1)
		    {
			switch_edge(e1);
			isloop[pj] = 2;
			--numpseudo;
		    }
		}
	    }

	    if (numpseudo > 0) continue;
            for (j = 0; j < nv; ++j) if (degree[j] < minimumdeg) break;
            if (j < nv) continue;
    
            for (i = nloops = 0; i < nloopmakers; ++i)
                if (isloop[i]) loop[nloops++] = loopmaker[i];

	    if (tswitch)
		scanspecialloops(loop,nloops,1,1);	
	    else
	    {
                for (j = 0; j < nloops; ++j)
                {
                   if (loop[j]->next->next->next->invers == loop[j]
                         || loop[j]->prev->prev->prev->invers == loop[j])
                       break;
                }
                if (j == nloops) scanspecialloops(loop,nloops,1,1);
	    }
        }
        if (isloop[nloopmakers-1] == 2)
            switch_edge_back(loopmaker[nloopmakers-1]);
    }
    else   /* Case of non-trivial group */
    {
        nb0 = (EDGE**)numbering[0];
	nb1 = (EDGE**)saved_numbering[0];
	for (i = 0; i < nbtot; ++i, nb0 += MAXE, nb1 += MAXE)
	    for (j = 0; j < ne; ++j) nb1[j] = nb0[j];

        sortedges(loopmaker,nloopmakers);
	for (i = 0; i < nloopmakers; ++i) loopmaker[i]->index = i;
	for (i = 0; i < nloopmakers; ++i)
	{
	    if (degree[loopmaker[i]->start] == 2)
		partner[i] = loopmaker[i]->next->min->index;
	    else if (degree[loopmaker[i]->end] == 2)
                partner[i] = loopmaker[i]->invers->next->min->index;
	    else
		partner[i] = -1;
	}

        xlim = 1 << nloopmakers;
        for (x = 1; x < xlim; ++x)
        {
            for (j = 0, w = x; (w & 1) == 0; ++j, w >>= 1) {}
            // if (isloop[j]) switch_edge_back(loopmaker[j]);
            // else           switch_edge(loopmaker[j]);
            // isloop[j] = !isloop[j];
            if (isloop[j] == 0)
                if (degree[loopmaker[j]->start] == 1                                                     
		       || degree[loopmaker[j]->end] == 1)
                {   
                    isloop[j] = 1;
                    ++numpseudo;
                }
                else
                {   
                    switch_edge(loopmaker[j]);
                    isloop[j] = 2;
                }  
            else if (isloop[j] == 1)
            {   
                --numpseudo;
                isloop[j] = 0;
            }
            else  /* isloop[j] = 2 */
            {   
                switch_edge_back(loopmaker[j]);
                isloop[j] = 0;
		pj = partner[j];
		if (pj >= 0 && isloop[pj] == 1)
		{
		    e1 = loopmaker[pj];
		    if (degree[e1->start] > 1 && degree[e1->end] > 1)
		    {
			switch_edge(e1);
			isloop[pj] = 2;
			--numpseudo;
		    }
		}
            }

	    if (numpseudo > 0) continue;

            for (i = nloops = 0; i < nloopmakers; ++i)
                if (isloop[i] == 2) loop[nloops++] = loopmaker[i];
            if (isminset(loop,nloops,nbtot,nbop,
			 saved_numbering,numbering,&xnbtot,&xnbop))
            {
                for (j = 0; j < nv; ++j) if (degree[j] < minimumdeg) break;
                if (j < nv) continue;

		if (tswitch)
		    scanspecialloops(loop,nloops,xnbtot,xnbop);
		else
		{
                    for (j = 0; j < nloops; ++j)
                    {
                        if (loop[j]->next->next->next->invers == loop[j]
                              || loop[j]->prev->prev->prev->invers == loop[j])
                            break;
                    }
                    if (j == nloops) scanspecialloops(loop,nloops,xnbtot,xnbop);
		}
            }
        }
        if (isloop[nloopmakers-1] == 2) switch_edge_back(loopmaker[nloopmakers-1]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x23a8, %rsp           # imm = 0x23A8
movl %edx, %r15d
movl %esi, %r12d
movl %edi, %r14d
xorl %edx, %edx
cmpl $0x1, %r15d
adcl $0x2, %edx
callq 0x76f0
cmpl $0x2, %r15d
jl 0x1bad0
movl 0xb07e(%rip), %eax      # 0x261b8
cmpl $0x3, %eax
setge %cl
cmpl $0x4, %r15d
setl %dl
testb %cl, %dl
jne 0x1bad0
movl 0xaf3f(%rip), %ecx      # 0x26094
leal 0x2(%rcx), %edx
movl %edx, 0xaf36(%rip)      # 0x26094
cmpl $0x752f, %ecx           # imm = 0x752F
jl 0x1b190
movl $0x2, 0xaf24(%rip)      # 0x26094
movl $0x30, %ecx
leaq 0x2294a4(%rip), %rdx    # 0x244620
movl $0x0, (%rcx,%rdx)
addq $0x40, %rcx
cmpq $0x46630, %rcx          # imm = 0x46630
jne 0x1b17c
movl 0xaefe(%rip), %edx      # 0x26094
movl %r15d, %ecx
leaq 0x495cd0(%rip), %rsi    # 0x4b0e70
movq %rcx, %rdi
movq (%rsi), %r8
movl %edx, 0x30(%r8)
movq 0x20(%r8), %r8
movl %edx, 0x30(%r8)
addq $0x8, %rsi
decq %rdi
jne 0x1b1a3
xorl %ebp, %ebp
cmpl $0x4, %r15d
jl 0x1b278
movl 0xaec7(%rip), %edx      # 0x26094
leal 0x1(%rdx), %esi
shlq $0x3, %rcx
xorl %edi, %edi
leaq 0x495c93(%rip), %r8     # 0x4b0e70
xorl %ebp, %ebp
movq (%rdi,%r8), %r9
movq 0x18(%r9), %r10
cmpl %edx, 0x30(%r10)
jne 0x1b225
movq 0x20(%r9), %r10
movq 0x10(%r10), %r10
cmpl %edx, 0x30(%r10)
jg 0x1b225
movl (%r9), %r11d
movq 0x10(%r10), %rbx
cmpl 0x4(%rbx), %r11d
jne 0x1b225
movl %esi, 0x30(%r10)
movq 0x20(%r10), %r11
movl %esi, 0x30(%r11)
movq 0x28(%r10), %r10
movslq %ebp, %rbp
movq %r10, 0x260(%rsp,%rbp,8)
incl %ebp
movq 0x20(%r9), %r10
movq 0x18(%r10), %r9
cmpl %edx, 0x30(%r9)
jne 0x1b26b
movq 0x20(%r10), %r9
movq 0x10(%r9), %r9
cmpl %edx, 0x30(%r9)
jg 0x1b26b
movl (%r10), %r10d
movq 0x10(%r9), %r11
cmpl 0x4(%r11), %r10d
jne 0x1b26b
movl %esi, 0x30(%r9)
movq 0x20(%r9), %r10
movl %esi, 0x30(%r10)
movq 0x28(%r9), %r9
movslq %ebp, %rbp
movq %r9, 0x260(%rsp,%rbp,8)
incl %ebp
addq $0x8, %rdi
cmpq %rdi, %rcx
jne 0x1b1df
cmpl $0x1, %eax
jne 0x1b2d5
movslq 0x22938c(%rip), %rax    # 0x244610
testq %rax, %rax
jle 0x1b2d5
shlq $0x2, %rax
leaq 0xc75c(%rip), %rcx      # 0x279f0
xorl %edx, %edx
leaq 0xc953(%rip), %rsi      # 0x27bf0
cmpl $0x2, (%rdx,%rsi)
jne 0x1b2c8
movq (%rcx), %rdi
movq 0x28(%rdi), %r8
movslq %ebp, %rbp
movq %r8, 0x260(%rsp,%rbp,8)
movq 0x18(%rdi), %rdi
movq 0x28(%rdi), %rdi
movq %rdi, 0x268(%rsp,%rbp,8)
addl $0x2, %ebp
addq $0x8, %rcx
addq $0x4, %rdx
cmpq %rdx, %rax
jne 0x1b29d
testl %ebp, %ebp
je 0x1bad0
movl %ebp, %ebx
jle 0x1b2f5
leaq (,%rbx,4), %rdx
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
callq 0x1030
cmpl $0x1, %r14d
movq %rbx, (%rsp)
jne 0x1b554
testl %ebp, %ebp
jle 0x1b31c
xorl %eax, %eax
movq 0x260(%rsp,%rax,8), %rcx
movl %eax, 0x34(%rcx)
incq %rax
cmpq %rax, %rbx
jne 0x1b309
testl %ebp, %ebp
jle 0x1b367
xorl %eax, %eax
leaq 0xc8c7(%rip), %rcx      # 0x27bf0
movq 0x260(%rsp,%rax,8), %rdx
movslq (%rdx), %rsi
cmpl $0x2, (%rcx,%rsi,4)
je 0x1b34d
movslq 0x4(%rdx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpl $0x2, (%rcx,%rdi,4)
jne 0x1b358
movq 0x20(%rdx), %rdx
movq 0x18(%rdx), %rdx
movq 0x28(%rdx), %rdx
movl 0x34(%rdx), %esi
movl %esi, 0xa60(%rsp,%rax,4)
incq %rax
cmpq %rax, %rbx
jne 0x1b329
movl $0x1, %eax
movl %ebp, %ecx
shll %cl, %eax
cmpl $0x2, %eax
jl 0x1b54c
movslq %eax, %rbx
xorl %r15d, %r15d
movl $0x1, %r12d
leaq 0xc864(%rip), %r13      # 0x27bf0
xorl %r14d, %r14d
testb $0x1, %r12b
jne 0x1b3a9
movq %r12, %rcx
movq %r12, %rax
shrq %rax
incq %r14
testb $0x2, %cl
movq %rax, %rcx
je 0x1b39b
movl 0x60(%rsp,%r14,4), %eax
cmpl $0x1, %eax
je 0x1b3e4
testl %eax, %eax
jne 0x1b3f2
movq 0x260(%rsp,%r14,8), %rdi
movslq (%rdi), %rax
cmpl $0x1, (%r13,%rax,4)
je 0x1b3d6
movslq 0x4(%rdi), %rax
cmpl $0x1, (%r13,%rax,4)
jne 0x1b44f
movl $0x1, 0x60(%rsp,%r14,4)
incl %r15d
jmp 0x1b45d
decl %r15d
movl $0x0, 0x60(%rsp,%r14,4)
jmp 0x1b45d
movq 0x260(%rsp,%r14,8), %rdi
callq 0x174cd
movl $0x0, 0x60(%rsp,%r14,4)
movslq 0xa60(%rsp,%r14,4), %r14
testq %r14, %r14
js 0x1b45d
cmpl $0x1, 0x60(%rsp,%r14,4)
jne 0x1b45d
movq 0x260(%rsp,%r14,8), %rdi
movslq (%rdi), %rax
cmpl $0x2, (%r13,%rax,4)
jl 0x1b45d
movslq 0x4(%rdi), %rax
cmpl $0x2, (%r13,%rax,4)
jl 0x1b45d
callq 0x16a28
movl $0x2, 0x60(%rsp,%r14,4)
decl %r15d
jmp 0x1b45d
callq 0x16a28
movl $0x2, 0x60(%rsp,%r14,4)
testl %r15d, %r15d
movq (%rsp), %r8
jg 0x1b540
movslq 0x22919f(%rip), %rax    # 0x244610
testq %rax, %rax
setg %dl
jle 0x1b4ae
movl 0xad39(%rip), %ecx      # 0x261b8
cmpl %ecx, 0xc76b(%rip)      # 0x27bf0
jl 0x1b4a6
leaq -0x1(%rax), %rdx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x1b4ae
leaq 0x1(%rsi), %rdi
cmpl %ecx, 0x4(%r13,%rsi,4)
movq %rdi, %rsi
jge 0x1b48d
cmpq %rax, %rdi
setb %dl
testb %dl, %dl
jne 0x1b540
testl %ebp, %ebp
jle 0x1b4dc
xorl %ecx, %ecx
xorl %eax, %eax
cmpl $0x0, 0x60(%rsp,%rcx,4)
je 0x1b4d2
movq 0x260(%rsp,%rcx,8), %rdx
movslq %eax, %rsi
incl %eax
movq %rdx, 0x660(%rsp,%rsi,8)
incq %rcx
cmpq %rcx, %r8
jne 0x1b4b6
jmp 0x1b4de
xorl %eax, %eax
movl %eax, %esi
cmpb $0x0, 0xabcd(%rip)      # 0x260b4
jne 0x1b529
xorl %eax, %eax
testl %esi, %esi
jle 0x1b525
movq 0x660(%rsp,%rax,8), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rdx
movq 0x18(%rdx), %rdx
cmpq %rcx, 0x20(%rdx)
je 0x1b525
movq 0x10(%rcx), %rdx
movq 0x10(%rdx), %rdx
movq 0x10(%rdx), %rdx
cmpq %rcx, 0x20(%rdx)
je 0x1b525
incq %rax
cmpq %rax, %rsi
jne 0x1b4ef
movl %esi, %eax
cmpl %esi, %eax
jne 0x1b540
leaq 0x660(%rsp), %rdi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x1bae2
incq %r12
cmpq %rbx, %r12
jne 0x1b38c
movslq %ebp, %rax
jmp 0x1baa8
movl %r12d, 0x20(%rsp)
movl %r14d, 0xc(%rsp)
movq %rbp, 0x30(%rsp)
jl 0x1b5a8
movl 0x2290a9(%rip), %ebx    # 0x244614
movq %rbx, %r15
shlq $0x3, %r15
xorl %r12d, %r12d
leaq 0x278cf4(%rip), %r13    # 0x294270
leaq 0xc76d(%rip), %rbp      # 0x27cf0
movl 0xc(%rsp), %r14d
testl %ebx, %ebx
jle 0x1b59c
leaq (%r12,%r13), %rdi
leaq (%r12,%rbp), %rsi
movq %r15, %rdx
callq 0x1080
addq $0xba0, %r12            # imm = 0xBA0
decl %r14d
jne 0x1b588
movq 0x30(%rsp), %r12
cmpl $0x2, %r12d
movq (%rsp), %r8
movl 0xc(%rsp), %ebp
jl 0x1b602
movl $0x1, %eax
movq 0x260(%rsp,%rax,8), %rcx
movq %rax, %rdx
movq 0x258(%rsp,%rdx,8), %rsi
cmpq %rcx, %rsi
jbe 0x1b5ef
movq %rsi, 0x260(%rsp,%rdx,8)
leaq -0x1(%rdx), %rsi
cmpq $0x1, %rdx
movq %rsi, %rdx
jg 0x1b5cb
xorl %edx, %edx
movslq %edx, %rdx
movq %rcx, 0x260(%rsp,%rdx,8)
incq %rax
cmpq %r8, %rax
jne 0x1b5c0
testl %r12d, %r12d
jle 0x1b61c
xorl %eax, %eax
movq 0x260(%rsp,%rax,8), %rcx
movl %eax, 0x34(%rcx)
incq %rax
cmpq %rax, %r8
jne 0x1b609
testl %r12d, %r12d
jle 0x1b668
xorl %eax, %eax
leaq 0xc5c6(%rip), %rcx      # 0x27bf0
movq 0x260(%rsp,%rax,8), %rdx
movslq (%rdx), %rsi
cmpl $0x2, (%rcx,%rsi,4)
je 0x1b64e
movslq 0x4(%rdx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpl $0x2, (%rcx,%rdi,4)
jne 0x1b659
movq 0x20(%rdx), %rdx
movq 0x18(%rdx), %rdx
movq 0x28(%rdx), %rdx
movl 0x34(%rdx), %esi
movl %esi, 0xa60(%rsp,%rax,4)
incq %rax
cmpq %rax, %r8
jne 0x1b62a
movl $0x1, %eax
movl %r12d, %ecx
shll %cl, %eax
cmpl $0x2, %eax
jl 0x1baa5
movslq %eax, %r13
xorl %eax, %eax
movl 0x20(%rsp), %ecx
testl %ecx, %ecx
setg %al
movl %eax, 0x1c(%rsp)
movslq %ecx, %rbx
movl %ebp, %eax
movq %rax, 0x20(%rsp)
imulq $0xba0, %rax, %rax      # imm = 0xBA0
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
movl $0x1, %ecx
movq %rbx, 0x10(%rsp)
movq %r13, 0x40(%rsp)
testb $0x1, %cl
movq %rcx, 0x48(%rsp)
jne 0x1b6d5
xorl %r14d, %r14d
movq %rcx, %rax
shrq %rax
incq %r14
testb $0x2, %cl
movq %rax, %rcx
je 0x1b6c5
jmp 0x1b6d8
xorl %r14d, %r14d
movl 0x60(%rsp,%r14,4), %eax
cmpl $0x1, %eax
je 0x1b71a
testl %eax, %eax
jne 0x1b72c
movq 0x260(%rsp,%r14,8), %rdi
movslq (%rdi), %rax
leaq 0xc4f8(%rip), %rcx      # 0x27bf0
cmpl $0x1, (%rcx,%rax,4)
je 0x1b70c
movslq 0x4(%rdi), %rax
cmpl $0x1, (%rcx,%rax,4)
jne 0x1b9c9
movl $0x1, 0x60(%rsp,%r14,4)
incl %r15d
jmp 0x1b726
decl %r15d
movl $0x0, 0x60(%rsp,%r14,4)
movq (%rsp), %r14
jmp 0x1b797
movq 0x260(%rsp,%r14,8), %rdi
callq 0x174cd
movl $0x0, 0x60(%rsp,%r14,4)
movslq 0xa60(%rsp,%r14,4), %rbx
testq %rbx, %rbx
js 0x1b78e
cmpl $0x1, 0x60(%rsp,%rbx,4)
movq (%rsp), %r14
jne 0x1b792
movq 0x260(%rsp,%rbx,8), %rdi
movslq (%rdi), %rax
leaq 0xc484(%rip), %rcx      # 0x27bf0
cmpl $0x2, (%rcx,%rax,4)
jl 0x1b792
movslq 0x4(%rdi), %rax
cmpl $0x2, (%rcx,%rax,4)
jl 0x1b792
callq 0x16a28
movl $0x2, 0x60(%rsp,%rbx,4)
decl %r15d
jmp 0x1b792
movq (%rsp), %r14
movq 0x10(%rsp), %rbx
movq %r15, 0x50(%rsp)
testl %r15d, %r15d
jg 0x1ba8f
testl %r12d, %r12d
jle 0x1b7d4
xorl %ecx, %ecx
xorl %eax, %eax
cmpl $0x2, 0x60(%rsp,%rcx,4)
jne 0x1b7ca
movq 0x260(%rsp,%rcx,8), %rdx
movslq %eax, %rsi
incl %eax
movq %rdx, 0x660(%rsp,%rsi,8)
incq %rcx
cmpq %rcx, %r14
jne 0x1b7ae
jmp 0x1b7d6
xorl %eax, %eax
movl $0x1, 0x1800(%rsp)
movl 0x228e2c(%rip), %r14d   # 0x244614
testl %r14d, %r14d
jle 0x1b808
leaq 0x278a7c(%rip), %rcx    # 0x294270
xorl %edx, %edx
movq (%rcx), %rsi
movl %edx, 0x34(%rsi)
incq %rdx
addq $0x8, %rcx
cmpq %rdx, %r14
jne 0x1b7f6
movl %eax, %r15d
movl $0x1, %r9d
movl 0x1c(%rsp), %r10d
cmpl $0x2, %ebp
jl 0x1b91f
movl $0x1, %eax
movl 0x1c(%rsp), %r10d
testl %r15d, %r15d
jle 0x1b865
imulq $0xba0, %rax, %rcx      # imm = 0xBA0
leaq 0x278a34(%rip), %rdx    # 0x294270
addq %rdx, %rcx
xorl %edx, %edx
movq 0x660(%rsp,%rdx,8), %rsi
movslq 0x34(%rsi), %rsi
movq (%rcx,%rsi,8), %rsi
movq 0x28(%rsi), %rsi
movq %rsi, 0xc60(%rsp,%rdx,8)
incq %rdx
cmpq %rdx, %r15
jne 0x1b841
cmpl $0x2, %r15d
jl 0x1b8b2
movl $0x1, %ecx
movq 0xc60(%rsp,%rcx,8), %rdx
movq %rcx, %rsi
movq 0xc58(%rsp,%rsi,8), %rdi
cmpq %rdx, %rdi
jbe 0x1b89f
movq %rdi, 0xc60(%rsp,%rsi,8)
leaq -0x1(%rsi), %rdi
cmpq $0x1, %rsi
movq %rdi, %rsi
jg 0x1b87b
xorl %esi, %esi
movslq %esi, %rsi
movq %rdx, 0xc60(%rsp,%rsi,8)
incq %rcx
cmpq %r15, %rcx
jne 0x1b870
xorl %ecx, %ecx
testl %r15d, %r15d
jle 0x1b8d6
movq 0xc60(%rsp,%rcx,8), %rdx
cmpq 0x660(%rsp,%rcx,8), %rdx
jne 0x1b8d6
incq %rcx
cmpq %rcx, %r15
jne 0x1b8b9
movl %r15d, %ecx
cmpl %r15d, %ecx
jne 0x1b8f0
xorl %ecx, %ecx
cmpq %rbx, %rax
setl %cl
addl %ecx, %r10d
incl %r9d
movl $0x1, %ecx
jmp 0x1b90a
movl %ecx, %edx
movq 0xc60(%rsp,%rdx,8), %rsi
xorl %ecx, %ecx
cmpq 0x660(%rsp,%rdx,8), %rsi
jb 0x1b9dc
movl %ecx, 0x1800(%rsp,%rax,4)
incq %rax
cmpq 0x20(%rsp), %rax
jne 0x1b829
testl %ebp, %ebp
setle %cl
cmpl $0x2, %r9d
setl %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x1b9de
movq %r14, %rcx
shlq $0x3, %rcx
movq %rcx, 0x58(%rsp)
leaq 0x1800(%rsp), %r12
xorl %ebx, %ebx
movq 0x38(%rsp), %rcx
movl %r10d, 0x2c(%rsp)
cmpl $0x0, (%r12)
je 0x1b99e
leal 0x1(%rax), %ebp
testl %r14d, %r14d
jle 0x1b9a0
leaq 0x278905(%rip), %rcx    # 0x294270
leaq (%rcx,%rbx), %rsi
cltq
imulq $0xba0, %rax, %rdi      # imm = 0xBA0
leaq 0xc371(%rip), %rax      # 0x27cf0
addq %rax, %rdi
movq 0x58(%rsp), %rdx
movl %r9d, %r13d
callq 0x1080
movl 0x2c(%rsp), %r10d
movl %r13d, %r9d
movq 0x38(%rsp), %rcx
jmp 0x1b9a0
movl %eax, %ebp
addq $0xba0, %rbx            # imm = 0xBA0
addq $0x4, %r12
movl %ebp, %eax
cmpq %rbx, %rcx
jne 0x1b955
xorl %eax, %eax
movq 0x30(%rsp), %r12
movl 0xc(%rsp), %ebp
movq 0x40(%rsp), %r13
movq 0x10(%rsp), %rbx
jmp 0x1b9de
callq 0x16a28
movl $0x2, 0x60(%rsp,%r14,4)
jmp 0x1b726
movb $0x1, %al
testb %al, %al
jne 0x1ba8f
movslq 0x228c23(%rip), %rax    # 0x244610
testq %rax, %rax
setg %dl
jle 0x1ba2d
movl 0xa7bd(%rip), %ecx      # 0x261b8
cmpl %ecx, 0xc1ef(%rip)      # 0x27bf0
jl 0x1ba29
leaq -0x1(%rax), %rdx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x1ba2d
leaq 0x1(%rsi), %rdi
leaq 0xc1d7(%rip), %r8       # 0x27bf0
cmpl %ecx, 0x4(%r8,%rsi,4)
movq %rdi, %rsi
jge 0x1ba09
cmpq %rax, %rdi
setb %dl
testb %dl, %dl
jne 0x1ba8f
cmpb $0x0, 0xa680(%rip)      # 0x260b4
jne 0x1ba79
xorl %eax, %eax
testl %r15d, %r15d
jle 0x1ba74
movq 0x660(%rsp,%rax,8), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rdx
movq 0x18(%rdx), %rdx
cmpq %rcx, 0x20(%rdx)
je 0x1ba74
movq 0x10(%rcx), %rdx
movq 0x10(%rdx), %rdx
movq 0x10(%rdx), %rdx
cmpq %rcx, 0x20(%rdx)
je 0x1ba74
incq %rax
cmpq %rax, %r15
jne 0x1ba3d
movl %r15d, %eax
cmpl %r15d, %eax
jne 0x1ba8f
leaq 0x660(%rsp), %rdi
movl %r15d, %esi
movl %r9d, %edx
movl %r10d, %ecx
callq 0x1bae2
movq 0x48(%rsp), %rcx
incq %rcx
cmpq %r13, %rcx
movq 0x50(%rsp), %r15
jne 0x1b6b5
movslq %r12d, %rax
cmpl $0x2, 0x5c(%rsp,%rax,4)
jne 0x1bad0
decq %rax
movq 0x260(%rsp,%rax,8), %rdi
addq $0x23a8, %rsp           # imm = 0x23A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x174cd
addq $0x23a8, %rsp           # imm = 0x23A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq