import java.awt.Image;

public class Class117 {

   static final int anInt1182 = 0;
   Class225_Sub43 aClass225_Sub43_1183;
   static final int anInt1184 = 1;
   Class253 aClass253_1185;
   public int anInt1186;
   Class225_Sub12_Sub2 aClass225_Sub12_Sub2_1187;
   static final int anInt1188 = 2;
   Class197 aClass197_1189 = null;
   int anInt1190 = 0;
   public static Image anImage1191;
   static int anInt1192;


   Class225_Sub43 method2293() {
      return this.aClass225_Sub43_1183;
   }

   Class225_Sub12_Sub2 method2294(int var1) {
      return this.aClass225_Sub12_Sub2_1187;
   }

   Class225_Sub43 method2295() {
      return this.aClass225_Sub43_1183;
   }

   public boolean method2296(int var1) {
      Class246.method4390(1100664093);
      if(0 == 364948885 * this.anInt1190) {
         this.aClass225_Sub43_1183 = Class225_Sub43.method14162(this.aClass253_1185, this.anInt1186 * 855791263, 0);
         if(this.aClass225_Sub43_1183 == null) {
            return false;
         }

         this.aClass197_1189 = new Class197(Class390.aClass253_4850, Class104.aClass253_1019);
         this.anInt1190 = -2054146627;
      }

      if(1 == 364948885 * this.anInt1190) {
         if(!this.aClass225_Sub12_Sub2_1187.method15689(this.aClass225_Sub43_1183, Class104.aClass253_1018, this.aClass197_1189, 22050, -751760050)) {
            return false;
         }

         this.anInt1190 = 186674042;
      }

      return true;
   }

   public boolean method2297(int var1) {
      return 364948885 * this.anInt1190 == 2;
   }

   public Class117(Class253 var1, int var2) {
      this.aClass253_1185 = var1;
      this.anInt1186 = var2 * 127354207;
      this.aClass225_Sub12_Sub2_1187 = new Class225_Sub12_Sub2();
      this.aClass225_Sub12_Sub2_1187.method15673(9, 128, (byte)-41);
   }

   Class225_Sub12_Sub2 method2298() {
      return this.aClass225_Sub12_Sub2_1187;
   }

   Class225_Sub12_Sub2 method2299() {
      return this.aClass225_Sub12_Sub2_1187;
   }

   Class225_Sub43 method2300(int var1) {
      return this.aClass225_Sub43_1183;
   }

   public boolean method2301() {
      Class246.method4390(1100664093);
      if(0 == 364948885 * this.anInt1190) {
         this.aClass225_Sub43_1183 = Class225_Sub43.method14162(this.aClass253_1185, this.anInt1186 * 855791263, 0);
         if(this.aClass225_Sub43_1183 == null) {
            return false;
         }

         this.aClass197_1189 = new Class197(Class390.aClass253_4850, Class104.aClass253_1019);
         this.anInt1190 = -2054146627;
      }

      if(1 == 364948885 * this.anInt1190) {
         if(!this.aClass225_Sub12_Sub2_1187.method15689(this.aClass225_Sub43_1183, Class104.aClass253_1018, this.aClass197_1189, 22050, 2040479018)) {
            return false;
         }

         this.anInt1190 = 186674042;
      }

      return true;
   }

   public boolean method2302() {
      return 364948885 * this.anInt1190 == 2;
   }

   static boolean method2303(byte var0) {
      return Class18.aBool184;
   }

   static final void method2304(Class508 var0, int var1) {
      if(Class336.aClass35_Sub1_4206.method914(2061519067) == Class106.aClass106_1034 && Class336.aClass35_Sub1_4206.method913(1017208849) == Class32.aClass32_375) {
         Class326 var2 = ((Class66_Sub2)Class336.aClass35_Sub1_4206.method953(451240886)).method13076(-176371356);
         Class326 var3 = ((Class461_Sub3)Class336.aClass35_Sub1_4206.method952(-1921405506)).method12796(679988188);
         Class326 var4 = Class326.method5922(var2);
         var4.method5901(var3);
         float var5 = Class259.method4661(var4.aFloat4036, var4.aFloat4033, (byte)1);
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = (int)((double)var5 * 2607.5945876176133D) & 16383;
      } else {
         throw new RuntimeException();
      }
   }

   public static final void method2305(int var0, int var1, int var2, int var3, boolean var4, byte var5) {
      if(var2 < 1) {
         var2 = 1;
      }

      if(var3 < 1) {
         var3 = 1;
      }

      int var6 = var3 - 334;
      if(var6 < 0) {
         var6 = 0;
      } else if(var6 > 100) {
         var6 = 100;
      }

      int var7 = var6 * (client.aShort7916 - client.aShort7915) / 100 + client.aShort7915;
      int var8 = var3 * var7 * 512 / (var2 * 334);
      int var9;
      int var10;
      short var11;
      if(var8 < client.aShort7756) {
         var11 = client.aShort7756;
         var7 = 334 * var11 * var2 / (var3 * 512);
         if(var7 > client.aShort7920) {
            var7 = client.aShort7920;
            var9 = var3 * var7 * 512 / (var11 * 334);
            var10 = (var2 - var9) / 2;
            if(var4) {
               Class428.aClass545_5383.L();
               Class428.aClass545_5383.method11465(var0, var1, var10, var3, -16777216, -1942622902);
               Class428.aClass545_5383.method11465(var0 + var2 - var10, var1, var10, var3, -16777216, -1654105800);
            }

            var0 += var10;
            var2 -= 2 * var10;
         }
      } else if(var8 > client.aShort7701) {
         var11 = client.aShort7701;
         var7 = var2 * var11 * 334 / (var3 * 512);
         if(var7 < client.aShort7919) {
            var7 = client.aShort7919;
            var9 = var11 * var2 * 334 / (512 * var7);
            var10 = (var3 - var9) / 2;
            if(var4) {
               Class428.aClass545_5383.L();
               Class428.aClass545_5383.method11465(var0, var1, var2, var10, -16777216, -2073594629);
               Class428.aClass545_5383.method11465(var0, var3 + var1 - var10, var2, var10, -16777216, -1850982841);
            }

            var1 += var10;
            var3 -= var10 * 2;
         }
      }

      client.anInt7927 = var3 * var7 / 334 * 942753803;
      client.anInt7923 = -1062641489 * var0;
      client.anInt7924 = -1757097669 * var1;
      client.anInt7867 = 1198141953 * (short)var2;
      client.anInt7722 = (short)var3 * -1881242657;
   }

   static void method2306(int var0, int var1, int var2) {
      Class225_Sub14_Sub2 var3 = Class49.method1193(7, (long)var0);
      var3.method15502((byte)-13);
      var3.anInt9990 = -1655449005 * var1;
   }
}
