import java.util.Iterator;

public class Class526 implements Iterable {

   static Class86_Sub1[] aClass86_Sub1Array7159;
   Class543[] aClass543Array7160;


   public Iterator method11080() {
      return new Class538(this.aClass543Array7160);
   }

   public Class543 method11081(int var1, byte var2) {
      return this.aClass543Array7160[var1];
   }

   public int method11082(byte var1) {
      return this.aClass543Array7160.length;
   }

   public int method11083() {
      return this.aClass543Array7160.length;
   }

   public Iterator iterator() {
      return new Class538(this.aClass543Array7160);
   }

   public Iterator method11084() {
      return new Class538(this.aClass543Array7160);
   }

   public Iterator method11085() {
      return new Class538(this.aClass543Array7160);
   }

   void method11086(RS2Buffer var1, byte var2) {
      label40:
      while(true) {
         int var3 = var1.readUnsignedByte(-700559597);
         if(var3 != 0) {
            if(1 != var3) {
               continue;
            }

            int var4 = var1.readUnsignedByte(-700559597);
            int var5 = var1.position * -543666943;
            int var6 = 0;

            int var7;
            int var8;
            for(var7 = 0; var7 < var4; ++var7) {
               var8 = var1.readUnsignedByte(-700559597);
               if(var8 > var6) {
                  var6 = var8;
               }

               var1.position += 1245891588;
            }

            var1.position = 1385214721 * var5;
            this.aClass543Array7160 = new Class543[var6 + 1];
            var7 = 0;

            while(true) {
               if(var7 >= var4) {
                  continue label40;
               }

               var8 = var1.readUnsignedByte(-700559597);
               int var9 = var1.readUnsignedShort(-937710807);
               boolean var10 = var1.readUnsignedByte(-700559597) == 1;
               boolean var11 = var1.readUnsignedByte(-700559597) == 1;
               this.aClass543Array7160[var8] = new Class543(var8, var9, var10, var11);
               ++var7;
            }
         }

         return;
      }
   }

   public int method11087() {
      return this.aClass543Array7160.length;
   }

   public Class526(Class253 var1) {
      byte[] var2 = var1.method4512(Class537.aClass537_7299.anInt7300 * -1281620235, 749605384);
      if(null == var2) {
         this.aClass543Array7160 = new Class543[0];
      } else {
         this.method11086(new RS2Buffer(var2), (byte)12);
      }
   }

   public int method11088() {
      return this.aClass543Array7160.length;
   }

   public Class543 method11089(int var1) {
      return this.aClass543Array7160[var1];
   }

   public static int method11090(int var0, byte var1) {
      int var2 = var0 >>> 1;
      var2 |= var2 >>> 1;
      var2 |= var2 >>> 2;
      var2 |= var2 >>> 4;
      var2 |= var2 >>> 8;
      var2 |= var2 >>> 16;
      return var0 & ~var2;
   }

   static final void method11091(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class124 var3 = Class97.method1903(var2, 866860446);
      Class121 var4 = Class18.aClass121Array188[var2 >> 16];
      Class51.method1213(var3, var4, var0, (byte)-48);
   }

   static final void method11092(int var0) {
      for(int var1 = 0; var1 < client.anInt7922 * 1002221073; ++var1) {
         int var2 = client.anIntArray7697[var1];
         ObjectVar var3 = (ObjectVar)client.aClass423_7693.method7211((long)var2);
         if(null != var3) {
            Class515_Sub1_Sub4_Sub4_Sub2 var4 = (Class515_Sub1_Sub4_Sub4_Sub2)var3.object;
            Class362.method6447(var4, false, (byte)9);
         }
      }

   }

