
public class Class38 implements Interface17 {

   Class253 aClass253_429;
   Class253 aClass253_430;
   Class564 aClass564_431 = new Class564(64);


   public void method1061(int var1) {
      Class564 var2 = this.aClass564_431;
      synchronized(var2) {
         this.aClass564_431.method11968((short)-32336);
      }
   }

   public Class37 method1062(int var1, byte var2) {
      Class564 var3 = this.aClass564_431;
      Class37 var4;
      synchronized(var3) {
         var4 = (Class37)this.aClass564_431.method11959((long)var1);
      }

      if(var4 != null) {
         return var4;
      } else {
         Class253 var5 = this.aClass253_430;
         byte[] var12;
         synchronized(var5) {
            var12 = this.aClass253_430.method4547(Class115.aClass115_1160.anInt1177 * 2022937823, var1, (byte)-5);
         }

         var4 = new Class37();
         var4.aClass38_423 = this;
         if(var12 != null) {
            var4.method1033(new RS2Buffer(var12), (byte)-123);
         }

         Class564 var11 = this.aClass564_431;
         synchronized(var11) {
            this.aClass564_431.method11958(var4, (long)var1);
            return var4;
         }
      }
   }

   public Class38(Class481 var1, Class470 var2, Class253 var3, Class253 var4) {
      this.aClass253_430 = var3;
      this.aClass253_429 = var4;
      this.aClass253_430.method4514(Class115.aClass115_1160.anInt1177 * 2022937823, 48812299);
   }

   public void method1063(int var1, int var2) {
      Class564 var3 = this.aClass564_431;
      synchronized(var3) {
         this.aClass564_431.method11963(var1, (byte)-46);
      }
   }

   public void method1064(int var1) {
      Class564 var2 = this.aClass564_431;
      synchronized(var2) {
         this.aClass564_431.method11976((byte)26);
      }
   }

   public Class37 method1065(int var1) {
      Class564 var2 = this.aClass564_431;
      Class37 var3;
      synchronized(var2) {
         var3 = (Class37)this.aClass564_431.method11959((long)var1);
      }

      if(var3 != null) {
         return var3;
      } else {
         Class253 var4 = this.aClass253_430;
         byte[] var10;
         synchronized(var4) {
            var10 = this.aClass253_430.method4547(Class115.aClass115_1160.anInt1177 * 2022937823, var1, (byte)-42);
         }

         var3 = new Class37();
         var3.aClass38_423 = this;
         if(var10 != null) {
            var3.method1033(new RS2Buffer(var10), (byte)-103);
         }

         Class564 var11 = this.aClass564_431;
         synchronized(var11) {
            this.aClass564_431.method11958(var3, (long)var1);
            return var3;
         }
      }
   }

   public Class37 method1066(int var1) {
      Class564 var2 = this.aClass564_431;
      Class37 var3;
      synchronized(var2) {
         var3 = (Class37)this.aClass564_431.method11959((long)var1);
      }

      if(var3 != null) {
         return var3;
      } else {
         Class253 var4 = this.aClass253_430;
         byte[] var10;
         synchronized(var4) {
            var10 = this.aClass253_430.method4547(Class115.aClass115_1160.anInt1177 * 2022937823, var1, (byte)10);
         }

         var3 = new Class37();
         var3.aClass38_423 = this;
         if(var10 != null) {
            var3.method1033(new RS2Buffer(var10), (byte)3);
         }

         Class564 var11 = this.aClass564_431;
         synchronized(var11) {
            this.aClass564_431.method11958(var3, (long)var1);
            return var3;
         }
      }
   }

   public Class37 method1067(int var1) {
      Class564 var2 = this.aClass564_431;
      Class37 var3;
      synchronized(var2) {
         var3 = (Class37)this.aClass564_431.method11959((long)var1);
      }

      if(var3 != null) {
         return var3;
      } else {
         Class253 var4 = this.aClass253_430;
         byte[] var10;
         synchronized(var4) {
            var10 = this.aClass253_430.method4547(Class115.aClass115_1160.anInt1177 * 2022937823, var1, (byte)-70);
         }

         var3 = new Class37();
         var3.aClass38_423 = this;
         if(var10 != null) {
            var3.method1033(new RS2Buffer(var10), (byte)-89);
         }

         Class564 var11 = this.aClass564_431;
         synchronized(var11) {
            this.aClass564_431.method11958(var3, (long)var1);
            return var3;
         }
      }
   }

   public void method1068(int var1) {
      Class564 var2 = this.aClass564_431;
      synchronized(var2) {
         this.aClass564_431.method11963(var1, (byte)-99);
      }
   }

   public void method1069(int var1) {
      Class564 var2 = this.aClass564_431;
      synchronized(var2) {
         this.aClass564_431.method11963(var1, (byte)-52);
      }
   }

   public void method1070(int var1) {
      Class564 var2 = this.aClass564_431;
      synchronized(var2) {
         this.aClass564_431.method11963(var1, (byte)0);
      }
   }

   public void method1071(int var1) {
      Class564 var2 = this.aClass564_431;
      synchronized(var2) {
         this.aClass564_431.method11963(var1, (byte)0);
      }
   }

   static int method1072(int var0, int var1, byte var2) {
      double var3 = Math.log((double)var1) / Math.log(2.0D);
      double var5 = Math.log((double)var0) / Math.log(2.0D);
      double var7 = Math.random() * (var3 - var5) + var5;
      return (int)(Math.pow(2.0D, var7) + 0.5D);
   }

   static final void method1073(Class508 var0, int var1) {
      var0.anInt6003 -= 196624946;
      int var2 = var0.anIntArray6027[-937710807 * var0.anInt6003];
      int var3 = var0.anIntArray6027[1 + -937710807 * var0.anInt6003];
      if(Class446.aBool5570) {
         Class298.method5373(3, var2, var3, false, 1885567925);
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class254.aFrame3020 != null?1:0;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 0;
      }

   }

   static final void method1074(Class508 var0, int var1) {
      var0.anInt6003 -= 196624946;
      int var2 = var0.anIntArray6027[var0.anInt6003 * -937710807];
      int var3 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 1];
      if(var2 >= 0 && var2 < 2) {
         client.anIntArrayArrayArray7752[var2] = new int[var3 << 1][4];
      }

   }

   static void method1075(Class508 var0, byte var1) {
      int var2 = var0.anIntArray6027[var0.anInt6003 * -937710807 - 3];
      int var3 = var0.anIntArray6027[-937710807 * var0.anInt6003 - 2];
      int var4 = var0.anIntArray6027[-937710807 * var0.anInt6003 - 1];
      var0.anInt6003 -= 294937419;
      if(var2 > var0.anIntArray6006[var3]) {
         throw new RuntimeException();
      } else if(var2 > var0.anIntArray6006[var4]) {
         throw new RuntimeException();
      } else if(var3 == var4) {
         throw new RuntimeException();
      } else {
         Class108.method2175(var0.anIntArrayArray6000[var3], var0.anIntArrayArray6000[var4], 0, var2 - 1, (byte)-92);
      }
   }
}
