/* Class420 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import jaclib.ping.Ping;

public final class Class420 {
	public static Class279 aClass279_6160;
	static int anInt6161;

	static byte[] method7622(File file, int i) {
		byte[] is;
		try {
			byte[] is_0_ = new byte[i];
			Class361.method6902(file, is_0_, i, -1810286148);
			is = is_0_;
		} catch (IOException ioexception) {
			return null;
		}
		return is;
	}

	static byte[] method7623(File file, int i) {
		byte[] is;
		try {
			byte[] is_1_ = new byte[i];
			Class361.method6902(file, is_1_, i, -1553693937);
			is = is_1_;
		} catch (IOException ioexception) {
			return null;
		}
		return is;
	}

	Class420() throws Throwable {
		throw new Error();
	}

	static byte[] method7624(File file, int i) {
		byte[] is;
		try {
			byte[] is_2_ = new byte[i];
			Class361.method6902(file, is_2_, i, -1838656467);
			is = is_2_;
		} catch (IOException ioexception) {
			return null;
		}
		return is;
	}

	static byte[] method7625(File file, int i) {
		byte[] is;
		try {
			byte[] is_3_ = new byte[i];
			Class361.method6902(file, is_3_, i, -1560737768);
			is = is_3_;
		} catch (IOException ioexception) {
			return null;
		}
		return is;
	}

	static void method7626(File file, byte[] is, int i) throws IOException {
		DataInputStream datainputstream = (new DataInputStream(new BufferedInputStream(new FileInputStream(file))));
		try {
			datainputstream.readFully(is, 0, i);
		} catch (EOFException eofexception) {
			/* empty */
		}
		datainputstream.close();
	}

	static void method7627(File file, byte[] is, int i) throws IOException {
		DataInputStream datainputstream = (new DataInputStream(new BufferedInputStream(new FileInputStream(file))));
		try {
			datainputstream.readFully(is, 0, i);
		} catch (EOFException eofexception) {
			/* empty */
		}
		datainputstream.close();
	}

	public static byte[] method7628(File file) {
		return Class80.method1851(file, (int) file.length(), 1102668310);
	}

	static final boolean method7629(Class190 class190, int i) {
		boolean bool;
		try {
			bool = Class290.method5869(class190, -1410354902);
		} catch (IOException ioexception) {
			if (906940163 * client.anInt8013 == 18) {
				class190.method3968((short) 32767);
				return false;
			}
			Class599.method12907(-2009186843);
			return true;
		} catch (Exception exception) {
			Class538 class538 = client.aClass237_8070.method4789((byte) -55);
			String string = new StringBuilder().append(((Class190) class190).aClass321_2275 != null ? (((Class190) class190).aClass321_2275.anInt5075 * 321320577) : -1).append(Class1.aString10).append(null != ((Class190) class190).aClass321_2266 ? (321320577 * ((Class190) class190).aClass321_2266.anInt5075) : -1).append(Class1.aString10).append(((Class190) class190).aClass321_2261 != null ? (((Class190) class190).aClass321_2261.anInt5075 * 321320577) : -1).append(" ").append(((Class190) class190).anInt2278 * 406592487).append(Class1.aString10).append(1532636785 * class538.anInt7085 + (Class454.aClass497_Sub1_Sub3_Sub5_Sub1_6388.anIntArray11101[0])).append(Class1.aString10).append((Class454.aClass497_Sub1_Sub3_Sub5_Sub1_6388.anIntArray11107[0]) + class538.anInt7083 * -438699449).append(" ").toString();
			for (int i_4_ = 0; (i_4_ < ((Class190) class190).anInt2278 * 406592487 && i_4_ < 50); i_4_++)
				string = new StringBuilder().append(string).append(((Class190) class190).aClass587_Sub4_Sub1_2267.aByteArray8460[i_4_]).append(Class1.aString10).toString();
			Class423.method7676(string, exception, 1111921662);
			Class210.method4433(false, -1072893812);
			return true;
		}
		return bool;
	}

	public static final void method7630(String string, String string_5_, byte i) {
		Class190 class190 = Class587_Sub22.method15814(-16711936);
		Class587_Sub45 class587_sub45 = Class70.method1609(Class320.aClass320_4867, class190.aClass426_2279, 2042697197);
		if (string_5_.length() > 30)
			string_5_ = string_5_.substring(0, 30);
		class587_sub45.aClass587_Sub4_Sub1_9890.method14416((Class580.method12558(string, (byte) -73) + Class580.method12558(string_5_, (byte) -113)), 1302373931);
		class587_sub45.aClass587_Sub4_Sub1_9890.method14382(string, -1128604120);
		class587_sub45.aClass587_Sub4_Sub1_9890.method14382(string_5_, 1363411096);
		class190.method3964(class587_sub45, 1927390196);
	}

	static void method7631(int i, int i_6_, int i_7_) {
		Class587_Sub34_Sub2 class587_sub34_sub2 = Class488_Sub1.method14158(14, 0L);
		class587_sub34_sub2.method16879((byte) 60);
		((Class587_Sub34_Sub2) class587_sub34_sub2).anInt10660 = i * 889228231;
		((Class587_Sub34_Sub2) class587_sub34_sub2).anInt10646 = 849630399 * i_6_;
	}

	public static int method7632(short i) {
		if (0 == Class267.anInt4141 * 777880445) {
			Class416.aClass416_6055.method7462(new Class290("jaclib"), -1816303454);
			if (Class416.aClass416_6055.method7465((byte) 1).method312((byte) -80) != 100)
				return 1;
			if (!((Class290) Class416.aClass416_6055.method7465((byte) 1)).method5860(-1869367710) && !Class496.method11182(-643594085)) {
				try {
					Class92_Sub2.aclient8660.method4858(-1606199813);
					Class24.method948(-924149034);
					Ping.init();
				} catch (Exception_Sub3 exception_sub3) {
					Class234.method4658(Class397.aClass397_5731, exception_sub3.aString10403, (exception_sub3.anInt10402 * -1306172765), exception_sub3.getCause(), -802247017);
				} catch (Throwable throwable) {
					/* empty */
				}
			}
			Class267.anInt4141 = -1857466923;
		}
		if (1 == 777880445 * Class267.anInt4141) {
			Class267.aClass416Array4143 = Class416.method7472(331062417);
			Class416.aClass416_6035.method7462(new Class283(Class310_Sub1.aClass279_9913), -352302526);
			Class416.aClass416_6040.method7462(new Class290("jaggl"), -1322882216);
			Class290 class290 = new Class290("jagdx");
			if (!Class238.aString2786.startsWith("win"))
				class290.method5861(-1589799407);
			Class416.aClass416_6037.method7462(class290, 1616070308);
			Class416.aClass416_6038.method7462(new Class290("sw3d"), -1258271407);
			Class416.aClass416_6039.method7462(new Class290("hw3d"), -1530673392);
			Class290 class290_8_ = new Class290("jagtheora");
			class290_8_.method5861(-298515006);
			Class416.aClass416_6061.method7462(class290_8_, -240767505);
			Class416.aClass416_6041.method7462(new Class283(Class510.aClass279_6800), -513501106);
			Class416.aClass416_6048.method7462(new Class283(Class527.aClass279_7011), -651449582);
			Class416.aClass416_6043.method7462(new Class283(Class58.aClass279_978), -823724451);
			Class416.aClass416_6044.method7462(new Class283(Class494.aClass279_6648), -488319833);
			Class416.aClass416_6056.method7462(new Class283(Class468.aClass279_6436), -1780599050);
			Class416.aClass416_6046.method7462(new Class283(Class212_Sub2.aClass279_9831), -714410379);
			Class416.aClass416_6047.method7462(new Class283(Class458.aClass279_6404), 414024501);
			Class416.aClass416_6036.method7462(new Class283(Class620.aClass279_7946), 1440440232);
			Class416.aClass416_6058.method7462(new Class283(Class267.aClass279_4144), -1116490791);
			Class416.aClass416_6050.method7462(new Class283(Class457.aClass279_6402), 603195459);
			Class416.aClass416_6051.method7462(new Class283(Class499.aClass279_6689), -1298254431);
			Class416.aClass416_6052.method7462(new Class283(Class436.aClass279_6286), 1148284006);
			Class416.aClass416_6042.method7462(new Class283(Class404.aClass279_5953), -723218966);
			Class416.aClass416_6054.method7462(new Class283(Class542.aClass279_7095), 1937993050);
			Class416.aClass416_6049.method7462(new Class281((Class536.aClass279_7077), "huffman"), -1919080207);
			Class416.aClass416_6045.method7462(new Class283(Class97.aClass279_1402), 1318470150);
			Class416.aClass416_6057.method7462(new Class283(Class129.aClass279_1728), -1004012509);
			Class416.aClass416_6053.method7462(new Class283(Class13.aClass279_130), -210482488);
			Class416.aClass416_6059.method7462(new Class289((Class244.aClass279_3964), "details"), 47496228);
			for (int i_9_ = 0; i_9_ < Class267.aClass416Array4143.length; i_9_++) {
				if (Class267.aClass416Array4143[i_9_].method7465((byte) 1) == null)
					throw new RuntimeException();
			}
			int i_10_ = 0;
			Class416[] class416s = Class267.aClass416Array4143;
			for (int i_11_ = 0; i_11_ < class416s.length; i_11_++) {
				Class416 class416 = class416s[i_11_];
				int i_12_ = class416.method7463(2050833418);
				int i_13_ = class416.method7465((byte) 1).method312((byte) -121);
				i_10_ += i_12_ * i_13_ / 100;
			}
			Class267.anInt4142 = 261708609 * i_10_;
			Class267.anInt4141 = 580033450;
		}
		if (Class267.aClass416Array4143 == null)
			return 100;
		int i_14_ = 0;
		int i_15_ = 0;
		boolean bool = true;
		Class416[] class416s = Class267.aClass416Array4143;
		for (int i_16_ = 0; i_16_ < class416s.length; i_16_++) {
			Class416 class416 = class416s[i_16_];
			int i_17_ = class416.method7463(2025555793);
			int i_18_ = class416.method7465((byte) 1).method312((byte) -5);
			if (i_18_ < 100)
				bool = false;
			i_14_ += i_17_;
			i_15_ += i_18_ * i_17_ / 100;
		}
		if (bool) {
			if (!((Class290) Class416.aClass416_6061.method7465((byte) 1)).method5860(-268339353)) {
				try {
					Class92_Sub2.aclient8660.method4859((byte) 1);
				} catch (Exception_Sub3 exception_sub3) {
					/* empty */
				}
			}
			Class267.aClass416Array4143 = null;
		}
		i_15_ -= 1301886145 * Class267.anInt4142;
		i_14_ -= 1301886145 * Class267.anInt4142;
		int i_19_ = i_14_ > 0 ? i_15_ * 100 / i_14_ : 100;
		if (!bool && i_19_ > 99)
			i_19_ = 99;
		return i_19_;
	}
}
