
public class Class515_Sub1_Sub4_Sub5 extends Class515_Sub1_Sub4 implements Interface20 {

   boolean aBool10814;
   Class568 aClass568_10815;
   Class225_Sub14_Sub16 aClass225_Sub14_Sub16_10816;
   Class571 aClass571_10817;
   Class448 aClass448_10818;
   byte aByte10819;
   byte aByte10820;
   boolean aBool10821;
   boolean aBool10822;
   boolean aBool10823;
   int anInt10824;


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

   void method13430() {
      this.aBool10823 = false;
      if(null != this.aClass568_10815) {
         this.aClass568_10815.KA(this.aClass568_10815.m() & -65537);
      }

   }

   boolean method13451(byte var1) {
      return null != this.aClass568_10815?this.aClass568_10815.i():false;
   }

   public int method16749() {
      return null != this.aClass568_10815?this.aClass568_10815.N() / 4:15;
   }

   Class568 method16750(Class545 var1, int var2, int var3) {
      if(this.aClass568_10815 != null && var1.method11494(this.aClass568_10815.m(), var2) == 0) {
         return this.aClass568_10815;
      } else {
         Class437 var4 = this.method16758(var1, var2, false, -1796251028);
         return null != var4?(Class568)var4.anObject5439:null;
      }
   }

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

   public Class571 method13400(Class545 var1, int var2) {
      Class326 var3 = this.method10913().aClass326_4031;
      if(this.aClass571_10817 == null) {
         this.aClass571_10817 = Class225_Sub3.method13342((int)var3.aFloat4036, (int)var3.aFloat4037, (int)var3.aFloat4033, this.method16750(var1, 0, 697309684), (byte)-49);
      }

      return this.aClass571_10817;
   }

   Class579 method13398(Class545 var1, byte var2) {
      if(this.aClass568_10815 == null) {
         return null;
      } else {
         Class328 var3 = this.method10915();
         Class579 var4 = Class212.method3640(this.aBool10814, (byte)-16);
         this.aClass568_10815.method12069(var3, this.aClass89Array8446[0], 0);
         return var4;
      }
   }

   void method13402(Class545 var1, int var2) {}

   public int method39() {
      return -2068141627 * this.anInt10824;
   }

   boolean method13423(byte var1) {
      return this.aBool10823;
   }

   static byte method16751(int var0, int var1) {
      return (byte)(var0 != -1372814303 * Class458.aClass458_5717.anInt5719?0:((var1 & 1) == 0?1:2));
   }

   void method13397(int var1) {
      this.aBool10823 = false;
      if(null != this.aClass568_10815) {
         this.aClass568_10815.KA(this.aClass568_10815.m() & -65537);
      }

   }

   public int method16752(int var1) {
      int var10000;
      if(null != this.aClass568_10815) {
         if(var1 >= 1695494906) {
            ;
         }

         var10000 = this.aClass568_10815.N() / 4;
      } else {
         var10000 = 15;
      }

      return var10000;
   }

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

   Class437 method16753(Class545 var1, int var2, boolean var3) {
      Class445 var4 = this.aClass448_10818.method7506(this.anInt10824 * -2068141627, 599194876);
      Class400 var5;
      Class400 var6;
      if(this.aBool10821) {
         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.aByte10819 != -1372814303 * Class458.aClass458_5721.anInt5719?this.aByte10819:-1372814303 * Class458.aClass458_5716.anInt5719, -1372814303 * Class458.aClass458_5721.anInt5719 == this.aByte10819?4 + this.aByte10820:this.aByte10820, var5, var6, (int)var7.aFloat4036, (int)var7.aFloat4037, (int)var7.aFloat4033, var3, (Class469)null, (byte)88);
   }