   static final void method11093(int var0) {
      PacketBuffer var1 = client.aClass180_7704.aClass225_Sub23_Sub1_2180;

      for(int var2 = 0; var2 < client.anInt7698 * -968236609; ++var2) {
         int var3 = client.anIntArray7699[var2];
         Class515_Sub1_Sub4_Sub4_Sub2 var4 = (Class515_Sub1_Sub4_Sub4_Sub2)((ObjectVar)client.aClass423_7693.method7211((long)var3)).object;
         int var5 = var1.readUnsignedByte(-700559597);
         if(0 != (var5 & 64)) {
            var5 += var1.readUnsignedByte(-700559597) << 8;
         }

         if(0 != (var5 & 1024)) {
            var5 += var1.readUnsignedByte(-700559597) << 16;
         }

         if(0 != (var5 & 4194304)) {
            var5 += var1.readUnsignedByte(-700559597) << 24;
         }

         if(0 != (var5 & 4)) {
            var4.anInt10885 = var1.readUnsignedLEShort(607398852) * 294349519;
            var4.anInt10893 = var1.readUnsignedLEShortA(1471866382) * -1455912927;
         }

         int var7;
         if(0 != (var5 & 16)) {
            int[] var6 = new int[Class118_Sub6.method13179(-1690205937).length];

            for(var7 = 0; var7 < Class118_Sub6.method13179(-894456868).length; ++var7) {
               var6[var7] = var1.readLargeSmart(1848868332);
            }

            var7 = var1.readUnsignedByteS(-2020072509);
            Class477.method8049(var4, var6, var7, true, 1195844893);
         }

         if(0 != (var5 & 1048576)) {
            var4.aString10884 = var1.readString((byte)14);
            if("".equals(var4.aString10884) || var4.aString10884.equals(var4.aClass411_10896.aString5029)) {
               var4.aString10884 = var4.aClass411_10896.aString5029;
            }
         }

         if(0 != (var5 & 4096)) {
            var4.anInt10892 = var1.readUnsignedShort(-937710807) * -797827913;
            if(2145353991 * var4.anInt10892 == '\uffff') {
               var4.anInt10892 = 797827913;
            }
         }

         int var8;
         int var9;
         int var10;
         boolean var11;
         int var16;
         if(0 != (var5 & 256)) {
            var16 = var1.readUnsignedShortA((byte)73);
            var7 = var1.readInt1((byte)27);
            if(var16 == '\uffff') {
               var16 = -1;
            }

            var8 = var1.readUnsignedByteA(501394474);
            var9 = var8 & 7;
            var10 = var8 >> 3 & 15;
            if(15 == var10) {
               var10 = -1;
            }

            var11 = 1 == (var8 >> 7 & 1);
            var4.method16633(var16, var7, var9, var10, var11, 1, -433485490);
         }

         if((var5 & 2) != 0) {
            var16 = var1.readUnsignedLEShortA(1472787880);
            var7 = var1.readInt1((byte)-52);
            if('\uffff' == var16) {
               var16 = -1;
            }

            var8 = var1.readUnsignedByte(-700559597);
            var9 = var8 & 7;
            var10 = var8 >> 3 & 15;
            if(var10 == 15) {
               var10 = -1;
            }

            var11 = (var8 >> 7 & 1) == 1;
            var4.method16633(var16, var7, var9, var10, var11, 0, 1156872931);
         }

         if((var5 & 8192) != 0) {
            var4.anInt10755 = var1.readByteS((byte)5) * 1757055245;
            var4.anInt10757 = var1.readByteS((byte)-8) * -1565247569;
            var4.anInt10756 = var1.readByte(-151160096) * 2009995879;
            var4.anInt10785 = var1.readByteC(-443605808) * -2129122091;
            var4.anInt10759 = (var1.readUnsignedLEShort(607398852) + client.anInt7659 * -1255739433) * -1388508909;
            var4.anInt10760 = (var1.readUnsignedLEShortA(1080355416) + client.anInt7659 * -1255739433) * 1142263927;
            var4.anInt10761 = var1.readUnsignedLEShort(607398852) * 1842438015;
            var4.anInt10755 += var4.anIntArray10770[0] * 1757055245;
            var4.anInt10757 += -1565247569 * var4.anIntArray10779[0];
            var4.anInt10756 += var4.anIntArray10770[0] * 2009995879;
            var4.anInt10785 += -2129122091 * var4.anIntArray10779[0];
            var4.anInt10777 = 1350591833;
            var4.anInt10782 = 0;
         }

         if(0 != (var5 & 131072)) {
            var16 = var1.buffer[(var1.position += 1385214721) * -543666943 - 1] & 255;

            for(var7 = 0; var7 < var16; ++var7) {
               var8 = var1.readUnsignedByteS(-1905536241);
               var9 = var1.readInt_(-425239728);
               var10 = var1.method13769(-1843542642);
               var4.method16820(var8, var9, var10, 1521030754);
            }
         }

         Class263 var19;
         Class316 var21;
         if((var5 & 2097152) != 0) {
            var4.anInterface46_10788.method265(741949254);
            var16 = var1.buffer[(var1.position += 1385214721) * -543666943 - 1] & 255;

            for(var7 = 0; var7 < var16; ++var7) {
               var8 = var1.readUnsignedByte(-700559597);
               var19 = (Class263)Class79.method1636(Class263.method4686((byte)-99), var8, (byte)45);
               var21 = Class225_Sub14_Sub17.aClass182_Sub1_Sub1_10576.method14420(var1, var19, (byte)0);
               var4.anInterface46_10788.method245(var21.anInt3997 * -917776691, var21.anObject3996, (byte)-105);
            }
         }

         int[] var17;
         int[] var18;
         int var23;
         if((var5 & 16384) != 0) {
            var16 = var1.readUnsignedByteA(-594302313);
            var18 = new int[var16];
            var17 = new int[var16];
            int[] var20 = new int[var16];

            for(var10 = 0; var10 < var16; ++var10) {
               var23 = var1.readLargeSmart(2018615388);
               var18[var10] = var23;
               var17[var10] = var1.readUnsignedByteS(-920785845);
               var20[var10] = var1.readUnsignedShortA((byte)87);
            }

            Class487.method8171(var4, var18, var17, var20, (byte)-4);
         }

         if((var5 & 8) != 0) {
            var4.anInt10749 = var1.readUnsignedShortA((byte)75) * 1739699483;
            if('\uffff' == -1759863533 * var4.anInt10749) {
               var4.anInt10749 = -1739699483;
            }
         }

         if((var5 & 65536) != 0) {
            var4.aByte10764 = var1.readByte(205040679);
            var4.aByte10767 = var1.readByteC(-1692392070);
            var4.aByte10766 = var1.readByte(1601408647);
            var4.aByte10747 = (byte)var1.readUnsignedByteA(-489035581);
            var4.anInt10731 = (-1255739433 * client.anInt7659 + var1.readUnsignedLEShort(607398852)) * 558939803;
            var4.anInt10733 = (-1255739433 * client.anInt7659 + var1.readUnsignedShortA((byte)18)) * 217418917;
         }

         int var12;
         int var13;
         if((var5 & 128) != 0) {
            var16 = var1.readUnsignedByteC(-906399964);
            if(var16 > 0) {
               for(var7 = 0; var7 < var16; ++var7) {
                  var9 = -1;
                  boolean var26 = true;
                  var23 = -1;
                  var8 = var1.readSmart(1009745252);
                  if(32767 == var8) {
                     var8 = var1.readSmart(1116341784);
                     var10 = var1.readSmart(1559798399);
                     var9 = var1.readSmart(-93122765);
                     var23 = var1.readSmart(1773431344);
                  } else if(32766 != var8) {
                     var10 = var1.readSmart(1293252972);
                  } else {
                     var8 = -1;
                     var10 = var1.readUnsignedByteC(-871186164);
                  }

                  var12 = var1.readSmart(143537857);
                  var4.method16634(var8, var10, var9, var23, -1255739433 * client.anInt7659, var12, 225857949);
               }
            }

            var7 = var1.readUnsignedByte(-700559597);
            if(var7 > 0) {
               for(var8 = 0; var8 < var7; ++var8) {
                  var9 = var1.readSmart(2072804215);
                  var10 = var1.readSmart(907639570);
                  if(32767 != var10) {
                     var23 = var1.readSmart(1668646575);
                     var12 = var1.readUnsignedByteA(-739076719);
                     var13 = var10 > 0?var1.readUnsignedByteC(-1475539115):var12;
                     var4.method16701(var9, -1255739433 * client.anInt7659, var10, var23, var12, var13, (byte)-5);
                  } else {
                     var4.method16694(var9, (byte)-120);
                  }
               }
            }
         }

         long var14;
         short[] var25;
         short[] var24;
         int[] var27;
         if((var5 & 262144) != 0) {
            var16 = var4.aClass411_10896.anIntArray5032.length;
            var7 = 0;
            if(null != var4.aClass411_10896.aShortArray5036) {
               var7 = var4.aClass411_10896.aShortArray5036.length;
            }

            byte var22 = 0;
            if(null != var4.aClass411_10896.aShortArray5080) {
               var7 = var4.aClass411_10896.aShortArray5080.length;
            }

            var9 = var1.readUnsignedByteC(-870331155);
            if(1 != (var9 & 1)) {
               var27 = null;
               if((var9 & 2) == 2) {
                  var27 = new int[var16];

                  for(var23 = 0; var23 < var16; ++var23) {
                     var27[var23] = var1.readLargeSmart(1762235928);
                  }
               }

               var24 = null;
               if(4 == (var9 & 4)) {
                  var24 = new short[var7];

                  for(var12 = 0; var12 < var7; ++var12) {
                     var24[var12] = (short)var1.readUnsignedLEShortA(700253726);
                  }
               }

               var25 = null;
               if((var9 & 8) == 8) {
                  var25 = new short[var22];

                  for(var13 = 0; var13 < var22; ++var13) {
                     var25[var13] = (short)var1.readUnsignedLEShortA(41711893);
                  }
               }

               var14 = (long)((Class515_Sub1_Sub4_Sub4_Sub2.anInt10889 += 1021328859) * 2032891475 - 1);
               new Class396(var14, var27, var24, var25);
            }
         }

         if(0 != (var5 & 16777216)) {
            var16 = var1.readUnsignedLEShortA(2009076061);
            var7 = var1.readInt1((byte)-4);
            if('\uffff' == var16) {
               var16 = -1;
            }

            var8 = var1.readUnsignedByteA(31508330);
            var9 = var8 & 7;
            var10 = var8 >> 3 & 15;
            if(var10 == 15) {
               var10 = -1;
            }

            var11 = (var8 >> 7 & 1) == 1;
            var4.method16633(var16, var7, var9, var10, var11, 3, 1046390595);
         }

         if(0 != (var5 & 33554432)) {
            var16 = var1.readUnsignedShortA((byte)91);
            var7 = var1.readInt2((byte)23);
            if(var16 == '\uffff') {
               var16 = -1;
            }

            var8 = var1.readUnsignedByte(-700559597);
            var9 = var8 & 7;
            var10 = var8 >> 3 & 15;
            if(var10 == 15) {
               var10 = -1;
            }

            var11 = 1 == (var8 >> 7 & 1);
            var4.method16633(var16, var7, var9, var10, var11, 2, -1125837298);
         }

         if(0 != (var5 & 32)) {
            if(var4.aClass411_10896.method7037(253006150)) {
               Class274.method4856(var4, -1072313075);
            }

            var4.method16838(Class40.aClass388_439.method6647(var1.readLargeSmart(2140695000), 1434645844), 0 == (var5 & 1048576), 0 == (var5 & 8388608), (byte)0);
            var4.method16637(var4.aClass411_10896.anInt5053 * -1520573515, 560333820);
            var4.anInt10771 = (1966949725 * var4.aClass411_10896.anInt5060 << 3) * 1290726741;
            if(var4.aClass411_10896.method7037(1369224937)) {
               Class292.method5308(var4.aByte8443, var4.anIntArray10770[0], var4.anIntArray10779[0], 0, (Class445)null, var4, (Class515_Sub1_Sub4_Sub4_Sub1)null, -1077310541);
            }
         }

         if(0 != (var5 & 512)) {
            var16 = var4.aClass411_10896.anIntArray5031.length;
            var7 = 0;
            if(null != var4.aClass411_10896.aShortArray5036) {
               var7 = var4.aClass411_10896.aShortArray5036.length;
            }

            var8 = 0;
            if(var4.aClass411_10896.aShortArray5080 != null) {
               var8 = var4.aClass411_10896.aShortArray5080.length;
            }

            var9 = var1.readUnsignedByteS(-958152028);
            if((var9 & 1) == 1) {
               var4.aClass396_10887 = null;
            } else {
               var27 = null;
               if(2 == (var9 & 2)) {
                  var27 = new int[var16];

                  for(var23 = 0; var23 < var16; ++var23) {
                     var27[var23] = var1.readLargeSmart(1952209680);
                  }
               }

               var24 = null;
               if((var9 & 4) == 4) {
                  var24 = new short[var7];

                  for(var12 = 0; var12 < var7; ++var12) {
                     var24[var12] = (short)var1.readUnsignedShortA((byte)80);
                  }
               }

               var25 = null;
               if((var9 & 8) == 8) {
                  var25 = new short[var8];

                  for(var13 = 0; var13 < var8; ++var13) {
                     var25[var13] = (short)var1.readUnsignedShort(-937710807);
                  }
               }

               var14 = (long)((Class515_Sub1_Sub4_Sub4_Sub2.anInt10888 += 2106894213) * 1092172109 - 1);
               var4.aClass396_10887 = new Class396(var14, var27, var24, var25);
            }
         }

         if(0 != (var5 & 2048)) {
            var16 = var1.readUnsignedByte(-700559597);
            var18 = new int[var16];
            var17 = new int[var16];

            for(var9 = 0; var9 < var16; ++var9) {
               var10 = var1.readUnsignedShortA((byte)48);
               if((var10 & '\uc000') == '\uc000') {
                  var23 = var1.readUnsignedShortA((byte)17);
                  var18[var9] = var10 << 16 | var23;
               } else {
                  var18[var9] = var10;
               }

               var17[var9] = var1.readUnsignedShort(-937710807);
            }

            var4.method16630(var18, var17, (short)4816);
         }

         if((var5 & 1) != 0) {
            var4.method16826(var1.readString((byte)-20), 0, 0, (byte)-18);
         }

         if((var5 & 524288) != 0) {
            var16 = var1.buffer[(var1.position += 1385214721) * -543666943 - 1] & 255;

            for(var7 = 0; var7 < var16; ++var7) {
               var8 = var1.readUnsignedByte(-700559597);
               var19 = (Class263)Class79.method1636(Class263.method4686((byte)-18), var8, (byte)16);
               var21 = Class225_Sub14_Sub17.aClass182_Sub1_Sub1_10576.method14420(var1, var19, (byte)0);
               var4.anInterface46_10788.method245(-917776691 * var21.anInt3997, var21.anObject3996, (byte)-70);
            }
         }

         if((var5 & 8388608) != 0) {
            var4.anInt10890 = var1.readUnsignedLEShortA(2102008130) * -1638942093;
            if(1836612283 * var4.anInt10890 == '\uffff') {
               var4.anInt10890 = var4.aClass411_10896.anInt5091 * 668221187;
            }
         }
      }

   }

   static boolean method11094(int var0, short var1) {
      return 59 == var0 || var0 == 2 || var0 == 8 || var0 == 17 || var0 == 15 || 16 == var0 || 58 == var0;
   }
}
