
public class Class559 {

   Class559() throws Throwable {
      throw new Error();
   }

   public static void method11905(float var0, Class326 var1, Class326 var2, Class326 var3, Class326 var4, Class326 var5, float var6, float var7) {
      if(!var2.method5876(var1)) {
         Class326 var8 = Class326.method5884(var2, var1);
         float var9 = var8.method5889();
         if(var6 > 0.0F) {
            var4 = Class326.method5922(var4);
            var4.method5893(var9 / var6 * var7);
         }

         if(Float.POSITIVE_INFINITY != var4.aFloat4036 && !Float.isNaN(var1.aFloat4036) && var9 <= 5120.0F) {
            Class326 var10 = Class326.method5922(var3);
            var10.method5930();
            Class326 var11 = Class326.method5895(var10, var4);
            Class326 var12 = Class326.method5878(var10, var11);
            var12.method5893(0.5F);
            Class326 var13 = Class326.method5922(var3);
            Class326 var14 = Class326.method5922(var8);
            var14.method5930();
            if(var12.aFloat4036 > var14.aFloat4036) {
               if(var8.aFloat4036 < 0.0F) {
                  var13.aFloat4036 += var4.aFloat4036 * var0;
                  if(var13.aFloat4036 > 0.0F) {
                     var13.aFloat4036 = 0.0F;
                  }
               } else {
                  var13.aFloat4036 -= var0 * var4.aFloat4036;
                  if(var13.aFloat4036 < 0.0F) {
                     var13.aFloat4036 = 0.0F;
                  }
               }
            } else if(var10.aFloat4036 < var5.aFloat4036) {
               if(var8.aFloat4036 < 0.0F) {
                  var13.aFloat4036 -= var0 * var4.aFloat4036;
                  if(var13.aFloat4036 < -var5.aFloat4036) {
                     var13.aFloat4036 = -var5.aFloat4036;
                  }
               } else {
                  var13.aFloat4036 += var0 * var4.aFloat4036;
                  if(var13.aFloat4036 > var5.aFloat4036) {
                     var13.aFloat4036 = var5.aFloat4036;
                  }
               }
            }

            if(var12.aFloat4037 > var14.aFloat4037) {
               if(var8.aFloat4037 < 0.0F) {
                  var13.aFloat4037 += var0 * var4.aFloat4037;
                  if(var13.aFloat4037 > 0.0F) {
                     var13.aFloat4037 = 0.0F;
                  }
               } else {
                  var13.aFloat4037 -= var0 * var4.aFloat4037;
                  if(var13.aFloat4037 < 0.0F) {
                     var13.aFloat4037 = 0.0F;
                  }
               }
            } else if(var10.aFloat4037 < var5.aFloat4037) {
               if(var8.aFloat4037 < 0.0F) {
                  var13.aFloat4037 -= var4.aFloat4037 * var0;
                  if(var13.aFloat4037 < -var5.aFloat4037) {
                     var13.aFloat4037 = -var5.aFloat4037;
                  }
               } else {
                  var13.aFloat4037 += var4.aFloat4037 * var0;
                  if(var13.aFloat4037 > var5.aFloat4037) {
                     var13.aFloat4037 = var5.aFloat4037;
                  }
               }
            }

            if(var12.aFloat4033 > var14.aFloat4033) {
               if(var8.aFloat4033 < 0.0F) {
                  var13.aFloat4033 += var0 * var4.aFloat4033;
                  if(var13.aFloat4033 > 0.0F) {
                     var13.aFloat4033 = 0.0F;
                  }
               } else {
                  var13.aFloat4033 -= var0 * var4.aFloat4033;
                  if(var13.aFloat4033 < 0.0F) {
                     var13.aFloat4033 = 0.0F;
                  }
               }
            } else if(var10.aFloat4033 < var5.aFloat4033) {
               if(var8.aFloat4033 < 0.0F) {
                  var13.aFloat4033 -= var0 * var4.aFloat4033;
                  if(var13.aFloat4033 < -var5.aFloat4033) {
                     var13.aFloat4033 = -var5.aFloat4033;
                  }
               } else {
                  var13.aFloat4033 += var4.aFloat4033 * var0;
                  if(var13.aFloat4033 > var5.aFloat4033) {
                     var13.aFloat4033 = var5.aFloat4033;
                  }
               }
            }

            var3.method5968(var13, 0.8F);
            if(var9 < 10.0F && var3.method5889() < 10.0F) {
               var1.method5894(var2);
               var3.method5875();
            } else {
               var1.method5879(Class326.method5956(var3, var0));
            }

            var10.method5948();
            var13.method5948();
            var14.method5948();
         } else {
            var1.method5894(var2);
            var3.method5875();
         }

      }
   }

