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

public final class Class414
{
    long aLong6041;
    RandomAccessFile aRandomAccessFile6042;
    long aLong6043;
    static int anInt6044;
    
    public Class414(File file, String string, long l) throws IOException {
	if (-1L == l)
	    l = 9223372036854775807L;
	if (file.length() > l)
	    file.delete();
	((Class414) this).aRandomAccessFile6042
	    = new RandomAccessFile(file, string);
	((Class414) this).aLong6043 = l * -6421070719031874735L;
	((Class414) this).aLong6041 = 0L;
	int i = ((Class414) this).aRandomAccessFile6042.read();
	if (-1 != i && !string.equals("r")) {
	    ((Class414) this).aRandomAccessFile6042.seek(0L);
	    ((Class414) this).aRandomAccessFile6042.write(i);
	}
	((Class414) this).aRandomAccessFile6042.seek(0L);
    }
    
    final void method7369(long l) throws IOException {
	((Class414) this).aRandomAccessFile6042.seek(l);
	((Class414) this).aLong6041 = l * 3367545866307310445L;
    }
    
    public final void method7370(byte[] is, int i, int i_0_)
	throws IOException {
	if ((long) i_0_ + ((Class414) this).aLong6041 * -2150741499541655963L
	    > 6381695903408504241L * ((Class414) this).aLong6043) {
	    ((Class414) this).aRandomAccessFile6042
		.seek(((Class414) this).aLong6043 * 6381695903408504241L);
	    ((Class414) this).aRandomAccessFile6042.write(1);
	    throw new EOFException();
	}
	((Class414) this).aRandomAccessFile6042.write(is, i, i_0_);
	((Class414) this).aLong6041 += (long) i_0_ * 3367545866307310445L;
    }
    
    public final void method7371(int i) throws IOException {
	if (((Class414) this).aRandomAccessFile6042 != null) {
	    ((Class414) this).aRandomAccessFile6042.close();
	    ((Class414) this).aRandomAccessFile6042 = null;
	}
    }
    
    public final long method7372(int i) throws IOException {
	return ((Class414) this).aRandomAccessFile6042.length();
    }
    
    public final int method7373(byte[] is, int i, int i_1_, int i_2_)
	throws IOException {
	int i_3_ = ((Class414) this).aRandomAccessFile6042.read(is, i, i_1_);
	if (i_3_ > 0)
	    ((Class414) this).aLong6041 += (long) i_3_ * 3367545866307310445L;
	return i_3_;
    }
    
    public void finalize() throws Throwable {
	if (((Class414) this).aRandomAccessFile6042 != null) {
	    System.out.println("");
	    method7371(-337118363);
	}
    }
    
    public final void method7374(byte[] is, int i, int i_4_, short i_5_)
	throws IOException {
	if ((long) i_4_ + ((Class414) this).aLong6041 * -2150741499541655963L
	    > 6381695903408504241L * ((Class414) this).aLong6043) {
	    ((Class414) this).aRandomAccessFile6042
		.seek(((Class414) this).aLong6043 * 6381695903408504241L);
	    ((Class414) this).aRandomAccessFile6042.write(1);
	    throw new EOFException();
	}
	((Class414) this).aRandomAccessFile6042.write(is, i, i_4_);
	((Class414) this).aLong6041 += (long) i_4_ * 3367545866307310445L;
    }
    
    final void method7375(long l) throws IOException {
	((Class414) this).aRandomAccessFile6042.seek(l);
	((Class414) this).aLong6041 = l * 3367545866307310445L;
    }
    
    final void method7376(long l) throws IOException {
	((Class414) this).aRandomAccessFile6042.seek(l);
	((Class414) this).aLong6041 = l * 3367545866307310445L;
    }
    
    public final int method7377(byte[] is, int i, int i_6_)
	throws IOException {
	int i_7_ = ((Class414) this).aRandomAccessFile6042.read(is, i, i_6_);
	if (i_7_ > 0)
	    ((Class414) this).aLong6041 += (long) i_7_ * 3367545866307310445L;
	return i_7_;
    }
    
    final void method7378(long l) throws IOException {
	((Class414) this).aRandomAccessFile6042.seek(l);
	((Class414) this).aLong6041 = l * 3367545866307310445L;
    }
    
    final void method7379(long l) throws IOException {
	((Class414) this).aRandomAccessFile6042.seek(l);
	((Class414) this).aLong6041 = l * 3367545866307310445L;
    }
    
    public final void method7380(byte[] is, int i, int i_8_)
	throws IOException {
	if ((long) i_8_ + ((Class414) this).aLong6041 * -2150741499541655963L
	    > 6381695903408504241L * ((Class414) this).aLong6043) {
	    ((Class414) this).aRandomAccessFile6042
		.seek(((Class414) this).aLong6043 * 6381695903408504241L);
	    ((Class414) this).aRandomAccessFile6042.write(1);
	    throw new EOFException();
	}
	((Class414) this).aRandomAccessFile6042.write(is, i, i_8_);
	((Class414) this).aLong6041 += (long) i_8_ * 3367545866307310445L;
    }
    
