import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class Class529 {

   static int anInt7196 = 0;
   static Class86 aClass86_7197;
   static Class528[] aClass528Array7198;
   static int anInt7199 = 0;
   static int anInt7200 = 0;
   static Class222_Sub1_Sub1_Sub1[] aClass222_Sub1_Sub1_Sub1Array7201;
   static List aList7202;
   static int anInt7203 = 0;
   static int anInt7204 = 0;
   static Class423 aClass423_7205 = new Class423(8);
   static int anInt7206 = 0;
   static int anInt7207 = 1680273082;
   static int anInt7208 = 0;


   public static void method11155(Class545 var0, long var1) {
      anInt7204 = 29874237 * anInt7203;
      anInt7203 = 0;
      Class339.method6240(-75660956);
      Iterator var3 = aList7202.iterator();

      while(var3.hasNext()) {
         Class528 var4 = (Class528)var3.next();
         boolean var5 = var4.method11112(var0, var1);
         if(!var5) {
            var3.remove();
            aClass528Array7198[953435103 * anInt7200] = var4;
            anInt7200 = (1 + 953435103 * anInt7200 & Class76.anIntArray701[385979637 * anInt7207]) * 1726822431;
         }
      }

   }

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

   public static void method11156(Class253 var0) {
      anInt7206 = 0;
      anInt7199 = 0;
      aList7202 = new LinkedList();
      aClass222_Sub1_Sub1_Sub1Array7201 = new Class222_Sub1_Sub1_Sub1[1024];
      aClass528Array7198 = new Class528[1 + Class76.anIntArray701[anInt7207 * 385979637]];
      anInt7196 = 0;
      anInt7200 = 0;
      Class181.method3219(var0, 1464291321);
      Class409.method7006(var0, (byte)-4);
   }

   public static void method11157(int var0) {
      if(var0 < 0 || var0 > 2) {
         var0 = 0;
      }

      anInt7207 = 840136541 * var0;
      aClass528Array7198 = new Class528[1 + Class76.anIntArray701[anInt7207 * 385979637]];
      anInt7196 = 0;
      anInt7200 = 0;
   }

   public static void method11158(Class253 var0) {
      anInt7206 = 0;
      anInt7199 = 0;
      aList7202 = new LinkedList();
      aClass222_Sub1_Sub1_Sub1Array7201 = new Class222_Sub1_Sub1_Sub1[1024];
      aClass528Array7198 = new Class528[1 + Class76.anIntArray701[anInt7207 * 385979637]];
      anInt7196 = 0;
      anInt7200 = 0;
      Class181.method3219(var0, 923081712);
      Class409.method7006(var0, (byte)-104);
   }

   public static void method11159(Class545 var0, long var1) {
      anInt7204 = 29874237 * anInt7203;
      anInt7203 = 0;
      Class339.method6240(-1575041059);
      Iterator var3 = aList7202.iterator();

      while(var3.hasNext()) {
         Class528 var4 = (Class528)var3.next();
         boolean var5 = var4.method11112(var0, var1);
         if(!var5) {
            var3.remove();
            aClass528Array7198[953435103 * anInt7200] = var4;
            anInt7200 = (1 + 953435103 * anInt7200 & Class76.anIntArray701[385979637 * anInt7207]) * 1726822431;
         }
      }

   }

   public static void method11160(Class241 var0, Class545 var1) {
      Iterator var2 = aList7202.iterator();

      while(var2.hasNext()) {
         Class528 var3 = (Class528)var2.next();
         if(var3.aBool7180) {
            var3.method11118(var0, var1);
         }
      }

   }

   public static void method11161(Class241 var0, Class545 var1) {
      Iterator var2 = aList7202.iterator();

      while(var2.hasNext()) {
         Class528 var3 = (Class528)var2.next();
         if(var3.aBool7180) {
            var3.method11118(var0, var1);
         }
      }

   }

   public static void method11162() {
      aClass423_7205 = new Class423(8);
      anInt7208 = 0;
      Iterator var0 = aList7202.iterator();

      while(var0.hasNext()) {
         Class528 var1 = (Class528)var0.next();
         var1.method11109();
      }

   }

   public static void method11163(Class253 var0) {
      anInt7206 = 0;
      anInt7199 = 0;
      aList7202 = new LinkedList();
      aClass222_Sub1_Sub1_Sub1Array7201 = new Class222_Sub1_Sub1_Sub1[1024];
      aClass528Array7198 = new Class528[1 + Class76.anIntArray701[anInt7207 * 385979637]];
      anInt7196 = 0;
      anInt7200 = 0;
      Class181.method3219(var0, -1938623549);
      Class409.method7006(var0, (byte)-101);
   }

   public static void method11164(int var0) {
      if(var0 < 0 || var0 > 2) {
         var0 = 0;
      }

      anInt7207 = 840136541 * var0;
      aClass528Array7198 = new Class528[1 + Class76.anIntArray701[anInt7207 * 385979637]];
      anInt7196 = 0;
      anInt7200 = 0;
   }

   static final void method11165(Class124 var0, Class121 var1, Class508 var2, byte var3) {
      int var4 = var2.anIntArray6027[(var2.anInt6003 -= 98312473) * -937710807];
      if(var0.anInt1517 * -510878545 != var4) {
         if(var3 <= 6) {
            return;
         }

         var0.anInt1517 = var4 * -157009329;
         Class460.method7767(var0, 84507418);
      }

      if(-1 == var0.anInt1369 * -875927841) {
         if(var3 <= 6) {
            return;
         }

         if(!var1.aBool1206) {
            if(var3 <= 6) {
               return;
            }

            Class225_Sub32.method14011(34646887 * var0.anInt1406, (byte)-103);
         }
      }

   }

   static final void method11166(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, 0, var0, (byte)20);
   }

   static final void method11167(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class124 var3 = Class97.method1903(var2, 231580431);
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var3.aBool1387?1:0;
   }

   static final void method11168(Class508 var0, byte var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -2021257811 * Class225_Sub27.anInt8633;
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 1081891025 * Class457.anInt5695;
   }

   static final void method11169(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class124 var3 = Class97.method1903(var2, -95166185);
      Class121 var4 = Class18.aClass121Array188[var2 >> 16];
      Class154.method2785(var3, var4, var0, (byte)-32);
   }

   public static Class49 method11170(int var0, int var1) {
      return var0 == 1210090431 * Class49.aClass49_500.anInt503?Class49.aClass49_500:(1210090431 * Class49.aClass49_498.anInt503 == var0?Class49.aClass49_498:(var0 == Class49.aClass49_499.anInt503 * 1210090431?Class49.aClass49_499:(1210090431 * Class49.aClass49_497.anInt503 == var0?Class49.aClass49_497:(1210090431 * Class49.aClass49_501.anInt503 == var0?Class49.aClass49_501:(var0 == 1210090431 * Class49.aClass49_502.anInt503?Class49.aClass49_502:null)))));
   }

   static final void method11171(Class124 var0, Class508 var1, byte var2) {
      int var3 = var1.anIntArray6027[(var1.anInt6003 -= 98312473) * -937710807];
      int var4 = var1.anIntArray6027[(var1.anInt6003 -= 98312473) * -937710807] - 1;
      int var5 = var4;
      if(var0.anInt1410 * -1001045855 != 6 && 2 != var0.anInt1410 * -1001045855) {
         throw new RuntimeException("");
      } else {
         Class411 var6 = Class40.aClass388_439.method6647(-1781327493 * var0.anInt1411, 546617040);
         if(null == var0.aClass396_1535) {
            var0.aClass396_1535 = new Class396(var6, 6 == var0.anInt1410 * -1001045855);
         }

         var0.aClass396_1535.aLong4883 = Class548.method11777(584456697) * 7467713779253192983L;
         if(null != var6.aByteArray5041) {
            if(var4 < 0 || var4 >= var6.aByteArray5041.length) {
               throw new RuntimeException("");
            }

            var5 = var6.aByteArray5041[var4];
         }

         if(null != var6.aShortArray5080 && var5 >= 0 && var5 < var6.aShortArray5080.length) {
            var0.aClass396_1535.aShortArray4880[var5] = (short)var3;
            Class460.method7767(var0, 316632452);
         } else {
            throw new RuntimeException("");
         }
      }
   }

   public static Class225_Sub14_Sub3 method11172(int var0) {
      return Class1.aClass225_Sub14_Sub3_12;
   }
}
