static final void method3141(boolean bool, byte i) {
	if (Class348_Sub40_Sub8.gameConnection != null) {
	    Class348_Sub40_Sub8.gameConnection.method1700((byte) 36);
	    Class348_Sub40_Sub8.gameConnection = null;
	}
	anInt9437++;
	Class225.anInt2955 = 0;
	Class348_Sub18.method2938((byte) 87);
	Mob.method2433();
	if (i != 11)
	    anIntArray9436 = null;
	for (int i_2_ = 0; (i_2_ ^ 0xffffffff) > -5; i_2_++)
	    AbstractMouseEvent.aClass361Array7108[i_2_].method3500(700);
	Class348_Sub42_Sub3.method3177(-50, false);
	System.gc();
	AbstractImageFetcher.method3007(2, 22684);
	EntityPacket.aBoolean1236 = false;
	RequiredElement.anInt3428 = -1;
	Class348_Sub40_Sub17_Sub1.method3093(i + 79);
	Class101_Sub2.method921((byte) 99, true);
	Class90.baseRegionY = 0;
	za_Sub2.baseRegionX = 0;
	AbstractToolkit.chnkX = 0;
	Class327.chnkY = 0;
	Class83.anInt1447 = Class312.anInt3931 = 0;
	for (int i_3_ = 0;
	     ((Class348_Sub27.aClass302Array6897.length ^ 0xffffffff)
	      < (i_3_ ^ 0xffffffff));
	     i_3_++)
	    Class348_Sub27.aClass302Array6897[i_3_] = null;
	SubNode.method3163((byte) -114);
	for (int i_4_ = 0; (i_4_ ^ 0xffffffff) > -2049; i_4_++)
	    ClassicLoadingScreen.onscreenPlayers[i_4_] = null;
	Class150.anInt2057 = 0;
	Class282.aClass356_3654.removeAll(i ^ 0xb);
	Class348_Sub32.anInt6930 = 0;
	Class130.aClass356_1895.removeAll(0);
	Class128.method1122(0);
	Class135_Sub1.anInt4718 = 0;
	Mob.varbitHandler.reset();
	Class301.method2282(-12648);
	Class50_Sub3.method465(i + -1636518175);
	Class101_Sub2.aLong5745 = 0L;
	Class239_Sub4.aClass348_Sub26_5881 = null;
	if (bool)
	    ByteBuffer.setClientState(2, 12);
	else {
	    ByteBuffer.setClientState(i + -9, 3);
	    try {
		Class224.method1617((byte) 125, Class93.loaderApplet,
				    "loggedout");
	    } catch (Throwable throwable) {
		/* empty */
	    }
	}
    }