
public abstract class Class74_Sub1 extends Class74 {

   static final int anInt8162 = 64;
   protected Class103 aClass103_8163;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8164;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8165;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8166;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8167;
   static final int anInt8168 = 32;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8169;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8170;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8171;
   static final int anInt8172 = 16;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8173;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8174;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8175;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8176;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8177;
   static final int anInt8178 = 2;
   static final int anInt8179 = 1;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8180;
   static final int anInt8181 = 4;
   static final int anInt8182 = 8;
   int anInt8183;
   Class317[] aClass317Array8184;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8185;
   static final int anInt8186 = 128;
   float[] aFloatArray8187 = new float[3];
   int[] anIntArray8188;
   static Class317 aClass317_8189 = new Class317();
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8190;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_8191;


   void method1609() {
      this.method13126(Class328.aClass328_4074);
   }

   boolean method13117(String var1) throws Exception_Sub3 {
      this.aClass103_8163 = this.aClass545_Sub2_695.method15316(var1);
      if(this.aClass103_8163 == null) {
         throw new Exception_Sub3("");
      } else {
         this.aClass225_Sub36_Sub1_8185 = this.aClass103_8163.method2065("textureMatrix", (byte)57);
         this.aClass225_Sub36_Sub1_8164 = this.aClass103_8163.method2065("modelMatrix", (byte)-54);
         this.aClass225_Sub36_Sub1_8165 = this.aClass103_8163.method2065("viewMatrix", (byte)51);
         this.aClass225_Sub36_Sub1_8166 = this.aClass103_8163.method2065("projectionMatrix", (byte)-35);
         this.aClass225_Sub36_Sub1_8180 = this.aClass103_8163.method2065("modelViewMatrix", (byte)78);
         this.aClass225_Sub36_Sub1_8169 = this.aClass103_8163.method2065("modelViewProjectionMatrix", (byte)21);
         this.aClass225_Sub36_Sub1_8170 = this.aClass103_8163.method2065("viewProjectionMatrix", (byte)5);
         this.aClass225_Sub36_Sub1_8174 = this.aClass103_8163.method2065("ambientColour", (byte)30);
         this.aClass225_Sub36_Sub1_8177 = this.aClass103_8163.method2065("sunDirection", (byte)-12);
         this.aClass225_Sub36_Sub1_8175 = this.aClass103_8163.method2065("sunColour", (byte)-10);
         this.aClass225_Sub36_Sub1_8176 = this.aClass103_8163.method2065("antiSunColour", (byte)-9);
         this.aClass225_Sub36_Sub1_8167 = this.aClass103_8163.method2065("sunExponent", (byte)48);
         this.aClass225_Sub36_Sub1_8171 = this.aClass103_8163.method2065("eyePosition", (byte)60);
         this.aClass225_Sub36_Sub1_8191 = this.aClass103_8163.method2065("eyePositionOS", (byte)-24);
         this.aClass225_Sub36_Sub1_8173 = this.aClass103_8163.method2065("sunDirectionOS", (byte)-51);
         if(!this.method13118()) {
            this.aClass103_8163 = null;
            this.aClass225_Sub36_Sub1_8185 = null;
            this.aClass225_Sub36_Sub1_8164 = null;
            this.aClass225_Sub36_Sub1_8165 = null;
            this.aClass225_Sub36_Sub1_8166 = null;
            this.aClass225_Sub36_Sub1_8180 = null;
            this.aClass225_Sub36_Sub1_8169 = null;
            this.aClass225_Sub36_Sub1_8170 = null;
            this.aClass225_Sub36_Sub1_8174 = null;
            this.aClass225_Sub36_Sub1_8177 = null;
            this.aClass225_Sub36_Sub1_8175 = null;
            this.aClass225_Sub36_Sub1_8176 = null;
            this.aClass225_Sub36_Sub1_8167 = null;
            this.aClass225_Sub36_Sub1_8171 = null;
            this.aClass225_Sub36_Sub1_8191 = null;
            this.aClass225_Sub36_Sub1_8173 = null;
            return false;
         } else {
            if(this.aClass103_8163.method2035(-1820416874) == null) {
               Class100 var2 = this.aClass103_8163.method2036((byte)-98);
               if(var2 == null) {
                  throw new Exception_Sub3(this.aClass103_8163.method2101(-603275679) + "");
               }

               this.aClass103_8163.method2007(var2);
            }

            this.anInt8183 = this.aClass103_8163.method2003(-436795351);
            this.anIntArray8188 = new int[this.anInt8183];
            return true;
         }
      }
   }

