
public final class Class493 {

   public static int method8238(CharSequence var0) {
      int var1 = var0.length();
      int var2 = 0;

      for(int var3 = 0; var3 < var1; ++var3) {
         var2 = (var2 << 5) - var2 + Class313.method5585(var0.charAt(var3), (short)176);
      }

      return var2;
   }

   static boolean method8239(CharSequence var0, int var1, boolean var2) {
      if(var1 >= 2 && var1 <= 36) {
         boolean var3 = false;
         boolean var4 = false;
         int var5 = 0;
         int var6 = var0.length();

         for(int var7 = 0; var7 < var6; ++var7) {
            char var8 = var0.charAt(var7);
            if(var7 == 0) {
               if(var8 == 45) {
                  var3 = true;
                  continue;
               }

               if(var8 == 43 && var2) {
                  continue;
               }
            }

            int var10;
            if(var8 >= 48 && var8 <= 57) {
               var10 = var8 - 48;
            } else if(var8 >= 65 && var8 <= 90) {
               var10 = var8 - 55;
            } else {
               if(var8 < 97 || var8 > 122) {
                  return false;
               }

               var10 = var8 - 87;
            }

            if(var10 >= var1) {
               return false;
            }

            if(var3) {
               var10 = -var10;
            }

            int var9 = var10 + var1 * var5;
            if(var5 != var9 / var1) {
               return false;
            }

            var5 = var9;
            var4 = true;
         }

         return var4;
      } else {
         throw new IllegalArgumentException("" + var1);
      }
   }

   public static int method8240(CharSequence var0) {
      int var1 = var0.length();
      int var2 = 0;

      for(int var3 = 0; var3 < var1; ++var3) {
         var2 = (var2 << 5) - var2 + var0.charAt(var3);
      }

      return var2;
   }

