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

public class Class596
{
    public static String method13063(CharSequence charsequence) {
	int i = charsequence.length();
	StringBuilder stringbuilder = new StringBuilder(i);
	for (int i_0_ = 0; i_0_ < i; i_0_++) {
	    char c = charsequence.charAt(i_0_);
	    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_1_ = Class49.method1274(c, (byte) 11);
		stringbuilder.append('%');
		int i_2_ = i_1_ >> 4 & 0xf;
		if (i_2_ >= 10)
		    stringbuilder.append((char) (55 + i_2_));
		else
		    stringbuilder.append((char) (48 + i_2_));
		i_2_ = i_1_ & 0xf;
		if (i_2_ >= 10)
		    stringbuilder.append((char) (55 + i_2_));
		else
		    stringbuilder.append((char) (i_2_ + 48));
	    }
	}
	return stringbuilder.toString();
    }
    
    public static String method13064(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_ = Class49.method1274(c, (byte) 84);
		stringbuilder.append('%');
		int i_5_ = i_4_ >> 4 & 0xf;
		if (i_5_ >= 10)
		    stringbuilder.append((char) (55 + i_5_));
		else
		    stringbuilder.append((char) (48 + i_5_));
		i_5_ = i_4_ & 0xf;
		if (i_5_ >= 10)
		    stringbuilder.append((char) (55 + i_5_));
		else
		    stringbuilder.append((char) (i_5_ + 48));
	    }
	}
	return stringbuilder.toString();
    }
    
    public static String method13065(String string) {
	StringBuilder stringbuilder = new StringBuilder();
	int i = string.length();
	for (int i_6_ = 0; i_6_ < i; i_6_++) {
	    char c = string.charAt(i_6_);
	    if (c == 37 && i > 2 + i_6_) {
		c = string.charAt(i_6_ + 1);
		boolean bool = false;
		int i_7_;
		if (c >= 48 && c <= 57)
		    i_7_ = c - 48;
		else if (c >= 97 && c <= 102)
		    i_7_ = 10 + c - 97;
		else if (c >= 65 && c <= 70)
		    i_7_ = c + 10 - 65;
		else {
		    stringbuilder.append('%');
		    continue;
		}
		i_7_ *= 16;
		int i_8_ = string.charAt(i_6_ + 2);
		if (i_8_ >= 48 && i_8_ <= 57)
		    i_7_ += i_8_ - 48;
		else if (i_8_ >= 97 && i_8_ <= 102)
		    i_7_ += 10 + i_8_ - 97;
		else if (i_8_ >= 65 && i_8_ <= 70)
		    i_7_ += i_8_ + 10 - 65;
		else {
		    stringbuilder.append('%');
		    continue;
		}
		if (0 != i_7_
		    && Class296_Sub5.method16650((byte) i_7_, -1497153266))
		    stringbuilder.append(Class160.method3712((byte) i_7_,
							     (short) 13380));
		i_6_ += 2;
	    } else if (c == 43)
		stringbuilder.append(' ');
	    else
		stringbuilder.append(c);
	}
	return stringbuilder.toString();
    }
    
    public static String method13066(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_ = Class49.method1274(c, (byte) 82);
		stringbuilder.append('%');
		int i_11_ = i_10_ >> 4 & 0xf;
		if (i_11_ >= 10)
		    stringbuilder.append((char) (55 + i_11_));
		else
		    stringbuilder.append((char) (48 + i_11_));
		i_11_ = i_10_ & 0xf;
		if (i_11_ >= 10)
		    stringbuilder.append((char) (55 + i_11_));
		else
		    stringbuilder.append((char) (i_11_ + 48));
	    }
	}
	return stringbuilder.toString();
    }
    
    public static String method13067(String string) {
	StringBuilder stringbuilder = new StringBuilder();
	int i = string.length();
	for (int i_12_ = 0; i_12_ < i; i_12_++) {
	    char c = string.charAt(i_12_);
	    if (c == 37 && i > 2 + i_12_) {
		c = string.charAt(i_12_ + 1);
		boolean bool = false;
		int i_13_;
		if (c >= 48 && c <= 57)
		    i_13_ = c - 48;
		else if (c >= 97 && c <= 102)
		    i_13_ = 10 + c - 97;
		else if (c >= 65 && c <= 70)
		    i_13_ = c + 10 - 65;
		else {
		    stringbuilder.append('%');
		    continue;
		}
		i_13_ *= 16;
		int i_14_ = string.charAt(i_12_ + 2);
		if (i_14_ >= 48 && i_14_ <= 57)
		    i_13_ += i_14_ - 48;
		else if (i_14_ >= 97 && i_14_ <= 102)
		    i_13_ += 10 + i_14_ - 97;
		else if (i_14_ >= 65 && i_14_ <= 70)
		    i_13_ += i_14_ + 10 - 65;
		else {
		    stringbuilder.append('%');
		    continue;
		}
		if (0 != i_13_
		    && Class296_Sub5.method16650((byte) i_13_, -1497153266))
		    stringbuilder.append(Class160.method3712((byte) i_13_,
							     (short) -4502));
		i_12_ += 2;
	    } else if (c == 43)
		stringbuilder.append(' ');
	    else
		stringbuilder.append(c);
	}
	return stringbuilder.toString();
    }
    
    Class596() throws Throwable {
	throw new Error();
    }
    
    public static String method13068(CharSequence charsequence) {
	int i = charsequence.length();
	StringBuilder stringbuilder = new StringBuilder(i);
	for (int i_15_ = 0; i_15_ < i; i_15_++) {
	    char c = charsequence.charAt(i_15_);
	    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_16_ = Class49.method1274(c, (byte) 41);
		stringbuilder.append('%');
		int i_17_ = i_16_ >> 4 & 0xf;
		if (i_17_ >= 10)
		    stringbuilder.append((char) (55 + i_17_));
		else
		    stringbuilder.append((char) (48 + i_17_));
		i_17_ = i_16_ & 0xf;
		if (i_17_ >= 10)
		    stringbuilder.append((char) (55 + i_17_));
		else
		    stringbuilder.append((char) (i_17_ + 48));
	    }
	}
	return stringbuilder.toString();
    }
    
    public static String method13069(CharSequence charsequence) {
	int i = charsequence.length();
	StringBuilder stringbuilder = new StringBuilder(i);
	for (int i_18_ = 0; i_18_ < i; i_18_++) {
	    char c = charsequence.charAt(i_18_);
	    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_19_ = Class49.method1274(c, (byte) 126);
		stringbuilder.append('%');
		int i_20_ = i_19_ >> 4 & 0xf;
		if (i_20_ >= 10)
		    stringbuilder.append((char) (55 + i_20_));
		else
		    stringbuilder.append((char) (48 + i_20_));
		i_20_ = i_19_ & 0xf;
		if (i_20_ >= 10)
		    stringbuilder.append((char) (55 + i_20_));
		else
		    stringbuilder.append((char) (i_20_ + 48));
	    }
	}
	return stringbuilder.toString();
    }
    
    static void method13070(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [-117934955 * ((Class479) class479).anInt6442 - 2]
	    = (Exception_Sub4.aClass495_10538.method11258
	       ((((Class479) class479).anIntArray6435
		 [((Class479) class479).anInt6442 * -117934955 - 2]),
		(short) 23800)
	       .anIntArrayArray6557
	       [(((Class479) class479).anIntArray6435
		 [((Class479) class479).anInt6442 * -117934955 - 1])]
	       [0]);
	((Class479) class479).anInt6442 -= -1158629699;
    }
}
