/* Class310 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class Class310
{
    Class314 aClass314_4584;
    Map aMap4585 = new HashMap();
    public static Class543 aClass543_4586;
    static int anInt4587;
    
    public void method6108() {
	Iterator iterator = ((Class310) this).aMap4585.values().iterator();
	while (iterator.hasNext()) {
	    Class388 class388 = (Class388) iterator.next();
	    class388.method7130(1316198343);
	}
    }
    
    public void method6109(int i) {
	Iterator iterator = ((Class310) this).aMap4585.values().iterator();
	while (iterator.hasNext()) {
	    Class388 class388 = (Class388) iterator.next();
	    class388.method7130(1316198343);
	}
    }
    
    public Class388 method6110(int i, int i_0_, float f,
			       Interface41 interface41, int i_1_) {
	if (method6113(i, 1749689597) != null)
	    return null;
	Class388 class388 = null;
	if (i_0_ != -1)
	    class388 = method6113(i_0_, 1749689597);
	Object object
	    = ((Class310) this).aClass314_4584.method6155(class388,
							  -1158080007);
	Class388 class388_2_
	    = new Class388(i, f, object, this, interface41, class388);
	((Class310) this).aMap4585.put(Integer.valueOf(i), class388_2_);
	return class388_2_;
    }
    
    public void method6111() {
	Iterator iterator = ((Class310) this).aMap4585.values().iterator();
	while (iterator.hasNext()) {
	    Class388 class388 = (Class388) iterator.next();
	    class388.method7130(1316198343);
	}
    }
    
    public void method6112() {
	Iterator iterator = ((Class310) this).aMap4585.values().iterator();
	while (iterator.hasNext()) {
	    Class388 class388 = (Class388) iterator.next();
	    class388.method7130(1316198343);
	}
    }
    
    public Class388 method6113(int i, int i_3_) {
	return (Class388) ((Class310) this).aMap4585.get(Integer.valueOf(i));
    }
    
    public void method6114() {
	Iterator iterator = ((Class310) this).aMap4585.values().iterator();
	while (iterator.hasNext()) {
	    Class388 class388 = (Class388) iterator.next();
	    class388.method7130(1316198343);
	}
    }
    
    public Class310(Class314 class314) {
	((Class310) this).aClass314_4584 = class314;
    }
    
    public Class388 method6115(int i, int i_4_, float f,
			       Interface41 interface41) {
	if (method6113(i, 1749689597) != null)
	    return null;
	Class388 class388 = null;
	if (i_4_ != -1)
	    class388 = method6113(i_4_, 1749689597);
	Object object
	    = ((Class310) this).aClass314_4584.method6155(class388,
							  -712429023);
	Class388 class388_5_
	    = new Class388(i, f, object, this, interface41, class388);
	((Class310) this).aMap4585.put(Integer.valueOf(i), class388_5_);
	return class388_5_;
    }
    
    public Class388 method6116(int i, int i_6_, float f,
			       Interface41 interface41) {
	if (method6113(i, 1749689597) != null)
	    return null;
	Class388 class388 = null;
	if (i_6_ != -1)
	    class388 = method6113(i_6_, 1749689597);
	Object object
	    = ((Class310) this).aClass314_4584.method6155(class388,
							  -812214462);
	Class388 class388_7_
	    = new Class388(i, f, object, this, interface41, class388);
	((Class310) this).aMap4585.put(Integer.valueOf(i), class388_7_);
	return class388_7_;
    }
    
    public Class388 method6117(int i, int i_8_, float f,
			       Interface41 interface41) {
	if (method6113(i, 1749689597) != null)
	    return null;
	Class388 class388 = null;
	if (i_8_ != -1)
	    class388 = method6113(i_8_, 1749689597);
	Object object
	    = ((Class310) this).aClass314_4584.method6155(class388,
							  -1275448687);
	Class388 class388_9_
	    = new Class388(i, f, object, this, interface41, class388);
	((Class310) this).aMap4585.put(Integer.valueOf(i), class388_9_);
	return class388_9_;
    }
    
    public Class388 method6118(int i) {
	return (Class388) ((Class310) this).aMap4585.get(Integer.valueOf(i));
    }
    
    public Class388 method6119(int i) {
	return (Class388) ((Class310) this).aMap4585.get(Integer.valueOf(i));
    }
    
    public Class388 method6120(int i) {
	return (Class388) ((Class310) this).aMap4585.get(Integer.valueOf(i));
    }
    
    static final int method6121(int i, int i_10_, int i_11_, int i_12_) {
	if (i == i_10_)
	    return i;
	int i_13_ = 128 - i_11_;
	int i_14_ = i_13_ * (i & 0x7f) + (i_10_ & 0x7f) * i_11_ >> 7;
	int i_15_ = (i_10_ & 0x380) * i_11_ + i_13_ * (i & 0x380) >> 7;
	int i_16_ = (i & 0xfc00) * i_13_ + (i_10_ & 0xfc00) * i_11_ >> 7;
	return i_16_ & 0xfc00 | i_15_ & 0x380 | i_14_ & 0x7f;
    }
    
    static final void method6122(Class117 class117, Class116 class116,
				 Class479 class479, int i) {
	((Class479) class479).anInt6442 -= -339551500;
	class117.anInt1381
	    = (((Class479) class479).anIntArray6435
	       [-117934955 * ((Class479) class479).anInt6442]) * -595376139;
	class117.anInt1382
	    = (-1901083411
	       * (((Class479) class479).anIntArray6435
		  [-117934955 * ((Class479) class479).anInt6442 + 1]));
	int i_17_ = (((Class479) class479).anIntArray6435
		     [2 + ((Class479) class479).anInt6442 * -117934955]);
	if (i_17_ < 0)
	    i_17_ = 0;
	else if (i_17_ > 5)
	    i_17_ = 5;
	int i_18_ = (((Class479) class479).anIntArray6435
		     [-117934955 * ((Class479) class479).anInt6442 + 3]);
	if (i_18_ < 0)
	    i_18_ = 0;
	else if (i_18_ > 5)
	    i_18_ = 5;
	class117.aByte1358 = (byte) i_17_;
	class117.aByte1414 = (byte) i_18_;
	Class66.method1548(class117, 1481191054);
	Class425.method7671(class116, class117, 1903980234);
	if (0 == -1371795959 * class117.anInt1375)
	    Class441.method7886(class116, class117, false, 248235178);
	if (-1 == class117.anInt1374 * -870117321 && !class116.aBool1342)
	    Class78.method1818(-1982078391 * class117.anInt1407, (byte) -49);
    }
    
    public static void method6123(int i, int i_19_, int i_20_, int i_21_,
				  int i_22_, int i_23_, int i_24_, int i_25_,
				  short i_26_) {
	if (i_19_ >= 0 && i_20_ >= 0
	    && i_19_ < client.aClass234_8188.method4744(-1920759431) - 1
	    && i_20_ < client.aClass234_8188.method4682(-1614725617) - 1) {
	    if (client.aClass234_8188.method4711(-691884027) != null) {
		if (0 == i_21_) {
		    Interface23 interface23
			= ((Interface23)
			   client.aClass234_8188.method4711(-1520897442)
			       .method12416(i, i_19_, i_20_, 937102809));
		    Interface23 interface23_27_
			= ((Interface23)
			   client.aClass234_8188.method4711(3100819)
			       .method12445(i, i_19_, i_20_, (byte) 79));
		    if (null != interface23 && i_22_ != 2) {
			if (interface23 instanceof Class478_Sub1_Sub3_Sub2)
			    ((Class478_Sub1_Sub3_Sub2) interface23)
				.aClass593_11124
				.method13020(i_24_, i_25_, -1122071584);
			else
			    Class104.method2785(i, i_21_, i_19_, i_20_,
						interface23
						    .method144((byte) -36),
						i_23_, i_22_, i_24_, i_25_,
						(byte) -20);
		    }
		    if (null != interface23_27_) {
			if (interface23_27_ instanceof Class478_Sub1_Sub3_Sub2)
			    ((Class478_Sub1_Sub3_Sub2) interface23_27_)
				.aClass593_11124
				.method13020(i_24_, i_25_, -1122071584);
			else
			    Class104.method2785(i, i_21_, i_19_, i_20_,
						interface23_27_
						    .method144((byte) -49),
						i_23_, i_22_, i_24_, i_25_,
						(byte) 66);
		    }
		} else if (i_21_ == 1) {
		    Interface23 interface23
			= ((Interface23)
			   client.aClass234_8188.method4711(-603293385)
			       .method12482(i, i_19_, i_20_, (byte) -59));
		    if (null != interface23) {
			if (interface23 instanceof Class478_Sub1_Sub5_Sub2)
			    ((Class478_Sub1_Sub5_Sub2) interface23)
				.aClass593_11161
				.method13020(i_24_, i_25_, -1122071584);
			else {
			    int i_28_ = interface23.method144((byte) -37);
			    if (i_22_ == 4 || 5 == i_22_)
				Class104.method2785(i, i_21_, i_19_, i_20_,
						    i_28_, i_23_, 4, i_24_,
						    i_25_, (byte) -122);
			    else if (6 == i_22_)
				Class104.method2785(i, i_21_, i_19_, i_20_,
						    i_28_, i_23_ + 4, 4, i_24_,
						    i_25_, (byte) 0);
			    else if (i_22_ == 7)
				Class104.method2785(i, i_21_, i_19_, i_20_,
						    i_28_,
						    (2 + i_23_ & 0x3) + 4, 4,
						    i_24_, i_25_, (byte) 73);
			    else if (8 == i_22_) {
				Class104.method2785(i, i_21_, i_19_, i_20_,
						    i_28_, 4 + i_23_, 4, i_24_,
						    i_25_, (byte) 87);
				Class104.method2785(i, i_21_, i_19_, i_20_,
						    i_28_,
						    (i_23_ + 2 & 0x3) + 4, 4,
						    i_24_, i_25_, (byte) 33);
			    }
			}
		    }
		} else if (i_21_ == 2) {
		    Interface23 interface23
			= ((Interface23)
			   (client.aClass234_8188.method4711(-495350976)
				.method12448
			    (i, i_19_, i_20_, client.anInterface57_8421,
			     1530812861)));
		    if (interface23 != null) {
			if (11 == i_22_)
			    i_22_ = 10;
			if (interface23 instanceof Class478_Sub1_Sub1_Sub3)
			    ((Class478_Sub1_Sub1_Sub3) interface23)
				.aClass593_11169
				.method13020(i_24_, i_25_, -1122071584);
			else
			    Class104.method2785(i, i_21_, i_19_, i_20_,
						interface23
						    .method144((byte) -121),
						i_23_, i_22_, i_24_, i_25_,
						(byte) -3);
		    }
		} else if (3 == i_21_) {
		    Interface23 interface23
			= ((Interface23)
			   client.aClass234_8188.method4711(-1338843068)
			       .method12450(i, i_19_, i_20_, (byte) -25));
		    if (null != interface23) {
			if (interface23 instanceof Class478_Sub1_Sub4_Sub2)
			    ((Class478_Sub1_Sub4_Sub2) interface23)
				.aClass593_11164
				.method13020(i_24_, i_25_, -1122071584);
			else
			    Class104.method2785(i, i_21_, i_19_, i_20_,
						interface23
						    .method144((byte) -57),
						i_23_, i_22_, i_24_, i_25_,
						(byte) -34);
		    }
		}
	    }
	}
    }
}
