import java.io.IOException;

public class Class530 {

   static final int anInt7209 = 2;
   static final int anInt7210 = 1;
   public static int anInt7211;
   static boolean aBool7212 = false;
   static Class536_Sub1[] aClass536_Sub1Array7213;
   static Class539[] aClass539Array7214;
   static final int anInt7215 = -1;


   static void method11173(RS2Buffer var0) {
      int var1 = var0.readSmart(198575349);
      aClass539Array7214 = new Class539[var1];

      int var2;
      for(var2 = 0; var2 < var1; ++var2) {
         aClass539Array7214[var2] = new Class539();
         aClass539Array7214[var2].anInt7304 = var0.readSmart(922699576) * -1323989431;
         aClass539Array7214[var2].aString7305 = var0.method13927((short)-4722);
      }

      Class396.anInt4884 = var0.readSmart(1971344933) * -2010312443;
      anInt7211 = var0.readSmart(645653538) * -542247811;
      Class462.anInt5734 = var0.readSmart(1341015525) * 976546705;
      aClass536_Sub1Array7213 = new Class536_Sub1[anInt7211 * 889857237 - Class396.anInt4884 * -168946739 + 1];

      for(var2 = 0; var2 < Class462.anInt5734 * -697354895; ++var2) {
         int var3 = var0.readSmart(1152243338);
         Class536_Sub1 var4 = aClass536_Sub1Array7213[var3] = new Class536_Sub1();
         var4.anInt7288 = var0.readUnsignedByte(-700559597) * 244313011;
         var4.anInt7284 = var0.readInt_(473731968) * 476020277;
         var4.anInt8623 = (-168946739 * Class396.anInt4884 + var3) * -600786035;
         var4.aString8624 = var0.method13927((short)-1053);
         var4.aString8626 = var0.method13927((short)-14199);
      }

      Class204.anInt2416 = var0.readInt_(-84337731) * 1967922739;
      aBool7212 = true;
   }

   public static boolean method11174(byte[] var0) {
      RS2Buffer var1 = new RS2Buffer(var0);
      int var2 = var1.readUnsignedByte(-700559597);
      if(2 != var2) {
         return false;
      } else {
         boolean var3 = var1.readUnsignedByte(-700559597) == 1;
         if(var3) {
            Class373.method6543(var1, -1849369830);
         }

         Class394.method6746(var1, (byte)62);
         return true;
      }
   }

   public static Class536_Sub1 method11175(int var0) {
      return aBool7212 && var0 >= Class396.anInt4884 * -168946739 && var0 <= anInt7211 * 889857237?aClass536_Sub1Array7213[var0 - Class396.anInt4884 * -168946739]:null;
   }

   public static boolean method11176(byte[] var0) {
      RS2Buffer var1 = new RS2Buffer(var0);
      int var2 = var1.readUnsignedByte(-700559597);
      if(2 != var2) {
         return false;
      } else {
         boolean var3 = var1.readUnsignedByte(-700559597) == 1;
         if(var3) {
            Class373.method6543(var1, -1816810492);
         }

         Class394.method6746(var1, (byte)-76);
         return true;
      }
   }

   static void method11177(RS2Buffer var0) {
      int var1 = var0.readSmart(1094510766);
      aClass539Array7214 = new Class539[var1];

      int var2;
      for(var2 = 0; var2 < var1; ++var2) {
         aClass539Array7214[var2] = new Class539();
         aClass539Array7214[var2].anInt7304 = var0.readSmart(937862319) * -1323989431;
         aClass539Array7214[var2].aString7305 = var0.method13927((short)-4441);
      }

      Class396.anInt4884 = var0.readSmart(468862344) * -2010312443;
      anInt7211 = var0.readSmart(1661179284) * -542247811;
      Class462.anInt5734 = var0.readSmart(20869917) * 976546705;
      aClass536_Sub1Array7213 = new Class536_Sub1[anInt7211 * 889857237 - Class396.anInt4884 * -168946739 + 1];

      for(var2 = 0; var2 < Class462.anInt5734 * -697354895; ++var2) {
         int var3 = var0.readSmart(497944208);
         Class536_Sub1 var4 = aClass536_Sub1Array7213[var3] = new Class536_Sub1();
         var4.anInt7288 = var0.readUnsignedByte(-700559597) * 244313011;
         var4.anInt7284 = var0.readInt_(984089756) * 476020277;
         var4.anInt8623 = (-168946739 * Class396.anInt4884 + var3) * -600786035;
         var4.aString8624 = var0.method13927((short)-19778);
         var4.aString8626 = var0.method13927((short)-16311);
      }

      Class204.anInt2416 = var0.readInt_(609367454) * 1967922739;
      aBool7212 = true;
   }

   public static boolean method11178(byte[] var0) {
      RS2Buffer var1 = new RS2Buffer(var0);
      int var2 = var1.readUnsignedByte(-700559597);
      if(2 != var2) {
         return false;
      } else {
         boolean var3 = var1.readUnsignedByte(-700559597) == 1;
         if(var3) {
            Class373.method6543(var1, -2058162800);
         }

         Class394.method6746(var1, (byte)-48);
         return true;
      }
   }

