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

public class Class201
{
    long aLong2128;
    Interface22 anInterface22_2129;
    int anInt2130 = -922948543;
    LinkedList aLinkedList2131 = new LinkedList();
    static int anInt2132;
    
    public void method2983(Class192 class192) {
	if ((((Class201) this).aLong2128 * 1910361563271644125L
	     != ((Class192) class192).aLong2086 * 5539356996184957589L)
	    || (class192.method2884(1867749275)
		!= ((Class201) this).anInt2130 * -1472537537))
	    throw new IllegalStateException("");
	Iterator iterator = ((Class201) this).aLinkedList2131.iterator();
	while (iterator.hasNext()) {
	    Interface23 interface23 = (Interface23) iterator.next();
	    interface23.method115(class192, (byte) 4);
	}
	class192.method2885(1669645081);
    }
    
    public Class201(Class487_Sub17 class487_sub17, Interface22 interface22) {
	((Class201) this).anInterface22_2129 = interface22;
	((Class201) this).aLong2128
	    = class487_sub17.method9272((byte) -90) * -6255524571861898123L;
	((Class201) this).anInt2130
	    = class487_sub17.method9224((byte) -6) * 922948543;
	for (int i = class487_sub17.method9219(-1216674395); 0 != i;
	     i = class487_sub17.method9219(-629965673)) {
	    Class194 class194
		= ((Class194)
		   Class268.method3708(Class194.method2946(1828691230), i,
				       -255858802));
	    Interface23 interface23;
	    switch (1524466815 * ((Class194) class194).anInt2119) {
	    case 0:
		interface23 = new Class190(this, class487_sub17);
		break;
	    case 3:
		interface23 = new Class202(this, class487_sub17);
		break;
	    case 4:
		interface23 = new Class198(this, class487_sub17);
		break;
	    default:
		throw new IllegalStateException("");
	    case 10:
		interface23 = new Class184(this, class487_sub17);
		break;
	    case 6:
		interface23 = new Class180(this, class487_sub17);
		break;
	    case 11:
		interface23 = new Class196(this, class487_sub17);
		break;
	    case 13:
		interface23 = new Class189(this, class487_sub17);
		break;
	    case 1:
		interface23 = new Class183(this, class487_sub17);
		break;
	    case 7:
		interface23 = new Class207(this, class487_sub17);
		break;
	    case 12:
		interface23 = new Class206(this, class487_sub17);
		break;
	    case 2:
		interface23 = new Class225(this, class487_sub17);
		break;
	    case 9:
		interface23 = new Class200(this);
		break;
	    case 8:
		interface23 = new Class195(this);
		break;
	    case 5:
		interface23 = new Class182(this, class487_sub17);
	    }
	    ((Class201) this).aLinkedList2131.add(interface23);
	}
    }
    
    public void method2984(Class192 class192, int i) {
	if ((((Class201) this).aLong2128 * 1910361563271644125L
	     != ((Class192) class192).aLong2086 * 5539356996184957589L)
	    || (class192.method2884(1772124349)
		!= ((Class201) this).anInt2130 * -1472537537))
	    throw new IllegalStateException("");
	Iterator iterator = ((Class201) this).aLinkedList2131.iterator();
	while (iterator.hasNext()) {
	    Interface23 interface23 = (Interface23) iterator.next();
	    interface23.method115(class192, (byte) 4);
	}
	class192.method2885(1970076694);
    }
    
    static String method2985(int i, int i_0_, int i_1_) {
	int i_2_ = i_0_ - i;
	if (i_2_ < -9)
	    return Class562.method6842(16711680, 1233315171);
	if (i_2_ < -6)
	    return Class562.method6842(16723968, 242792468);
	if (i_2_ < -3)
	    return Class562.method6842(16740352, -563406375);
	if (i_2_ < 0)
	    return Class562.method6842(16756736, 1220440472);
	if (i_2_ > 9)
	    return Class562.method6842(65280, 163070448);
	if (i_2_ > 6)
	    return Class562.method6842(4259584, 1148683456);
	if (i_2_ > 3)
	    return Class562.method6842(8453888, -539796197);
	if (i_2_ > 0)
	    return Class562.method6842(12648192, 455443679);
	return Class562.method6842(16776960, 1952644622);
    }
    
    public static void method2986(int i, int i_3_, String string,
				  String string_4_, String string_5_,
				  String string_6_, String string_7_, int i_8_,
				  Class359 class359, byte i_9_) {
	Class237 class237
	    = (Class237) Class240.aMap2661.get(Integer.valueOf(i));
	if (class237 == null) {
	    class237 = new Class237();
	    Class240.aMap2661.put(Integer.valueOf(i), class237);
	}
	Class487_Sub35_Sub4 class487_sub35_sub4
	    = class237.method3422(i, i_3_, string, string_4_, string_5_,
				  string_6_, string_7_, i_8_, class359,
				  (short) 255);
	Class240.aClass666_2662.method7922(class487_sub35_sub4,
					   (long) (-186167253
						   * (class487_sub35_sub4
						      .anInt11348)));
	Class240.aClass631_2663.method7571(class487_sub35_sub4, -560763207);
	client.anInt10913 = client.anInt10898 * -608956849;
    }
    