   public static void method11906(float var0, Class326 var1, Class326 var2, Class326 var3, Class326 var4, Class326 var5, float var6, float var7) {
      if(!var2.method5876(var1)) {
         Class326 var8 = Class326.method5884(var2, var1);
         float var9 = var8.method5889();
         if(var6 > 0.0F) {
            var4 = Class326.method5922(var4);
            var4.method5893(var9 / var6 * var7);
         }

         if(Float.POSITIVE_INFINITY != var4.aFloat4036 && !Float.isNaN(var1.aFloat4036) && var9 <= 5120.0F) {
            Class326 var10 = Class326.method5922(var3);
            var10.method5930();
            Class326 var11 = Class326.method5895(var10, var4);
            Class326 var12 = Class326.method5878(var10, var11);
            var12.method5893(0.5F);
            Class326 var13 = Class326.method5922(var3);
            Class326 var14 = Class326.method5922(var8);
            var14.method5930();
            if(var12.aFloat4036 > var14.aFloat4036) {
               if(var8.aFloat4036 < 0.0F) {
                  var13.aFloat4036 += var4.aFloat4036 * var0;
                  if(var13.aFloat4036 > 0.0F) {
                     var13.aFloat4036 = 0.0F;
                  }
               } else {
                  var13.aFloat4036 -= var0 * var4.aFloat4036;
                  if(var13.aFloat4036 < 0.0F) {
                     var13.aFloat4036 = 0.0F;
                  }
               }
            } else if(var10.aFloat4036 < var5.aFloat4036) {
               if(var8.aFloat4036 < 0.0F) {
                  var13.aFloat4036 -= var0 * var4.aFloat4036;
                  if(var13.aFloat4036 < -var5.aFloat4036) {
                     var13.aFloat4036 = -var5.aFloat4036;
                  }
               } else {
                  var13.aFloat4036 += var0 * var4.aFloat4036;
                  if(var13.aFloat4036 > var5.aFloat4036) {
                     var13.aFloat4036 = var5.aFloat4036;
                  }
               }
            }

            if(var12.aFloat4037 > var14.aFloat4037) {
               if(var8.aFloat4037 < 0.0F) {
                  var13.aFloat4037 += var0 * var4.aFloat4037;
                  if(var13.aFloat4037 > 0.0F) {
                     var13.aFloat4037 = 0.0F;
                  }
               } else {
                  var13.aFloat4037 -= var0 * var4.aFloat4037;
                  if(var13.aFloat4037 < 0.0F) {
                     var13.aFloat4037 = 0.0F;
                  }
               }
            } else if(var10.aFloat4037 < var5.aFloat4037) {
               if(var8.aFloat4037 < 0.0F) {
                  var13.aFloat4037 -= var4.aFloat4037 * var0;
                  if(var13.aFloat4037 < -var5.aFloat4037) {
                     var13.aFloat4037 = -var5.aFloat4037;
                  }
               } else {
                  var13.aFloat4037 += var4.aFloat4037 * var0;
                  if(var13.aFloat4037 > var5.aFloat4037) {
                     var13.aFloat4037 = var5.aFloat4037;
                  }
               }
            }

            if(var12.aFloat4033 > var14.aFloat4033) {
               if(var8.aFloat4033 < 0.0F) {
                  var13.aFloat4033 += var0 * var4.aFloat4033;
                  if(var13.aFloat4033 > 0.0F) {
                     var13.aFloat4033 = 0.0F;
                  }
               } else {
                  var13.aFloat4033 -= var0 * var4.aFloat4033;
                  if(var13.aFloat4033 < 0.0F) {
                     var13.aFloat4033 = 0.0F;
                  }
               }
            } else if(var10.aFloat4033 < var5.aFloat4033) {
               if(var8.aFloat4033 < 0.0F) {
                  var13.aFloat4033 -= var0 * var4.aFloat4033;
                  if(var13.aFloat4033 < -var5.aFloat4033) {
                     var13.aFloat4033 = -var5.aFloat4033;
                  }
               } else {
                  var13.aFloat4033 += var4.aFloat4033 * var0;
                  if(var13.aFloat4033 > var5.aFloat4033) {
                     var13.aFloat4033 = var5.aFloat4033;
                  }
               }
            }

            var3.method5968(var13, 0.8F);
            if(var9 < 10.0F && var3.method5889() < 10.0F) {
               var1.method5894(var2);
               var3.method5875();
            } else {
               var1.method5879(Class326.method5956(var3, var0));
            }

            var10.method5948();
            var13.method5948();
            var14.method5948();
         } else {
            var1.method5894(var2);
            var3.method5875();
         }

      }
   }

