
public class Class495 {

   static int[] anIntArray5915;
   static char[] aCharArray5916;
   static char[] aCharArray5917 = new char[64];
   static short aShort5918;


   static int method8289(String var0, byte[] var1, int var2) {
      int var3 = var2;
      int var4 = var0.length();

      for(int var5 = 0; var5 < var4; var5 += 4) {
         int var6 = Class474.method7940(var0.charAt(var5), 803984978);
         int var7 = var5 + 1 < var4?Class474.method7940(var0.charAt(1 + var5), 803984978):-1;
         int var8 = 2 + var5 < var4?Class474.method7940(var0.charAt(var5 + 2), 803984978):-1;
         int var9 = var5 + 3 < var4?Class474.method7940(var0.charAt(var5 + 3), 803984978):-1;
         var1[var2++] = (byte)(var6 << 2 | var7 >>> 4);
         if(-1 == var8) {
            break;
         }

         var1[var2++] = (byte)((var7 & 15) << 4 | var8 >>> 2);
         if(-1 == var9) {
            break;
         }

         var1[var2++] = (byte)((var8 & 3) << 6 | var9);
      }

      return var2 - var3;
   }

   static int method8290(char var0) {
      return var0 >= 0 && var0 < anIntArray5915.length?anIntArray5915[var0]:-1;
   }

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

   static {
      int var0;
      for(var0 = 0; var0 < 26; ++var0) {
         aCharArray5917[var0] = (char)(65 + var0);
      }

      for(var0 = 26; var0 < 52; ++var0) {
         aCharArray5917[var0] = (char)(97 + var0 - 26);
      }

      for(var0 = 52; var0 < 62; ++var0) {
         aCharArray5917[var0] = (char)(var0 + 48 - 52);
      }

      aCharArray5917[62] = 43;
      aCharArray5917[63] = 47;
      aCharArray5916 = new char[64];

      for(var0 = 0; var0 < 26; ++var0) {
         aCharArray5916[var0] = (char)(var0 + 65);
      }

      for(var0 = 26; var0 < 52; ++var0) {
         aCharArray5916[var0] = (char)(97 + var0 - 26);
      }

      for(var0 = 52; var0 < 62; ++var0) {
         aCharArray5916[var0] = (char)(48 + var0 - 52);
      }

      aCharArray5916[62] = 42;
      aCharArray5916[63] = 45;
      anIntArray5915 = new int[128];

      for(var0 = 0; var0 < anIntArray5915.length; ++var0) {
         anIntArray5915[var0] = -1;
      }

      for(var0 = 65; var0 <= 90; ++var0) {
         anIntArray5915[var0] = var0 - 65;
      }

      for(var0 = 97; var0 <= 122; ++var0) {
         anIntArray5915[var0] = 26 + (var0 - 97);
      }

      for(var0 = 48; var0 <= 57; ++var0) {
         anIntArray5915[var0] = var0 - 48 + 52;
      }

      int[] var2 = anIntArray5915;
      anIntArray5915[43] = 62;
      var2[42] = 62;
      int[] var1 = anIntArray5915;
      anIntArray5915[47] = 63;
      var1[45] = 63;
   }

   static int method8291(String var0, byte[] var1, int var2) {
      int var3 = var2;
      int var4 = var0.length();

      for(int var5 = 0; var5 < var4; var5 += 4) {
         int var6 = Class474.method7940(var0.charAt(var5), 803984978);
         int var7 = var5 + 1 < var4?Class474.method7940(var0.charAt(1 + var5), 803984978):-1;
         int var8 = 2 + var5 < var4?Class474.method7940(var0.charAt(var5 + 2), 803984978):-1;
         int var9 = var5 + 3 < var4?Class474.method7940(var0.charAt(var5 + 3), 803984978):-1;
         var1[var2++] = (byte)(var6 << 2 | var7 >>> 4);
         if(-1 == var8) {
            break;
         }

         var1[var2++] = (byte)((var7 & 15) << 4 | var8 >>> 2);
         if(-1 == var9) {
            break;
         }

         var1[var2++] = (byte)((var8 & 3) << 6 | var9);
      }

      return var2 - var3;
   }