   public Class515_Sub1_Sub4_Sub5(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, int var15, int var16, boolean var17) {
      super(var1, var5, var6, var7, var8, var9, var11, var12, var13, var14, 1513300481 * var4.anInt5528 == 1, Class19.method794(var15, var16, -671792483));
      this.aClass448_10818 = var3;
      this.anInt10824 = -985520647 * var4.anInt5531;
      this.aByte8444 = (byte)var6;
      this.aBool10821 = var10;
      this.aByte10819 = (byte)var15;
      this.aByte10820 = (byte)var16;
      this.aBool10814 = 0 != -22824303 * var4.anInt5544 && !var10;
      this.aBool10823 = var17;
      this.aBool10822 = var2.method11438() && var4.aBool5560 && !this.aBool10821 && Class500.aClass225_Sub6_5953.aClass463_Sub20_8490.method12975(-17793416) != 0;
      int var18 = 2048;
      if(this.aBool10823) {
         var18 |= 65536;
      }

      if(var4.aBool5568) {
         var18 |= 524288;
      }

      Class437 var19 = this.method16758(var2, var18, this.aBool10822, -1829703745);
      if(null != var19) {
         this.aClass568_10815 = (Class568)var19.anObject5439;
         this.aClass225_Sub14_Sub16_10816 = (Class225_Sub14_Sub16)var19.anObject5438;
         if(this.aBool10823 || var4.aBool5568) {
            this.aClass568_10815 = this.aClass568_10815.method12060((byte)0, var18, false);
            if(var4.aBool5568) {
               Class268 var20 = client.aClass279_7807.method4956(-1026353606);
               this.aClass568_10815.PA(var20.anInt3101 * 12420927, var20.anInt3102 * -241559691, var20.anInt3104 * 1796417917, var20.anInt3103 * 420917011);
            }
         }
      }

      this.method13408(1, -867096999);
   }

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

   public void method90(Class545 var1, int var2) {
      Class225_Sub14_Sub16 var3 = null;
      if(null == this.aClass225_Sub14_Sub16_10816 && this.aBool10822) {
         Class437 var4 = this.method16758(var1, 262144, true, -1890105949);
         var3 = (Class225_Sub14_Sub16)(var4 != null?var4.anObject5438:null);
      } else {
         var3 = this.aClass225_Sub14_Sub16_10816;
         this.aClass225_Sub14_Sub16_10816 = null;
      }

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

   }

   public int method99(int var1) {
      return -2068141627 * this.anInt10824;
   }

