/* Class197 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Point;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;

public class Class197
{
    Class197() throws Throwable {
	throw new Error();
    }
    
    static void method4208(Class243_Sub10 class243_sub10, int i, int i_0_) {
	if (null != Class590.aClass418_7671) {
	    try {
		Class590.aClass418_7671.method7427(0L);
		Class590.aClass418_7671.method7432((class243_sub10
						    .aByteArray8691),
						   i, 24, 630213313);
	    } catch (Exception exception) {
		/* empty */
	    }
	}
    }
    
    static final void method4209(Class117 class117, Class479 class479, int i) {
	Class622 class622
	    = class117.method2899(Class120_Sub1.aClass342_8790,
				  client.anInterface34_8170, (byte) -128);
	int i_1_ = (((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 -= -1158629699)
		      * -117934955)]);
	Point point
	    = class622.method13356(class117.aString1443,
				   class117.anInt1387 * -719017229,
				   class117.anInt1483 * -648962263, i_1_,
				   Class20.aClass135Array193, -1020164233);
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = point.x;
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = point.y;
    }
    
    static final void method4210(Class479 class479, int i) {
	int i_2_ = (((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 -= -1158629699)
		      * -117934955)]);
	Class243_Sub11_Sub4 class243_sub11_sub4
	    = Class357_Sub1.method16639(-416096269);
	if (class243_sub11_sub4 != null) {
	    boolean bool
		= class243_sub11_sub4.method17051(i_2_ >> 28 & 0x3,
						  i_2_ >> 14 & 0x3fff,
						  i_2_ & 0x3fff,
						  Class480.anIntArray6464,
						  (short) 9692);
	    if (bool)
		Class243_Sub31_Sub5.method17322(Class480.anIntArray6464[1],
						Class480.anIntArray6464[2],
						243008986);
	}
    }
    
    static void method4211(int i) {
	/* empty */
    }
    
    static void method4212(byte i) {
	if (732746175 * Class188.anInt2229 < 102)
	    Class188.anInt2229 += 648590714;
	if (Class188.anInt2232 * -333214029 != -1
	    && (Class188.aLong2233 * 2641558205975191831L
		< Class46.method1238(523464569))) {
	    for (int i_3_ = Class188.anInt2232 * -333214029;
		 i_3_ < Class188.aStringArray2234.length; i_3_++) {
		if (Class188.aStringArray2234[i_3_].startsWith("pause")) {
		    int i_4_ = 5;
		    try {
			i_4_ = Integer.parseInt(Class188.aStringArray2234
						    [i_3_].substring(6));
		    } catch (Exception exception) {
			/* empty */
		    }
		    Class2.method466(new StringBuilder().append
					 ("Pausing for ").append
					 (i_4_).append
					 (" seconds...").toString(),
				     2132287344);
		    Class188.anInt2232 = (1 + i_3_) * -1985752965;
		    Class188.aLong2233
			= (Class46.method1238(1549303564)
			   + (long) (i_4_ * 1000)) * -7603506170255382873L;
		    return;
		}
		Class188.aString2231 = Class188.aStringArray2234[i_3_];
		Class365.method6943(false, -1118574803);
	    }
	    Class188.anInt2232 = 1985752965;
	}
	if (0 != client.anInt8155 * -1018775773) {
	    Class188.anInt2225 -= client.anInt8155 * 148122735;
	    if (Class188.anInt2225 * -2109264703
		>= 2092989741 * Class188.anInt2224)
		Class188.anInt2225
		    = Class188.anInt2224 * -1829032083 - 1247765313;
	    if (-2109264703 * Class188.anInt2225 < 0)
		Class188.anInt2225 = 0;
	    client.anInt8155 = 0;
	}
	for (int i_5_ = 0; i_5_ < 639098537 * client.anInt8157; i_5_++) {
	    Interface59 interface59 = client.anInterface59Array8158[i_5_];
	    int i_6_ = interface59.method428((byte) -118);
	    char c = interface59.method435(-1493721253);
	    int i_7_ = interface59.method429(-1443169600);
	    if (i_6_ == 84)
		Class365.method6943(false, -1118574803);
	    if (i_6_ == 80)
		Class365.method6943(true, -1118574803);
	    else if (i_6_ == 66 && (i_7_ & 0x4) != 0) {
		if (null != Class271.aClipboard4089) {
		    String string = "";
		    for (int i_8_ = Class188.aStringArray2222.length - 1;
			 i_8_ >= 0; i_8_--) {
			if (null != Class188.aStringArray2222[i_8_]
			    && Class188.aStringArray2222[i_8_].length() > 0)
			    string
				= new StringBuilder().append(string).append
				      (Class188.aStringArray2222[i_8_]).append
				      ('\n').toString();
		    }
		    Class271.aClipboard4089
			.setContents(new StringSelection(string), null);
		}
	    } else if (i_6_ == 67 && (i_7_ & 0x4) != 0) {
		if (Class271.aClipboard4089 != null) {
		    try {
			Transferable transferable
			    = Class271.aClipboard4089.getContents(null);
			if (null != transferable) {
			    String string
				= (String) (transferable.getTransferData
					    (DataFlavor.stringFlavor));
			    if (null != string) {
				String[] strings
				    = Class295.method5926(string, '\n',
							  779600958);
				Class23.method917(strings, 1205716462);
			    }
			}
		    } catch (Exception exception) {
			/* empty */
		    }
		}
	    } else if (i_6_ == 85 && Class188.anInt2226 * 1057998935 > 0) {
		Class188.aString2231
		    = new StringBuilder().append
			  (Class188.aString2231.substring(0,
							  (Class188.anInt2226
							   * 1057998935) - 1))
			  .append
			  (Class188.aString2231
			       .substring(Class188.anInt2226 * 1057998935))
			  .toString();
		Class188.anInt2226 -= 977380199;
	    } else if (101 == i_6_ && (1057998935 * Class188.anInt2226
				       < Class188.aString2231.length()))
		Class188.aString2231
		    = new StringBuilder().append
			  (Class188.aString2231
			       .substring(0, Class188.anInt2226 * 1057998935))
			  .append
			  (Class188.aString2231
			       .substring(Class188.anInt2226 * 1057998935 + 1))
			  .toString();
	    else if (96 == i_6_ && 1057998935 * Class188.anInt2226 > 0)
		Class188.anInt2226 -= 977380199;
	    else if (97 == i_6_ && (1057998935 * Class188.anInt2226
				    < Class188.aString2231.length()))
		Class188.anInt2226 += 977380199;
	    else if (i_6_ == 102)
		Class188.anInt2226 = 0;
	    else if (103 == i_6_)
		Class188.anInt2226 = Class188.aString2231.length() * 977380199;
	    else if (i_6_ == 104 && (Class188.anInt2227 * -178864783
				     < Class188.aStringArray2222.length)) {
		Class188.anInt2227 += 173826961;
		Class547.method12045(-1874690958);
		Class188.anInt2226 = Class188.aString2231.length() * 977380199;
	    } else if (105 == i_6_ && Class188.anInt2227 * -178864783 > 0) {
		Class188.anInt2227 -= 173826961;
		Class547.method12045(-2104066316);
		Class188.anInt2226 = Class188.aString2231.length() * 977380199;
	    } else if (Class249.method5001(c, -1158629699)
		       || "\\/.:, _-+[]~@".indexOf(c) != -1) {
		Class188.aString2231
		    = new StringBuilder().append
			  (Class188.aString2231
			       .substring(0, Class188.anInt2226 * 1057998935))
			  .append
			  (client.anInterface59Array8158[i_5_]
			       .method435(-1619702335))
			  .append
			  (Class188.aString2231
			       .substring(Class188.anInt2226 * 1057998935))
			  .toString();
		Class188.anInt2226 += 977380199;
	    }
	}
	client.anInt8157 = 0;
	client.anInt8203 = 0;
	Class428.method7716(1390882172);
    }
}
