/* Class340 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class340 implements Interface17
{
    int anInt5333;
    Class195_Sub1 aClass195_Sub1_5334;
    public Class168 aClass168_5335;
    String aString5336;
    int anInt5337;
    public int anInt5338;
    static int[] anIntArray5339 = new int[32];
    
    public int method6409(int i, int i_0_, byte i_1_) throws Exception_Sub1 {
	int i_2_
	    = anIntArray5339[(-889569517 * ((Class340) this).anInt5337
			      - -246991451 * ((Class340) this).anInt5333)];
	if (i_0_ < 0 || i_0_ > i_2_)
	    throw new Exception_Sub1(((Class340) this).aString5336, i_0_,
				     i_2_);
	i_2_ <<= ((Class340) this).anInt5333 * -246991451;
	return (i & (i_2_ ^ 0xffffffff)
		| i_0_ << ((Class340) this).anInt5333 * -246991451 & i_2_);
    }
    
    void method6410(Class243_Sub10 class243_sub10, boolean bool, short i) {
	for (;;) {
	    int i_3_ = class243_sub10.method14878((byte) 35);
	    if (0 == i_3_) {
		if (i < 256)
		    break;
		break;
	    }
	    method6411(class243_sub10, i_3_, bool, 29454929);
	}
    }
    
    void method6411(Class243_Sub10 class243_sub10, int i, boolean bool,
		    int i_4_) {
	Class320 class320
	    = (Class320) Class341.method6430(Class40.method1197((short) 2048),
					     i, (short) -14815);
	switch (713748485 * ((Class320) class320).anInt4732) {
	default:
	    break;
	case 9:
	    ((Class340) this).anInt5333
		= class243_sub10.method14878((byte) 62) * -1699960275;
	    ((Class340) this).anInt5337
		= class243_sub10.method14878((byte) 71) * 1439523611;
	    break;
	case 3:
	    break;
	case 10: {
	    int i_5_ = class243_sub10.method14878((byte) -1);
	    Class296 class296
		= ((Class296)
		   Class341.method6430(Class296.method5935(-1392466722), i_5_,
				       (short) 17145));
	    if (class296 == null)
		throw new IllegalStateException("");
	    int i_6_ = class243_sub10.method14684(1262577587);
	    Class195_Sub2 class195_sub2
		= ((Class195_Sub2)
		   ((Class195_Sub1) ((Class340) this).aClass195_Sub1_5334)
		       .aMap10408.get(class296));
	    if (null != class195_sub2)
		aClass168_5335 = class195_sub2.method16799(i_6_, 423096624);
	    else if (!bool)
		throw new IllegalStateException("");
	}
	}
    }
    
    void method6412(Class243_Sub10 class243_sub10, int i, boolean bool) {
	Class320 class320
	    = (Class320) Class341.method6430(Class40.method1197((short) 2048),
					     i, (short) 14200);
	switch (713748485 * ((Class320) class320).anInt4732) {
	default:
	    break;
	case 9:
	    ((Class340) this).anInt5333
		= class243_sub10.method14878((byte) 29) * -1699960275;
	    ((Class340) this).anInt5337
		= class243_sub10.method14878((byte) -60) * 1439523611;
	    break;
	case 3:
	    break;
	case 10: {
	    int i_7_ = class243_sub10.method14878((byte) 68);
	    Class296 class296
		= ((Class296)
		   Class341.method6430(Class296.method5935(-1392466722), i_7_,
				       (short) -2171));
	    if (class296 == null)
		throw new IllegalStateException("");
	    int i_8_ = class243_sub10.method14684(1262577587);
	    Class195_Sub2 class195_sub2
		= ((Class195_Sub2)
		   ((Class195_Sub1) ((Class340) this).aClass195_Sub1_5334)
		       .aMap10408.get(class296));
	    if (null != class195_sub2)
		aClass168_5335 = class195_sub2.method16799(i_8_, 423096624);
	    else if (!bool)
		throw new IllegalStateException("");
	}
	}
    }
    
    Class340() {
	/* empty */
    }
    
    static {
	int i = 2;
	for (int i_9_ = 0; i_9_ < 32; i_9_++) {
	    anIntArray5339[i_9_] = i - 1;
	    i += i;
	}
    }
    
    public int method6413(int i, byte i_10_) {
	int i_11_
	    = anIntArray5339[(-889569517 * ((Class340) this).anInt5337
			      - ((Class340) this).anInt5333 * -246991451)];
	return i >> -246991451 * ((Class340) this).anInt5333 & i_11_;
    }
    
    void method6414(Class243_Sub10 class243_sub10, boolean bool) {
	for (;;) {
	    int i = class243_sub10.method14878((byte) -70);
	    if (0 == i)
		break;
	    method6411(class243_sub10, i, bool, 29454929);
	}
    }
    
    void method6415(Class243_Sub10 class243_sub10, boolean bool) {
	for (;;) {
	    int i = class243_sub10.method14878((byte) 50);
	    if (0 == i)
		break;
	    method6411(class243_sub10, i, bool, 29454929);
	}
    }
    
    void method6416(Class243_Sub10 class243_sub10, boolean bool) {
	for (;;) {
	    int i = class243_sub10.method14878((byte) -69);
	    if (0 == i)
		break;
	    method6411(class243_sub10, i, bool, 29454929);
	}
    }
    
    void method6417(Class243_Sub10 class243_sub10, int i, boolean bool) {
	Class320 class320
	    = (Class320) Class341.method6430(Class40.method1197((short) 2048),
					     i, (short) -5908);
	switch (713748485 * ((Class320) class320).anInt4732) {
	default:
	    break;
	case 9:
	    ((Class340) this).anInt5333
		= class243_sub10.method14878((byte) 81) * -1699960275;
	    ((Class340) this).anInt5337
		= class243_sub10.method14878((byte) -50) * 1439523611;
	    break;
	case 3:
	    break;
	case 10: {
	    int i_12_ = class243_sub10.method14878((byte) 54);
	    Class296 class296
		= ((Class296)
		   Class341.method6430(Class296.method5935(-1392466722), i_12_,
				       (short) 2479));
	    if (class296 == null)
		throw new IllegalStateException("");
	    int i_13_ = class243_sub10.method14684(1262577587);
	    Class195_Sub2 class195_sub2
		= ((Class195_Sub2)
		   ((Class195_Sub1) ((Class340) this).aClass195_Sub1_5334)
		       .aMap10408.get(class296));
	    if (null != class195_sub2)
		aClass168_5335 = class195_sub2.method16799(i_13_, 423096624);
	    else if (!bool)
		throw new IllegalStateException("");
	}
	}
    }
    
    void method6418(Class243_Sub10 class243_sub10, boolean bool) {
	for (;;) {
	    int i = class243_sub10.method14878((byte) -4);
	    if (0 == i)
		break;
	    method6411(class243_sub10, i, bool, 29454929);
	}
    }
    
    void method6419(Class243_Sub10 class243_sub10, int i, boolean bool) {
	Class320 class320
	    = (Class320) Class341.method6430(Class40.method1197((short) 2048),
					     i, (short) -18932);
	switch (713748485 * ((Class320) class320).anInt4732) {
	default:
	    break;
	case 9:
	    ((Class340) this).anInt5333
		= class243_sub10.method14878((byte) -2) * -1699960275;
	    ((Class340) this).anInt5337
		= class243_sub10.method14878((byte) -59) * 1439523611;
	    break;
	case 3:
	    break;
	case 10: {
	    int i_14_ = class243_sub10.method14878((byte) 57);
	    Class296 class296
		= ((Class296)
		   Class341.method6430(Class296.method5935(-1392466722), i_14_,
				       (short) 5834));
	    if (class296 == null)
		throw new IllegalStateException("");
	    int i_15_ = class243_sub10.method14684(1262577587);
	    Class195_Sub2 class195_sub2
		= ((Class195_Sub2)
		   ((Class195_Sub1) ((Class340) this).aClass195_Sub1_5334)
		       .aMap10408.get(class296));
	    if (null != class195_sub2)
		aClass168_5335 = class195_sub2.method16799(i_15_, 423096624);
	    else if (!bool)
		throw new IllegalStateException("");
	}
	}
    }
    
    public int method6420(int i) {
	int i_16_
	    = anIntArray5339[(-889569517 * ((Class340) this).anInt5337
			      - ((Class340) this).anInt5333 * -246991451)];
	return i >> -246991451 * ((Class340) this).anInt5333 & i_16_;
    }
    
    static final void method6421(Class479 class479, int i) {
	Class465 class465 = (((Class479) class479).aBool6460
			     ? ((Class479) class479).aClass465_6445
			     : ((Class479) class479).aClass465_6443);
	Class117 class117 = ((Class465) class465).aClass117_6364;
	Class116 class116 = ((Class465) class465).aClass116_6363;
	Class495.method11261(class117, class116, class479, -1670628075);
    }
    
    static final void method6422(Class479 class479, int i) {
	((Class479) class479).anInt6442 -= 1977707898;
	int i_17_ = (((Class479) class479).anIntArray6435
		     [-117934955 * ((Class479) class479).anInt6442]);
	int i_18_ = (((Class479) class479).anIntArray6435
		     [1 + -117934955 * ((Class479) class479).anInt6442]);
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = i_17_ < i_18_ ? i_17_ : i_18_;
    }
    
    static final void method6423(Class479 class479, int i) {
	boolean bool = true;
	String string = (String) (((Class479) class479).anObjectArray6437
				  [(((Class479) class479).anInt6432
				    -= -1049632545) * -611591393]);
	if (client.aBool8301) {
	    try {
		Object object
		    = Class319.aClass319_4704
			  .method6227(new Object[] { string }, (byte) 50);
		if (object != null)
		    bool = ((Boolean) object).booleanValue();
	    } catch (Throwable throwable) {
		/* empty */
	    }
	}
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = bool ? 1 : 0;
    }
}
