// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: clipmove
int clipmove (int *x, int *y, int *z, short *sectnum,
		 int xvect, int yvect,
		 int walldist, int ceildist, int flordist, unsigned int cliptype)
{
	walltype *wal, *wal2;
	spritetype *spr;
	sectortype *sec, *sec2;
	int i, j, templong1, templong2;
	int oxvect, oyvect, goalx, goaly, intx, inty, lx, ly, retval;
	int k, l, clipsectcnt, startwall, endwall, cstat, dasect;
	int x1, y1, x2, y2, cx, cy, rad, xmin, ymin, xmax, ymax, daz, daz2;
	int bsz, dax, day, xoff, yoff, xspan, yspan, cosang, sinang, tilenum;
	int xrepeat, yrepeat, gx, gy, dx, dy, dasprclipmask, dawalclipmask;
	int hitwall, cnt, clipyou;

	if (((xvect|yvect) == 0) || (*sectnum < 0)) return(0);
	retval = 0;

	oxvect = xvect;
	oyvect = yvect;

	goalx = (*x) + (xvect>>14);
	goaly = (*y) + (yvect>>14);


	clipnum = 0;

	cx = (((*x)+goalx)>>1);
	cy = (((*y)+goaly)>>1);
		//Extra walldist for sprites on sector lines
	gx = goalx-(*x); gy = goaly-(*y);
	rad = nsqrtasm(gx*gx + gy*gy) + MAXCLIPDIST+walldist + 8;
	xmin = cx-rad; ymin = cy-rad;
	xmax = cx+rad; ymax = cy+rad;

	dawalclipmask = (cliptype&65535);        //CLIPMASK0 = 0x00010001
	dasprclipmask = (cliptype>>16);          //CLIPMASK1 = 0x01000040

	clipsectorlist[0] = (*sectnum);
	clipsectcnt = 0; clipsectnum = 1;
	do
	{
		dasect = clipsectorlist[clipsectcnt++];
		sec = &sector[dasect];
		startwall = sec->wallptr; endwall = startwall + sec->wallnum;
		for(j=startwall,wal=&wall[startwall];j<endwall;j++,wal++)
		{
			wal2 = &wall[wal->point2];
			if ((wal->x < xmin) && (wal2->x < xmin)) continue;
			if ((wal->x > xmax) && (wal2->x > xmax)) continue;
			if ((wal->y < ymin) && (wal2->y < ymin)) continue;
			if ((wal->y > ymax) && (wal2->y > ymax)) continue;

			x1 = wal->x; y1 = wal->y; x2 = wal2->x; y2 = wal2->y;

			dx = x2-x1; dy = y2-y1;
			if (dx*((*y)-y1) < ((*x)-x1)*dy) continue;  //If wall's not facing you

			if (dx > 0) dax = dx*(ymin-y1); else dax = dx*(ymax-y1);
			if (dy > 0) day = dy*(xmax-x1); else day = dy*(xmin-x1);
			if (dax >= day) continue;

			clipyou = 0;
			if ((wal->nextsector < 0) || (wal->cstat&dawalclipmask)) clipyou = 1;
			else if (editstatus == 0)
			{
				if (rintersect(*x,*y,0,gx,gy,0,x1,y1,x2,y2,&dax,&day,&daz) == 0)
					dax = *x, day = *y;
				daz = getflorzofslope((short)dasect,dax,day);
				daz2 = getflorzofslope(wal->nextsector,dax,day);

				sec2 = &sector[wal->nextsector];
				if (daz2 < daz-(1<<8))
					if ((sec2->floorstat&1) == 0)
						if ((*z) >= daz2-(flordist-1)) clipyou = 1;
				if (clipyou == 0)
				{
					daz = getceilzofslope((short)dasect,dax,day);
					daz2 = getceilzofslope(wal->nextsector,dax,day);
					if (daz2 > daz+(1<<8))
						if ((sec2->ceilingstat&1) == 0)
							if ((*z) <= daz2+(ceildist-1)) clipyou = 1;
				}
			}

			if (clipyou)
			{
					//Add 2 boxes at endpoints
				bsz = walldist; if (gx < 0) bsz = -bsz;
				addclipline(x1-bsz,y1-bsz,x1-bsz,y1+bsz,(short)j+32768);
				addclipline(x2-bsz,y2-bsz,x2-bsz,y2+bsz,(short)j+32768);
				bsz = walldist; if (gy < 0) bsz = -bsz;
				addclipline(x1+bsz,y1-bsz,x1-bsz,y1-bsz,(short)j+32768);
				addclipline(x2+bsz,y2-bsz,x2-bsz,y2-bsz,(short)j+32768);

				dax = walldist; if (dy > 0) dax = -dax;
				day = walldist; if (dx < 0) day = -day;
				addclipline(x1+dax,y1+day,x2+dax,y2+day,(short)j+32768);
			}
			else
			{
				for(i=clipsectnum-1;i>=0;i--)
					if (wal->nextsector == clipsectorlist[i]) break;
				if (i < 0) clipsectorlist[clipsectnum++] = wal->nextsector;
			}
		}

		for(j=headspritesect[dasect];j>=0;j=nextspritesect[j])
		{
			spr = &sprite[j];
			cstat = spr->cstat;
			if ((cstat&dasprclipmask) == 0) continue;
			x1 = spr->x; y1 = spr->y;
			switch(cstat&48)
			{
				case 0:
					if ((x1 >= xmin) && (x1 <= xmax) && (y1 >= ymin) && (y1 <= ymax))
					{
						k = ((tilesizy[spr->picnum]*spr->yrepeat)<<2);
						if (cstat&128) daz = spr->z+(k>>1); else daz = spr->z;
						if (picanm[spr->picnum]&0x00ff0000) daz -= ((int)((signed char)((picanm[spr->picnum]>>16)&255))*spr->yrepeat<<2);
						if (((*z) < daz+ceildist) && ((*z) > daz-k-flordist))
						{
							bsz = (spr->clipdist<<2)+walldist; if (gx < 0) bsz = -bsz;
							addclipline(x1-bsz,y1-bsz,x1-bsz,y1+bsz,(short)j+49152);
							bsz = (spr->clipdist<<2)+walldist; if (gy < 0) bsz = -bsz;
							addclipline(x1+bsz,y1-bsz,x1-bsz,y1-bsz,(short)j+49152);
						}
					}
					break;
				case 16:
					k = ((tilesizy[spr->picnum]*spr->yrepeat)<<2);
					if (cstat&128) daz = spr->z+(k>>1); else daz = spr->z;
					if (picanm[spr->picnum]&0x00ff0000) daz -= ((int)((signed char)((picanm[spr->picnum]>>16)&255))*spr->yrepeat<<2);
					daz2 = daz-k;
					daz += ceildist; daz2 -= flordist;
					if (((*z) < daz) && ((*z) > daz2))
					{
							//These lines get the 2 points of the rotated sprite
							//Given: (x1, y1) starts out as the center point
						tilenum = spr->picnum;
						xoff = (int)((signed char)((picanm[tilenum]>>8)&255))+((int)spr->xoffset);
						if ((cstat&4) > 0) xoff = -xoff;
						k = spr->ang; l = spr->xrepeat;
						dax = sintable[k&2047]*l; day = sintable[(k+1536)&2047]*l;
						l = tilesizx[tilenum]; k = (l>>1)+xoff;
						x1 -= mulscale16(dax,k); x2 = x1+mulscale16(dax,l);
						y1 -= mulscale16(day,k); y2 = y1+mulscale16(day,l);
						if (clipinsideboxline(cx,cy,x1,y1,x2,y2,rad) != 0)
						{
							dax = mulscale14(sintable[(spr->ang+256+512)&2047],walldist);
							day = mulscale14(sintable[(spr->ang+256)&2047],walldist);

							if ((x1-(*x))*(y2-(*y)) >= (x2-(*x))*(y1-(*y)))   //Front
							{
								addclipline(x1+dax,y1+day,x2+day,y2-dax,(short)j+49152);
							}
							else
							{
								if ((cstat&64) != 0) continue;
								addclipline(x2-dax,y2-day,x1-day,y1+dax,(short)j+49152);
							}

								//Side blocker
							if ((x2-x1)*((*x)-x1) + (y2-y1)*((*y)-y1) < 0)
								{ addclipline(x1-day,y1+dax,x1+dax,y1+day,(short)j+49152); }
							else if ((x1-x2)*((*x)-x2) + (y1-y2)*((*y)-y2) < 0)
								{ addclipline(x2+day,y2-dax,x2-dax,y2-day,(short)j+49152); }
						}
					}
					break;
				case 32:
					daz = spr->z+ceildist;
					daz2 = spr->z-flordist;
					if (((*z) < daz) && ((*z) > daz2))
					{
						if ((cstat&64) != 0)
							if (((*z) > spr->z) == ((cstat&8)==0)) continue;

						tilenum = spr->picnum;
						xoff = (int)((signed char)((picanm[tilenum]>>8)&255))+((int)spr->xoffset);
						yoff = (int)((signed char)((picanm[tilenum]>>16)&255))+((int)spr->yoffset);
						if ((cstat&4) > 0) xoff = -xoff;
						if ((cstat&8) > 0) yoff = -yoff;

						k = spr->ang;
						cosang = sintable[(k+512)&2047]; sinang = sintable[k];
						xspan = tilesizx[tilenum]; xrepeat = spr->xrepeat;
						yspan = tilesizy[tilenum]; yrepeat = spr->yrepeat;

						dax = ((xspan>>1)+xoff)*xrepeat; day = ((yspan>>1)+yoff)*yrepeat;
						rxi[0] = x1 + dmulscale16(sinang,dax,cosang,day);
						ryi[0] = y1 + dmulscale16(sinang,day,-cosang,dax);
						l = xspan*xrepeat;
						rxi[1] = rxi[0] - mulscale16(sinang,l);
						ryi[1] = ryi[0] + mulscale16(cosang,l);
						l = yspan*yrepeat;
						k = -mulscale16(cosang,l); rxi[2] = rxi[1]+k; rxi[3] = rxi[0]+k;
						k = -mulscale16(sinang,l); ryi[2] = ryi[1]+k; ryi[3] = ryi[0]+k;

						dax = mulscale14(sintable[(spr->ang-256+512)&2047],walldist);
						day = mulscale14(sintable[(spr->ang-256)&2047],walldist);

						if ((rxi[0]-(*x))*(ryi[1]-(*y)) < (rxi[1]-(*x))*(ryi[0]-(*y)))
						{
							if (clipinsideboxline(cx,cy,rxi[1],ryi[1],rxi[0],ryi[0],rad) != 0)
								addclipline(rxi[1]-day,ryi[1]+dax,rxi[0]+dax,ryi[0]+day,(short)j+49152);
						}
						else if ((rxi[2]-(*x))*(ryi[3]-(*y)) < (rxi[3]-(*x))*(ryi[2]-(*y)))
						{
							if (clipinsideboxline(cx,cy,rxi[3],ryi[3],rxi[2],ryi[2],rad) != 0)
								addclipline(rxi[3]+day,ryi[3]-dax,rxi[2]-dax,ryi[2]-day,(short)j+49152);
						}

						if ((rxi[1]-(*x))*(ryi[2]-(*y)) < (rxi[2]-(*x))*(ryi[1]-(*y)))
						{
							if (clipinsideboxline(cx,cy,rxi[2],ryi[2],rxi[1],ryi[1],rad) != 0)
								addclipline(rxi[2]-dax,ryi[2]-day,rxi[1]-day,ryi[1]+dax,(short)j+49152);
						}
						else if ((rxi[3]-(*x))*(ryi[0]-(*y)) < (rxi[0]-(*x))*(ryi[3]-(*y)))
						{
							if (clipinsideboxline(cx,cy,rxi[0],ryi[0],rxi[3],ryi[3],rad) != 0)
								addclipline(rxi[0]+dax,ryi[0]+day,rxi[3]+day,ryi[3]-dax,(short)j+49152);
						}
					}
					break;
			}
		}
	} while (clipsectcnt < clipsectnum);


	hitwall = 0;
	cnt = clipmoveboxtracenum;
	do
	{
		intx = goalx; inty = goaly;
		if ((hitwall = raytrace(*x, *y, &intx, &inty)) >= 0)
		{
			lx = clipit[hitwall].x2-clipit[hitwall].x1;
			ly = clipit[hitwall].y2-clipit[hitwall].y1;
			templong2 = lx*lx + ly*ly;
			if (templong2 > 0)
			{
				templong1 = (goalx-intx)*lx + (goaly-inty)*ly;

				if ((klabs(templong1)>>11) < templong2)
					i = divscale20(templong1,templong2);
				else
					i = 0;
				goalx = mulscale20(lx,i)+intx;
				goaly = mulscale20(ly,i)+inty;
			}

			templong1 = dmulscale6(lx,oxvect,ly,oyvect);
			for(i=cnt+1;i<=clipmoveboxtracenum;i++)
			{
				j = hitwalls[i];
				templong2 = dmulscale6(clipit[j].x2-clipit[j].x1,oxvect,clipit[j].y2-clipit[j].y1,oyvect);
				if ((templong1^templong2) < 0)
				{
					updatesector(*x,*y,sectnum);
					return(retval);
				}
			}

			keepaway(&goalx, &goaly, hitwall);
			xvect = ((goalx-intx)<<14);
			yvect = ((goaly-inty)<<14);

			if (cnt == clipmoveboxtracenum) retval = clipobjectval[hitwall];
			hitwalls[cnt] = hitwall;
		}
		cnt--;

		*x = intx;
		*y = inty;
	} while (((xvect|yvect) != 0) && (hitwall >= 0) && (cnt > 0));

	for(j=0;j<clipsectnum;j++)
		if (inside(*x,*y,clipsectorlist[j]) == 1)
		{
			*sectnum = clipsectorlist[j];
			return(retval);
		}

	*sectnum = -1; templong1 = 0x7fffffff;
	for(j=numsectors-1;j>=0;j--)
		if (inside(*x,*y,j) == 1)
		{
			if (sector[j].ceilingstat&2)
				templong2 = (getceilzofslope((short)j,*x,*y)-(*z));
			else
				templong2 = (sector[j].ceilingz-(*z));

			if (templong2 > 0)
			{
				if (templong2 < templong1)
					{ *sectnum = j; templong1 = templong2; }
			}
			else
			{
				if (sector[j].floorstat&2)
					templong2 = ((*z)-getflorzofslope((short)j,*x,*y));
				else
					templong2 = ((*z)-sector[j].floorz);

				if (templong2 <= 0)
				{
					*sectnum = j;
					return(retval);
				}
				if (templong2 < templong1)
					{ *sectnum = j; templong1 = templong2; }
			}
		}

	return(retval);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rsi, 0x108(%rsp)
movq %rdi, 0xf8(%rsp)
xorl %eax, %eax
movl %r9d, 0xb8(%rsp)
movl %r9d, %esi
orl %r8d, %esi
je 0x3aacd
movzwl (%rcx), %r10d
testw %r10w, %r10w
js 0x3aacd
movq %rcx, 0xf0(%rsp)
movq 0xf8(%rsp), %rcx
movl (%rcx), %esi
movl %r8d, 0xe4(%rsp)
movl %r8d, %edi
sarl $0xe, %edi
movq %rdx, 0xd8(%rsp)
leal (%rsi,%rdi), %edx
movq 0x108(%rsp), %rcx
movl (%rcx), %r8d
movl 0xb8(%rsp), %ecx
movl %ecx, %r9d
sarl $0xe, %r9d
leal (%r8,%r9), %ecx
movq %rdx, 0xc0(%rsp)
movq %rsi, 0x90(%rsp)
leal (%rdx,%rsi), %r11d
sarl %r11d
movq %rcx, 0x100(%rsp)
leal (%rcx,%r8), %ebx
sarl %ebx
movl %edi, %ecx
imull %edi, %ecx
movl %r9d, %edx
imull %edx, %edx
addl %ecx, %edx
movl %edx, %ecx
shrl $0x18, %ecx
orl $0x1000, %ecx           # imm = 0x1000
movl %edx, %esi
shrl $0xc, %esi
cmpl $0x1000000, %edx        # imm = 0x1000000
cmovael %ecx, %esi
leaq 0x41d1f4(%rip), %rcx    # 0x455f00
movzwl (%rcx,%rsi,2), %ecx
shrl %cl, %edx
leaq 0x41f3e7(%rip), %rsi    # 0x458100
movzwl (%rsi,%rdx,2), %edx
shrl $0x8, %ecx
shrl %cl, %edx
movl 0x198(%rsp), %esi
movl 0x180(%rsp), %r14d
leal (%r14,%rdx), %ecx
addl %r14d, %edx
addl $0x408, %edx            # imm = 0x408
movl %r11d, %ebp
subl %edx, %ebp
movl %ebx, %r15d
movq %rdx, 0xc8(%rsp)
subl %edx, %r15d
movw %r10w, 0x3f87e7(%rip)   # 0x431540
movq %r11, 0xd0(%rsp)
leal (%r11,%rcx), %eax
addl $0x408, %eax            # imm = 0x408
movq %rbx, 0x98(%rsp)
addl %ecx, %ebx
addl $0x408, %ebx            # imm = 0x408
movl %esi, %ecx
movl %r15d, %esi
shrl $0x10, %ecx
movl %r14d, %edx
negl %edx
movq %rdi, 0x120(%rsp)
testl %edi, %edi
movl %eax, %edi
movl %r14d, %r13d
cmovsl %edx, %r13d
movq %r9, 0x118(%rsp)
testl %r9d, %r9d
movl %ebp, %r9d
movl %ecx, %ebp
movl %r14d, %eax
movl %edx, 0xe8(%rsp)
cmovsl %edx, %eax
movq %rax, 0x130(%rsp)
movl 0x190(%rsp), %r11d
movl 0x188(%rsp), %eax
leal -0x1(%rax), %eax
movl %eax, 0x110(%rsp)
movslq %r14d, %rax
movq %rax, 0x128(%rsp)
movw $0x1, %ax
movl %eax, 0xbc(%rsp)
movq $0x0, 0x78(%rsp)
leaq 0x243eb2(%rip), %rdx    # 0x27ccb0
movq %rax, 0x60(%rsp)
movq %rax, 0x48(%rsp)
movq %rax, 0xa0(%rsp)
xorl %eax, %eax
movq $0x0, 0x70(%rsp)
movl %r9d, 0x40(%rsp)
movl %r15d, 0x20(%rsp)
movl %edi, 0x38(%rsp)
movl %ebx, 0xc(%rsp)
movl %ecx, 0x50(%rsp)
movq %r13, 0x138(%rsp)
movq %rax, 0x140(%rsp)
leaq 0x3f86f8(%rip), %rcx    # 0x431540
movswq (%rcx,%rax,2), %rax
movq %rax, 0xa8(%rsp)
leaq (%rax,%rax,4), %rax
leaq 0x20ac00(%rip), %rcx    # 0x243a60
movswl 0x2(%rcx,%rax,8), %r10d
testl %r10d, %r10d
jle 0x39559
movswl (%rcx,%rax,8), %r15d
addl %r15d, %r10d
movslq %r15d, %r12
shlq $0x5, %r12
leaq 0x17fbcb(%rip), %rax    # 0x1b8a50
addq %rax, %r12
movzwl 0x17fbad(%rip), %eax    # 0x1b8a3c
movw %ax, 0x34(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x58(%rsp)
movl %r10d, 0x10(%rsp)
movswq 0x8(%r12), %rax
shlq $0x5, %rax
leaq 0x17fb9c(%rip), %rcx    # 0x1b8a50
addq %rcx, %rax
movl (%r12), %r13d
cmpl %r9d, %r13d
jge 0x38ec9
cmpl %r9d, (%rax)
jl 0x39097
cmpl %edi, %r13d
jle 0x38ed6
cmpl %edi, (%rax)
jg 0x39097
movl 0x4(%r12), %r14d
cmpl %esi, %r14d
jge 0x38ee9
cmpl %esi, 0x4(%rax)
jl 0x39097
movl 0x4(%rax), %ecx
cmpl %ebx, %r14d
jle 0x38ef9
cmpl %ebx, %ecx
jg 0x39097
movl (%rax), %eax
movq %rax, 0x68(%rsp)
movl %eax, %ebx
subl %r13d, %ebx
movq %rcx, 0x18(%rsp)
movl %ecx, %ebp
subl %r14d, %ebp
movl %r8d, %eax
subl %r14d, %eax
imull %ebx, %eax
movq 0x90(%rsp), %rcx
subl %r13d, %ecx
imull %ebp, %ecx
cmpl %ecx, %eax
jl 0x3908f
testl %ebx, %ebx
movl 0xc(%rsp), %eax
cmovgl %esi, %eax
subl %r14d, %eax
imull %ebx, %eax
movl %eax, 0x8c(%rsp)
testl %ebp, %ebp
movl %r9d, %ecx
cmovgl %edi, %ecx
subl %r13d, %ecx
imull %ebp, %ecx
movl %ecx, 0x88(%rsp)
movq %rax, 0x48(%rsp)
movq %rcx, 0x60(%rsp)
cmpl %ecx, %eax
jge 0x3908f
movzwl 0xc(%r12), %eax
movq %rax, 0x80(%rsp)
testw %ax, %ax
js 0x38f91
movzwl 0xe(%r12), %eax
testl %eax, 0x198(%rsp)
je 0x390ac
movswl 0x58(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
jg 0x3904b
movq %r8, 0x28(%rsp)
movl %r13d, %edx
movq 0x138(%rsp), %r11
subl %r11d, %edx
movq 0x58(%rsp), %rcx
movswq %cx, %rsi
movl %r15d, %edi
xorl $0x8000, %edi           # imm = 0x8000
leaq 0x3fcd73(%rip), %r8     # 0x435d40
movl %edi, 0x80(%rsp)
movw %di, (%r8,%rsi,2)
shlq $0x4, %rsi
leaq 0x3f8d5c(%rip), %r9     # 0x431d40
movl %edx, (%rsi,%r9)
movl %r14d, %edi
subl %r11d, %edi
movl %edi, 0x4(%rsi,%r9)
movl %edx, 0x8(%rsi,%r9)
leal (%r14,%r11), %edx
movl %edx, 0xc(%rsi,%r9)
leal 0x1(%rcx), %edi
movzwl %cx, %edx
movw $0x400, %si             # imm = 0x400
movq %rsi, 0x70(%rsp)
cmpl $0x3ff, %edx            # imm = 0x3FF
jne 0x3912f
movq %rdi, 0x78(%rsp)
movw $0x400, %ax             # imm = 0x400
movq %rax, 0x58(%rsp)
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0x190(%rsp), %r11d
leaq 0x243c65(%rip), %rdx    # 0x27ccb0
testl %ebp, %ebp
movl 0x180(%rsp), %eax
movl %eax, %r10d
movl 0xe8(%rsp), %ecx
cmovgl %ecx, %r10d
movq %r10, 0x48(%rsp)
movl %r10d, 0x8c(%rsp)
testl %ebx, %ebx
cmovsl %ecx, %eax
movq %rax, 0x60(%rsp)
movl %eax, 0x88(%rsp)
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
movl 0x10(%rsp), %r10d
jmp 0x39097
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
incl %r15d
addq $0x20, %r12
cmpl %r10d, %r15d
jl 0x38ea3
jmp 0x39559
cmpw $0x0, 0x34(%rsp)
jne 0x39407
subq $0x8, %rsp
movq 0x98(%rsp), %rdi
movl %r8d, %esi
xorl %edx, %edx
movq 0x128(%rsp), %rcx
movq %r8, 0x30(%rsp)
movq 0x120(%rsp), %r8
xorl %r9d, %r9d
leaq 0xf4(%rsp), %rax
pushq %rax
leaq 0x98(%rsp), %rax
pushq %rax
leaq 0xa4(%rsp), %rax
pushq %rax
pushq 0x38(%rsp)
pushq 0x90(%rsp)
pushq %r14
pushq %r13
callq 0x3838a
addq $0x40, %rsp
testl %eax, %eax
je 0x39267
movl 0x8c(%rsp), %eax
movl 0x88(%rsp), %ecx
jmp 0x39282
movl %edx, 0x48(%rsp)
movq 0x68(%rsp), %rdx
movl %edx, %esi
subl %r11d, %esi
movswq %di, %rdi
movl 0x80(%rsp), %edx
movw %dx, (%r8,%rdi,2)
shlq $0x4, %rdi
movl %esi, (%rdi,%r9)
movq 0x18(%rsp), %rdx
movl %edx, %r8d
subl %r11d, %r8d
movl %r8d, 0x4(%rdi,%r9)
movl %esi, 0x8(%rdi,%r9)
leal (%rdx,%r11), %esi
movl %esi, 0xc(%rdi,%r9)
leal 0x2(%rcx), %edi
cmpl $0x3fe, %eax            # imm = 0x3FE
jl 0x391f4
movq %rdi, 0x78(%rsp)
testl %ebp, %ebp
movl 0x180(%rsp), %eax
movl %eax, %edx
movl 0xe8(%rsp), %ecx
cmovgl %ecx, %edx
testl %ebx, %ebx
cmovsl %ecx, %eax
movq %rdx, 0x48(%rsp)
movl %edx, 0x8c(%rsp)
movq %rax, 0x60(%rsp)
movl %eax, 0x88(%rsp)
movw $0x400, %ax             # imm = 0x400
movq %rax, 0x70(%rsp)
movw $0x400, %ax             # imm = 0x400
movq %rax, 0x58(%rsp)
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
movl 0x190(%rsp), %r11d
leaq 0x243ac1(%rip), %rdx    # 0x27ccb0
jmp 0x39097
movq %rcx, %rdx
movq 0x130(%rsp), %r11
leal (%r11,%r13), %esi
movswq %di, %rdi
leaq 0x3fcb32(%rip), %r8     # 0x435d40
movl 0x80(%rsp), %ecx
movw %cx, (%r8,%rdi,2)
movq %r8, %rcx
shlq $0x4, %rdi
leaq 0x3f8b18(%rip), %r9     # 0x431d40
movl %esi, (%rdi,%r9)
movl %r14d, %esi
subl %r11d, %esi
movl %esi, 0x4(%rdi,%r9)
movl %r13d, %r8d
subl %r11d, %r8d
movl %r8d, 0x8(%rdi,%r9)
movl %esi, 0xc(%rdi,%r9)
movq %rdx, 0x58(%rsp)
leal 0x3(%rdx), %esi
cmpl $0x3fd, 0x48(%rsp)      # imm = 0x3FD
jne 0x39468
movq %rsi, 0x78(%rsp)
jmp 0x39021
movq 0x90(%rsp), %rax
movl %eax, 0x8c(%rsp)
movq 0x28(%rsp), %rcx
movl %ecx, 0x88(%rsp)
movq 0xa8(%rsp), %rdi
movq %rax, %rsi
movq %rax, 0x48(%rsp)
movq %rcx, %rdx
movq %rcx, 0x60(%rsp)
callq 0x3aaf4
movq %rax, 0xa0(%rsp)
movl %eax, 0xec(%rsp)
movswq 0xc(%r12), %rdi
movq %rdi, 0x80(%rsp)
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x3aaf4
movq 0x80(%rsp), %rcx
leaq (%rcx,%rcx,4), %rcx
leaq 0x20a782(%rip), %rdx    # 0x243a60
leaq (%rdx,%rcx,8), %rcx
movq %rcx, 0xb0(%rsp)
movq 0xa0(%rsp), %rcx
addl $0xffffff00, %ecx       # imm = 0xFFFFFF00
cmpl %ecx, %eax
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0x190(%rsp), %r11d
leaq 0x243995(%rip), %rdx    # 0x27ccb0
movl 0x10(%rsp), %r10d
jge 0x39345
movq 0xb0(%rsp), %rcx
testb $0x1, 0xe(%rcx)
jne 0x39345
subl %r11d, %eax
incl %eax
movq 0xd8(%rsp), %rcx
cmpl %eax, (%rcx)
jge 0x38f91
movq 0xa8(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x3abce
movq %rax, 0xa0(%rsp)
movl %eax, 0xec(%rsp)
movswl 0x80(%rsp), %edi
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x3abce
movq 0xa0(%rsp), %rcx
addl $0x100, %ecx            # imm = 0x100
cmpl %ecx, %eax
jle 0x393e1
movq 0xb0(%rsp), %rcx
testb $0x1, 0xc(%rcx)
movq 0xd8(%rsp), %rcx
jne 0x393e1
addl 0x110(%rsp), %eax
cmpl %eax, (%rcx)
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0x190(%rsp), %r11d
leaq 0x2438dc(%rip), %rdx    # 0x27ccb0
movl 0x10(%rsp), %r10d
jle 0x38f91
jmp 0x39407
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0x190(%rsp), %r11d
leaq 0x2438ae(%rip), %rdx    # 0x27ccb0
movl 0x10(%rsp), %r10d
movswq 0xbc(%rsp), %rax
movl %eax, %ecx
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
movq 0x80(%rsp), %r14
testl %ecx, %ecx
jle 0x3944d
leaq -0x1(%rcx), %rdx
leaq 0x3f810f(%rip), %r10    # 0x431540
cmpw -0x2(%r10,%rcx,2), %r14w
movl 0x10(%rsp), %r10d
movq %rdx, %rcx
leaq 0x24386a(%rip), %rdx    # 0x27ccb0
jne 0x39422
jmp 0x39097
leal 0x1(%rax), %ecx
movl %ecx, 0xbc(%rsp)
leaq 0x3f80e2(%rip), %rcx    # 0x431540
movw %r14w, (%rcx,%rax,2)
jmp 0x39097
movq %rcx, %rdi
movswq %si, %rdx
movl 0x80(%rsp), %ecx
movw %cx, (%rdi,%rdx,2)
shlq $0x4, %rdx
movq 0x18(%rsp), %rcx
movl %ecx, %esi
subl %r11d, %esi
movq 0x68(%rsp), %rcx
movl %ecx, %edi
subl %r11d, %edi
testl %ebp, %ebp
leal (%r11,%rcx), %r8d
movq %rcx, %r11
movl %r8d, (%rdx,%r9)
movl %esi, 0x4(%rdx,%r9)
movl %edi, 0x8(%rdx,%r9)
movq 0x58(%rsp), %rcx
leal 0x4(%rcx), %edi
movl %esi, 0xc(%rdx,%r9)
movl 0x180(%rsp), %edx
movl %edx, %r8d
movl 0xe8(%rsp), %esi
cmovgl %esi, %r8d
testl %ebx, %ebx
cmovsl %esi, %edx
movl %r8d, 0x8c(%rsp)
movl %edx, 0x88(%rsp)
movw $0x400, %si             # imm = 0x400
movq %rsi, 0x70(%rsp)
cmpl $0x3fb, %eax            # imm = 0x3FB
movq %r8, 0x48(%rsp)
movq %rdx, 0x60(%rsp)
jg 0x3954f
addl %r8d, %r13d
movswq %di, %rax
movl 0x80(%rsp), %esi
leaq 0x3fc832(%rip), %rdi    # 0x435d40
movw %si, (%rdi,%rax,2)
shlq $0x4, %rax
movl %r13d, (%rax,%r9)
addl %edx, %r14d
movl %r14d, 0x4(%rax,%r9)
addl %r8d, %r11d
movl %r11d, 0x8(%rax,%r9)
movq 0x18(%rsp), %rsi
addl %edx, %esi
movl %esi, 0xc(%rax,%r9)
addl $0x5, %ecx
movl %ecx, %eax
movq %rax, 0x78(%rsp)
movq %rcx, 0x58(%rsp)
movq %rax, 0x70(%rsp)
jmp 0x391c6
movq %rdi, 0x78(%rsp)
jmp 0x391bd
leaq 0x372fb0(%rip), %rax    # 0x3ac510
movq 0xa8(%rsp), %rcx
movzwl (%rax,%rcx,2), %eax
testw %ax, %ax
js 0x3a3b3
movq 0x70(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movzwl %ax, %r15d
imulq $0x2c, %r15, %rax
movzwl 0xc(%rax,%rdx), %r12d
testl %r12d, %ebp
je 0x3a18a
movq %r15, 0x10(%rsp)
addq %rdx, %rax
movl (%rax), %r13d
movl 0x4(%rax), %r15d
movl %r12d, %ecx
shrl $0x4, %ecx
andl $0x3, %ecx
leaq 0x3d9ab(%rip), %r10     # 0x76f60
movslq (%r10,%rcx,4), %rcx
addq %r10, %rcx
jmpq *%rcx
cmpl %r9d, %r13d
jl 0x3a185
cmpl %edi, %r13d
jg 0x3a185
movq %r15, %rcx
cmpl %esi, %ecx
jl 0x3a185
cmpl %ebx, %ecx
jg 0x3a185
movswq 0xe(%rax), %rsi
leaq 0x3c81f1(%rip), %rcx    # 0x4017e0
movswl (%rcx,%rsi,2), %ecx
movzbl 0x15(%rax), %edx
imull %edx, %ecx
movsbl %r12b, %edi
sarl $0x7, %edi
leal (%rcx,%rcx), %r10d
andl %edi, %r10d
addl 0x8(%rax), %r10d
leaq 0x20144d(%rip), %rdi    # 0x23aa60
movl (%rdi,%rsi,4), %esi
testl $0xff0000, %esi         # imm = 0xFF0000
je 0x3962e
shrl $0x10, %esi
movsbl %sil, %esi
imull %esi, %edx
shll $0x2, %edx
subl %edx, %r10d
movq 0xd8(%rsp), %rdx
movl (%rdx), %edx
movl 0x188(%rsp), %esi
addl %r10d, %esi
cmpl %esi, %edx
movl 0x38(%rsp), %edi
movq %r10, 0xa0(%rsp)
jge 0x399ef
leal (%r11,%rcx,4), %ecx
movl %r10d, %esi
subl %ecx, %esi
cmpl %esi, %edx
jle 0x399ef
movswl 0x18(%rsp), %ecx
cmpl $0x3ff, %ecx            # imm = 0x3FF
jg 0x399ef
movq %r8, %rbp
movzbl 0x12(%rax), %eax
movl 0x180(%rsp), %ecx
leal (%rcx,%rax,4), %eax
movl %eax, %ecx
negl %ecx
cmpl $0x0, 0x120(%rsp)
movl %eax, %esi
cmovsl %ecx, %esi
movl %r13d, %edi
subl %esi, %edi
movq 0x18(%rsp), %r10
movswq %r10w, %r8
movq 0x10(%rsp), %rdx
addl $0xffffc000, %edx       # imm = 0xFFFFC000
leaq 0x3fc686(%rip), %r12    # 0x435d40
movw %dx, (%r12,%r8,2)
shlq $0x4, %r8
leaq 0x3f8676(%rip), %rbx    # 0x431d40
movl %edi, (%r8,%rbx)
movl %r15d, %r9d
subl %esi, %r9d
movl %r9d, 0x4(%r8,%rbx)
movl %edi, 0x8(%r8,%rbx)
addl %r15d, %esi
movl %esi, 0xc(%r8,%rbx)
leal 0x1(%r10), %edi
movzwl %r10w, %esi
movw $0x400, %r8w            # imm = 0x400
movq %r8, 0x70(%rsp)
cmpl $0x3ff, %esi            # imm = 0x3FF
jne 0x3a119
movq %rdi, 0x78(%rsp)
movw $0x400, %ax             # imm = 0x400
movq %rax, 0x18(%rsp)
jmp 0x3a166
movq %r8, 0x28(%rsp)
movswq 0xe(%rax), %rcx
leaq 0x3c80b8(%rip), %rdx    # 0x4017e0
movswl (%rdx,%rcx,2), %edx
movzbl 0x15(%rax), %r8d
imull %r8d, %edx
movsbl %r12b, %esi
sarl $0x7, %esi
leal (%rdx,%rdx), %edi
andl %esi, %edi
addl 0x8(%rax), %edi
leaq 0x201315(%rip), %rsi    # 0x23aa60
movl (%rsi,%rcx,4), %esi
testl $0xff0000, %esi         # imm = 0xFF0000
je 0x39771
movl %esi, %r9d
shrl $0x10, %r9d
movsbl %r9b, %r9d
imull %r9d, %r8d
movl 0x40(%rsp), %r9d
shll $0x2, %r8d
subl %r8d, %edi
movl 0x188(%rsp), %r8d
leal (%rdi,%r8), %r10d
movq 0xd8(%rsp), %r8
movl (%r8), %r8d
movq %r10, 0xa0(%rsp)
cmpl %r10d, %r8d
jge 0x399dd
leal (%r11,%rdx,4), %edx
subl %edx, %edi
cmpl %edi, %r8d
jle 0x399dd
shrl $0x8, %esi
movsbl %sil, %edx
movsbl 0x16(%rax), %esi
addl %edx, %esi
movl %esi, %edx
negl %edx
testb $0x4, %r12b
cmovel %esi, %edx
movzwl 0x1c(%rax), %ebp
movzbl 0x14(%rax), %eax
movl %ebp, %esi
movl $0x7ff, %r8d            # imm = 0x7FF
andl %r8d, %esi
leaq 0x395576(%rip), %rdi    # 0x3ced50
movswq (%rdi,%rsi,2), %rbx
imulq %rax, %rbx
leal 0x600(%rbp), %esi
andl %r8d, %esi
movswq (%rdi,%rsi,2), %r14
imulq %rax, %r14
leaq 0x3d6824(%rip), %rax    # 0x410020
movswq (%rax,%rcx,2), %rsi
movl %esi, %eax
sarl %eax
addl %edx, %eax
cltq
movq %rax, %rcx
imulq %rbx, %rcx
shrq $0x10, %rcx
subl %ecx, %r13d
movq %rsi, %rcx
imulq %rbx, %rcx
shrq $0x10, %rcx
movq %rcx, 0x80(%rsp)
leal (%rcx,%r13), %r8d
imulq %r14, %rax
shrq $0x10, %rax
movq %r13, %rdx
movq %r15, %r13
subl %eax, %r13d
imulq %r14, %rsi
shrq $0x10, %rsi
movq %rsi, 0x58(%rsp)
leal (%rsi,%r13), %r15d
subq $0x8, %rsp
movq 0xd8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq %rdx, 0x70(%rsp)
movl %r13d, %ecx
movq %r8, 0xb0(%rsp)
movl %r15d, %r9d
pushq 0xd0(%rsp)
callq 0x3671e
addq $0x10, %rsp
testl %eax, %eax
je 0x39e07
leal 0x300(%rbp), %eax
movl $0x7ff, %edx            # imm = 0x7FF
andl %edx, %eax
leaq 0x3954ad(%rip), %rsi    # 0x3ced50
movswq (%rsi,%rax,2), %rcx
movq 0x128(%rsp), %rax
imulq %rax, %rcx
shrq $0xe, %rcx
movq %rcx, 0x48(%rsp)
addl $0x100, %ebp            # imm = 0x100
andl %edx, %ebp
movswq (%rsi,%rbp,2), %rbx
imulq %rax, %rbx
shrq $0xe, %rbx
movq 0x68(%rsp), %rax
movl %eax, %edx
movq 0x90(%rsp), %rsi
subl %esi, %edx
movl %r15d, 0x34(%rsp)
movl %r15d, %eax
movq 0x28(%rsp), %r8
subl %r8d, %eax
imull %eax, %edx
movq 0xa8(%rsp), %r14
movl %r14d, %ecx
subl %esi, %ecx
movl %r13d, %esi
subl %r8d, %esi
imull %ecx, %esi
cmpl %esi, %edx
movl 0x40(%rsp), %r9d
movl 0x38(%rsp), %edi
movq %rbx, 0x60(%rsp)
movq 0x10(%rsp), %r15
jge 0x3a079
testb $0x40, %r12b
movl 0x50(%rsp), %ebp
jne 0x3a1cb
movswl 0x18(%rsp), %edx
cmpl $0x3ff, %edx            # imm = 0x3FF
movl 0x190(%rsp), %r11d
jg 0x3a1e1
movl %r14d, %esi
movq 0x48(%rsp), %r10
subl %r10d, %esi
movswq 0x18(%rsp), %rdx
movq %rdx, %rdi
shlq $0x4, %rdi
leaq 0x3f83d3(%rip), %r8     # 0x431d40
movl %esi, (%rdi,%r8)
movl 0x34(%rsp), %esi
subl %ebx, %esi
movl %esi, 0x4(%rdi,%r8)
movq 0x68(%rsp), %rsi
subl %ebx, %esi
movl %esi, 0x8(%rdi,%r8)
leal (%r10,%r13), %esi
jmp 0x3a0d5
movl 0x8(%rax), %ecx
movl 0x188(%rsp), %edx
leal (%rcx,%rdx), %esi
movq 0xd8(%rsp), %rdx
movl (%rdx), %edx
movq %rsi, 0xa0(%rsp)
cmpl %esi, %edx
setl %sil
movl %ecx, %edi
subl %r11d, %edi
cmpl %edi, %edx
setg %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x399e2
testb $0x40, %r12b
jne 0x399f8
movl %r12d, %ecx
andl $0x8, %ecx
movl $0x7ff, %ebp            # imm = 0x7FF
jmp 0x39a15
movq 0x28(%rsp), %r8
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
jmp 0x3a17e
movl 0x20(%rsp), %esi
jmp 0x3a17e
cmpl %ecx, %edx
setg %dl
movl %r12d, %ecx
andl $0x8, %ecx
sete %sil
cmpb %dl, %sil
movl $0x7ff, %ebp            # imm = 0x7FF
je 0x39dfa
movswq 0xe(%rax), %rdi
leaq 0x20103f(%rip), %rdx    # 0x23aa60
movl (%rdx,%rdi,4), %edx
movl %edx, %esi
shrl $0x8, %esi
movsbl %sil, %esi
movsbl 0x16(%rax), %r8d
addl %esi, %r8d
shrl $0x10, %edx
movsbl %dl, %edx
movsbl 0x17(%rax), %esi
addl %edx, %esi
movl %r8d, %r10d
negl %r10d
testb $0x4, %r12b
cmovel %r8d, %r10d
movl %esi, %r9d
negl %r9d
testl %ecx, %ecx
cmovel %esi, %r9d
movswq 0x1c(%rax), %rcx
leal 0x200(%rcx), %edx
andl %ebp, %edx
leaq 0x3952e1(%rip), %r12    # 0x3ced50
movswq (%r12,%rdx,2), %rsi
movswq (%r12,%rcx,2), %rdx
leaq 0x3d65a0(%rip), %r8     # 0x410020
movswq (%r8,%rdi,2), %r8
movzbl 0x14(%rax), %ebp
leaq 0x3c7d50(%rip), %r11    # 0x4017e0
movswq (%r11,%rdi,2), %rdi
movzbl 0x15(%rax), %eax
movl %r8d, %r11d
sarl %r11d
addl %r10d, %r11d
movslq %r11d, %r10
imulq %rbp, %r10
movl %edi, %r11d
sarl %r11d
addl %r9d, %r11d
movq %r13, %r14
movslq %r11d, %r13
imulq %rax, %r13
movq %r10, %r11
imulq %rdx, %r11
movq %r13, %rbx
imulq %rsi, %rbx
addq %r11, %rbx
shrq $0x10, %rbx
addl %ebx, %r14d
movl %r14d, 0x3fca65(%rip)   # 0x436540
imulq %rdx, %r13
imulq %rsi, %r10
subq %r10, %r13
shrq $0x10, %r13
movq %r15, %r9
addl %r13d, %r9d
movq %r14, %r13
movl %r9d, 0x3fca66(%rip)    # 0x436560
imulq %r8, %rbp
movq %rbp, %r8
imulq %rdx, %r8
shrq $0x10, %r8
movl %r13d, %r11d
subl %r8d, %r11d
movl %r11d, 0x3fca2e(%rip)   # 0x436544
imulq %rsi, %rbp
shrq $0x10, %rbp
addl %r9d, %ebp
movl %ebp, 0x3fca3d(%rip)    # 0x436564
imulq %rdi, %rax
imulq %rax, %rsi
shrq $0x10, %rsi
movl %r11d, %edi
subl %esi, %edi
movl %edi, 0x3fca0a(%rip)    # 0x436548
subl %esi, %r14d
movl %r14d, 0x3fca04(%rip)   # 0x43654c
imulq %rdx, %rax
shrq $0x10, %rax
movl %ebp, %r8d
subl %eax, %r8d
movl %r8d, 0x3fca0b(%rip)    # 0x436568
movl %r9d, %r10d
subl %eax, %r10d
movl %r10d, 0x3fca02(%rip)   # 0x43656c
leal 0x100(%rcx), %eax
movl $0x7ff, %esi            # imm = 0x7FF
andl %esi, %eax
movswq (%r12,%rax,2), %rax
movq 0x128(%rsp), %rdx
imulq %rdx, %rax
shrq $0xe, %rax
movq %rax, 0x48(%rsp)
leal 0x700(%rcx), %eax
andl %esi, %eax
movswq (%r12,%rax,2), %rax
imulq %rdx, %rax
shrq $0xe, %rax
movq %rax, 0x60(%rsp)
movq 0xf8(%rsp), %rax
movl (%rax), %esi
movl %r13d, %ecx
subl %esi, %ecx
movq 0x108(%rsp), %rax
movl (%rax), %r15d
movl %ebp, %r12d
subl %r15d, %r12d
movl %r12d, %eax
movl %ecx, 0x114(%rsp)
imull %ecx, %eax
movl %r11d, %edx
subl %esi, %edx
movl %r9d, %ebx
subl %r15d, %ebx
movl %ebx, %ecx
movl %edx, 0x80(%rsp)
imull %edx, %ecx
cmpl %ecx, %eax
movq %r15, 0x28(%rsp)
movq %rsi, 0x90(%rsp)
movl %edi, 0x58(%rsp)
movl %r8d, 0xa8(%rsp)
jge 0x39cc7
movl %r10d, 0x34(%rsp)
movq %r14, 0xb0(%rsp)
subq $0x8, %rsp
movq 0xd8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movl %r11d, %r14d
movl %r11d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
movq %r9, %r15
pushq 0xd0(%rsp)
callq 0x3671e
addq $0x10, %rsp
testl %eax, %eax
je 0x39e38
movswl 0x18(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
leaq 0x3f80d8(%rip), %rsi    # 0x431d40
leaq 0x3fc0d1(%rip), %rdi    # 0x435d40
jg 0x39e38
movl %r14d, %r11d
movl %r14d, %ecx
movq 0x60(%rsp), %r10
subl %r10d, %ecx
movswq 0x18(%rsp), %rax
movq %rax, %rdx
shlq $0x4, %rdx
movl %ecx, (%rdx,%rsi)
movq 0x48(%rsp), %r8
leal (%r8,%rbp), %ecx
movl %ecx, 0x4(%rdx,%rsi)
leal (%r13,%r8), %ecx
movl %ecx, 0x8(%rdx,%rsi)
movq %r15, %r9
leal (%r15,%r10), %ecx
movq 0x28(%rsp), %r8
movq 0x10(%rsp), %r15
movq 0xb0(%rsp), %r14
jmp 0x39db6
movq %r13, 0x68(%rsp)
movl %edi, %eax
subl %esi, %eax
movl %r10d, %ecx
subl %r15d, %ecx
imull %eax, %ecx
movl %r14d, %eax
subl %esi, %eax
movl %r8d, %edx
subl %r15d, %edx
imull %eax, %edx
cmpl %edx, %ecx
jge 0x39e63
movl %r8d, %eax
movq %r14, %rdx
movl %r11d, %r14d
movq %r9, %r15
subq $0x8, %rsp
movl %edi, %r8d
movq 0xd8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq %rdx, 0xb8(%rsp)
movl %r10d, 0x3c(%rsp)
movl %r10d, %ecx
movl %eax, %r9d
pushq 0xd0(%rsp)
callq 0x3671e
addq $0x10, %rsp
testl %eax, %eax
je 0x3a365
movswl 0x18(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
leaq 0x3f7ff2(%rip), %rsi    # 0x431d40
leaq 0x3fbfeb(%rip), %rdi    # 0x435d40
movq %r15, %r9
movl %r14d, %r11d
movq 0x68(%rsp), %r13
jg 0x3a344
movq 0x60(%rsp), %r10
movq 0xb0(%rsp), %r14
leal (%r14,%r10), %ecx
movswq 0x18(%rsp), %rax
movq %rax, %rdx
shlq $0x4, %rdx
movl %ecx, (%rdx,%rsi)
movl 0x34(%rsp), %ecx
movq 0x48(%rsp), %r8
subl %r8d, %ecx
movl %ecx, 0x4(%rdx,%rsi)
movl 0x58(%rsp), %ecx
subl %r8d, %ecx
movl %ecx, 0x8(%rdx,%rsi)
movl 0xa8(%rsp), %ecx
subl %r10d, %ecx
movq 0x28(%rsp), %r8
movq 0x10(%rsp), %r15
movq %rax, %rdx
shlq $0x4, %rdx
movl %ecx, 0xc(%rdx,%rsi)
leal -0x4000(%r15), %ecx
movw %cx, (%rdi,%rax,2)
movq 0x18(%rsp), %rcx
incl %ecx
movl %ecx, %eax
movq %rax, 0x78(%rsp)
movq %rcx, 0x18(%rsp)
movq %rax, 0x70(%rsp)
movq 0x90(%rsp), %rsi
movl 0x34(%rsp), %r10d
movl 0x58(%rsp), %edi
movq %r8, %rdx
jmp 0x39e73
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
jmp 0x3a17a
movq %r14, 0x60(%rsp)
movq %rbx, 0x48(%rsp)
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
movl 0x190(%rsp), %r11d
jmp 0x3a17e
movq 0x28(%rsp), %rdx
movq 0x90(%rsp), %rsi
movq %r15, %r9
movq 0x10(%rsp), %r15
movl %r14d, %r11d
movq 0xb0(%rsp), %r14
movl 0x34(%rsp), %r10d
movl 0x58(%rsp), %edi
jmp 0x39e73
movq %r15, %r13
movq 0x10(%rsp), %r15
movq %r13, %rdx
movq 0x68(%rsp), %r13
movl 0xa8(%rsp), %r8d
movl %r8d, %eax
subl %edx, %eax
imull 0x80(%rsp), %eax
movl %edi, %ecx
subl %esi, %ecx
imull %ecx, %r12d
cmpl %r12d, %eax
jge 0x39f6a
subq $0x8, %rsp
movl %edi, %edx
movq 0xd8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movl %r8d, %ecx
movl %r11d, %r12d
movl %r11d, %r8d
movl %ebp, %r9d
pushq 0xd0(%rsp)
callq 0x3671e
addq $0x10, %rsp
testl %eax, %eax
movl 0xc(%rsp), %ebx
je 0x3a1a4
movswl 0x18(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
jg 0x39f60
movq 0x48(%rsp), %r8
movl 0x58(%rsp), %r11d
subl %r8d, %r11d
movq 0x18(%rsp), %r10
movswq %r10w, %rax
leal -0x4000(%r15), %ecx
leaq 0x3fbe2c(%rip), %rdx    # 0x435d40
movw %cx, (%rdx,%rax,2)
shlq $0x4, %rax
leaq 0x3f7e1d(%rip), %rcx    # 0x431d40
movl %r11d, (%rax,%rcx)
movq 0x60(%rsp), %rdx
movl 0xa8(%rsp), %r11d
subl %edx, %r11d
movl %r11d, 0x4(%rax,%rcx)
subl %edx, %r12d
movl %r12d, 0x8(%rax,%rcx)
addl %r8d, %ebp
movl %ebp, 0xc(%rax,%rcx)
leal 0x1(%r10), %eax
movl %eax, %ecx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %r8
jmp 0x3a1b6
movl %r14d, %eax
subl %esi, %eax
imull %eax, %ebx
movl %r10d, %eax
subl %edx, %eax
imull 0x114(%rsp), %eax
cmpl %eax, %ebx
jge 0x3a060
subq $0x8, %rsp
movq 0xd8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movl %r13d, %edx
movq %r9, %r15
movl %r9d, %ecx
movl %r14d, %r8d
movl %r10d, %r12d
movl %r10d, %r9d
pushq 0xd0(%rsp)
callq 0x3671e
addq $0x10, %rsp
testl %eax, %eax
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
je 0x3a393
movswl 0x18(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
jg 0x3a35b
movq 0x48(%rsp), %r8
addl %r8d, %r13d
movq 0x18(%rsp), %r11
movswq %r11w, %rax
movq 0x10(%rsp), %r10
leal -0x4000(%r10), %ecx
leaq 0x3fbd32(%rip), %rdx    # 0x435d40
movw %cx, (%rdx,%rax,2)
shlq $0x4, %rax
leaq 0x3f7d23(%rip), %rcx    # 0x431d40
movl %r13d, (%rax,%rcx)
movq 0x60(%rsp), %rdx
addl %edx, %r15d
movl %r15d, 0x4(%rax,%rcx)
movq %r10, %r15
addl %edx, %r14d
movl %r14d, 0x8(%rax,%rcx)
subl %r8d, %r12d
movl %r12d, 0xc(%rax,%rcx)
leal 0x1(%r11), %eax
movl %eax, %ecx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %r8
jmp 0x3a1ba
movq %rdx, %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0xc(%rsp), %ebx
jmp 0x3a1b6
movswl 0x18(%rsp), %edx
cmpl $0x3ff, %edx            # imm = 0x3FF
jg 0x3a1d5
movq 0x48(%rsp), %r10
movq 0x68(%rsp), %rdx
leal (%rdx,%r10), %esi
movswq 0x18(%rsp), %rdx
movq %rdx, %rdi
shlq $0x4, %rdi
leaq 0x3f7c94(%rip), %r8     # 0x431d40
movl %esi, (%rdi,%r8)
leal (%rbx,%r13), %esi
movl %esi, 0x4(%rdi,%r8)
leal (%r14,%rbx), %esi
movl %esi, 0x8(%rdi,%r8)
movl 0x34(%rsp), %esi
subl %r10d, %esi
movl 0x50(%rsp), %ebp
movl 0x190(%rsp), %r11d
movq %rdx, %rdi
shlq $0x4, %rdi
movl %esi, 0xc(%rdi,%r8)
leal -0x4000(%r15), %esi
leaq 0x3fbc51(%rip), %rdi    # 0x435d40
movw %si, (%rdi,%rdx,2)
movq 0x18(%rsp), %rsi
incl %esi
movl %esi, %edx
movq %rdx, 0x78(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x70(%rsp)
movq 0x28(%rsp), %r8
movl 0x38(%rsp), %edi
jmp 0x3a1e1
cmpl $0x0, 0x118(%rsp)
cmovsl %ecx, %eax
leal (%rax,%r13), %ecx
movswq %di, %rsi
movw %dx, (%r12,%rsi,2)
shlq $0x4, %rsi
movl %ecx, (%rsi,%rbx)
subl %eax, %r15d
movl %r15d, 0x4(%rsi,%rbx)
subl %eax, %r13d
movl %r13d, 0x8(%rsi,%rbx)
movl %r15d, 0xc(%rsi,%rbx)
movq 0x18(%rsp), %rcx
addl $0x2, %ecx
movl %ecx, %eax
movq %rax, 0x78(%rsp)
movq %rcx, 0x18(%rsp)
movq %rax, 0x70(%rsp)
movq %rbp, %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0xc(%rsp), %ebx
movl 0x50(%rsp), %ebp
leaq 0x242b2b(%rip), %rdx    # 0x27ccb0
movq 0x10(%rsp), %r15
leaq 0x37c38f(%rip), %rax    # 0x3b6520
movzwl (%rax,%r15,2), %eax
testw %ax, %ax
jns 0x3957f
jmp 0x3a3b3
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
movl 0x50(%rsp), %ebp
movl 0x190(%rsp), %r11d
leaq 0x242ae7(%rip), %rdx    # 0x27ccb0
jmp 0x3a18a
movl 0x20(%rsp), %esi
movl 0xc(%rsp), %ebx
jmp 0x3a1ba
movl 0x50(%rsp), %ebp
movl 0x190(%rsp), %r11d
movq 0x58(%rsp), %r10
movq 0x80(%rsp), %rbx
movq 0x90(%rsp), %rdx
subl 0x68(%rsp), %edx
imull %ebx, %edx
movl %r8d, %esi
subl %r13d, %esi
imull %r10d, %esi
addl %edx, %esi
js 0x3a2bf
imull %ebx, %ecx
imull %r10d, %eax
addl %ecx, %eax
movl 0x20(%rsp), %esi
leaq 0x242a8d(%rip), %rdx    # 0x27ccb0
jns 0x3a3aa
movswl 0x18(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
movl 0xc(%rsp), %ebx
jg 0x3a18a
movq 0x60(%rsp), %rax
addl %r14d, %eax
movswq 0x18(%rsp), %rcx
leal -0x4000(%r15), %edx
leaq 0x3fbae7(%rip), %rsi    # 0x435d40
movw %dx, (%rsi,%rcx,2)
movl 0x20(%rsp), %esi
shlq $0x4, %rcx
leaq 0x3f7ad4(%rip), %rdx    # 0x431d40
movl %eax, (%rcx,%rdx)
movq %r11, %r12
movl 0x34(%rsp), %r11d
movl %r11d, %eax
movq 0x48(%rsp), %r10
subl %r10d, %eax
movl %eax, 0x4(%rcx,%rdx)
subl %r10d, %r14d
movl %r14d, 0x8(%rcx,%rdx)
subl 0x60(%rsp), %r11d
movl %r11d, 0xc(%rcx,%rdx)
movq %r12, %r11
leaq 0x242a0e(%rip), %rdx    # 0x27ccb0
movq 0x18(%rsp), %rax
incl %eax
movl %eax, %ecx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rax, 0x18(%rsp)
jmp 0x3a18a
movswl 0x18(%rsp), %eax
cmpl $0x3ff, %eax            # imm = 0x3FF
movl 0xc(%rsp), %ebx
jg 0x3a33b
movq 0x18(%rsp), %r12
movq 0x68(%rsp), %r14
movl %r14d, %eax
movq 0x60(%rsp), %r10
subl %r10d, %eax
movswq %r12w, %rcx
leal -0x4000(%r15), %edx
leaq 0x3fba4a(%rip), %rsi    # 0x435d40
movw %dx, (%rsi,%rcx,2)
shlq $0x4, %rcx
leaq 0x3f7a3b(%rip), %rdx    # 0x431d40
movl %eax, (%rcx,%rdx)
movq 0x48(%rsp), %rsi
leal (%rsi,%r13), %eax
movl %eax, 0x4(%rcx,%rdx)
addl %esi, %r14d
movl %r14d, 0x8(%rcx,%rdx)
addl %r10d, %r13d
movl %r13d, 0xc(%rcx,%rdx)
leal 0x1(%r12), %eax
movl %eax, %ecx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rax, 0x18(%rsp)
movl 0x20(%rsp), %esi
jmp 0x3a1c2
movq 0x28(%rsp), %rdx
movq 0x90(%rsp), %rsi
movq 0x10(%rsp), %r15
jmp 0x39e50
movq 0x28(%rsp), %r8
jmp 0x39e2b
movq 0x28(%rsp), %rdx
movq 0x90(%rsp), %rsi
movq %r15, %r9
movq 0x10(%rsp), %r15
movl %r14d, %r11d
movq 0xb0(%rsp), %r14
movl 0x34(%rsp), %r10d
movl 0x58(%rsp), %edi
jmp 0x39e6e
movq 0x28(%rsp), %r8
movl 0x40(%rsp), %r9d
movl 0x20(%rsp), %esi
movl 0x38(%rsp), %edi
jmp 0x39e2b
movl 0xc(%rsp), %ebx
jmp 0x3a18a
movq 0x140(%rsp), %rax
incq %rax
movq 0xa0(%rsp), %rcx
movl %ecx, 0xec(%rsp)
movq 0x48(%rsp), %rcx
movl %ecx, 0x8c(%rsp)
movq 0x60(%rsp), %rcx
movl %ecx, 0x88(%rsp)
movswq 0xbc(%rsp), %rcx
cmpq %rcx, %rax
jl 0x38e39
movq %rcx, 0xc8(%rsp)
movslq 0x6a852(%rip), %rax     # 0xa4c58
movq %rax, 0x40(%rsp)
movzwl 0x78(%rsp), %eax
movq %rax, 0xd0(%rsp)
movl 0xe4(%rsp), %esi
movslq %esi, %rax
movq %rax, 0x90(%rsp)
movslq 0xb8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x98(%rsp)
movq 0x100(%rsp), %r15
movq 0xc0(%rsp), %rdx
leaq 0x3f78e6(%rip), %rdi    # 0x431d40
leaq 0x3f70df(%rip), %r11    # 0x431540
cmpw $0x0, 0x78(%rsp)
jle 0x3a6b7
movl %esi, 0xe4(%rsp)
movq 0xf8(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x10(%rsp)
cltq
movq %rax, 0x70(%rsp)
movslq %r8d, %rax
movq %rax, 0xa8(%rsp)
movl $0xffffffff, 0x68(%rsp) # imm = 0xFFFFFFFF
movq %rdx, 0xc0(%rsp)
movl %edx, %ebp
movl %r15d, %r14d
movq 0xd0(%rsp), %r13
movq %r13, 0x38(%rsp)
decq %r13
movq %r13, %rcx
shlq $0x4, %rcx
movl (%rcx,%rdi), %ebx
movl 0x4(%rcx,%rdi), %r12d
movl 0x8(%rcx,%rdi), %eax
movl %eax, %r9d
subl %ebx, %r9d
movl 0xc(%rcx,%rdi), %ecx
movl %ecx, %r10d
subl %r12d, %r10d
movl %r8d, %esi
subl %r12d, %esi
imull %r9d, %esi
movl %ebx, %r11d
subl 0x10(%rsp), %r11d
movl %r10d, %edx
imull %r11d, %edx
addl %esi, %edx
testl %edx, %edx
movl %ebp, 0xa0(%rsp)
jle 0x3a69b
movl %r14d, %esi
subl %r12d, %esi
imull %r9d, %esi
movl %ebp, %edi
subl %ebx, %edi
imull %r10d, %edi
cmpl %edi, %esi
jg 0x3a69b
movq %r13, 0x20(%rsp)
movl %ebp, %esi
movq 0x10(%rsp), %r13
subl %r13d, %esi
movl %r14d, 0xc(%rsp)
movl %r14d, %edi
subl %r8d, %edi
movl %r12d, %r14d
subl %r8d, %r14d
imull %esi, %r14d
imull %edi, %r11d
cmpl %r11d, %r14d
jg 0x3a691
subl %r8d, %ecx
imull %esi, %ecx
subl %r13d, %eax
imull %edi, %eax
cmpl %eax, %ecx
jle 0x3a691
movl %r10d, %ecx
imull %esi, %ecx
movl %r9d, %eax
imull %edi, %eax
subl %eax, %ecx
movl 0xc(%rsp), %r14d
movq 0x20(%rsp), %r13
je 0x3a69b
movq %r8, 0x28(%rsp)
movq %r15, 0x100(%rsp)
movslq %esi, %rax
movslq %ecx, %rcx
movq %rcx, 0x48(%rsp)
movslq %edi, %rcx
movl %edx, %edx
imulq %rdx, %rcx
movslq %r14d, %rsi
movq 0xa8(%rsp), %rdi
subq %rsi, %rdi
movq %rdi, 0x60(%rsp)
imulq %rdx, %rax
movslq %ebp, %rdx
movq 0x70(%rsp), %rsi
subq %rdx, %rsi
movq %rsi, 0x18(%rsp)
movl $0xfffffeff, %edi       # imm = 0xFFFFFEFF
incl %edi
movq 0x10(%rsp), %r11
je 0x3a6c3
movq 0x60(%rsp), %rdx
leaq (%rcx,%rdx), %r14
movq 0x18(%rsp), %rdx
leaq (%rax,%rdx), %r8
cqto
movq 0x48(%rsp), %r15
idivq %r15
movq %rax, %rsi
addl %eax, %r11d
movq %rcx, %rax
cqto
idivq %r15
movq %rax, %rdx
movq 0x28(%rsp), %rax
leal (%rax,%rdx), %ebp
movl %ebp, %r15d
subl %r12d, %r15d
imull %r9d, %r15d
movl %r11d, %r13d
subl %ebx, %r13d
imull %r10d, %r13d
movq %r8, %rax
movq %r14, %rcx
movl 0xc(%rsp), %r14d
cmpl %r13d, %r15d
movq 0x20(%rsp), %r13
jle 0x3a5d1
movl %esi, %eax
negl %eax
cmovsl %esi, %eax
movl %edx, %ecx
negl %ecx
cmovsl %edx, %ecx
addl %eax, %ecx
movq 0x10(%rsp), %rax
subl 0xa0(%rsp), %eax
movl %eax, %edx
negl %edx
cmovsl %eax, %edx
movq 0x28(%rsp), %r8
movl %r8d, %eax
subl %r14d, %eax
movl %eax, %esi
negl %esi
cmovsl %eax, %esi
addl %edx, %esi
cmpl %esi, %ecx
movq 0x100(%rsp), %r15
jae 0x3a69b
movl %r11d, 0xa0(%rsp)
movl %ebp, %r14d
movl %r13d, 0x68(%rsp)
jmp 0x3a69b
movl 0xc(%rsp), %r14d
movq 0x20(%rsp), %r13
cmpq $0x1, 0x38(%rsp)
leaq 0x3f7698(%rip), %rdi    # 0x431d40
movl 0xa0(%rsp), %ebp
jg 0x3a4b2
jmp 0x3a6e2
xorl %eax, %eax
movl %r15d, %r14d
movl %edx, %ebp
jmp 0x3a940
movl %r11d, %ebp
movq 0x28(%rsp), %r8
movl %r8d, %r14d
movl %r13d, 0x68(%rsp)
movq 0x100(%rsp), %r15
leaq 0x3f765e(%rip), %rdi    # 0x431d40
movl 0x68(%rsp), %eax
testl %eax, %eax
js 0x3a762
movl %ebp, %ecx
movq %r8, %rsi
movl %eax, %r13d
movq %r13, %rax
shlq $0x4, %rax
movslq 0x8(%rax,%rdi), %r12
movslq (%rax,%rdi), %r8
subq %r8, %r12
movslq 0xc(%rax,%rdi), %rbx
movslq 0x4(%rax,%rdi), %rbp
subq %rbp, %rbx
movl %r12d, %eax
imull %r12d, %eax
movl %ebx, %edx
imull %ebx, %edx
addl %eax, %edx
movl %r14d, 0xc(%rsp)
je 0x3a77f
movq 0xc0(%rsp), %rax
subl %ecx, %eax
imull %r12d, %eax
subl %r14d, %r15d
imull %ebx, %r15d
addl %eax, %r15d
movl %r15d, %eax
negl %eax
cmovsl %r15d, %eax
shrl $0xb, %eax
cmpl %edx, %eax
jae 0x3a787
movslq %r15d, %rax
shlq $0x14, %rax
movl %edx, %edi
cqto
idivq %rdi
movslq %eax, %r15
jmp 0x3a78a
xorl %eax, %eax
movq 0xc0(%rsp), %rdx
leaq 0x3f6dcd(%rip), %r11    # 0x431540
movl 0xe4(%rsp), %esi
jmp 0x3a940
movq %rbx, %rdx
movq %r12, %rax
jmp 0x3a7b0
xorl %r15d, %r15d
movslq %r12d, %rax
movq %r15, %rdx
imulq %rax, %rdx
shrq $0x14, %rdx
addl %ecx, %edx
movq %rdx, 0xc0(%rsp)
movslq %ebx, %rdx
imulq %rdx, %r15
shrq $0x14, %r15
addl %r14d, %r15d
imulq 0x90(%rsp), %rax
imulq 0x50(%rsp), %rdx
addq %rax, %rdx
movslq 0x6a48f(%rip), %rax     # 0xa4c58
movq 0x40(%rsp), %rdi
cmpq %rax, %rdi
jge 0x3a83d
leaq 0x3fbda6(%rip), %r9     # 0x436580
movswq 0x2(%r9,%rdi,2), %r9
incq %rdi
shlq $0x4, %r9
leaq 0x3f7552(%rip), %r10    # 0x431d40
movslq 0x8(%r9,%r10), %r10
leaq 0x3f7546(%rip), %r11    # 0x431d40
movslq (%r9,%r11), %r11
subq %r11, %r10
leaq 0x3f7538(%rip), %r11    # 0x431d40
movslq 0xc(%r9,%r11), %r11
leaq 0x3f752c(%rip), %r14    # 0x431d40
movslq 0x4(%r9,%r14), %r9
subq %r9, %r11
imulq 0x90(%rsp), %r10
imulq 0x50(%rsp), %r11
addq %r10, %r11
xorq %rdx, %r11
btq $0x25, %r11
jae 0x3a7ce
jmp 0x3aab3
xorl %edx, %edx
testl %ebx, %ebx
setg %dl
negl %edx
testl %ebx, %ebx
movl $0x1, %esi
cmovsl %esi, %edx
movl %r12d, %edi
sarl $0x1f, %edi
testl %r12d, %r12d
cmovgl %esi, %edi
movl %r15d, %r9d
subl %ebp, %r9d
imull %r12d, %r9d
movq 0xc0(%rsp), %r10
subl %r8d, %r10d
imull %ebx, %r10d
cmpl %r10d, %r9d
jle 0x3a884
movq 0xc0(%rsp), %r14
jmp 0x3a8e1
movl %r12d, %r10d
negl %r10d
cmovsl %r12d, %r10d
movl %ebx, %r11d
negl %r11d
cmovsl %ebx, %r11d
xorl %r9d, %r9d
cmpl %r11d, %r10d
setbe %r9b
movq 0xc0(%rsp), %r14
testl %r9d, %r9d
movl $0x0, %r10d
cmovel %edx, %r10d
movl %edi, %r11d
cmovel %r9d, %r11d
addl %r10d, %r14d
addl %r11d, %r15d
xorl $0x1, %r9d
movl %r15d, %r10d
subl %ebp, %r10d
imull %r12d, %r10d
movl %r14d, %r11d
subl %r8d, %r11d
imull %ebx, %r11d
cmpl %r11d, %r10d
jle 0x3a8aa
movq %r14, %rdx
cmpl 0x40(%rsp), %eax
jne 0x3a8fe
leaq 0x3fb44f(%rip), %rax    # 0x435d40
movswl (%rax,%r13,2), %eax
movq %rax, 0x98(%rsp)
movl %edx, %esi
movl %ecx, %ebp
subl %ecx, %esi
shll $0xe, %esi
movl %r15d, %eax
movl 0xc(%rsp), %r14d
subl %r14d, %eax
shll $0xe, %eax
movl %eax, 0xb8(%rsp)
leaq 0x3fbc5d(%rip), %rax    # 0x436580
movl 0x68(%rsp), %ecx
movq 0x40(%rsp), %rdi
movw %cx, (%rax,%rdi,2)
movb $0x1, %al
leaq 0x3f6c07(%rip), %r11    # 0x431540
leaq 0x3f7400(%rip), %rdi    # 0x431d40
movq 0xf8(%rsp), %rcx
movl %ebp, (%rcx)
movq 0x108(%rsp), %rcx
movl %r14d, (%rcx)
testb %al, %al
je 0x3a97f
movl %esi, %eax
orl 0xb8(%rsp), %eax
je 0x3a97f
movq 0x40(%rsp), %rcx
leaq -0x1(%rcx), %rax
movl %r14d, %r8d
cmpq $0x1, %rcx
movq %rax, 0x40(%rsp)
jg 0x3a461
movl %r14d, %r12d
cmpw $0x0, 0xbc(%rsp)
leaq 0x2090ce(%rip), %r14    # 0x243a60
jle 0x3a9cc
movq 0xf8(%rsp), %rax
movl (%rax), %ebp
movzwl (%r11), %ebx
movswl %bx, %edx
movl %ebp, %edi
movl %r12d, %esi
movq %r11, %r15
callq 0x367f7
cmpl $0x1, %eax
je 0x3aadf
addq $0x2, %r15
decq 0xc8(%rsp)
movq %r15, %r11
jne 0x3a99e
movq 0xf0(%rsp), %rax
movw $0xffff, (%rax)         # imm = 0xFFFF
movswq 0x39557f(%rip), %rbx    # 0x3cff60
testq %rbx, %rbx
jle 0x3aac5
leaq (%rbx,%rbx,4), %rax
incq %rbx
leaq (%r14,%rax,8), %r15
addq $-0x1a, %r15
movl $0x7fffffff, 0x10(%rsp) # imm = 0x7FFFFFFF
movq 0xf8(%rsp), %rax
movl (%rax), %ebp
movq 0x108(%rsp), %rax
movl (%rax), %r14d
leaq 0xfffe(%rbx), %r13
movswl %r13w, %edx
movl %ebp, %edi
movl %r14d, %esi
callq 0x367f7
cmpl $0x1, %eax
jne 0x3aa71
testb $0x2, -0x2(%r15)
jne 0x3aa3d
movl -0xa(%r15), %eax
jmp 0x3aa4b
movswl %r13w, %edi
movl %ebp, %esi
movl %r14d, %edx
callq 0x3abce
movq 0xf0(%rsp), %rcx
movq 0xd8(%rsp), %rdx
movl (%rdx), %r12d
subl %r12d, %eax
jle 0x3aa80
cmpl 0x10(%rsp), %eax
jge 0x3aa71
movw %r13w, (%rcx)
movl %eax, 0x10(%rsp)
decq %rbx
addq $-0x28, %r15
cmpq $0x1, %rbx
ja 0x3aa01
jmp 0x3aac5
testb $0x2, (%r15)
jne 0x3aa8c
movl -0x6(%r15), %eax
jmp 0x3aaa2
movswl %r13w, %edi
movl %ebp, %esi
movl %r14d, %edx
callq 0x3aaf4
movq 0xf0(%rsp), %rcx
subl %eax, %r12d
jle 0x3aaec
movl %r12d, %eax
cmpl 0x10(%rsp), %r12d
jl 0x3aa69
jmp 0x3aa71
movq 0x10(%rsp), %rdi
movq 0xf0(%rsp), %rdx
callq 0x2668d
movq 0x98(%rsp), %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xf0(%rsp), %rax
movw %bx, (%rax)
jmp 0x3aac5
addl $-0x2, %ebx
movw %bx, (%rcx)
jmp 0x3aac5