
public class Class95 {

   boolean aBool924 = false;
   static short[] aShortArray925 = new short[500];
   static short[] aShortArray926 = new short[500];
   static short[] aShortArray927 = new short[500];
   static short[] aShortArray928 = new short[500];
   static final int anInt929 = 2;
   Class225_Sub48 aClass225_Sub48_930 = null;
   byte[] aByteArray931;
   short[] aShortArray932;
   short[] aShortArray933;
   short[] aShortArray934;
   short[] aShortArray935;
   static byte[] aByteArray936 = new byte[500];
   boolean aBool937 = false;
   short[] aShortArray938;
   int anInt939 = 0;
   boolean aBool940 = false;
   static short[] aShortArray941 = new short[500];
   static final int anInt942 = 2;
   static final int anInt943 = 1;


   Class95(byte[] var1, Class225_Sub48 var2) {
      this.aClass225_Sub48_930 = var2;

      try {
         RS2Buffer var3 = new RS2Buffer(var1);
         RS2Buffer var4 = new RS2Buffer(var1);
         var3.readUnsignedByte(-700559597);
         var3.position += -1524537854;
         int var5 = var3.readUnsignedShort(-937710807);
         int var6 = 0;
         int var7 = -1;
         int var8 = -1;
         var4.position = (var3.position * -543666943 + var5) * 1385214721;

         int var9;
         for(var9 = 0; var9 < var5; ++var9) {
            int var10 = this.aClass225_Sub48_930.anIntArray8861[var9];
            if(var10 == 0) {
               var7 = var9;
            }

            int var11 = var3.readUnsignedByte(-700559597);
            if(var11 > 0) {
               if(var10 == 0) {
                  var8 = var9;
               }

               aShortArray941[var6] = (short)var9;
               short var12 = 0;
               if(var10 == 3 || var10 == 10) {
                  var12 = 128;
               }

               if((var11 & 1) != 0) {
                  aShortArray925[var6] = (short)var4.method13738(1992293975);
               } else {
                  aShortArray925[var6] = var12;
               }

               if((var11 & 2) != 0) {
                  aShortArray926[var6] = (short)var4.method13738(-1136503867);
               } else {
                  aShortArray926[var6] = var12;
               }

               if((var11 & 4) != 0) {
                  aShortArray927[var6] = (short)var4.method13738(27870573);
               } else {
                  aShortArray927[var6] = var12;
               }

               aByteArray936[var6] = (byte)(var11 >>> 3 & 3);
               if(var10 == 2 || var10 == 9) {
                  aShortArray925[var6] = (short)(aShortArray925[var6] << 2 & 16383);
                  aShortArray926[var6] = (short)(aShortArray926[var6] << 2 & 16383);
                  aShortArray927[var6] = (short)(aShortArray927[var6] << 2 & 16383);
               }

               aShortArray928[var6] = -1;
               if(var10 != 1 && var10 != 2 && var10 != 3) {
                  if(var10 == 5) {
                     this.aBool940 = true;
                  } else if(var10 == 7) {
                     this.aBool937 = true;
                  } else if(var10 == 9 || var10 == 10 || var10 == 8) {
                     this.aBool924 = true;
                  }
               } else if(var7 > var8) {
                  aShortArray928[var6] = (short)var7;
                  var8 = var7;
               }

               ++var6;
            }
         }

         if(var4.position * -543666943 != var1.length) {
            throw new RuntimeException();
         }

         this.anInt939 = var6;
         this.aShortArray932 = new short[var6];
         this.aShortArray938 = new short[var6];
         this.aShortArray934 = new short[var6];
         this.aShortArray935 = new short[var6];
         this.aShortArray933 = new short[var6];
         this.aByteArray931 = new byte[var6];

         for(var9 = 0; var9 < var6; ++var9) {
            this.aShortArray932[var9] = aShortArray941[var9];
            this.aShortArray938[var9] = aShortArray925[var9];
            this.aShortArray934[var9] = aShortArray926[var9];
            this.aShortArray935[var9] = aShortArray927[var9];
            this.aShortArray933[var9] = aShortArray928[var9];
            this.aByteArray931[var9] = aByteArray936[var9];
         }
      } catch (Exception var13) {
         this.anInt939 = 0;
         this.aBool940 = false;
         this.aBool937 = false;
      }

   }
}