   static int method8292(String var0, byte[] var1, int var2) {
      int var3 = var2;
      int var4 = var0.length();

      for(int var5 = 0; var5 < var4; var5 += 4) {
         int var6 = Class474.method7940(var0.charAt(var5), 803984978);
         int var7 = var5 + 1 < var4?Class474.method7940(var0.charAt(1 + var5), 803984978):-1;
         int var8 = 2 + var5 < var4?Class474.method7940(var0.charAt(var5 + 2), 803984978):-1;
         int var9 = var5 + 3 < var4?Class474.method7940(var0.charAt(var5 + 3), 803984978):-1;
         var1[var2++] = (byte)(var6 << 2 | var7 >>> 4);
         if(-1 == var8) {
            break;
         }

         var1[var2++] = (byte)((var7 & 15) << 4 | var8 >>> 2);
         if(-1 == var9) {
            break;
         }

         var1[var2++] = (byte)((var8 & 3) << 6 | var9);
      }

      return var2 - var3;
   }

   static int method8293(char var0) {
      return var0 >= 0 && var0 < anIntArray5915.length?anIntArray5915[var0]:-1;
   }

   public static byte[] method8294(String var0) {
      int var1 = var0.length();
      if(0 == var1) {
         return new byte[0];
      } else {
         int var2 = var1 + 3 & -4;
         int var3 = var2 / 4 * 3;
         if(var2 - 2 < var1 && Class474.method7940(var0.charAt(var2 - 2), 803984978) != -1) {
            if(var2 - 1 >= var1 || Class474.method7940(var0.charAt(var2 - 1), 803984978) == -1) {
               --var3;
            }
         } else {
            var3 -= 2;
         }

         byte[] var4 = new byte[var3];
         Class251_Sub1.method14262(var0, var4, 0, (byte)113);
         return var4;
      }
   }

   public static byte[] method8295(String var0) {
      int var1 = var0.length();
      if(0 == var1) {
         return new byte[0];
      } else {
         int var2 = var1 + 3 & -4;
         int var3 = var2 / 4 * 3;
         if(var2 - 2 < var1 && Class474.method7940(var0.charAt(var2 - 2), 803984978) != -1) {
            if(var2 - 1 >= var1 || Class474.method7940(var0.charAt(var2 - 1), 803984978) == -1) {
               --var3;
            }
         } else {
            var3 -= 2;
         }

         byte[] var4 = new byte[var3];
         Class251_Sub1.method14262(var0, var4, 0, (byte)22);
         return var4;
      }
   }

   static final void method8296(Class508 var0, int var1) {
      Class499.method8352(true, (byte)80);
   }

   static Class454[] method8297(byte var0) {
      return new Class454[]{Class454.aClass454_5680, Class454.aClass454_5683, Class454.aClass454_5678, Class454.aClass454_5682, Class454.aClass454_5679};
   }

   static void method8298(long[] var0, Object[] var1, int var2, int var3, byte var4) {
      if(var2 < var3) {
         int var5 = (var3 + var2) / 2;
         int var6 = var2;
         long var7 = var0[var5];
         var0[var5] = var0[var3];
         var0[var3] = var7;
         Object var9 = var1[var5];
         var1[var5] = var1[var3];
         var1[var3] = var9;
         int var10 = Long.MAX_VALUE == var7?0:1;

         for(int var11 = var2; var11 < var3; ++var11) {
            if(var0[var11] < var7 + (long)(var11 & var10)) {
               long var12 = var0[var11];
               var0[var11] = var0[var6];
               var0[var6] = var12;
               Object var14 = var1[var11];
               var1[var11] = var1[var6];
               var1[var6++] = var14;
            }
         }

         var0[var3] = var0[var6];
         var0[var6] = var7;
         var1[var3] = var1[var6];
         var1[var6] = var9;
         method8298(var0, var1, var2, var6 - 1, (byte)0);
         method8298(var0, var1, 1 + var6, var3, (byte)0);
      }

   }

   static final void method8299(Class508 var0, int var1) {
      var0.anObjectArray6004[(var0.anInt6005 += -46848683) * 639741949 - 1] = Class225_Sub14_Sub16.method16323(Class133.method2501(var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807], -2051330899), Class498.aClass470_5944.method89((byte)0), (byte)-20);
   }
}
