
public class Class74_Sub1_Sub2 extends Class74_Sub1 {

   public Class317 aClass317_10253 = new Class317();
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_10254;
   float[] aFloatArray10255 = new float[4];
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_10256;
   Class100 aClass100_10257;
   Class100 aClass100_10258;
   public Class317 aClass317_10259 = new Class317();
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_10260;
   public int anInt10261;
   float aFloat10262;
   float[] aFloatArray10263 = new float[4];
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_10264;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_10265;
   Class63 aClass63_10266;
   public int anInt10267;
   public int anInt10268;
   Class225_Sub36_Sub1 aClass225_Sub36_Sub1_10269;
   public int anInt10270;


   public Class74_Sub1_Sub2(Class545_Sub2 var1, Class63 var2) throws Exception_Sub3 {
      super(var1);
      this.aClass63_10266 = var2;
      if(this.aClass63_10266.method1309() && var1.method14967()) {
         this.method13117("Waterfall");
      }

   }

   boolean method13118() throws Exception_Sub3 {
      this.aClass225_Sub36_Sub1_10260 = this.aClass103_8163.method2030("WorldMatrix", 1260071763);
      this.aClass225_Sub36_Sub1_10265 = this.aClass103_8163.method2030("WVPMatrix", 455468923);
      this.aClass225_Sub36_Sub1_10269 = this.aClass103_8163.method2030("UGenerationPlane", -588796565);
      this.aClass225_Sub36_Sub1_10264 = this.aClass103_8163.method2030("VGenerationPlane", 640386952);
      this.aClass225_Sub36_Sub1_10254 = this.aClass103_8163.method2030("Time", 1198360128);
      this.aClass225_Sub36_Sub1_10256 = this.aClass103_8163.method2030("billowSampler3D", 1922777071);
      if(this.aClass63_10266.aBool580) {
         this.aClass100_10258 = this.aClass103_8163.method2000("Waterfall3D", 169964444);
         this.aClass103_8163.method2007(this.aClass100_10258);
      } else {
         this.aClass100_10257 = this.aClass103_8163.method2000("Waterfall2D", 169964444);
         this.aClass103_8163.method2007(this.aClass100_10257);
      }

      return true;
   }

   public void method15829(int var1, int var2, int var3) {
      float var4 = (float)(1 + (var1 & 3)) * -5.0E-4F;
      float var5 = (float)((var1 >> 3 & 3) + 1) * 5.0E-4F;
      float var6 = (var1 & 64) == 0?4.8828125E-4F:9.765625E-4F;
      boolean var7 = (var1 & 128) != 0;
      if(var7) {
         this.aFloatArray10263[0] = var6;
         this.aFloatArray10263[1] = 0.0F;
         this.aFloatArray10263[2] = 0.0F;
         this.aFloatArray10263[3] = 0.0F;
      } else {
         this.aFloatArray10263[0] = 0.0F;
         this.aFloatArray10263[1] = 0.0F;
         this.aFloatArray10263[2] = var6;
         this.aFloatArray10263[3] = 0.0F;
      }

      this.aFloatArray10255[0] = 0.0F;
      this.aFloatArray10255[1] = var6;
      this.aFloatArray10255[2] = 0.0F;
      this.aFloatArray10255[3] = (float)this.aClass545_Sub2_695.anInt9644 * var4 % 1.0F;
      if(!this.aClass63_10266.aBool580) {
         int var8 = (int)(var5 * (float)this.aClass545_Sub2_695.anInt9644 * 16.0F);
         this.aClass545_Sub2_695.method15051(this.aClass63_10266.anInterface33Array587[var8 % 16]);
      } else {
         this.aFloat10262 = (float)((double)this.aClass545_Sub2_695.anInt9644 * (double)var5 % 1.0D);
      }

   }

