/* Class18 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class Class18 implements Runnable
{
    volatile String aString127;
    InetAddress anInetAddress128;
    static int anInt129;
    
    public void method652() {
	((Class18) this).aString127
	    = ((Class18) this).anInetAddress128.getHostName();
    }
    
    public String method653() {
	return ((Class18) this).aString127;
    }
    
    public String method654(byte i) {
	return ((Class18) this).aString127;
    }
    
    public void run() {
	((Class18) this).aString127
	    = ((Class18) this).anInetAddress128.getHostName();
    }
    
    public void method655() {
	((Class18) this).aString127
	    = ((Class18) this).anInetAddress128.getHostName();
    }
    
    Class18(int i) throws UnknownHostException {
	((Class18) this).anInetAddress128
	    = InetAddress.getByAddress(new byte[] { (byte) (i >> 24 & 0xff),
						    (byte) (i >> 16 & 0xff),
						    (byte) (i >> 8 & 0xff),
						    (byte) (i & 0xff) });
    }
    
    public void method656() {
	((Class18) this).aString127
	    = ((Class18) this).anInetAddress128.getHostName();
    }
    
    public String method657() {
	return ((Class18) this).aString127;
    }
    
    public void method658() {
	((Class18) this).aString127
	    = ((Class18) this).anInetAddress128.getHostName();
    }
    
    static void method659(int i, int i_0_) {
	/* empty */
    }
    
    static final void method660(Class479 class479, byte i) {
	Class243_Sub6 class243_sub6
	    = (Class243_Sub6) (((Class479) class479).anObjectArray6437
			       [(((Class479) class479).anInt6432
				 -= -1049632545) * -611591393]);
	if (Class238.aClass67_Sub1_3891.method1673(2039569341)
	    != Class41.aClass41_600) {
	    if (i != 16)
		return;
	    throw new RuntimeException();
	}
	Class445_Sub2 class445_sub2
	    = ((Class445_Sub2)
	       Class238.aClass67_Sub1_3891.method1581(-575612431));
	class445_sub2.method14141(class243_sub6, 869499648);
    }
    
    static final void method661(Class479 class479, byte i) {
	int[] is = ((Class479) class479).anIntArray6435;
	int i_1_
	    = ((((Class479) class479).anInt6442 += -1158629699) * -117934955
	       - 1);
	int i_2_;
	if (Class612.aClass243_Sub7_7837.aClass421_Sub34_8634
		.method14543(-467612367)) {
	    if (i != 7)
		return;
	    i_2_ = 1;
	} else
	    i_2_ = 0;
	is[i_1_] = i_2_;
    }
    
    static final void method662(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = ((Class479) class479).aClass478_Sub1_Sub2_Sub1_6431
		  .method14362(185412234);
    }
    
    public static Class414 method663(String string, String string_3_,
				     boolean bool, byte i) {
	File file = new File(Class478_Sub1_Sub5.aFile10675,
			     new StringBuilder().append("preferences").append
				 (string).append
				 (".dat").toString());
	do {
	    if (file.exists()) {
		Class414 class414;
		try {
		    Class414 class414_4_ = new Class414(file, "rw", 10000L);
		    class414 = class414_4_;
		} catch (IOException ioexception) {
		    break;
		}
		return class414;
	    }
	} while (false);
	String string_5_ = "";
	if (Class166.anInt2115 * 938668113 == 33)
	    string_5_ = "_rc";
	else if (Class166.anInt2115 * 938668113 == 34)
	    string_5_ = "_wip";
	File file_6_ = new File(Class115.aString1341,
				new StringBuilder().append("jagex_").append
				    (string_3_).append
				    ("_preferences").append
				    (string).append
				    (string_5_).append
				    (".dat").toString());
	do {
	    if (!bool && file_6_.exists()) {
		Class414 class414;
		try {
		    Class414 class414_7_ = new Class414(file_6_, "rw", 10000L);
		    class414 = class414_7_;
		} catch (IOException ioexception) {
		    break;
		}
		return class414;
	    }
	} while (false);
	Class414 class414;
	try {
	    Class414 class414_8_ = new Class414(file, "rw", 10000L);
	    class414 = class414_8_;
	} catch (IOException ioexception) {
	    throw new RuntimeException();
	}
	return class414;
    }
    
    static final void method664(Class479 class479, byte i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = Class19.anInt170 * 1512154153;
    }
    
    static String method665(Class243_Sub11_Sub15 class243_sub11_sub15, int i) {
	if (((Class243_Sub11_Sub15) class243_sub11_sub15).aString10834 == null
	    || ((Class243_Sub11_Sub15) class243_sub11_sub15).aString10834
		   .length() == 0) {
	    if ((null
		 != ((Class243_Sub11_Sub15) class243_sub11_sub15).aString10845)
		&& ((Class243_Sub11_Sub15) class243_sub11_sub15)
		       .aString10845.length() > 0)
		return new StringBuilder().append
			   (((Class243_Sub11_Sub15) class243_sub11_sub15)
			    .aString10835)
			   .append
			   (Class400.aClass400_5895
				.method7264(client.aClass457_8110, (byte) 9))
			   .append
			   (((Class243_Sub11_Sub15) class243_sub11_sub15)
			    .aString10845)
			   .toString();
	    return ((Class243_Sub11_Sub15) class243_sub11_sub15).aString10835;
	}
	if (null != ((Class243_Sub11_Sub15) class243_sub11_sub15).aString10845
	    && ((Class243_Sub11_Sub15) class243_sub11_sub15).aString10845
		   .length() > 0)
	    return new StringBuilder().append
		       (((Class243_Sub11_Sub15) class243_sub11_sub15)
			.aString10835)
		       .append
		       (Class400.aClass400_5895
			    .method7264(client.aClass457_8110, (byte) 9))
		       .append
		       (((Class243_Sub11_Sub15) class243_sub11_sub15)
			.aString10845)
		       .append
		       (Class400.aClass400_5895
			    .method7264(client.aClass457_8110, (byte) 9))
		       .append
		       (((Class243_Sub11_Sub15) class243_sub11_sub15)
			.aString10834)
		       .toString();
	return new StringBuilder().append
		   (((Class243_Sub11_Sub15) class243_sub11_sub15).aString10835)
		   .append
		   (Class400.aClass400_5895.method7264(client.aClass457_8110,
						       (byte) 9))
		   .append
		   (((Class243_Sub11_Sub15) class243_sub11_sub15).aString10834)
		   .toString();
    }
}
