import jaclib.ping.Ping;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Class508 {

   Class64 aClass64_5997;
   Object[] anObjectArray5998;
   long[] aLongArray5999;
   int[][] anIntArrayArray6000 = new int[5][5000];
   Class225_Sub14_Sub6 aClass225_Sub14_Sub6_6001;
   int anInt6002;
   int anInt6003 = 0;
   Object[] anObjectArray6004 = new Object[1000];
   int anInt6005 = 0;
   int[] anIntArray6006 = new int[5];
   int anInt6007 = 0;
   long[] aLongArray6008 = new long[1000];
   Class507[] aClass507Array6009 = new Class507[50];
   Class505 aClass505_6010 = new Class505();
   Class505 aClass505_6011 = new Class505();
   Class369 aClass369_6012;
   int anInt6013 = 0;
   boolean aBool6014;
   int anInt6015 = 0;
   Interface20 anInterface20_6016;
   Class515_Sub1_Sub1_Sub1 aClass515_Sub1_Sub1_Sub1_6017;
   Map aMap6018 = new HashMap();
   Map aMap6019 = new HashMap();
   Class225_Sub19 aClass225_Sub19_6020;
   Class515_Sub1_Sub4_Sub4 aClass515_Sub1_Sub4_Sub4_6021;
   Class191 aClass191_6022;
   int[] anIntArray6023;
   Class518[] aClass518Array6024;
   int anInt6025 = -2029505775;
   int[] anIntArray6026;
   int[] anIntArray6027 = new int[1000];


   public static int method10787(byte var0) {
      if(Class244.anInt2931 * 366204061 == 0) {
         Class415.aClass415_5130.method7104(new Class334("jaclib"), -843137794);
         if(Class415.aClass415_5130.method7106((short)600).method99(1086176937) != 100) {
            return 1;
         }

         if(!((Class334)Class415.aClass415_5130.method7106((short)600)).method6169((byte)9) && !Class64.method1393(16711680)) {
            Class391.aclient4857.method5098((byte)-120);
            Class384.method6636(-2125354447);

            try {
               Ping.init();
            } catch (Throwable var9) {
               ;
            }
         }

         Class244.anInt2931 = -1002876491;
      }

      int var1;
      int var5;
      if(1 == Class244.anInt2931 * 366204061) {
         Class244.aClass415Array2930 = Class415.method7116(1938375386);
         Class415.aClass415_5113.method7104(new Class252(Class545_Sub3.aClass253_9823), -1370071721);
         Class415.aClass415_5107.method7104(new Class334("jaggl"), 354392359);
         Class415.aClass415_5108.method7104(new Class334("jagdx"), 163073614);
         Class415.aClass415_5119.method7104(new Class334("sw3d"), -564318611);
         Class415.aClass415_5110.method7104(new Class334("hw3d"), -833748476);
         Class415.aClass415_5111.method7104(new Class334("jagtheora"), -1559298062);
         Class415.aClass415_5106.method7104(new Class252(Class484.aClass253_5865), -686074898);
         Class415.aClass415_5114.method7104(new Class252(Class73.aClass253_694), 453105788);
         Class415.aClass415_5123.method7104(new Class252(Class75.aClass253_699), -439508051);
         Class415.aClass415_5126.method7104(new Class252(Class50.aClass253_511), -118592594);
         Class415.aClass415_5116.method7104(new Class252(Class577.aClass253_7614), -1311445106);
         Class415.aClass415_5117.method7104(new Class252(Class105.aClass253_1032), 184035354);
         Class415.aClass415_5112.method7104(new Class252(Class511.aClass253_6043), -969683560);
         Class415.aClass415_5132.method7104(new Class252(Class429.aClass253_5387), 209725571);
         Class415.aClass415_5120.method7104(new Class252(Class413.aClass253_5100), -651795628);
         Class415.aClass415_5121.method7104(new Class252(Class213.aClass253_2498), -1469550731);
         Class415.aClass415_5115.method7104(new Class252(Class68_Sub1.aClass253_8076), -1031573379);
         Class415.aClass415_5105.method7104(new Class252(Class304.aClass253_3875), -706968557);
         Class415.aClass415_5124.method7104(new Class252(Class118_Sub20.aClass253_9102), -1876098611);
         Class415.aClass415_5125.method7104(new Class335(Class419.aClass253_5331, "huffman"), -1890749410);
         Class415.aClass415_5109.method7104(new Class252(Class87.aClass253_875), -249883831);
         Class415.aClass415_5127.method7104(new Class252(Class473.aClass253_5798), -1697721691);
         Class415.aClass415_5128.method7104(new Class252(Class154.aClass253_1934), -216752658);
         Class415.aClass415_5129.method7104(new Class246(Class231.aClass253_2672, "details"), -1380382338);

         for(var1 = 0; var1 < Class244.aClass415Array2930.length; ++var1) {
            if(Class244.aClass415Array2930[var1].method7106((short)600) == null) {
               throw new RuntimeException();
            }
         }

         var1 = 0;
         Class415[] var2 = Class244.aClass415Array2930;

         for(int var3 = 0; var3 < var2.length; ++var3) {
            Class415 var4 = var2[var3];
            var5 = var4.method7107((byte)-93);
            int var6 = var4.method7106((short)600).method99(873258948);
            var1 += var5 * var6 / 100;
         }

         Class244.anInt2929 = -27885489 * var1;
         Class244.anInt2931 = -2005752982;
      }

      if(null == Class244.aClass415Array2930) {
         return 100;
      } else {
         var1 = 0;
         int var10 = 0;
         boolean var11 = true;
         Class415[] var12 = Class244.aClass415Array2930;

         for(var5 = 0; var5 < var12.length; ++var5) {
            Class415 var14 = var12[var5];
            int var7 = var14.method7107((byte)-43);
            int var8 = var14.method7106((short)600).method99(296731655);
            if(var8 < 100) {
               var11 = false;
            }

            var1 += var7;
            var10 += var7 * var8 / 100;
         }

         if(var11) {
            if(!((Class334)Class415.aClass415_5111.method7106((short)600)).method6169((byte)9)) {
               client.aBool7718 = Class391.aclient4857.method5099((byte)10);
            }

            Class244.aClass415Array2930 = null;
         }

         var10 -= 894473903 * Class244.anInt2929;
         var1 -= 894473903 * Class244.anInt2929;
         int var13 = var1 > 0?100 * var10 / var1:100;
         if(!var11 && var13 > 99) {
            var13 = 99;
         }

         return var13;
      }
   }

   public static void method10788(String var0, int var1) {
      if(Class176.aStringArray2134 == null) {
         Class276.method4887(-141130688);
      }

      client.aCalendar7782.setTime(new Date(Class339.method6240(1406416374)));
      int var2 = client.aCalendar7782.get(11);
      int var3 = client.aCalendar7782.get(12);
      int var4 = client.aCalendar7782.get(13);
      String var5 = Integer.toString(var2 / 10) + var2 % 10 + ":" + var3 / 10 + var3 % 10 + ":" + var4 / 10 + var4 % 10;
      String[] var6 = Class34.method879(var0, '\n', -387867636);

      for(int var7 = 0; var7 < var6.length; ++var7) {
         for(int var8 = 1556201815 * Class176.anInt2137; var8 > 0; --var8) {
            Class176.aStringArray2134[var8] = Class176.aStringArray2134[var8 - 1];
         }

         Class176.aStringArray2134[0] = var5 + ": " + var6[var7];
         if(Class181.aFileOutputStream2196 != null) {
            try {
               Class181.aFileOutputStream2196.write(Class105.method2162(Class176.aStringArray2134[0] + "\n", (byte)-84));
            } catch (IOException var9) {
               ;
            }
         }

         if(Class176.anInt2137 * 1556201815 < Class176.aStringArray2134.length - 1) {
            Class176.anInt2137 += 1069464167;
            if(-1594987315 * Class176.anInt2136 > 0) {
               Class176.anInt2136 += 1555521541;
            }
         }
      }

   }

   static boolean method10789(int var0, int var1) {
      return var0 == 9 || var0 == 7 || var0 == 4 || 12 == var0 || 16 == var0 || 14 == var0;
   }

   public static void method10790(int var0) {
      Class9.method664(-1, 255, 1569457338);
   }

   public static Class468[] method10791(int var0) {
      return new Class468[]{Class468.aClass468_5752, Class468.aClass468_5760, Class468.aClass468_5761, Class468.aClass468_5762, Class468.aClass468_5759, Class468.aClass468_5758, Class468.aClass468_5754, Class468.aClass468_5765, Class468.aClass468_5763, Class468.aClass468_5766, Class468.aClass468_5764, Class468.aClass468_5756, Class468.aClass468_5757, Class468.aClass468_5753, Class468.aClass468_5755};
   }
}