   public static void method11907(float var0, Class326 var1, Class326 var2, Class326 var3, Class326 var4, Class326 var5, float var6, float var7) {
      if(!var2.method5876(var1)) {
         Class326 var8 = Class326.method5884(var2, var1);
         float var9 = var8.method5889();
         if(var6 > 0.0F) {
            var4 = Class326.method5922(var4);
            var4.method5893(var9 / var6 * var7);
         }

         if(Float.POSITIVE_INFINITY != var4.aFloat4036 && !Float.isNaN(var1.aFloat4036) && var9 <= 5120.0F) {
            Class326 var10 = Class326.method5922(var3);
            var10.method5930();
            Class326 var11 = Class326.method5895(var10, var4);
            Class326 var12 = Class326.method5878(var10, var11);
            var12.method5893(0.5F);
            Class326 var13 = Class326.method5922(var3);
            Class326 var14 = Class326.method5922(var8);
            var14.method5930();
            if(var12.aFloat4036 > var14.aFloat4036) {
               if(var8.aFloat4036 < 0.0F) {
                  var13.aFloat4036 += var4.aFloat4036 * var0;
                  if(var13.aFloat4036 > 0.0F) {
                     var13.aFloat4036 = 0.0F;
                  }
               } else {
                  var13.aFloat4036 -= var0 * var4.aFloat4036;
                  if(var13.aFloat4036 < 0.0F) {
                     var13.aFloat4036 = 0.0F;
                  }
               }
            } else if(var10.aFloat4036 < var5.aFloat4036) {
               if(var8.aFloat4036 < 0.0F) {
                  var13.aFloat4036 -= var0 * var4.aFloat4036;
                  if(var13.aFloat4036 < -var5.aFloat4036) {
                     var13.aFloat4036 = -var5.aFloat4036;
                  }
               } else {
                  var13.aFloat4036 += var0 * var4.aFloat4036;
                  if(var13.aFloat4036 > var5.aFloat4036) {
                     var13.aFloat4036 = var5.aFloat4036;
                  }
               }
            }

            if(var12.aFloat4037 > var14.aFloat4037) {
               if(var8.aFloat4037 < 0.0F) {
                  var13.aFloat4037 += var0 * var4.aFloat4037;
                  if(var13.aFloat4037 > 0.0F) {
                     var13.aFloat4037 = 0.0F;
                  }
               } else {
                  var13.aFloat4037 -= var0 * var4.aFloat4037;
                  if(var13.aFloat4037 < 0.0F) {
                     var13.aFloat4037 = 0.0F;
                  }
               }
            } else if(var10.aFloat4037 < var5.aFloat4037) {
               if(var8.aFloat4037 < 0.0F) {
                  var13.aFloat4037 -= var4.aFloat4037 * var0;
                  if(var13.aFloat4037 < -var5.aFloat4037) {
                     var13.aFloat4037 = -var5.aFloat4037;
                  }
               } else {
                  var13.aFloat4037 += var4.aFloat4037 * var0;
                  if(var13.aFloat4037 > var5.aFloat4037) {
                     var13.aFloat4037 = var5.aFloat4037;
                  }
               }
            }

            if(var12.aFloat4033 > var14.aFloat4033) {
               if(var8.aFloat4033 < 0.0F) {
                  var13.aFloat4033 += var0 * var4.aFloat4033;
                  if(var13.aFloat4033 > 0.0F) {
                     var13.aFloat4033 = 0.0F;
                  }
               } else {
                  var13.aFloat4033 -= var0 * var4.aFloat4033;
                  if(var13.aFloat4033 < 0.0F) {
                     var13.aFloat4033 = 0.0F;
                  }
               }
            } else if(var10.aFloat4033 < var5.aFloat4033) {
               if(var8.aFloat4033 < 0.0F) {
                  var13.aFloat4033 -= var0 * var4.aFloat4033;
                  if(var13.aFloat4033 < -var5.aFloat4033) {
                     var13.aFloat4033 = -var5.aFloat4033;
                  }
               } else {
                  var13.aFloat4033 += var4.aFloat4033 * var0;
                  if(var13.aFloat4033 > var5.aFloat4033) {
                     var13.aFloat4033 = var5.aFloat4033;
                  }
               }
            }

            var3.method5968(var13, 0.8F);
            if(var9 < 10.0F && var3.method5889() < 10.0F) {
               var1.method5894(var2);
               var3.method5875();
            } else {
               var1.method5879(Class326.method5956(var3, var0));
            }

            var10.method5948();
            var13.method5948();
            var14.method5948();
         } else {
            var1.method5894(var2);
            var3.method5875();
         }

      }
   }

