// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: drawmaskwall
static void drawmaskwall(short damaskwallcnt)
{
	int i, j, k, x, z, sectnum, z1, z2, lx, rx;
	sectortype *sec, *nsec;
	walltype *wal;

	//============================================================================= //POLYMOST BEGINS
#if USE_POLYMOST
	if (rendmode) { polymost_drawmaskwall(damaskwallcnt); return; }
#endif
	//============================================================================= //POLYMOST ENDS

	z = maskwall[damaskwallcnt];
	wal = &wall[thewall[z]];
	sectnum = thesector[z]; sec = &sector[sectnum];
	nsec = &sector[wal->nextsector];
	z1 = max(nsec->ceilingz,sec->ceilingz);
	z2 = min(nsec->floorz,sec->floorz);

	wallmost(uwall,z,sectnum,(char)0);
	wallmost(uplc,z,(int)wal->nextsector,(char)0);
	for(x=xb1[z];x<=xb2[z];x++) if (uplc[x] > uwall[x]) uwall[x] = uplc[x];
	wallmost(dwall,z,sectnum,(char)1);
	wallmost(dplc,z,(int)wal->nextsector,(char)1);
	for(x=xb1[z];x<=xb2[z];x++) if (dplc[x] < dwall[x]) dwall[x] = dplc[x];
	prepwall(z,wal);

	globalorientation = (int)wal->cstat;
	globalpicnum = wal->overpicnum;
	if ((unsigned)globalpicnum >= (unsigned)MAXTILES) globalpicnum = 0;
	globalxpanning = (int)wal->xpanning;
	globalypanning = (int)wal->ypanning;
	if (picanm[globalpicnum]&192) globalpicnum += animateoffs(globalpicnum,(short)thewall[z]+16384);
	globalshade = (int)wal->shade;
	globvis = globalvisibility;
	if (sec->visibility != 0) globvis = mulscale4(globvis,(int)((unsigned char)(sec->visibility+16)));
	globalpal = (int)wal->pal;
	if (palookup[globalpal] == 0) globalpal = 0;
	globalshiftval = (picsiz[globalpicnum]>>4);
	if (pow2long[globalshiftval] != tilesizy[globalpicnum]) globalshiftval++;
	globalshiftval = 32-globalshiftval;
	globalyscale = (wal->yrepeat<<(globalshiftval-19));
	if ((globalorientation&4) == 0)
		globalzd = (((globalposz-z1)*globalyscale)<<8);
	else
		globalzd = (((globalposz-z2)*globalyscale)<<8);
	globalzd += (globalypanning<<24);
	if (globalorientation&256) globalyscale = -globalyscale, globalzd = -globalzd;

	for(i=smostwallcnt-1;i>=0;i--)
	{
		j = smostwall[i];
		if ((xb1[j] > xb2[z]) || (xb2[j] < xb1[z])) continue;
		if (wallfront(j,z)) continue;

		lx = max(xb1[j],xb1[z]); rx = min(xb2[j],xb2[z]);

		switch(smostwalltype[i])
		{
			case 0:
				if (lx <= rx)
				{
					if ((lx == xb1[z]) && (rx == xb2[z])) return;
					//clearbufbyte(&dwall[lx],(rx-lx+1)*sizeof(dwall[0]),0L);
					for (x=lx; x<=rx; x++) dwall[x] = 0;
				}
				break;
			case 1:
				k = smoststart[i] - xb1[j];
				for(x=lx;x<=rx;x++)
					if (smost[k+x] > uwall[x]) uwall[x] = smost[k+x];
				break;
			case 2:
				k = smoststart[i] - xb1[j];
				for(x=lx;x<=rx;x++)
					if (smost[k+x] < dwall[x]) dwall[x] = smost[k+x];
				break;
		}
	}

		//maskwall
	if ((searchit >= 1) && (searchx >= xb1[z]) && (searchx <= xb2[z]))
		if ((searchy >= uwall[searchx]) && (searchy <= dwall[searchx]))
		{
			searchsector = sectnum; searchwall = thewall[z];
			searchstat = 4; searchit = 1;
		}

	if ((globalorientation&128) == 0)
		maskwallscan(xb1[z],xb2[z],uwall,dwall,swall,lwall);
	else
	{
		if (globalorientation&128)
		{
			if (globalorientation&512) settransreverse(); else settransnormal();
		}
		transmaskwallscan(xb1[z],xb2[z]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movw %di, %ax
movw %ax, -0x2(%rbp)
leaq 0x5ac3ea(%rip), %rax    # 0x5ed920
cmpl $0x0, (%rax)
je 0x41549
movswl -0x2(%rbp), %edi
callq 0x82bf0
jmp 0x41d97
movswq -0x2(%rbp), %rcx
leaq 0x3ff7eb(%rip), %rax    # 0x440d40
movswl (%rax,%rcx,2), %eax
movl %eax, -0x18(%rbp)
movslq -0x18(%rbp), %rcx
leaq 0x234049(%rip), %rax    # 0x2755b0
movswq (%rax,%rcx,2), %rcx
leaq 0x1b403d(%rip), %rax    # 0x1f55b0
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movslq -0x18(%rbp), %rcx
leaq 0x442647(%rip), %rax    # 0x483bd0
movswl (%rax,%rcx,2), %eax
movl %eax, -0x1c(%rbp)
movslq -0x1c(%rbp), %rcx
leaq 0x23f025(%rip), %rax    # 0x2805c0
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x48(%rbp), %rax
movswq 0xc(%rax), %rcx
leaq 0x23f00a(%rip), %rax    # 0x2805c0
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jle 0x415dd
movq -0x40(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x415e7
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x41609
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
jmp 0x41613
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
leaq 0x558aba(%rip), %rdi    # 0x59a0e0
xorl %ecx, %ecx
callq 0x36310
movl -0x18(%rbp), %esi
movq -0x48(%rbp), %rax
movswl 0xc(%rax), %edx
leaq 0x444591(%rip), %rdi    # 0x485bd0
xorl %ecx, %ecx
callq 0x36310
movslq -0x18(%rbp), %rcx
leaq 0x266f7f(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movslq -0x18(%rbp), %rdx
leaq 0x26af7b(%rip), %rcx    # 0x2ac5e0
cmpl (%rcx,%rdx,4), %eax
jg 0x416b7
movslq -0x14(%rbp), %rcx
leaq 0x44455b(%rip), %rax    # 0x485bd0
movswl (%rax,%rcx,2), %eax
movslq -0x14(%rbp), %rdx
leaq 0x558a5c(%rip), %rcx    # 0x59a0e0
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jle 0x416aa
movslq -0x14(%rbp), %rcx
leaq 0x444539(%rip), %rax    # 0x485bd0
movw (%rax,%rcx,2), %dx
movslq -0x14(%rbp), %rcx
leaq 0x558a3a(%rip), %rax    # 0x59a0e0
movw %dx, (%rax,%rcx,2)
jmp 0x416ac
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x41657
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
leaq 0x49b98c(%rip), %rdi    # 0x4dd050
movl $0x1, %ecx
callq 0x36310
movl -0x18(%rbp), %esi
movq -0x48(%rbp), %rax
movswl 0xc(%rax), %edx
leaq 0x445b70(%rip), %rdi    # 0x487250
movl $0x1, %ecx
callq 0x36310
movslq -0x18(%rbp), %rcx
leaq 0x266edb(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movslq -0x18(%rbp), %rdx
leaq 0x26aed7(%rip), %rcx    # 0x2ac5e0
cmpl (%rcx,%rdx,4), %eax
jg 0x4175b
movslq -0x14(%rbp), %rcx
leaq 0x445b37(%rip), %rax    # 0x487250
movswl (%rax,%rcx,2), %eax
movslq -0x14(%rbp), %rdx
leaq 0x49b928(%rip), %rcx    # 0x4dd050
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jge 0x4174e
movslq -0x14(%rbp), %rcx
leaq 0x445b15(%rip), %rax    # 0x487250
movw (%rax,%rcx,2), %dx
movslq -0x14(%rbp), %rcx
leaq 0x49b906(%rip), %rax    # 0x4dd050
movw %dx, (%rax,%rcx,2)
jmp 0x41750
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x416fb
movl -0x18(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x5e180
movq -0x48(%rbp), %rax
movswl 0xe(%rax), %eax
movl %eax, 0x4095eb(%rip)    # 0x44ad60
movq -0x48(%rbp), %rax
movw 0x12(%rax), %ax
movw %ax, 0x4095ec(%rip)     # 0x44ad70
movswl 0x4095e5(%rip), %eax    # 0x44ad70
cmpl $0x2400, %eax           # imm = 0x2400
jb 0x4179b
movw $0x0, 0x4095d5(%rip)    # 0x44ad70
movq -0x48(%rbp), %rax
movzbl 0x18(%rax), %eax
movl %eax, 0x447197(%rip)    # 0x488940
movq -0x48(%rbp), %rax
movzbl 0x19(%rax), %eax
movl %eax, 0x44718d(%rip)    # 0x488944
movswq 0x4095b1(%rip), %rcx    # 0x44ad70
leaq 0x235dfa(%rip), %rax    # 0x2775c0
movl (%rax,%rcx,4), %eax
andl $0xc0, %eax
cmpl $0x0, %eax
je 0x4180b
movw 0x409596(%rip), %cx     # 0x44ad70
movslq -0x18(%rbp), %rdx
leaq 0x233dcb(%rip), %rax    # 0x2755b0
movswl (%rax,%rdx,2), %eax
addl $0x4000, %eax           # imm = 0x4000
movswl %cx, %edi
movswl %ax, %esi
callq 0x361e0
movl %eax, %ecx
movswl 0x40956e(%rip), %eax    # 0x44ad70
addl %ecx, %eax
movw %ax, 0x409565(%rip)     # 0x44ad70
movq -0x48(%rbp), %rax
movsbl 0x14(%rax), %eax
movl %eax, 0x40dd73(%rip)    # 0x44f58c
movl 0x3ca081(%rip), %eax    # 0x40b8a0
movl %eax, 0x40dd6b(%rip)    # 0x44f590
movq -0x38(%rbp), %rax
movzbl 0x20(%rax), %eax
cmpl $0x0, %eax
je 0x41851
movl 0x40dd58(%rip), %edi    # 0x44f590
movq -0x38(%rbp), %rax
movzbl 0x20(%rax), %eax
addl $0x10, %eax
movzbl %al, %esi
callq 0x44ff0
movl %eax, 0x40dd3f(%rip)    # 0x44f590
movq -0x48(%rbp), %rax
movzbl 0x15(%rax), %eax
movl %eax, 0x409505(%rip)    # 0x44ad64
movslq 0x4094fe(%rip), %rcx    # 0x44ad64
leaq 0x393dd3(%rip), %rax    # 0x3d5640
cmpq $0x0, (%rax,%rcx,8)
jne 0x4187e
movl $0x0, 0x4094e6(%rip)    # 0x44ad64
movswq 0x4094ea(%rip), %rcx    # 0x44ad70
leaq 0x40dd23(%rip), %rax    # 0x44f5b0
movzbl (%rax,%rcx), %eax
sarl $0x4, %eax
movw %ax, 0x4470ad(%rip)     # 0x488948
movswq 0x4470a5(%rip), %rcx    # 0x488948
leaq 0x9f3f6(%rip), %rax     # 0xe0ca0
movl (%rax,%rcx,4), %eax
movswq 0x4094bb(%rip), %rdx    # 0x44ad70
leaq 0x3fac84(%rip), %rcx    # 0x43c540
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
je 0x418d6
movw 0x44707d(%rip), %ax     # 0x488948
addw $0x1, %ax
movw %ax, 0x447072(%rip)     # 0x488948
movswl 0x44706b(%rip), %ecx    # 0x488948
movl $0x20, %eax
subl %ecx, %eax
movw %ax, 0x44705d(%rip)     # 0x488948
movq -0x48(%rbp), %rax
movzbl 0x17(%rax), %eax
movswl 0x44704e(%rip), %ecx    # 0x488948
subl $0x13, %ecx
shll %cl, %eax
movl %eax, 0x44704b(%rip)    # 0x488950
movl 0x409455(%rip), %eax    # 0x44ad60
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x4192e
movl 0x266ca7(%rip), %eax    # 0x2a85c0
subl -0x20(%rbp), %eax
imull 0x44702d(%rip), %eax    # 0x488950
shll $0x8, %eax
movl %eax, 0x447020(%rip)    # 0x48894c
jmp 0x41947
movl 0x266c8c(%rip), %eax    # 0x2a85c0
subl -0x24(%rbp), %eax
imull 0x447012(%rip), %eax    # 0x488950
shll $0x8, %eax
movl %eax, 0x447005(%rip)    # 0x48894c
movl 0x446ff7(%rip), %eax    # 0x488944
shll $0x18, %eax
addl 0x446ff6(%rip), %eax    # 0x48894c
movl %eax, 0x446ff0(%rip)    # 0x48894c
movl 0x4093fe(%rip), %eax    # 0x44ad60
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x41988
xorl %eax, %eax
subl 0x446fdc(%rip), %eax    # 0x488950
movl %eax, 0x446fd6(%rip)    # 0x488950
xorl %eax, %eax
subl 0x446fca(%rip), %eax    # 0x48894c
movl %eax, 0x446fc4(%rip)    # 0x48894c
movl 0x9f7be(%rip), %eax     # 0xe114c
subl $0x1, %eax
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
jl 0x41c4d
movslq -0x8(%rbp), %rcx
leaq 0x4966a7(%rip), %rax    # 0x4d8050
movl (%rax,%rcx,4), %eax
movl %eax, -0xc(%rbp)
movslq -0xc(%rbp), %rcx
leaq 0x266c16(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %eax
movslq -0x18(%rbp), %rdx
leaq 0x26ac18(%rip), %rcx    # 0x2ac5e0
cmpl (%rcx,%rdx,4), %eax
jg 0x419eb
movslq -0xc(%rbp), %rcx
leaq 0x26ac08(%rip), %rax    # 0x2ac5e0
movl (%rax,%rcx,4), %eax
movslq -0x18(%rbp), %rdx
leaq 0x266bea(%rip), %rcx    # 0x2a85d0
cmpl (%rcx,%rdx,4), %eax
jge 0x419f0
jmp 0x41c3f
movl -0xc(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x35f40
cmpl $0x0, %eax
je 0x41a05
jmp 0x41c3f
movslq -0xc(%rbp), %rcx
leaq 0x266bc0(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %eax
movslq -0x18(%rbp), %rdx
leaq 0x266bb2(%rip), %rcx    # 0x2a85d0
cmpl (%rcx,%rdx,4), %eax
jle 0x41a36
movslq -0xc(%rbp), %rcx
leaq 0x266ba2(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %eax
movl %eax, -0x54(%rbp)
jmp 0x41a47
movslq -0x18(%rbp), %rcx
leaq 0x266b8f(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x28(%rbp)
movslq -0xc(%rbp), %rcx
leaq 0x26ab88(%rip), %rax    # 0x2ac5e0
movl (%rax,%rcx,4), %eax
movslq -0x18(%rbp), %rdx
leaq 0x26ab7a(%rip), %rcx    # 0x2ac5e0
cmpl (%rcx,%rdx,4), %eax
jge 0x41a7e
movslq -0xc(%rbp), %rcx
leaq 0x26ab6a(%rip), %rax    # 0x2ac5e0
movl (%rax,%rcx,4), %eax
movl %eax, -0x58(%rbp)
jmp 0x41a8f
movslq -0x18(%rbp), %rcx
leaq 0x26ab57(%rip), %rax    # 0x2ac5e0
movl (%rax,%rcx,4), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x2c(%rbp)
movslq -0x8(%rbp), %rax
leaq 0x49a5b0(%rip), %rcx    # 0x4dc050
movzbl (%rax,%rcx), %eax
movl %eax, -0x5c(%rbp)
testl %eax, %eax
je 0x41ac8
jmp 0x41aad
movl -0x5c(%rbp), %eax
subl $0x1, %eax
je 0x41b2c
jmp 0x41ab7
movl -0x5c(%rbp), %eax
subl $0x2, %eax
je 0x41bb6
jmp 0x41c3d
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jg 0x41b27
movl -0x28(%rbp), %eax
movslq -0x18(%rbp), %rdx
leaq 0x266af2(%rip), %rcx    # 0x2a85d0
cmpl (%rcx,%rdx,4), %eax
jne 0x41afb
movl -0x2c(%rbp), %eax
movslq -0x18(%rbp), %rdx
leaq 0x26aaef(%rip), %rcx    # 0x2ac5e0
cmpl (%rcx,%rdx,4), %eax
jne 0x41afb
jmp 0x41d97
movl -0x28(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jg 0x41b25
movslq -0x14(%rbp), %rcx
leaq 0x49b53c(%rip), %rax    # 0x4dd050
movw $0x0, (%rax,%rcx,2)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x41b01
jmp 0x41b27
jmp 0x41c3d
movslq -0x8(%rbp), %rcx
leaq 0x4a25a9(%rip), %rax    # 0x4e40e0
movswl (%rax,%rcx,2), %eax
movslq -0xc(%rbp), %rdx
leaq 0x266a8a(%rip), %rcx    # 0x2a85d0
subl (%rcx,%rdx,4), %eax
movl %eax, -0x10(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jg 0x41bb1
movl -0x10(%rbp), %eax
addl -0x14(%rbp), %eax
movslq %eax, %rcx
leaq 0x4a4576(%rip), %rax    # 0x4e60e0
movswl (%rax,%rcx,2), %eax
movslq -0x14(%rbp), %rdx
leaq 0x558567(%rip), %rcx    # 0x59a0e0
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jle 0x41ba4
movl -0x10(%rbp), %eax
addl -0x14(%rbp), %eax
movslq %eax, %rcx
leaq 0x4a454f(%rip), %rax    # 0x4e60e0
movw (%rax,%rcx,2), %dx
movslq -0x14(%rbp), %rcx
leaq 0x558540(%rip), %rax    # 0x59a0e0
movw %dx, (%rax,%rcx,2)
jmp 0x41ba6
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x41b52
jmp 0x41c3d
movslq -0x8(%rbp), %rcx
leaq 0x4a251f(%rip), %rax    # 0x4e40e0
movswl (%rax,%rcx,2), %eax
movslq -0xc(%rbp), %rdx
leaq 0x266a00(%rip), %rcx    # 0x2a85d0
subl (%rcx,%rdx,4), %eax
movl %eax, -0x10(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jg 0x41c3b
movl -0x10(%rbp), %eax
addl -0x14(%rbp), %eax
movslq %eax, %rcx
leaq 0x4a44ec(%rip), %rax    # 0x4e60e0
movswl (%rax,%rcx,2), %eax
movslq -0x14(%rbp), %rdx
leaq 0x49b44d(%rip), %rcx    # 0x4dd050
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jge 0x41c2e
movl -0x10(%rbp), %eax
addl -0x14(%rbp), %eax
movslq %eax, %rcx
leaq 0x4a44c5(%rip), %rax    # 0x4e60e0
movw (%rax,%rcx,2), %dx
movslq -0x14(%rbp), %rcx
leaq 0x49b426(%rip), %rax    # 0x4dd050
movw %dx, (%rax,%rcx,2)
jmp 0x41c30
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x41bdc
jmp 0x41c3d
jmp 0x41c3f
movl -0x8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x41994
movswl 0x3939dc(%rip), %eax    # 0x3d5630
cmpl $0x1, %eax
jl 0x41cf9
movl 0x9f4cd(%rip), %eax     # 0xe1130
movslq -0x18(%rbp), %rdx
leaq 0x266962(%rip), %rcx    # 0x2a85d0
cmpl (%rcx,%rdx,4), %eax
jl 0x41cf9
movl 0x9f4b3(%rip), %eax     # 0xe1130
movslq -0x18(%rbp), %rdx
leaq 0x26a958(%rip), %rcx    # 0x2ac5e0
cmpl (%rcx,%rdx,4), %eax
jg 0x41cf9
movl 0x411a15(%rip), %eax    # 0x4536a8
movslq 0x9f496(%rip), %rdx     # 0xe1130
leaq 0x55843f(%rip), %rcx    # 0x59a0e0
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jl 0x41cf7
movl 0x4119f9(%rip), %eax    # 0x4536a8
movslq 0x9f47a(%rip), %rdx     # 0xe1130
leaq 0x49b393(%rip), %rcx    # 0x4dd050
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jg 0x41cf7
movl -0x1c(%rbp), %eax
movw %ax, 0x448ae1(%rip)     # 0x48a7b0
movslq -0x18(%rbp), %rcx
leaq 0x2338d6(%rip), %rax    # 0x2755b0
movw (%rax,%rcx,2), %ax
movw %ax, 0x448acd(%rip)     # 0x48a7b2
movw $0x4, 0x393944(%rip)    # 0x3d5632
movw $0x1, 0x393939(%rip)    # 0x3d5630
jmp 0x41cf9
movl 0x409061(%rip), %eax    # 0x44ad60
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x41d48
movslq -0x18(%rbp), %rcx
leaq 0x2668bc(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %edi
movslq -0x18(%rbp), %rcx
leaq 0x26a8be(%rip), %rax    # 0x2ac5e0
movl (%rax,%rcx,4), %esi
leaq 0x5583b4(%rip), %rdx    # 0x59a0e0
leaq 0x49b31d(%rip), %rcx    # 0x4dd050
leaq 0x49c996(%rip), %r8     # 0x4de6d0
leaq 0x49f68f(%rip), %r9     # 0x4e13d0
callq 0x5f080
jmp 0x41d97
movl 0x409012(%rip), %eax    # 0x44ad60
andl $0x80, %eax
cmpl $0x0, %eax
je 0x41d76
movl 0x409002(%rip), %eax    # 0x44ad60
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x41d6f
callq 0xa75a0
jmp 0x41d74
callq 0xa7590
jmp 0x41d76
movslq -0x18(%rbp), %rcx
leaq 0x26684f(%rip), %rax    # 0x2a85d0
movl (%rax,%rcx,4), %edi
movslq -0x18(%rbp), %rcx
leaq 0x26a851(%rip), %rax    # 0x2ac5e0
movl (%rax,%rcx,4), %esi
callq 0x5f4e0
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)