    public static void method2987(Class151 class151, long l, int i, int i_10_,
				  byte i_11_) {
	do {
	    if (class151.method2376() && class151.method2026() > -1) {
		int i_12_ = class151.method2026();
		Class556 class556 = null;
		if (!Class545.aLinkedList7366.isEmpty())
		    class556 = (Class556) Class545.aLinkedList7366.getFirst();
		if (null == class556
		    || i_12_ != ((Class556) class556).anInt7521 * 499997215) {
		    class151.method2284();
		    Class545.aLinkedList7366.clear();
		} else {
		    Class545.aLinkedList7366.removeFirst();
		    class151.method2071();
		    boolean bool = false;
		    int i_13_;
		    if (((Class556) class556).aLinkedList7524.isEmpty()
			&& class151.method2024()) {
			long l_14_ = class151.method2029((-1965868341
							  * Class37.anInt458),
							 (Class425.anInt4900
							  * 754292695));
			i_13_ = (Class68.aTwitchTV970.SubmitFrame
				 (l_14_, class151.method2025(),
				  Class545.aBool7385, i, i_10_));
			class151.method2103(l_14_);
		    } else {
			class151.method2030(-1965868341 * Class37.anInt458,
					    754292695 * Class425.anInt4900,
					    (Class487_Sub35_Sub17
					     .anIntArray11489),
					    Class279_Sub2.anIntArray9798);
			Class411.method5045
			    (Class487_Sub35_Sub17.anIntArray11489,
			     ((Class556) class556).aLinkedList7524,
			     ((Class556) class556).anInt7523 * 2007554851,
			     ((Class556) class556).anInt7520 * 705873859,
			     ((Class556) class556).aFloat7522, 2051726827);
			i_13_ = (Class68.aTwitchTV970.SubmitFrameRaw
				 (Class487_Sub35_Sub17.anIntArray11489,
				  Class545.aBool7385, i, i_10_));
		    }
		    class151.method2134();
		    if (i_13_ == 2072)
			Class545.aLong7381 = l * -4633397836448774519L;
		    else if (i_13_ == 23)
			Class545.aLong7380 = l * -705605812612973653L;
		    else if (i_13_ == -995 || 0 != i_13_)
			break;
		}
	    }
	} while (false);
	if (Class545.aBool7384) {
	    if (null == Class487_Sub35_Sub17.anIntArray11489) {
		Class487_Sub35_Sub17.anIntArray11489
		    = new int[(Class545.aBool7385 ? i_10_ * i
			       : (754292695 * Class425.anInt4900
				  * (Class37.anInt458 * -1965868341)))];
		Class279_Sub2.anIntArray9798
		    = new int[(Class545.aBool7385 ? i_10_ * i
			       : (-1965868341 * Class37.anInt458
				  * (Class425.anInt4900 * 754292695)))];
	    }
	    if (!class151.method2376()) {
		class151.method2071();
		class151.method2030(Class37.anInt458 * -1965868341,
				    Class425.anInt4900 * 754292695,
				    Class487_Sub35_Sub17.anIntArray11489,
				    Class279_Sub2.anIntArray9798);
		Class411.method5045(Class487_Sub35_Sub17.anIntArray11489,
				    Class545.aLinkedList7387,
				    1882172349 * class151.anInt1829,
				    503204773 * class151.anInt1859,
				    class151.aFloat1862, 2049660232);
		int i_15_
		    = Class68.aTwitchTV970.SubmitFrameRaw((Class487_Sub35_Sub17
							   .anIntArray11489),
							  Class545.aBool7385,
							  i, i_10_);
		class151.method2134();
		Class545.aLinkedList7387.clear();
		do {
		    if (i_15_ == 2072)
			Class545.aLong7381 = l * -4633397836448774519L;
		    else if (i_15_ == 23)
			Class545.aLong7380 = -705605812612973653L * l;
		    else if (-995 == i_15_ || 0 != i_15_)
			break;
		} while (false);
	    } else {
		class151.method2028(client.anInt10698,
				    -1965868341 * Class37.anInt458,
				    754292695 * Class425.anInt4900);
		Class545.aLinkedList7366.add
		    (new Class556(client.anInt10698, Class545.aLinkedList7387,
				  class151.anInt1829 * 1882172349,
				  503204773 * class151.anInt1859,
				  class151.aFloat1862));
		Class545.aLinkedList7387 = new LinkedList();
	    }
	    Class545.aBool7384 = false;
	}
    }
    
    static final void method2988(Class612 class612, int i) {
	if (1438759941 * client.anInt10844 >= 5
	    && client.anInt10844 * 1438759941 <= 9)
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= client.anInt10844 * 1438759941;
	else
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= 0;
    }
    
    static final void method2989(Class612 class612, int i) {
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = ((Class590_Sub1) ((Class612) class612).anInterface55_8035)
		  .method9512(-1971787737);
    }
}
