// File: /workspace/github_c_makefile_star2_O0/mishun[P]plantri/plantri.c
// Function: quadr_P1_legal
static void
quadr_P1_legal(EDGE *ref, EDGE *good_or[], int *ngood_or, int *ngood_ref,
               EDGE *good_mir[], int *ngood_mir, int *ngood_mir_ref,
               EDGE *prevP1[], int nprevP1, EDGE **hint)

/* The P1-operation with reference edge *ref has just been performed.
   prevP1[0..nprevP1-1] are all earlier P1s since the last P2 or P3.
   hint (unless it is NULL) is a suggestion for a P1-reduction that
   might be better than ref.
   Make a list in good_or[0..*ngood_or-1] of the reference edges of
   legal P1-reductions (oriented editions) that might be canonical,
   with the first *ngood_ref of those being ref.
   Make a list in good_mir[0..*ngood_mir-1] of the
   reference edges of legal four-reductions (mirror-image editions)
   that might be canonical, with the first *ngood_mir_ref of those being
   ref->next.
   *ngood_ref and *ngood_mir_ref might each be 0-1.  If they are
   both 0, nothing else need be correct.
   All the edges in good_or[] and good_mir[] must start with the same
   vertex degree and end with the same vertex degree (actually, colour
   as passed to canon_edge_oriented).
   P1-reductions have a priority (colour) based on the degrees of the
   end vertex and two side vertices.  It cannot be changed without
   changing find_extensions_quad too.
*/

