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

class Class498 implements Runnable
{
    Class341_Sub1 this$0;
    public static short[][] aShortArrayArray6838;
    
    public void run() {
	try {
	    while (!((Class341_Sub1) ((Class498) this).this$0).aBool9950) {
		Iterator iterator = ((Class341_Sub1) ((Class498) this).this$0)
					.aList9952.iterator();
		while (iterator.hasNext()) {
		    Class492 class492 = (Class492) iterator.next();
		    class492.method6024(998398226);
		}
		HashMap hashmap
		    = ((Class498) this).this$0.method8953(-2008969307);
		Iterator iterator_0_ = hashmap.keySet().iterator();
		while (iterator_0_.hasNext()) {
		    Class447 class447 = (Class447) iterator_0_.next();
		    if (!class447.aBool5155) {
			Class444[] class444s
			    = (Class444[]) hashmap.get(class447);
			for (int i = 0; i < class444s.length; i++)
			    class444s[i].method5455(2106249711);
		    }
		}
		iterator_0_ = ((Class341_Sub1) ((Class498) this).this$0)
				  .aList9952.iterator();
		while (iterator_0_.hasNext()) {
		    Class492 class492 = (Class492) iterator_0_.next();
		    class492.method6025(745970616);
		}
		Class118.method1565(6L);
	    }
	} catch (Exception exception) {
	    Class430_Sub3.method8950(null, exception, -1420485758);
	    exception.printStackTrace();
	}
    }
    
    Class498(Class341_Sub1 class341_sub1) {
	((Class498) this).this$0 = class341_sub1;
    }
    
    public void method6105() {
	try {
	    while (!((Class341_Sub1) ((Class498) this).this$0).aBool9950) {
		Iterator iterator = ((Class341_Sub1) ((Class498) this).this$0)
					.aList9952.iterator();
		while (iterator.hasNext()) {
		    Class492 class492 = (Class492) iterator.next();
		    class492.method6024(301493501);
		}
		HashMap hashmap
		    = ((Class498) this).this$0.method8953(1405134387);
		Iterator iterator_1_ = hashmap.keySet().iterator();
		while (iterator_1_.hasNext()) {
		    Class447 class447 = (Class447) iterator_1_.next();
		    if (!class447.aBool5155) {
			Class444[] class444s
			    = (Class444[]) hashmap.get(class447);
			for (int i = 0; i < class444s.length; i++)
			    class444s[i].method5455(-288037200);
		    }
		}
		iterator_1_ = ((Class341_Sub1) ((Class498) this).this$0)
				  .aList9952.iterator();
		while (iterator_1_.hasNext()) {
		    Class492 class492 = (Class492) iterator_1_.next();
		    class492.method6025(-562093197);
		}
		Class118.method1565(6L);
	    }
	} catch (Exception exception) {
	    Class430_Sub3.method8950(null, exception, -2114049829);
	    exception.printStackTrace();
	}
    }
    
    public void method6106() {
	try {
	    while (!((Class341_Sub1) ((Class498) this).this$0).aBool9950) {
		Iterator iterator = ((Class341_Sub1) ((Class498) this).this$0)
					.aList9952.iterator();
		while (iterator.hasNext()) {
		    Class492 class492 = (Class492) iterator.next();
		    class492.method6024(1402621969);
		}
		HashMap hashmap
		    = ((Class498) this).this$0.method8953(-898972878);
		Iterator iterator_2_ = hashmap.keySet().iterator();
		while (iterator_2_.hasNext()) {
		    Class447 class447 = (Class447) iterator_2_.next();
		    if (!class447.aBool5155) {
			Class444[] class444s
			    = (Class444[]) hashmap.get(class447);
			for (int i = 0; i < class444s.length; i++)
			    class444s[i].method5455(624394982);
		    }
		}
		iterator_2_ = ((Class341_Sub1) ((Class498) this).this$0)
				  .aList9952.iterator();
		while (iterator_2_.hasNext()) {
		    Class492 class492 = (Class492) iterator_2_.next();
		    class492.method6025(2105310458);
		}
		Class118.method1565(6L);
	    }
	} catch (Exception exception) {
	    Class430_Sub3.method8950(null, exception, 812752746);
	    exception.printStackTrace();
	}
    }
    
    public static TwitchWebcamDevice method6107(String string, int i) {
	if (null == Class545.aTwitchWebcamDeviceArray7390)
	    return null;
	for (int i_3_ = 0; i_3_ < Class545.aTwitchWebcamDeviceArray7390.length;
	     i_3_++) {
	    if (Class545.aTwitchWebcamDeviceArray7390[i_3_].aString907
		    .equals(string))
		return Class545.aTwitchWebcamDeviceArray7390[i_3_];
	}
	return null;
    }
    
    public static Class580_Sub1 method6108(byte i) {
	if (Class665.anInt8435 * -318235263
	    < Class665.aClass580_Sub1Array8434.length)
	    return (Class665.aClass580_Sub1Array8434
		    [(Class665.anInt8435 += -1241636223) * -318235263 - 1]);
	return null;
    }
    
    static String method6109(int[] is, int i) {
	StringBuilder stringbuilder = new StringBuilder();
	int i_4_ = Class466.anInt5295 * -1828072879;
	for (int i_5_ = 0; i_5_ < is.length; i_5_++) {
	    Class241 class241
		= ((Class241)
		   Class248.aClass1_Sub1_2940.method31(is[i_5_], -750756326));
	    if (-1 != -882344085 * class241.anInt2688) {
		Class114 class114
		    = (Class114) (Class25.aClass178_408.method2662
				  ((long) (-882344085 * class241.anInt2688)));
		if (class114 == null) {
		    Class153 class153
			= Class133.method1722(Class397.aClass411_4552,
					      -882344085 * class241.anInt2688,
					      0);
		    if (null != class153) {
			class114 = Class463.aClass151_5283.method2090(class153,
								      true);
			Class25.aClass178_408.method2664
			    (class114,
			     (long) (-882344085 * class241.anInt2688));
		    }
		}
		if (class114 != null) {
		    Class397.aClass114Array4551[i_4_] = class114;
		    stringbuilder.append(" <img=").append(i_4_).append(">");
		    i_4_++;
		}
	    }
	}
	return stringbuilder.toString();
    }
    
    static final void method6110(Class211 class211, Class203 class203,
				 Class612 class612, int i) {
	class211.anInt2277
	    = ((((Class612) class612).anIntArray8021
		[(((Class612) class612).anInt8022 -= 201091009) * -40654783])
	       * -1686030917);
	Class67_Sub1_Sub2.method10127(class211, (short) 492);
	if (-1 == class211.anInt2245 * 741091239 && !class203.aBool2136)
	    Class148.method1977(-612115075 * class211.anInt2393, (byte) -111);
    }
    
    static final void method6111(Class612 class612, byte i) {
	int i_6_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_6_, (short) -19274);
	Class203 class203 = Class163_Sub20.aClass203Array9719[i_6_ >> 16];
	Class163_Sub18.method8809(class211, class203, class612, 302786612);
    }
}