   abstract boolean method13118() throws Exception_Sub3;

   void method13119() {
      this.method13124(this.aClass545_Sub2_695.aBool9685);
      this.method13141(this.aClass545_Sub2_695.method15059());
      this.method13120();
      this.method1596();
   }

   void method1592() {
      this.aClass103_8163.method1997();
      this.anIntArray8188[this.aClass103_8163.method2009(1288210238)] = -1;
      this.method13127(0);
      this.method13151();
   }

   void method1593() {
      if(this.aClass103_8163 != null) {
         this.aClass103_8163.method1998();
      }

   }

   void method13120() {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         int var1 = this.aClass103_8163.method2009(1288210238);
         int var2 = this.anIntArray8188[var1];
         if((var2 & 1) != 0 && this.aClass225_Sub36_Sub1_8164 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, this.aClass545_Sub2_695.method15008(), (short)21036);
         }

         if((var2 & 2) != 0) {
            if(this.aClass225_Sub36_Sub1_8165 != null) {
               this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8165, this.aClass545_Sub2_695.method15003(), (short)28575);
            }

            if(this.aClass225_Sub36_Sub1_8171 != null) {
               this.aFloatArray8187[0] = 0.0F;
               this.aFloatArray8187[1] = 0.0F;
               this.aFloatArray8187[2] = 0.0F;
               this.aClass545_Sub2_695.method11498().method6009(this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], this.aFloatArray8187);
               this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8171, this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], (byte)8);
            }
         }

         if((var2 & 16) != 0 && this.aClass225_Sub36_Sub1_8180 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, this.aClass545_Sub2_695.method15010(), (short)24085);
         }

         if((var2 & 8) != 0 && this.aClass225_Sub36_Sub1_8190 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8190, this.aClass545_Sub2_695.method15017(), (short)28790);
         }

         if((var2 & 4) != 0 && this.aClass225_Sub36_Sub1_8166 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8166, this.aClass545_Sub2_695.method15012(), (short)16129);
         }

         if((var2 & 32) != 0 && this.aClass225_Sub36_Sub1_8169 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15010(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)15309);
         }

         if((var2 & 64) != 0 && this.aClass225_Sub36_Sub1_8170 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15003(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8170, aClass317_8189, (short)32610);
         }

         if(this.aClass545_Sub2_695.method15049() == 0 && (this.anIntArray8188[var1] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, this.aClass545_Sub2_695.method15059(), (byte)0);
            this.anIntArray8188[var1] &= -129;
         }

         this.anIntArray8188[var1] = 0;
      }

   }

   void method13121(Class328 var1) {
      Class317 var2 = this.aClass545_Sub2_695.aClass317_9649;
      var2.method5613(var1);
      int var3 = this.aClass103_8163.method2009(1288210238);
      if(this.aClass225_Sub36_Sub1_8164 != null) {
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, var2, (short)7902);
         this.anIntArray8188[var3] &= -2;
      }

      if(this.aClass225_Sub36_Sub1_8180 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15003());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, aClass317_8189, (short)25090);
         this.anIntArray8188[var3] &= -17;
      }

      if(this.aClass225_Sub36_Sub1_8169 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15011());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)32510);
         this.anIntArray8188[var3] &= -33;
      }

      this.method13122(var3, var1);
      this.method13140(var3, var1);
   }

   void method13122(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8191 != null) {
         Class317 var3 = this.aClass545_Sub2_695.method15017();
         float[] var4 = new float[]{var3.aFloatArray4000[12], var3.aFloatArray4000[13], var3.aFloatArray4000[14]};
         float[] var5 = new float[]{0.0F, 0.0F, 0.0F};
         var3.method5619(var5);
         float[] var6 = new float[]{0.0F, 0.0F, 0.0F};
         this.aClass545_Sub2_695.method11498().method6008(0.0F, 0.0F, 0.0F, var6);
         var2.method6010(var4);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8191, var4[0], var4[1], var4[2], (byte)8);
      }

   }

   abstract boolean method13123() throws Exception_Sub3;

   void method13124(boolean var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         if(this.aClass225_Sub36_Sub1_8174 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8174, this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9760, this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9760, this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9760, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8177 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8177, this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2], (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8175 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8175, this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9705, this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9705, this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9705, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8176 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8176, -this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9706, -this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9706, -this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9706, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8167 != null) {
            this.aClass103_8163.method2011(this.aClass225_Sub36_Sub1_8167, 64.0F + Math.abs(this.aClass545_Sub2_695.aFloatArray9712[1]) * 928.0F, -873614319);
         }
      }

   }

   void method1607() {}

   void method13125(boolean var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         if(this.aClass225_Sub36_Sub1_8174 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8174, this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9760, this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9760, this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9760, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8177 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8177, this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2], (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8175 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8175, this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9705, this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9705, this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9705, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8176 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8176, -this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9706, -this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9706, -this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9706, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8167 != null) {
            this.aClass103_8163.method2011(this.aClass225_Sub36_Sub1_8167, 64.0F + Math.abs(this.aClass545_Sub2_695.aFloatArray9712[1]) * 928.0F, -1585070836);
         }
      }

   }

   void method13126(Class328 var1) {
      Class317 var2 = this.aClass545_Sub2_695.aClass317_9649;
      var2.method5613(var1);
      int var3 = this.aClass103_8163.method2009(1288210238);
      if(this.aClass225_Sub36_Sub1_8164 != null) {
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, var2, (short)32658);
         this.anIntArray8188[var3] &= -2;
      }

      if(this.aClass225_Sub36_Sub1_8180 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15003());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, aClass317_8189, (short)29591);
         this.anIntArray8188[var3] &= -17;
      }

      if(this.aClass225_Sub36_Sub1_8169 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15011());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)1062);
         this.anIntArray8188[var3] &= -33;
      }

      this.method13122(var3, var1);
      this.method13140(var3, var1);
   }

   void method1604() {
      this.method13126(Class328.aClass328_4074);
   }

   void method13127(int var1) {
      this.aClass317Array8184[0].method5733();
      this.method13129(var1);
   }

   void method13128(Class328 var1) {
      Class317 var2 = this.aClass545_Sub2_695.aClass317_9649;
      var2.method5613(var1);
      int var3 = this.aClass103_8163.method2009(1288210238);
      if(this.aClass225_Sub36_Sub1_8164 != null) {
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, var2, (short)20927);
         this.anIntArray8188[var3] &= -2;
      }

      if(this.aClass225_Sub36_Sub1_8180 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15003());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, aClass317_8189, (short)4387);
         this.anIntArray8188[var3] &= -17;
      }

      if(this.aClass225_Sub36_Sub1_8169 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15011());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)22598);
         this.anIntArray8188[var3] &= -33;
      }

      this.method13122(var3, var1);
      this.method13140(var3, var1);
   }

   void method1600() {
      this.aClass103_8163.method1997();
      this.anIntArray8188[this.aClass103_8163.method2009(1288210238)] = -1;
      this.method13127(0);
      this.method13151();
   }

   void method1601() {
      this.aClass103_8163.method1997();
      this.anIntArray8188[this.aClass103_8163.method2009(1288210238)] = -1;
      this.method13127(0);
      this.method13151();
   }

   void method13129(int var1) {
      for(int var2 = 0; var2 < this.anInt8183; ++var2) {
         this.anIntArray8188[var2] |= 128 << var1;
      }

   }

   void method1596() {}

   void method1608() {}

   void method1606() {}

   void method1613() {
      this.method13126(Class328.aClass328_4074);
   }

   void method13130(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8191 != null) {
         Class317 var3 = this.aClass545_Sub2_695.method15017();
         float[] var4 = new float[]{var3.aFloatArray4000[12], var3.aFloatArray4000[13], var3.aFloatArray4000[14]};
         float[] var5 = new float[]{0.0F, 0.0F, 0.0F};
         var3.method5619(var5);
         float[] var6 = new float[]{0.0F, 0.0F, 0.0F};
         this.aClass545_Sub2_695.method11498().method6008(0.0F, 0.0F, 0.0F, var6);
         var2.method6010(var4);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8191, var4[0], var4[1], var4[2], (byte)8);
      }

   }

   void method1615() {
      this.method13126(Class328.aClass328_4074);
   }

   Class74_Sub1(Class545_Sub2 var1) {
      super(var1);
      new Class328();
      this.aClass317Array8184 = new Class317[this.aClass545_Sub2_695.anInt9764];

      for(int var2 = 0; var2 < this.aClass545_Sub2_695.anInt9764; ++var2) {
         this.aClass317Array8184[var2] = new Class317();
      }

   }

   abstract boolean method13131() throws Exception_Sub3;

   void method13132(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8191 != null) {
         Class317 var3 = this.aClass545_Sub2_695.method15017();
         float[] var4 = new float[]{var3.aFloatArray4000[12], var3.aFloatArray4000[13], var3.aFloatArray4000[14]};
         float[] var5 = new float[]{0.0F, 0.0F, 0.0F};
         var3.method5619(var5);
         float[] var6 = new float[]{0.0F, 0.0F, 0.0F};
         this.aClass545_Sub2_695.method11498().method6008(0.0F, 0.0F, 0.0F, var6);
         var2.method6010(var4);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8191, var4[0], var4[1], var4[2], (byte)8);
      }

   }

   void method13133() {
      this.method13124(this.aClass545_Sub2_695.aBool9685);
      this.method13141(this.aClass545_Sub2_695.method15059());
      this.method13120();
      this.method1596();
   }

   void method13134(Class317 var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039() && this.aClass545_Sub2_695.method15049() == 0) {
         int var2 = this.aClass103_8163.method2009(1288210238);
         if((this.anIntArray8188[var2] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, var1, (byte)0);
            this.anIntArray8188[var2] &= -129;
         }
      }

   }

   void method13135(Class317 var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039() && this.aClass545_Sub2_695.method15049() == 0) {
         int var2 = this.aClass103_8163.method2009(1288210238);
         if((this.anIntArray8188[var2] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, var1, (byte)0);
            this.anIntArray8188[var2] &= -129;
         }
      }

   }

   void method13136(Class317 var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039() && this.aClass545_Sub2_695.method15049() == 0) {
         int var2 = this.aClass103_8163.method2009(1288210238);
         if((this.anIntArray8188[var2] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, var1, (byte)0);
            this.anIntArray8188[var2] &= -129;
         }
      }

   }

   void method13137() {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         int var1 = this.aClass103_8163.method2009(1288210238);
         int var2 = this.anIntArray8188[var1];
         if((var2 & 1) != 0 && this.aClass225_Sub36_Sub1_8164 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, this.aClass545_Sub2_695.method15008(), (short)23144);
         }

         if((var2 & 2) != 0) {
            if(this.aClass225_Sub36_Sub1_8165 != null) {
               this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8165, this.aClass545_Sub2_695.method15003(), (short)13525);
            }

            if(this.aClass225_Sub36_Sub1_8171 != null) {
               this.aFloatArray8187[0] = 0.0F;
               this.aFloatArray8187[1] = 0.0F;
               this.aFloatArray8187[2] = 0.0F;
               this.aClass545_Sub2_695.method11498().method6009(this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], this.aFloatArray8187);
               this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8171, this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], (byte)8);
            }
         }

         if((var2 & 16) != 0 && this.aClass225_Sub36_Sub1_8180 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, this.aClass545_Sub2_695.method15010(), (short)25653);
         }

         if((var2 & 8) != 0 && this.aClass225_Sub36_Sub1_8190 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8190, this.aClass545_Sub2_695.method15017(), (short)9596);
         }

         if((var2 & 4) != 0 && this.aClass225_Sub36_Sub1_8166 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8166, this.aClass545_Sub2_695.method15012(), (short)2608);
         }

         if((var2 & 32) != 0 && this.aClass225_Sub36_Sub1_8169 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15010(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)28000);
         }

         if((var2 & 64) != 0 && this.aClass225_Sub36_Sub1_8170 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15003(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8170, aClass317_8189, (short)4394);
         }

         if(this.aClass545_Sub2_695.method15049() == 0 && (this.anIntArray8188[var1] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, this.aClass545_Sub2_695.method15059(), (byte)0);
            this.anIntArray8188[var1] &= -129;
         }

         this.anIntArray8188[var1] = 0;
      }

   }

   void method13138() {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         int var1 = this.aClass103_8163.method2009(1288210238);
         int var2 = this.anIntArray8188[var1];
         if((var2 & 1) != 0 && this.aClass225_Sub36_Sub1_8164 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, this.aClass545_Sub2_695.method15008(), (short)25242);
         }

         if((var2 & 2) != 0) {
            if(this.aClass225_Sub36_Sub1_8165 != null) {
               this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8165, this.aClass545_Sub2_695.method15003(), (short)10906);
            }

            if(this.aClass225_Sub36_Sub1_8171 != null) {
               this.aFloatArray8187[0] = 0.0F;
               this.aFloatArray8187[1] = 0.0F;
               this.aFloatArray8187[2] = 0.0F;
               this.aClass545_Sub2_695.method11498().method6009(this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], this.aFloatArray8187);
               this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8171, this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], (byte)8);
            }
         }

         if((var2 & 16) != 0 && this.aClass225_Sub36_Sub1_8180 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, this.aClass545_Sub2_695.method15010(), (short)6561);
         }

         if((var2 & 8) != 0 && this.aClass225_Sub36_Sub1_8190 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8190, this.aClass545_Sub2_695.method15017(), (short)27578);
         }

         if((var2 & 4) != 0 && this.aClass225_Sub36_Sub1_8166 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8166, this.aClass545_Sub2_695.method15012(), (short)29417);
         }

         if((var2 & 32) != 0 && this.aClass225_Sub36_Sub1_8169 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15010(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)9925);
         }

         if((var2 & 64) != 0 && this.aClass225_Sub36_Sub1_8170 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15003(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8170, aClass317_8189, (short)29769);
         }

         if(this.aClass545_Sub2_695.method15049() == 0 && (this.anIntArray8188[var1] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, this.aClass545_Sub2_695.method15059(), (byte)0);
            this.anIntArray8188[var1] &= -129;
         }

         this.anIntArray8188[var1] = 0;
      }

   }

   void method13139() {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         int var1 = this.aClass103_8163.method2009(1288210238);
         int var2 = this.anIntArray8188[var1];
         if((var2 & 1) != 0 && this.aClass225_Sub36_Sub1_8164 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, this.aClass545_Sub2_695.method15008(), (short)8039);
         }

         if((var2 & 2) != 0) {
            if(this.aClass225_Sub36_Sub1_8165 != null) {
               this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8165, this.aClass545_Sub2_695.method15003(), (short)16634);
            }

            if(this.aClass225_Sub36_Sub1_8171 != null) {
               this.aFloatArray8187[0] = 0.0F;
               this.aFloatArray8187[1] = 0.0F;
               this.aFloatArray8187[2] = 0.0F;
               this.aClass545_Sub2_695.method11498().method6009(this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], this.aFloatArray8187);
               this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8171, this.aFloatArray8187[0], this.aFloatArray8187[1], this.aFloatArray8187[2], (byte)8);
            }
         }

         if((var2 & 16) != 0 && this.aClass225_Sub36_Sub1_8180 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, this.aClass545_Sub2_695.method15010(), (short)17810);
         }

         if((var2 & 8) != 0 && this.aClass225_Sub36_Sub1_8190 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8190, this.aClass545_Sub2_695.method15017(), (short)3991);
         }

         if((var2 & 4) != 0 && this.aClass225_Sub36_Sub1_8166 != null) {
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8166, this.aClass545_Sub2_695.method15012(), (short)17073);
         }

         if((var2 & 32) != 0 && this.aClass225_Sub36_Sub1_8169 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15010(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)22452);
         }

         if((var2 & 64) != 0 && this.aClass225_Sub36_Sub1_8170 != null) {
            aClass317_8189.method5611(this.aClass545_Sub2_695.method15003(), this.aClass545_Sub2_695.method15012());
            this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8170, aClass317_8189, (short)14702);
         }

         if(this.aClass545_Sub2_695.method15049() == 0 && (this.anIntArray8188[var1] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, this.aClass545_Sub2_695.method15059(), (byte)0);
            this.anIntArray8188[var1] &= -129;
         }

         this.anIntArray8188[var1] = 0;
      }

   }

   void method13140(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8173 != null) {
         float[] var3 = new float[]{this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2]};
         var2.method6011(var3);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8173, var3[0], var3[1], var3[2], (byte)8);
      }

   }

   void method13141(Class317 var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039() && this.aClass545_Sub2_695.method15049() == 0) {
         int var2 = this.aClass103_8163.method2009(1288210238);
         if((this.anIntArray8188[var2] & 128) != 0 && this.aClass225_Sub36_Sub1_8185 != null) {
            this.aClass103_8163.method2019(this.aClass225_Sub36_Sub1_8185, var1, (byte)0);
            this.anIntArray8188[var2] &= -129;
         }
      }

   }

   void method13142(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8191 != null) {
         Class317 var3 = this.aClass545_Sub2_695.method15017();
         float[] var4 = new float[]{var3.aFloatArray4000[12], var3.aFloatArray4000[13], var3.aFloatArray4000[14]};
         float[] var5 = new float[]{0.0F, 0.0F, 0.0F};
         var3.method5619(var5);
         float[] var6 = new float[]{0.0F, 0.0F, 0.0F};
         this.aClass545_Sub2_695.method11498().method6008(0.0F, 0.0F, 0.0F, var6);
         var2.method6010(var4);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8191, var4[0], var4[1], var4[2], (byte)8);
      }

   }

   void method13143(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8173 != null) {
         float[] var3 = new float[]{this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2]};
         var2.method6011(var3);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8173, var3[0], var3[1], var3[2], (byte)8);
      }

   }

   void method13144(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8173 != null) {
         float[] var3 = new float[]{this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2]};
         var2.method6011(var3);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8173, var3[0], var3[1], var3[2], (byte)8);
      }

   }

   void method13145(int var1, Class328 var2) {
      if(this.aClass225_Sub36_Sub1_8173 != null) {
         float[] var3 = new float[]{this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2]};
         var2.method6011(var3);
         this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8173, var3[0], var3[1], var3[2], (byte)8);
      }

   }

   void method1599() {
      this.aClass103_8163.method1997();
      this.anIntArray8188[this.aClass103_8163.method2009(1288210238)] = -1;
      this.method13127(0);
      this.method13151();
   }

   void method13146(boolean var1) {
      if(this.aClass103_8163 != null && this.aClass103_8163.method2039()) {
         if(this.aClass225_Sub36_Sub1_8174 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8174, this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9760, this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9760, this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9760, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8177 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8177, this.aClass545_Sub2_695.aFloatArray9712[0], this.aClass545_Sub2_695.aFloatArray9712[1], this.aClass545_Sub2_695.aFloatArray9712[2], (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8175 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8175, this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9705, this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9705, this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9705, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8176 != null) {
            this.aClass103_8163.method2013(this.aClass225_Sub36_Sub1_8176, -this.aClass545_Sub2_695.aFloat9701 * this.aClass545_Sub2_695.aFloat9706, -this.aClass545_Sub2_695.aFloat9702 * this.aClass545_Sub2_695.aFloat9706, -this.aClass545_Sub2_695.aFloat9703 * this.aClass545_Sub2_695.aFloat9706, (byte)8);
         }

         if(this.aClass225_Sub36_Sub1_8167 != null) {
            this.aClass103_8163.method2011(this.aClass225_Sub36_Sub1_8167, 64.0F + Math.abs(this.aClass545_Sub2_695.aFloatArray9712[1]) * 928.0F, -25043169);
         }
      }

   }

   void method13147(int var1) {
      for(int var2 = 0; var2 < this.anInt8183; ++var2) {
         this.anIntArray8188[var2] |= 128 << var1;
      }

   }

   void method13148(int var1) {
      for(int var2 = 0; var2 < this.anInt8183; ++var2) {
         this.anIntArray8188[var2] |= 128 << var1;
      }

   }

   void method13149(Class328 var1) {
      Class317 var2 = this.aClass545_Sub2_695.aClass317_9649;
      var2.method5613(var1);
      int var3 = this.aClass103_8163.method2009(1288210238);
      if(this.aClass225_Sub36_Sub1_8164 != null) {
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, var2, (short)32645);
         this.anIntArray8188[var3] &= -2;
      }

      if(this.aClass225_Sub36_Sub1_8180 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15003());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, aClass317_8189, (short)20921);
         this.anIntArray8188[var3] &= -17;
      }

      if(this.aClass225_Sub36_Sub1_8169 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15011());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)10455);
         this.anIntArray8188[var3] &= -33;
      }

      this.method13122(var3, var1);
      this.method13140(var3, var1);
   }

   void method13150(Class328 var1) {
      Class317 var2 = this.aClass545_Sub2_695.aClass317_9649;
      var2.method5613(var1);
      int var3 = this.aClass103_8163.method2009(1288210238);
      if(this.aClass225_Sub36_Sub1_8164 != null) {
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8164, var2, (short)28988);
         this.anIntArray8188[var3] &= -2;
      }

      if(this.aClass225_Sub36_Sub1_8180 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15003());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8180, aClass317_8189, (short)12603);
         this.anIntArray8188[var3] &= -17;
      }

      if(this.aClass225_Sub36_Sub1_8169 != null) {
         aClass317_8189.method5611(var2, this.aClass545_Sub2_695.method15011());
         this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_8169, aClass317_8189, (short)29558);
         this.anIntArray8188[var3] &= -33;
      }

      this.method13122(var3, var1);
      this.method13140(var3, var1);
   }

   void method13151() {
      this.method13124(this.aClass545_Sub2_695.aBool9685);
      this.method13141(this.aClass545_Sub2_695.method15059());
      this.method13120();
      this.method1596();
   }

   void method1602() {
      this.aClass103_8163.method1997();
      this.anIntArray8188[this.aClass103_8163.method2009(1288210238)] = -1;
      this.method13127(0);
      this.method13151();
   }

   void method13152(int var1) {
      this.aClass317Array8184[0].method5733();
      this.method13129(var1);
   }

   void method13153(int var1) {
      this.aClass317Array8184[0].method5733();
      this.method13129(var1);
   }

   void method13154(int var1) {
      this.aClass317Array8184[0].method5733();
      this.method13129(var1);
   }
}
