/* Class567 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Desktop;
import java.net.URI;

public class Class567
{
    Class132 aClass132_7340 = new Class132(16);
    Class272 aClass272_7341;
    
    Class571 method12393(int i) {
	Class571 class571;
	synchronized (((Class567) this).aClass132_7340) {
	    class571 = ((Class571)
			((Class567) this).aClass132_7340.method3282((long) i));
	}
	if (class571 != null)
	    return class571;
	byte[] is;
	synchronized (((Class567) this).aClass272_7341) {
	    is = (((Class567) this).aClass272_7341.method5250
		  (646641047 * Class114.aClass114_1292.anInt1266, i,
		   1296690014));
	}
	class571 = new Class571();
	if (is != null)
	    class571.method12627(new Class243_Sub10(is), 1154694291);
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3293(class571, (long) i);
	}
	return class571;
    }
    
    Class571 method12394(int i, int i_0_) {
	Class571 class571;
	synchronized (((Class567) this).aClass132_7340) {
	    class571 = ((Class571)
			((Class567) this).aClass132_7340.method3282((long) i));
	}
	if (class571 != null)
	    return class571;
	byte[] is;
	synchronized (((Class567) this).aClass272_7341) {
	    is = (((Class567) this).aClass272_7341.method5250
		  (646641047 * Class114.aClass114_1292.anInt1266, i,
		   1996296693));
	}
	class571 = new Class571();
	if (is != null)
	    class571.method12627(new Class243_Sub10(is), 2016239849);
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3293(class571, (long) i);
	}
	return class571;
    }
    
    public Class567(Class447 class447, Class457 class457, Class272 class272) {
	((Class567) this).aClass272_7341 = class272;
	((Class567) this).aClass272_7341.method5261((646641047
						     * (Class114.aClass114_1292
							.anInt1266)),
						    (byte) 0);
    }
    
    public void method12395(int i) {
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3288(2112079980);
	}
    }
    
    public void method12396(int i) {
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3287(i, -500171784);
	}
    }
    
    public Class225 method12397(int i, int i_1_, int i_2_, int i_3_,
				Class60 class60, int i_4_) {
	Class233[] class233s = null;
	Class571 class571 = method12394(i, -2054289945);
	if (null != ((Class571) class571).anIntArray7417) {
	    class233s
		= new Class233[((Class571) class571).anIntArray7417.length];
	    for (int i_5_ = 0; i_5_ < class233s.length; i_5_++) {
		Class82 class82 = class60.method1472((((Class571) class571)
						      .anIntArray7417[i_5_]),
						     (byte) 69);
		class233s[i_5_] = new Class233(-315115485 * class82.anInt950,
					       class82.anInt952 * -1804829345,
					       1135861911 * class82.anInt945,
					       class82.anInt948 * 2140228489,
					       -982244929 * class82.anInt949,
					       21896549 * class82.anInt946,
					       class82.anInt951 * 1835479949,
					       class82.aBool953,
					       class82.anInt947 * 1351510673,
					       -269438993 * class82.anInt954,
					       class82.anInt955 * 399877423);
	    }
	}
	return new Class225(((Class571) class571).anInt7418 * 1224362805,
			    class233s,
			    ((Class571) class571).anInt7416 * 357994331, i_1_,
			    i_2_, i_3_, ((Class571) class571).aClass561_7419,
			    ((Class571) class571).anInt7415 * 1975699843);
    }
    
    public void method12398(int i, int i_6_) {
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3287(i, -1788144735);
	}
    }
    
    public void method12399(int i) {
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3287(i, -1916905592);
	}
    }
    
    public void method12400(byte i) {
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3292(1537249763);
	}
    }
    
    public void method12401() {
	synchronized (((Class567) this).aClass132_7340) {
	    ((Class567) this).aClass132_7340.method3292(1537249763);
	}
    }
    
    static Class243_Sub11_Sub10 method12402(int i, byte i_7_) {
	Class243_Sub11_Sub10 class243_sub11_sub10
	    = ((Class243_Sub11_Sub10)
	       Class471.aClass122_6384.method3074((long) i));
	if (class243_sub11_sub10 != null)
	    return class243_sub11_sub10;
	byte[] is = Class468.aClass272_6377.method5250(i, 0, -460368478);
	if (is == null || is.length <= 1)
	    return null;
	try {
	    class243_sub11_sub10 = Class240.method4876(is, -1561523755);
	} catch (Exception exception) {
	    throw new RuntimeException(new StringBuilder().append
					   (exception.getMessage()).append
					   (" ").append
					   (i).toString());
	}
	Class471.aClass122_6384.method3068(class243_sub11_sub10, (long) i);
	return class243_sub11_sub10;
    }
    
    static final void method12403(Class479 class479, int i) {
	String string = (String) (((Class479) class479).anObjectArray6437
				  [(((Class479) class479).anInt6432
				    -= -1049632545) * -611591393]);
	if (client.aBool8301) {
	    try {
		Class319.aClass319_4719.method6227(new Object[] { string },
						   (byte) 84);
	    } catch (Throwable throwable) {
		/* empty */
	    }
	}
    }
    
    static final void method12404(Class479 class479, byte i) {
	int i_8_ = (((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 -= -1158629699)
		      * -117934955)]);
	int i_9_ = client.aClass230Array8386[i_8_].method4637(1043267893);
	int[] is = ((Class479) class479).anIntArray6435;
	int i_10_
	    = ((((Class479) class479).anInt6442 += -1158629699) * -117934955
	       - 1);
	int i_11_;
	if (i_9_ == 5) {
	    if (i != 1)
		return;
	    i_11_ = 1;
	} else
	    i_11_ = 0;
	is[i_10_] = i_11_;
    }
    
    static void method12405(int i) {
	Class243_Sub43 class243_sub43
	    = Class529.method11818(Class326.aClass326_4900,
				   client.aClass194_8163.aClass432_2312,
				   (short) 255);
	class243_sub43.aClass243_Sub10_Sub1_9988
	    .method14800(Class464.method8274(721481759), -773803241);
	class243_sub43.aClass243_Sub10_Sub1_9988
	    .method14643(-1641316675 * Class2.anInt17, (short) 3588);
	class243_sub43.aClass243_Sub10_Sub1_9988
	    .method14643(Class14.anInt111 * -837921869, (short) -16619);
	class243_sub43.aClass243_Sub10_Sub1_9988.method14800
	    (Class612.aClass243_Sub7_7837.aClass421_Sub17_8627
		 .method14212((byte) -65),
	     -1194055442);
	client.aClass194_8163.method4175(class243_sub43, (byte) 42);
    }
    
    static final void method12406(Class479 class479, byte i) {
	((Class479) class479).anInt6442 -= 819078199;
	long l = (long) (((Class479) class479).anIntArray6435
			 [((Class479) class479).anInt6442 * -117934955]);
	long l_12_
	    = (long) (((Class479) class479).anIntArray6435
		      [1 + ((Class479) class479).anInt6442 * -117934955]);
	long l_13_
	    = (long) (((Class479) class479).anIntArray6435
		      [2 + ((Class479) class479).anInt6442 * -117934955]);
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = (int) (l * l_13_ / l_12_);
    }
    
    public static void method12407(String string, boolean bool,
				   String string_14_, boolean bool_15_,
				   int i) {
	if (bool) {
	    do {
		if (!bool_15_ && Desktop.isDesktopSupported()
		    && Desktop.getDesktop()
			   .isSupported(Desktop.Action.BROWSE)) {
		    try {
			Desktop.getDesktop().browse(new URI(string));
		    } catch (Exception exception) {
			break;
		    }
		    return;
		}
	    } while (false);
	    if (Class235.aString3880.startsWith("win") && !bool_15_)
		Class360.method6909(string, 0, -1377026283);
	    else if (Class235.aString3880.startsWith("mac"))
		Class132.method3326(string, 1, string_14_, (byte) 0);
	    else
		Class360.method6909(string, 2, -1377026283);
	} else
	    Class360.method6909(string, 3, -1377026283);
    }
}
