static final boolean parseIncomingPacket(boolean bool) throws IOException {
		anInt10430++;
		if (Class348_Sub40_Sub8.gameConnection == null)
			return false;
		if (Class348_Sub3.currentIncomingPacket == null) {
			if (Class108.aBoolean1661) {
				if (!Class348_Sub40_Sub8.gameConnection.method1705(1, 119))
					return false;
				Class348_Sub40_Sub8.gameConnection.read
				(1, 0, (byte) 6,
						(((ByteBuffer) Class299.gameBuffer)
								.payload));
				StringNode.anInt7213 = 0;
				Class108.aBoolean1661 = false;
				Class13.anInt221++;
			}
			((ByteBuffer) Class299.gameBuffer).position = 0;
			if (Class299.gameBuffer.isLargePacket(-1510)) {
				if (!Class348_Sub40_Sub8.gameConnection.method1705(1, 119))
					return false;
				Class348_Sub40_Sub8.gameConnection.read
				(1, 1, (byte) 26,
						(((ByteBuffer) Class299.gameBuffer)
								.payload));
				Class13.anInt221++;
				StringNode.anInt7213 = 0;
			}
			Class108.aBoolean1661 = true;
			ServerPacket[] packets = Class14_Sub3.getIncomingPackets(-11271);
			int i = Class299.gameBuffer.decipherPacket(15295);
			if (i < 0 || (packets.length ^ 0xffffffff) >= (i ^ 0xffffffff))
				throw new IOException("invo:" + i + " ip:" + (((ByteBuffer) Class299.gameBuffer).position));
			Class348_Sub3.currentIncomingPacket = packets[i];
			Class348_Sub40_Sub25.currentPacketSize = ((ServerPacket) Class348_Sub3.currentIncomingPacket).size;
		}
		if (Class348_Sub40_Sub25.currentPacketSize == -1) {
			if (!Class348_Sub40_Sub8.gameConnection.method1705(1, 116))
				return false;
			Class348_Sub40_Sub8.gameConnection.read
			(1, 0, (byte) -118,
					(((ByteBuffer) Class299.gameBuffer)
							.payload));
			Class348_Sub40_Sub25.currentPacketSize
			= 0xff & (((ByteBuffer) Class299.gameBuffer)
					.payload[0]);
			Class13.anInt221++;
			StringNode.anInt7213 = 0;
		}
		if (Class348_Sub40_Sub25.currentPacketSize == -2) {
			if (!Class348_Sub40_Sub8.gameConnection.method1705(2, 120))
				return false;
			Class348_Sub40_Sub8.gameConnection.read
			(2, 0, (byte) 127,
					(((ByteBuffer) Class299.gameBuffer)
							.payload));
			((ByteBuffer) Class299.gameBuffer).position
			= 0;
			Class348_Sub40_Sub25.currentPacketSize
			= Class299.gameBuffer.getShort();
			Class13.anInt221 += 2;
			StringNode.anInt7213 = 0;
		}
		if (Class348_Sub40_Sub25.currentPacketSize > 0) {
			if (!Class348_Sub40_Sub8.gameConnection
					.method1705(Class348_Sub40_Sub25.currentPacketSize, 104))
				return false;
			((ByteBuffer) Class299.gameBuffer).position
			= 0;
			Class348_Sub40_Sub8.gameConnection.read
			(Class348_Sub40_Sub25.currentPacketSize, 0, (byte) -123,
					(((ByteBuffer) Class299.gameBuffer)
							.payload));
			Class13.anInt221 += Class348_Sub40_Sub25.currentPacketSize;
			StringNode.anInt7213 = 0;
		}
		Class348_Sub40_Sub36.aClass114_9456 = Class239.aClass114_3145;
		Class239.aClass114_3145 = AbstractConnection.aClass114_3133;
		AbstractConnection.aClass114_3133 = Class348_Sub3.currentIncomingPacket;
		if (IOException_Sub1.serverPacket42 == Class348_Sub3.currentIncomingPacket) {
			Class43.setClientSettings(Class299.gameBuffer.getJstr(), true);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class348_Sub42_Sub3.aClass114_9503) {
			int settingFlags = Class299.gameBuffer.getUByte();
			boolean updateEntry = (settingFlags & 0x1) == 1;
			String str0 = Class299.gameBuffer.getJstr();
			String str1 = Class299.gameBuffer.getJstr();
			if (str1.equals(""))
                            str1 = str0;
			String str2 = Class299.gameBuffer.getJstr();
			String str3 = Class299.gameBuffer.getJstr();
			if (str3.equals(""))
                            str3 = str2;
			if (updateEntry) {
                            for (int i_7_ = 0; ((Class348_Sub42_Sub12.ignoreListLength ^ 0xffffffff) < (i_7_ ^ 0xffffffff)); i_7_++) {
                                if (Class122.aStringArray1808[i_7_].equals(str3)) {
                                    ObjectDefinition.ignoreListUsernames[i_7_] = str0;
                                    Class122.aStringArray1808[i_7_] = str1;
                                    Class348_Sub40_Sub21.ignoreListGamenames[i_7_] = str2;
                                    aa_Sub2.aStringArray5197[i_7_] = str3;
                                    break;
                                }
                            }
			} else {
                            ObjectDefinition.ignoreListUsernames[Class348_Sub42_Sub12.ignoreListLength] = str0;
                            Class122.aStringArray1808[Class348_Sub42_Sub12.ignoreListLength] = str1;
                            Class348_Sub40_Sub21.ignoreListGamenames[(Class348_Sub42_Sub12.ignoreListLength)] = str2;
                            aa_Sub2.aStringArray5197[Class348_Sub42_Sub12.ignoreListLength] = str3;
                            Class367_Sub3.aBooleanArray7304[Class348_Sub42_Sub12.ignoreListLength] = Class139.bitAnd(settingFlags, 2) == 2;
                            Class348_Sub42_Sub12.ignoreListLength++;
			}
			Class126.anInt4985 = LoadingHandler.anInt3918;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class318_Sub6.serverPacket82) {
			DummyInputstream.parseEntityPacket(Class348_Sub26.entityPacket4, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (HashTable.aClass114_4388 == Class348_Sub3.currentIncomingPacket) {
			byte i = Class299.gameBuffer.getByte();
			int i_8_ = Class299.gameBuffer.getWordLE128(-111);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -126);
			Class50_Sub3.method467(i_8_, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class135_Sub1.aClass114_4707 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3364((byte) -123);
			int i_9_ = Class299.gameBuffer.getDword();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class348_Sub41 class348_sub41 = ((Class348_Sub41) Class125.aClass356_4915.get((long) i_9_));
			Class348_Sub41 class348_sub41_10_
			= ((Class348_Sub41)
					Class125.aClass356_4915.get((long) i));
			if (class348_sub41_10_ != null)
				Class127_Sub1.method1118
				((class348_sub41 == null
						|| ((((Class348_Sub41) class348_sub41).anInt7050
								^ 0xffffffff)
								!= (((Class348_Sub41) class348_sub41_10_).anInt7050
										^ 0xffffffff))),
										false, class348_sub41_10_, 2533);
			if (class348_sub41 != null) {
				class348_sub41.removeNode();
				Class125.aClass356_4915.putNode((long) i,
						class348_sub41);
			}
			Widget class46 = AbstractFontRasterizer.getWidget(i_9_);
			if (class46 != null)
				Class251.method1916(-9343, class46);
			class46 = AbstractFontRasterizer.getWidget(i);
			if (class46 != null) {
				Class251.method1916(-9343, class46);
				Class251.method1913(true, -123, class46);
			}
			if (r.anInt9721 != -1)
				Class239_Sub12.method1775((byte) -8, r.anInt9721, 1);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class116.incomingPacket50) {
			Class239_Sub4.aString5882 = ((Class348_Sub40_Sub25.currentPacketSize ^ 0xffffffff) < -3 ? Class299.gameBuffer.getJstr() : GameText.walkHereGameText.getLanguageText(Class348_Sub33.gameLanguage));
			Class333.anInt4144 = ((Class348_Sub40_Sub25.currentPacketSize ^ 0xffffffff) >= -1 ? -1 : Class299.gameBuffer.getShort());
			if ((Class333.anInt4144 ^ 0xffffffff) == -65536)
                            Class333.anInt4144 = -1;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class239.aClass114_3135 == Class348_Sub3.currentIncomingPacket) {
			int v0 = Class299.gameBuffer.method3393((byte) 62);
			int v1 = Class299.gameBuffer.method3364((byte) -126);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class348_Sub15.method2813(true, v0, v1);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class20.aClass114_316) {
			int i = Class299.gameBuffer.method3346(255);
			int i_12_ = Class299.gameBuffer.readLEShort(false);
			int i_13_ = Class299.gameBuffer.method3355(10);
			int i_14_ = Class299.gameBuffer.readLEShort(false);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			AbstractConnection.method1703(7, i, i_13_ << -1301768848 | i_14_, 4, i_12_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub40_Sub15.aClass114_9216
				== Class348_Sub3.currentIncomingPacket) {
			Class128.anInt1872
			= Class299.gameBuffer.getWord(13638);
			Class348_Sub3.currentIncomingPacket = null;
			Class348_Sub40_Sub23.anInt9313 = LoadingHandler.anInt3918;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class330.aClass114_4126) {
			DummyInputstream.parseEntityPacket(Class348_Sub16_Sub1.aClass74_8853,
					(byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class173.aClass114_2285) {
			int i = Class299.gameBuffer.method3343((byte) 82);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			AbstractConnection.method1703(3, i, -1, 4, -1);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class22.aClass114_330) {
			boolean hasGameName = Class299.gameBuffer.getUByte() == 1;
			String username = Class299.gameBuffer.getJstr();
			String gameName = username;
			if (hasGameName)
                            gameName = Class299.gameBuffer.getJstr();
			long l = Class299.gameBuffer.getLong();
			long l_17_ = (long) Class299.gameBuffer.getShort();
			long l_18_ = (long) Class299.gameBuffer.getTri();
			int rights = Class299.gameBuffer.getUByte();
			long l_19_ = l_18_ + (l_17_ << 1206250400);
			boolean bool_20_ = false;
			while_217_:
				do {
					for (int i_21_ = 0; (i_21_ ^ 0xffffffff) > -101; i_21_++) {
						if (l_19_ == Class357.aLongArray4410[i_21_]) {
							bool_20_ = true;
							break while_217_;
						}
					}
					if (rights <= 1) {
						if ((Class348_Sub40_Sub3.aBoolean9103
								&& !Class133.aBoolean1915)
								|| Class50_Sub2.isQuickchat)
							bool_20_ = true;
						else if (GamePacket.method3455(gameName, 28280))
							bool_20_ = true;
					}
				} while (false);
			if (!bool_20_ && Class250.anInt3227 == 0) {
				Class357.aLongArray4410[NpcDefinition.ignoreListOffset] = l_19_;
				NpcDefinition.ignoreListOffset = (1 + NpcDefinition.ignoreListOffset) % 100;
				String string_22_ = (Class59_Sub2_Sub2.method572((Class348_Sub40_Sub32.method3136((byte) 64, Class299.gameBuffer)), 23034));
				if ((rights ^ 0xffffffff) == -3 || rights == 3)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=1>" + gameName, string_22_, -1, "<img=1>" + username, Class239_Sub16.method1788((byte) -76, l), 9, 0, username);
				else if (rights != 1)
					Class318_Sub1_Sub3_Sub5.handleMessage(gameName, string_22_, -1, username, Class239_Sub16.method1788((byte) -83, l), 9, 0, username);
				else
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=0>" + gameName, string_22_, -1, "<img=0>" + username, Class239_Sub16.method1788((byte) -75, l), 9, 0, username);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class295.aClass114_3751) {
			int i = Class299.gameBuffer.readLEShort(!bool);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -126);
			BitmapFont.method1189(-1, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == DummyInputstream.aClass114_82) {
			DummyInputstream.parseEntityPacket(Class39.aClass74_515, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == FileArchiveTracker.aClass114_4779) {
			int i = Class299.gameBuffer.method3393((byte) -78);
			int i_23_
			= Class299.gameBuffer.method3329((byte) 21);
			int i_24_ = Class299.gameBuffer.method3355(127);
			int i_25_
			= Class299.gameBuffer.method3342();
			int i_26_
			= Class299.gameBuffer.method3329((byte) 21);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			Class181.aBooleanArray2374[i_23_] = true;
			Class275.anIntArray3552[i_23_] = i;
			ItemLoader.anIntArray3273[i_23_] = i_25_;
			Class338.anIntArray4196[i_23_] = i_26_;
			Class318_Sub1_Sub1_Sub2.anIntArray9981[i_23_] = i_24_;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239_Sub24.aClass114_6089) {
			FileArchiveTracker.anInt4786
			= (Class299.gameBuffer.method3361(-622951480)
					<< 1279163715);
			Class348_Sub40_Sub12.anInt9200
			= Class299.gameBuffer.method3393((byte) -84);
			NpcLoader.anInt3581
			= (Class299.gameBuffer.method3341(-8679)
					<< -1958409821);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == ClanChatPlayer.serverPacket70) {
			Class90.parseBuildMapPacket((byte) 99);
			Class348_Sub3.currentIncomingPacket = null;
			return false;
		}
		if (Class345.aClass114_4269 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3393((byte) 71);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			Class37.anInt495 = i;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class369_Sub2.aClass114_8590 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(Class374.aClass74_4537, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class252.aClass114_3240) {
			int i = Class299.gameBuffer.getWordLE128(-117);
			int i_27_ = Class299.gameBuffer.method3355(125);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			Class318_Sub1_Sub1.method2396(i, i_27_, 0, 3);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class322.aClass114_4027 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.readLEShort(false);
			if (i == 65535)
				i = -1;
			int i_28_ = Class299.gameBuffer.method3346(255);
			int i_29_
			= Class299.gameBuffer.getDword();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			Class70.method727((byte) -63, i_29_, i, i_28_);
			ItemDefinition class213 = ToolkitException.itemLoader.getItemDefinition(-126, i);
			Class122.method1085(((ItemDefinition) class213).anInt2825, ((ItemDefinition) class213).anInt2787, (byte) -59, ((ItemDefinition) class213).anInt2781, i_28_);
			Class34.method350(((ItemDefinition) class213).anInt2779, ((ItemDefinition) class213).anInt2826, 125, i_28_, ((ItemDefinition) class213).anInt2810);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class133.aClass114_1917 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getShort();
			int i_30_ = Class299.gameBuffer.getUByte();
			boolean bool_31_ = (0x1 & i_30_ ^ 0xffffffff) == -2;
			Class187.method1405(i, bool_31_, true);
			int i_32_
			= Class299.gameBuffer.getShort();
			for (int i_33_ = 0; (i_32_ ^ 0xffffffff) < (i_33_ ^ 0xffffffff);
			i_33_++) {
				int i_34_ = Class299.gameBuffer
				.method3393((byte) -127);
				if (i_34_ == 255)
					i_34_ = Class299.gameBuffer
					.method3343((byte) 82);
				int i_35_ = Class299.gameBuffer.method3355(-78);
				Canvas_Sub1.method121(i, -364570972, bool_31_, i_33_, i_34_,
						i_35_ - 1);
			}
			Class199.anIntArray2633[Class139.bitAnd(31,
					AlternativeFontLoader.anInt1631++)]
					= i;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Huffman.aClass114_3773) {
			Class348_Sub40_Sub34.method3141(false, (byte) 11);
			Class348_Sub3.currentIncomingPacket = null;
			return false;
		}
		if (Class348_Sub3.currentIncomingPacket == Class298.aClass114_3809) {
			int value = Class299.gameBuffer.method3346(255);
			int id = Class299.gameBuffer.method3355(124);
			Mob.varbitHandler.putQueuedConfig(id, value);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239_Sub20.aClass114_6056) {
			int i = Class299.gameBuffer.method3342();
			int i_37_ = Class299.gameBuffer.method3355(124);
			int i_38_ = Class299.gameBuffer.method3355(125);
			int i_39_
			= Class299.gameBuffer.getShort();
			int i_40_
			= Class299.gameBuffer.method3343((byte) 82);
			boolean bool_41_ = (0x80 & i ^ 0xffffffff) != -1;
			int i_42_ = 0x7 & i;
			int i_43_ = (i & 0x7e) >> -614173853;
			if ((i_43_ ^ 0xffffffff) == -16)
				i_43_ = -1;
			if ((i_40_ >> 1898360446 ^ 0xffffffff) == -1) {
				if (i_40_ >> -1941034115 != 0) {
					int i_44_ = i_40_ & 0xffff;
					Class348_Sub22 class348_sub22
					= ((Class348_Sub22)
							Class282.aClass356_3654.get((long) i_44_));
					if (class348_sub22 != null) {
						Npc class318_sub1_sub3_sub3_sub1
						= (((Class348_Sub22) class348_sub22)
								.aClass318_Sub1_Sub3_Sub3_Sub1_6859);
						if ((i_38_ ^ 0xffffffff) == -65536)
							i_38_ = -1;
						boolean bool_45_ = true;
						int i_46_
						= (!bool_41_
								? ((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10269
										: ((Mob)
												class318_sub1_sub3_sub3_sub1).anInt10291);
						if ((i_38_ ^ 0xffffffff) != 0
								&& (i_46_ ^ 0xffffffff) != 0) {
							if ((i_38_ ^ 0xffffffff) == (i_46_ ^ 0xffffffff)) {
								GfxDefinition class368
								= Class348_Sub40_Sub18.gfxLoader
								.loadDefinition((byte) 55, i_38_);
								if (((GfxDefinition) class368).aBoolean4487
										&& (((GfxDefinition) class368).anInt4503
												^ 0xffffffff) != 0) {
									AnimationDefinition class17
									= (Class10.animationLoader.method835
											(((GfxDefinition) class368).anInt4503,
													7));
									int i_47_ = ((AnimationDefinition) class17).anInt248;
									if ((i_47_ ^ 0xffffffff) != -1
											&& (i_47_ ^ 0xffffffff) != -3) {
										if (i_47_ == 1)
											bool_45_ = true;
									} else
										bool_45_ = false;
								}
							} else {
								GfxDefinition class368
								= Class348_Sub40_Sub18.gfxLoader
								.loadDefinition((byte) 105, i_38_);
								GfxDefinition class368_48_
								= Class348_Sub40_Sub18.gfxLoader
								.loadDefinition((byte) 56, i_46_);
								if ((((GfxDefinition) class368).anInt4503
										^ 0xffffffff) != 0
										&& (((GfxDefinition) class368_48_).anInt4503
												!= -1)) {
									AnimationDefinition class17
									= (Class10.animationLoader.method835
											(((GfxDefinition) class368).anInt4503,
													7));
									AnimationDefinition class17_49_
									= (Class10.animationLoader.method835
											((((GfxDefinition) class368_48_)
													.anInt4503),
													7));
									if (((AnimationDefinition) class17).anInt239
											< ((AnimationDefinition) class17_49_).anInt239)
										bool_45_ = false;
								}
							}
						}
						if (bool_45_) {
							if (!bool_41_) {
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10243
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10220
										= i_37_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10269
										= i_38_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10240
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10278
										= i_43_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10225
										= Class367_Sub11.logicCycle + i_39_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10237
										= i_42_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10283
										= 1;
								if (((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10225
										> Class367_Sub11.logicCycle)
									((Mob)
											class318_sub1_sub3_sub3_sub1).anInt10240
											= -1;
								if ((((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10269
										^ 0xffffffff) != 0
										&& (((((Mob)
												class318_sub1_sub3_sub3_sub1)
												.anInt10225)
												^ 0xffffffff)
												== (Class367_Sub11.logicCycle
														^ 0xffffffff))) {
									int i_50_
									= (((GfxDefinition)
											(Class348_Sub40_Sub18
													.gfxLoader.loadDefinition
													((byte) 87,
															(((Mob)
																	class318_sub1_sub3_sub3_sub1)
																	.anInt10269))))
																	.anInt4503);
									if (i_50_ != -1) {
										AnimationDefinition class17
										= Class10.animationLoader
										.method835(i_50_, 7);
										if (class17 != null
												&& (((AnimationDefinition) class17)
														.anIntArray237) != null
														&& !(((Mob)
																class318_sub1_sub3_sub3_sub1)
																.aBoolean10309))
											GametipDefinition.method2178
											(class318_sub1_sub3_sub3_sub1,
													0, class17, -44);
									}
								}
							} else {
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10211
										= i_39_ + Class367_Sub11.logicCycle;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10260
										= i_37_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10291
										= i_38_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10289
										= i_43_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10202
										= i_42_;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10273
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10276
										= 1;
								((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10224
										= 0;
								if (((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10211
										> Class367_Sub11.logicCycle)
									((Mob)
											class318_sub1_sub3_sub3_sub1).anInt10224
											= -1;
								if ((((Mob)
										class318_sub1_sub3_sub3_sub1).anInt10291
										^ 0xffffffff) != 0
										&& (Class367_Sub11.logicCycle
												== (((Mob)
														class318_sub1_sub3_sub3_sub1)
														.anInt10211))) {
									int i_51_
									= (((GfxDefinition)
											(Class348_Sub40_Sub18
													.gfxLoader.loadDefinition
													((byte) 103,
															(((Mob)
																	class318_sub1_sub3_sub3_sub1)
																	.anInt10291))))
																	.anInt4503);
									if (i_51_ != -1) {
										AnimationDefinition class17
										= Class10.animationLoader
										.method835(i_51_, 7);
										if (class17 != null
												&& (((AnimationDefinition) class17)
														.anIntArray237) != null
														&& !(((Mob)
																class318_sub1_sub3_sub3_sub1)
																.aBoolean10309))
											GametipDefinition.method2178
											(class318_sub1_sub3_sub3_sub1,
													0, class17, -17);
									}
								}
							}
						}
					}
				} else if (i_40_ >> -784436196 != 0) {
					int i_52_ = i_40_ & 0xffff;
					Player class318_sub1_sub3_sub3_sub2;
					if (Class348_Sub42_Sub11.localPlayerId != i_52_)
						class318_sub1_sub3_sub3_sub2
						= (ClassicLoadingScreen.onscreenPlayers
								[i_52_]);
					else
						class318_sub1_sub3_sub3_sub2
						= Class132.localPlayer;
					if (class318_sub1_sub3_sub3_sub2 != null) {
						if (i_38_ == 65535)
							i_38_ = -1;
						boolean bool_53_ = true;
						int i_54_
						= (!bool_41_
								? ((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10269
										: ((Mob)
												class318_sub1_sub3_sub3_sub2).anInt10291);
						if ((i_38_ ^ 0xffffffff) != 0 && i_54_ != -1) {
							if ((i_54_ ^ 0xffffffff) != (i_38_ ^ 0xffffffff)) {
								GfxDefinition class368
								= Class348_Sub40_Sub18.gfxLoader
								.loadDefinition((byte) 105, i_38_);
								GfxDefinition class368_55_
								= Class348_Sub40_Sub18.gfxLoader
								.loadDefinition((byte) 118, i_54_);
								if (((GfxDefinition) class368).anInt4503 != -1
										&& (((GfxDefinition) class368_55_).anInt4503
												^ 0xffffffff) != 0) {
									AnimationDefinition class17
									= (Class10.animationLoader.method835
											(((GfxDefinition) class368).anInt4503,
													7));
									AnimationDefinition class17_56_
									= (Class10.animationLoader.method835
											((((GfxDefinition) class368_55_)
													.anInt4503),
													7));
									if (((AnimationDefinition) class17).anInt239
											< ((AnimationDefinition) class17_56_).anInt239)
										bool_53_ = false;
								}
							} else {
								GfxDefinition class368
								= Class348_Sub40_Sub18.gfxLoader
								.loadDefinition((byte) 111, i_38_);
								if (((GfxDefinition) class368).aBoolean4487
										&& ((GfxDefinition) class368).anInt4503 != -1) {
									AnimationDefinition class17
									= (Class10.animationLoader.method835
											(((GfxDefinition) class368).anInt4503,
													7));
									int i_57_ = ((AnimationDefinition) class17).anInt248;
									if (i_57_ != 0
											&& (i_57_ ^ 0xffffffff) != -3) {
										if (i_57_ == 1)
											bool_53_ = true;
									} else
										bool_53_ = false;
								}
							}
						}
						if (bool_53_) {
							if (bool_41_) {
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10224
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10260
										= i_37_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10289
										= i_43_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10273
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10276
										= 1;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10291
										= i_38_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10211
										= i_39_ + Class367_Sub11.logicCycle;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10202
										= i_42_;
								if (((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10211
										> Class367_Sub11.logicCycle)
									((Mob)
											class318_sub1_sub3_sub3_sub2).anInt10224
											= -1;
								if ((((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10291
										^ 0xffffffff)
										== -65536)
									((Mob)
											class318_sub1_sub3_sub3_sub2).anInt10291
											= -1;
								if ((((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10291
										!= -1)
										&& ((Class367_Sub11.logicCycle ^ 0xffffffff)
												== ((((Mob)
														class318_sub1_sub3_sub3_sub2)
														.anInt10211)
														^ 0xffffffff))) {
									int i_58_
									= (((GfxDefinition)
											(Class348_Sub40_Sub18
													.gfxLoader.loadDefinition
													((byte) 45,
															(((Mob)
																	class318_sub1_sub3_sub3_sub2)
																	.anInt10291))))
																	.anInt4503);
									if (i_58_ != -1) {
										AnimationDefinition class17
										= Class10.animationLoader
										.method835(i_58_, 7);
										if (class17 != null
												&& (((AnimationDefinition) class17)
														.anIntArray237) != null
														&& !(((Mob)
																class318_sub1_sub3_sub3_sub2)
																.aBoolean10309))
											GametipDefinition.method2178
											(class318_sub1_sub3_sub3_sub2,
													0, class17, -120);
									}
								}
							} else {
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10269
										= i_38_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10243
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10220
										= i_37_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10240
										= 0;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10278
										= i_43_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10237
										= i_42_;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10283
										= 1;
								((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10225
										= i_39_ + Class367_Sub11.logicCycle;
								if ((((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10269
										^ 0xffffffff)
										== -65536)
									((Mob)
											class318_sub1_sub3_sub3_sub2).anInt10269
											= -1;
								if (Class367_Sub11.logicCycle
										< (((Mob)
												class318_sub1_sub3_sub3_sub2)
												.anInt10225))
									((Mob)
											class318_sub1_sub3_sub3_sub2).anInt10240
											= -1;
								if ((((Mob)
										class318_sub1_sub3_sub3_sub2).anInt10269
										!= -1)
										&& (Class367_Sub11.logicCycle
												== (((Mob)
														class318_sub1_sub3_sub3_sub2)
														.anInt10225))) {
									int i_59_
									= (((GfxDefinition)
											(Class348_Sub40_Sub18
													.gfxLoader.loadDefinition
													((byte) 81,
															(((Mob)
																	class318_sub1_sub3_sub3_sub2)
																	.anInt10269))))
																	.anInt4503);
									if (i_59_ != -1) {
										AnimationDefinition class17
										= Class10.animationLoader
										.method835(i_59_, 7);
										if (class17 != null
												&& (((AnimationDefinition) class17)
														.anIntArray237) != null
														&& !(((Mob)
																class318_sub1_sub3_sub3_sub2)
																.aBoolean10309))
											GametipDefinition.method2178
											(class318_sub1_sub3_sub3_sub2,
													0, class17, -101);
									}
								}
							}
						}
					}
				}
			} else {
				int i_60_ = (i_40_ & 0x33705717) >> -970295684;
								int i_61_
								= -za_Sub2.baseRegionX + ((0xffff4fe & i_40_) >> -516715090);
								int i_62_ = -Class90.baseRegionY + (0x3fff & i_40_);
								if ((i_61_ ^ 0xffffffff) <= -1 && (i_62_ ^ 0xffffffff) <= -1
										&& Class367_Sub4.mapSizeX > i_61_
										&& Class348_Sub40_Sub3.mapSizeY > i_62_) {
									int i_63_ = 256 + 512 * i_61_;
									int i_64_ = 512 * i_62_ + 256;
									int i_65_ = i_60_;
									if ((i_65_ ^ 0xffffffff) > -4
											&& NpcDefinition.isElevatedTile(i_61_, i_62_))
										i_65_++;
									Class318_Sub1_Sub3_Sub4 class318_sub1_sub3_sub4
									= (new Class318_Sub1_Sub3_Sub4
											(i_38_, i_39_, Class367_Sub11.logicCycle, i_60_,
													i_65_, i_63_,
													-i_37_ + Class275.method2064(i_63_, i_60_, 11219,
															i_64_),
															i_64_, i_61_, i_61_, i_62_, i_62_, i_42_));
									r_Sub2.aClass262_10492.addToFront
									(new Class348_Sub42_Sub6(class318_sub1_sub3_sub4),
											-20180);
								}
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class63.aClass114_1120) {
			int i = Class299.gameBuffer.getWordLE128(-116);
			String string
			= Class299.gameBuffer.getJstr();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			NativeOpenGlToolkit.method3965(string, i, 2);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == EntityPacket.aClass114_1234) {
			Class24.anInt359
			= Class299.gameBuffer.method3369((byte) 125);
			Class348_Sub40_Sub3.aBoolean9103
			= Class299.gameBuffer.getUByte() == 1;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (GameFont.aClass114_4331 == Class348_Sub3.currentIncomingPacket) {
			String string = Class299.gameBuffer.getJstr();
			boolean bool_66_ = Class299.gameBuffer.getUByte() == 1;
			String string_67_;
			if (!bool_66_)
				string_67_ = string;
			else
				string_67_ = Class299.gameBuffer.getJstr();
			int i = Class299.gameBuffer.getShort();
			byte i_68_ = Class299.gameBuffer.getByte();
			boolean bool_69_ = false;
			if ((i_68_ ^ 0xffffffff) == 127)
				bool_69_ = true;
			if (bool_69_) {
				if (Class37.amountClanChatUsers == 0) {
                                    Class348_Sub3.currentIncomingPacket = null;
                                    return true;
				}
				boolean bool_70_ = false;
				int i_71_;
				for (i_71_ = 0; Class37.amountClanChatUsers > i_71_; i_71_++) {
                                    if (((ClanChatPlayer) Class169.aClass19Array2261[i_71_]).aString306.equals(string_67_) && i == (((ClanChatPlayer) Class169.aClass19Array2261[i_71_]).anInt308))
                                            break;
				}
				if ((i_71_ ^ 0xffffffff) > (Class37.amountClanChatUsers ^ 0xffffffff)) {
					for (/**/; (i_71_ ^ 0xffffffff) > (-1 + Class37.amountClanChatUsers
							^ 0xffffffff); i_71_++)
						Class169.aClass19Array2261[i_71_]
						                           = Class169.aClass19Array2261[i_71_ - -1];
					Class37.amountClanChatUsers--;
					Class169.aClass19Array2261[Class37.amountClanChatUsers] = null;
				}
			} else {
				String string_72_ = Class299.gameBuffer.getJstr();
				ClanChatPlayer class19 = new ClanChatPlayer();
				((ClanChatPlayer) class19).aString306 = string_67_;
				((ClanChatPlayer) class19).aString314 = string;
				((ClanChatPlayer) class19).aString312 = Class285_Sub1.unformatUsername(((ClanChatPlayer) class19).aString306);
				((ClanChatPlayer) class19).aString313 = string_72_;
				((ClanChatPlayer) class19).anInt308 = i;
				((ClanChatPlayer) class19).aByte310 = i_68_;
				int i_73_;
				for (i_73_ = -1 + Class37.amountClanChatUsers; (i_73_ ^ 0xffffffff) <= -1; i_73_--) {
					int i_74_ = ((ClanChatPlayer) Class169.aClass19Array2261[i_73_]).aString312.compareTo(((ClanChatPlayer) class19).aString312);
					if (i_74_ == 0) {
						((ClanChatPlayer) Class169.aClass19Array2261[i_73_]).anInt308
						= i;
						((ClanChatPlayer) Class169.aClass19Array2261[i_73_]).aByte310
						= i_68_;
						((ClanChatPlayer) Class169.aClass19Array2261[i_73_])
						.aString313
						= string_72_;
						if (string_67_.equals
								(((Player)
										Class132.localPlayer)
										.aString10544))
							Class119_Sub1.aByte4702 = i_68_;
						GameMode.anInt2986 = LoadingHandler.anInt3918;
						Class348_Sub3.currentIncomingPacket = null;
						return true;
					}
					if (i_74_ < 0)
						break;
				}
				if (Class169.aClass19Array2261.length <= Class37.amountClanChatUsers) {
					Class348_Sub3.currentIncomingPacket = null;
					return true;
				}
				for (int i_75_ = Class37.amountClanChatUsers - 1; (i_73_ ^ 0xffffffff) > (i_75_ ^ 0xffffffff); i_75_--)
					Class169.aClass19Array2261[1 + i_75_] = Class169.aClass19Array2261[i_75_];
				if ((Class37.amountClanChatUsers ^ 0xffffffff) == -1)
					Class169.aClass19Array2261 = new ClanChatPlayer[100];
				Class169.aClass19Array2261[i_73_ + 1] = class19;
				Class37.amountClanChatUsers++;
				if (string_67_.equals(((Player) (Class132.localPlayer)).aString10544))
                                    Class119_Sub1.aByte4702 = i_68_;
			}
			GameMode.anInt2986 = LoadingHandler.anInt3918;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class239_Sub11.aClass114_5949 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getUByte();
			int i_76_ = i >> -1533846843;
					int i_77_ = 0x1f & i;
					if (i_77_ == 0) {
						Class348_Sub27.aClass302Array6897[i_76_] = null;
						Class348_Sub3.currentIncomingPacket = null;
						return true;
					}
					Class302 class302 = new Class302();
					((Class302) class302).anInt3840 = i_77_;
					((Class302) class302).anInt3831
					= Class299.gameBuffer.getUByte();
					if (((Class302) class302).anInt3831 >= 0
							&& (((Class302) class302).anInt3831
									< Class239_Sub9.aClass105Array5933.length)) {
						if ((((Class302) class302).anInt3840 ^ 0xffffffff) != -2
								&& (((Class302) class302).anInt3840 ^ 0xffffffff) != -11) {
							if (((Class302) class302).anInt3840 >= 2
									&& ((Class302) class302).anInt3840 <= 6) {
								if (((Class302) class302).anInt3840 == 2) {
									((Class302) class302).anInt3832 = 256;
									((Class302) class302).anInt3835 = 256;
								}
								if (((Class302) class302).anInt3840 == 3) {
									((Class302) class302).anInt3835 = 0;
									((Class302) class302).anInt3832 = 256;
								}
								if (((Class302) class302).anInt3840 == 4) {
									((Class302) class302).anInt3835 = 512;
									((Class302) class302).anInt3832 = 256;
								}
								if ((((Class302) class302).anInt3840 ^ 0xffffffff)
										== -6) {
									((Class302) class302).anInt3835 = 256;
									((Class302) class302).anInt3832 = 0;
								}
								if ((((Class302) class302).anInt3840 ^ 0xffffffff)
										== -7) {
									((Class302) class302).anInt3835 = 256;
									((Class302) class302).anInt3832 = 512;
								}
								((Class302) class302).anInt3840 = 2;
								((Class302) class302).anInt3838
								= Class299.gameBuffer
								.getUByte();
								((Class302) class302).anInt3835
								+= (Class299.gameBuffer
										.getShort() + -za_Sub2.baseRegionX
										<< 1394439945);
								((Class302) class302).anInt3832
								+= (Class299.gameBuffer
										.getShort() - Class90.baseRegionY
										<< -673089399);
								((Class302) class302).anInt3839
								= Class299.gameBuffer
								.getUByte() << 729228482;
								((Class302) class302).anInt3837
								= Class299.gameBuffer
								.getShort();
							}
						} else {
							((Class302) class302).anInt3833
							= Class299.gameBuffer
							.getShort();
							((ByteBuffer) Class299.gameBuffer)
							.position
							+= 6;
						}
						((Class302) class302).anInt3834
						= Class299.gameBuffer.getShort();
						if ((((Class302) class302).anInt3834 ^ 0xffffffff) == -65536)
							((Class302) class302).anInt3834 = -1;
						Class348_Sub27.aClass302Array6897[i_76_] = class302;
					}
					Class348_Sub3.currentIncomingPacket = null;
					return true;
		}
		if (Class172.serverPacket60 == Class348_Sub3.currentIncomingPacket) {
			Class348_Sub40_Sub34.method3141(Class223.aBoolean2895, (byte) 11);
			Class348_Sub3.currentIncomingPacket = null;
			return false;
		}
		if (Class367_Sub4.aClass114_7323 == Class348_Sub3.currentIncomingPacket) {
			Class348_Sub16_Sub1.parseGpi(Class299.gameBuffer, Class348_Sub40_Sub25.currentPacketSize);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239_Sub26.aClass114_6121) {
			int i = Class299.gameBuffer.method3355(124);
			int i_78_
			= Class299.gameBuffer.method3364((byte) -118);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			Class91.method855(6, i, i_78_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class264.aClass114_3371 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(Class59_Sub1_Sub2.aClass74_8662,
					(byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class367_Sub4.aClass114_7324) {
			int i = Class299.gameBuffer.getDword();
			int i_79_ = Class299.gameBuffer.getWordLE128(-120);
			int i_80_ = Class299.gameBuffer.method3355(125);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			Class211.method1540(-101, i, i_79_ + (i_80_ << -1015336464));
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class361.aClass114_4433) {
			Mob.varbitHandler.reset();
			GametipDefinition.anInt3695 += 32;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class303.aClass114_3842) {
			int i = Class299.gameBuffer.method3346(255);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			AbstractConnection.method1703(5, i, Class348_Sub42_Sub11.localPlayerId, 4, 0);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (KeyboardListener.aClass114_6528 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3355(-124);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class64_Sub3.method690((byte) -107, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class5_Sub2.aClass114_8365 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_81_ = ((Class299.gameBuffer.getUByte() ^ 0xffffffff) == -2);
			String string
			= Class299.gameBuffer.getJstr();
			String string_82_ = string;
			if (bool_81_)
				string_82_ = Class299.gameBuffer
				.getJstr();
			int rights = Class299.gameBuffer.getUByte();
			boolean bool_83_ = false;
			if ((rights ^ 0xffffffff) >= -2) {
				if (Class348_Sub40_Sub3.aBoolean9103 && !Class133.aBoolean1915 || Class50_Sub2.isQuickchat)
                                    bool_83_ = true;
				else if ((rights ^ 0xffffffff) >= -2 && GamePacket.method3455(string_82_, 28280))
                                    bool_83_ = true;
			}
			if (!bool_83_ && (Class250.anInt3227 ^ 0xffffffff) == -1) {
				String string_84_
				= (Class59_Sub2_Sub2.method572
						((Class348_Sub40_Sub32.method3136
								((byte) 64, Class299.gameBuffer)),
								23034));
				if (rights == 2)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=1>" + string_82_,
							string_84_,
							-1, "<img=1>" + string,
							null, 24, 0, string);
				else if ((rights ^ 0xffffffff) == -2)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=0>" + string_82_,
							string_84_,
							-1, "<img=0>" + string,
							null, 24, 0, string);
				else
					Class318_Sub1_Sub3_Sub5.handleMessage(string_82_, string_84_, -1, string,
							null, 24, 0, string);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class15.aClass114_229 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(Class286_Sub1.aClass74_6201, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class101_Sub2.aClass114_5742) {
			int i = Class299.gameBuffer.method3342();
			int i_85_
			= Class299.gameBuffer.method3342();
			int i_86_
			= Class299.gameBuffer.method3329((byte) 21);
			int i_87_
			= Class299.gameBuffer.method3329((byte) 21);
			int i_88_ = (Class299.gameBuffer.method3355(126)
					<< -1442918366);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			Class239_Sub28.method1844(i_85_, i_86_, true, i_88_, !bool, i_87_,
					i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == GametipLoader.incomingPacket8) {
                    String string = Class299.gameBuffer.getJstr();
                    Object[] objects = new Object[1 + string.length()];
                    for (int i = -1 + string.length(); i >= 0; i--) {
                        if (string.charAt(i) != 's')
                                objects[i + 1] = new Integer(Class299.gameBuffer.getDword());
                            else
                                objects[1 + i] = Class299.gameBuffer.getJstr();
                    }
                    objects[0] = new Integer(Class299.gameBuffer.getDword());
                    Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
                    InterfaceScript script = new InterfaceScript();
                    ((InterfaceScript) script).parameters = objects;
                    ScriptExecutor.executeScript(script);
                    Class348_Sub3.currentIncomingPacket = null;
                    return true;
		}
		if (Class239_Sub22.aClass114_6075 == Class348_Sub3.currentIncomingPacket) {
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			Class239_Sub29.method1851((byte) 125);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class348_Sub41.aClass114_7052) {
			int i = Class299.gameBuffer.method3364((byte) -118);
			int i_89_ = Class299.gameBuffer.method3355(127);
			if ((i_89_ ^ 0xffffffff) == -65536)
				i_89_ = -1;
			Class318_Sub1_Sub1_Sub1.method2397((byte) -126);
			AbstractConnection.method1703(2, i, i_89_, 4, -1);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class264.aClass114_3368) {
			int i = Class299.gameBuffer.getDword();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class348_Sub41 class348_sub41 = ((Class348_Sub41) Class125.aClass356_4915.get((long) i));
			if (class348_sub41 != null)
				Class127_Sub1.method1118(true, false, class348_sub41, 2533);
			if (BufferedRasterizer.aClass46_4730 != null) {
				Class251.method1916(-9343, BufferedRasterizer.aClass46_4730);
				BufferedRasterizer.aClass46_4730 = null;
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (DummyInputstream2.aClass114_79 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3355(-86);
			int i_90_ = Class299.gameBuffer.method3346(255);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class348_Sub23.method2966(i_90_, i, false);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class312.aClass114_3925 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(aClass74_10437, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class228.aClass114_2972) {
			int i = Class299.gameBuffer.getDword();
			Class348_Sub42_Sub6.aClass144_9536
			= Class348_Sub23_Sub1.signlink.method2232(80, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class131.aClass114_1901) {
			int i = Class299.gameBuffer.getShort();
			Player player;
			if (i != Class348_Sub42_Sub11.localPlayerId)
                            player = ClassicLoadingScreen.onscreenPlayers[i];
			else
				player
				= Class132.localPlayer;
			if (player == null) {
                            Class348_Sub3.currentIncomingPacket = null;
                            return true;
			}
			int i_91_ = Class299.gameBuffer.getShort();
			int i_92_ = Class299.gameBuffer.getUByte();
			boolean bool_93_ = (0x8000 & i_91_) != 0;
			if ((((Player) player).aString10544) != null
					&& ((Player)
							player).aClass154_10536 != null) {
				boolean bool_94_ = false;
				if (i_92_ <= 1) {
					if (!bool_93_ && ((Class348_Sub40_Sub3.aBoolean9103
							&& !Class133.aBoolean1915)
							|| Class50_Sub2.isQuickchat))
						bool_94_ = true;
					else if (GamePacket.method3455
							(((Player)
									player).aString10544,
									28280))
						bool_94_ = true;
				}
				if (!bool_94_ && (Class250.anInt3227 ^ 0xffffffff) == -1) {
					int i_95_ = -1;
					String string;
					if (!bool_93_)
						string = (Class59_Sub2_Sub2.method572
								((Class348_Sub40_Sub32.method3136
										((byte) 64,
												Class299.gameBuffer)),
												23034));
					else {
						i_91_ &= 0x7fff;
						Class43 class43
						= ColorNode.method490((byte) -104,
								(Class299
										.gameBuffer));
						i_95_ = ((Class43) class43).anInt615;
						string = (((Class43) class43)
								.aClass348_Sub42_Sub10_614.method3216
								(Class299.gameBuffer,
										(byte) 119));
					}
					((Mob) player)
					.aString10292
					= string.trim();
					((Mob) player)
					.anInt10201
					= i_91_ >> -71851640;
				((Mob) player)
				.anInt10234
				= i_91_ & 0xff;
				((Mob) player)
				.anInt10264
				= 150;
				int i_96_;
				if ((i_92_ ^ 0xffffffff) != -2
						&& (i_92_ ^ 0xffffffff) != -3)
					i_96_ = !bool_93_ ? 2 : 17;
				else
					i_96_ = bool_93_ ? 17 : 1;
				if (i_92_ != 2) {
					if ((i_92_ ^ 0xffffffff) != -2)
						Class318_Sub1_Sub3_Sub5.handleMessage
						(player.method2450(false,
								-121),
								string, i_95_,
								player.method2456(true,
										255),
										null, i_96_, 0,
										((Player)
												player).username);
					else
						Class318_Sub1_Sub3_Sub5.handleMessage
						("<img=0>" + player
								.method2450(false, -93),
								string, i_95_,
								"<img=0>" + player
								.method2456(true, 255),
								null, i_96_, 0,
								((Player)
										player).username);
				} else
					Class318_Sub1_Sub3_Sub5.handleMessage
					("<img=1>" + player
							.method2450(false, -95),
							string, i_95_,
							"<img=1>" + player
							.method2456(true, 255),
							null, i_96_, 0,
							((Player)
									player).username);
				}
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class63.aClass114_1123 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_97_
			= ((Class299.gameBuffer.getUByte()
					^ 0xffffffff)
					== -2);
			String string
			= Class299.gameBuffer.getJstr();
			String string_98_ = string;
			if (bool_97_)
				string_98_
				= Class299.gameBuffer.getJstr();
			long l = (long) Class299.gameBuffer.getShort();
			long l_99_= (long) Class299.gameBuffer.getTri();
			int rights = Class299.gameBuffer.getUByte();
			long l_100_ = (l << 8197856) + l_99_;
			boolean bool_101_ = false;
			while_218_:
				do {
					for (int i_102_ = 0; i_102_ < 100; i_102_++) {
						if ((Class357.aLongArray4410[i_102_] ^ 0xffffffffffffffffL)
								== (l_100_ ^ 0xffffffffffffffffL)) {
							bool_101_ = true;
							break while_218_;
						}
					}
					if ((rights ^ 0xffffffff) >= -2) {
						if ((Class348_Sub40_Sub3.aBoolean9103
								&& !Class133.aBoolean1915)
								|| Class50_Sub2.isQuickchat)
							bool_101_ = true;
						else if (GamePacket.method3455(string_98_, 28280))
							bool_101_ = true;
					}
				} while (false);
			if (!bool_101_ && Class250.anInt3227 == 0) {
				Class357.aLongArray4410[NpcDefinition.ignoreListOffset] = l_100_;
				NpcDefinition.ignoreListOffset = (1 + NpcDefinition.ignoreListOffset) % 100;
				String string_103_ = (Class59_Sub2_Sub2.method572((Class348_Sub40_Sub32.method3136((byte) 64, Class299.gameBuffer)), 23034));
				if (rights == 2)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=1>" + string_98_,
							string_103_, -1,
							"<img=1>" + string,
							null, 7, 0, string);
				else if (rights == 1)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=0>" + string_98_,
							string_103_, -1,
							"<img=0>" + string,
							null, 7, 0, string);
				else
					Class318_Sub1_Sub3_Sub5.handleMessage(string_98_, string_103_, -1, string,
							null, 3, 0, string);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub42_Sub8.serverPacket72
				== Class348_Sub3.currentIncomingPacket) {
			if (r.anInt9721 != -1)
				Class239_Sub12.method1775((byte) -8, r.anInt9721, 0);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class168.aClass114_2248 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getUByte();
			int i_104_
			= Class299.gameBuffer.method3342();
			int i_105_ = Class299.gameBuffer.getUByte();
			int i_106_ = (Class299.gameBuffer.readLEShort(!bool)
					<< -1364090046);
			int i_107_
			= Class299.gameBuffer.method3329((byte) 21);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			Class348_Sub42_Sub12.method3231(i_104_, i, i_106_, i_107_, i_105_,
					-127);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
                /* Keep alive packet */
		if (Class348_Sub3.currentIncomingPacket == Class348_Sub46.incomingPacket97) {
                    Class348_Sub3.currentIncomingPacket = null;
                    return false;
		}
		if (RequiredElement.incomingPacket93 == Class348_Sub3.currentIncomingPacket) {
			AbstractWorld.readClassCheckPacket(Class348_Sub40_Sub25.currentPacketSize, Class299.gameBuffer, Class348_Sub23_Sub1.signlink, 110);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class189.aClass114_2527 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_108_ = ((Class299.gameBuffer.getUByte() ^ 0xffffffff) == -2);
			byte[] is = new byte[Class348_Sub40_Sub25.currentPacketSize - 1];
			Class299.gameBuffer.getBytes(is, 0, Class348_Sub40_Sub25.currentPacketSize - 1);
			Class184.parseLobbyWorldList(bool_108_, is, (byte) -104);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class254.aClass114_3264) {
			int i = Class299.gameBuffer.getUByte();
			byte i_109_ = Class299.gameBuffer.method3341(-8679);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			Class348_Sub42_Sub14.method3244(i_109_, i, 120);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (ItemLoader.aClass114_3265 == Class348_Sub3.currentIncomingPacket) {
			NpcLoader.anInt3581
			= (Class299.gameBuffer.method3361(-622951480)
					<< 378365955);
			Class348_Sub40_Sub12.anInt9200
			= Class299.gameBuffer.method3342();
			FileArchiveTracker.anInt4786
			= (Class299.gameBuffer.method3345(-27697)
					<< -1484198781);
			while ((Class348_Sub40_Sub25.currentPacketSize ^ 0xffffffff)
					< ((((ByteBuffer) Class299.gameBuffer)
							.position)
							^ 0xffffffff)) {
				EntityPacket class74
				= (ItemLoader.method1929((byte) -19)
						[Class299.gameBuffer.getUByte()]);
				DummyInputstream.parseEntityPacket(class74, (byte) 8);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class271.aClass114_3467 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getWord(13638);
			int i_110_
			= Class299.gameBuffer.getDword();
			int i_111_
			= Class299.gameBuffer.method3375((byte) 84);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class120.method1080(i_111_, -23697, i, i_110_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class178.aClass114_2338 == Class348_Sub3.currentIncomingPacket) {
			String string
			= Class299.gameBuffer.getJstr();
			int i = Class299.gameBuffer.method3355(124);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			NativeOpenGlToolkit.method3965(string, i, 2);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket
				== Class318_Sub1_Sub5_Sub2.aClass114_10168) {
			int i = Class299.gameBuffer.getWordLE128(-117);
			int i_112_
			= Class299.gameBuffer.getDword();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			Class348_Sub40_Sub15.method3084(i, (byte) -88, i_112_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class167.aClass114_2196 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_113_
			= Class299.gameBuffer.getUByte() == 1;
			String string
			= Class299.gameBuffer.getJstr();
			String string_114_ = string;
			if (bool_113_)
				string_114_ = Class299.gameBuffer
				.getJstr();
			long l = Class299.gameBuffer.getLong();
			long l_115_ = (long) Class299.gameBuffer
			.getShort();
			long l_116_
			= (long) Class299.gameBuffer.getTri();
			int i = Class299.gameBuffer.getUByte();
			int i_117_
			= Class299.gameBuffer.getShort();
			long l_118_ = (l_115_ << 1432735136) - -l_116_;
			boolean bool_119_ = false;
			while_219_:
				do {
					for (int i_120_ = 0; (i_120_ ^ 0xffffffff) > -101; i_120_++) {
						if ((l_118_ ^ 0xffffffffffffffffL)
								== (Class357.aLongArray4410[i_120_]
								                            ^ 0xffffffffffffffffL)) {
							bool_119_ = true;
							break while_219_;
						}
					}
					if ((i ^ 0xffffffff) >= -2
							&& GamePacket.method3455(string_114_, 28280))
						bool_119_ = true;
				} while (false);
			if (!bool_119_ && Class250.anInt3227 == 0) {
				Class357.aLongArray4410[NpcDefinition.ignoreListOffset] = l_118_;
				NpcDefinition.ignoreListOffset = (NpcDefinition.ignoreListOffset + 1) % 100;
				String string_121_
				= (Class239_Sub6.aClass355_5900.method3471
						(i_117_, (byte) -106).method3216
						(Class299.gameBuffer, (byte) 42));
				if ((i ^ 0xffffffff) == -3)
					Class318_Sub1_Sub3_Sub5.handleMessage
					("<img=1>" + string_114_, string_121_,
							i_117_, "<img=1>" + string,
							Class239_Sub16.method1788((byte) 87, l), 20, 0,
							string);
				else if (i != 1)
					Class318_Sub1_Sub3_Sub5.handleMessage
					(string_114_, string_121_, i_117_, string,
							Class239_Sub16.method1788((byte) 80, l), 20, 0,
							string);
				else
					Class318_Sub1_Sub3_Sub5.handleMessage
					("<img=0>" + string_114_, string_121_,
							i_117_, "<img=0>" + string,
							Class239_Sub16.method1788((byte) -98, l), 20, 0,
							string);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (BufferedPacket.aClass114_7124 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3346(255);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			if (i != -1) {
				int i_122_ = 0x3fff & i >> -350322290;
			i_122_ -= za_Sub2.baseRegionX;
			int i_123_ = 0x3fff & i;
			i_123_ -= Class90.baseRegionY;
			if (i_122_ >= 0) {
				if (Class367_Sub4.mapSizeX <= i_122_)
					i_122_ = Class367_Sub4.mapSizeX;
			} else
				i_122_ = 0;
			Class9.anInt167 = (i_122_ << -1075184215) - -256;
			if ((i_123_ ^ 0xffffffff) <= -1) {
				if (i_123_ >= Class348_Sub40_Sub3.mapSizeY)
					i_123_ = Class348_Sub40_Sub3.mapSizeY;
			} else
				i_123_ = 0;
			Class318_Sub1_Sub5_Sub2.anInt10163
			= 256 + (i_123_ << 1250688745);
			} else {
				Class9.anInt167 = -1;
				Class318_Sub1_Sub5_Sub2.anInt10163 = -1;
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
                /* Smaller put varbit config packet */
		if (Class348_Sub3.currentIncomingPacket == Class348_Sub40_Sub19.aClass114_9254) {
                    int value = Class299.gameBuffer.method3393((byte) -88);
                    int id = Class299.gameBuffer.readLEShort(!bool);
                    Mob.varbitHandler.putQueuedSetting(id, value);
                    Class348_Sub3.currentIncomingPacket = null;
                    return true;
		}
		if (Class133.aClass114_1914 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(Class348_Sub40_Sub38.aClass74_9475,
					(byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == FileIndexTracker.aClass114_4798) {
			int i = Class299.gameBuffer.getWordLE128(-107);
			if (i == 65535)
				i = -1;
			int i_125_
			= Class299.gameBuffer.method3393((byte) -121);
			int i_126_ = i_125_ >> -1735439870;
			int i_127_ = i_125_ & 0x3;
			int i_128_ = Class36.anIntArray487[i_126_];
			int i_129_ = Class299.gameBuffer.method3346(255);
			int i_130_ = (0x36079814 & i_129_) >> 1625456508;
			int i_131_ = i_129_ >> -1815164786 & 0x3fff;
				int i_132_ = 0x3fff & i_129_;
				i_131_ -= za_Sub2.baseRegionX;
				i_132_ -= Class90.baseRegionY;
				NativeToolkit.method3824(i_132_, i, i_126_, i_131_, i_127_, 102, i_130_,
						i_128_);
				Class348_Sub3.currentIncomingPacket = null;
				return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class168.aClass114_2255) {
			String string
			= Class299.gameBuffer.getJstr();
			int i = Class299.gameBuffer.getShort();
			String string_133_
			= (Class239_Sub6.aClass355_5900.method3471(i, (byte) -98)
					.method3216
					(Class299.gameBuffer, (byte) 42));
			Class318_Sub1_Sub3_Sub5.handleMessage(string, string_133_, i, string, null,
					19, 0, string);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class348_Sub42_Sub8.aClass114_9550) {
			DummyInputstream.parseEntityPacket(Class327.aClass74_4098, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (SocketWorker.aClass114_2665 == Class348_Sub3.currentIncomingPacket) {
			for (int i = 0;
			i < ClassicLoadingScreen.onscreenPlayers.length;
			i++) {
				if (ClassicLoadingScreen.onscreenPlayers[i]
				                                                    != null) {
					((Mob)
							ClassicLoadingScreen.onscreenPlayers[i])
							.anIntArray10236
							= null;
					((Mob)
							ClassicLoadingScreen.onscreenPlayers[i])
							.anInt10286
							= -1;
				}
			}
			for (int i = 0;
			(i ^ 0xffffffff) > (Class348_Sub32.anInt6930 ^ 0xffffffff);
			i++) {
				((Mob)
						(((Class348_Sub22)
								Class348_Sub40_Sub23.aClass348_Sub22Array9319[i])
								.aClass318_Sub1_Sub3_Sub3_Sub1_6859)).anIntArray10236
								= null;
				((Mob)
						(((Class348_Sub22)
								Class348_Sub40_Sub23.aClass348_Sub22Array9319[i])
								.aClass318_Sub1_Sub3_Sub3_Sub1_6859)).anInt10286
								= -1;
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (ToolkitInfo.aClass114_4477 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3346(255);
			int i_134_
			= Class299.gameBuffer.getShort();
			int i_135_ = Class299.gameBuffer.getWordLE128(-109);
			int i_136_ = Class299.gameBuffer.method3355(16);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			Class122.method1085(i_136_, i_134_, (byte) -86, i_135_, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class95.aClass114_1540 == Class348_Sub3.currentIncomingPacket) {
			Class57.aClass227_1055
			= Class38.method360((byte) -57,
					Class299.gameBuffer
					.getUByte());
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class239_Sub21.aClass114_6058 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(Class186.aClass74_2491, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class176.aClass114_2331 == Class348_Sub3.currentIncomingPacket) {
			Class348_Sub42_Sub12.ignoreListLength
			= Class299.gameBuffer.getUByte();
			for (int i = 0; Class348_Sub42_Sub12.ignoreListLength > i; i++) {
				ObjectDefinition.ignoreListUsernames[i] = Class299
				.gameBuffer
				.getJstr();
				Class122.aStringArray1808[i]
				                          = Class299.gameBuffer
				                          .getJstr();
				if (Class122.aStringArray1808[i].equals(""))
					Class122.aStringArray1808[i] = ObjectDefinition.ignoreListUsernames[i];
				Class348_Sub40_Sub21.ignoreListGamenames[i]
				                                      = Class299.gameBuffer.getJstr();
				aa_Sub2.aStringArray5197[i]
				                         = Class299.gameBuffer
				                         .getJstr();
				if (aa_Sub2.aStringArray5197[i].equals(""))
					aa_Sub2.aStringArray5197[i]
					                         = Class348_Sub40_Sub21.ignoreListGamenames[i];
				Class367_Sub3.aBooleanArray7304[i] = false;
			}
			Class126.anInt4985 = LoadingHandler.anInt3918;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class166.aClass114_2183) {
			int i = Class299.gameBuffer.getWordLE128(-121);
			if (i == 65535)
				i = -1;
			String string
			= Class299.gameBuffer.getJstr();
			int i_137_
			= Class299.gameBuffer.method3342();
			int i_138_
			= Class299.gameBuffer.method3393((byte) 13);
			if ((i_137_ ^ 0xffffffff) <= -2 && i_137_ <= 8) {
				if (string.equalsIgnoreCase("null"))
					string = null;
				Class318_Sub1_Sub2_Sub1.aStringArray10195[i_137_ + -1]
				                                          = string;
				Canvas_Sub1.anIntArray60[i_137_ + -1] = i;
				Class71.aBooleanArray1214[i_137_ - 1]
				                          = (i_138_ ^ 0xffffffff) == -1;
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class128.aClass114_1871 == Class348_Sub3.currentIncomingPacket) {
			int type = Class299.gameBuffer.getSmartB();
			int intArg = Class299.gameBuffer.getDword();
			int settings = Class299.gameBuffer.getUByte();
			String subStr = "";
			String subSubStr = subStr;
			if ((settings & 0x1) != 0) {
                            subStr = Class299.gameBuffer.getJstr();
                            if ((settings & 0x2) != 0)
                                subSubStr = Class299.gameBuffer.getJstr();
                            else
                                subSubStr = subStr;
			}
			String messageStr = Class299.gameBuffer.getJstr();
			if (type == 99)
                            ClientApplet.addConsoleMessage(messageStr);
			else {
				if (!subSubStr.equals("") && GamePacket.method3455(subSubStr, 28280)) {
                                    Class348_Sub3.currentIncomingPacket = null;
                                    return true;
				}
				Class286_Sub2.handleMessage(subSubStr, type, intArg, messageStr, subStr, subStr);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == AbstractMouseEvent.aClass114_7105) {
			int i = Class299.gameBuffer.getUByte();
			if ((Class299.gameBuffer.getUByte()
					^ 0xffffffff)
					== -1)
				Class239_Sub26.aClass54Array6114[i] = new Class54();
			else {
				((ByteBuffer) Class299.gameBuffer)
				.position--;
				Class239_Sub26.aClass54Array6114[i]
				                                 = new Class54(Class299.gameBuffer);
			}
			Class348_Sub3.currentIncomingPacket = null;
			Class189.anInt2523 = LoadingHandler.anInt3918;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == AbstractWorld.aClass114_1702) {
			int i = Class299.gameBuffer.getWord(13638);
			int i_143_ = Class299.gameBuffer.method3343((byte) 82);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -126);
			Class173.method1330(i, -19906, i_143_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class3.aClass114_123) {
			int i = Class299.gameBuffer.method3343((byte) 82);
			int i_144_
			= Class299.gameBuffer.getShort();
			int i_145_
			= Class299.gameBuffer.getShort();
			if (i_145_ == 65535)
				i_145_ = -1;
			int i_146_ = Class299.gameBuffer.method3355(124);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			if ((i_146_ ^ 0xffffffff) == -65536)
				i_146_ = -1;
			for (int i_147_ = i_146_; i_145_ >= i_147_; i_147_++) {
				long l = ((long) i << 364410720) - -(long) i_147_;
				Class348_Sub44 class348_sub44
				= ((Class348_Sub44)
						Class226.aClass356_2959.get(l));
				Class348_Sub44 class348_sub44_148_;
				if (class348_sub44 == null) {
					if ((i_147_ ^ 0xffffffff) == 0)
						class348_sub44_148_
						= (new Class348_Sub44
								(((Class348_Sub44)
										(((Widget) AbstractFontRasterizer.getWidget(i))
												.aClass348_Sub44_748)).anInt7098,
												i_144_));
					else
						class348_sub44_148_ = new Class348_Sub44(0, i_144_);
				} else {
					class348_sub44_148_
					= new Class348_Sub44((((Class348_Sub44) class348_sub44)
							.anInt7098),
							i_144_);
					class348_sub44.removeNode();
				}
				Class226.aClass356_2959.putNode(l,
						class348_sub44_148_);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == AbstractMouseEvent.aClass114_7106) {
			while ((((ByteBuffer) Class299.gameBuffer).position) < Class348_Sub40_Sub25.currentPacketSize) {
				boolean bool_149_
				= Class299.gameBuffer.getUByte() == 1;
				String string = Class299.gameBuffer
				.getJstr();
				String string_150_ = Class299.gameBuffer
				.getJstr();
				int i
				= Class299.gameBuffer.getShort();
				int i_151_
				= Class299.gameBuffer.getUByte();
				String string_152_ = "";
				boolean bool_153_ = false;
				if (i > 0) {
					string_152_ = Class299.gameBuffer
					.getJstr();
					bool_153_
					= (Class299.gameBuffer.getUByte()
							== 1);
				}
				for (int i_154_ = 0;
				((Class348_Sub40_Sub30.friendListLength ^ 0xffffffff)
						< (i_154_ ^ 0xffffffff));
				i_154_++) {
					if (!bool_149_) {
						if (string.equals(Class83.friendListUsernames[i_154_])) {
							if (i != AbstractToolkit.anIntArray4578[i_154_]) {
								boolean bool_155_ = true;
								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) 124))) {
									if (((Class318_Sub9_Sub1)
											class318_sub9_sub1)
											.aString8783.equals(string)) {
										if ((i ^ 0xffffffff) == -1
												|| (((Class318_Sub9_Sub1)
														class318_sub9_sub1).aShort8786
														!= 0)) {
											if ((i ^ 0xffffffff) == -1
													&& (((Class318_Sub9_Sub1)
															class318_sub9_sub1)
															.aShort8786) != 0) {
												bool_155_ = false;
												class318_sub9_sub1
												.method2373(false);
											}
										} else {
											bool_155_ = false;
											class318_sub9_sub1
											.method2373(false);
										}
									}
								}
								if (bool_155_)
									Class348_Sub42_Sub14.aClass243_9642
									.method1869
									(-95,
											new Class318_Sub9_Sub1(string, i));
								AbstractToolkit.anIntArray4578[i_154_] = i;
							}
							Class286_Sub2.friendListGamenames[i_154_]
							                               = string_150_;
							Class285.clanChatWorld[i_154_] = string_152_;
							Class172.clanChatRanking[i_154_] = i_151_;
							string = null;
							Class122.aBooleanArray1806[i_154_] = bool_153_;
							break;
						}
					} else if (string_150_
							.equals(Class83.friendListUsernames[i_154_])) {
						Class83.friendListUsernames[i_154_] = string;
						Class286_Sub2.friendListGamenames[i_154_] = string_150_;
						string = null;
						break;
					}
				}
				if (string != null
						&& (Class348_Sub40_Sub30.friendListLength ^ 0xffffffff) > -201) {
					Class83.friendListUsernames[Class348_Sub40_Sub30.friendListLength]
					                         = string;
					Class286_Sub2.friendListGamenames[(Class348_Sub40_Sub30
							.friendListLength)]
							= string_150_;
					AbstractToolkit.anIntArray4578[Class348_Sub40_Sub30.friendListLength] = i;
					Class285.clanChatWorld[Class348_Sub40_Sub30.friendListLength]
					                          = string_152_;
					Class172.clanChatRanking[Class348_Sub40_Sub30.friendListLength]
					                        = i_151_;
					Class122.aBooleanArray1806[Class348_Sub40_Sub30.friendListLength]
					                           = bool_153_;
					Class348_Sub40_Sub30.friendListLength++;
				}
			}
			Class125.socialListStates = 2;
			Class126.anInt4985 = LoadingHandler.anInt3918;
			boolean bool_156_ = false;
			int i = Class348_Sub40_Sub30.friendListLength;
			while ((i ^ 0xffffffff) < -1) {
				i--;
				bool_156_ = true;
				for (int i_157_ = 0; i > i_157_; i_157_++) {
					if (((((ConnectionMode) Class3.currentConnection).portOffset
							!= AbstractToolkit.anIntArray4578[i_157_])
							&& ((((ConnectionMode) Class3.currentConnection).portOffset
									^ 0xffffffff)
									== (AbstractToolkit.anIntArray4578[i_157_ - -1] ^ 0xffffffff)))
									|| (AbstractToolkit.anIntArray4578[i_157_] == 0
											&& ((AbstractToolkit.anIntArray4578[1 + i_157_] ^ 0xffffffff)
													!= -1))) {
						int i_158_ = AbstractToolkit.anIntArray4578[i_157_];
						AbstractToolkit.anIntArray4578[i_157_]
						                  = AbstractToolkit.anIntArray4578[1 + i_157_];
						AbstractToolkit.anIntArray4578[i_157_ - -1] = i_158_;
						String string = Class285.clanChatWorld[i_157_];
						Class285.clanChatWorld[i_157_]
						                          = Class285.clanChatWorld[1 + i_157_];
						Class285.clanChatWorld[1 + i_157_] = string;
						String string_159_ = Class83.friendListUsernames[i_157_];
						Class83.friendListUsernames[i_157_]
						                         = Class83.friendListUsernames[i_157_ + 1];
						Class83.friendListUsernames[i_157_ + 1] = string_159_;
						String string_160_
						= Class286_Sub2.friendListGamenames[i_157_];
						Class286_Sub2.friendListGamenames[i_157_]
						                               = Class286_Sub2.friendListGamenames[i_157_ + 1];
						Class286_Sub2.friendListGamenames[i_157_ - -1]
						                               = string_160_;
						int i_161_ = Class172.clanChatRanking[i_157_];
						Class172.clanChatRanking[i_157_]
						                        = Class172.clanChatRanking[1 + i_157_];
						Class172.clanChatRanking[i_157_ + 1] = i_161_;
						boolean bool_162_ = Class122.aBooleanArray1806[i_157_];
						Class122.aBooleanArray1806[i_157_]
						                           = Class122.aBooleanArray1806[1 + i_157_];
						bool_156_ = false;
						Class122.aBooleanArray1806[i_157_ + 1] = bool_162_;
					}
				}
				if (bool_156_)
					break;
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class59_Sub2_Sub2.aClass114_8683 == Class348_Sub3.currentIncomingPacket) {
			if (Class34.aFrame476 != null)
				Whirlpool.method830(((Class348_Sub51)
						BitmapTable.aClass348_Sub51_3959)
						.aClass239_Sub8_7227.method1751(-32350),
						-1, (byte) 102, false, -1);
			byte[] is = new byte[Class348_Sub40_Sub25.currentPacketSize];
			Class299.gameBuffer.encipherArray(is, 0, Class348_Sub40_Sub25.currentPacketSize);
			String string = Class367_Sub8.method3546(is, 0, Class348_Sub40_Sub25.currentPacketSize, 0);
			Class179.method1360(string, Class348_Sub23_Sub1.signlink,
					(((Class348_Sub51)
							BitmapTable.aClass348_Sub51_3959)
							.aClass239_Sub25_7271.method1829(-32350)
							^ 0xffffffff) == -2,
							true, 99);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class367_Sub8.aClass114_7363 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getShort();
			if (i == 65535)
				i = -1;
			int i_163_ = Class299.gameBuffer.getUByte();
			int i_164_
			= Class299.gameBuffer.getShort();
			int i_165_ = Class299.gameBuffer.getUByte();
			int i_166_
			= Class299.gameBuffer.getShort();
			Class348_Sub20.method2947(true, i_165_, i, i_163_, i_164_, i_166_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239.aClass114_3143) {
			int i = Class299.gameBuffer.getShort();
			byte i_167_ = Class299.gameBuffer.getByte();
			Mob.varbitHandler.putQueuedConfig(i, i_167_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket
				== Entity.aClass114_8756) {
			int i = Class299.gameBuffer.readLEShort(false);
			if ((i ^ 0xffffffff) == -65536)
				i = -1;
			int i_168_ = Class299.gameBuffer.method3346(255);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			Class25.method304(i, 437853543, i_168_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class280.aClass114_3641) {
			DummyInputstream.parseEntityPacket(Class348_Sub35.aClass74_6977, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class218.aClass114_2860) {
			int i = Class299.gameBuffer.getShort();
			if (i == 65535)
				i = -1;
			int i_169_ = Class299.gameBuffer.getUByte();
			int i_170_
			= Class299.gameBuffer.getShort();
			int i_171_ = Class299.gameBuffer.getUByte();
			int i_172_
			= Class299.gameBuffer.getShort();
			Class279.method2090(i_169_, i_172_, false, (byte) -35, i_171_,
					i_170_, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}

		// 19 - region
		if (Class348_Sub3.currentIncomingPacket == Class20.serverPacket19) {
			Class348_Sub40_Sub26.parseSetRegionPacket(-86);
			Class348_Sub3.currentIncomingPacket = null;
			return false;
		}
		if (Class348_Sub3.currentIncomingPacket == Class345.aClass114_4272) {
			int i = Class299.gameBuffer.method3355(-127);
			int i_173_ = Class299.gameBuffer.getUByte();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -128);
			Class55_Sub1.method524(i_173_, true, i, -127);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class205.aClass114_2693 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_174_
			= ((Class299.gameBuffer.getUByte()
					^ 0xffffffff)
					== -2);
			String string
			= Class299.gameBuffer.getJstr();
			String string_175_ = string;
			if (bool_174_)
				string_175_ = Class299.gameBuffer
				.getJstr();
			long l = (long) Class299.gameBuffer
			.getShort();
			long l_176_
			= (long) Class299.gameBuffer.getTri();
			int i = Class299.gameBuffer.getUByte();
			int i_177_
			= Class299.gameBuffer.getShort();
			long l_178_ = l_176_ + (l << 1030054048);
			boolean bool_179_ = false;
			while_220_:
				do {
					for (int i_180_ = 0; i_180_ < 100; i_180_++) {
						if (l_178_ == Class357.aLongArray4410[i_180_]) {
							bool_179_ = true;
							break while_220_;
						}
					}
					if ((i ^ 0xffffffff) >= -2
							&& GamePacket.method3455(string_175_, 28280))
						bool_179_ = true;
				} while (false);
			if (!bool_179_ && Class250.anInt3227 == 0) {
				Class357.aLongArray4410[NpcDefinition.ignoreListOffset] = l_178_;
				NpcDefinition.ignoreListOffset = (NpcDefinition.ignoreListOffset - -1) % 100;
				String string_181_
				= (Class239_Sub6.aClass355_5900.method3471
						(i_177_, (byte) -93).method3216
						(Class299.gameBuffer, (byte) 62));
				if (i == 2)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=1>" + string_175_,
							string_181_, i_177_,
							"<img=1>" + string,
							null, 18, 0, string);
				else if (i == 1)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=0>" + string_175_,
							string_181_, i_177_,
							"<img=0>" + string,
							null, 18, 0, string);
				else
					Class318_Sub1_Sub3_Sub5.handleMessage(string_175_,
							string_181_, i_177_,
							string, null, 18, 0,
							string);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class367_Sub9.aClass114_7367) {
			int i = Class299.gameBuffer.readLEShort(false);
			int i_182_
			= Class299.gameBuffer.method3364((byte) -122);
			int i_183_
			= Class299.gameBuffer.method3393((byte) -95);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			Class348_Sub41 class348_sub41
			= ((Class348_Sub41)
					Class125.aClass356_4915.get((long) i_182_));
			if (class348_sub41 != null)
				Class127_Sub1.method1118(((((Class348_Sub41) class348_sub41)
						.anInt7050)
						^ 0xffffffff) != (i ^ 0xffffffff),
						false, class348_sub41, 2533);
			Class338.method2661(i, i_182_, i_183_, false, 2);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class127_Sub1.serverPacket18) {
			Class348_Sub3.currentIncomingPacket = null;
			Class125.socialListStates = 1;
			Class126.anInt4985 = LoadingHandler.anInt3918;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class176.serverPacket80) {
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			Class128.method1122(0);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class13.aClass114_220 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getShort();
			int i_184_
			= Class299.gameBuffer.getShort();
			int i_185_
			= Class299.gameBuffer.getShort();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			if (Class348_Sub40_Sub33.aClass46ArrayArray9427[i] != null) {
				for (int i_186_ = i_184_; i_185_ > i_186_; i_186_++) {
					int i_187_
					= Class299.gameBuffer.getTri();
					if ((i_186_ ^ 0xffffffff) > ((Class348_Sub40_Sub33
							.aClass46ArrayArray9427
							[i]).length
							^ 0xffffffff)
							&& (Class348_Sub40_Sub33.aClass46ArrayArray9427[i]
							                                                [i_186_]) != null)
						((Widget) (Class348_Sub40_Sub33.aClass46ArrayArray9427
								[i][i_186_])).anInt732
								= i_187_;
				}
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239_Sub14.aClass114_5992) {
			DummyInputstream.parseEntityPacket(Class265.aClass74_4689, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub38.aClass114_7015 == Class348_Sub3.currentIncomingPacket) {
			Class348_Sub40_Sub12.anInt9200
			= Class299.gameBuffer.method3393((byte) 126);
			FileArchiveTracker.anInt4786
			= (Class299.gameBuffer.method3361(-622951480)
					<< -968699997);
			NpcLoader.anInt3581
			= (Class299.gameBuffer.method3361(-622951480)
					<< 487411331);
			for (Class348_Sub37 class348_sub37
					= (Class348_Sub37) Class130.aClass356_1895.method3484(0);
			class348_sub37 != null;
			class348_sub37 = ((Class348_Sub37)
					Class130.aClass356_1895.method3482(0))) {
				int i = (int) ((((Node) class348_sub37).nodeKey
						>> -1966142564)
						& 0x3L);
				int i_188_
				= (int) (((Node) class348_sub37).nodeKey & 0x3fffL);
				int i_189_ = i_188_ + -za_Sub2.baseRegionX;
				int i_190_
				= (int) (0x3fffL & (((Node) class348_sub37).nodeKey
						>> -554737970));
				int i_191_ = -Class90.baseRegionY + i_190_;
				if (i == Class348_Sub40_Sub12.anInt9200
						&& (i_189_ ^ 0xffffffff) <= (NpcLoader.anInt3581
								^ 0xffffffff)
								&& (i_189_ ^ 0xffffffff) > (8 + NpcLoader.anInt3581
										^ 0xffffffff)
										&& (i_191_ ^ 0xffffffff) <= (FileArchiveTracker.anInt4786
												^ 0xffffffff)
												&& FileArchiveTracker.anInt4786 - -8 > i_191_) {
					class348_sub37.removeNode();
					if ((i_189_ ^ 0xffffffff) <= -1
							&& (i_191_ ^ 0xffffffff) <= -1
							&& i_189_ < Class367_Sub4.mapSizeX
							&& ((Class348_Sub40_Sub3.mapSizeY ^ 0xffffffff)
									< (i_191_ ^ 0xffffffff)))
						Class203.method1479(i_191_, (byte) -118, i_189_,
								Class348_Sub40_Sub12.anInt9200);
				}
			}
			for (Class348_Sub27 class348_sub27
					= ((Class348_Sub27)
							Class348_Sub42_Sub20.aClass262_9711.getFirst(4));
			class348_sub27 != null;
			class348_sub27
			= (Class348_Sub27) Class348_Sub42_Sub20.aClass262_9711
			.nextForward((byte) 31)) {
				if (((((Class348_Sub27) class348_sub27).anInt6905 ^ 0xffffffff)
						<= (NpcLoader.anInt3581 ^ 0xffffffff))
						&& ((NpcLoader.anInt3581 - -8 ^ 0xffffffff)
								< (((Class348_Sub27) class348_sub27).anInt6905
										^ 0xffffffff))
										&& ((FileArchiveTracker.anInt4786 ^ 0xffffffff)
												>= (((Class348_Sub27) class348_sub27).anInt6896
														^ 0xffffffff))
														&& (((Class348_Sub27) class348_sub27).anInt6896
																< FileArchiveTracker.anInt4786 + 8)
																&& (((Class348_Sub27) class348_sub27).anInt6899
																		== Class348_Sub40_Sub12.anInt9200))
					((Class348_Sub27) class348_sub27).anInt6893 = 0;
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239_Sub15.aClass114_5997) {
			int i = Class299.gameBuffer.method3329((byte) 21);
			int[] is = new int[4];
			for (int i_192_ = 0; i_192_ < 4; i_192_++)
				is[i_192_] = Class299.gameBuffer.getShort();
			int i_193_ = Class299.gameBuffer.readLEShort(false);
			Class348_Sub22 class348_sub22 = ((Class348_Sub22) Class282.aClass356_3654.get((long) i_193_));
			if (class348_sub22 != null)
				Class348_Sub17.method2931
				(i, (byte) 110, is, (((Class348_Sub22) class348_sub22)
						.aClass318_Sub1_Sub3_Sub3_Sub1_6859));
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class348_Sub40_Sub22.aClass114_9285) {
			IntegerVarScriptSettingLoader.anInt3306 = Class299.gameBuffer.getUByte();
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub40_Sub24.aClass114_9324
				== Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3342();
			int i_194_
			= Class299.gameBuffer.method3342();
			int i_195_ = Class299.gameBuffer.getWordLE128(-127);
			if (i_195_ == 65535)
				i_195_ = -1;
			Class151.method1212(i_194_, i_195_, -1, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class321.aClass114_4015 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3363(-13309);
			int i_196_ = Class299.gameBuffer.getWordLE128(-124);
			if ((i_196_ ^ 0xffffffff) == -65536)
				i_196_ = -1;
			int i_197_ = Class299.gameBuffer.method3329((byte) 21);
			Class177.method1352(i_196_, i_197_, i, (byte) -98);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub40_Sub12.aClass114_9197
				== Class348_Sub3.currentIncomingPacket) {
			String string
			= Class299.gameBuffer.getJstr();
			String string_198_
			= Class59_Sub2_Sub2.method572((Class348_Sub40_Sub32.method3136
					((byte) 64,
							(Class299
									.gameBuffer))),
									23034);
			Class286_Sub2.handleMessage(string, 6, 0, string_198_,
					string, string);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class127_Sub1.aClass114_8385) {
			int i = Class299.gameBuffer.method3364((byte) -124);
			String string = Class299.gameBuffer.getJstr();
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			Class239_Sub19.method1803(i, string, -32394);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class174.aClass114_2305) {
			int i = Class299.gameBuffer.method3343((byte) 82);
			int i_199_ = Class299.gameBuffer.method3346(255);
			int i_200_ = Class299.gameBuffer.readLEShort(false);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -126);
			AbstractConnection.method1703(5, i, i_200_, 4, i_199_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (GfxDefinition.aClass114_4500 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_201_
			= (Class299.gameBuffer.method3329((byte) 21)
					== 1);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class122.aBoolean1801 = bool_201_;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class59.aClass114_1068) {
			Class268.method2038(-103);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub1_Sub2.aClass114_8817
				== Class348_Sub3.currentIncomingPacket) {
			za.anInt7276
			= Class299.gameBuffer.method3342();
			Class290.anInt3713
			= Class299.gameBuffer.method3393((byte) -82);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket
				== Class348_Sub40_Sub19.aClass114_9257) {
			int i = Class299.gameBuffer.method3329((byte) 21);
			int i_202_ = Class299.gameBuffer.method3355(127);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			if (i == 2)
				Class130_Sub1.method1134(92);
			r.anInt9721 = i_202_;
			Class348_Sub7.method2772(i_202_, (byte) 123);
			Class239.method1713(false, 520);
			ScriptExecutor.method703(r.anInt9721);
			for (int i_203_ = 0; i_203_ < 100; i_203_++)
				Class152.aBooleanArray2076[i_203_] = true;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class260.aClass114_3307) {
			if (!ArchiveFetcher.method2672(Class240.anInt4674, -105))
				Class289.anInt3699
				= (Class299.gameBuffer.getShort()
						* 30);
			else
				Class289.anInt3699
				= (int) ((float) Class299.gameBuffer
						.getShort()
						* 2.5F);
			Class348_Sub40_Sub23.anInt9313 = LoadingHandler.anInt3918;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class318_Sub1.aClass114_6383) {
			int i = Class299.gameBuffer.getShort();
			if (i == 65535)
				i = -1;
			int i_204_ = Class299.gameBuffer.getUByte();
			int i_205_
			= Class299.gameBuffer.getShort();
			int i_206_ = Class299.gameBuffer.getUByte();
			Class279.method2090(i_204_, 256, true, (byte) -35, i_206_, i_205_,
					i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class318_Sub1_Sub5_Sub2.aClass114_10149
				== Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3355(-16);
			if (i == 65535)
				i = -1;
			int i_207_
			= Class299.gameBuffer.method3343((byte) 82);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -125);
			AbstractConnection.method1703(1, i_207_, i, 4, -1);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class47.aClass114_843) {
			DummyInputstream.parseEntityPacket(Class91.aClass74_1519, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == Class239_Sub4.aClass114_5883) {
			int i = Class299.gameBuffer.method3355(125);
			if ((i ^ 0xffffffff) == -65536)
				i = -1;
			int i_208_ = Class299.gameBuffer.readLEShort(false);
			if ((i_208_ ^ 0xffffffff) == -65536)
				i_208_ = -1;
			int i_209_
			= Class299.gameBuffer.getDword();
			int i_210_ = Class299.gameBuffer.method3346(255);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -127);
			for (int i_211_ = i_208_;
			(i ^ 0xffffffff) <= (i_211_ ^ 0xffffffff); i_211_++) {
				long l = (long) i_211_ + ((long) i_209_ << -1739569952);
				Class348_Sub44 class348_sub44
				= ((Class348_Sub44)
						Class226.aClass356_2959.get(l));
				Class348_Sub44 class348_sub44_212_;
				if (class348_sub44 != null) {
					class348_sub44_212_
					= new Class348_Sub44(i_210_,
							(((Class348_Sub44) class348_sub44)
									.anInt7093));
					class348_sub44.removeNode();
				} else if (i_211_ == -1)
					class348_sub44_212_
					= (new Class348_Sub44
							(i_210_,
									((Class348_Sub44)
											(((Widget) AbstractFontRasterizer.getWidget(i_209_))
													.aClass348_Sub44_748)).anInt7093));
				else
					class348_sub44_212_ = new Class348_Sub44(i_210_, -1);
				Class226.aClass356_2959.putNode(l,
						class348_sub44_212_);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
                /* Larger set varbit config packet */
		if (Class348_Sub3.currentIncomingPacket == Class151.aClass114_2068) {
                    int id = Class299.gameBuffer.method3355(-103);
                    int value = Class299.gameBuffer.method3346(255);
                    Mob.varbitHandler.putQueuedSetting(id, value);
                    Class348_Sub3.currentIncomingPacket = null;
                    return true;
		}
		if (Class348_Sub3.currentIncomingPacket == ArchiveLoader.serverPacket28) {
			((ByteBuffer) Class299.gameBuffer).position += 28;
			if (Class299.gameBuffer.isChecksumValid(-25541))
				Class179.writeClientSignature((((ByteBuffer) Class299.gameBuffer).position) - 28, (byte) -126, Class299.gameBuffer);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == AnimationDefinition.incomingPacket4) {
			NativeLibTracker.runEnergy = Class299.gameBuffer.getUByte();
			Class348_Sub40_Sub23.anInt9313 = LoadingHandler.anInt3918;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class185.aClass114_2483 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3342();
			int i_214_ = Class299.gameBuffer.method3329((byte) 21);
			int i_215_ = Class299.gameBuffer.method3343((byte) 82);
			Class186.anIntArray2497[i_214_] = i_215_;
			ConnectionMode.anIntArray2145[i_214_] = i;
			Class256.anIntArray3295[i_214_] = 1;
			int i_216_ = OutputStream_Sub1.anIntArray100[i_214_] + -1;
			for (int i_217_ = 0; i_216_ > i_217_; i_217_++) {
				if (Class59_Sub1_Sub2.anIntArray8663[i_217_] <= i_215_)
					Class256.anIntArray3295[i_214_] = i_217_ - -2;
			}
			Class199.anIntArray2632[Class139.bitAnd(31, Class326.anInt4086++)] = i_214_;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (ClanChatPlayer.aClass114_315 == Class348_Sub3.currentIncomingPacket) {
			DummyInputstream.parseEntityPacket(ModelPolygon.aClass74_2157, (byte) 8);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class28.aClass114_4998 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3355(10);
			int i_218_
			= Class299.gameBuffer.method3342();
			boolean bool_219_ = (0x1 & i_218_ ^ 0xffffffff) == -2;
			Class348_Sub40_Sub3.method3054(bool_219_, i, -128);
			Class199.anIntArray2633[Class139.bitAnd(31, AlternativeFontLoader.anInt1631++)] = i;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub40_Sub16.aClass114_9225
				== Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.getShort();
			int i_220_ = Class299.gameBuffer.getUByte();
			boolean bool_221_ = (i_220_ & 0x1) == 1;
			while ((((ByteBuffer) Class299.gameBuffer)
					.position)
					< Class348_Sub40_Sub25.currentPacketSize) {
				int i_222_
				= Class299.gameBuffer.getSmartB();
				int i_223_
				= Class299.gameBuffer.getShort();
				int i_224_ = 0;
				if (i_223_ != 0) {
					i_224_
					= Class299.gameBuffer.getUByte();
					if ((i_224_ ^ 0xffffffff) == -256)
						i_224_ = Class299.gameBuffer
						.getDword();
				}
				Canvas_Sub1.method121(i, -364570972, bool_221_, i_222_, i_224_,
						-1 + i_223_);
			}
			Class199.anIntArray2633[Class139.bitAnd(31,
					AlternativeFontLoader.anInt1631++)]
					= i;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class239_Sub11.aClass114_5950 == Class348_Sub3.currentIncomingPacket) {
			int i = Class299.gameBuffer.method3342();
			int i_225_
			= Class299.gameBuffer.method3393((byte) 127);
			if ((i ^ 0xffffffff) == -256) {
				i_225_ = -1;
				i = -1;
			}
			Class239_Sub25.method1825(120, i_225_, i);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
                /* Sets global integer variable */
		if (Class367_Sub11.incomingPacket16 == Class348_Sub3.currentIncomingPacket) {
			int value = Class299.gameBuffer.method3364((byte) -124);
			int id = Class299.gameBuffer.readLEShort(false);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			Class50_Sub3.method467(id, value);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class209.aClass114_2717 == Class348_Sub3.currentIncomingPacket) {
			Class91.method856((byte) 63);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class367_Sub3.aClass114_7301 == Class348_Sub3.currentIncomingPacket) {
			boolean bool_227_
			= ((Class299.gameBuffer.getUByte()
					^ 0xffffffff)
					== -2);
			String string
			= Class299.gameBuffer.getJstr();
			String string_228_ = string;
			if (bool_227_)
				string_228_
				= Class299.gameBuffer.getJstr();
			int i = Class299.gameBuffer.getUByte();
			int i_229_
			= Class299.gameBuffer.getShort();
			boolean bool_230_ = false;
			if (i <= 1 && GamePacket.method3455(string_228_, 28280))
				bool_230_ = true;
			if (!bool_230_ && Class250.anInt3227 == 0) {
				String string_231_
				= (Class239_Sub6.aClass355_5900.method3471
						(i_229_, (byte) -108).method3216
						(Class299.gameBuffer, (byte) 93));
				if ((i ^ 0xffffffff) == -3)
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=1>" + string_228_,
							string_231_, i_229_,
							"<img=1>" + string,
							null, 25, 0, string);
				else if (i != 1)
					Class318_Sub1_Sub3_Sub5.handleMessage(string_228_,
							string_231_, i_229_,
							string, null, 25, 0,
							string);
				else
					Class318_Sub1_Sub3_Sub5.handleMessage("<img=0>" + string_228_,
							string_231_, i_229_,
							"<img=0>" + string,
							null, 25, 0, string);
			}
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class140.aClass114_1959 == Class348_Sub3.currentIncomingPacket) {

			int i = Class299.gameBuffer.method3346(255);
			int i_232_ = Class299.gameBuffer.method3355(-110);
			Class318_Sub1_Sub1_Sub1.method2397((byte) -124);
			GameBuffer.method3411(i, 12, i_232_);
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		if (Class348_Sub3.currentIncomingPacket == OffscreenPlayer.aClass114_4421) {
			GameMode.anInt2986 = LoadingHandler.anInt3918;
			if ((Class348_Sub40_Sub25.currentPacketSize ^ 0xffffffff) == -1) {
				Class37.amountClanChatUsers = 0;
				Class50.aString863 = null;
				Class169.aClass19Array2261 = null;
				Class348_Sub21.aString6854 = null;
				Class348_Sub3.currentIncomingPacket = null;
				return true;
			}
			Class348_Sub21.aString6854
			= Class299.gameBuffer.getJstr();
			boolean bool_233_
			= Class299.gameBuffer.getUByte() == 1;
			if (bool_233_)
				Class299.gameBuffer.getJstr();
			long l = Class299.gameBuffer.getLong();
			Class50.aString863 = Class27.method313(l, -104);
			Class219.aByte2871
			= Class299.gameBuffer.getByte();
			int i = Class299.gameBuffer.getUByte();
			if (i == 255) {
				Class348_Sub3.currentIncomingPacket = null;
				return true;
			}
			Class37.amountClanChatUsers = i;
			ClanChatPlayer[] class19s = new ClanChatPlayer[100];
			for (int i_234_ = 0; Class37.amountClanChatUsers > i_234_; i_234_++) {
				class19s[i_234_] = new ClanChatPlayer();
				((ClanChatPlayer) class19s[i_234_]).aString314
				= Class299.gameBuffer
				.getJstr();
				bool_233_
				= Class299.gameBuffer.getUByte() == 1;
				if (!bool_233_)
					((ClanChatPlayer) class19s[i_234_]).aString306
					= ((ClanChatPlayer) class19s[i_234_]).aString314;
				else
					((ClanChatPlayer) class19s[i_234_]).aString306
					= Class299.gameBuffer
					.getJstr();
				((ClanChatPlayer) class19s[i_234_]).aString312
				= Class285_Sub1.unformatUsername((((ClanChatPlayer) class19s[i_234_])
						.aString306));
				((ClanChatPlayer) class19s[i_234_]).anInt308
				= Class299.gameBuffer.getShort();
				((ClanChatPlayer) class19s[i_234_]).aByte310
				= Class299.gameBuffer.getByte();
				((ClanChatPlayer) class19s[i_234_]).aString313
				= Class299.gameBuffer
				.getJstr();
				if (((ClanChatPlayer) class19s[i_234_]).aString306.equals
						(((Player)
								Class132.localPlayer)
								.aString10544))
					Class119_Sub1.aByte4702
					= ((ClanChatPlayer) class19s[i_234_]).aByte310;
			}
			boolean bool_235_ = false;
			int i_236_ = Class37.amountClanChatUsers;
			while (i_236_ > 0) {
				i_236_--;
				bool_235_ = true;
				for (int i_237_ = 0; i_236_ > i_237_; i_237_++) {
					if (((((ClanChatPlayer) class19s[i_237_]).aString312.compareTo
							(((ClanChatPlayer) class19s[1 + i_237_]).aString312))
							^ 0xffffffff)
							< -1) {
						ClanChatPlayer class19 = class19s[i_237_];
						class19s[i_237_] = class19s[i_237_ - -1];
						class19s[1 + i_237_] = class19;
						bool_235_ = false;
					}
				}
				if (bool_235_)
					break;
			}
			Class169.aClass19Array2261 = class19s;
			Class348_Sub3.currentIncomingPacket = null;
			return true;
		}
		Class156.method1242
		(("T1 - "
				+ (Class348_Sub3.currentIncomingPacket == null ? -1
						: Class348_Sub3.currentIncomingPacket.getOpcode((byte) 110))
						+ ","
						+ (Class239.aClass114_3145 == null ? -1
								: Class239.aClass114_3145.getOpcode((byte) 127))
								+ ","
								+ (Class348_Sub40_Sub36.aClass114_9456 == null ? -1
										: Class348_Sub40_Sub36.aClass114_9456.getOpcode((byte) 125))
										+ " - " + Class348_Sub40_Sub25.currentPacketSize),
										null, 15004);
		Class348_Sub40_Sub34.method3141(false, (byte) 11);
		return true;
	}