    public final void method7381(byte[] is, int i, int i_9_)
	throws IOException {
	if ((long) i_9_ + ((Class414) this).aLong6041 * -2150741499541655963L
	    > 6381695903408504241L * ((Class414) this).aLong6043) {
	    ((Class414) this).aRandomAccessFile6042
		.seek(((Class414) this).aLong6043 * 6381695903408504241L);
	    ((Class414) this).aRandomAccessFile6042.write(1);
	    throw new EOFException();
	}
	((Class414) this).aRandomAccessFile6042.write(is, i, i_9_);
	((Class414) this).aLong6041 += (long) i_9_ * 3367545866307310445L;
    }
    
    void method7382() throws Throwable {
	if (((Class414) this).aRandomAccessFile6042 != null) {
	    System.out.println("");
	    method7371(-1247068075);
	}
    }
    
    public final void method7383() throws IOException {
	if (((Class414) this).aRandomAccessFile6042 != null) {
	    ((Class414) this).aRandomAccessFile6042.close();
	    ((Class414) this).aRandomAccessFile6042 = null;
	}
    }
    
    public final void method7384() throws IOException {
	if (((Class414) this).aRandomAccessFile6042 != null) {
	    ((Class414) this).aRandomAccessFile6042.close();
	    ((Class414) this).aRandomAccessFile6042 = null;
	}
    }
    
    public final long method7385() throws IOException {
	return ((Class414) this).aRandomAccessFile6042.length();
    }
    
    final void method7386(long l) throws IOException {
	((Class414) this).aRandomAccessFile6042.seek(l);
	((Class414) this).aLong6041 = l * 3367545866307310445L;
    }
    
    public final long method7387() throws IOException {
	return ((Class414) this).aRandomAccessFile6042.length();
    }
    
    static void method7388(Class479 class479, int i) {
	((Class479) class479).anObjectArray6437
	    [(((Class479) class479).anInt6432 += -1049632545) * -611591393 - 1]
	    = (Exception_Sub4.aClass495_10538.method11258
	       ((((Class479) class479).anIntArray6435
		 [((((Class479) class479).anInt6442 -= -1158629699)
		   * -117934955)]),
		(short) 21719)
	       .aString6568);
    }
    
    static boolean method7389(byte i) {
	boolean bool = true;
	if (Class201.aClass102_2407 == null) {
	    if (Class622.aClass272_7991
		    .method5325(Class201.anInt2409 * -1097028679, 1463465966))
		Class201.aClass102_2407
		    = Class176.method3887(Class622.aClass272_7991,
					  Class201.anInt2409 * -1097028679);
	    else
		bool = false;
	}
	if (null == IcmpService_Sub1.aClass102_8551) {
	    if (Class622.aClass272_7991
		    .method5325(-1814510259 * Class201.anInt2410, 2126944002))
		IcmpService_Sub1.aClass102_8551
		    = Class176.method3887(Class622.aClass272_7991,
					  -1814510259 * Class201.anInt2410);
	    else
		bool = false;
	}
	if (Class9.aClass102_41 == null) {
	    if (Class622.aClass272_7991
		    .method5325(392650187 * Class58.anInt783, 1985670680))
		Class9.aClass102_41
		    = Class176.method3887(Class622.aClass272_7991,
					  392650187 * Class58.anInt783);
	    else
		bool = false;
	}
	if (Class123.aClass622_1564 == null) {
	    if (Class371_Sub2.aClass272_10391
		    .method5325(1659864213 * Class512.anInt6776, 1613472156))
		Class123.aClass622_1564
		    = Class91.method2513(Class371_Sub2.aClass272_10391,
					 Class512.anInt6776 * 1659864213,
					 (byte) 113);
	    else
		bool = false;
	}
	if (Class452.aClass102_Sub1Array6265 == null) {
	    if (Class622.aClass272_7991
		    .method5325(Class512.anInt6776 * 1659864213, 1521419367))
		Class452.aClass102_Sub1Array6265
		    = ((Class102_Sub1[])
		       Class176.method3890(Class622.aClass272_7991,
					   1659864213 * Class512.anInt6776));
	    else
		bool = false;
	}
	return bool;
    }
    
    static final void method7390(Class479 class479, byte i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = Class529.aBool6970 ? 1 : 0;
    }
    
    static void method7391(int i, byte i_10_) {
	for (Class243 class243
		 = client.aClass431_8363.method7750((short) 16977);
	     null != class243;
	     class243 = client.aClass431_8363.method7757(-1132372218)) {
	    if ((-3545590250604181279L * class243.aLong3905 >> 48 & 0xffffL)
		== (long) i)
		class243.method4894(-1136346830);
	}
    }
}
