
public class Class511 {

   int anInt6040;
   Class512[] aClass512Array6041;
   Class253 aClass253_6042;
   public static Class253 aClass253_6043;


   int method10844(Interface12 var1, byte var2) {
      int var3 = 0;

      for(int var4 = 0; var4 < this.anInt6040 * 1137918647; ++var4) {
         Class512 var5 = this.method10849(var4, 1194614154);
         if(var5.method10859(var1, -841485003)) {
            var3 += var5.anInt6052 * -55574791;
         }
      }

      return var3;
   }

   public Class511(Class481 var1, Class470 var2, Class253 var3, boolean var4) {
      this.aClass253_6042 = var3;
      if(this.aClass253_6042 != null) {
         this.anInt6040 = this.aClass253_6042.method4514(2022937823 * Class115.aClass115_1144.anInt1177, 1831640855) * 888093447;
      } else {
         this.anInt6040 = 0;
      }

      if(var4) {
         this.aClass512Array6041 = new Class512[this.anInt6040 * 1137918647];

         for(int var5 = 0; var5 < this.anInt6040 * 1137918647; ++var5) {
            Class253 var6 = this.aClass253_6042;
            byte[] var7;
            synchronized(var6) {
               var7 = this.aClass253_6042.method4547(2022937823 * Class115.aClass115_1144.anInt1177, var5, (byte)77);
            }

            Class512 var10 = new Class512();
            if(var7 != null) {
               var10.method10853(new RS2Buffer(var7), -369086663);
            }

            var10.method10855((byte)13);
            this.aClass512Array6041[var5] = var10;
            this.aClass512Array6041[var5].aClass511_6049 = this;
         }
      }

   }

   int method10845(Interface12 var1) {
      int var2 = 0;

      for(int var3 = 0; var3 < this.anInt6040 * 1137918647; ++var3) {
         Class512 var4 = this.method10849(var3, 815532268);
         if(var4.method10859(var1, -1553885045)) {
            var2 += var4.anInt6052 * -55574791;
         }
      }

      return var2;
   }

   public Class512 method10846(int var1) {
      return this.aClass512Array6041[var1];
   }

   public Class512 method10847(int var1) {
      return this.aClass512Array6041[var1];
   }

   int method10848(Interface12 var1) {
      int var2 = 0;

      for(int var3 = 0; var3 < this.anInt6040 * 1137918647; ++var3) {
         Class512 var4 = this.method10849(var3, 460181172);
         if(var4.method10859(var1, -695746517)) {
            var2 += var4.anInt6052 * -55574791;
         }
      }

      return var2;
   }

   public Class512 method10849(int var1, int var2) {
      return this.aClass512Array6041[var1];
   }

   static final void method10850(Class508 var0, int var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class466.aByte5748;
   }

   static final void method10851(Class508 var0, byte var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class124 var3 = Class97.method1903(var2, 1143374440);
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var3.anInt1398 * 814553415;
   }
}