   static void method11908(int var0) {
      if(Class500.aClass225_Sub6_5953.aClass463_Sub2_8498.method12782(1129340099) == 1) {
         Class523.aClass267_7146.method4750(new Class260(Class277.aClass277_3217, (PacketBuffer)null), 1493247884);
      } else {
         client.aClass279_7807.method4935(-1708545987);
         Class556.method11884((short)8064);
      }

   }

   static void method11909(Class508 var0, byte var1) {
      var0.anInt6003 -= 196624946;
      int var2 = var0.anIntArray6027[var0.anInt6003 * -937710807];
      int var3 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 1];
      Class401 var4 = Class30.aClass389_367.method6674(var3, -1737472087);
      if(var4.method6815(1556445724)) {
         if(var1 != 1) {
            return;
         }

         String var5 = var4.aString4913;
         if(var2 == -1) {
            if(var1 != 1) {
               return;
            }

            var0.anObjectArray6004[(var0.anInt6005 += -46848683) * 639741949 - 1] = var5;
         } else {
            var0.anObjectArray6004[(var0.anInt6005 += -46848683) * 639741949 - 1] = Class453.aClass511_5677.method10849(var2, 236446601).method10857(var3, var5, (byte)-9);
         }
      } else {
         int var6 = 1326753823 * var4.anInt4914;
         if(-1 == var2) {
            if(var1 != 1) {
               return;
            }

            var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var6;
         } else {
            var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class453.aClass511_5677.method10849(var2, 679379679).method10856(var3, var6, (byte)4);
         }
      }

   }

   static final void method11910(Class508 var0, byte var1) {
      var0.anInt6003 -= 196624946;
      int var2 = var0.anIntArray6027[var0.anInt6003 * -937710807];
      int var3 = var0.anIntArray6027[1 + var0.anInt6003 * -937710807];
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var2 | var3;
   }

   public static final void method11911(int var0, int var1, int var2, int var3, int var4, byte var5) {
      Class251_Sub2.anInt8929 = 451276373 * var0;
      Class428.anInt5384 = -1459343161 * var1;
      Class389.anInt4849 = -520680309 * var2;
      Class554.anInt7440 = var3 * -718863747;
      Class355.anInt4476 = 1577458017 * var4;
      if(Class355.anInt4476 * 659835553 >= 100) {
         int var6 = Class251_Sub2.anInt8929 * -12715520 + 256;
         int var7 = Class428.anInt5384 * -1490948608 + 256;
         int var8 = Class419.method7167(var6, var7, -117136075 * Class181.anInt2197, (byte)-40) - 191363875 * Class389.anInt4849;
         int var9 = var6 - -434903763 * Class90.anInt895;
         int var10 = var8 - -667483859 * Class416.anInt5137;
         int var11 = var7 - 2099956753 * Class4.anInt112;
         int var12 = (int)Math.sqrt((double)(var9 * var9 + var11 * var11));
         Class365.anInt4603 = ((int)(Math.atan2((double)var10, (double)var12) * 2607.5945876176133D) & 16383) * 5027157;
         Class85.anInt867 = ((int)(Math.atan2((double)var9, (double)var11) * -2607.5945876176133D) & 16383) * 1910759249;
         Class173.anInt2083 = 0;
         if(1900912637 * Class365.anInt4603 < 1024) {
            Class365.anInt4603 = 852841472;
         }

         if(Class365.anInt4603 * 1900912637 > 3072) {
            Class365.anInt4603 = -1736442880;
         }
      }

      Class225_Sub21_Sub5.anInt10087 = -970047691;
      Class118_Sub2.anInt8212 = 110956583;
      Class109.anInt1086 = -887729361;
   }

   public static int method11912(int var0, int var1, int var2, int var3) {
      int var4 = 255 - var2;
      var1 = ((var1 & 16711935) * var2 & -16711936 | var2 * (var1 & '\uff00') & 16711680) >>> 8;
      return var1 + ((var4 * (var0 & 16711935) & -16711936 | (var0 & '\uff00') * var4 & 16711680) >>> 8);
   }
}
