
public class Class309 {

   float[] aFloatArray3920 = new float[2];
   Class307[] aClass307Array3921 = new Class307[1];


   public Class309(RS2Buffer var1) {
      int var2 = var1.readSmart(-132361975);
      this.aClass307Array3921[0] = new Class307();
      this.aClass307Array3921[0].method5466(0, new Class326(var1));
      this.aClass307Array3921[0].method5466(1, new Class326(var1));
      this.aFloatArray3920[0] = var1.method13836(-1333128075);
      this.aClass307Array3921[0].method5466(3, new Class326(var1));
      this.aClass307Array3921[0].method5466(2, new Class326(var1));
      this.aFloatArray3920[1] = var1.method13836(-1622562207);

      for(int var3 = 2; var3 < var2; ++var3) {
         Class326 var4 = new Class326(var1);
         Class326 var5 = new Class326(var1);
         this.method5494(var4, var5, var1.method13836(-1475529058));
      }

   }

   float method5478(int var1) {
      return this.aFloatArray3920[var1];
   }

   public float method5479(float var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;
      float var4 = this.method5478(0);
      float var5 = 0.0F;

      for(int var6 = 0; var6 < this.aClass307Array3921.length; ++var6) {
         var3 += this.aClass307Array3921[var6].method5476();
         var5 = this.method5478(var6 + 1);
         if(var1 < var3) {
            float var7 = (var1 - var2) / (var3 - var2);
            float var8 = var5 - var4;
            if((double)var8 > 3.141592653589793D) {
               var8 -= 6.2831855F;
            } else if((double)var8 < -3.141592653589793D) {
               var8 += 6.2831855F;
            }

            return var4 + var8 * var7;
         }

         var2 = var3;
         var4 = var5;
      }

      return this.aFloatArray3920[this.aFloatArray3920.length - 1];
   }

   public float method5480() {
      float var1 = 0.0F;

      for(int var2 = 0; var2 < this.aClass307Array3921.length; ++var2) {
         var1 += this.aClass307Array3921[var2].method5476();
      }

      return var1;
   }

   public float method5481(float var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;

      for(int var4 = 0; var4 < this.aClass307Array3921.length; ++var4) {
         var3 += this.aClass307Array3921[var4].method5476();
         if(var1 < var3) {
            return this.aClass307Array3921[var4].method5463(var1 - var2) + (float)var4;
         }

         var2 = var3;
      }

      return (float)this.aClass307Array3921.length;
   }

   public Class326 method5482(float var1) {
      int var2 = (int)var1;
      return var2 < this.aClass307Array3921.length?this.aClass307Array3921[var2].method5457(var1 - (float)var2):this.aClass307Array3921[this.aClass307Array3921.length - 1].method5457(1.0F);
   }

   public float method5483(float var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;
      float var4 = this.method5478(0);
      float var5 = 0.0F;

      for(int var6 = 0; var6 < this.aClass307Array3921.length; ++var6) {
         var3 += this.aClass307Array3921[var6].method5476();
         var5 = this.method5478(var6 + 1);
         if(var1 < var3) {
            float var7 = (var1 - var2) / (var3 - var2);
            float var8 = var5 - var4;
            if((double)var8 > 3.141592653589793D) {
               var8 -= 6.2831855F;
            } else if((double)var8 < -3.141592653589793D) {
               var8 += 6.2831855F;
            }

            return var4 + var8 * var7;
         }

         var2 = var3;
         var4 = var5;
      }

      return this.aFloatArray3920[this.aFloatArray3920.length - 1];
   }

   public float method5484(float var1) {
      int var2 = (int)var1;
      if(var2 + 1 < this.aFloatArray3920.length) {
         float var3 = this.aFloatArray3920[var2];
         float var4 = this.aFloatArray3920[var2 + 1];
         float var5 = var1 - (float)var2;
         return (1.0F - var5) * var3 + var5 * var4;
      } else {
         return this.aFloatArray3920[this.aFloatArray3920.length - 1];
      }
   }

   void method5485(Class326 var1, Class326 var2, float var3) {
      Class307[] var4 = new Class307[this.aClass307Array3921.length + 1];
      System.arraycopy(this.aClass307Array3921, 0, var4, 0, this.aClass307Array3921.length);
      Class307 var5 = new Class307();
      Class307 var6 = this.aClass307Array3921[this.aClass307Array3921.length - 1];
      var5.method5466(0, var6.method5460(3));
      Class326 var7 = Class326.method5884(var6.method5460(3), var6.method5460(2));
      var5.method5466(1, Class326.method5870(var6.method5460(3), var7));
      var5.method5466(3, var1);
      var5.method5466(2, var2);
      var4[var4.length - 1] = var5;
      this.aClass307Array3921 = var4;
      float[] var8 = new float[this.aFloatArray3920.length + 1];
      System.arraycopy(this.aFloatArray3920, 0, var8, 0, this.aFloatArray3920.length);
      var8[var8.length - 1] = var3;
      this.aFloatArray3920 = var8;
   }

