/* Class415 - 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 Class415 {
	long aLong6031;
	RandomAccessFile aRandomAccessFile6032;
	long aLong6033;

	public final void method7443() throws IOException {
		if (((Class415) this).aRandomAccessFile6032 != null) {
			((Class415) this).aRandomAccessFile6032.close();
			((Class415) this).aRandomAccessFile6032 = null;
		}
	}

	final void method7444(long l) throws IOException {
		((Class415) this).aRandomAccessFile6032.seek(l);
		((Class415) this).aLong6033 = -5794007675265165983L * l;
	}

	public final void method7445(byte[] is, int i, int i_0_, int i_1_) throws IOException {
		if ((long) i_0_ + ((Class415) this).aLong6033 * -3461960932292260191L > 4751322646110967533L * ((Class415) this).aLong6031) {
			((Class415) this).aRandomAccessFile6032.seek(((Class415) this).aLong6031 * 4751322646110967533L);
			((Class415) this).aRandomAccessFile6032.write(1);
			throw new EOFException();
		}
		((Class415) this).aRandomAccessFile6032.write(is, i, i_0_);
		((Class415) this).aLong6033 += -5794007675265165983L * (long) i_0_;
	}

	public final void method7446(byte i) throws IOException {
		if (((Class415) this).aRandomAccessFile6032 != null) {
			if (i < 1) {
				((Class415) this).aRandomAccessFile6032.close();
				((Class415) this).aRandomAccessFile6032 = null;
			}
		}
	}

	public final long method7447(int i) throws IOException {
		return ((Class415) this).aRandomAccessFile6032.length();
	}

	public final int method7448(byte[] is, int i, int i_2_, int i_3_) throws IOException {
		int i_4_ = ((Class415) this).aRandomAccessFile6032.read(is, i, i_2_);
		if (i_4_ > 0)
			((Class415) this).aLong6033 += -5794007675265165983L * (long) i_4_;
		return i_4_;
	}

	public void finalize() throws Throwable {
		if (null != ((Class415) this).aRandomAccessFile6032) {
			System.out.println("");
			method7446((byte) -91);
		}
	}

	void method7449() throws Throwable {
		if (null != ((Class415) this).aRandomAccessFile6032) {
			System.out.println("");
			method7446((byte) -104);
		}
	}

	void method7450() throws Throwable {
		if (null != ((Class415) this).aRandomAccessFile6032) {
			System.out.println("");
			method7446((byte) -78);
		}
	}

	final void method7451(long l) throws IOException {
		((Class415) this).aRandomAccessFile6032.seek(l);
		((Class415) this).aLong6033 = -5794007675265165983L * l;
	}

	final void method7452(long l) throws IOException {
		((Class415) this).aRandomAccessFile6032.seek(l);
		((Class415) this).aLong6033 = -5794007675265165983L * l;
	}

	final void method7453(long l) throws IOException {
		((Class415) this).aRandomAccessFile6032.seek(l);
		((Class415) this).aLong6033 = -5794007675265165983L * l;
	}

	public final void method7454(byte[] is, int i, int i_5_) throws IOException {
		if ((long) i_5_ + ((Class415) this).aLong6033 * -3461960932292260191L > 4751322646110967533L * ((Class415) this).aLong6031) {
			((Class415) this).aRandomAccessFile6032.seek(((Class415) this).aLong6031 * 4751322646110967533L);
			((Class415) this).aRandomAccessFile6032.write(1);
			throw new EOFException();
		}
		((Class415) this).aRandomAccessFile6032.write(is, i, i_5_);
		((Class415) this).aLong6033 += -5794007675265165983L * (long) i_5_;
	}

	public final long method7455() throws IOException {
		return ((Class415) this).aRandomAccessFile6032.length();
	}

	public Class415(File file, String string, long l) throws IOException {
		if (-1L == l)
			l = 9223372036854775807L;
		if (file.length() > l)
			file.delete();
		((Class415) this).aRandomAccessFile6032 = new RandomAccessFile(file, string);
		((Class415) this).aLong6031 = 7333350598257489637L * l;
		((Class415) this).aLong6033 = 0L;
		int i = ((Class415) this).aRandomAccessFile6032.read();
		if (i != -1 && !string.equals("r")) {
			((Class415) this).aRandomAccessFile6032.seek(0L);
			((Class415) this).aRandomAccessFile6032.write(i);
		}
		((Class415) this).aRandomAccessFile6032.seek(0L);
	}

	public final void method7456() throws IOException {
		if (((Class415) this).aRandomAccessFile6032 != null) {
			((Class415) this).aRandomAccessFile6032.close();
			((Class415) this).aRandomAccessFile6032 = null;
		}
	}

	public final long method7457() throws IOException {
		return ((Class415) this).aRandomAccessFile6032.length();
	}

	public final long method7458() throws IOException {
		return ((Class415) this).aRandomAccessFile6032.length();
	}

	public final void method7459() throws IOException {
		if (((Class415) this).aRandomAccessFile6032 != null) {
			((Class415) this).aRandomAccessFile6032.close();
			((Class415) this).aRandomAccessFile6032 = null;
		}
	}

	public final int method7460(byte[] is, int i, int i_6_) throws IOException {
		int i_7_ = ((Class415) this).aRandomAccessFile6032.read(is, i, i_6_);
		if (i_7_ > 0)
			((Class415) this).aLong6033 += -5794007675265165983L * (long) i_7_;
		return i_7_;
	}

	public final int method7461(byte[] is, int i, int i_8_) throws IOException {
		int i_9_ = ((Class415) this).aRandomAccessFile6032.read(is, i, i_8_);
		if (i_9_ > 0)
			((Class415) this).aLong6033 += -5794007675265165983L * (long) i_9_;
		return i_9_;
	}
}
