import java.awt.Color;

public class Class473 {

   Class564 aClass564_5794 = new Class564(100);
   Class253 aClass253_5795;
   Class564 aClass564_5796 = new Class564(64);
   public static int anInt5797;
   public static Class253 aClass253_5798;


   public void method7917() {
      Class564 var1 = this.aClass564_5796;
      synchronized(var1) {
         this.aClass564_5796.method11968((short)-23919);
      }

      var1 = this.aClass564_5794;
      synchronized(var1) {
         this.aClass564_5794.method11968((short)-11138);
      }
   }

   public Class485 method7918(int var1, int var2) {
      Class564 var3 = this.aClass564_5796;
      Class485 var4;
      synchronized(var3) {
         var4 = (Class485)this.aClass564_5796.method11959((long)var1);
      }

      if(var4 != null) {
         return var4;
      } else {
         Class253 var5 = this.aClass253_5795;
         byte[] var11;
         synchronized(var5) {
            var11 = this.aClass253_5795.method4547(Class115.aClass115_1110.method2277(var1, -2138075465), Class115.aClass115_1110.method2276(var1, -426906333), (byte)-51);
         }

         var4 = new Class485();
         var4.anInt5868 = var1 * 1294167773;
         var4.aClass473_5867 = this;
         if(null != var11) {
            var4.method8140(new RS2Buffer(var11), 306949869);
         }

         var4.method8127(-1272606815);
         Class564 var12 = this.aClass564_5796;
         synchronized(var12) {
            this.aClass564_5796.method11958(var4, (long)var1);
            return var4;
         }
      }
   }

   public Class225_Sub14_Sub1 method7919(int var1) {
      Class564 var2 = this.aClass564_5794;
      synchronized(var2) {
         Class225_Sub14_Sub1 var3 = (Class225_Sub14_Sub1)this.aClass564_5794.method11959((long)var1);
         if(null == var3) {
            var3 = new Class225_Sub14_Sub1(var1);
            this.aClass564_5794.method11958(var3, (long)var1);
         }

         return !var3.method15483(72772145)?null:var3;
      }
   }

   public void method7920(int var1) {
      Class564 var2 = this.aClass564_5796;
      synchronized(var2) {
         this.aClass564_5796.method11976((byte)97);
      }

      var2 = this.aClass564_5794;
      synchronized(var2) {
         this.aClass564_5794.method11976((byte)35);
      }
   }

   public void method7921(int var1, int var2) {
      Class564 var3 = this.aClass564_5796;
      synchronized(var3) {
         this.aClass564_5796.method11963(var1, (byte)-8);
      }

      var3 = this.aClass564_5794;
      synchronized(var3) {
         this.aClass564_5794.method11963(var1, (byte)-27);
      }
   }

   public void method7922(int var1) {
      Class564 var2 = this.aClass564_5796;
      synchronized(var2) {
         this.aClass564_5796.method11968((short)-27807);
      }

      var2 = this.aClass564_5794;
      synchronized(var2) {
         this.aClass564_5794.method11968((short)-17124);
      }
   }

   public Class485 method7923(int var1) {
      Class564 var2 = this.aClass564_5796;
      Class485 var3;
      synchronized(var2) {
         var3 = (Class485)this.aClass564_5796.method11959((long)var1);
      }

      if(var3 != null) {
         return var3;
      } else {
         Class253 var4 = this.aClass253_5795;
         byte[] var10;
         synchronized(var4) {
            var10 = this.aClass253_5795.method4547(Class115.aClass115_1110.method2277(var1, -559080612), Class115.aClass115_1110.method2276(var1, -2050863648), (byte)21);
         }

         var3 = new Class485();
         var3.anInt5868 = var1 * 1294167773;
         var3.aClass473_5867 = this;
         if(null != var10) {
            var3.method8140(new RS2Buffer(var10), -1592369719);
         }

         var3.method8127(-716763334);
         Class564 var11 = this.aClass564_5796;
         synchronized(var11) {
            this.aClass564_5796.method11958(var3, (long)var1);
            return var3;
         }
      }
   }

   public Class473(Class481 var1, Class470 var2, Class253 var3, Class253 var4, Class253 var5) {
      this.aClass253_5795 = var3;
      if(this.aClass253_5795 != null) {
         int var6 = this.aClass253_5795.method4515(-2008212021) - 1;
         Class115.aClass115_1110.method2278(1792896298);
         this.aClass253_5795.method4514(var6, -526806020);
      }

      Class550_Sub2.method13239(var4, var5, 2, 1946184583);
   }

   public void method7924(int var1) {
      Class564 var2 = this.aClass564_5796;
      synchronized(var2) {
         this.aClass564_5796.method11963(var1, (byte)-45);
      }

      var2 = this.aClass564_5794;
      synchronized(var2) {
         this.aClass564_5794.method11963(var1, (byte)-112);
      }
   }

   public Class225_Sub14_Sub1 method7925(int var1) {
      Class564 var2 = this.aClass564_5794;
      synchronized(var2) {
         Class225_Sub14_Sub1 var3 = (Class225_Sub14_Sub1)this.aClass564_5794.method11959((long)var1);
         if(null == var3) {
            var3 = new Class225_Sub14_Sub1(var1);
            this.aClass564_5794.method11958(var3, (long)var1);
         }

         return !var3.method15483(72772145)?null:var3;
      }
   }

   public Class225_Sub14_Sub1 method7926(int var1) {
      Class564 var2 = this.aClass564_5794;
      synchronized(var2) {
         Class225_Sub14_Sub1 var3 = (Class225_Sub14_Sub1)this.aClass564_5794.method11959((long)var1);
         if(null == var3) {
            var3 = new Class225_Sub14_Sub1(var1);
            this.aClass564_5794.method11958(var3, (long)var1);
         }

         return !var3.method15483(72772145)?null:var3;
      }
   }

   public void method7927(int var1) {
      Class564 var2 = this.aClass564_5796;
      synchronized(var2) {
         this.aClass564_5796.method11963(var1, (byte)-26);
      }

      var2 = this.aClass564_5794;
      synchronized(var2) {
         this.aClass564_5794.method11963(var1, (byte)-91);
      }
   }

   public Class225_Sub14_Sub1 method7928(int var1) {
      Class564 var2 = this.aClass564_5794;
      synchronized(var2) {
         Class225_Sub14_Sub1 var3 = (Class225_Sub14_Sub1)this.aClass564_5794.method11959((long)var1);
         if(null == var3) {
            var3 = new Class225_Sub14_Sub1(var1);
            this.aClass564_5794.method11958(var3, (long)var1);
         }

         return !var3.method15483(72772145)?null:var3;
      }
   }

   public void method7929(int var1) {
      Class564 var2 = this.aClass564_5796;
      synchronized(var2) {
         this.aClass564_5796.method11963(var1, (byte)-87);
      }

      var2 = this.aClass564_5794;
      synchronized(var2) {
         this.aClass564_5794.method11963(var1, (byte)-100);
      }
   }

   public Class225_Sub14_Sub1 method7930(int var1, byte var2) {
      Class564 var3 = this.aClass564_5794;
      synchronized(var3) {
         Class225_Sub14_Sub1 var4 = (Class225_Sub14_Sub1)this.aClass564_5794.method11959((long)var1);
         if(null == var4) {
            var4 = new Class225_Sub14_Sub1(var1);
            this.aClass564_5794.method11958(var4, (long)var1);
         }

         return !var4.method15483(72772145)?null:var4;
      }
   }

   static final void method7931(Class508 var0, int var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = (int)client.aFloat7749 >> 3;
   }

   public static Class362 method7932(RS2Buffer var0, int var1) {
      Class362 var2 = Class242.method4367(var0, -1840891712);
      int var3 = var0.method13770(854449094);
      return new Class362_Sub1(var2.anInt4504 * -1850097451, var2.aClass382_4503, var2.aClass365_4502, var2.anInt4505 * 194732295, 1692315675 * var2.anInt4506, var3);
   }

   static void method7933(byte var0) {
      Class225_Sub21_Sub3.aClass234_10080.method4048(-1772885754);
      Class420.aClass242_5333.method4340(1579204382);
      Class391.aclient4857.method5082(1162954862);
      Class572.aCanvas7591.setBackground(Color.black);
      client.anInt7825 = 551325389;
      Class225_Sub21_Sub3.aClass234_10080 = Class118_Sub18.method13228(Class572.aCanvas7591, 2054410581);
      Class420.aClass242_5333 = Class197.method3388(Class572.aCanvas7591, true, 1022212716);
   }

