package jagex;

/* Class312 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class OutgoingPacket {
	public static OutgoingPacket aClass312_3670;
	public static OutgoingPacket aClass312_3671;
	public static OutgoingPacket aClass312_3672;
	public static OutgoingPacket aClass312_3673;
	public static OutgoingPacket aClass312_3674;
	public static OutgoingPacket aClass312_3675;
	public static OutgoingPacket aClass312_3676;
	public static OutgoingPacket aClass312_3677;
	public static OutgoingPacket aClass312_3678;
	public static OutgoingPacket aClass312_3679;
	public static OutgoingPacket aClass312_3680;
	public static OutgoingPacket aClass312_3681;
	public static OutgoingPacket aClass312_3682;
	public static OutgoingPacket aClass312_3683 = new OutgoingPacket(0, 3);
	public static OutgoingPacket aClass312_3684;
	public static OutgoingPacket aClass312_3685;
	public static OutgoingPacket aClass312_3686;
	public static OutgoingPacket aClass312_3687;
	public static OutgoingPacket aClass312_3688;
	public static OutgoingPacket aClass312_3689;
	public static OutgoingPacket aClass312_3690;
	public static OutgoingPacket aClass312_3691;
	public static OutgoingPacket aClass312_3692;
	public static OutgoingPacket aClass312_3693;
	public static OutgoingPacket aClass312_3694;
	public static OutgoingPacket aClass312_3695;
	public static OutgoingPacket aClass312_3696;
	public static OutgoingPacket aClass312_3697;
	public static OutgoingPacket aClass312_3698;
	public static OutgoingPacket aClass312_3699;
	public static OutgoingPacket aClass312_3700;
	public static OutgoingPacket aClass312_3701;
	public static OutgoingPacket aClass312_3702;
	public static OutgoingPacket aClass312_3703;
	static OutgoingPacket aClass312_3704;
	public static OutgoingPacket aClass312_3705;
	public static OutgoingPacket aClass312_3706;
	public static OutgoingPacket aClass312_3707;
	public static OutgoingPacket GC_PACKET;
	public static OutgoingPacket aClass312_3709;
	public static OutgoingPacket aClass312_3710;
	public static OutgoingPacket aClass312_3711;
	public static OutgoingPacket TAKE_ITEM;
	public static OutgoingPacket aClass312_3713;
	public static OutgoingPacket aClass312_3714;
	public static OutgoingPacket aClass312_3715;
	public static OutgoingPacket aClass312_3716;
	public static OutgoingPacket aClass312_3717;
	public static OutgoingPacket aClass312_3718;
	public static OutgoingPacket aClass312_3719;
	public static OutgoingPacket aClass312_3720;
	public static OutgoingPacket aClass312_3721;
	public static OutgoingPacket COMMANDS_PACKET;
	public static OutgoingPacket aClass312_3723;
	public static OutgoingPacket aClass312_3724;
	public static OutgoingPacket aClass312_3725;
	static OutgoingPacket aClass312_3726;
	public static OutgoingPacket aClass312_3727;
	public static OutgoingPacket aClass312_3728;
	public static OutgoingPacket aClass312_3729;
	public static OutgoingPacket aClass312_3730;
	public static OutgoingPacket aClass312_3731;
	public static OutgoingPacket aClass312_3732;
	public static OutgoingPacket aClass312_3733;
	public static OutgoingPacket aClass312_3734;
	public static OutgoingPacket aClass312_3735;
	public static OutgoingPacket aClass312_3736;
	static OutgoingPacket aClass312_3737;
	public static OutgoingPacket aClass312_3738;
	public static OutgoingPacket aClass312_3739;
	public static OutgoingPacket aClass312_3740;
	public static OutgoingPacket aClass312_3741;
	public static OutgoingPacket aClass312_3742;
	public static OutgoingPacket aClass312_3743;
	public static OutgoingPacket aClass312_3744;
	public static OutgoingPacket aClass312_3745;
	public static OutgoingPacket aClass312_3746;
	public static OutgoingPacket aClass312_3747;
	public static OutgoingPacket aClass312_3748;
	public static OutgoingPacket UPDATE_WORLD_LIST;
	public static OutgoingPacket aClass312_3750;
	public static OutgoingPacket aClass312_3751;
	public static OutgoingPacket aClass312_3752;
	public static OutgoingPacket aClass312_3753;
	public static OutgoingPacket aClass312_3754;
	public static OutgoingPacket aClass312_3755;
	public static OutgoingPacket aClass312_3756;
	public static OutgoingPacket aClass312_3757;
	public static OutgoingPacket aClass312_3758;
	static OutgoingPacket aClass312_3759;
	public static OutgoingPacket aClass312_3760;
	public static OutgoingPacket aClass312_3761;
	public static OutgoingPacket aClass312_3762;
	int anInt3763;
	public static OutgoingPacket aClass312_3764;
	public static OutgoingPacket aClass312_3765;
	public static OutgoingPacket aClass312_3766;
	public static OutgoingPacket aClass312_3767;
	public static OutgoingPacket aClass312_3768;
	public static OutgoingPacket aClass312_3769;
	public static OutgoingPacket aClass312_3770;
	public static OutgoingPacket aClass312_3771;
	public static OutgoingPacket aClass312_3772;
	public static OutgoingPacket aClass312_3773;
	public static OutgoingPacket aClass312_3774;
	public static OutgoingPacket aClass312_3775;
	public static OutgoingPacket aClass312_3776;
	public static OutgoingPacket aClass312_3777;
	public static OutgoingPacket aClass312_3778;
	public static OutgoingPacket aClass312_3779;
	public static OutgoingPacket aClass312_3780;
	public static OutgoingPacket aClass312_3781;
	static OutgoingPacket aClass312_3782;
	public static OutgoingPacket aClass312_3783;
	public static OutgoingPacket aClass312_3784;
	public static OutgoingPacket aClass312_3785;
	public static OutgoingPacket aClass312_3786;
	public static OutgoingPacket aClass312_3787;
	public static OutgoingPacket aClass312_3788;
	public static OutgoingPacket aClass312_3789;
	public static OutgoingPacket aClass312_3790;
	public static OutgoingPacket aClass312_3791;
	int anInt3792;

	OutgoingPacket(int i, int i_0_) {
		((OutgoingPacket) this).anInt3763 = -405326903 * i;
		((OutgoingPacket) this).anInt3792 = -56544137 * i_0_;
	}

	static {
		aClass312_3671 = new OutgoingPacket(1, 3);
		aClass312_3757 = new OutgoingPacket(2, -1);
		aClass312_3673 = new OutgoingPacket(3, 3);
		aClass312_3675 = new OutgoingPacket(4, 0);
		aClass312_3681 = new OutgoingPacket(5, -2);
		aClass312_3676 = new OutgoingPacket(6, 15);
		aClass312_3714 = new OutgoingPacket(7, 8);
		aClass312_3678 = new OutgoingPacket(8, -1);
		aClass312_3679 = new OutgoingPacket(9, 4);
		aClass312_3680 = new OutgoingPacket(10, -1);
		aClass312_3690 = new OutgoingPacket(11, -1);
		TAKE_ITEM = new OutgoingPacket(12, 7);
		GC_PACKET = new OutgoingPacket(13, 4);
		aClass312_3684 = new OutgoingPacket(14, -1);
		aClass312_3685 = new OutgoingPacket(15, -2);
		aClass312_3686 = new OutgoingPacket(16, 4);
		aClass312_3687 = new OutgoingPacket(17, 9);
		aClass312_3688 = new OutgoingPacket(18, 3);
		aClass312_3732 = new OutgoingPacket(19, -1);
		aClass312_3696 = new OutgoingPacket(20, -1);
		aClass312_3691 = new OutgoingPacket(21, 8);
		aClass312_3692 = new OutgoingPacket(22, -1);
		aClass312_3701 = new OutgoingPacket(23, -1);
		COMMANDS_PACKET = new OutgoingPacket(24, -1);
		aClass312_3695 = new OutgoingPacket(25, 7);
		aClass312_3672 = new OutgoingPacket(26, -1);
		aClass312_3768 = new OutgoingPacket(27, 8);
		aClass312_3698 = new OutgoingPacket(28, -1);
		aClass312_3699 = new OutgoingPacket(29, 8);
		aClass312_3700 = new OutgoingPacket(30, 15);
		aClass312_3769 = new OutgoingPacket(31, -1);
		aClass312_3702 = new OutgoingPacket(32, 3);
		aClass312_3738 = new OutgoingPacket(33, 1);
		aClass312_3704 = new OutgoingPacket(34, -2);
		aClass312_3705 = new OutgoingPacket(35, -1);
		aClass312_3706 = new OutgoingPacket(36, 0);
		aClass312_3670 = new OutgoingPacket(37, 11);
		aClass312_3761 = new OutgoingPacket(38, 9);
		aClass312_3694 = new OutgoingPacket(39, 3);
		aClass312_3710 = new OutgoingPacket(40, 4);
		aClass312_3711 = new OutgoingPacket(41, 9);
		aClass312_3774 = new OutgoingPacket(42, 9);
		aClass312_3713 = new OutgoingPacket(43, -1);
		aClass312_3762 = new OutgoingPacket(44, 9);
		aClass312_3715 = new OutgoingPacket(45, 4);
		aClass312_3697 = new OutgoingPacket(46, -1);
		aClass312_3717 = new OutgoingPacket(47, -2);
		aClass312_3718 = new OutgoingPacket(48, -1);
		aClass312_3719 = new OutgoingPacket(49, -1);
		aClass312_3682 = new OutgoingPacket(50, 5);
		aClass312_3747 = new OutgoingPacket(51, -1);
		aClass312_3709 = new OutgoingPacket(52, 0);
		aClass312_3723 = new OutgoingPacket(53, -1);
		aClass312_3724 = new OutgoingPacket(54, 1);
		aClass312_3725 = new OutgoingPacket(55, 3);
		aClass312_3726 = new OutgoingPacket(56, 9);
		aClass312_3727 = new OutgoingPacket(57, -2);
		aClass312_3728 = new OutgoingPacket(58, 4);
		aClass312_3729 = new OutgoingPacket(59, 7);
		aClass312_3703 = new OutgoingPacket(60, 3);
		aClass312_3731 = new OutgoingPacket(61, 0);
		aClass312_3720 = new OutgoingPacket(62, 1);
		aClass312_3733 = new OutgoingPacket(63, 18);
		aClass312_3791 = new OutgoingPacket(64, 8);
		aClass312_3735 = new OutgoingPacket(65, 8);
		aClass312_3736 = new OutgoingPacket(66, 8);
		aClass312_3737 = new OutgoingPacket(67, 1);
		aClass312_3730 = new OutgoingPacket(68, -2);
		aClass312_3739 = new OutgoingPacket(69, 2);
		aClass312_3740 = new OutgoingPacket(70, 0);
		aClass312_3784 = new OutgoingPacket(71, -1);
		aClass312_3742 = new OutgoingPacket(72, 4);
		aClass312_3707 = new OutgoingPacket(73, 12);
		aClass312_3744 = new OutgoingPacket(74, 16);
		aClass312_3745 = new OutgoingPacket(75, 7);
		aClass312_3746 = new OutgoingPacket(76, -1);
		aClass312_3689 = new OutgoingPacket(77, -1);
		aClass312_3748 = new OutgoingPacket(78, 1);
		UPDATE_WORLD_LIST = new OutgoingPacket(79, 4);
		aClass312_3750 = new OutgoingPacket(80, -1);
		aClass312_3751 = new OutgoingPacket(81, -1);
		aClass312_3752 = new OutgoingPacket(82, 18);
		aClass312_3753 = new OutgoingPacket(83, -1);
		aClass312_3754 = new OutgoingPacket(84, 7);
		aClass312_3755 = new OutgoingPacket(85, -1);
		aClass312_3788 = new OutgoingPacket(86, 6);
		aClass312_3674 = new OutgoingPacket(87, 8);
		aClass312_3758 = new OutgoingPacket(88, -2);
		aClass312_3759 = new OutgoingPacket(89, 5);
		aClass312_3743 = new OutgoingPacket(90, 16);
		aClass312_3734 = new OutgoingPacket(91, 1);
		aClass312_3760 = new OutgoingPacket(92, 3);
		aClass312_3741 = new OutgoingPacket(93, 2);
		aClass312_3764 = new OutgoingPacket(94, 9);
		aClass312_3765 = new OutgoingPacket(95, 6);
		aClass312_3766 = new OutgoingPacket(96, 2);
		aClass312_3767 = new OutgoingPacket(97, 3);
		aClass312_3677 = new OutgoingPacket(98, 3);
		aClass312_3780 = new OutgoingPacket(99, 4);
		aClass312_3770 = new OutgoingPacket(100, 0);
		aClass312_3771 = new OutgoingPacket(101, -1);
		aClass312_3772 = new OutgoingPacket(102, 3);
		aClass312_3773 = new OutgoingPacket(103, 8);
		aClass312_3693 = new OutgoingPacket(104, 6);
		aClass312_3775 = new OutgoingPacket(105, 7);
		aClass312_3776 = new OutgoingPacket(106, 3);
		aClass312_3777 = new OutgoingPacket(107, 7);
		aClass312_3778 = new OutgoingPacket(108, -2);
		aClass312_3779 = new OutgoingPacket(109, 17);
		aClass312_3756 = new OutgoingPacket(110, 3);
		aClass312_3781 = new OutgoingPacket(111, 3);
		aClass312_3782 = new OutgoingPacket(112, -2);
		aClass312_3783 = new OutgoingPacket(113, 8);
		aClass312_3716 = new OutgoingPacket(114, 11);
		aClass312_3785 = new OutgoingPacket(115, 3);
		aClass312_3786 = new OutgoingPacket(116, 4);
		aClass312_3787 = new OutgoingPacket(117, 3);
		aClass312_3721 = new OutgoingPacket(118, 9);
		aClass312_3789 = new OutgoingPacket(119, -2);
		aClass312_3790 = new OutgoingPacket(120, -2);
	}

	public static int method4053(int i, int i_1_, int i_2_, boolean bool, int i_3_) {
		if (i != 0 && (i < 50 || i > 100))
			i = 0;
		if (0 != i_1_ && (i_1_ < 50 || i_1_ > 100))
			i_1_ = 0;
		boolean bool_4_ = Class589.aString7805.startsWith("mac");
		int[] is = (Class572_Sub2.aTwitchTV8969.GetRecommendedSettings(1960824389 * Class269.anInt2861, Class584.anInt7739 * -530390519, i, 2000, i_2_, Class520.aFloat5815, bool_4_));
		if (is[0] != 0)
			return is[0];
		int i_5_ = is[1];
		int i_6_ = is[2];
		int i_7_ = is[3];
		int i_8_ = i_7_;
		Class520.aLong5801 = 0L;
		Class258.aLong2784 = -484508938309585891L * (long) (1000.0F / (float) i_2_);
		Class418.anInt4946 = i_5_ * 455318723;
		Class67.anInt692 = -810443635 * i_6_;
		if (i_1_ != 0)
			i_7_ = i_7_ * i_1_ / 100;
		Class118.method2154(new StringBuilder().append("Stream - Input: ").append(1960824389 * Class269.anInt2861).append("x").append(Class584.anInt7739 * -530390519).append(" (").append(i_8_).append("kbps)").append(" => ").append("Output: ").append(i_5_).append("x").append(i_6_).append(" [").append(i == 0 ? "auto" : new StringBuilder().append(i).append("%").toString()).append("] (").append(i_7_).append("kbps [").append(i_1_ == 0 ? "auto" : new StringBuilder().append(i_1_).append("%").toString()).append("])").toString(), 1635792417);
		return (Class572_Sub2.aTwitchTV8969.StartStreaming(i_5_, i_6_, i_2_, i_7_, 0 != i_1_, Class520.aFloat5815, -713579055 * Class520.anInt5792, bool));
	}

	static final void method4054(Cs2Executor class441, int i) {
		UnderlayDefinition underlayDefinition = (((Cs2Executor) class441).aBool5128 ? ((Cs2Executor) class441).aClass443_5112 : ((Cs2Executor) class441).aClass443_5126);
		InterfaceDefinitions class73 = ((UnderlayDefinition) underlayDefinition).aClass73_5135;
		Class83 class83 = ((UnderlayDefinition) underlayDefinition).aClass83_5134;
		Class116.method2144(class73, class83, class441, (byte) 14);
	}

	static final void method4055(Cs2Executor class441, int i) {
		UnderlayDefinition underlayDefinition = (((Cs2Executor) class441).aBool5128 ? ((Cs2Executor) class441).aClass443_5112 : ((Cs2Executor) class441).aClass443_5126);
		InterfaceDefinitions class73 = ((UnderlayDefinition) underlayDefinition).aClass73_5135;
		Class83 class83 = ((UnderlayDefinition) underlayDefinition).aClass83_5134;
		Class447.method5342(class73, class83, class441, -1967794462);
	}

	static final void method4056(InterfaceDefinitions class73, Class83 class83, Cs2Executor class441, byte i) {
		class73.anInt771 = (((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr -= -1042067865) * 1369304407)]) * 1831801847;
		class73.anInt770 = (((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr -= -1042067865) * 1369304407)]) * -1443265463;
	}

	static void method4057(int i, byte i_9_) {
		synchronized (Class19.aClass127_145) {
			Class19.aClass127_145.method2235(i, 1276169336);
		}
	}

	static final void method4058(Class456_Sub1 class456_sub1, Cs2Executor class441, int i) {
		boolean bool = false;
		int i_10_ = 0;
		int i_11_ = 0;
		int i_12_ = 0;
		int i_13_ = 0;
		if (class456_sub1.aClass90Array9007 != null) {
			for (int i_14_ = 0; i_14_ < class456_sub1.aClass90Array9007.length; i_14_++) {
				Class90 class90 = class456_sub1.aClass90Array9007[i_14_];
				if (class90.aBool1232) {
					int i_15_;
					int i_16_;
					if (class90.anInt1234 < class90.anInt1230) {
						i_15_ = class90.anInt1234 - class90.anInt1229;
						i_16_ = class90.anInt1230 + class90.anInt1229;
					} else {
						i_15_ = class90.anInt1230 - class90.anInt1229;
						i_16_ = class90.anInt1234 + class90.anInt1229;
					}
					int i_17_;
					int i_18_;
					if (class90.anInt1233 < class90.anInt1231) {
						i_17_ = class90.anInt1233 - class90.anInt1229;
						i_18_ = class90.anInt1231 + class90.anInt1229;
					} else {
						i_17_ = class90.anInt1231 - class90.anInt1229;
						i_18_ = class90.anInt1229 + class90.anInt1233;
					}
					if (!bool || i_15_ < i_10_)
						i_10_ = i_15_;
					if (!bool || i_17_ < i_11_)
						i_11_ = i_17_;
					if (!bool || i_16_ > i_12_)
						i_12_ = i_16_;
					if (!bool || i_18_ > i_13_)
						i_13_ = i_18_;
					bool = true;
				}
			}
		}
		((Cs2Executor) class441).intStack[(((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1] = bool ? 1 : 0;
		((Cs2Executor) class441).intStack[(((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1] = i_10_;
		((Cs2Executor) class441).intStack[(((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1] = i_11_;
		((Cs2Executor) class441).intStack[(((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1] = i_12_;
		((Cs2Executor) class441).intStack[(((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1] = i_13_;
	}

	static int method4059(CharSequence charsequence, int i, boolean bool, byte i_19_) {
		if (i < 2 || i > 36)
			throw new IllegalArgumentException(new StringBuilder().append("").append(i).toString());
		boolean bool_20_ = false;
		boolean bool_21_ = false;
		int i_22_ = 0;
		int i_23_ = charsequence.length();
		for (int i_24_ = 0; i_24_ < i_23_; i_24_++) {
			int i_25_ = charsequence.charAt(i_24_);
			if (0 == i_24_) {
				if (45 == i_25_) {
					bool_20_ = true;
					continue;
				}
				if (43 == i_25_ && bool)
					continue;
			}
			if (i_25_ >= 48 && i_25_ <= 57)
				i_25_ -= 48;
			else if (i_25_ >= 65 && i_25_ <= 90)
				i_25_ -= 55;
			else if (i_25_ >= 97 && i_25_ <= 122)
				i_25_ -= 87;
			else
				throw new NumberFormatException();
			if (i_25_ >= i)
				throw new NumberFormatException();
			if (bool_20_)
				i_25_ = -i_25_;
			int i_26_ = i * i_22_ + i_25_;
			if (i_22_ != i_26_ / i)
				throw new NumberFormatException();
			i_22_ = i_26_;
			bool_21_ = true;
		}
		if (!bool_21_)
			throw new NumberFormatException();
		return i_22_;
	}
}
