/* Class358 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Frame;
import java.io.File;

public class Class358 implements Interface42
{
    public int anInt3799;
    public Class368 aClass368_3800;
    public Class366 aClass366_3801;
    public int anInt3802;
    public int anInt3803;
    public int anInt3804;
    public int anInt3805;
    public int anInt3806;
    public int anInt3807;
    public int anInt3808;
    public int anInt3809;
    public String aString3810;
    public int anInt3811;
    
    Class358(String string, Class368 class368, Class366 class366, int i,
	     int i_0_, int i_1_, int i_2_, int i_3_, int i_4_, int i_5_,
	     int i_6_, int i_7_, int i_8_) {
	aString3810 = string;
	aClass368_3800 = class368;
	aClass366_3801 = class366;
	anInt3802 = -341186503 * i;
	anInt3803 = i_0_ * -37823215;
	anInt3804 = i_1_ * -2130001131;
	anInt3799 = i_2_ * -2053803025;
	anInt3805 = i_3_ * 291101617;
	anInt3806 = -672730873 * i_4_;
	anInt3808 = 888374947 * i_5_;
	anInt3809 = i_6_ * -1570148595;
	anInt3807 = -1812384717 * i_7_;
	anInt3811 = 215500413 * i_8_;
    }
    
    public Class356 method296(int i) {
	return Class356.aClass356_3749;
    }
    
    public Class356 method293() {
	return Class356.aClass356_3749;
    }
    
    public Class356 method297() {
	return Class356.aClass356_3749;
    }
    
    public Class356 method294() {
	return Class356.aClass356_3749;
    }
    
    public Class356 method298() {
	return Class356.aClass356_3749;
    }
    
    public Class356 method292() {
	return Class356.aClass356_3749;
    }
    
    public Class356 method295() {
	return Class356.aClass356_3749;
    }
    
    static final void method4455(Class612 class612, byte i) {
	int i_9_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_9_, (short) -18470);
	Class203 class203 = Class163_Sub20.aClass203Array9719[i_9_ >> 16];
	Class119_Sub1.method8181(class211, class203, class612, (byte) 3);
    }
    
    public static byte[] method4456(File file, byte i) {
	return Class343.method4366(file, (int) file.length(), (short) -1578);
    }
    
    static final void method4457(Class612 class612, byte i) {
	((Class612) class612).anInt8022 -= 402182018;
	int i_10_ = (((Class612) class612).anIntArray8021
		     [((Class612) class612).anInt8022 * -40654783]);
	int i_11_ = (((Class612) class612).anIntArray8021
		     [-40654783 * ((Class612) class612).anInt8022 + 1]);
	int i_12_ = i_11_ >> 14 & 0x3fff;
	int i_13_ = i_11_ & 0x3fff;
	int i_14_ = Class277.method3803(i_10_, i_12_, i_13_, (byte) -10);
	if (i_14_ < 0)
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= -1;
	else
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= i_14_;
    }
    
    public static Frame method4458(Class641 class641, int i, int i_15_,
				   int i_16_, int i_17_, byte i_18_) {
	if (i_16_ == 0) {
	    Class644[] class644s = Class530.method6506(class641, 1923641744);
	    if (null == class644s)
		return null;
	    boolean bool = false;
	    for (int i_19_ = 0; i_19_ < class644s.length; i_19_++) {
		if (-2052741733 * class644s[i_19_].anInt8227 == i
		    && 734520995 * class644s[i_19_].anInt8225 == i_15_
		    && (0 == i_17_
			|| 1020274117 * (((Class644) class644s[i_19_])
					 .anInt8226) == i_17_)
		    && (!bool
			|| -1367911715 * class644s[i_19_].anInt8224 > i_16_)) {
		    i_16_ = class644s[i_19_].anInt8224 * -1367911715;
		    bool = true;
		}
	    }
	    if (!bool)
		return null;
	}
	Frame frame = new Frame("Jagex Full Screen");
	frame.setResizable(false);
	class641.method7634(frame, i, i_15_, i_16_, i_17_, (byte) 79);
	return frame;
    }
    
    public static int method4459(byte[] is, int i, CharSequence charsequence,
				 byte i_20_) {
	int i_21_ = charsequence.length();
	int i_22_ = i;
	for (int i_23_ = 0; i_23_ < i_21_; i_23_++) {
	    int i_24_ = charsequence.charAt(i_23_);
	    if (i_24_ <= 127)
		is[i_22_++] = (byte) i_24_;
	    else if (i_24_ <= 2047) {
		is[i_22_++] = (byte) (0xc0 | i_24_ >> 6);
		is[i_22_++] = (byte) (0x80 | i_24_ & 0x3f);
	    } else {
		is[i_22_++] = (byte) (0xe0 | i_24_ >> 12);
		is[i_22_++] = (byte) (0x80 | i_24_ >> 6 & 0x3f);
		is[i_22_++] = (byte) (0x80 | i_24_ & 0x3f);
	    }
	}
	return i_22_ - i;
    }
}