   public static Class536_Sub1 method11179(int var0) {
      return aBool7212 && var0 >= Class396.anInt4884 * -168946739 && var0 <= anInt7211 * 889857237?aClass536_Sub1Array7213[var0 - Class396.anInt4884 * -168946739]:null;
   }

   public static boolean method11180(byte[] var0) {
      RS2Buffer var1 = new RS2Buffer(var0);
      int var2 = var1.readUnsignedByte(-700559597);
      if(2 != var2) {
         return false;
      } else {
         boolean var3 = var1.readUnsignedByte(-700559597) == 1;
         if(var3) {
            Class373.method6543(var1, -2017083206);
         }

         Class394.method6746(var1, (byte)-57);
         return true;
      }
   }

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

   static void method11181(Class508 var0, byte var1) {
      int[] var10000 = var0.anIntArray6027;
      int var10001 = -937710807 * var0.anInt6003 - 1;
      byte var10002;
      if(Class453.aClass511_5677.method10849(var0.anIntArray6027[-937710807 * var0.anInt6003 - 1], 1142792613).method10879(Class118_Sub1.aClass175_8204, (byte)-85)) {
         if(var1 >= 119) {
            ;
         }

         var10002 = 1;
      } else {
         var10002 = 0;
      }

      var10000[var10001] = var10002;
   }

   static final void method11182(Class508 var0, byte var1) {
      Class505 var2 = var0.aBool6014?var0.aClass505_6011:var0.aClass505_6010;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class41.method1116(var3, var4, var0, (byte)51);
   }

   static final void method11183(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class225_Sub14_Sub11 var3 = Class215.method3671(var2);
      if(null == var3) {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -1;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var3.anInt10533 * 332839319;
      }

   }

   static final void method11184(Class508 var0, int var1) {
      var0.anInt6003 -= 294937419;
      int var2 = var0.anIntArray6027[-937710807 * var0.anInt6003];
      int var3 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 1];
      int var4 = var0.anIntArray6027[2 + -937710807 * var0.anInt6003];
      Class557.method11890(9, var2 << 16 | var3, var4, "", 506191405);
   }

   static void method11185(int var0) {
      if(Class181.aFileOutputStream2196 != null) {
         try {
            Class181.aFileOutputStream2196.close();
         } catch (IOException var2) {
            ;
         }
      }

      Class181.aFileOutputStream2196 = null;
   }

   static void method11186(int var0, int var1) {
      Class225_Sub38.anInt8714 = var0 * 270390591;
      Class225_Sub38.aClass564_8716.method11976((byte)32);
   }

   static void method11187(Class545 var0, int var1, int var2, int var3, int var4, int var5, Class8 var6, Class405 var7, String var8, short var9) {
      int var10 = 255 - Class556.anInt7468 * -424975503 - 2091894179 * Class2.anInt57;
      if(var10 < 0) {
         var10 = 0;
      }

      if(null == Class90.aClass171_894 || Class399.aClass171_4907 == null) {
         if(Class485.aClass253_5890.method4507(Class541.anInt7322 * -585573199, -535885800) && Class485.aClass253_5890.method4507(2004024729 * Class45.anInt484, 776903845)) {
            Class90.aClass171_894 = var0.method11483(Class152.method2765(Class485.aClass253_5890, Class541.anInt7322 * -585573199, 0), true);
            Class86 var11 = Class152.method2765(Class485.aClass253_5890, Class45.anInt484 * 2004024729, 0);
            Class399.aClass171_4907 = var0.method11483(var11, true);
            var11.method1703();
            Class118_Sub9.aClass171_8255 = var0.method11483(var11, true);
         } else {
            var0.B(var1, var2, var3, var5, var10 << 24 | 1414993901 * Class501.anInt5954, 1);
         }
      }

      if(Class90.aClass171_894 != null && Class399.aClass171_4907 != null) {
         int var13 = (var3 - Class399.aClass171_4907.method2944() * 2) / Class90.aClass171_894.method2944();

         for(int var12 = 0; var12 < var13; ++var12) {
            Class90.aClass171_894.method2926(var1 + Class399.aClass171_4907.method2944() + var12 * Class90.aClass171_894.method2944(), var2);
         }

         Class399.aClass171_4907.method2926(var1, var2);
         Class118_Sub9.aClass171_8255.method2926(var3 + var1 - Class118_Sub9.aClass171_8255.method2944(), var2);
      }

      var6.method616(var8, var1 + 3, (20 - var7.anInt4922 * 835794751) / 2 + var2 + 835794751 * var7.anInt4922, Class106.anInt1038 * -714333035 | -16777216, -1, (short)-26631);
      var0.B(var1, var5 + var2, var3, var4 - var5, var10 << 24 | 1414993901 * Class501.anInt5954, 1);
   }

   static final void method11188(Class508 var0, int var1) {
      Class505 var2 = var0.aBool6014?var0.aClass505_6011:var0.aClass505_6010;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class16.method757(var3, var4, var0, -2017172902);
   }
}
