/* Class12 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Container;
import java.awt.Frame;
import java.io.File;
import java.nio.ByteBuffer;
import java.util.Arrays;

import javax.swing.JFileChooser;

public class Class12 implements Runnable {
	boolean aBool72;
	boolean aBool73;
	File aFile74 = null;
	String aString75;
	public static Class623 aClass623_76;

	public File method549(int i) {
		return ((Class12) this).aFile74;
	}

	public void run() {
		Container container = Class440.method7932((short) 21328);
		Frame frame = null;
		if (Class347.aFrame5428 != null)
			frame = Class347.aFrame5428;
		else {
			for (/**/; container != null; container = container.getParent()) {
				if (container instanceof Frame) {
					frame = (Frame) container;
					break;
				}
			}
		}
		if (frame == null)
			throw new RuntimeException("");
		JFileChooser jfilechooser = new JFileChooser("");
		jfilechooser.setDialogTitle(((Class12) this).aString75);
		jfilechooser.setFileFilter(new FileFilter_Sub1(this, this));
		jfilechooser.setFileSelectionMode(1);
		jfilechooser.setAcceptAllFileFilterUsed(false);
		int i = jfilechooser.showOpenDialog(frame);
		if (i == 0)
			((Class12) this).aFile74 = jfilechooser.getSelectedFile();
		((Class12) this).aBool72 = true;
	}

	public void method550() {
		Container container = Class440.method7932((short) 32249);
		Frame frame = null;
		if (Class347.aFrame5428 != null)
			frame = Class347.aFrame5428;
		else {
			for (/**/; container != null; container = container.getParent()) {
				if (container instanceof Frame) {
					frame = (Frame) container;
					break;
				}
			}
		}
		if (frame == null)
			throw new RuntimeException("");
		JFileChooser jfilechooser = new JFileChooser("");
		jfilechooser.setDialogTitle(((Class12) this).aString75);
		jfilechooser.setFileFilter(new FileFilter_Sub1(this, this));
		jfilechooser.setFileSelectionMode(1);
		jfilechooser.setAcceptAllFileFilterUsed(false);
		int i = jfilechooser.showOpenDialog(frame);
		if (i == 0)
			((Class12) this).aFile74 = jfilechooser.getSelectedFile();
		((Class12) this).aBool72 = true;
	}

	public Class12(String string, boolean bool) {
		((Class12) this).aBool72 = false;
		((Class12) this).aString75 = string;
		((Class12) this).aBool73 = bool;
		new Thread(this).start();
	}

	boolean method551(byte i) {
		return ((Class12) this).aBool73;
	}

	boolean method552() {
		return ((Class12) this).aBool73;
	}

	public boolean method553() {
		return ((Class12) this).aBool72;
	}

	public File method554() {
		return ((Class12) this).aFile74;
	}

	public void method555() {
		Container container = Class440.method7932((short) 15285);
		Frame frame = null;
		if (Class347.aFrame5428 != null)
			frame = Class347.aFrame5428;
		else {
			for (/**/; container != null; container = container.getParent()) {
				if (container instanceof Frame) {
					frame = (Frame) container;
					break;
				}
			}
		}
		if (frame == null)
			throw new RuntimeException("");
		JFileChooser jfilechooser = new JFileChooser("");
		jfilechooser.setDialogTitle(((Class12) this).aString75);
		jfilechooser.setFileFilter(new FileFilter_Sub1(this, this));
		jfilechooser.setFileSelectionMode(1);
		jfilechooser.setAcceptAllFileFilterUsed(false);
		int i = jfilechooser.showOpenDialog(frame);
		if (i == 0)
			((Class12) this).aFile74 = jfilechooser.getSelectedFile();
		((Class12) this).aBool72 = true;
	}

	public boolean method556() {
		return ((Class12) this).aBool72;
	}

	boolean method557() {
		return ((Class12) this).aBool73;
	}

	boolean method558() {
		return ((Class12) this).aBool73;
	}

	boolean method559() {
		return ((Class12) this).aBool73;
	}

	boolean method560() {
		return ((Class12) this).aBool73;
	}

	public boolean method561(int i) {
		return ((Class12) this).aBool72;
	}

	static void method562(Class118 class118, Class35 class35, int i) {
		if (class35 != null) {
			if (-1 != 559557539 * class35.anInt461) {
				Class35 class35_0_ = class118.method2879(class35.anInt478 * 601844989, (byte) 25);
				if (class35_0_ != null) {
					if (class35_0_.aClass35Array613 == class35_0_.aClass35Array471) {
						class35_0_.aClass35Array613 = new Class35[class35_0_.aClass35Array471.length];
						class35_0_.aClass35Array613[class35_0_.aClass35Array613.length - 1] = class35;
						Class461.method8191(class35_0_.aClass35Array471, 0, class35_0_.aClass35Array613, 0, 559557539 * class35.anInt461);
						Class461.method8191(class35_0_.aClass35Array471, 559557539 * class35.anInt461 + 1, class35_0_.aClass35Array613, 559557539 * class35.anInt461, (class35_0_.aClass35Array471.length - class35.anInt461 * 559557539 - 1));
					} else {
						int i_1_ = 0;
						Class35[] class35s;
						for (class35s = class35_0_.aClass35Array613; (i_1_ < class35s.length && class35 != class35s[i_1_]); i_1_++) {
							/* empty */
						}
						if (i_1_ < class35s.length) {
							Class461.method8191(class35s, 1 + i_1_, class35s, i_1_, class35s.length - i_1_ - 1);
							class35s[class35_0_.aClass35Array613.length - 1] = class35;
						}
					}
				}
			} else {
				Class35[] class35s = class118.method2871((byte) 0);
				int i_2_;
				for (i_2_ = 0; i_2_ < class35s.length && class35 != class35s[i_2_]; i_2_++) {
					/* empty */
				}
				if (i_2_ < class35s.length) {
					Class461.method8191(class35s, 1 + i_2_, class35s, i_2_, class35s.length - i_2_ - 1);
					class35s[class35s.length - 1] = class35;
				}
			}
		}
	}

	static final void method563(Class35 class35, Class118 class118, Class477 class477, int i) {
		class35.aBool489 = ((((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]) == 1);
		Class423.method7674(class35, -1876772362);
	}

	static final void method564(Class477 class477, byte i) {
		Class480 class480 = (((Class477) class477).aBool6510 ? ((Class477) class477).aClass480_6506 : ((Class477) class477).aClass480_6492);
		Class35 class35 = ((Class480) class480).aClass35_6531;
		Class118 class118 = ((Class480) class480).aClass118_6532;
		Class570.method12355(class35, class118, false, 2, class477, -1074733118);
	}

	static final void method565(Class477 class477, int i) {
		Class587_Sub30 class587_sub30 = (Class587_Sub30) (((Class477) class477).anObjectArray6499[(((Class477) class477).anInt6500 -= 1803340247) * -443336217]);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = class587_sub30.anInt9726 * -1436299783;
	}

	public static Object method566(byte[] is, boolean bool, byte i) {
		if (is == null)
			return null;
		if (is.length > 136) {
			ByteBuffer bytebuffer = ByteBuffer.allocateDirect(is.length);
			bytebuffer.position(0);
			bytebuffer.put(is);
			return bytebuffer;
		}
		if (bool)
			return Arrays.copyOf(is, is.length);
		return is;
	}

	public static long method567(int i, byte i_3_) {
		return 86400000L * (long) (11745 + i);
	}

	static final void method568(Class477 class477, int i) {
		Class480 class480 = (((Class477) class477).aBool6510 ? ((Class477) class477).aClass480_6506 : ((Class477) class477).aClass480_6492);
		Class35 class35 = ((Class480) class480).aClass35_6531;
		Class246.method5018(class35, class477, -1146153493);
	}

	public static void method569(Class35 class35, int i, int i_4_, int i_5_) {
		if (class35 != null) {
			if (class35.anObjectArray495 != null) {
				Class587_Sub31 class587_sub31 = new Class587_Sub31();
				class587_sub31.aClass35_9736 = class35;
				class587_sub31.anObjectArray9731 = class35.anObjectArray495;
				Class587_Sub41.method16069(class587_sub31, (byte) 28);
			}
			client.aBool8185 = true;
			Class532.anInt7047 = 595922289 * class35.anInt460;
			client.anInt8186 = 1913373111 * class35.anInt461;
			Class418.anInt6144 = i * 1701027207;
			Class294.anInt4309 = 1030698269 * i_4_;
			client.anInt8187 = class35.anInt599 * 1060561589;
			Class66.anInt1041 = class35.anInt480 * -1728677341;
			client.anInt8123 = -104122771 * class35.anInt496;
			Class423.method7674(class35, -1910729462);
		}
	}
}