   void method5486(Class326 var1, Class326 var2, float var3) {
      Class307[] var4 = new Class307[this.aClass307Array3921.length + 1];
      System.arraycopy(this.aClass307Array3921, 0, var4, 0, this.aClass307Array3921.length);
      Class307 var5 = new Class307();
      Class307 var6 = this.aClass307Array3921[this.aClass307Array3921.length - 1];
      var5.method5466(0, var6.method5460(3));
      Class326 var7 = Class326.method5884(var6.method5460(3), var6.method5460(2));
      var5.method5466(1, Class326.method5870(var6.method5460(3), var7));
      var5.method5466(3, var1);
      var5.method5466(2, var2);
      var4[var4.length - 1] = var5;
      this.aClass307Array3921 = var4;
      float[] var8 = new float[this.aFloatArray3920.length + 1];
      System.arraycopy(this.aFloatArray3920, 0, var8, 0, this.aFloatArray3920.length);
      var8[var8.length - 1] = var3;
      this.aFloatArray3920 = var8;
   }

   public float method5487(float var1) {
      int var2 = (int)var1;
      if(var2 + 1 < this.aFloatArray3920.length) {
         float var3 = this.aFloatArray3920[var2];
         float var4 = this.aFloatArray3920[var2 + 1];
         float var5 = var1 - (float)var2;
         return (1.0F - var5) * var3 + var5 * var4;
      } else {
         return this.aFloatArray3920[this.aFloatArray3920.length - 1];
      }
   }

   float method5488(int var1) {
      return this.aFloatArray3920[var1];
   }

   public float method5489() {
      float var1 = 0.0F;

      for(int var2 = 0; var2 < this.aClass307Array3921.length; ++var2) {
         var1 += this.aClass307Array3921[var2].method5476();
      }

      return var1;
   }

   public Class326 method5490(float var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;

      for(int var4 = 0; var4 < this.aClass307Array3921.length; ++var4) {
         var3 += this.aClass307Array3921[var4].method5476();
         if(var1 < var3) {
            float var5 = this.aClass307Array3921[var4].method5463(var1 - var2);
            return this.aClass307Array3921[var4].method5457(var5);
         }

         var2 = var3;
      }

      return this.aClass307Array3921[this.aClass307Array3921.length - 1].method5457(1.0F);
   }

   public float method5491(float var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;

      for(int var4 = 0; var4 < this.aClass307Array3921.length; ++var4) {
         var3 += this.aClass307Array3921[var4].method5476();
         if(var1 < var3) {
            return this.aClass307Array3921[var4].method5463(var1 - var2) + (float)var4;
         }

         var2 = var3;
      }

      return (float)this.aClass307Array3921.length;
   }

   public float method5492(float var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;
      float var4 = this.method5478(0);
      float var5 = 0.0F;

      for(int var6 = 0; var6 < this.aClass307Array3921.length; ++var6) {
         var3 += this.aClass307Array3921[var6].method5476();
         var5 = this.method5478(var6 + 1);
         if(var1 < var3) {
            float var7 = (var1 - var2) / (var3 - var2);
            float var8 = var5 - var4;
            if((double)var8 > 3.141592653589793D) {
               var8 -= 6.2831855F;
            } else if((double)var8 < -3.141592653589793D) {
               var8 += 6.2831855F;
            }

            return var4 + var8 * var7;
         }

         var2 = var3;
         var4 = var5;
      }

      return this.aFloatArray3920[this.aFloatArray3920.length - 1];
   }

   public float method5493() {
      float var1 = 0.0F;

      for(int var2 = 0; var2 < this.aClass307Array3921.length; ++var2) {
         var1 += this.aClass307Array3921[var2].method5476();
      }

      return var1;
   }

   void method5494(Class326 var1, Class326 var2, float var3) {
      Class307[] var4 = new Class307[this.aClass307Array3921.length + 1];
      System.arraycopy(this.aClass307Array3921, 0, var4, 0, this.aClass307Array3921.length);
      Class307 var5 = new Class307();
      Class307 var6 = this.aClass307Array3921[this.aClass307Array3921.length - 1];
      var5.method5466(0, var6.method5460(3));
      Class326 var7 = Class326.method5884(var6.method5460(3), var6.method5460(2));
      var5.method5466(1, Class326.method5870(var6.method5460(3), var7));
      var5.method5466(3, var1);
      var5.method5466(2, var2);
      var4[var4.length - 1] = var5;
      this.aClass307Array3921 = var4;
      float[] var8 = new float[this.aFloatArray3920.length + 1];
      System.arraycopy(this.aFloatArray3920, 0, var8, 0, this.aFloatArray3920.length);
      var8[var8.length - 1] = var3;
      this.aFloatArray3920 = var8;
   }
}
