private final void method113(byte i) {
	if ((Class240.anInt4674 ^ 0xffffffff) == -8
	    && Class225.anInt2955 == 0) {
	    if (Class289.anInt3699 > 1) {
		Class348_Sub40_Sub23.anInt9313 = LoadingHandler.anInt3918;
		Class289.anInt3699--;
	    }
	    if (!Class5_Sub1.aBoolean8335)
		Class64_Sub2.method661((byte) 111);
	    for (int i_95_ = 0; i_95_ < 100; i_95_++) {
		if (!FileIndexTracker.method2203((byte) -85))
		    break;
	    }
	}
	anInt5174++;
	Class348_Sub51.anInt7267++;
	Class5_Sub2.method198(null, false, -1, -1);
	Class175.method1343(-1, null, 1, -1);
	Class216.method1583((byte) -73);
	LoadingHandler.anInt3918++;
	for (int i_96_ = 0;
	     (i_96_ ^ 0xffffffff) > (Class348_Sub32.anInt6930 ^ 0xffffffff);
	     i_96_++) {
	    Npc class318_sub1_sub3_sub3_sub1
		= (((Class348_Sub22)
		    Class348_Sub40_Sub23.aClass348_Sub22Array9319[i_96_])
		   .aClass318_Sub1_Sub3_Sub3_Sub1_6859);
	    if (class318_sub1_sub3_sub3_sub1 != null) {
		byte i_97_ = (((NpcDefinition) (((Npc)
					   class318_sub1_sub3_sub3_sub1)
					  .definition))
			      .aByte1325);
		if ((i_97_ & 0x1) != 0) {
		    int i_98_
			= class318_sub1_sub3_sub3_sub1.method2436((byte) 117);
		    if ((0x2 & i_97_ ^ 0xffffffff) != -1
			&& ((Mob)
			    class318_sub1_sub3_sub3_sub1).anInt10319 == 0
			&& Math.random() * 1000.0 < 10.0) {
			int i_99_
			    = (int) Math.round(-5.0 + 10.0 * Math.random());
			int i_100_
			    = (int) Math.round(10.0 * Math.random() - 5.0);
			if ((i_99_ ^ 0xffffffff) != -1
			    || (i_100_ ^ 0xffffffff) != -1) {
			    int i_101_ = ((((Mob)
					    class318_sub1_sub3_sub3_sub1)
					   .xList[0])
					  - -i_99_);
			    if (i_101_ < 0)
				i_101_ = 0;
			    else if ((Class367_Sub4.mapSizeX + -i_98_ + -1
				      ^ 0xffffffff)
				     > (i_101_ ^ 0xffffffff))
				i_101_
				    = -1 + (-i_98_ + Class367_Sub4.mapSizeX);
			    int i_102_
				= i_100_ + (((Mob)
					     class318_sub1_sub3_sub3_sub1)
					    .yList[0]);
			    if (i_102_ < 0)
				i_102_ = 0;
			    else if ((i_102_ ^ 0xffffffff)
				     < ((-i_98_ + Class348_Sub40_Sub3.mapSizeY
					 - 1)
					^ 0xffffffff))
				i_102_ = (-i_98_
					  + Class348_Sub40_Sub3.mapSizeY - 1);
			    int i_103_ = (Class59_Sub2_Sub2.method574
					  (i_101_, i_98_, i_98_,
					   Class348_Sub40_Sub11.anIntArray9185,
					   true, (byte) 120, -1,
					   (((Mob)
					     class318_sub1_sub3_sub3_sub1)
					    .xList[0]),
					   (((Mob)
					     class318_sub1_sub3_sub3_sub1)
					    .yList[0]),
					   Class348_Sub42_Sub14.anIntArray9626,
					   i_102_,
					   (AbstractMouseEvent.aClass361Array7108
					    [(((Class318_Sub1)
					       class318_sub1_sub3_sub3_sub1)
					      .heightLevel)]),
					   i_98_, 0, 0));
			    if ((i_103_ ^ 0xffffffff) < -1) {
				if ((i_103_ ^ 0xffffffff) < -10)
				    i_103_ = 9;
				for (int i_104_ = 0; i_103_ > i_104_;
				     i_104_++) {
				    ((Mob)
				     class318_sub1_sub3_sub3_sub1)
					.xList[i_104_]
					= (Class348_Sub42_Sub14.anIntArray9626
					   [-1 + (-i_104_ + i_103_)]);
				    ((Mob)
				     class318_sub1_sub3_sub3_sub1)
					.yList[i_104_]
					= (Class348_Sub40_Sub11.anIntArray9185
					   [-1 + (-i_104_ + i_103_)]);
				    ((Mob)
				     class318_sub1_sub3_sub3_sub1)
					.aByteArray10321[i_104_]
					= (byte) 1;
				}
				((Mob)
				 class318_sub1_sub3_sub3_sub1).anInt10319
				    = i_103_;
			    }
			}
		    }
		    Class219.method1600(true, 0, class318_sub1_sub3_sub3_sub1);
		    int i_105_ = (Class348_Sub8.method2774
				  ((byte) 108, class318_sub1_sub3_sub3_sub1));
		    za_Sub2.method3443(true, class318_sub1_sub3_sub3_sub1);
		    Class71.method729(Class235.anInt3062, i_105_, (byte) 122,
				      class318_sub1_sub3_sub3_sub1,
				      Class127_Sub1.anInt8387);
		    Class348_Sub42_Sub9_Sub1.method3208
			(class318_sub1_sub3_sub3_sub1, Class235.anInt3062,
			 -84);
		    GameMode.method1635(-106, class318_sub1_sub3_sub3_sub1);
		}
	    }
	}
	if ((Class225.anInt2955 ^ 0xffffffff) == -1
	    && (Class367_Sub2.anInt7297 ^ 0xffffffff) == -1) {
	    if (Class348_Sub40_Sub21.anInt9282 == 2)
		Class14_Sub1.method241((byte) 127);
	    else
		Class348_Sub21.method2954((byte) -127);
	    if ((Class286_Sub4.anInt6246 >> -1885185047 ^ 0xffffffff) > -15
		|| (Class286_Sub4.anInt6246 >> 817127913
		    >= -14 + Class367_Sub4.mapSizeX)
		|| ((Class59_Sub2_Sub2.anInt8685 >> 114206697 ^ 0xffffffff)
		    > -15)
		|| ((Class59_Sub2_Sub2.anInt8685 >> 1350311433 ^ 0xffffffff)
		    <= (Class348_Sub40_Sub3.mapSizeY + -14 ^ 0xffffffff)))
		Class101.method893();
	}
	if (i != 112)
	    anInt5171 = 22;
	for (;;) {
	    InterfaceScript class348_sub36 = (InterfaceScript) OutputstreamWorker.aClass262_2707.removeFirst(8);
	    if (class348_sub36 == null)
		break;
	    Widget class46 = ((InterfaceScript) class348_sub36).parent;
	    if ((((Widget) class46).anInt704 ^ 0xffffffff) <= -1) {
		Widget class46_106_
		    = AbstractFontRasterizer.getWidget(((Widget) class46).anInt834);
		if (class46_106_ == null
		    || ((Widget) class46_106_).children == null
		    || ((((Widget) class46).anInt704 ^ 0xffffffff)
			<= (((Widget) class46_106_).children.length
			    ^ 0xffffffff))
		    || class46 != (((Widget) class46_106_).children
				   [((Widget) class46).anInt704]))
		    continue;
	    }
	    ScriptExecutor.executeScript(class348_sub36);
	}
	for (;;) {
	    InterfaceScript class348_sub36
		= ((InterfaceScript)
		   ToolkitInfo.aClass262_4473.removeFirst(i + -104));
	    if (class348_sub36 == null)
		break;
	    Widget class46 = ((InterfaceScript) class348_sub36).parent;
	    if ((((Widget) class46).anInt704 ^ 0xffffffff) <= -1) {
		Widget class46_107_
		    = AbstractFontRasterizer.getWidget(((Widget) class46).anInt834);
		if (class46_107_ == null
		    || ((Widget) class46_107_).children == null
		    || (((Widget) class46_107_).children.length
			<= ((Widget) class46).anInt704)
		    || class46 != (((Widget) class46_107_).children
				   [((Widget) class46).anInt704]))
		    continue;
	    }
	    ScriptExecutor.executeScript(class348_sub36);
	}
	for (;;) {
	    InterfaceScript class348_sub36 = ((InterfaceScript) Class348_Sub1_Sub2.aClass262_8810.removeFirst(i ^ 0x78));
	    if (class348_sub36 == null)
		break;
	    Widget class46 = ((InterfaceScript) class348_sub36).parent;
	    if ((((Widget) class46).anInt704 ^ 0xffffffff) <= -1) {
		Widget class46_108_ = AbstractFontRasterizer.getWidget(((Widget) class46).anInt834);
		if (class46_108_ == null
		    || ((Widget) class46_108_).children == null
		    || (((Widget) class46_108_).children.length
			<= ((Widget) class46).anInt704)
		    || class46 != (((Widget) class46_108_).children
				   [((Widget) class46).anInt704]))
		    continue;
	    }
	    ScriptExecutor.executeScript(class348_sub36);
	}
	if (Class289.aClass46_3701 != null)
	    Class347.method2708(-30206);
	if (Class367_Sub11.logicCycle % 1500 == 0)
	    Class348_Sub40_Sub16.method3088(9);
	if ((Class240.anInt4674 ^ 0xffffffff) == -8 && Class225.anInt2955 == 0)
	    Class261.method1987(-124);
	Class101.method909(3553);
	if (Class184.aBoolean2469
	    && ((Class62.getCurrentTimeMillis() + -60000L ^ 0xffffffffffffffffL)
		< (Class34.aLong482 ^ 0xffffffffffffffffL)))
	    Class318_Sub1_Sub2.writeScriptSettings(41);
	for (Class318_Sub9_Sub1 class318_sub9_sub1
		 = ((Class318_Sub9_Sub1)
		    Class348_Sub42_Sub14.aClass243_9642.method1872(8));
	     class318_sub9_sub1 != null;
	     class318_sub9_sub1
		 = (Class318_Sub9_Sub1) Class348_Sub42_Sub14.aClass243_9642
					    .method1878((byte) -43)) {
	    if ((-5L + Class62.getCurrentTimeMillis() / 1000L ^ 0xffffffffffffffffL)
		< ((long) ((Class318_Sub9_Sub1) class318_sub9_sub1).anInt8787
		   ^ 0xffffffffffffffffL)) {
		if ((((Class318_Sub9_Sub1) class318_sub9_sub1).aShort8786
		     ^ 0xffffffff)
		    < -1)
		    Class286_Sub2.handleMessage
			("", 5, 0,
			 (((Class318_Sub9_Sub1) class318_sub9_sub1).aString8783
			  + GameText.aClass274_3502
				.getLanguageText(Class348_Sub33.gameLanguage)),
			 "", "");
		if ((((Class318_Sub9_Sub1) class318_sub9_sub1).aShort8786
		     ^ 0xffffffff)
		    == -1)
		    Class286_Sub2.handleMessage
			("", 5, 0,
			 (((Class318_Sub9_Sub1) class318_sub9_sub1).aString8783
			  + GameText.aClass274_3503.getLanguageText((Class348_Sub33
								.gameLanguage))),
			 "", "");
		class318_sub9_sub1.method2373(false);
	    }
	}
	do {
	    if (Class240.anInt4674 == 7 && Class225.anInt2955 == 0) {
		if (Class348_Sub40_Sub8.gameConnection == null)
		    Class348_Sub40_Sub34.method3141(false, (byte) 11);
		else {
		    Class11.anInt193++;
		    if ((Class11.anInt193 ^ 0xffffffff) < -51) {
			IOException_Sub1.anInt88++;
			BufferedPacket class348_sub47
			    = Class286_Sub3.createBufferedPacket((Class239_Sub10
							.aClass351_5938),
						       (Class348_Sub23_Sub2
							.outgoingGameIsaac));
			Class348_Sub42_Sub14.queuePacket(-49, class348_sub47);
		    }
		    try {
			Class239_Sub18.method1802(0);
		    } catch (java.io.IOException ioexception) {
			Class348_Sub40_Sub34.method3141(false, (byte) 11);
			break;
		    }
		    break;
		}
		break;
	    }
	} while (false);
    }