// File: /workspace/github_c_makefile_star2_O3/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 0x761c
cmpl $0x2, %r15d
jl 0x1bccf
movl 0xaeab(%rip), %eax      # 0x261b8
cmpl $0x3, %eax
setge %cl
cmpl $0x4, %r15d
setb %dl
testb %cl, %dl
jne 0x1bccf
movl 0xad64(%rip), %edx      # 0x2608c
leal 0x2(%rdx), %ecx
movl %ecx, 0xad5b(%rip)      # 0x2608c
cmpl $0x752f, %edx           # imm = 0x752F
jl 0x1b368
movl $0x2, 0xad49(%rip)      # 0x2608c
movl $0x30, %ecx
leaq 0x2292d1(%rip), %rdx    # 0x244620
movl $0x0, (%rcx,%rdx)
addq $0x40, %rcx
cmpq $0x46630, %rcx          # imm = 0x46630
jne 0x1b34f
movl $0x2, %ecx
movl %r15d, %edx
leaq 0x495afe(%rip), %rsi    # 0x4b0e70
movq %rdx, %rdi
movq (%rsi), %r8
movl %ecx, 0x30(%r8)
movq 0x20(%r8), %r8
movl %ecx, 0x30(%r8)
addq $0x8, %rsi
decq %rdi
jne 0x1b375
xorl %ebp, %ebp
cmpl $0x4, %r15d
jl 0x1b440
leal 0x1(%rcx), %esi
shlq $0x3, %rdx
xorl %edi, %edi
leaq 0x495ac7(%rip), %r8     # 0x4b0e70
xorl %ebp, %ebp
movq (%rdi,%r8), %r11
movq 0x18(%r11), %r10
movq 0x20(%r11), %r9
cmpl %ecx, 0x30(%r10)
jne 0x1b3f1
movq 0x10(%r9), %r10
cmpl %ecx, 0x30(%r10)
jg 0x1b3f1
movl (%r11), %r11d
movq 0x10(%r10), %rbx
cmpl 0x4(%rbx), %r11d
jne 0x1b3f1
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 0x18(%r9), %r10
cmpl %ecx, 0x30(%r10)
jne 0x1b433
movq 0x20(%r9), %r10
movq 0x10(%r10), %r10
cmpl %ecx, 0x30(%r10)
jg 0x1b433
movl (%r9), %r9d
movq 0x10(%r10), %r11
cmpl 0x4(%r11), %r9d
jne 0x1b433
movl %esi, 0x30(%r10)
movq 0x20(%r10), %r9
movl %esi, 0x30(%r9)
movq 0x28(%r10), %r9
movslq %ebp, %rbp
movq %r9, 0x260(%rsp,%rbp,8)
incl %ebp
addq $0x8, %rdi
cmpq %rdi, %rdx
jne 0x1b3ab
cmpl $0x1, %eax
jne 0x1b49d
movslq 0x2291c4(%rip), %rax    # 0x244610
testq %rax, %rax
jle 0x1b49d
shlq $0x2, %rax
leaq 0xc594(%rip), %rcx      # 0x279f0
xorl %edx, %edx
leaq 0xc78b(%rip), %rsi      # 0x27bf0
cmpl $0x2, (%rdx,%rsi)
jne 0x1b490
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 0x1b465
testl %ebp, %ebp
je 0x1bccf
movl %ebp, %ebx
movq %rbx, 0x10(%rsp)
jle 0x1b532
leaq (,%rbx,4), %rdx
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
callq 0x1030
cmpl $0x1, %r14d
jne 0x1b711
xorl %eax, %eax
movq 0x260(%rsp,%rax,8), %rcx
movl %eax, 0x34(%rcx)
incq %rax
cmpq %rax, %rbx
jne 0x1b4d2
testl %ebp, %ebp
jle 0x1b53c
xorl %eax, %eax
leaq 0xc6fe(%rip), %rcx      # 0x27bf0
movq 0x260(%rsp,%rax,8), %rdx
movslq (%rdx), %rsi
cmpl $0x2, (%rcx,%rsi,4)
je 0x1b516
movslq 0x4(%rdx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpl $0x2, (%rcx,%rdi,4)
jne 0x1b521
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 0x1b4f2
jmp 0x1b53c
cmpl $0x1, %r14d
jne 0x1b711
movl $0x1, %eax
movl %ebp, %ecx
shll %cl, %eax
cmpl $0x2, %eax
jl 0x1b709
movslq %eax, %rbx
xorl %r15d, %r15d
movl $0x1, %r12d
leaq 0xc68f(%rip), %r13      # 0x27bf0
xorl %r14d, %r14d
testb $0x1, %r12b
jne 0x1b57e
movq %r12, %rcx
movq %r12, %rax
shrq %rax
incq %r14
testb $0x2, %cl
movq %rax, %rcx
je 0x1b570
movl 0x60(%rsp,%r14,4), %eax
cmpl $0x1, %eax
je 0x1b5b9
testl %eax, %eax
jne 0x1b5c7
movq 0x260(%rsp,%r14,8), %rdi
movslq (%rdi), %rax
cmpl $0x1, (%r13,%rax,4)
je 0x1b5ab
movslq 0x4(%rdi), %rax
cmpl $0x1, (%r13,%rax,4)
jne 0x1b624
movl $0x1, 0x60(%rsp,%r14,4)
incl %r15d
jmp 0x1b632
decl %r15d
movl $0x0, 0x60(%rsp,%r14,4)
jmp 0x1b632
movq 0x260(%rsp,%r14,8), %rdi
callq 0x175ce
movl $0x0, 0x60(%rsp,%r14,4)
movslq 0xa60(%rsp,%r14,4), %r14
testq %r14, %r14
js 0x1b632
cmpl $0x1, 0x60(%rsp,%r14,4)
jne 0x1b632
movq 0x260(%rsp,%r14,8), %rdi
movslq (%rdi), %rax
cmpl $0x2, (%r13,%rax,4)
jl 0x1b632
movslq 0x4(%rdi), %rax
cmpl $0x2, (%r13,%rax,4)
jl 0x1b632
callq 0x16b44
movl $0x2, 0x60(%rsp,%r14,4)
decl %r15d
jmp 0x1b632
callq 0x16b44
movl $0x2, 0x60(%rsp,%r14,4)
testl %r15d, %r15d
movq 0x10(%rsp), %rdi
jg 0x1b6fd
movslq 0x228fc9(%rip), %rax    # 0x244610
testq %rax, %rax
jle 0x1b66b
movl 0xab66(%rip), %ecx      # 0x261b8
shlq $0x2, %rax
xorl %edx, %edx
cmpl %ecx, (%rdx,%r13)
jl 0x1b6fd
addq $0x4, %rdx
cmpq %rdx, %rax
jne 0x1b658
testl %ebp, %ebp
jle 0x1b6de
xorl %ecx, %ecx
xorl %eax, %eax
cmpl $0x0, 0x60(%rsp,%rcx,4)
je 0x1b68f
movq 0x260(%rsp,%rcx,8), %rdx
movslq %eax, %rsi
incl %eax
movq %rdx, 0x660(%rsp,%rsi,8)
incq %rcx
cmpq %rcx, %rdi
jne 0x1b673
movl %eax, %esi
cmpb $0x1, 0xaa14(%rip)      # 0x260b4
je 0x1b6e6
xorl %ecx, %ecx
testl %eax, %eax
jle 0x1b6e2
movq 0x660(%rsp,%rcx,8), %rdx
movq 0x18(%rdx), %rdi
movq 0x18(%rdi), %rdi
movq 0x18(%rdi), %rdi
cmpq %rdx, 0x20(%rdi)
je 0x1b6e2
movq 0x10(%rdx), %rdi
movq 0x10(%rdi), %rdi
movq 0x10(%rdi), %rdi
cmpq %rdx, 0x20(%rdi)
je 0x1b6e2
incq %rcx
cmpq %rcx, %rsi
jne 0x1b6a8
jmp 0x1b6e6
xorl %esi, %esi
jmp 0x1b6e6
cmpl %eax, %ecx
jne 0x1b6fd
leaq 0x660(%rsp), %rdi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x1bce1
incq %r12
cmpq %rbx, %r12
jne 0x1b561
movslq %ebp, %rax
jmp 0x1bca7
movl %r12d, 0x4(%rsp)
movq %rbp, 0x30(%rsp)
movl %r14d, 0x1c(%rsp)
testl %r14d, %r14d
jle 0x1b768
movl 0x228ee9(%rip), %ebx    # 0x244614
movq %rbx, %r15
shlq $0x3, %r15
xorl %r12d, %r12d
leaq 0x278b34(%rip), %r13    # 0x294270
leaq 0xc5ad(%rip), %rbp      # 0x27cf0
movl 0x1c(%rsp), %r14d
testl %ebx, %ebx
jle 0x1b75c
leaq (%r12,%r13), %rdi
leaq (%r12,%rbp), %rsi
movq %r15, %rdx
callq 0x1070
addq $0xba0, %r12            # imm = 0xBA0
decl %r14d
jne 0x1b748
movq 0x30(%rsp), %r13
cmpl $0x2, %r13d
movq 0x10(%rsp), %r8
jl 0x1b7bf
movl $0x1, %eax
movq 0x260(%rsp,%rax,8), %rcx
movq %rax, %rdx
movq 0x258(%rsp,%rdx,8), %rsi
cmpq %rcx, %rsi
jbe 0x1b7ac
movq %rsi, 0x260(%rsp,%rdx,8)
leaq -0x1(%rdx), %rsi
cmpq $0x1, %rdx
movq %rsi, %rdx
jg 0x1b788
xorl %edx, %edx
movslq %edx, %rdx
movq %rcx, 0x260(%rsp,%rdx,8)
incq %rax
cmpq %r8, %rax
jne 0x1b77d
testl %r13d, %r13d
jle 0x1b825
xorl %eax, %eax
movq 0x260(%rsp,%rax,8), %rcx
movl %eax, 0x34(%rcx)
incq %rax
cmpq %rax, %r8
jne 0x1b7c6
testl %r13d, %r13d
jle 0x1b825
xorl %eax, %eax
leaq 0xc409(%rip), %rcx      # 0x27bf0
movq 0x260(%rsp,%rax,8), %rdx
movslq (%rdx), %rsi
cmpl $0x2, (%rcx,%rsi,4)
je 0x1b80b
movslq 0x4(%rdx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpl $0x2, (%rcx,%rdi,4)
jne 0x1b816
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 0x1b7e7
movl $0x1, %eax
movl %r13d, %ecx
shll %cl, %eax
cmpl $0x2, %eax
jl 0x1bca4
movslq %eax, %rbp
xorl %eax, %eax
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
setg %al
movl %eax, 0x2c(%rsp)
movslq %ecx, %rbx
movl 0x1c(%rsp), %r9d
imulq $0xba0, %r9, %rax       # imm = 0xBA0
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
movl $0x1, %r12d
leaq 0x278a02(%rip), %r10    # 0x294270
leaq 0xc37b(%rip), %r11      # 0x27bf0
movq %rbx, 0x20(%rsp)
movq %r9, 0x8(%rsp)
movq %rbp, 0x40(%rsp)
xorl %r14d, %r14d
testb $0x1, %r12b
jne 0x1b8a1
movq %r12, %rcx
movq %r12, %rax
shrq %rax
incq %r14
testb $0x2, %cl
movq %rax, %rcx
je 0x1b893
movl 0x60(%rsp,%r14,4), %eax
cmpl $0x1, %eax
movq %r12, 0x50(%rsp)
je 0x1b8e3
testl %eax, %eax
jne 0x1b8f9
movq 0x260(%rsp,%r14,8), %rdi
movslq (%rdi), %rax
cmpl $0x1, (%r11,%rax,4)
je 0x1b8d5
movslq 0x4(%rdi), %rax
cmpl $0x1, (%r11,%rax,4)
jne 0x1bc37
movl $0x1, 0x60(%rsp,%r14,4)
incl %r15d
jmp 0x1b8ef
decl %r15d
movl $0x0, 0x60(%rsp,%r14,4)
movq 0x10(%rsp), %r14
jmp 0x1b9a6
movq 0x260(%rsp,%r14,8), %rdi
callq 0x175ce
movl $0x0, 0x60(%rsp,%r14,4)
movslq 0xa60(%rsp,%r14,4), %rbx
testq %rbx, %rbx
js 0x1b982
cmpl $0x1, 0x60(%rsp,%rbx,4)
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %r9
leaq 0x27893e(%rip), %r10    # 0x294270
jne 0x1b99a
movq 0x260(%rsp,%rbx,8), %rdi
movslq (%rdi), %rax
leaq 0xc2aa(%rip), %r11      # 0x27bf0
cmpl $0x2, (%r11,%rax,4)
jl 0x1b97b
movslq 0x4(%rdi), %rax
cmpl $0x2, (%r11,%rax,4)
jl 0x1b97b
callq 0x16b44
leaq 0xc28c(%rip), %r11      # 0x27bf0
leaq 0x278905(%rip), %r10    # 0x294270
movq 0x8(%rsp), %r9
movl $0x2, 0x60(%rsp,%rbx,4)
decl %r15d
movq 0x20(%rsp), %rbx
jmp 0x1b9a6
movq 0x10(%rsp), %r14
movq 0x20(%rsp), %rbx
movq 0x8(%rsp), %r9
leaq 0x2788d8(%rip), %r10    # 0x294270
jmp 0x1b99f
movq 0x20(%rsp), %rbx
leaq 0xc24a(%rip), %r11      # 0x27bf0
movq %r15, 0x58(%rsp)
testl %r15d, %r15d
jg 0x1bc8e
testl %r13d, %r13d
jle 0x1b9e5
xorl %eax, %eax
xorl %r15d, %r15d
cmpl $0x2, 0x60(%rsp,%rax,4)
jne 0x1b9db
movq 0x260(%rsp,%rax,8), %rcx
movslq %r15d, %rdx
incl %r15d
movq %rcx, 0x660(%rsp,%rdx,8)
incq %rax
cmpq %rax, %r14
jne 0x1b9be
jmp 0x1b9e8
xorl %r15d, %r15d
movl $0x1, 0x1800(%rsp)
movl 0x228c1a(%rip), %r14d   # 0x244614
testl %r14d, %r14d
jle 0x1ba16
movq %r10, %rax
xorl %ecx, %ecx
movq (%rax), %rdx
movl %ecx, 0x34(%rdx)
incq %rcx
addq $0x8, %rax
cmpq %rcx, %r14
jne 0x1ba04
movl $0x1, %r12d
movl 0x2c(%rsp), %eax
movl %eax, 0x4(%rsp)
cmpl $0x2, 0x1c(%rsp)
jl 0x1bbc3
movl %r15d, %eax
movl $0x1, %ecx
movl 0x2c(%rsp), %edx
movl %edx, 0x4(%rsp)
testl %r15d, %r15d
jle 0x1bae3
imulq $0xba0, %rcx, %rdx      # imm = 0xBA0
addq %r10, %rdx
xorl %esi, %esi
movq 0x660(%rsp,%rsi,8), %rdi
movslq 0x34(%rdi), %rdi
movq (%rdx,%rdi,8), %rdi
movq 0x28(%rdi), %rdi
movq %rdi, 0xc60(%rsp,%rsi,8)
incq %rsi
cmpq %rsi, %rax
jne 0x1ba54
cmpl $0x2, %r15d
jl 0x1bac5
movl $0x1, %edx
movq 0xc60(%rsp,%rdx,8), %rsi
movq %rdx, %rdi
movq 0xc58(%rsp,%rdi,8), %r8
cmpq %rsi, %r8
jbe 0x1bab2
movq %r8, 0xc60(%rsp,%rdi,8)
leaq -0x1(%rdi), %r8
cmpq $0x1, %rdi
movq %r8, %rdi
jg 0x1ba8e
xorl %edi, %edi
movslq %edi, %rdi
movq %rsi, 0xc60(%rsp,%rdi,8)
incq %rdx
cmpq %rax, %rdx
jne 0x1ba83
xorl %edx, %edx
movq 0xc60(%rsp,%rdx,8), %rsi
cmpq 0x660(%rsp,%rdx,8), %rsi
jne 0x1bae5
incq %rdx
cmpq %rdx, %rax
jne 0x1bac7
jmp 0x1baea
xorl %edx, %edx
cmpl %r15d, %edx
jne 0x1bb00
xorl %edx, %edx
cmpq %rbx, %rcx
setl %dl
addl %edx, 0x4(%rsp)
incl %r12d
movl $0x1, %edx
jmp 0x1bb1a
movl %edx, %esi
movq 0xc60(%rsp,%rsi,8), %rdi
xorl %edx, %edx
cmpq 0x660(%rsp,%rsi,8), %rdi
jb 0x1bc8e
movl %edx, 0x1800(%rsp,%rcx,4)
incq %rcx
cmpq %r9, %rcx
jne 0x1ba3f
cmpl $0x2, %r12d
jl 0x1bbc3
movq %r14, %rax
shlq $0x3, %rax
movq %rax, 0x48(%rsp)
xorl %ebx, %ebx
leaq 0x1800(%rsp), %rbp
xorl %eax, %eax
movq 0x38(%rsp), %rcx
cmpl $0x0, (%rbp)
je 0x1bb9e
leal 0x1(%rax), %r13d
testl %r14d, %r14d
jle 0x1bba1
leaq (%r10,%rbx), %rsi
cltq
imulq $0xba0, %rax, %rdi      # imm = 0xBA0
leaq 0xc179(%rip), %rax      # 0x27cf0
addq %rax, %rdi
movq 0x48(%rsp), %rdx
callq 0x1070
leaq 0xc065(%rip), %r11      # 0x27bf0
leaq 0x2786de(%rip), %r10    # 0x294270
movq 0x38(%rsp), %rcx
movq 0x8(%rsp), %r9
jmp 0x1bba1
movl %eax, %r13d
addq $0xba0, %rbx            # imm = 0xBA0
addq $0x4, %rbp
movl %r13d, %eax
cmpq %rbx, %rcx
jne 0x1bb54
movq 0x30(%rsp), %r13
movq 0x40(%rsp), %rbp
movq 0x20(%rsp), %rbx
movslq 0x228a46(%rip), %rax    # 0x244610
testq %rax, %rax
jle 0x1bbee
movl 0xa5e3(%rip), %ecx      # 0x261b8
shlq $0x2, %rax
xorl %edx, %edx
cmpl %ecx, (%rdx,%r11)
jl 0x1bc8e
addq $0x4, %rdx
cmpq %rdx, %rax
jne 0x1bbdb
cmpb $0x0, 0xa4bf(%rip)      # 0x260b4
jne 0x1bc64
testl %r15d, %r15d
jle 0x1bc5d
movl %r15d, %ecx
xorl %eax, %eax
movq 0x660(%rsp,%rax,8), %rdx
movq 0x18(%rdx), %rsi
movq 0x18(%rsi), %rsi
movq 0x18(%rsi), %rsi
cmpq %rdx, 0x20(%rsi)
je 0x1bc5f
movq 0x10(%rdx), %rsi
movq 0x10(%rsi), %rsi
movq 0x10(%rsi), %rsi
cmpq %rdx, 0x20(%rsi)
je 0x1bc5f
incq %rax
cmpq %rax, %rcx
jne 0x1bc01
jmp 0x1bc64
callq 0x16b44
leaq 0xbfad(%rip), %r11      # 0x27bf0
leaq 0x278626(%rip), %r10    # 0x294270
movq 0x8(%rsp), %r9
movl $0x2, 0x60(%rsp,%r14,4)
jmp 0x1b8ef
xorl %eax, %eax
cmpl %r15d, %eax
jne 0x1bc8e
leaq 0x660(%rsp), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl 0x4(%rsp), %ecx
callq 0x1bce1
leaq 0xbf6e(%rip), %r11      # 0x27bf0
leaq 0x2785e7(%rip), %r10    # 0x294270
movq 0x8(%rsp), %r9
movq 0x50(%rsp), %r12
incq %r12
cmpq %rbp, %r12
movq 0x58(%rsp), %r15
jne 0x1b884
movslq %r13d, %rax
cmpl $0x2, 0x5c(%rsp,%rax,4)
jne 0x1bccf
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 0x175ce
addq $0x23a8, %rsp           # imm = 0x23A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq