import java.awt.Frame;

public class Class515_Sub1_Sub5_Sub1 extends Class515_Sub1_Sub5 implements Interface20 {

   byte aByte10804;
   Class568 aClass568_10805;
   Class225_Sub14_Sub16 aClass225_Sub14_Sub16_10806;
   Class571 aClass571_10807;
   int anInt10808;
   byte aByte10809;
   Class448 aClass448_10810;
   boolean aBool10811;
   boolean aBool10812;
   boolean aBool10813;


   public int method93() {
      return this.aByte10809;
   }

   boolean method13411() {
      return this.aClass568_10805 != null?this.aClass568_10805.i():false;
   }

   boolean method13451(byte var1) {
      if(this.aClass568_10805 != null) {
         if(var1 != 1) {
            ;
         }

         return this.aClass568_10805.i();
      } else {
         return false;
      }
   }

   public int method13404(byte var1) {
      return null != this.aClass568_10805?this.aClass568_10805.YA():0;
   }

   Class568 method16742(Class545 var1, int var2, int var3) {
      if(this.aClass568_10805 != null && var1.method11494(this.aClass568_10805.m(), var2) == 0) {
         return this.aClass568_10805;
      } else {
         Class437 var4 = this.method16743(var1, var2, false, -1425449781);
         return null != var4?(Class568)var4.anObject5439:null;
      }
   }

   Class437 method16743(Class545 var1, int var2, boolean var3, int var4) {
      Class445 var5 = this.aClass448_10810.method7506(-736403313 * this.anInt10808, 1514131502);
      Class400 var6;
      Class400 var7;
      if(this.aBool10811) {
         var6 = this.aClass241_8441.aClass400Array2909[this.aByte8444];
         var7 = this.aClass241_8441.aClass400Array2867[0];
      } else {
         var6 = this.aClass241_8441.aClass400Array2867[this.aByte8444];
         if(this.aByte8444 < 3) {
            var7 = this.aClass241_8441.aClass400Array2867[1 + this.aByte8444];
         } else {
            var7 = null;
         }
      }

      Class326 var8 = this.method10913().aClass326_4031;
      return var5.method7446(var1, var2, this.aByte10809, this.aByte10804, var6, var7, (int)var8.aFloat4036, (int)var8.aFloat4037, (int)var8.aFloat4033, var3, (Class469)null, (byte)115);
   }

   public Class571 method13400(Class545 var1, int var2) {
      Class326 var3 = this.method10913().aClass326_4031;
      if(this.aClass571_10807 == null) {
         if(var2 <= 292360777) {
            ;
         }

         this.aClass571_10807 = Class225_Sub3.method13342((int)var3.aFloat4036, (int)var3.aFloat4037, (int)var3.aFloat4033, this.method16742(var1, 0, 16711680), (byte)-58);
      }

      return this.aClass571_10807;
   }

   Class579 method13398(Class545 var1, byte var2) {
      if(this.aClass568_10805 == null) {
         return null;
      } else {
         Class328 var3 = var1.method11491();
         var3.method5991(this.method10915());
         var3.method6005((float)this.aShort10434, 0.0F, (float)this.aShort10432);
         Class579 var4 = Class212.method3640(this.aBool10812, (byte)-100);
         this.aClass568_10805.method12069(var3, this.aClass89Array8446[0], 0);
         return var4;
      }
   }

   boolean method13394(byte var1) {
      return null != this.aClass568_10805?!this.aClass568_10805.u():true;
   }

   boolean method13391(Class545 var1, int var2, int var3, int var4) {
      Class568 var5 = this.method16742(var1, 131072, 16711680);
      if(null != var5) {
         Class328 var6 = this.method10915();
         return var5.method12070(var2, var3, var6, false, 0);
      } else {
         return false;
      }
   }

   Class579 method13419(Class545 var1) {
      if(this.aClass568_10805 == null) {
         return null;
      } else {
         Class328 var2 = var1.method11491();
         var2.method5991(this.method10915());
         var2.method6005((float)this.aShort10434, 0.0F, (float)this.aShort10432);
         Class579 var3 = Class212.method3640(this.aBool10812, (byte)-48);
         this.aClass568_10805.method12069(var2, this.aClass89Array8446[0], 0);
         return var3;
      }
   }

   public int method34() {
      return this.anInt10808 * -736403313;
   }

   public int method87(int var1) {
      return this.aByte10804;
   }

   boolean method13426() {
      return null != this.aClass568_10805?!this.aClass568_10805.u():true;
   }

   public boolean method86(int var1) {
      return this.aBool10813;
   }

   public void method90(Class545 var1, int var2) {
      Class225_Sub14_Sub16 var3 = null;
      if(this.aClass225_Sub14_Sub16_10806 == null && this.aBool10813) {
         Class437 var4 = this.method16743(var1, 262144, true, -994569436);
         var3 = (Class225_Sub14_Sub16)(var4 != null?var4.anObject5438:null);
      } else {
         var3 = this.aClass225_Sub14_Sub16_10806;
         this.aClass225_Sub14_Sub16_10806 = null;
      }

      Class326 var5 = this.method10913().aClass326_4031;
      if(null != var3) {
         this.aClass241_8441.method4270(var3, this.aByte8444, (int)var5.aFloat4036, (int)var5.aFloat4033, (boolean[])null, -1675076487);
      }

   }

   public void method85(Class545 var1, int var2) {
      Class225_Sub14_Sub16 var3 = null;
      if(this.aClass225_Sub14_Sub16_10806 == null && this.aBool10813) {
         Class437 var4 = this.method16743(var1, 262144, true, -1205813530);
         var3 = (Class225_Sub14_Sub16)(var4 != null?var4.anObject5438:null);
      } else {
         var3 = this.aClass225_Sub14_Sub16_10806;
         this.aClass225_Sub14_Sub16_10806 = null;
      }

      Class326 var5 = this.method10913().aClass326_4031;
      if(var3 != null) {
         this.aClass241_8441.method4218(var3, this.aByte8444, (int)var5.aFloat4036, (int)var5.aFloat4033, (boolean[])null, 2027147348);
      }

   }

   public int method39() {
      return this.anInt10808 * -736403313;
   }

   public int method40() {
      return this.anInt10808 * -736403313;
   }

   void method13402(Class545 var1, int var2) {}

   public int method29() {
      return this.anInt10808 * -736403313;
   }

   public int method83() {
      return this.aByte10809;
   }

   public int method91() {
      return this.aByte10809;
   }

   public int method92() {
      return this.aByte10809;
   }

   public boolean method84() {
      return this.aBool10813;
   }

   public int method94() {
      return this.aByte10804;
   }

   public int method95() {
      return this.aByte10804;
   }

   public void method96() {
      if(null != this.aClass568_10805) {
         this.aClass568_10805.method12100();
      }

   }

   public int method99(int var1) {
      return this.anInt10808 * -736403313;
   }

   Class437 method16744(Class545 var1, int var2, boolean var3) {
      Class445 var4 = this.aClass448_10810.method7506(-736403313 * this.anInt10808, 967956730);
      Class400 var5;
      Class400 var6;
      if(this.aBool10811) {
         var5 = this.aClass241_8441.aClass400Array2909[this.aByte8444];
         var6 = this.aClass241_8441.aClass400Array2867[0];
      } else {
         var5 = this.aClass241_8441.aClass400Array2867[this.aByte8444];
         if(this.aByte8444 < 3) {
            var6 = this.aClass241_8441.aClass400Array2867[1 + this.aByte8444];
         } else {
            var6 = null;
         }
      }

      Class326 var7 = this.method10913().aClass326_4031;
      return var4.method7446(var1, var2, this.aByte10809, this.aByte10804, var5, var6, (int)var7.aFloat4036, (int)var7.aFloat4037, (int)var7.aFloat4033, var3, (Class469)null, (byte)65);
   }

   public Class515_Sub1_Sub5_Sub1(Class241 var1, Class545 var2, Class448 var3, Class445 var4, int var5, int var6, int var7, int var8, int var9, boolean var10, int var11, int var12, int var13, int var14) {
      super(var1, var7, var8, var9, var5, var6, var11, var12);
      this.aClass448_10810 = var3;
      this.anInt10808 = var4.anInt5531 * 1897406739;
      this.aBool10811 = var10;
      this.aByte10804 = (byte)var14;
      this.aByte10809 = (byte)var13;
      this.aBool10812 = -22824303 * var4.anInt5544 != 0 && !var10;
      this.aBool10813 = var2.method11438() && var4.aBool5560 && !this.aBool10811 && Class500.aClass225_Sub6_5953.aClass463_Sub20_8490.method12975(-751279454) != 0;
      int var15 = 2048;
      if(var4.aBool5568) {
         var15 |= 524288;
      }

      Class437 var16 = this.method16743(var2, var15, this.aBool10813, -944799668);
      if(var16 != null) {
         this.aClass568_10805 = (Class568)var16.anObject5439;
         this.aClass225_Sub14_Sub16_10806 = (Class225_Sub14_Sub16)var16.anObject5438;
         if(var4.aBool5568) {
            this.aClass568_10805 = this.aClass568_10805.method12060((byte)0, var15, false);
            if(var4.aBool5568) {
               Class268 var17 = client.aClass279_7807.method4956(406214226);
               this.aClass568_10805.PA(12420927 * var17.anInt3101, -241559691 * var17.anInt3102, 1796417917 * var17.anInt3104, var17.anInt3103 * 420917011);
            }
         }
      }

      this.method13408(1, -867096999);
   }

   public boolean method100() {
      return this.aBool10813;
   }

   public void method101(Class545 var1) {
      Class225_Sub14_Sub16 var2 = null;
      if(this.aClass225_Sub14_Sub16_10806 == null && this.aBool10813) {
         Class437 var3 = this.method16743(var1, 262144, true, -1391734776);
         var2 = (Class225_Sub14_Sub16)(var3 != null?var3.anObject5438:null);
      } else {
         var2 = this.aClass225_Sub14_Sub16_10806;
         this.aClass225_Sub14_Sub16_10806 = null;
      }

      Class326 var4 = this.method10913().aClass326_4031;
      if(null != var2) {
         this.aClass241_8441.method4270(var2, this.aByte8444, (int)var4.aFloat4036, (int)var4.aFloat4033, (boolean[])null, -1931596349);
      }

   }

   public void method102(Class545 var1) {
      Class225_Sub14_Sub16 var2 = null;
      if(this.aClass225_Sub14_Sub16_10806 == null && this.aBool10813) {
         Class437 var3 = this.method16743(var1, 262144, true, -1937094775);
         var2 = (Class225_Sub14_Sub16)(var3 != null?var3.anObject5438:null);
      } else {
         var2 = this.aClass225_Sub14_Sub16_10806;
         this.aClass225_Sub14_Sub16_10806 = null;
      }

      Class326 var4 = this.method10913().aClass326_4031;
      if(var2 != null) {
         this.aClass241_8441.method4218(var2, this.aByte8444, (int)var4.aFloat4036, (int)var4.aFloat4033, (boolean[])null, 2027147348);
      }

   }

   void method13422(Class545 var1) {}

   boolean method13409() {
      return null != this.aClass568_10805?!this.aClass568_10805.u():true;
   }

   boolean method13410() {
      return this.aClass568_10805 != null?this.aClass568_10805.i():false;
   }

   public int method13415() {
      return null != this.aClass568_10805?this.aClass568_10805.YA():0;
   }

   boolean method13393() {
      return this.aClass568_10805 != null?this.aClass568_10805.i():false;
   }

   boolean method13431() {
      return this.aClass568_10805 != null?this.aClass568_10805.i():false;
   }

   public int method13414() {
      return null != this.aClass568_10805?this.aClass568_10805.YA():0;
   }

   public int method89(byte var1) {
      return this.aByte10809;
   }

   public Class571 method13416(Class545 var1) {
      Class326 var2 = this.method10913().aClass326_4031;
      if(this.aClass571_10807 == null) {
         this.aClass571_10807 = Class225_Sub3.method13342((int)var2.aFloat4036, (int)var2.aFloat4037, (int)var2.aFloat4033, this.method16742(var1, 0, 16711680), (byte)17);
      }

      return this.aClass571_10807;
   }

   public void method88(byte var1) {
      if(null != this.aClass568_10805) {
         this.aClass568_10805.method12100();
      }

   }

   void method13412(Class545 var1) {}

   void method13421(Class545 var1) {}

   public void method97() {
      if(null != this.aClass568_10805) {
         this.aClass568_10805.method12100();
      }

   }

   void method13432(Class545 var1) {}

   boolean method13452(Class545 var1, int var2, int var3) {
      Class568 var4 = this.method16742(var1, 131072, 16711680);
      if(null != var4) {
         Class328 var5 = this.method10915();
         return var4.method12070(var2, var3, var5, false, 0);
      } else {
         return false;
      }
   }

   Class568 method16745(Class545 var1, int var2) {
      if(this.aClass568_10805 != null && var1.method11494(this.aClass568_10805.m(), var2) == 0) {
         return this.aClass568_10805;
      } else {
         Class437 var3 = this.method16743(var1, var2, false, -2112267925);
         return null != var3?(Class568)var3.anObject5439:null;
      }
   }

   public void method98() {
      if(null != this.aClass568_10805) {
         this.aClass568_10805.method12100();
      }

   }

   static void method16746(int var0) {
      Class496_Sub2.method15407(false, 54970357);
      if(-602227311 * Class215_Sub1.anInt8344 >= 0 && 0 != Class215_Sub1.anInt8344 * -602227311) {
         Class62_Sub2.method13095(Class215_Sub1.anInt8344 * -602227311, false, 1565166678);
         if(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-40) != Class215_Sub1.anInt8344 * -602227311) {
            switch(Class215_Sub1.anInt8344 * -602227311) {
            case 1:
               Class363.method6467(Class453.aClass453_5662, 567609405);
               break;
            case 2:
               Class363.method6467(Class453.aClass453_5667, 567609405);
               break;
            case 3:
               Class363.method6467(Class453.aClass453_5669, 567609405);
            }
         }

         Class215_Sub1.anInt8344 = -1443865457;
      }

   }

   static String method16747(long var0, int var2, int var3) {
      Class90.method1801(var0);
      int var4 = Class409.aCalendar5008.get(5);
      int var5 = Class409.aCalendar5008.get(2) + 1;
      int var6 = Class409.aCalendar5008.get(1);
      return Integer.toString(var4 / 10) + var4 % 10 + "/" + var5 / 10 + var5 % 10 + "/" + var6 % 100 / 10 + var6 % 10;
   }

   public static Frame method16748(Class466 var0, int var1, int var2, int var3, int var4, int var5) {
      if(0 == var3) {
         Class444[] var6 = Class118.method2319(var0, 1639133359);
         if(var6 == null) {
            return null;
         }

         boolean var7 = false;

         for(int var8 = 0; var8 < var6.length; ++var8) {
            if(var1 == var6[var8].anInt5489 * -179236885 && var2 == 619380621 * var6[var8].anInt5487 && (var4 == 0 || var6[var8].anInt5486 * -359520353 == var4) && (!var7 || -1943256849 * var6[var8].anInt5488 > var3)) {
               var3 = var6[var8].anInt5488 * -1943256849;
               var7 = true;
            }
         }

         if(!var7) {
            return null;
         }
      }

      Frame var9 = new Frame("Jagex Full Screen");
      var9.setResizable(false);
      var0.method7845(var9, var1, var2, var3, var4, -1497290928);
      return var9;
   }
}
