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

public class Class431 implements Runnable
{
    boolean aBool5013;
    int anInt5014;
    Class631 aClass631_5015 = new Class631();
    Thread aThread5016;
    public static int anInt5017;
    
    public Class431() {
	((Class431) this).anInt5014 = 0;
	((Class431) this).aBool5013 = false;
	((Class431) this).aThread5016 = new Thread(this);
	((Class431) this).aThread5016.setDaemon(true);
	((Class431) this).aThread5016.start();
	((Class431) this).aThread5016.setPriority(1);
    }
    
    Class487_Sub35_Sub10_Sub2 method5266(int i, Class529 class529,
					 short i_0_) {
	Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2
	    = new Class487_Sub35_Sub10_Sub2();
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).anInt11771
	    = -27481881;
	synchronized (((Class431) this).aClass631_5015) {
	    for (Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2_1_
		     = (Class487_Sub35_Sub10_Sub2) ((Class431) this)
						       .aClass631_5015
						       .method7573(-260013722);
		 null != class487_sub35_sub10_sub2_1_;
		 class487_sub35_sub10_sub2_1_
		     = ((Class487_Sub35_Sub10_Sub2)
			((Class431) this).aClass631_5015
			    .method7574(-1174750620))) {
		if ((class487_sub35_sub10_sub2_1_.aLong10320
		     * -6682734244346036901L) == (long) i
		    && class529 == (((Class487_Sub35_Sub10_Sub2)
				     class487_sub35_sub10_sub2_1_)
				    .aClass529_11769)
		    && (((Class487_Sub35_Sub10_Sub2)
			 class487_sub35_sub10_sub2_1_).anInt11771 * -2088899881
			== 2)) {
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aByteArray11773
			= ((Class487_Sub35_Sub10_Sub2)
			   class487_sub35_sub10_sub2_1_).aByteArray11773;
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aBool11429
			= false;
		    Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2_2_
			= class487_sub35_sub10_sub2;
		    return class487_sub35_sub10_sub2_2_;
		}
	    }
	}
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aByteArray11773
	    = class529.method6460(i, 426687835);
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11429
	    = false;
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11431
	    = true;
	return class487_sub35_sub10_sub2;
    }
    
    Class487_Sub35_Sub10_Sub2 method5267(int i, byte[] is, Class529 class529,
					 byte i_3_) {
	Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2
	    = new Class487_Sub35_Sub10_Sub2();
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).anInt11771
	    = -54963762;
	class487_sub35_sub10_sub2.aLong10320
	    = (long) i * -5401989501857207597L;
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aByteArray11773
	    = is;
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aClass529_11769
	    = class529;
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11431
	    = false;
	method5273(class487_sub35_sub10_sub2, (byte) -29);
	return class487_sub35_sub10_sub2;
    }
    
    public void method5268(int i) {
	((Class431) this).aBool5013 = true;
	synchronized (((Class431) this).aClass631_5015) {
	    ((Class431) this).aClass631_5015.notifyAll();
	}
	try {
	    ((Class431) this).aThread5016.join();
	} catch (InterruptedException interruptedexception) {
	    /* empty */
	}
	((Class431) this).aThread5016 = null;
    }
    
    public void run() {
	while (!((Class431) this).aBool5013) {
	    Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2;
	    synchronized (((Class431) this).aClass631_5015) {
		class487_sub35_sub10_sub2
		    = ((Class487_Sub35_Sub10_Sub2)
		       ((Class431) this).aClass631_5015.method7572((byte) 4));
		if (null != class487_sub35_sub10_sub2)
		    ((Class431) this).anInt5014 -= -2077458447;
		else {
		    try {
			((Class431) this).aClass631_5015.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		    continue;
		}
	    }
	    try {
		if (-2088899881 * ((Class487_Sub35_Sub10_Sub2)
				   class487_sub35_sub10_sub2).anInt11771
		    == 2)
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aClass529_11769.method6459
			((int) (class487_sub35_sub10_sub2.aLong10320
				* -6682734244346036901L),
			 ((Class487_Sub35_Sub10_Sub2)
			  class487_sub35_sub10_sub2).aByteArray11773,
			 ((Class487_Sub35_Sub10_Sub2)
			  class487_sub35_sub10_sub2).aByteArray11773.length,
			 -981911318);
		else if (3 == -2088899881 * (((Class487_Sub35_Sub10_Sub2)
					      class487_sub35_sub10_sub2)
					     .anInt11771))
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aByteArray11773
			= (((Class487_Sub35_Sub10_Sub2)
			    class487_sub35_sub10_sub2)
			       .aClass529_11769.method6460
			   ((int) (-6682734244346036901L
				   * class487_sub35_sub10_sub2.aLong10320),
			    1337731034));
	    } catch (Exception exception) {
		Class430_Sub3.method8950(null, exception, 959978630);
	    }
	    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11429
		= false;
	}
    }
    
    public int method5269(short i) {
	synchronized (((Class431) this).aClass631_5015) {
	    int i_4_ = ((Class431) this).anInt5014 * 567578897;
	    return i_4_;
	}
    }
    
    Class487_Sub35_Sub10_Sub2 method5270(int i, Class529 class529, int i_5_) {
	Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2
	    = new Class487_Sub35_Sub10_Sub2();
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).anInt11771
	    = -82445643;
	class487_sub35_sub10_sub2.aLong10320
	    = (long) i * -5401989501857207597L;
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aClass529_11769
	    = class529;
	((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11431
	    = false;
	method5273(class487_sub35_sub10_sub2, (byte) -99);
	return class487_sub35_sub10_sub2;
    }
    
    public void method5271() {
	while (!((Class431) this).aBool5013) {
	    Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2;
	    synchronized (((Class431) this).aClass631_5015) {
		class487_sub35_sub10_sub2
		    = (Class487_Sub35_Sub10_Sub2) ((Class431) this)
						      .aClass631_5015
						      .method7572((byte) -79);
		if (null != class487_sub35_sub10_sub2)
		    ((Class431) this).anInt5014 -= -2077458447;
		else {
		    try {
			((Class431) this).aClass631_5015.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		    continue;
		}
	    }
	    try {
		if (-2088899881 * ((Class487_Sub35_Sub10_Sub2)
				   class487_sub35_sub10_sub2).anInt11771
		    == 2)
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aClass529_11769.method6459
			((int) (class487_sub35_sub10_sub2.aLong10320
				* -6682734244346036901L),
			 ((Class487_Sub35_Sub10_Sub2)
			  class487_sub35_sub10_sub2).aByteArray11773,
			 ((Class487_Sub35_Sub10_Sub2)
			  class487_sub35_sub10_sub2).aByteArray11773.length,
			 -981911318);
		else if (3 == -2088899881 * (((Class487_Sub35_Sub10_Sub2)
					      class487_sub35_sub10_sub2)
					     .anInt11771))
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aByteArray11773
			= (((Class487_Sub35_Sub10_Sub2)
			    class487_sub35_sub10_sub2)
			       .aClass529_11769.method6460
			   ((int) (-6682734244346036901L
				   * class487_sub35_sub10_sub2.aLong10320),
			    1410541334));
	    } catch (Exception exception) {
		Class430_Sub3.method8950(null, exception, -734960653);
	    }
	    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11429
		= false;
	}
    }
    
    public void method5272() {
	((Class431) this).aBool5013 = true;
	synchronized (((Class431) this).aClass631_5015) {
	    ((Class431) this).aClass631_5015.notifyAll();
	}
	try {
	    ((Class431) this).aThread5016.join();
	} catch (InterruptedException interruptedexception) {
	    /* empty */
	}
	((Class431) this).aThread5016 = null;
    }
    
    void method5273(Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2,
		    byte i) {
	synchronized (((Class431) this).aClass631_5015) {
	    ((Class431) this).aClass631_5015
		.method7571(class487_sub35_sub10_sub2, -921605401);
	    ((Class431) this).anInt5014 += -2077458447;
	    ((Class431) this).aClass631_5015.notifyAll();
	}
    }
    
    public int method5274() {
	synchronized (((Class431) this).aClass631_5015) {
	    int i = ((Class431) this).anInt5014 * 567578897;
	    return i;
	}
    }
    
    public void method5275() {
	((Class431) this).aBool5013 = true;
	synchronized (((Class431) this).aClass631_5015) {
	    ((Class431) this).aClass631_5015.notifyAll();
	}
	try {
	    ((Class431) this).aThread5016.join();
	} catch (InterruptedException interruptedexception) {
	    /* empty */
	}
	((Class431) this).aThread5016 = null;
    }
    
    public void method5276() {
	while (!((Class431) this).aBool5013) {
	    Class487_Sub35_Sub10_Sub2 class487_sub35_sub10_sub2;
	    synchronized (((Class431) this).aClass631_5015) {
		class487_sub35_sub10_sub2
		    = ((Class487_Sub35_Sub10_Sub2)
		       ((Class431) this).aClass631_5015.method7572((byte) 47));
		if (null != class487_sub35_sub10_sub2)
		    ((Class431) this).anInt5014 -= -2077458447;
		else {
		    try {
			((Class431) this).aClass631_5015.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		    continue;
		}
	    }
	    try {
		if (-2088899881 * ((Class487_Sub35_Sub10_Sub2)
				   class487_sub35_sub10_sub2).anInt11771
		    == 2)
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aClass529_11769.method6459
			((int) (class487_sub35_sub10_sub2.aLong10320
				* -6682734244346036901L),
			 ((Class487_Sub35_Sub10_Sub2)
			  class487_sub35_sub10_sub2).aByteArray11773,
			 ((Class487_Sub35_Sub10_Sub2)
			  class487_sub35_sub10_sub2).aByteArray11773.length,
			 -981911318);
		else if (3 == -2088899881 * (((Class487_Sub35_Sub10_Sub2)
					      class487_sub35_sub10_sub2)
					     .anInt11771))
		    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2)
			.aByteArray11773
			= (((Class487_Sub35_Sub10_Sub2)
			    class487_sub35_sub10_sub2)
			       .aClass529_11769.method6460
			   ((int) (-6682734244346036901L
				   * class487_sub35_sub10_sub2.aLong10320),
			    200858685));
	    } catch (Exception exception) {
		Class430_Sub3.method8950(null, exception, 1213581755);
	    }
	    ((Class487_Sub35_Sub10_Sub2) class487_sub35_sub10_sub2).aBool11429
		= false;
	}
    }
    
    public static int method5277(int i) {
	if (3 == Class545.anInt7382 * -1061949987)
	    return -1;
	if (-1061949987 * Class545.anInt7382 != 0)
	    return 930415373 * Class545.anInt7375;
	if (Class545.aStringArray7377 == null) {
	    if (Class470.aString5331.startsWith("mac ")) {
		if (Class470.aString5332.startsWith("ppc")) {
		    Class545.anInt7382 = 473790303;
		    return -1;
		}
		Class545.aStringArray7377 = new String[3];
		Class545.aStringArray7377[0] = "sdk-mac-dynamic";
		Class545.aStringArray7377[1] = "twitchsdk";
		Class545.aStringArray7377[2] = "twitchtv";
		Class545.aBoolArray7363 = new boolean[3];
		Class545.aBoolArray7363[0] = false;
		Class545.aBoolArray7363[1] = false;
		Class545.aBoolArray7363[2] = true;
	    } else if (Class470.aString5331.startsWith("win")) {
		Class545.aStringArray7377 = new String[6];
		Class545.aStringArray7377[0] = "avutil-ttv-51";
		Class545.aStringArray7377[1] = "libmp3lame-ttv";
		Class545.aStringArray7377[2] = "swresample-ttv-0";
		Class545.aStringArray7377[5] = "twitchtv";
		if (Class470.aString5332.startsWith("amd64")
		    || Class470.aString5332.startsWith("x86_64")) {
		    Class545.aStringArray7377[3] = "libmfxsw64";
		    Class545.aStringArray7377[4] = "twitchsdk_64_release";
		} else if (Class470.aString5332.startsWith("i386")
			   || Class470.aString5332.startsWith("i486")
			   || Class470.aString5332.startsWith("i586")
			   || Class470.aString5332.startsWith("x86")) {
		    Class545.aStringArray7377[3] = "libmfxsw32";
		    Class545.aStringArray7377[4] = "twitchsdk_32_release";
		} else {
		    Class545.anInt7382 = 473790303;
		    return -1;
		}
		Class545.aBoolArray7363 = new boolean[6];
		Class545.aBoolArray7363[0] = true;
		Class545.aBoolArray7363[1] = true;
		Class545.aBoolArray7363[2] = true;
		Class545.aBoolArray7363[3] = false;
		Class545.aBoolArray7363[4] = true;
		Class545.aBoolArray7363[5] = true;
	    } else {
		Class545.anInt7382 = 473790303;
		return -1;
	    }
	}
	Class545.anInt7382 = 157930101;
	return 0;
    }
    
    static final void method5278(Class211 class211, Class203 class203,
				 Class612 class612, int i) {
	String string = (String) (((Class612) class612).anObjectArray8034
				  [(((Class612) class612).anInt8017
				    -= 1516150619) * -1930397485]);
	if (Class53.method933(string, class612, 889576067) != null)
	    string = string.substring(0, string.length() - 1);
	class211.anObjectArray2374
	    = Class487_Sub21.method9339(string, class612, 65280);
	class211.aBool2360 = true;
    }
    
    static int method5279(Interface13 interface13, Interface8 interface8,
			  short i) {
	int i_6_ = 0;
	for (int i_7_ = 0; i_7_ < interface8.method28((byte) 83); i_7_++) {
	    Class241 class241
		= (Class241) interface8.method31(i_7_, -1834654260);
	    if (class241.method3457(interface13, 1425977237))
		i_6_ += class241.anInt2674 * 1628440701;
	}
	return i_6_;
    }
    
    static byte method5280(int i, int i_8_, byte i_9_) {
	if (i != 234133761 * Class537.aClass537_7326.anInt7327)
	    return (byte) 0;
	if ((i_8_ & 0x1) == 0)
	    return (byte) 1;
	return (byte) 2;
    }
    
    static void method5281(int i, int i_10_, int i_11_) {
	Class487_Sub35_Sub7 class487_sub35_sub7
	    = Exception_Sub3.method10133(12, (long) i);
	class487_sub35_sub7.method10304(-1813212516);
	((Class487_Sub35_Sub7) class487_sub35_sub7).anInt11418
	    = -1631067631 * i_10_;
    }
    
    public static void method5282(int i, String string, int i_12_) {
	int i_13_ = Class73.anInt1061 * 399443027;
	int[] is = Class73.anIntArray1062;
	boolean bool = false;
	for (int i_14_ = 0; i_14_ < i_13_; i_14_++) {
	    Class590_Sub1_Sub5_Sub1_Sub2 class590_sub1_sub5_sub1_sub2
		= client.aClass590_Sub1_Sub5_Sub1_Sub2Array10838[is[i_14_]];
	    if (class590_sub1_sub5_sub1_sub2 != null
		&& (class590_sub1_sub5_sub1_sub2
		    != Class54.aClass590_Sub1_Sub5_Sub1_Sub2_626)
		&& class590_sub1_sub5_sub1_sub2.aString11865 != null
		&& class590_sub1_sub5_sub1_sub2.aString11865
		       .equalsIgnoreCase(string)) {
		Class362 class362 = null;
		if (1 == i)
		    class362 = Class362.aClass362_3966;
		else if (2 == i)
		    class362 = Class362.aClass362_3930;
		else if (3 == i)
		    class362 = Class362.aClass362_3977;
		else if (4 == i)
		    class362 = Class362.aClass362_3860;
		else if (5 == i)
		    class362 = Class362.aClass362_3921;
		else if (i == 6)
		    class362 = Class362.aClass362_3973;
		else if (i == 7)
		    class362 = Class362.aClass362_3958;
		else if (i == 8)
		    class362 = Class362.aClass362_3912;
		else if (i == 9)
		    class362 = Class362.aClass362_3899;
		else if (10 == i)
		    class362 = Class362.aClass362_3913;
		if (class362 != null) {
		    Class487_Sub19 class487_sub19
			= Class667_Sub1.method9955(class362,
						   (client.aClass65_10744
						    .aClass676_946),
						   852043838);
		    class487_sub19.aClass487_Sub17_Sub2_10217
			.method9201(0, (byte) -48);
		    class487_sub19.aClass487_Sub17_Sub2_10217
			.method9306(is[i_14_], -873180776);
		    client.aClass65_10744.method1056(class487_sub19,
						     (byte) 113);
		}
		bool = true;
		break;
	    }
	}
	if (!bool)
	    Class210.method3047(4,
				new StringBuilder().append
				    (Class14.aClass14_237.method582
				     (Class152_Sub4.aClass621_9504, 627426634))
				    .append
				    (string).toString(),
				648507543);
    }
}
