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

public class Class603 {
	public static String method12932(String string) {
		StringBuilder stringbuilder = new StringBuilder();
		int i = string.length();
		for (int i_0_ = 0; i_0_ < i; i_0_++) {
			char c = string.charAt(i_0_);
			if (c == 37 && i > i_0_ + 2) {
				c = string.charAt(i_0_ + 1);
				boolean bool = false;
				int i_1_;
				if (c >= 48 && c <= 57)
					i_1_ = c - 48;
				else if (c >= 97 && c <= 102)
					i_1_ = c + 10 - 97;
				else if (c >= 65 && c <= 70)
					i_1_ = c + 10 - 65;
				else {
					stringbuilder.append('%');
					continue;
				}
				i_1_ *= 16;
				int i_2_ = string.charAt(i_0_ + 2);
				if (i_2_ >= 48 && i_2_ <= 57)
					i_1_ += i_2_ - 48;
				else if (i_2_ >= 97 && i_2_ <= 102)
					i_1_ += i_2_ + 10 - 97;
				else if (i_2_ >= 65 && i_2_ <= 70)
					i_1_ += i_2_ + 10 - 65;
				else {
					stringbuilder.append('%');
					continue;
				}
				if (i_1_ != 0 && Class583.method12734((byte) i_1_, (byte) 25))
					stringbuilder.append(Class84.method2260((byte) i_1_, 1420457159));
				i_0_ += 2;
			} else if (43 == c)
				stringbuilder.append(' ');
			else
				stringbuilder.append(c);
		}
		return stringbuilder.toString();
	}

	Class603() throws Throwable {
		throw new Error();
	}