   public void method85(Class545 var1, int var2) {
      Class225_Sub14_Sub16 var3 = null;
      if(null == this.aClass225_Sub14_Sub16_10816 && this.aBool10822) {
         Class437 var4 = this.method16758(var1, 262144, true, -1647996388);
         var3 = (Class225_Sub14_Sub16)(var4 != null?var4.anObject5438:null);
      } else {
         var3 = this.aClass225_Sub14_Sub16_10816;
         this.aClass225_Sub14_Sub16_10816 = 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);
      }

   }

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

   public int method40() {
      return -2068141627 * this.anInt10824;
   }

   public int method34() {
      return -2068141627 * this.anInt10824;
   }

   public int method29() {
      return -2068141627 * this.anInt10824;
   }

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

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

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

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

   Class437 method16754(Class545 var1, int var2, boolean var3) {
      Class445 var4 = this.aClass448_10818.method7506(this.anInt10824 * -2068141627, 575727102);
      Class400 var5;
      Class400 var6;
      if(this.aBool10821) {
         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.aByte10819 != -1372814303 * Class458.aClass458_5721.anInt5719?this.aByte10819:-1372814303 * Class458.aClass458_5716.anInt5719, -1372814303 * Class458.aClass458_5721.anInt5719 == this.aByte10819?4 + this.aByte10820:this.aByte10820, var5, var6, (int)var7.aFloat4036, (int)var7.aFloat4037, (int)var7.aFloat4033, var3, (Class469)null, (byte)52);
   }

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

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

   }

   public void method102(Class545 var1) {
      Class225_Sub14_Sub16 var2 = null;
      if(null == this.aClass225_Sub14_Sub16_10816 && this.aBool10822) {
         Class437 var3 = this.method16758(var1, 262144, true, -1549549022);
         var2 = (Class225_Sub14_Sub16)(var3 != null?var3.anObject5438:null);
      } else {
         var2 = this.aClass225_Sub14_Sub16_10816;
         this.aClass225_Sub14_Sub16_10816 = 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);
      }

   }

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

   }

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

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

   public void method101(Class545 var1) {
      Class225_Sub14_Sub16 var2 = null;
      if(null == this.aClass225_Sub14_Sub16_10816 && this.aBool10822) {
         Class437 var3 = this.method16758(var1, 262144, true, -1780438877);
         var2 = (Class225_Sub14_Sub16)(var3 != null?var3.anObject5438:null);
      } else {
         var2 = this.aClass225_Sub14_Sub16_10816;
         this.aClass225_Sub14_Sub16_10816 = null;
      }

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

   }

   void method13424(Class545 var1, Class515_Sub1 var2, int var3, int var4, int var5, boolean var6, int var7) {
      if(var2 instanceof Class515_Sub1_Sub3_Sub1) {
         Class515_Sub1_Sub3_Sub1 var8 = (Class515_Sub1_Sub3_Sub1)var2;
         if(this.aClass568_10815 != null && null != var8.aClass568_10716) {
            this.aClass568_10815.method12078(var8.aClass568_10716, var3, var4, var5, var6);
         }
      } else if(var2 instanceof Class515_Sub1_Sub4_Sub5) {
         Class515_Sub1_Sub4_Sub5 var9 = (Class515_Sub1_Sub4_Sub5)var2;
         if(this.aClass568_10815 != null && var9.aClass568_10815 != null) {
            this.aClass568_10815.method12078(var9.aClass568_10815, var3, var4, var5, var6);
         }
      }

   }

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

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

   static byte method16755(int var0, int var1) {
      return (byte)(var0 != -1372814303 * Class458.aClass458_5717.anInt5719?0:((var1 & 1) == 0?1:2));
   }

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

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

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

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

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

   public Class571 method13416(Class545 var1) {
      Class326 var2 = this.method10913().aClass326_4031;
      if(this.aClass571_10817 == null) {
         this.aClass571_10817 = Class225_Sub3.method13342((int)var2.aFloat4036, (int)var2.aFloat4037, (int)var2.aFloat4033, this.method16750(var1, 0, -231689477), (byte)19);
      }

      return this.aClass571_10817;
   }

   Class579 method13419(Class545 var1) {
      if(this.aClass568_10815 == null) {
         return null;
      } else {
         Class328 var2 = this.method10915();
         Class579 var3 = Class212.method3640(this.aBool10814, (byte)-93);
         this.aClass568_10815.method12069(var2, this.aClass89Array8446[0], 0);
         return var3;
      }
   }

   void method13412(Class545 var1) {}

   void method13421(Class545 var1) {}

   void method13422(Class545 var1) {}

   void method13432(Class545 var1) {}

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

   boolean method13447() {
      return this.aBool10823;
   }

   boolean method13449() {
      return this.aBool10823;
   }

   boolean method13427() {
      return this.aBool10823;
   }

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

   }

   static byte method16756(int var0, int var1) {
      return (byte)(var0 != -1372814303 * Class458.aClass458_5717.anInt5719?0:((var1 & 1) == 0?1:2));
   }

   void method13429() {
      this.aBool10823 = false;
      if(null != this.aClass568_10815) {
         this.aClass568_10815.KA(this.aClass568_10815.m() & -65537);
      }

   }

   void method13395(Class545 var1, Class515_Sub1 var2, int var3, int var4, int var5, boolean var6) {
      if(var2 instanceof Class515_Sub1_Sub3_Sub1) {
         Class515_Sub1_Sub3_Sub1 var7 = (Class515_Sub1_Sub3_Sub1)var2;
         if(this.aClass568_10815 != null && null != var7.aClass568_10716) {
            this.aClass568_10815.method12078(var7.aClass568_10716, var3, var4, var5, var6);
         }
      } else if(var2 instanceof Class515_Sub1_Sub4_Sub5) {
         Class515_Sub1_Sub4_Sub5 var8 = (Class515_Sub1_Sub4_Sub5)var2;
         if(this.aClass568_10815 != null && var8.aClass568_10815 != null) {
            this.aClass568_10815.method12078(var8.aClass568_10815, var3, var4, var5, var6);
         }
      }

   }

   void method13396(Class545 var1, Class515_Sub1 var2, int var3, int var4, int var5, boolean var6) {
      if(var2 instanceof Class515_Sub1_Sub3_Sub1) {
         Class515_Sub1_Sub3_Sub1 var7 = (Class515_Sub1_Sub3_Sub1)var2;
         if(this.aClass568_10815 != null && null != var7.aClass568_10716) {
            this.aClass568_10815.method12078(var7.aClass568_10716, var3, var4, var5, var6);
         }
      } else if(var2 instanceof Class515_Sub1_Sub4_Sub5) {
         Class515_Sub1_Sub4_Sub5 var8 = (Class515_Sub1_Sub4_Sub5)var2;
         if(this.aClass568_10815 != null && var8.aClass568_10815 != null) {
            this.aClass568_10815.method12078(var8.aClass568_10815, var3, var4, var5, var6);
         }
      }

   }

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

   public void method88(byte var1) {
      if(this.aClass568_10815 != null) {
         if(var1 != 0) {
            return;
         }

         this.aClass568_10815.method12100();
      }

   }

   static byte method16757(int var0, int var1) {
      return (byte)(var0 != -1372814303 * Class458.aClass458_5717.anInt5719?0:((var1 & 1) == 0?1:2));
   }

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

   public int method13404(byte var1) {
      int var10000;
      if(null != this.aClass568_10815) {
         if(var1 == 72) {
            ;
         }

         var10000 = this.aClass568_10815.YA();
      } else {
         var10000 = 0;
      }

      return var10000;
   }

   Class437 method16758(Class545 var1, int var2, boolean var3, int var4) {
      Class445 var5 = this.aClass448_10818.method7506(this.anInt10824 * -2068141627, 144184297);
      Class400 var6;
      Class400 var7;
      if(this.aBool10821) {
         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.aByte10819 != -1372814303 * Class458.aClass458_5721.anInt5719?this.aByte10819:-1372814303 * Class458.aClass458_5716.anInt5719, -1372814303 * Class458.aClass458_5721.anInt5719 == this.aByte10819?4 + this.aByte10820:this.aByte10820, var6, var7, (int)var8.aFloat4036, (int)var8.aFloat4037, (int)var8.aFloat4033, var3, (Class469)null, (byte)35);
   }

   Class437 method16759(Class545 var1, int var2, boolean var3) {
      Class445 var4 = this.aClass448_10818.method7506(this.anInt10824 * -2068141627, 502700207);
      Class400 var5;
      Class400 var6;
      if(this.aBool10821) {
         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.aByte10819 != -1372814303 * Class458.aClass458_5721.anInt5719?this.aByte10819:-1372814303 * Class458.aClass458_5716.anInt5719, -1372814303 * Class458.aClass458_5721.anInt5719 == this.aByte10819?4 + this.aByte10820:this.aByte10820, var5, var6, (int)var7.aFloat4036, (int)var7.aFloat4037, (int)var7.aFloat4033, var3, (Class469)null, (byte)30);
   }

   void method13407() {
      this.aBool10823 = false;
      if(null != this.aClass568_10815) {
         this.aClass568_10815.KA(this.aClass568_10815.m() & -65537);
      }

   }

   static final void method16760(Class508 var0, int var1) {
      var0.anInt6003 -= 196624946;
      int var2 = var0.anIntArray6027[-937710807 * var0.anInt6003];
      int var3 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 1] - 1;
      ItemDefinition var4 = Class277.aClass410_3220.method7007(var2, -1957162130);
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var4.method6904(var3, (byte)87);
   }
}