   public void method15830(int var1) {
      if(this.aClass63_10266.aBool580) {
         this.aClass103_8163.method2007(this.aClass100_10258);
      } else {
         this.aClass103_8163.method2007(this.aClass100_10257);
      }

      this.aClass103_8163.method1997();
      if(this.aClass63_10266.aBool580) {
         this.aClass103_8163.method2021(this.aClass225_Sub36_Sub1_10256, 0, this.aClass63_10266.anInterface3_588, -1824952514);
      }

      this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_10260, this.aClass317_10253, (short)31639);
      this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_10265, this.aClass317_10259, (short)17754);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10269, new Class318(this.aFloatArray10263[0], this.aFloatArray10263[1], this.aFloatArray10263[2], this.aFloatArray10263[3]), (short)-1527);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10264, new Class318(this.aFloatArray10255[0], this.aFloatArray10255[1], this.aFloatArray10255[2], this.aFloatArray10255[3]), (short)9732);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10254, new Class318(this.aFloat10262, 0.0F, 0.0F, 0.0F), (short)-29633);
      this.aClass545_Sub2_695.method15086(Class374.aClass374_4670, this.anInt10267 * -1149620015, this.anInt10268 * -598646459, 301294065 * this.anInt10261, this.anInt10270 * 890094739);
   }

   public void method15831() {
      if(this.aClass63_10266.aBool580) {
         this.aClass103_8163.method2007(this.aClass100_10258);
      } else {
         this.aClass103_8163.method2007(this.aClass100_10257);
      }

      this.aClass103_8163.method1997();
      if(this.aClass63_10266.aBool580) {
         this.aClass103_8163.method2021(this.aClass225_Sub36_Sub1_10256, 0, this.aClass63_10266.anInterface3_588, -134488230);
      }

      this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_10260, this.aClass317_10253, (short)32341);
      this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_10265, this.aClass317_10259, (short)29468);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10269, new Class318(this.aFloatArray10263[0], this.aFloatArray10263[1], this.aFloatArray10263[2], this.aFloatArray10263[3]), (short)17904);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10264, new Class318(this.aFloatArray10255[0], this.aFloatArray10255[1], this.aFloatArray10255[2], this.aFloatArray10255[3]), (short)-10309);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10254, new Class318(this.aFloat10262, 0.0F, 0.0F, 0.0F), (short)28170);
      this.aClass545_Sub2_695.method15086(Class374.aClass374_4670, this.anInt10267 * -1149620015, this.anInt10268 * -598646459, 301294065 * this.anInt10261, this.anInt10270 * 890094739);
   }

   boolean method13131() throws Exception_Sub3 {
      this.aClass225_Sub36_Sub1_10260 = this.aClass103_8163.method2030("WorldMatrix", 1623358328);
      this.aClass225_Sub36_Sub1_10265 = this.aClass103_8163.method2030("WVPMatrix", 189653633);
      this.aClass225_Sub36_Sub1_10269 = this.aClass103_8163.method2030("UGenerationPlane", -293692258);
      this.aClass225_Sub36_Sub1_10264 = this.aClass103_8163.method2030("VGenerationPlane", -758319408);
      this.aClass225_Sub36_Sub1_10254 = this.aClass103_8163.method2030("Time", 1095592112);
      this.aClass225_Sub36_Sub1_10256 = this.aClass103_8163.method2030("billowSampler3D", 2081763124);
      if(this.aClass63_10266.aBool580) {
         this.aClass100_10258 = this.aClass103_8163.method2000("Waterfall3D", 169964444);
         this.aClass103_8163.method2007(this.aClass100_10258);
      } else {
         this.aClass100_10257 = this.aClass103_8163.method2000("Waterfall2D", 169964444);
         this.aClass103_8163.method2007(this.aClass100_10257);
      }

      return true;
   }

   public void method15832(int var1, int var2) {
      float var3 = (float)(1 + (var1 & 3)) * -5.0E-4F;
      float var4 = (float)((var1 >> 3 & 3) + 1) * 5.0E-4F;
      float var5 = (var1 & 64) == 0?4.8828125E-4F:9.765625E-4F;
      boolean var6 = (var1 & 128) != 0;
      if(var6) {
         this.aFloatArray10263[0] = var5;
         this.aFloatArray10263[1] = 0.0F;
         this.aFloatArray10263[2] = 0.0F;
         this.aFloatArray10263[3] = 0.0F;
      } else {
         this.aFloatArray10263[0] = 0.0F;
         this.aFloatArray10263[1] = 0.0F;
         this.aFloatArray10263[2] = var5;
         this.aFloatArray10263[3] = 0.0F;
      }

      this.aFloatArray10255[0] = 0.0F;
      this.aFloatArray10255[1] = var5;
      this.aFloatArray10255[2] = 0.0F;
      this.aFloatArray10255[3] = (float)this.aClass545_Sub2_695.anInt9644 * var3 % 1.0F;
      if(!this.aClass63_10266.aBool580) {
         int var7 = (int)(var4 * (float)this.aClass545_Sub2_695.anInt9644 * 16.0F);
         this.aClass545_Sub2_695.method15051(this.aClass63_10266.anInterface33Array587[var7 % 16]);
      } else {
         this.aFloat10262 = (float)((double)this.aClass545_Sub2_695.anInt9644 * (double)var4 % 1.0D);
      }

   }

   public void method15833(int var1, int var2) {
      float var3 = (float)(1 + (var1 & 3)) * -5.0E-4F;
      float var4 = (float)((var1 >> 3 & 3) + 1) * 5.0E-4F;
      float var5 = (var1 & 64) == 0?4.8828125E-4F:9.765625E-4F;
      boolean var6 = (var1 & 128) != 0;
      if(var6) {
         this.aFloatArray10263[0] = var5;
         this.aFloatArray10263[1] = 0.0F;
         this.aFloatArray10263[2] = 0.0F;
         this.aFloatArray10263[3] = 0.0F;
      } else {
         this.aFloatArray10263[0] = 0.0F;
         this.aFloatArray10263[1] = 0.0F;
         this.aFloatArray10263[2] = var5;
         this.aFloatArray10263[3] = 0.0F;
      }

      this.aFloatArray10255[0] = 0.0F;
      this.aFloatArray10255[1] = var5;
      this.aFloatArray10255[2] = 0.0F;
      this.aFloatArray10255[3] = (float)this.aClass545_Sub2_695.anInt9644 * var3 % 1.0F;
      if(!this.aClass63_10266.aBool580) {
         int var7 = (int)(var4 * (float)this.aClass545_Sub2_695.anInt9644 * 16.0F);
         this.aClass545_Sub2_695.method15051(this.aClass63_10266.anInterface33Array587[var7 % 16]);
      } else {
         this.aFloat10262 = (float)((double)this.aClass545_Sub2_695.anInt9644 * (double)var4 % 1.0D);
      }

   }

   public void method15834() {
      if(this.aClass63_10266.aBool580) {
         this.aClass103_8163.method2007(this.aClass100_10258);
      } else {
         this.aClass103_8163.method2007(this.aClass100_10257);
      }

      this.aClass103_8163.method1997();
      if(this.aClass63_10266.aBool580) {
         this.aClass103_8163.method2021(this.aClass225_Sub36_Sub1_10256, 0, this.aClass63_10266.anInterface3_588, 592786818);
      }

      this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_10260, this.aClass317_10253, (short)28633);
      this.aClass103_8163.method2020(this.aClass225_Sub36_Sub1_10265, this.aClass317_10259, (short)31981);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10269, new Class318(this.aFloatArray10263[0], this.aFloatArray10263[1], this.aFloatArray10263[2], this.aFloatArray10263[3]), (short)-2330);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10264, new Class318(this.aFloatArray10255[0], this.aFloatArray10255[1], this.aFloatArray10255[2], this.aFloatArray10255[3]), (short)1179);
      this.aClass103_8163.method2028(this.aClass225_Sub36_Sub1_10254, new Class318(this.aFloat10262, 0.0F, 0.0F, 0.0F), (short)11882);
      this.aClass545_Sub2_695.method15086(Class374.aClass374_4670, this.anInt10267 * -1149620015, this.anInt10268 * -598646459, 301294065 * this.anInt10261, this.anInt10270 * 890094739);
   }

   boolean method13123() throws Exception_Sub3 {
      this.aClass225_Sub36_Sub1_10260 = this.aClass103_8163.method2030("WorldMatrix", -201728081);
      this.aClass225_Sub36_Sub1_10265 = this.aClass103_8163.method2030("WVPMatrix", 1210419485);
      this.aClass225_Sub36_Sub1_10269 = this.aClass103_8163.method2030("UGenerationPlane", -544903413);
      this.aClass225_Sub36_Sub1_10264 = this.aClass103_8163.method2030("VGenerationPlane", 114673211);
      this.aClass225_Sub36_Sub1_10254 = this.aClass103_8163.method2030("Time", -537432516);
      this.aClass225_Sub36_Sub1_10256 = this.aClass103_8163.method2030("billowSampler3D", 68590454);
      if(this.aClass63_10266.aBool580) {
         this.aClass100_10258 = this.aClass103_8163.method2000("Waterfall3D", 169964444);
         this.aClass103_8163.method2007(this.aClass100_10258);
      } else {
         this.aClass100_10257 = this.aClass103_8163.method2000("Waterfall2D", 169964444);
         this.aClass103_8163.method2007(this.aClass100_10257);
      }

      return true;
   }
}