	public static String method12933(CharSequence charsequence) {
		int i = charsequence.length();
		StringBuilder stringbuilder = new StringBuilder(i);
		for (int i_3_ = 0; i_3_ < i; i_3_++) {
			char c = charsequence.charAt(i_3_);
			if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || '.' == c || '-' == c || '*' == c || c == '_')
				stringbuilder.append(c);
			else if (' ' == c)
				stringbuilder.append('+');
			else {
				int i_4_ = Class394.method7136(c, 1470216924);
				stringbuilder.append('%');
				int i_5_ = i_4_ >> 4 & 0xf;
				if (i_5_ >= 10)
					stringbuilder.append((char) (i_5_ + 55));
				else
					stringbuilder.append((char) (i_5_ + 48));
				i_5_ = i_4_ & 0xf;
				if (i_5_ >= 10)
					stringbuilder.append((char) (i_5_ + 55));
				else
					stringbuilder.append((char) (48 + i_5_));
			}
		}
		return stringbuilder.toString();
	}

	public static String method12934(CharSequence charsequence) {
		int i = charsequence.length();
		StringBuilder stringbuilder = new StringBuilder(i);
		for (int i_6_ = 0; i_6_ < i; i_6_++) {
			char c = charsequence.charAt(i_6_);
			if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || '.' == c || '-' == c || '*' == c || c == '_')
				stringbuilder.append(c);
			else if (' ' == c)
				stringbuilder.append('+');
			else {
				int i_7_ = Class394.method7136(c, -326131912);
				stringbuilder.append('%');
				int i_8_ = i_7_ >> 4 & 0xf;
				if (i_8_ >= 10)
					stringbuilder.append((char) (i_8_ + 55));
				else
					stringbuilder.append((char) (i_8_ + 48));
				i_8_ = i_7_ & 0xf;
				if (i_8_ >= 10)
					stringbuilder.append((char) (i_8_ + 55));
				else
					stringbuilder.append((char) (48 + i_8_));
			}
		}
		return stringbuilder.toString();
	}

	public static String method12935(CharSequence charsequence) {
		int i = charsequence.length();
		StringBuilder stringbuilder = new StringBuilder(i);
		for (int i_9_ = 0; i_9_ < i; i_9_++) {
			char c = charsequence.charAt(i_9_);
			if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || '.' == c || '-' == c || '*' == c || c == '_')
				stringbuilder.append(c);
			else if (' ' == c)
				stringbuilder.append('+');
			else {
				int i_10_ = Class394.method7136(c, 522296112);
				stringbuilder.append('%');
				int i_11_ = i_10_ >> 4 & 0xf;
				if (i_11_ >= 10)
					stringbuilder.append((char) (i_11_ + 55));
				else
					stringbuilder.append((char) (i_11_ + 48));
				i_11_ = i_10_ & 0xf;
				if (i_11_ >= 10)
					stringbuilder.append((char) (i_11_ + 55));
				else
					stringbuilder.append((char) (48 + i_11_));
			}
		}
		return stringbuilder.toString();
	}

	static final void method12936(Class477 class477, short i) {
		((Class477) class477).anInt6498 -= 436935797;
		int i_12_ = (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498]);
		int i_13_ = (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498 + 1]);
		int i_14_ = (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 + 2]);
		Class53.method1288(7, i_12_ << 16 | i_13_, i_14_, "", (byte) 11);
	}

	public static Class396 method12937(Class417 class417, Class587_Sub4 class587_sub4, int i) {
		Class396 class396 = new Class396(class417);
		int i_15_ = class587_sub4.method14349(-1130636365);
		boolean bool = (i_15_ & 0x1) != 0;
		boolean bool_16_ = 0 != (i_15_ & 0x2);
		boolean bool_17_ = (i_15_ & 0x4) != 0;
		boolean bool_18_ = 0 != (i_15_ & 0x8);
		if (bool) {
			class396.anIntArray5726[0] = class587_sub4.method14227(-619294811);
			class396.anIntArray5725[0] = class587_sub4.method14227(-1718572048);
			if (((Class417) class417).anInt6099 * 339693651 != -1 || -1 != ((Class417) class417).anInt6101 * 713892333) {
				class396.anIntArray5726[1] = class587_sub4.method14227(-1836178487);
				class396.anIntArray5725[1] = class587_sub4.method14227(305552478);
			}
			if (-1 != ((Class417) class417).anInt6102 * 567663103 || 1334319663 * ((Class417) class417).anInt6119 != -1) {
				class396.anIntArray5726[2] = class587_sub4.method14227(-1327791908);
				class396.anIntArray5725[2] = class587_sub4.method14227(-1992162545);
			}
		}
		if (bool_16_) {
			class396.anIntArray5729[0] = class587_sub4.method14227(-1822718245);
			class396.anIntArray5727[0] = class587_sub4.method14227(768883164);
			if (((Class417) class417).anInt6111 * 672576193 != -1 || ((Class417) class417).anInt6067 * -1504088425 != -1) {
				class396.anIntArray5729[1] = class587_sub4.method14227(-595673392);
				class396.anIntArray5727[1] = class587_sub4.method14227(-571469637);
			}
		}
		if (bool_17_) {
			int i_19_ = class587_sub4.method14191((byte) -72);
			int[] is = new int[4];
			is[0] = i_19_ & 0xf;
			is[1] = i_19_ >> 4 & 0xf;
			is[2] = i_19_ >> 8 & 0xf;
			is[3] = i_19_ >> 12 & 0xf;
			for (int i_20_ = 0; i_20_ < 4; i_20_++) {
				if (is[i_20_] != 15)
					class396.aShortArray5728[is[i_20_]] = (short) class587_sub4.method14191((byte) -73);
			}
		}
		if (bool_18_) {
			int i_21_ = class587_sub4.method14349(-1130636365);
			int[] is = new int[2];
			is[0] = i_21_ & 0xf;
			is[1] = i_21_ >> 4 & 0xf;
			for (int i_22_ = 0; i_22_ < 2; i_22_++) {
				if (15 != is[i_22_])
					class396.aShortArray5724[is[i_22_]] = (short) class587_sub4.method14191((byte) -7);
			}
		}
		return class396;
	}
}
