// File: /workspace/github_c_makefile_star2_O2/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, 0xf0(%rsp)
movq %rdi, 0xe0(%rsp)
xorl %r15d, %r15d
movl %r9d, %eax
orl %r8d, %eax
je 0x36fda
movq %rcx, 0xe8(%rsp)
movzwl (%rcx), %ebx
testw %bx, %bx
js 0x36fda
movq 0xe0(%rsp), %rax
movl (%rax), %edi
movl %r8d, 0xd4(%rsp)
movl %r8d, %r13d
sarl $0xe, %r13d
leal (%rdi,%r13), %esi
movq 0xf0(%rsp), %rax
movl (%rax), %r14d
movl %r9d, 0xd0(%rsp)
movl %r9d, %r15d
sarl $0xe, %r15d
leal (%r14,%r15), %ecx
movq %rsi, 0xf8(%rsp)
movq %rdi, 0x60(%rsp)
leal (%rsi,%rdi), %ebp
sarl %ebp
movl %r13d, %eax
imull %r13d, %eax
movl %r15d, %edi
imull %r15d, %edi
addl %eax, %edi
movq %rcx, 0x100(%rsp)
leal (%rcx,%r14), %r12d
sarl %r12d
movq %rdx, 0xc8(%rsp)
callq 0x22169
movq %r14, %r9
movl 0x180(%rsp), %esi
leal (%rsi,%rax), %ecx
addl %esi, %eax
addl $0x408, %eax            # imm = 0x408
movl %ebp, %r8d
subl %eax, %r8d
movl %r12d, %edx
movq %rax, 0xb0(%rsp)
subl %eax, %edx
movq %rbp, 0xc0(%rsp)
leal (%rcx,%rbp), %edi
addl $0x408, %edi            # imm = 0x408
movl %edx, %ebp
movq %r12, 0xb8(%rsp)
leal (%r12,%rcx), %eax
addl $0x408, %eax            # imm = 0x408
movl 0x198(%rsp), %ecx
shrl $0x10, %ecx
movl %ecx, 0x98(%rsp)
movw %bx, 0x3f5068(%rip)     # 0x42a540
movl %eax, %ebx
movl 0x188(%rsp), %eax
decl %eax
movl %eax, 0x118(%rsp)
movq %rsi, %rdx
movl %edx, %eax
negl %eax
movq %r13, 0x138(%rsp)
testl %r13d, %r13d
cmovsl %eax, %esi
movq %r15, 0x130(%rsp)
testl %r15d, %r15d
movl %edx, %ecx
movl %eax, 0x11c(%rsp)
cmovsl %eax, %ecx
movq %rcx, 0x128(%rsp)
movslq %edx, %rax
movq %rax, 0x108(%rsp)
movw $0x1, %ax
movl %eax, 0xac(%rsp)
movq $0x0, 0x68(%rsp)
leaq 0x3f57fc(%rip), %r11    # 0x42ad40
leaq 0x240765(%rip), %rdx    # 0x275cb0
movq %rax, 0x38(%rsp)
movq %rax, 0x28(%rsp)
movq %rax, 0x90(%rsp)
xorl %ecx, %ecx
movq $0x0, 0x88(%rsp)
movl %r8d, 0x48(%rsp)
movl %ebp, 0x50(%rsp)
movl %edi, 0x4(%rsp)
movl %ebx, 0x58(%rsp)
movq %rsi, 0x10(%rsp)
leaq 0x3f4fb8(%rip), %rax    # 0x42a540
movq %rcx, 0x140(%rsp)
movswq (%rax,%rcx,2), %rcx
movq %rcx, 0x80(%rsp)
imulq $0x28, %rcx, %rax
leaq 0x2074b8(%rip), %rcx    # 0x23ca60
movswq (%rax,%rcx), %r15
movswl 0x2(%rax,%rcx), %r10d
addl %r15d, %r10d
movq %r15, %r12
shlq $0x5, %r12
leaq 0x17c48c(%rip), %rax    # 0x1b1a50
addq %rax, %r12
movzwl 0x17c46e(%rip), %eax    # 0x1b1a3c
movw %ax, 0x74(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x18(%rsp)
movl %r10d, 0x78(%rsp)
cmpl %r10d, %r15d
jge 0x35bb6
movswq 0x8(%r12), %rax
shlq $0x5, %rax
leaq 0x17c451(%rip), %rcx    # 0x1b1a50
addq %rcx, %rax
movl (%r12), %r14d
cmpl %r8d, %r14d
jge 0x35614
cmpl %r8d, (%rax)
jl 0x35b3a
cmpl %edi, %r14d
jle 0x35621
cmpl %edi, (%rax)
jg 0x35b3a
movl 0x4(%r12), %r13d
cmpl %ebp, %r13d
jge 0x35634
cmpl %ebp, 0x4(%rax)
jl 0x35b3a
movl 0x4(%rax), %ecx
cmpl %ebx, %r13d
jle 0x35644
cmpl %ebx, %ecx
jg 0x35b3a
movl (%rax), %eax
movq %rax, 0x20(%rsp)
movl %eax, %ebx
subl %r14d, %ebx
movq %rcx, 0x30(%rsp)
movl %ecx, %ebp
subl %r13d, %ebp
movl %r9d, %eax
subl %r13d, %eax
imull %ebx, %eax
movq 0x60(%rsp), %rcx
subl %r14d, %ecx
imull %ebp, %ecx
cmpl %ecx, %eax
jl 0x35752
testl %ebx, %ebx
movl 0x58(%rsp), %eax
cmovgl 0x50(%rsp), %eax
subl %r13d, %eax
imull %ebx, %eax
movl %eax, 0xa8(%rsp)
testl %ebp, %ebp
movl %r8d, %ecx
cmovgl %edi, %ecx
subl %r14d, %ecx
imull %ebp, %ecx
movl %ecx, 0xa4(%rsp)
movq %rax, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
cmpl %ecx, %eax
jge 0x35752
movzwl 0xc(%r12), %eax
movq %rax, 0x40(%rsp)
testw %ax, %ax
js 0x356d8
movzwl 0xe(%r12), %eax
testl %eax, 0x198(%rsp)
je 0x3575f
movq 0x18(%rsp), %r10
cmpw $0x3ff, %r10w           # imm = 0x3FF
jg 0x35843
movl %r14d, %ecx
subl %esi, %ecx
movswq %r10w, %rdx
movl %r15d, %eax
xorl $0x8000, %eax           # imm = 0x8000
leaq 0x3f963f(%rip), %rdi    # 0x42ed40
movw %ax, (%rdi,%rdx,2)
shlq $0x4, %rdx
movl %ecx, (%rdx,%r11)
movl %r13d, %esi
subl 0x10(%rsp), %esi
movl %esi, 0x4(%rdx,%r11)
movq 0x10(%rsp), %rsi
movl %ecx, 0x8(%rdx,%r11)
leal (%rsi,%r13), %ecx
movl %ecx, 0xc(%rdx,%r11)
leal 0x1(%r10), %edx
movw $0x400, %cx             # imm = 0x400
movq %rcx, 0x88(%rsp)
cmpw $0x3ff, %r10w           # imm = 0x3FF
jne 0x357e1
movq %rdx, 0x68(%rsp)
jmp 0x3582f
movl 0x50(%rsp), %ebp
movl 0x58(%rsp), %ebx
jmp 0x35b3a
cmpw $0x0, 0x74(%rsp)
jne 0x35ae4
subq $0x8, %rsp
movq 0x68(%rsp), %rdi
movl %r9d, %esi
xorl %edx, %edx
movq 0x140(%rsp), %rcx
movq 0x138(%rsp), %r8
movq %r9, 0x10(%rsp)
xorl %r9d, %r9d
leaq 0xe4(%rsp), %rax
pushq %rax
leaq 0xb4(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
pushq 0x50(%rsp)
pushq 0x48(%rsp)
pushq %r13
pushq %r14
callq 0x34bc7
movq 0x48(%rsp), %rcx
addq $0x40, %rsp
testl %eax, %eax
je 0x35961
movl 0xa8(%rsp), %eax
movl 0xa4(%rsp), %ecx
jmp 0x35974
movq 0x20(%rsp), %rcx
subl %esi, %ecx
movswq %dx, %rdx
movw %ax, (%rdi,%rdx,2)
shlq $0x4, %rdx
movl %ecx, (%rdx,%r11)
movq 0x30(%rsp), %rdi
movl %edi, %esi
subl 0x10(%rsp), %esi
movl %esi, 0x4(%rdx,%r11)
movq 0x10(%rsp), %rsi
movl %ecx, 0x8(%rdx,%r11)
leal (%rdi,%rsi), %ecx
movl %ecx, 0xc(%rdx,%r11)
leal 0x2(%r10), %ecx
movq %rcx, 0x68(%rsp)
cmpw $0x3fd, %r10w           # imm = 0x3FD
jle 0x358fa
movw $0x400, %ax             # imm = 0x400
movq %rax, 0x18(%rsp)
movl 0x4(%rsp), %edi
leaq 0x24046d(%rip), %rdx    # 0x275cb0
testl %ebp, %ebp
movl 0x180(%rsp), %eax
movl %eax, %r10d
movl 0x11c(%rsp), %ecx
cmovgl %ecx, %r10d
movl %r10d, 0xa8(%rsp)
testl %ebx, %ebx
movl %eax, %ebx
cmovsl %ecx, %ebx
movl %ebx, 0xa4(%rsp)
movq 0x18(%rsp), %rbp
cmpw $0x3ff, %bp             # imm = 0x3FF
movq %r10, 0x28(%rsp)
movq %rbx, 0x38(%rsp)
jg 0x358e8
addl %r10d, %r14d
movswq %bp, %rax
movl %r15d, %ecx
xorl $0x8000, %ecx           # imm = 0x8000
leaq 0x3f94a3(%rip), %rdx    # 0x42ed40
movw %cx, (%rdx,%rax,2)
leaq 0x240408(%rip), %rdx    # 0x275cb0
shlq $0x4, %rax
movl %r14d, (%rax,%r11)
addl %ebx, %r13d
movl %r13d, 0x4(%rax,%r11)
movq 0x20(%rsp), %rcx
addl %r10d, %ecx
movl %ecx, 0x8(%rax,%r11)
movq 0x30(%rsp), %rcx
addl %ebx, %ecx
movl %ecx, 0xc(%rax,%r11)
leal 0x1(%rbp), %eax
movl %eax, %ecx
movq %rcx, 0x88(%rsp)
movq %rax, 0x68(%rsp)
movq %rax, 0x18(%rsp)
movl 0x50(%rsp), %ebp
movl 0x58(%rsp), %ebx
movl 0x78(%rsp), %r10d
jmp 0x35b3a
movq 0x128(%rsp), %rdx
leal (%r14,%rdx), %ecx
movq %rdx, %rsi
movswq 0x68(%rsp), %rdx
leaq 0x3f942a(%rip), %rdi    # 0x42ed40
movw %ax, (%rdi,%rdx,2)
shlq $0x4, %rdx
movl %ecx, (%rdx,%r11)
movl %r13d, %ecx
movq %rsi, %rdi
subl %edi, %ecx
movl %ecx, 0x4(%rdx,%r11)
movl %r14d, %esi
subl %edi, %esi
movl %esi, 0x8(%rdx,%r11)
movl %ecx, 0xc(%rdx,%r11)
leal 0x3(%r10), %edx
cmpw $0x3fd, %r10w           # imm = 0x3FD
jne 0x35b46
movq %rdx, 0x68(%rsp)
movw $0x400, %ax             # imm = 0x400
movq %rax, 0x18(%rsp)
jmp 0x35ba8
movq 0x60(%rsp), %rax
movl %eax, 0xa8(%rsp)
movl %ecx, 0xa4(%rsp)
movq 0x80(%rsp), %rdi
movq %rax, %rsi
movq %rax, 0x28(%rsp)
movq %rcx, %rdx
movq %rcx, 0x38(%rsp)
callq 0x370fb
movq %rax, 0x90(%rsp)
movl %eax, 0xdc(%rsp)
movswq 0xc(%r12), %rdi
movq %rdi, 0x40(%rsp)
movq 0x28(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x370fb
movq 0x40(%rsp), %rcx
imulq $0x28, %rcx, %r10
leaq 0x207096(%rip), %rcx    # 0x23ca60
addq %rcx, %r10
movq 0x90(%rsp), %rcx
addl $0xffffff00, %ecx       # imm = 0xFFFFFF00
cmpl %ecx, %eax
leaq 0x3f535c(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %r9
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
leaq 0x2402b2(%rip), %rdx    # 0x275cb0
jge 0x35a22
testb $0x1, 0xe(%r10)
jne 0x35a22
movl 0x190(%rsp), %ecx
subl %ecx, %eax
incl %eax
movq 0xc8(%rsp), %rcx
cmpl %eax, (%rcx)
jge 0x356d8
movq %r10, 0x110(%rsp)
movq 0x80(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x371c4
movq %rax, 0x90(%rsp)
movl %eax, 0xdc(%rsp)
movswl 0x40(%rsp), %edi
movq 0x28(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x371c4
movq 0x90(%rsp), %rcx
addl $0x100, %ecx            # imm = 0x100
cmpl %ecx, %eax
jle 0x35ac3
movq 0x110(%rsp), %rcx
testb $0x1, 0xc(%rcx)
movq 0xc8(%rsp), %rcx
jne 0x35ac3
addl 0x118(%rsp), %eax
cmpl %eax, (%rcx)
leaq 0x3f52a4(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %r9
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
leaq 0x2401fa(%rip), %rdx    # 0x275cb0
movl 0x78(%rsp), %r10d
jle 0x356d8
jmp 0x35ae4
leaq 0x3f5276(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %r9
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
leaq 0x2401d1(%rip), %rdx    # 0x275cb0
movl 0x78(%rsp), %r10d
movswq 0xac(%rsp), %rax
movl %eax, %ecx
movl 0x50(%rsp), %ebp
movl 0x58(%rsp), %ebx
movq 0x40(%rsp), %r14
testl %ecx, %ecx
jle 0x35b1f
leaq -0x1(%rcx), %rdx
leaq 0x3f4a35(%rip), %rsi    # 0x42a540
cmpw -0x2(%rsi,%rcx,2), %r14w
movq %rdx, %rcx
leaq 0x240195(%rip), %rdx    # 0x275cb0
jne 0x35afc
jmp 0x35b35
leal 0x1(%rax), %ecx
movl %ecx, 0xac(%rsp)
leaq 0x3f4a10(%rip), %rcx    # 0x42a540
movw %r14w, (%rcx,%rax,2)
movq 0x10(%rsp), %rsi
incl %r15d
addq $0x20, %r12
jmp 0x355e5
movq 0x20(%rsp), %rsi
movq 0x128(%rsp), %rdi
leal (%rdi,%rsi), %ecx
movl %ecx, 0x8(%rsp)
movswq %dx, %rdx
leaq 0x3f91db(%rip), %rcx    # 0x42ed40
movw %ax, (%rcx,%rdx,2)
shlq $0x4, %rdx
movl 0x8(%rsp), %eax
movl %eax, (%rdx,%r11)
movq 0x30(%rsp), %rax
subl %edi, %eax
movl %eax, 0x4(%rdx,%r11)
movl %esi, %ecx
subl %edi, %ecx
movl %ecx, 0x8(%rdx,%r11)
movl %eax, 0xc(%rdx,%r11)
addl $0x4, %r10d
movl %r10d, %eax
movq %rax, 0x68(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x88(%rsp)
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
jmp 0x3583c
incq 0x140(%rsp)
leaq 0x36f94b(%rip), %rax    # 0x3a5510
movq 0x80(%rsp), %rcx
leaq (%rax,%rcx,2), %rax
movq 0x88(%rsp), %rcx
movl %ecx, %r14d
movswq (%rax), %r15
testq %r15, %r15
js 0x369e3
imulq $0x2c, %r15, %rax
movzwl 0xc(%rax,%rdx), %r12d
testl %r12d, 0x98(%rsp)
je 0x369c0
addq %rdx, %rax
movl (%rax), %r13d
movl 0x4(%rax), %ecx
movq %rcx, 0x30(%rsp)
movl %r12d, %ecx
shrl $0x4, %ecx
andl $0x3, %ecx
leaq 0x362cd(%rip), %r10     # 0x6beec
movslq (%r10,%rcx,4), %rcx
addq %r10, %rcx
jmpq *%rcx
cmpl %r8d, %r13d
jl 0x369c0
cmpl %edi, %r13d
jg 0x369c0
movq 0x30(%rsp), %rcx
cmpl %ebp, %ecx
jl 0x369c0
cmpl %ebx, %ecx
jg 0x369c0
movswq 0xe(%rax), %rsi
leaq 0x3c4b85(%rip), %rcx    # 0x3fa7e0
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 0x1fdde1(%rip), %rdi    # 0x233a60
movl (%rdi,%rsi,4), %esi
testl $0xff0000, %esi         # imm = 0xFF0000
je 0x35c9a
shrl $0x10, %esi
movsbl %sil, %esi
imull %esi, %edx
shll $0x2, %edx
subl %edx, %r10d
movq 0xc8(%rsp), %rdx
movl (%rdx), %edx
movl 0x188(%rsp), %esi
addl %r10d, %esi
cmpl %esi, %edx
movl 0x4(%rsp), %edi
movq %r10, 0x90(%rsp)
jge 0x369b4
movl 0x190(%rsp), %esi
leal (%rsi,%rcx,4), %ecx
movl %r10d, %esi
subl %ecx, %esi
cmpl %esi, %edx
jle 0x369b4
cmpw $0x3ff, %r14w           # imm = 0x3FF
jg 0x369b4
movq %r9, %r12
movzbl 0x12(%rax), %eax
movq 0x108(%rsp), %rcx
leal (%rcx,%rax,4), %eax
movl %eax, %ecx
negl %ecx
cmpl $0x0, 0x138(%rsp)
movl %eax, %esi
cmovsl %ecx, %esi
movl %r13d, %edi
subl %esi, %edi
movswq %r14w, %r8
leal -0x4000(%r15), %edx
leaq 0x3f9021(%rip), %rbx    # 0x42ed40
movw %dx, (%rbx,%r8,2)
shlq $0x4, %r8
movl %edi, (%r8,%r11)
movq 0x30(%rsp), %r10
movl %r10d, %r9d
subl %esi, %r9d
movl %r9d, 0x4(%r8,%r11)
movl %edi, 0x8(%r8,%r11)
addl %r10d, %esi
movl %esi, 0xc(%r8,%r11)
leal 0x1(%r14), %esi
movw $0x400, %di             # imm = 0x400
movq %rdi, 0x88(%rsp)
cmpw $0x3ff, %r14w           # imm = 0x3FF
jne 0x3652e
movq %rsi, 0x68(%rsp)
movw $0x400, %r14w           # imm = 0x400
jmp 0x36576
movswq 0xe(%rax), %rcx
leaq 0x3c4a60(%rip), %rdx    # 0x3fa7e0
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 0x1fdcbd(%rip), %rsi    # 0x233a60
movl (%rsi,%rcx,4), %esi
testl $0xff0000, %esi         # imm = 0xFF0000
je 0x35dca
movq %r9, %rbx
movl %esi, %r9d
shrl $0x10, %r9d
movsbl %r9b, %r9d
imull %r9d, %r8d
movq %rbx, %r9
shll $0x2, %r8d
subl %r8d, %edi
movl 0x188(%rsp), %r8d
leal (%rdi,%r8), %r10d
movq 0xc8(%rsp), %r8
movl (%r8), %r8d
movq %r10, 0x90(%rsp)
cmpl %r10d, %r8d
jge 0x36579
movl 0x190(%rsp), %ebx
leal (%rbx,%rdx,4), %edx
subl %edx, %edi
cmpl %edi, %r8d
jle 0x36579
movq %r14, 0x18(%rsp)
movq %r9, 0x8(%rsp)
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 0x391f0d(%rip), %rdi    # 0x3c7d50
movswq (%rdi,%rsi,2), %r14
imulq %rax, %r14
leal 0x600(%rbp), %esi
andl %r8d, %esi
movswq (%rdi,%rsi,2), %rbx
imulq %rax, %rbx
leaq 0x3d31bb(%rip), %rax    # 0x409020
movswq (%rax,%rcx,2), %rsi
movl %esi, %eax
sarl %eax
addl %edx, %eax
cltq
movq %rax, %rcx
imulq %r14, %rcx
shrq $0x10, %rcx
subl %ecx, %r13d
movq %rsi, %rcx
imulq %r14, %rcx
shrq $0x10, %rcx
movq %rcx, 0x78(%rsp)
leal (%rcx,%r13), %r8d
imulq %rbx, %rax
shrq $0x10, %rax
movq %r13, %rdx
movq 0x30(%rsp), %r13
subl %eax, %r13d
imulq %rbx, %rsi
shrq $0x10, %rsi
movq %rsi, 0x80(%rsp)
leal (%rsi,%r13), %r9d
subq $0x8, %rsp
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq %rdx, 0x28(%rsp)
movl %r13d, %ecx
movq %r8, 0x48(%rsp)
movl %r9d, 0x38(%rsp)
pushq 0xb8(%rsp)
callq 0x32fef
popq %rcx
popq %rdx
testl %eax, %eax
je 0x3645e
leal 0x300(%rbp), %eax
movl $0x7ff, %edx            # imm = 0x7FF
andl %edx, %eax
leaq 0x391e45(%rip), %rsi    # 0x3c7d50
movswq (%rsi,%rax,2), %rcx
movq 0x108(%rsp), %rax
imulq %rax, %rcx
shrq $0xe, %rcx
movq %rcx, 0x28(%rsp)
addl $0x100, %ebp            # imm = 0x100
andl %edx, %ebp
movswq (%rsi,%rbp,2), %rbx
imulq %rax, %rbx
shrq $0xe, %rbx
movq 0x20(%rsp), %rax
movl %eax, %edx
movq 0x60(%rsp), %rsi
subl %esi, %edx
movl 0x30(%rsp), %eax
movq 0x8(%rsp), %r9
subl %r9d, %eax
imull %eax, %edx
movq 0x40(%rsp), %r10
movl %r10d, %ecx
subl %esi, %ecx
movl %r13d, %esi
subl %r9d, %esi
imull %ecx, %esi
cmpl %esi, %edx
leaq 0x3f4dcd(%rip), %r11    # 0x42ad40
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movq %rbx, 0x38(%rsp)
jge 0x364a1
testb $0x40, %r12b
movl 0x50(%rsp), %ebp
movq 0x18(%rsp), %r14
movq 0x78(%rsp), %r12
jne 0x36582
cmpw $0x3ff, %r14w           # imm = 0x3FF
jg 0x369d0
movq %r10, %r12
movl %r10d, %esi
movq 0x28(%rsp), %r10
subl %r10d, %esi
movswq %r14w, %rdx
movq %rdx, %rdi
shlq $0x4, %rdi
movl %esi, (%rdi,%r11)
movl 0x30(%rsp), %esi
movq 0x38(%rsp), %rbx
subl %ebx, %esi
movl %esi, 0x4(%rdi,%r11)
movq 0x20(%rsp), %rsi
subl %ebx, %esi
movl %esi, 0x8(%rdi,%r11)
leal (%r10,%r13), %esi
jmp 0x364f1
movl 0x8(%rax), %ecx
movl 0x188(%rsp), %edx
leal (%rcx,%rdx), %esi
movq 0xc8(%rsp), %rdx
movl (%rdx), %edx
movq %rsi, 0x90(%rsp)
cmpl %esi, %edx
setl %sil
movl %ecx, %edi
movl 0x190(%rsp), %r8d
subl %r8d, %edi
cmpl %edi, %edx
setg %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x369ab
movq %r14, 0x18(%rsp)
testb $0x40, %r12b
jne 0x3604b
movl %r12d, %ecx
andl $0x8, %ecx
movl $0x7ff, %r11d           # imm = 0x7FF
jmp 0x36069
cmpl %ecx, %edx
setg %dl
movl %r12d, %ecx
andl $0x8, %ecx
sete %sil
cmpb %dl, %sil
movl $0x7ff, %r11d           # imm = 0x7FF
je 0x36452
movswq 0xe(%rax), %rdi
leaq 0x1fd9eb(%rip), %rdx    # 0x233a60
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 %r11d, %edx
leaq 0x391c8c(%rip), %r8     # 0x3c7d50
movswq (%r8,%rdx,2), %rsi
movswq (%r8,%rcx,2), %rdx
leaq 0x3d2f4b(%rip), %r8     # 0x409020
movswq (%r8,%rdi,2), %r8
movzbl 0x14(%rax), %ebp
leaq 0x3c46fb(%rip), %r11    # 0x3fa7e0
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, 0x20(%rsp)
movslq %r11d, %r13
imulq %rax, %r13
movq %r10, %r11
imulq %rdx, %r11
movq %r13, %rbx
imulq %rsi, %rbx
addq %r11, %rbx
shrq $0x10, %rbx
movq 0x20(%rsp), %r9
addl %ebx, %r9d
movq %r9, 0x20(%rsp)
movq 0x20(%rsp), %r9
movl %r9d, 0x3f93ff(%rip)    # 0x42f540
imulq %rdx, %r13
imulq %rsi, %r10
subq %r10, %r13
shrq $0x10, %r13
movq 0x30(%rsp), %r12
addl %r13d, %r12d
movq 0x20(%rsp), %r11
movl %r12d, 0x3f93fc(%rip)   # 0x42f560
imulq %r8, %rbp
movq %rbp, %r8
imulq %rdx, %r8
shrq $0x10, %r8
movl %r11d, %r13d
subl %r8d, %r13d
movl %r13d, 0x3f93c4(%rip)   # 0x42f544
imulq %rsi, %rbp
shrq $0x10, %rbp
addl %r12d, %ebp
movl %ebp, 0x3f93d3(%rip)    # 0x42f564
imulq %rdi, %rax
imulq %rax, %rsi
shrq $0x10, %rsi
movl %r13d, %r10d
subl %esi, %r10d
movl %r10d, 0x3f939e(%rip)   # 0x42f548
movl %r11d, %r8d
subl %esi, %r8d
movl %r8d, 0x3f9395(%rip)    # 0x42f54c
imulq %rdx, %rax
shrq $0x10, %rax
movl %ebp, %r9d
subl %eax, %r9d
movl %r9d, 0x3f939c(%rip)    # 0x42f568
movl %r12d, %r14d
subl %eax, %r14d
movl %r14d, 0x3f9393(%rip)   # 0x42f56c
leal 0x100(%rcx), %eax
movl $0x7ff, %esi            # imm = 0x7FF
andl %esi, %eax
leaq 0x391b63(%rip), %rdi    # 0x3c7d50
movswq (%rdi,%rax,2), %rax
movq 0x108(%rsp), %rdx
imulq %rdx, %rax
shrq $0xe, %rax
movq %rax, 0x28(%rsp)
leal 0x700(%rcx), %eax
andl %esi, %eax
movswq (%rdi,%rax,2), %rax
imulq %rdx, %rax
shrq $0xe, %rax
movq %rax, 0x38(%rsp)
movq 0xe0(%rsp), %rax
movl (%rax), %esi
movl %r11d, %ecx
subl %esi, %ecx
movq 0xf0(%rsp), %rax
movl (%rax), %edi
movl %ebp, %ebx
subl %edi, %ebx
movl %ebx, %eax
movl %ecx, 0x124(%rsp)
imull %ecx, %eax
movl %r13d, %edx
subl %esi, %edx
movl %r12d, %ecx
subl %edi, %ecx
movl %ecx, 0x120(%rsp)
movl %edx, 0x110(%rsp)
imull %edx, %ecx
cmpl %ecx, %eax
movq %rdi, 0x8(%rsp)
movq %rsi, 0x60(%rsp)
movl %r14d, 0xd8(%rsp)
movl %r9d, 0x74(%rsp)
movl %r13d, 0x40(%rsp)
movq %r8, 0x80(%rsp)
movl %r10d, 0x78(%rsp)
jge 0x36341
subq $0x8, %rsp
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl %r13d, %edx
movl %ebp, %ecx
movl %r11d, %r8d
movq %r12, 0x38(%rsp)
movl %r12d, %r9d
pushq 0xb8(%rsp)
callq 0x32fef
popq %rcx
popq %rdx
testl %eax, %eax
movq 0x18(%rsp), %r14
je 0x365b4
cmpw $0x3ff, %r14w           # imm = 0x3FF
leaq 0x3f4a5e(%rip), %r11    # 0x42ad40
movl 0x74(%rsp), %r9d
jg 0x3658b
movl 0x40(%rsp), %r13d
movl %r13d, %ecx
movq 0x38(%rsp), %rdi
subl %edi, %ecx
movswq %r14w, %rax
movq %rax, %rdx
shlq $0x4, %rdx
movl %ecx, (%rdx,%r11)
movq 0x28(%rsp), %rsi
leal (%rsi,%rbp), %ecx
movl %ecx, 0x4(%rdx,%r11)
movq 0x20(%rsp), %r8
leal (%r8,%rsi), %ecx
movl %ecx, 0x8(%rdx,%r11)
movq 0x30(%rsp), %r12
movq %r8, %r10
leal (%r12,%rdi), %ecx
movq 0x8(%rsp), %rdi
movq 0x60(%rsp), %rsi
jmp 0x3640e
movl %r10d, %eax
subl %esi, %eax
movl %r14d, %r11d
subl %edi, %r11d
imull %eax, %r11d
movl %r8d, %eax
subl %esi, %eax
movl %r9d, %edx
subl %edi, %edx
imull %eax, %edx
cmpl %edx, %r11d
movq 0x18(%rsp), %rax
jge 0x3648a
movl %r14d, %ecx
movq %rax, %r14
subq $0x8, %rsp
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl %r8d, %edx
movl %r10d, %r8d
pushq 0xb8(%rsp)
callq 0x32fef
popq %rcx
popq %rdx
testl %eax, %eax
je 0x36701
cmpw $0x3ff, %r14w           # imm = 0x3FF
leaq 0x3f4992(%rip), %r11    # 0x42ad40
movl 0x40(%rsp), %r13d
jg 0x366f0
movswq %r14w, %rax
movq 0x38(%rsp), %rdi
movq 0x80(%rsp), %rcx
addl %edi, %ecx
movq %rax, %rdx
shlq $0x4, %rdx
movl %ecx, (%rdx,%r11)
movl 0xd8(%rsp), %ecx
movq 0x28(%rsp), %rsi
subl %esi, %ecx
movl %ecx, 0x4(%rdx,%r11)
movl 0x78(%rsp), %ecx
subl %esi, %ecx
movl %ecx, 0x8(%rdx,%r11)
movl 0x74(%rsp), %r9d
movl %r9d, %ecx
subl %edi, %ecx
movq 0x8(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %r10
movq %rax, %rdx
shlq $0x4, %rdx
movl %ecx, 0xc(%rdx,%r11)
leal -0x4000(%r15), %ecx
leaq 0x3f8918(%rip), %rdx    # 0x42ed40
movw %cx, (%rdx,%rax,2)
incl %r14d
movl %r14d, %eax
movq %rax, 0x68(%rsp)
movq %rax, 0x88(%rsp)
movq %rdi, %rdx
movq 0x80(%rsp), %r8
movq %r14, %rdi
jmp 0x3672c
leaq 0x3f48e7(%rip), %r11    # 0x42ad40
jmp 0x3697f
movq %rbx, 0x38(%rsp)
movq %r14, 0x28(%rsp)
leaq 0x3f48d1(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %r9
movl 0x48(%rsp), %r8d
movl 0x50(%rsp), %ebp
movl 0x4(%rsp), %edi
movl 0x58(%rsp), %ebx
jmp 0x3698c
leaq 0x3f48af(%rip), %r11    # 0x42ad40
movq %rdi, %rdx
movq %rax, %rdi
movq 0x20(%rsp), %r10
jmp 0x3672c
movq 0x18(%rsp), %r14
cmpw $0x3ff, %r14w           # imm = 0x3FF
jg 0x365cf
movq %r10, %rbp
movq 0x28(%rsp), %r10
movq 0x20(%rsp), %rdx
leal (%rdx,%r10), %esi
movswq %r14w, %rdx
movq %rdx, %rdi
shlq $0x4, %rdi
movl %esi, (%rdi,%r11)
leal (%rbx,%r13), %esi
movl %esi, 0x4(%rdi,%r11)
movq %rbp, %r12
leal (%rbx,%rbp), %esi
movl %esi, 0x8(%rdi,%r11)
movl 0x30(%rsp), %esi
subl %r10d, %esi
movl 0x50(%rsp), %ebp
movq %rdx, %rdi
shlq $0x4, %rdi
movl %esi, 0xc(%rdi,%r11)
leal -0x4000(%r15), %esi
leaq 0x3f8835(%rip), %rdi    # 0x42ed40
movw %si, (%rdi,%rdx,2)
incl %r14d
movl %r14d, %edx
movq %rdx, 0x68(%rsp)
movq %rdx, 0x88(%rsp)
movl 0x4(%rsp), %edi
movq %r12, %r10
jmp 0x365d3
cmpl $0x0, 0x130(%rsp)
cmovsl %ecx, %eax
leal (%rax,%r13), %ecx
movswq %si, %rsi
movw %dx, (%rbx,%rsi,2)
shlq $0x4, %rsi
movl %ecx, (%rsi,%r11)
subl %eax, %r10d
movl %r10d, 0x4(%rsi,%r11)
subl %eax, %r13d
movl %r13d, 0x8(%rsi,%r11)
movl %r10d, 0xc(%rsi,%r11)
addl $0x2, %r14d
movl %r14d, %eax
movq %rax, 0x68(%rsp)
movq %rax, 0x88(%rsp)
movq %r12, %r9
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movl 0x58(%rsp), %ebx
jmp 0x369b4
movq 0x8(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x30(%rsp), %r12
movq 0x20(%rsp), %r10
movl 0x40(%rsp), %r13d
movq %r14, %rdi
movq 0x80(%rsp), %r8
jmp 0x3672c
leaq 0x3f4785(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x30(%rsp), %r12
jmp 0x36712
movl 0x50(%rsp), %ebp
movq 0x80(%rsp), %rbx
movq 0x78(%rsp), %r12
movq 0x60(%rsp), %rdx
subl 0x20(%rsp), %edx
imull %r12d, %edx
movl %r9d, %esi
subl %r13d, %esi
imull %ebx, %esi
addl %edx, %esi
movswq %r14w, %rdx
js 0x3666b
imull %r12d, %ecx
imull %ebx, %eax
addl %ecx, %eax
movq 0x10(%rsp), %rsi
jns 0x369dd
cmpw $0x3ff, %r14w           # imm = 0x3FF
movl 0x58(%rsp), %ebx
jg 0x369b9
movq %r14, 0x18(%rsp)
movq 0x38(%rsp), %r14
leal (%r10,%r14), %eax
movq %rdx, %rcx
shlq $0x4, %rcx
movl %eax, (%rcx,%r11)
movq %rdx, %r12
movl 0x30(%rsp), %edx
movl %edx, %eax
movq %r10, %r13
movq 0x28(%rsp), %r10
subl %r10d, %eax
movl %eax, 0x4(%rcx,%r11)
subl %r10d, %r13d
movl %r13d, 0x8(%rcx,%r11)
subl %r14d, %edx
movq 0x18(%rsp), %r14
movl %edx, 0xc(%rcx,%r11)
jmp 0x366c5
cmpw $0x3ff, %r14w           # imm = 0x3FF
movl 0x58(%rsp), %ebx
movq 0x10(%rsp), %rsi
jg 0x369b9
movq %rdx, %r12
movq 0x20(%rsp), %rdx
movl %edx, %eax
movq %r14, 0x18(%rsp)
movq 0x38(%rsp), %r14
subl %r14d, %eax
movq %r12, %rcx
shlq $0x4, %rcx
movl %eax, (%rcx,%r11)
movq 0x28(%rsp), %r10
leal (%r10,%r13), %eax
movl %eax, 0x4(%rcx,%r11)
addl %r10d, %edx
movl %edx, 0x8(%rcx,%r11)
addl %r14d, %r13d
movq 0x18(%rsp), %r14
movl %r13d, 0xc(%rcx,%r11)
leal -0x4000(%r15), %eax
leaq 0x3f866d(%rip), %rcx    # 0x42ed40
movw %ax, (%rcx,%r12,2)
incl %r14d
movl %r14d, %eax
movq %rax, 0x68(%rsp)
movq %rax, 0x88(%rsp)
jmp 0x369b9
movq 0x8(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %r10
jmp 0x3671c
leaq 0x3f4638(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %r10
movl 0x40(%rsp), %r13d
movq %r14, %rdi
movq 0x80(%rsp), %r8
movl 0x74(%rsp), %r9d
movl %r9d, %eax
subl %edx, %eax
imull 0x110(%rsp), %eax
movl 0x78(%rsp), %r14d
movl %r14d, %ecx
subl %esi, %ecx
imull %ecx, %ebx
movq %rdi, 0x18(%rsp)
movswq %di, %rdi
cmpl %ebx, %eax
jge 0x3682d
movq %rdi, %r12
subq $0x8, %rsp
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl %r14d, %edx
movl %r9d, %ecx
movl %r13d, %r8d
movl %ebp, %r9d
pushq 0xb8(%rsp)
callq 0x32fef
popq %rcx
popq %rdx
testl %eax, %eax
movl 0x58(%rsp), %ebx
je 0x36973
movq 0x18(%rsp), %r10
cmpw $0x3ff, %r10w           # imm = 0x3FF
leaq 0x3f459a(%rip), %r11    # 0x42ad40
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
leaq 0x23f4f5(%rip), %rdx    # 0x275cb0
jg 0x3681f
movq 0x28(%rsp), %rcx
subl %ecx, %r14d
movq %r12, %r13
movq %r12, %rax
shlq $0x4, %rax
movl %r14d, (%rax,%r11)
movq 0x38(%rsp), %r9
movl 0x74(%rsp), %r14d
subl %r9d, %r14d
movl %r14d, 0x4(%rax,%r11)
movl 0x40(%rsp), %r12d
subl %r9d, %r12d
movl %r12d, 0x8(%rax,%r11)
addl %ecx, %ebp
movl %ebp, 0xc(%rax,%r11)
leal -0x4000(%r15), %eax
leaq 0x3f8539(%rip), %rcx    # 0x42ed40
movw %ax, (%rcx,%r13,2)
incl %r10d
movl %r10d, %eax
movq %rax, 0x68(%rsp)
movq %rax, 0x88(%rsp)
movq 0x8(%rsp), %r9
movl 0x50(%rsp), %ebp
jmp 0x36969
movq %r10, %r13
movl %r8d, %eax
subl %esi, %eax
movl 0x120(%rsp), %esi
imull %eax, %esi
movl 0xd8(%rsp), %r10d
movl %r10d, %eax
subl %edx, %eax
imull 0x124(%rsp), %eax
cmpl %eax, %esi
movl 0x58(%rsp), %ebx
jge 0x3696e
movq %rdi, 0x78(%rsp)
movq 0x18(%rsp), %r14
subq $0x8, %rsp
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl %r13d, %edx
movq %r12, 0x38(%rsp)
movl %r12d, %ecx
movl %r10d, %r9d
pushq 0xb8(%rsp)
callq 0x32fef
popq %rcx
popq %rdx
testl %eax, %eax
movl 0x50(%rsp), %ebp
je 0x3699f
movq %r14, %r10
cmpw $0x3ff, %r10w           # imm = 0x3FF
leaq 0x3f448a(%rip), %r11    # 0x42ad40
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
leaq 0x23f3e5(%rip), %rdx    # 0x275cb0
jg 0x36964
movq 0x28(%rsp), %rcx
addl %ecx, %r13d
movq 0x78(%rsp), %r11
movq %r11, %rax
shlq $0x4, %rax
leaq 0x3f4454(%rip), %r9     # 0x42ad40
movl %r13d, (%rax,%r9)
movq 0x38(%rsp), %r9
movq 0x30(%rsp), %r12
addl %r9d, %r12d
leaq 0x3f443c(%rip), %r14    # 0x42ad40
movl %r12d, 0x4(%rax,%r14)
movq 0x80(%rsp), %r14
addl %r9d, %r14d
leaq 0x3f4425(%rip), %r9     # 0x42ad40
movl %r14d, 0x8(%rax,%r9)
movl 0xd8(%rsp), %r9d
subl %ecx, %r9d
leaq 0x3f440e(%rip), %rcx    # 0x42ad40
movl %r9d, 0xc(%rax,%rcx)
leal -0x4000(%r15), %eax
leaq 0x3f83fb(%rip), %rcx    # 0x42ed40
movw %ax, (%rcx,%r11,2)
leaq 0x3f43ef(%rip), %r11    # 0x42ad40
incl %r10d
movl %r10d, %eax
movq %rax, 0x68(%rsp)
movq %rax, 0x88(%rsp)
movq 0x8(%rsp), %r9
movq %r10, %r14
jmp 0x369c0
movq %rdx, %r9
jmp 0x3697f
leaq 0x3f43c6(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %r9
movl 0x48(%rsp), %r8d
movl 0x50(%rsp), %ebp
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
leaq 0x23f318(%rip), %rdx    # 0x275cb0
movq 0x18(%rsp), %r14
jmp 0x369c0
leaq 0x3f439a(%rip), %r11    # 0x42ad40
movq 0x8(%rsp), %r9
movl 0x48(%rsp), %r8d
movl 0x4(%rsp), %edi
movq 0x10(%rsp), %rsi
leaq 0x23f2f0(%rip), %rdx    # 0x275cb0
leaq 0x378b59(%rip), %rax    # 0x3af520
leaq (%rax,%r15,2), %rax
jmp 0x35bdc
movq 0x80(%rsp), %rbx
jmp 0x365e0
movl 0x58(%rsp), %ebx
jmp 0x369b9
movq 0x90(%rsp), %rax
movl %eax, 0xdc(%rsp)
movq 0x28(%rsp), %rax
movl %eax, 0xa8(%rsp)
movq 0x38(%rsp), %rax
movl %eax, 0xa4(%rsp)
movswq 0xac(%rsp), %rax
movq 0x140(%rsp), %rcx
cmpq %rax, %rcx
jl 0x35581
movslq 0x6722d(%rip), %rsi     # 0x9dc58
movswq 0x68(%rsp), %rax
movq %rax, 0xb8(%rsp)
movl 0xd4(%rsp), %ecx
movslq %ecx, %rax
movq %rax, 0x50(%rsp)
movl 0xd0(%rsp), %edx
movslq %edx, %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x100(%rsp), %r14
movq 0xf8(%rsp), %r15
movq %rsi, 0x38(%rsp)
movl %edx, 0xd0(%rsp)
movl %ecx, 0xd4(%rsp)
movq 0xe0(%rsp), %rax
movl (%rax), %eax
movq %r9, 0x8(%rsp)
movslq %r9d, %rdx
movslq %eax, %rsi
movq %r15, 0xf8(%rsp)
movl %r15d, %r12d
movq %r14, 0x100(%rsp)
movl %r14d, %r13d
movq %rax, %r14
movq 0xb8(%rsp), %rax
movq %rax, 0x98(%rsp)
pushq $-0x1
popq %rax
movl %eax, 0x28(%rsp)
movq %rdx, 0x78(%rsp)
movq %rsi, 0x68(%rsp)
movl %r12d, %eax
subl %esi, %eax
movl %r13d, %edi
subl %edx, %edi
movl %eax, 0x4(%rsp)
cltq
movq %rax, 0x48(%rsp)
movl %esi, %eax
subl %r12d, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movl %edx, %eax
subl %r13d, %eax
movl %eax, %r8d
negl %r8d
cmovsl %eax, %r8d
movl %edi, 0x90(%rsp)
movslq %edi, %rax
movq %rax, 0x88(%rsp)
addl %ecx, %r8d
movl %r8d, 0xc0(%rsp)
movslq %r13d, %rax
subq %rax, %rdx
movq %rdx, 0x58(%rsp)
movslq %r12d, %rax
subq %rax, %rsi
movq %rsi, 0x10(%rsp)
movq 0x98(%rsp), %rax
testl %eax, %eax
jle 0x36ceb
decq %rax
movq %rax, 0x98(%rsp)
movl %eax, %eax
shlq $0x4, %rax
leaq 0x3f41e3(%rip), %rdx    # 0x42ad40
movl (%rax,%rdx), %r10d
movl 0x4(%rax,%rdx), %r11d
movl 0x8(%rax,%rdx), %ecx
movl %ecx, %r15d
subl %r10d, %r15d
movl 0xc(%rax,%rdx), %edx
movl %edx, %ebp
subl %r11d, %ebp
movq 0x8(%rsp), %rax
movl %eax, %r9d
subl %r11d, %r9d
imull %r15d, %r9d
movl %r10d, %esi
subl %r14d, %esi
movl %ebp, %eax
imull %esi, %eax
addl %r9d, %eax
testl %eax, %eax
jle 0x36b35
movl %r13d, %r9d
subl %r11d, %r9d
imull %r15d, %r9d
movl %r12d, %ebx
subl %r10d, %ebx
imull %ebp, %ebx
cmpl %ebx, %r9d
jg 0x36b35
movl %r11d, %r9d
subl 0x8(%rsp), %r9d
imull 0x4(%rsp), %r9d
imull 0x90(%rsp), %esi
cmpl %esi, %r9d
jg 0x36b35
subl 0x8(%rsp), %edx
imull 0x4(%rsp), %edx
subl %r14d, %ecx
imull 0x90(%rsp), %ecx
cmpl %ecx, %edx
jle 0x36b35
movl %ebp, %ecx
imull 0x4(%rsp), %ecx
movl %r15d, %edx
imull 0x90(%rsp), %edx
subl %edx, %ecx
je 0x36b35
movl %r12d, 0x60(%rsp)
movl %r13d, 0xb0(%rsp)
movslq %ecx, %rcx
movq %rcx, 0x20(%rsp)
movl %eax, %edx
movq 0x88(%rsp), %rsi
imulq %rdx, %rsi
imulq 0x48(%rsp), %rdx
movl $0xfffffeff, %r13d      # imm = 0xFFFFFEFF
incl %r13d
je 0x36cfb
movq 0x58(%rsp), %rax
addq %rsi, %rax
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rax
leaq (%rdx,%rax), %rbx
movq %rdx, %rax
cqto
movq 0x20(%rsp), %rdi
idivq %rdi
movq %rax, %rcx
leal (%r14,%rax), %r8d
movq %rsi, %rax
cqto
idivq %rdi
movq 0x8(%rsp), %rdx
leal (%rdx,%rax), %edi
movl %edi, %r12d
subl %r11d, %r12d
imull %r15d, %r12d
movq %r14, %r9
movl %r8d, %r14d
subl %r10d, %r14d
imull %ebp, %r14d
movq %rbx, %rdx
movq 0x30(%rsp), %rsi
cmpl %r14d, %r12d
movq %r9, %r14
jle 0x36c36
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
addl %edx, %ecx
cmpl 0xc0(%rsp), %ecx
movl 0xb0(%rsp), %r13d
movl 0x60(%rsp), %r12d
jae 0x36b35
movl %r8d, %r12d
movl %edi, %r13d
movq 0x98(%rsp), %rax
movl %eax, 0x28(%rsp)
movq 0x78(%rsp), %rdx
movq 0x68(%rsp), %rsi
jmp 0x36ad2
movq %r14, %rcx
leaq 0x3f404b(%rip), %r10    # 0x42ad40
movl 0x28(%rsp), %edi
jmp 0x36d1a
movq %r14, %rcx
movl %r14d, %r12d
movq 0x8(%rsp), %rax
movl %eax, %r13d
movq 0x98(%rsp), %rax
movl %eax, %edi
leaq 0x3f4026(%rip), %r10    # 0x42ad40
testl %edi, %edi
movq 0x100(%rsp), %r14
movq 0xf8(%rsp), %r15
js 0x36da2
movl %r12d, 0x60(%rsp)
movl %edi, %eax
movq %rax, 0x98(%rsp)
shlq $0x4, %rax
movslq 0x8(%rax,%r10), %rsi
movslq (%rax,%r10), %r8
subq %r8, %rsi
movslq 0xc(%rax,%r10), %rbx
movslq 0x4(%rax,%r10), %r12
subq %r12, %rbx
movl %esi, %eax
imull %esi, %eax
movl %ebx, %edx
imull %ebx, %edx
addl %eax, %edx
movl %edi, 0x28(%rsp)
je 0x36dba
subl 0x60(%rsp), %r15d
imull %esi, %r15d
subl %r13d, %r14d
imull %ebx, %r14d
addl %r15d, %r14d
movl %r14d, %eax
negl %eax
cmovsl %r14d, %eax
shrl $0xb, %eax
cmpl %edx, %eax
jae 0x36dc5
movslq %r14d, %rax
shlq $0x14, %rax
movl %edx, %edi
cqto
idivq %rdi
movslq %eax, %r14
jmp 0x36dc8
movl 0xd4(%rsp), %ecx
movl 0xd0(%rsp), %edx
movq 0x38(%rsp), %rsi
jmp 0x36f32
movl %r13d, %ebp
movq %rbx, %rdx
movq %rsi, %rax
jmp 0x36dec
xorl %r14d, %r14d
movslq %esi, %rax
movq %r14, %r15
imulq %rax, %r15
shrq $0x14, %r15
addl 0x60(%rsp), %r15d
movslq %ebx, %rdx
imulq %rdx, %r14
shrq $0x14, %r14
movl %r13d, %ebp
addl %r13d, %r14d
imulq 0x50(%rsp), %rax
imulq 0x18(%rsp), %rdx
addq %rax, %rdx
movslq 0x66e56(%rip), %rax     # 0x9dc58
movq 0x38(%rsp), %r9
cmpq %rax, %r9
jge 0x36e73
leaq 0x3f876d(%rip), %rdi    # 0x42f580
movswq 0x2(%rdi,%r9,2), %rdi
incq %r9
shlq $0x4, %rdi
movslq 0x8(%rdi,%r10), %r10
leaq 0x3f3f14(%rip), %r11    # 0x42ad40
movslq (%rdi,%r11), %r11
subq %r11, %r10
leaq 0x3f3f06(%rip), %r11    # 0x42ad40
movslq 0xc(%rdi,%r11), %r11
leaq 0x3f3efa(%rip), %r13    # 0x42ad40
movslq 0x4(%rdi,%r13), %rdi
subq %rdi, %r11
imulq 0x50(%rsp), %r10
imulq 0x18(%rsp), %r11
addq %r10, %r11
xorq %rdx, %r11
btq $0x25, %r11
leaq 0x3f3ed4(%rip), %r10    # 0x42ad40
jae 0x36e07
jmp 0x36fc1
xorl %edx, %edx
testl %ebx, %ebx
setg %dl
negl %edx
testl %ebx, %ebx
pushq $0x1
popq %r9
cmovsl %r9d, %edx
movl %esi, %edi
sarl $0x1f, %edi
testl %esi, %esi
cmovgl %r9d, %edi
movl %esi, %r10d
negl %r10d
cmovsl %esi, %r10d
movl %ebx, %r11d
negl %r11d
cmovsl %ebx, %r11d
xorl %r9d, %r9d
cmpl %r11d, %r10d
setbe %r9b
movl %ebp, %r13d
movl %r14d, %r10d
subl %r12d, %r10d
imull %esi, %r10d
movl %r15d, %r11d
subl %r8d, %r11d
imull %ebx, %r11d
cmpl %r11d, %r10d
jg 0x36eeb
testl %r9d, %r9d
movl $0x0, %r10d
cmovel %edx, %r10d
movl %edi, %r11d
cmovel %r9d, %r11d
addl %r10d, %r15d
addl %r11d, %r14d
xorl $0x1, %r9d
jmp 0x36eb2
movq 0x38(%rsp), %rsi
cmpl %esi, %eax
jne 0x36f0c
leaq 0x3f7e45(%rip), %rax    # 0x42ed40
movq 0x98(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
movq %rax, 0x40(%rsp)
movl %r15d, %ecx
movl 0x60(%rsp), %r12d
subl %r12d, %ecx
shll $0xe, %ecx
movl %r14d, %edx
subl %r13d, %edx
shll $0xe, %edx
leaq 0x3f8656(%rip), %rax    # 0x42f580
movl 0x28(%rsp), %edi
movw %di, (%rax,%rsi,2)
movq 0xe0(%rsp), %rax
movl %r12d, (%rax)
movq 0xf0(%rsp), %rax
movl %r13d, (%rax)
testl %edi, %edi
js 0x36f66
movl %ecx, %eax
orl %edx, %eax
je 0x36f66
leaq -0x1(%rsi), %rax
movl %r13d, %r9d
cmpq $0x1, %rsi
movq %rax, %rsi
jg 0x36a70
xorl %ebx, %ebx
movl 0xac(%rsp), %ecx
testw %cx, %cx
movl $0x0, %eax
cmovgl %ecx, %eax
movzwl %ax, %r14d
addl %r14d, %r14d
movq 0x40(%rsp), %r15
cmpq %rbx, %r14
je 0x36fef
movq 0xe0(%rsp), %rax
movl (%rax), %edi
leaq 0x3f35a4(%rip), %rax    # 0x42a540
movzwl (%rbx,%rax), %ebp
movswl %bp, %edx
movl %r13d, %esi
callq 0x330c8
addq $0x2, %rbx
cmpl $0x1, %eax
jne 0x36f86
movq 0xe8(%rsp), %rax
movw %bp, (%rax)
jmp 0x36fda
movl %ecx, %edi
movq 0x8(%rsp), %rsi
movq 0xe8(%rsp), %rdx
callq 0x23663
movq 0x40(%rsp), %r15
movl %r15d, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe8(%rsp), %rax
orw $-0x1, (%rax)
movswq 0x391f5d(%rip), %rax    # 0x3c8f60
movl %eax, %ebx
movl $0x7fffffff, 0x98(%rsp) # imm = 0x7FFFFFFF
movl %ebx, %r12d
decq %rbx
testl %r12d, %r12d
jle 0x36fda
movq 0xe0(%rsp), %rax
movl (%rax), %ebp
movq 0xf0(%rsp), %rax
movl (%rax), %r14d
leaq 0x10000(%rbx), %r13
movswl %r13w, %edx
movl %ebp, %edi
movl %r14d, %esi
callq 0x330c8
movq 0xc8(%rsp), %rcx
cmpl $0x1, %eax
jne 0x370cc
movl %ebx, %eax
imulq $0x28, %rax, %rax
leaq 0x205a01(%rip), %rdx    # 0x23ca60
leaq (%rdx,%rax), %rsi
testb $0x2, 0xc(%rax,%rdx)
jne 0x3706f
movl 0x4(%rsi), %eax
jmp 0x3708b
movswl %r13w, %edi
movq %rsi, %r15
movl %ebp, %esi
movl %r14d, %edx
callq 0x371c4
movq %r15, %rsi
movq 0xc8(%rsp), %rcx
movl (%rcx), %r15d
subl %r15d, %eax
jle 0x3709c
cmpl 0x98(%rsp), %eax
jmp 0x370c5
testb $0x2, 0xe(%rsi)
jne 0x370a7
movl 0x8(%rsi), %eax
jmp 0x370b5
movswl %r13w, %edi
movl %ebp, %esi
movl %r14d, %edx
callq 0x370fb
subl %eax, %r15d
jle 0x370eb
movl %r15d, %eax
cmpl 0x98(%rsp), %r15d
movq 0x40(%rsp), %r15
jl 0x370d4
decl %r12d
jmp 0x37013
movq 0xe8(%rsp), %rcx
movw %bx, (%rcx)
movl %eax, 0x98(%rsp)
jmp 0x37010
movq 0xe8(%rsp), %rax
movw %bx, (%rax)
jmp 0x36fd5