   static void method7934(int var0, int var1, Class124 var2, int var3) {
      int var4 = 516053361 * var2.anInt1368 + var0;
      int var5 = 15 + var1;
      if(client.aBool7873) {
         int var6 = -256;
         if(1224483541 * client.anInt3300 < 20) {
            var6 = -65536;
         }

         Class574.aClass8_7601.method614("Fps:" + client.anInt3300 * 1224483541, var4, var5, var6, -1, -2099116914);
         var5 += 15;
         Runtime var7 = Runtime.getRuntime();
         long var8 = var7.totalMemory() / 1024L;
         long var10 = var8 - var7.freeMemory() / 1024L;
         int var12 = -256;
         if(var10 > 262144L) {
            var12 = -65536;
         }

         Class574.aClass8_7601.method614("Mem:" + var10 + "/" + var8 + "k", var4, var5, var12, -1, -911428654);
         var5 += 15;
         long var13 = client.aClass180_7704.aClass17_2195.method760(172617736);
         String var15 = "N/A";
         if(-1L != var13) {
            var15 = var13 + "ms";
            if(var13 > 500L) {
               var15 = Class516.method10967(16711680, -1714626033) + var15 + Class516.method10967(16776960, -81663970);
            }
         }

         Class574.aClass8_7601.method614("Game: In:" + 263879107 * client.aClass180_7704.anInt2190 + "B/s " + "Out:" + client.aClass180_7704.anInt2189 * 23227903 + "B/s " + "Ping:" + var15, var4, var5, -256, -1, -1746573717);
         var5 += 15;
         long var16 = client.aClass180_7703.aClass17_2195.method760(-1902559582);
         String var18 = "N/A";
         if(var16 != -1L) {
            var18 = var16 + "ms";
            if(var16 > 500L) {
               var18 = Class516.method10967(16711680, -561614606) + var18 + Class516.method10967(16776960, -1861410280);
            }
         }

         Class574.aClass8_7601.method614("Lobby: In:" + 263879107 * client.aClass180_7703.anInt2190 + "B/s " + "Out:" + 23227903 * client.aClass180_7703.anInt2189 + "B/s " + "Ping:" + var18, var4, var5, -256, -1, -1717314298);
         var5 += 15;
         int var19 = Class428.aClass545_5383.za() / 1024;
         Class574.aClass8_7601.method614("Offheap:" + var19 + "k", var4, var5, var19 > 65536?-65536:-256, -1, -513943479);
         var5 += 15;
         int var20 = 0;
         int var21 = 0;
         int var22 = 0;

         int var23;
         for(var23 = 0; var23 < Class1.aClass250_Sub1Array13.length; ++var23) {
            if(null != Class1.aClass250_Sub1Array13[var23]) {
               var20 += Class1.aClass250_Sub1Array13[var23].method14325(-2137657805);
               var21 += Class1.aClass250_Sub1Array13[var23].method14319((byte)39);
               var22 += Class1.aClass250_Sub1Array13[var23].method14326(-2061521546);
            }
         }

         var23 = var22 * 100 / var20;
         int var24 = 10000 * var21 / var20;
         String var25 = "Cache:" + Class257.method4641((long)var24, 2, true, Class470.aClass470_5782, (short)28705) + "% (" + var23 + "%)";
         Class20.aClass8_197.method614(var25, var4, var5, -256, -1, -12251577);
         var5 += 12;
      }

   }

   static final void method7935(Class508 var0, byte var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class225_Sub14_Sub11 var3 = Class193.method3354(-1830294373);
      if(null != var3) {
         if(var1 == 0) {
            return;
         }

         boolean var4 = var3.method16194(var2 >> 14 & 16383, var2 & 16383, Class506.anIntArray5982, 90377585);
         if(var4) {
            if(var1 == 0) {
               ;
            }

            var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class506.anIntArray5982[1];
            var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class506.anIntArray5982[2];
         } else {
            var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -1;
            var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -1;
         }
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -1;
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -1;
      }

   }

   static final void method7936(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = client.aClass273Array7653[var2].anInt3179 * 1524606643;
   }
}