   static int method8241(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   static int method8242(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   public static boolean method8243(char var0) {
      return var0 >= 48 && var0 <= 57;
   }

   static int method8244(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   public static String method8245(String var0, char var1, String var2) {
      int var3 = var0.length();
      int var4 = var2.length();
      int var5 = var3;
      int var6 = var4 - 1;
      if(var6 != 0) {
         int var7 = 0;

         while(true) {
            var7 = var0.indexOf(var1, var7);
            if(var7 < 0) {
               break;
            }

            ++var7;
            var5 += var6;
         }
      }

      StringBuilder var10 = new StringBuilder(var5);
      int var8 = 0;

      while(true) {
         int var9 = var0.indexOf(var1, var8);
         if(var9 < 0) {
            var10.append(var0.substring(var8));
            return var10.toString();
         }

         var10.append(var0.substring(var8, var9));
         var10.append(var2);
         var8 = 1 + var9;
      }
   }

   public static String method8246(Object[] var0, int var1, int var2) {
      if(0 == var2) {
         return "";
      } else if(var2 == 1) {
         CharSequence var8 = (CharSequence)var0[var1];
         return null == var8?"null":var8.toString();
      } else {
         int var3 = var1 + var2;
         int var4 = 0;

         for(int var5 = var1; var5 < var3; ++var5) {
            CharSequence var6 = (CharSequence)var0[var5];
            if(var6 == null) {
               var4 += 4;
            } else {
               var4 += var6.length();
            }
         }

         StringBuilder var9 = new StringBuilder(var4);

         for(int var10 = var1; var10 < var3; ++var10) {
            CharSequence var7 = (CharSequence)var0[var10];
            if(null == var7) {
               var9.append("null");
            } else {
               var9.append(var7);
            }
         }

         return var9.toString();
      }
   }

   public static String method8247(Object[] var0, int var1, int var2) {
      if(0 == var2) {
         return "";
      } else if(var2 == 1) {
         CharSequence var8 = (CharSequence)var0[var1];
         return null == var8?"null":var8.toString();
      } else {
         int var3 = var1 + var2;
         int var4 = 0;

         for(int var5 = var1; var5 < var3; ++var5) {
            CharSequence var6 = (CharSequence)var0[var5];
            if(var6 == null) {
               var4 += 4;
            } else {
               var4 += var6.length();
            }
         }

         StringBuilder var9 = new StringBuilder(var4);

         for(int var10 = var1; var10 < var3; ++var10) {
            CharSequence var7 = (CharSequence)var0[var10];
            if(null == var7) {
               var9.append("null");
            } else {
               var9.append(var7);
            }
         }

         return var9.toString();
      }
   }

   public static String method8248(Object[] var0, int var1, int var2) {
      if(0 == var2) {
         return "";
      } else if(var2 == 1) {
         CharSequence var8 = (CharSequence)var0[var1];
         return null == var8?"null":var8.toString();
      } else {
         int var3 = var1 + var2;
         int var4 = 0;

         for(int var5 = var1; var5 < var3; ++var5) {
            CharSequence var6 = (CharSequence)var0[var5];
            if(var6 == null) {
               var4 += 4;
            } else {
               var4 += var6.length();
            }
         }

         StringBuilder var9 = new StringBuilder(var4);

         for(int var10 = var1; var10 < var3; ++var10) {
            CharSequence var7 = (CharSequence)var0[var10];
            if(null == var7) {
               var9.append("null");
            } else {
               var9.append(var7);
            }
         }

         return var9.toString();
      }
   }

   public static boolean method8249(CharSequence var0) {
      return client.method12750(var0, 10, true, (byte)48);
   }

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

   static boolean method8250(CharSequence var0, int var1, boolean var2) {
      if(var1 >= 2 && var1 <= 36) {
         boolean var3 = false;
         boolean var4 = false;
         int var5 = 0;
         int var6 = var0.length();

         for(int var7 = 0; var7 < var6; ++var7) {
            char var8 = var0.charAt(var7);
            if(var7 == 0) {
               if(var8 == 45) {
                  var3 = true;
                  continue;
               }

               if(var8 == 43 && var2) {
                  continue;
               }
            }

            int var10;
            if(var8 >= 48 && var8 <= 57) {
               var10 = var8 - 48;
            } else if(var8 >= 65 && var8 <= 90) {
               var10 = var8 - 55;
            } else {
               if(var8 < 97 || var8 > 122) {
                  return false;
               }

               var10 = var8 - 87;
            }

            if(var10 >= var1) {
               return false;
            }

            if(var3) {
               var10 = -var10;
            }

            int var9 = var10 + var1 * var5;
            if(var5 != var9 / var1) {
               return false;
            }

            var5 = var9;
            var4 = true;
         }

         return var4;
      } else {
         throw new IllegalArgumentException("" + var1);
      }
   }

   public static int method8251(CharSequence var0, int var1) {
      return Class2.method462(var0, var1, true, (byte)-39);
   }

   public static int method8252(CharSequence var0, int var1) {
      return Class2.method462(var0, var1, true, (byte)30);
   }

   static int method8253(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   public static String method8254(int var0, boolean var1) {
      return var1 && var0 >= 0?Class225_Sub12_Sub4.method16260(var0, 10, var1, 1139378474):Integer.toString(var0);
   }

   public static String method8255(int var0, boolean var1) {
      return var1 && var0 >= 0?Class225_Sub12_Sub4.method16260(var0, 10, var1, 1139378474):Integer.toString(var0);
   }

   static String method8256(int var0, int var1, boolean var2) {
      if(var1 >= 2 && var1 <= 36) {
         if(var2 && var0 >= 0) {
            int var3 = 2;

            for(int var4 = var0 / var1; var4 != 0; ++var3) {
               var4 /= var1;
            }

            char[] var5 = new char[var3];
            var5[0] = 43;

            for(int var6 = var3 - 1; var6 > 0; --var6) {
               int var7 = var0;
               var0 /= var1;
               int var8 = var7 - var0 * var1;
               if(var8 >= 10) {
                  var5[var6] = (char)(87 + var8);
               } else {
                  var5[var6] = (char)(48 + var8);
               }
            }

            return new String(var5);
         } else {
            return Integer.toString(var0, var1);
         }
      } else {
         throw new IllegalArgumentException("" + var1);
      }
   }

   static String method8257(int var0, int var1, boolean var2) {
      if(var1 >= 2 && var1 <= 36) {
         if(var2 && var0 >= 0) {
            int var3 = 2;

            for(int var4 = var0 / var1; var4 != 0; ++var3) {
               var4 /= var1;
            }

            char[] var5 = new char[var3];
            var5[0] = 43;

            for(int var6 = var3 - 1; var6 > 0; --var6) {
               int var7 = var0;
               var0 /= var1;
               int var8 = var7 - var0 * var1;
               if(var8 >= 10) {
                  var5[var6] = (char)(87 + var8);
               } else {
                  var5[var6] = (char)(48 + var8);
               }
            }

            return new String(var5);
         } else {
            return Integer.toString(var0, var1);
         }
      } else {
         throw new IllegalArgumentException("" + var1);
      }
   }

   public static int method8258(CharSequence var0) {
      int var1 = var0.length();
      int var2 = 0;

      for(int var3 = 0; var3 < var1; ++var3) {
         var2 = (var2 << 5) - var2 + Class313.method5585(var0.charAt(var3), (short)176);
      }

      return var2;
   }

   public static long method8259(CharSequence var0) {
      int var1 = var0.length();
      long var2 = 0L;

      for(int var4 = 0; var4 < var1; ++var4) {
         var2 = (var2 << 5) - var2 + (long)var0.charAt(var4);
      }

      return var2;
   }

   static int method8260(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   public static int method8261(CharSequence var0) {
      int var1 = var0.length();
      int var2 = 0;

      for(int var3 = 0; var3 < var1; ++var3) {
         var2 = (var2 << 5) - var2 + var0.charAt(var3);
      }

      return var2;
   }

   static int method8262(CharSequence var0, int var1, boolean var2) {
      if(var1 >= 2 && var1 <= 36) {
         boolean var3 = false;
         boolean var4 = false;
         int var5 = 0;
         int var6 = var0.length();

         for(int var7 = 0; var7 < var6; ++var7) {
            char var8 = var0.charAt(var7);
            if(0 == var7) {
               if(var8 == 45) {
                  var3 = true;
                  continue;
               }

               if(var8 == 43 && var2) {
                  continue;
               }
            }

            int var10;
            if(var8 >= 48 && var8 <= 57) {
               var10 = var8 - 48;
            } else if(var8 >= 65 && var8 <= 90) {
               var10 = var8 - 55;
            } else {
               if(var8 < 97 || var8 > 122) {
                  throw new NumberFormatException();
               }

               var10 = var8 - 87;
            }

            if(var10 >= var1) {
               throw new NumberFormatException();
            }

            if(var3) {
               var10 = -var10;
            }

            int var9 = var5 * var1 + var10;
            if(var9 / var1 != var5) {
               throw new NumberFormatException();
            }

            var5 = var9;
            var4 = true;
         }

         if(!var4) {
            throw new NumberFormatException();
         } else {
            return var5;
         }
      } else {
         throw new IllegalArgumentException("" + var1);
      }
   }

   public static long method8263(CharSequence var0) {
      int var1 = var0.length();
      long var2 = 0L;

      for(int var4 = 0; var4 < var1; ++var4) {
         var2 = (var2 << 5) - var2 + (long)var0.charAt(var4);
      }

      return var2;
   }

   public static long method8264(CharSequence var0) {
      int var1 = var0.length();
      long var2 = 0L;

      for(int var4 = 0; var4 < var1; ++var4) {
         var2 = (var2 << 5) - var2 + (long)var0.charAt(var4);
      }

      return var2;
   }

   public static long method8265(CharSequence var0) {
      int var1 = var0.length();
      long var2 = 0L;

      for(int var4 = 0; var4 < var1; ++var4) {
         var2 = (var2 << 5) - var2 + (long)var0.charAt(var4);
      }

      return var2;
   }

   public static boolean method8266(char var0) {
      return var0 >= 65 && var0 <= 90 || var0 >= 97 && var0 <= 122;
   }

   public static boolean method8267(char var0) {
      return var0 >= 48 && var0 <= 57;
   }

   public static String[] method8268(String var0, char var1) {
      int var2 = Class382.method6604(var0, var1, -1147716815);
      String[] var3 = new String[1 + var2];
      int var4 = 0;
      int var5 = 0;

      for(int var6 = 0; var6 < var2; ++var6) {
         int var7;
         for(var7 = var5; var0.charAt(var7) != var1; ++var7) {
            ;
         }

         var3[var4++] = var0.substring(var5, var7);
         var5 = 1 + var7;
      }

      var3[var2] = var0.substring(var5);
      return var3;
   }

   public static boolean method8269(char var0) {
      return var0 >= 48 && var0 <= 57 || var0 >= 65 && var0 <= 90 || var0 >= 97 && var0 <= 122;
   }

   static int method8270(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   public static String method8271(String var0, char var1, String var2) {
      int var3 = var0.length();
      int var4 = var2.length();
      int var5 = var3;
      int var6 = var4 - 1;
      if(var6 != 0) {
         int var7 = 0;

         while(true) {
            var7 = var0.indexOf(var1, var7);
            if(var7 < 0) {
               break;
            }

            ++var7;
            var5 += var6;
         }
      }

      StringBuilder var10 = new StringBuilder(var5);
      int var8 = 0;

      while(true) {
         int var9 = var0.indexOf(var1, var8);
         if(var9 < 0) {
            var10.append(var0.substring(var8));
            return var10.toString();
         }

         var10.append(var0.substring(var8, var9));
         var10.append(var2);
         var8 = 1 + var9;
      }
   }

   public static String[] method8272(String var0, char var1) {
      int var2 = Class382.method6604(var0, var1, -1147716815);
      String[] var3 = new String[1 + var2];
      int var4 = 0;
      int var5 = 0;

      for(int var6 = 0; var6 < var2; ++var6) {
         int var7;
         for(var7 = var5; var0.charAt(var7) != var1; ++var7) {
            ;
         }

         var3[var4++] = var0.substring(var5, var7);
         var5 = 1 + var7;
      }

      var3[var2] = var0.substring(var5);
      return var3;
   }

   public static String[] method8273(String var0, char var1) {
      int var2 = Class382.method6604(var0, var1, -1147716815);
      String[] var3 = new String[1 + var2];
      int var4 = 0;
      int var5 = 0;

      for(int var6 = 0; var6 < var2; ++var6) {
         int var7;
         for(var7 = var5; var0.charAt(var7) != var1; ++var7) {
            ;
         }

         var3[var4++] = var0.substring(var5, var7);
         var5 = 1 + var7;
      }

      var3[var2] = var0.substring(var5);
      return var3;
   }

   static int method8274(CharSequence var0, char var1) {
      int var2 = 0;
      int var3 = var0.length();

      for(int var4 = 0; var4 < var3; ++var4) {
         if(var0.charAt(var4) == var1) {
            ++var2;
         }
      }

      return var2;
   }

   static final void method8275(Class508 var0, int var1) {
      Class505 var2 = var0.aBool6014?var0.aClass505_6011:var0.aClass505_6010;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class105.method2157(var3, var4, var0, (byte)1);
   }

   static final void method8276(Class508 var0, byte var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      ItemDefinition var3 = Class277.aClass410_3220.method7007(var2, -1957162130);
      if(-1823943423 * var3.anInt4982 >= 0 && var3.anInt4981 * -116094915 >= 0) {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var3.anInt4981 * -116094915;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var2;
      }

   }

   static final void method8277(Class124 var0, Class121 var1, Class508 var2, int var3) {
      String var4 = (String)var2.anObjectArray6004[(var2.anInt6005 -= -46848683) * 639741949];
      if(Class245.method4382(var4, var2, (byte)101) != null) {
         if(var3 >= 125907294) {
            ;
         }

         var4 = var4.substring(0, var4.length() - 1);
      }

      var0.anObjectArray1454 = Class193.method3350(var4, var2, 1525660554);
      var0.aBool1520 = true;
   }

   static final void method8278(Class508 var0, int var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class249.method4462(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-10), 200, -1012479573);
   }

   static final void method8279(Class508 var0, Class515_Sub1_Sub4_Sub4 var1, int var2) {
      var0.anInt6003 -= 393249892;
      int var3 = var0.anIntArray6027[-937710807 * var0.anInt6003];
      int var4 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 1];
      int var5 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 2];
      boolean var6 = var0.anIntArray6027[3 + var0.anInt6003 * -937710807] == 1;
      if(Class336.aClass35_Sub1_4206.method913(1017208849) != Class32.aClass32_375) {
         throw new RuntimeException();
      } else {
         Class461_Sub3 var7 = (Class461_Sub3)Class336.aClass35_Sub1_4206.method952(-1901997084);
         if(null != var1) {
            var7.method12800(var1, new Class326((float)var3, (float)var4, (float)var5), var6, -1167899377);
         }

      }
   }

   static float method8280(float var0, float var1, float var2, float var3, float var4, float var5, int var6, byte var7) {
      float var8 = 0.0F;
      float var9 = var3 - var0;
      float var10 = var4 - var1;
      float var11 = var5 - var2;
      float var12 = 0.0F;
      float var13 = 0.0F;
      float var14 = 0.0F;

      for(Class241 var15 = client.aClass279_7807.method4917(-2045526760); var8 < 1.1F; var8 += 0.1F) {
         float var16 = var0 + var9 * var8;
         float var17 = var10 * var8 + var1;
         float var18 = var8 * var11 + var2;
         int var19 = (int)var16 >> 9;
         int var20 = (int)var18 >> 9;
         if(var19 > 0 && var20 > 0 && var19 < client.aClass279_7807.method4910(2069070842) && var20 < client.aClass279_7807.method4911((byte)-79)) {
            int var21 = Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113.aByte8443;
            if(var21 < 3 && (client.aClass279_7807.method5026(349743094).aByteArrayArrayArray3028[1][var19][var20] & 2) != 0) {
               ++var21;
            }

            int var22 = var15.aClass400Array2867[var21].method6791((int)var16, (int)var18, 701663251);
            if((float)var22 < var17) {
               if(var6 >= 2) {
                  return var8 - 0.1F + method8280(var12, var13, var14, var16, var17, var18, var6 - 1, (byte)-11) * 0.1F;
               }

               return var8;
            }
         }

         var12 = var16;
         var13 = var17;
         var14 = var18;
      }

      return -1.0F;
   }
}
