import java.io.IOException;

public class Class259 {

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

   public static void method4656(boolean var0) {
      Class479.method8078(-965148246);
      if(Class118_Sub6.method13180(1881519639 * client.anInt7734, 231535812)) {
         PacketContext[] var1 = client.aClass180Array7705;

         for(int var2 = 0; var2 < var1.length; ++var2) {
            PacketContext var3 = var1[var2];
            var3.anInt2186 += 591371989;
            if(var3.anInt2186 * -140596611 < 50 && !var0) {
               return;
            }

            var3.anInt2186 = 0;
            if(!var3.aBool2174 && var3.method3206((byte)-5) != null) {
               Class225_Sub15 var4 = Class543.method11415(OutgoingOpcode.aClass302_3762, var3.aClass433_2184, (byte)1);
               var3.method3191(var4, (byte)5);

               try {
                  var3.method3210((byte)-87);
               } catch (IOException var6) {
                  var3.aBool2174 = true;
               }
            }
         }

         Class479.method8078(-952756046);
      }
   }

   public static void method4657(boolean var0) {
      Class479.method8078(-532769921);
      if(Class118_Sub6.method13180(1881519639 * client.anInt7734, 231535812)) {
         PacketContext[] var1 = client.aClass180Array7705;

         for(int var2 = 0; var2 < var1.length; ++var2) {
            PacketContext var3 = var1[var2];
            var3.anInt2186 += 591371989;
            if(var3.anInt2186 * -140596611 < 50 && !var0) {
               return;
            }

            var3.anInt2186 = 0;
            if(!var3.aBool2174 && var3.method3206((byte)-38) != null) {
               Class225_Sub15 var4 = Class543.method11415(OutgoingOpcode.aClass302_3762, var3.aClass433_2184, (byte)1);
               var3.method3191(var4, (byte)-21);

               try {
                  var3.method3210((byte)-75);
               } catch (IOException var6) {
                  var3.aBool2174 = true;
               }
            }
         }

         Class479.method8078(-535717666);
      }
   }

   public static void method4658(boolean var0) {
      Class479.method8078(-1868493249);
      if(Class118_Sub6.method13180(1881519639 * client.anInt7734, 231535812)) {
         PacketContext[] var1 = client.aClass180Array7705;

         for(int var2 = 0; var2 < var1.length; ++var2) {
            PacketContext var3 = var1[var2];
            var3.anInt2186 += 591371989;
            if(var3.anInt2186 * -140596611 < 50 && !var0) {
               return;
            }

            var3.anInt2186 = 0;
            if(!var3.aBool2174 && var3.method3206((byte)-30) != null) {
               Class225_Sub15 var4 = Class543.method11415(OutgoingOpcode.aClass302_3762, var3.aClass433_2184, (byte)1);
               var3.method3191(var4, (byte)17);

               try {
                  var3.method3210((byte)-12);
               } catch (IOException var6) {
                  var3.aBool2174 = true;
               }
            }
         }

         Class479.method8078(-2032352956);
      }
   }

   public static void method4659(boolean var0) {
      Class479.method8078(-1631755949);
      if(Class118_Sub6.method13180(1881519639 * client.anInt7734, 231535812)) {
         PacketContext[] var1 = client.aClass180Array7705;

         for(int var2 = 0; var2 < var1.length; ++var2) {
            PacketContext var3 = var1[var2];
            var3.anInt2186 += 591371989;
            if(var3.anInt2186 * -140596611 < 50 && !var0) {
               return;
            }

            var3.anInt2186 = 0;
            if(!var3.aBool2174 && var3.method3206((byte)-61) != null) {
               Class225_Sub15 var4 = Class543.method11415(OutgoingOpcode.aClass302_3762, var3.aClass433_2184, (byte)1);
               var3.method3191(var4, (byte)3);

               try {
                  var3.method3210((byte)-90);
               } catch (IOException var6) {
                  var3.aBool2174 = true;
               }
            }
         }

         Class479.method8078(-1043748644);
      }
   }

   static final void method4660(Class508 var0, byte var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class500.aClass225_Sub6_5953.aClass463_Sub11_8469.method12888(847993468) == 1?1:0;
   }

   public static float method4661(float var0, float var1, byte var2) {
      double var3 = Math.atan2((double)var0, (double)var1);
      if(var3 < 0.0D) {
         var3 = 3.141592653589793D + var3 + 3.141592653589793D;
      }

      return (float)var3;
   }
}
