import java.util.HashSet;
import java.util.Set;

public class Class487 implements Interface50 {

   int anInt5893;
   public static Class487 aClass487_5894 = new Class487("", 3, new Class471[]{Class471.aClass471_5788});
   public static Class487 aClass487_5895 = new Class487("", 5, new Class471[]{Class471.aClass471_5788, Class471.aClass471_5787});
   static Class487 aClass487_5896 = new Class487("", 8, new Class471[]{Class471.aClass471_5788, Class471.aClass471_5787});
   public static Class487 aClass487_5897 = new Class487("", 2, new Class471[]{Class471.aClass471_5788, Class471.aClass471_5789});
   static Class487 aClass487_5898 = new Class487("", 9, new Class471[]{Class471.aClass471_5788, Class471.aClass471_5789});
   public static Class487 aClass487_5899 = new Class487("", 1, new Class471[]{Class471.aClass471_5788, Class471.aClass471_5787});
   static Class487 aClass487_5900 = new Class487("", 6, new Class471[]{Class471.aClass471_5787});
   Set aSet5901 = new HashSet();
   public static Class487 aClass487_5902 = new Class487("", 4);
   public static Class487 aClass487_5903 = new Class487("", 0, new Class471[]{Class471.aClass471_5787});


   static {
      method8165((byte)126);
   }

   Class487(String var1, int var2) {
      this.anInt5893 = var2 * -1718267381;
   }

   public boolean method8163(Class471 var1) {
      return this.aSet5901.contains(var1);
   }

   public int method89(byte var1) {
      return this.anInt5893 * 1912285603;
   }

   public boolean method8164(Class471 var1, int var2) {
      return this.aSet5901.contains(var1);
   }

   public int method269() {
      return this.anInt5893 * 1912285603;
   }

   Class487(String var1, int var2, Class471[] var3) {
      this.anInt5893 = var2 * -1718267381;
      Class471[] var4 = var3;

      for(int var5 = 0; var5 < var4.length; ++var5) {
         Class471 var6 = var4[var5];
         this.aSet5901.add(var6);
      }

   }

   public static Class487[] method8165(byte var0) {
      return new Class487[]{aClass487_5902, aClass487_5894, aClass487_5898, aClass487_5895, aClass487_5900, aClass487_5903, aClass487_5899, aClass487_5897, aClass487_5896};
   }

   public boolean method8166(Class471 var1) {
      return this.aSet5901.contains(var1);
   }

   static final void method8167(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = client.aClass9Array7935[var2].aBool143?1:0;
   }

   static final void method8168(Class508 var0, int var1) {
      Class505 var2 = var0.aBool6014?var0.aClass505_6011:var0.aClass505_6010;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class119.method2326(var3, var4, true, 2, var0, (byte)12);
   }

   static void method8169(Class508 var0, int var1) {
      var0.anIntArray6027[-937710807 * var0.anInt6003 - 1] = Class453.aClass511_5677.method10849(var0.anIntArray6027[-937710807 * var0.anInt6003 - 1], -60988273).method10858(Class118_Sub1.aClass175_8204, (byte)16)?1:0;
   }

   public static int method8170(int var0) {
      return 3.0D == (double)Class215_Sub1.aFloat2533?37:((double)Class215_Sub1.aFloat2533 == 4.0D?50:((double)Class215_Sub1.aFloat2533 == 6.0D?75:((double)Class215_Sub1.aFloat2533 == 8.0D?100:200)));
   }

   public static void method8171(Class515_Sub1_Sub4_Sub4 var0, int[] var1, int[] var2, int[] var3, byte var4) {
      for(int var5 = 0; var5 < var1.length; ++var5) {
         int var6 = var1[var5];
         int var7 = var3[var5];
         int var8 = var2[var5];

         for(int var9 = 0; var7 != 0 && var9 < var0.aClass477_Sub2_Sub1Array10769.length; var7 >>>= 1) {
            if(0 != (var7 & 1)) {
               if(var6 == -1) {
                  var0.aClass477_Sub2_Sub1Array10769[var9] = null;
               } else {
                  Class485 var10 = Class435.aClass473_5434.method7918(var6, 370620258);
                  int var11 = var10.anInt5879 * -2019599237;
                  Class477_Sub2_Sub1 var12 = var0.aClass477_Sub2_Sub1Array10769[var9];
                  if(null != var12 && var12.method8011(-801526682)) {
                     if(var6 == var12.method7973(472164190)) {
                        if(0 == var11) {
                           var0.aClass477_Sub2_Sub1Array10769[var9] = null;
                           var12 = null;
                        } else if(1 == var11) {
                           var12.method7989((byte)31);
                           var12.anInt10379 = 1376186217 * var8;
                        } else if(2 == var11) {
                           var12.method7988(-399365585);
                        }
                     } else if(-734324273 * var10.anInt5875 >= var12.method7972((byte)41).anInt5875 * -734324273) {
                        var0.aClass477_Sub2_Sub1Array10769[var9] = null;
                        var12 = null;
                     }
                  }

                  if(null == var12 || !var12.method8011(-2027793171)) {
                     var12 = var0.aClass477_Sub2_Sub1Array10769[var9] = new Class477_Sub2_Sub1(var0);
                     var12.method7974(var6, 940163492);
                     var12.anInt10379 = var8 * 1376186217;
                  }
               }
            }

            ++var9;
         }
      }

   }
}
