/* Class668 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.EOFException;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Iterator;
import java.util.Map;

public final class Class668
{
    RandomAccessFile aRandomAccessFile8457;
    long aLong8458;
    long aLong8459;
    static int anInt8460;
    static Class176 aClass176_8461;
    
    public final void method7972(byte[] is, int i, int i_0_, int i_1_)
	throws IOException {
	if (-389479136403786677L * ((Class668) this).aLong8459 + (long) i_0_
	    > -8723596737178451591L * ((Class668) this).aLong8458) {
	    ((Class668) this).aRandomAccessFile8457
		.seek(((Class668) this).aLong8458 * -8723596737178451591L);
	    ((Class668) this).aRandomAccessFile8457.write(1);
	    throw new EOFException();
	}
	((Class668) this).aRandomAccessFile8457.write(is, i, i_0_);
	((Class668) this).aLong8459 += (long) i_0_ * -5739050077286484637L;
    }
    
    public final void method7973(int i) throws IOException {
	if (null != ((Class668) this).aRandomAccessFile8457) {
	    ((Class668) this).aRandomAccessFile8457.close();
	    ((Class668) this).aRandomAccessFile8457 = null;
	}
    }
    
    public final long method7974(int i) throws IOException {
	return ((Class668) this).aRandomAccessFile8457.length();
    }
    
    public final int method7975(byte[] is, int i, int i_2_, int i_3_)
	throws IOException {
	int i_4_ = ((Class668) this).aRandomAccessFile8457.read(is, i, i_2_);
	if (i_4_ > 0)
	    ((Class668) this).aLong8459 += (long) i_4_ * -5739050077286484637L;
	return i_4_;
    }
    
    public void finalize() throws Throwable {
	if (((Class668) this).aRandomAccessFile8457 != null) {
	    System.out.println("");
	    method7973(-1846163542);
	}
    }
    
    void method7976() throws Throwable {
	if (((Class668) this).aRandomAccessFile8457 != null) {
	    System.out.println("");
	    method7973(-2012205619);
	}
    }
    
    void method7977() throws Throwable {
	if (((Class668) this).aRandomAccessFile8457 != null) {
	    System.out.println("");
	    method7973(-1979936674);
	}
    }
    
    final void method7978(long l) throws IOException {
	((Class668) this).aRandomAccessFile8457.seek(l);
	((Class668) this).aLong8459 = l * -5739050077286484637L;
    }
    
    public final long method7979() throws IOException {
	return ((Class668) this).aRandomAccessFile8457.length();
    }
    
    public Class668(File file, String string, long l) throws IOException {
	if (-1L == l)
	    l = 9223372036854775807L;
	if (file.length() > l)
	    file.delete();
	((Class668) this).aRandomAccessFile8457
	    = new RandomAccessFile(file, string);
	((Class668) this).aLong8458 = 3685342489507715273L * l;
	((Class668) this).aLong8459 = 0L;
	int i = ((Class668) this).aRandomAccessFile8457.read();
	if (-1 != i && !string.equals("r")) {
	    ((Class668) this).aRandomAccessFile8457.seek(0L);
	    ((Class668) this).aRandomAccessFile8457.write(i);
	}
	((Class668) this).aRandomAccessFile8457.seek(0L);
    }
    
    public static boolean method7980(int i, int i_5_) {
	return (14 == i || i == 13 || 6 == i || i == 2 || 0 == i || i == 19
		|| i == 18);
    }
    
    static final void method7981(int i, int i_6_, int i_7_) {
	if (Class497_Sub1.aFloat6817 < Class497_Sub1.aFloat6786) {
	    Class497_Sub1.aFloat6817
		+= (double) Class497_Sub1.aFloat6817 / 30.0;
	    if (Class497_Sub1.aFloat6817 > Class497_Sub1.aFloat6786)
		Class497_Sub1.aFloat6817 = Class497_Sub1.aFloat6786;
	    Class479_Sub1.method9033((byte) 106);
	    Class497_Sub1.anInt6782 = (int) Class497_Sub1.aFloat6786 >> 1;
	    Class497_Sub1.aByteArrayArrayArray6781
		= Class73.method1153(Class497_Sub1.anInt6782, -1538932175);
	} else if (Class497_Sub1.aFloat6817 > Class497_Sub1.aFloat6786) {
	    Class497_Sub1.aFloat6817
		-= (double) Class497_Sub1.aFloat6817 / 30.0;
	    if (Class497_Sub1.aFloat6817 < Class497_Sub1.aFloat6786)
		Class497_Sub1.aFloat6817 = Class497_Sub1.aFloat6786;
	    Class479_Sub1.method9033((byte) 67);
	    Class497_Sub1.anInt6782 = (int) Class497_Sub1.aFloat6786 >> 1;
	    Class497_Sub1.aByteArrayArrayArray6781
		= Class73.method1153(Class497_Sub1.anInt6782, -1034109154);
	}
	if (-1 != Class497_Sub1.anInt10450 * 2077382295
	    && Class497_Sub1.anInt10451 * 1171762839 != -1) {
	    int i_8_ = (Class497_Sub1.anInt10450 * 2077382295
			- Class497_Sub1.anInt10452 * 1675380369);
	    if (i_8_ != 0)
		i_8_ /= Math.min(Class497_Sub1.anInt10445 * 1413018777,
				 Math.abs(i_8_));
	    int i_9_ = (1171762839 * Class497_Sub1.anInt10451
			- 1050292149 * Class595.anInt7891);
	    if (0 != i_9_)
		i_9_ /= Math.min(1413018777 * Class497_Sub1.anInt10445,
				 Math.abs(i_9_));
	    Class497_Sub1.anInt10452
		= (Class497_Sub1.anInt10452 * 1675380369 + i_8_) * -79152527;
	    Class595.anInt7891
		= (Class595.anInt7891 * 1050292149 + i_9_) * 664307357;
	    if (i_8_ == 0 && i_9_ == 0) {
		Class497_Sub1.anInt10450 = 468547289;
		Class497_Sub1.anInt10451 = -1120055591;
	    }
	    Class479_Sub1.method9033((byte) 29);
	}
	Iterator iterator = Class497_Sub1.aHashMap10459.entrySet().iterator();
	while (iterator.hasNext()) {
	    Class60 class60
		= (Class60) ((Map.Entry) iterator.next()).getValue();
	    ((Class60) class60).anInt663 -= 1801367845;
	    if (0 == -1558183251 * ((Class60) class60).anInt663) {
		if (-58450475 * ((Class60) class60).anInt664 <= 1
		    && !Class497_Sub1.aBool10473)
		    iterator.remove();
		else {
		    ((Class60) class60).anInt664 -= -2057555075;
		    ((Class60) class60).anInt663
			= 154939357 * Class497_Sub1.anInt10442;
		}
	    }
	}
	iterator = Class497_Sub1.aHashMap10460.entrySet().iterator();
	while (iterator.hasNext()) {
	    Class60 class60
		= (Class60) ((Map.Entry) iterator.next()).getValue();
	    ((Class60) class60).anInt663 -= 1801367845;
	    if (-1558183251 * ((Class60) class60).anInt663 == 0) {
		if (-58450475 * ((Class60) class60).anInt664 <= 1
		    && !Class497_Sub1.aBool10473)
		    iterator.remove();
		else {
		    ((Class60) class60).anInt664 -= -2057555075;
		    ((Class60) class60).anInt663
			= Class497_Sub1.anInt10442 * 154939357;
		}
	    }
	}
	if (Class497_Sub1.aBool10453 && Class91.aClass656_1239 != null) {
	    for (Class487_Sub5 class487_sub5
		     = ((Class487_Sub5)
			Class91.aClass656_1239.method7795((short) 3242));
		 null != class487_sub5;
		 class487_sub5
		     = ((Class487_Sub5)
			Class91.aClass656_1239.method7798((byte) -104))) {
		Class210 class210
		    = ((Class210)
		       (Class497_Sub1.aClass662_Sub9_6770.method31
			((((Class487_Sub5) class487_sub5).aClass487_Sub34_10076
			  .anInt10313) * 923654319,
			 1807538516)));
		if (class487_sub5.method9101(i, i_6_, (byte) -108)) {
		    if (class210.aStringArray2184 != null) {
			if (class210.aStringArray2184[4] != null)
			    Class54.method938
				(class210.aStringArray2184[4],
				 class210.aString2185, -1, 1012, -1,
				 (long) ((((Class487_Sub5) class487_sub5)
					  .aClass487_Sub34_10076.anInt10313)
					 * 923654319),
				 -1014154811 * class210.anInt2183, 0, true,
				 false,
				 (long) (923654319
					 * (((Class487_Sub5) class487_sub5)
					    .aClass487_Sub34_10076
					    .anInt10313)),
				 false, -1037632311);
			if (null != class210.aStringArray2184[3])
			    Class54.method938
				(class210.aStringArray2184[3],
				 class210.aString2185, -1, 1011, -1,
				 (long) ((((Class487_Sub5) class487_sub5)
					  .aClass487_Sub34_10076.anInt10313)
					 * 923654319),
				 -1014154811 * class210.anInt2183, 0, true,
				 false,
				 (long) ((((Class487_Sub5) class487_sub5)
					  .aClass487_Sub34_10076.anInt10313)
					 * 923654319),
				 false, -1734311928);
			if (class210.aStringArray2184[2] != null)
			    Class54.method938(class210.aStringArray2184[2],
					      class210.aString2185, -1, 1010,
					      -1,
					      (long) (923654319
						      * (((Class487_Sub5)
							  class487_sub5)
							 .aClass487_Sub34_10076
							 .anInt10313)),
					      class210.anInt2183 * -1014154811,
					      0, true, false,
					      (long) (923654319
						      * (((Class487_Sub5)
							  class487_sub5)
							 .aClass487_Sub34_10076
							 .anInt10313)),
					      false, -1618377297);
			if (class210.aStringArray2184[1] != null)
			    Class54.method938
				(class210.aStringArray2184[1],
				 class210.aString2185, -1, 1009, -1,
				 (long) (923654319
					 * (((Class487_Sub5) class487_sub5)
					    .aClass487_Sub34_10076
					    .anInt10313)),
				 -1014154811 * class210.anInt2183, 0, true,
				 false,
				 (long) ((((Class487_Sub5) class487_sub5)
					  .aClass487_Sub34_10076.anInt10313)
					 * 923654319),
				 false, -2135677468);
			if (null != class210.aStringArray2184[0])
			    Class54.method938(class210.aStringArray2184[0],
					      class210.aString2185, -1, 1008,
					      -1,
					      (long) (923654319
						      * (((Class487_Sub5)
							  class487_sub5)
							 .aClass487_Sub34_10076
							 .anInt10313)),
					      class210.anInt2183 * -1014154811,
					      0, true, false,
					      (long) (923654319
						      * (((Class487_Sub5)
							  class487_sub5)
							 .aClass487_Sub34_10076
							 .anInt10313)),
					      false, -1733760013);
		    }
		    if (!((Class487_Sub5) class487_sub5).aClass487_Sub34_10076
			 .aBool10319) {
			((Class487_Sub5) class487_sub5)
			    .aClass487_Sub34_10076.aBool10319
			    = true;
			Class330.method4303(Class514.aClass514_7044,
					    (((Class487_Sub5) class487_sub5)
					     .aClass487_Sub34_10076
					     .anInt10313) * 923654319,
					    -1014154811 * class210.anInt2183,
					    2068376053);
		    }
		    if (((Class487_Sub5) class487_sub5).aClass487_Sub34_10076
			.aBool10319)
			Class330.method4303(Class514.aClass514_7036,
					    (923654319
					     * (((Class487_Sub5) class487_sub5)
						.aClass487_Sub34_10076
						.anInt10313)),
					    -1014154811 * class210.anInt2183,
					    2069999458);
		} else if (((Class487_Sub5) class487_sub5)
			   .aClass487_Sub34_10076.aBool10319) {
		    ((Class487_Sub5) class487_sub5).aClass487_Sub34_10076
			.aBool10319
			= false;
		    Class330.method4303(Class514.aClass514_7035,
					((((Class487_Sub5) class487_sub5)
					  .aClass487_Sub34_10076.anInt10313)
					 * 923654319),
					-1014154811 * class210.anInt2183,
					2108591279);
		}
	    }
	}
    }
    
    public static int[] method7982(int i) {
	return new int[] { Class57.anInt649 * -410424011,
			   Class412.anInt4640 * -465979745,
			   -961633257 * Class57.anInt646 };
    }
}