{
    EDGE *e,*ee,*elast;
    int maxdeg;
    int col,maxcol;
    int i,nor,nmir;

#define QORCOL(e) (((long)degree[e->prev->end]<<10)+(long)degree[e->next->end])
#define QMIRCOL(e) (((long)degree[e->next->end]<<10)+(long)degree[e->prev->end])

    RESETMARKS;
    nor = nmir = 0;

    maxdeg = degree[ref->end];
    maxcol = QORCOL(ref);
    col = QMIRCOL(ref);
    if (col < maxcol)
        good_or[nor++] = ref;
    else if (col == maxcol)
    {
	good_or[nor++] = ref;
	good_mir[nmir++] = ref;
    }
    else
    {
	maxcol = col;
	good_mir[nmir++] = ref;
    }
 
    *ngood_ref = nor;
    *ngood_mir_ref = nmir;

    MARKLO(ref->invers);

    e = *hint;
    if (e && !ISMARKEDLO(e->invers)
             && degree[e->start] == 3 && degree[e->end] >= maxdeg
	     && degree[e->next->end] >= 4 && degree[e->prev->end] >= 4
             && legal_P1_reduction(e))
    {
        if (degree[e->end] > maxdeg)
        {
            *ngood_ref = *ngood_mir_ref = 0;
            return;
        }   
        else
        {   
            col = QORCOL(e); 
            if (col > maxcol)
            {
                *ngood_ref = *ngood_mir_ref = 0;
                return;
            }
            else if (col == maxcol)
                good_or[nor++] = e;
                    
            col = QMIRCOL(e);
            if (col > maxcol)
            {
                *ngood_ref = *ngood_mir_ref = 0;
                return;
            }
            else if (col == maxcol)
                good_mir[nmir++] = e;
        }
        MARKLO(e->invers);
    }

    for (i = nprevP1; --i >= 0; )
    {
	e = prevP1[i];
	if (!ISMARKEDLO(e->invers) && degree[e->end] >= maxdeg
                 && degree[e->start] == 3
		 && degree[e->next->end] >= 4 && degree[e->prev->end] >= 4
                 && legal_P1_reduction(e))
	{
	    if (degree[e->end] > maxdeg)
	    {
		*ngood_ref = *ngood_mir_ref = 0;
		return;
	    }
	    else
	    {
                col = QORCOL(e);
                if (col > maxcol)
                {
                    *ngood_ref = *ngood_mir_ref = 0;
                    return;
                }
                else if (col == maxcol)
                    good_or[nor++] = e;

                col = QMIRCOL(e);
                if (col > maxcol)
                {
                    *ngood_ref = *ngood_mir_ref = 0;
                    return;
                }
                 else if (col == maxcol)
                     good_mir[nmir++] = e;
	    }
	}
	MARKLO(e->invers);
    }

    if (nor > *ngood_ref || nmir > *ngood_mir_ref)
        prune_oriented_lists(good_or,&nor,ngood_ref,
                             good_mir,&nmir,ngood_mir_ref);

    if (*ngood_ref == 0 && *ngood_mir_ref == 0) return;

    for (i = 0; i < nv; ++i)
        if (degree[i] > maxdeg)
        {
	    e = elast = firstedge[i];
            do
            {
		if (!ISMARKEDLO(e) && degree[e->end] == 3)
                {
		    ee = e->invers;
		    if (degree[ee->next->end] >= 4
                                && degree[ee->prev->end] >= 4
                                && legal_P1_reduction(ee))
		    {
                        *ngood_ref = *ngood_mir_ref = 0;
		        *hint = e;
                        return;
		    }
                }
	        e = e->next;
	    } while (e != elast);
        } 
        else if (degree[i] == maxdeg)
        {
            e = elast = firstedge[i];
            do
            {
		ee = e->invers;
                if (degree[e->end] == 3 && !ISMARKEDLO(e) 
                        && degree[ee->next->end] >= 4
                        && degree[ee->prev->end] >= 4
                        && legal_P1_reduction(ee))
                {
                    col = QORCOL(e->invers);
                    if (col > maxcol)
                    {
                        *ngood_ref = *ngood_mir_ref = 0;
		        *hint = e;
                        return;
                    }
                    else if (col == maxcol)
                        good_or[nor++] = e->invers;
    
                    col = QMIRCOL(e->invers);
                    if (col > maxcol)
                    {
                        *ngood_ref = *ngood_mir_ref = 0;
		        *hint = e;
                        return;
                    }
                    else if (col == maxcol)
                        good_mir[nmir++] = e->invers;
                }
                e = e->next;
            } while (e != elast);
        }

    if (nor > *ngood_ref || nmir > *ngood_mir_ref)
        prune_oriented_lists(good_or,&nor,ngood_ref,
                             good_mir,&nmir,ngood_mir_ref);

    *ngood_or = nor;
    *ngood_mir = nmir;    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x28(%rbp), %rax
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl 0x27c9f(%rip), %eax     # 0x3c084
addl $0x2, %eax
movl %eax, 0x27c96(%rip)     # 0x3c084
cmpl $0x7530, %eax           # imm = 0x7530
jle 0x14435
movl $0x2, 0x27c85(%rip)     # 0x3c084
movl $0x0, -0x64(%rbp)
cmpl $0x1198, -0x64(%rbp)    # imm = 0x1198
jge 0x14433
movslq -0x64(%rbp), %rcx
leaq 0x246216(%rip), %rax    # 0x25a630
shlq $0x6, %rcx
addq %rcx, %rax
movl $0x0, 0x30(%rax)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x14406
jmp 0x14435
movl $0x0, -0x60(%rbp)
movl $0x0, -0x5c(%rbp)
movq -0x8(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x297ae(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
movl %eax, -0x4c(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29795(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x2977a(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x2975d(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x29742(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jge 0x144ec
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x5c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x1454c
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x1452a
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x5c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rdx
movq -0x28(%rbp), %rax
movl -0x60(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x60(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x1454a
movl -0x50(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdx
movq -0x28(%rbp), %rax
movl -0x60(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x60(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x1454c
movl -0x5c(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movl -0x60(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, (%rax)
movl 0x27b20(%rip), %ecx     # 0x3c084
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl %ecx, 0x30(%rax)
movq 0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x14758
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %eax
cmpl 0x27aee(%rip), %eax     # 0x3c084
je 0x14758
movq -0x38(%rbp), %rax
movslq (%rax), %rcx
leaq 0x29656(%rip), %rax     # 0x3dc00
cmpl $0x3, (%rax,%rcx,4)
jne 0x14758
movq -0x38(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x2963d(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x4c(%rbp), %eax
jl 0x14758
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x2961e(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14758
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29601(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14758
movq -0x38(%rbp), %rdi
callq 0x159c0
cmpl $0x0, %eax
je 0x14758
movq -0x38(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x295d6(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x4c(%rbp), %eax
jle 0x1464b
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
jmp 0x14cf0
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x295a2(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x38(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x29587(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jle 0x146a4
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
jmp 0x14cf0
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x146c6
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x5c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x146c8
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29525(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x38(%rbp), %rcx
movq 0x10(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x2950a(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jle 0x14721
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
jmp 0x14cf0
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x14743
movq -0x38(%rbp), %rdx
movq -0x28(%rbp), %rax
movl -0x60(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x60(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x14745
jmp 0x14747
movl 0x27937(%rip), %ecx     # 0x3c084
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl %ecx, 0x30(%rax)
movl 0x20(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x58(%rbp)
cmpl $0x0, %eax
jl 0x1495a
movq 0x18(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %eax
cmpl 0x278f3(%rip), %eax     # 0x3c084
je 0x14944
movq -0x38(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x2945a(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x4c(%rbp), %eax
jl 0x14944
movq -0x38(%rbp), %rax
movslq (%rax), %rcx
leaq 0x29440(%rip), %rax     # 0x3dc00
cmpl $0x3, (%rax,%rcx,4)
jne 0x14944
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29423(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14944
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29406(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14944
movq -0x38(%rbp), %rdi
callq 0x159c0
cmpl $0x0, %eax
je 0x14944
movq -0x38(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x293db(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x4c(%rbp), %eax
jle 0x14846
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
jmp 0x14cf0
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x293a7(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x38(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x2938c(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jle 0x1489f
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
jmp 0x14cf0
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x148c1
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x5c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x148c3
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x2932a(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x38(%rbp), %rcx
movq 0x10(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x2930f(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jle 0x1491c
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
jmp 0x14cf0
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x1493e
movq -0x38(%rbp), %rdx
movq -0x28(%rbp), %rax
movl -0x60(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x60(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x14940
jmp 0x14942
jmp 0x14944
movl 0x2773a(%rip), %ecx     # 0x3c084
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl %ecx, 0x30(%rax)
jmp 0x1475e
movl -0x5c(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl (%rcx), %eax
jg 0x14970
movl -0x60(%rbp), %eax
movq 0x10(%rbp), %rcx
cmpl (%rcx), %eax
jle 0x1498d
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq 0x10(%rbp), %r9
leaq -0x5c(%rbp), %rsi
leaq -0x60(%rbp), %r8
callq 0x12be0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x149a4
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x149a4
jmp 0x14cf0
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl 0x245c6c(%rip), %eax    # 0x25a620
jge 0x14cab
movslq -0x58(%rbp), %rcx
leaq 0x2923b(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x4c(%rbp), %eax
jle 0x14aa1
movslq -0x58(%rbp), %rcx
leaq 0x29024(%rip), %rax     # 0x3da00
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x30(%rax), %eax
cmpl 0x2768f(%rip), %eax     # 0x3c084
je 0x14a82
movq -0x38(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x291f6(%rip), %rax     # 0x3dc00
cmpl $0x3, (%rax,%rcx,4)
jne 0x14a82
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x291d1(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14a80
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x291b8(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14a80
movq -0x40(%rbp), %rdi
callq 0x159c0
cmpl $0x0, %eax
je 0x14a80
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rcx
movq 0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0x14cf0
jmp 0x14a82
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jne 0x149e8
jmp 0x14c9b
movslq -0x58(%rbp), %rcx
leaq 0x29154(%rip), %rax     # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x4c(%rbp), %eax
jne 0x14c99
movslq -0x58(%rbp), %rcx
leaq 0x28f3d(%rip), %rax     # 0x3da00
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x29116(%rip), %rax     # 0x3dc00
cmpl $0x3, (%rax,%rcx,4)
jne 0x14c7d
movq -0x38(%rbp), %rax
movl 0x30(%rax), %eax
cmpl 0x27583(%rip), %eax     # 0x3c084
je 0x14c7d
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x290e6(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14c7d
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x290c9(%rip), %rax     # 0x3dc00
cmpl $0x4, (%rax,%rcx,4)
jl 0x14c7d
movq -0x40(%rbp), %rdi
callq 0x159c0
cmpl $0x0, %eax
je 0x14c7d
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29096(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x38(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq 0x18(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x29077(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jle 0x14bbf
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rcx
movq 0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0x14cf0
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x14be5
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rdx
movq -0x10(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x5c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x14be7
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x29002(%rip), %rax     # 0x3dc00
movslq (%rax,%rcx,4), %rax
shlq $0xa, %rax
movq -0x38(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq 0x10(%rcx), %rcx
movslq 0x4(%rcx), %rdx
leaq 0x28fe3(%rip), %rcx     # 0x3dc00
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jle 0x14c53
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rcx
movq 0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0x14cf0
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x14c79
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rdx
movq -0x28(%rbp), %rax
movl -0x60(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x60(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x14c7b
jmp 0x14c7d
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jne 0x14acf
jmp 0x14c99
jmp 0x14c9b
jmp 0x14c9d
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x149ab
movl -0x5c(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl (%rcx), %eax
jg 0x14cc1
movl -0x60(%rbp), %eax
movq 0x10(%rbp), %rcx
cmpl (%rcx), %eax
jle 0x14cde
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq 0x10(%rbp), %r9
leaq -0x5c(%rbp), %rsi
leaq -0x60(%rbp), %r8
callq 0x12be0
movl -0x5c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movl -0x60(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)