import java.awt.Point;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Queue;
import java.util.TimeZone;
import java.util.concurrent.ConcurrentLinkedQueue;

public final class Class110 {

   public static final long aLong1087 = 1000L;
   static HashMap aHashMap1088 = new HashMap();
   static Map aMap1089;
   static Class171[] aClass171Array1090;
   static int anInt1091;


   public static String method2191(Date var0, String var1) {
      return method2193(var0, var1, method2194(1702562144), Class470.aClass470_5782, -1229780147);
   }

   static String method2192(Date var0, String var1, TimeZone var2, Class470 var3) {
      if(null == aMap1089) {
         aMap1089 = new HashMap(7);
         Class470[] var4 = Class470.method7894(-1637886032);

         for(int var5 = 0; var5 < var4.length; ++var5) {
            Class470 var6 = var4[var5];
            aMap1089.put(var6, new ConcurrentLinkedQueue());
         }
      }

      ConcurrentLinkedQueue var7 = (ConcurrentLinkedQueue)aMap1089.get(var3);
      SimpleDateFormat var8 = (SimpleDateFormat)var7.poll();
      if(var8 == null) {
         var8 = new SimpleDateFormat(var1, var3.method7890(-2083533939));
      } else {
         var8.applyPattern(var1);
      }

      var8.setTimeZone(var2);
      String var9 = var8.format(var0);
      var7.add(var8);
      return var9;
   }

   static String method2193(Date var0, String var1, TimeZone var2, Class470 var3, int var4) {
      if(null == aMap1089) {
         aMap1089 = new HashMap(7);
         Class470[] var5 = Class470.method7894(-2017794857);

         for(int var6 = 0; var6 < var5.length; ++var6) {
            Class470 var7 = var5[var6];
            aMap1089.put(var7, new ConcurrentLinkedQueue());
         }
      }

      ConcurrentLinkedQueue var8 = (ConcurrentLinkedQueue)aMap1089.get(var3);
      SimpleDateFormat var9 = (SimpleDateFormat)var8.poll();
      if(var9 == null) {
         var9 = new SimpleDateFormat(var1, var3.method7890(-1922380583));
      } else {
         var9.applyPattern(var1);
      }

      var9.setTimeZone(var2);
      String var10 = var9.format(var0);
      var8.add(var9);
      return var10;
   }

   static TimeZone method2194(int var0) {
      return method2195("Europe/London", 1282159592);
   }

   static TimeZone method2195(String var0, int var1) {
      HashMap var2 = aHashMap1088;
      synchronized(var2) {
         TimeZone var3 = (TimeZone)aHashMap1088.get(var0);
         if(var3 == null) {
            var3 = TimeZone.getTimeZone(var0);
            aHashMap1088.put(var0, var3);
         }

         return var3;
      }
   }

   static {
      Calendar.getInstance(method2195("Europe/London", 1282159592));
   }

   static TimeZone method2196(String var0) {
      HashMap var1 = aHashMap1088;
      synchronized(var1) {
         TimeZone var2 = (TimeZone)aHashMap1088.get(var0);
         if(var2 == null) {
            var2 = TimeZone.getTimeZone(var0);
            aHashMap1088.put(var0, var2);
         }

         return var2;
      }
   }

   public static String method2197(Date var0, String var1, int var2) {
      return method2193(var0, var1, method2194(-1136698057), Class470.aClass470_5782, 889355326);
   }

   public static String method2198(Date var0, String var1) {
      return method2193(var0, var1, method2194(-1206420648), Class470.aClass470_5782, 2004970219);
   }

   static String method2199(Date var0, String var1, TimeZone var2, Class470 var3) {
      if(null == aMap1089) {
         aMap1089 = new HashMap(7);
         Class470[] var4 = Class470.method7894(-1973734626);

         for(int var5 = 0; var5 < var4.length; ++var5) {
            Class470 var6 = var4[var5];
            aMap1089.put(var6, new ConcurrentLinkedQueue());
         }
      }

      ConcurrentLinkedQueue var7 = (ConcurrentLinkedQueue)aMap1089.get(var3);
      SimpleDateFormat var8 = (SimpleDateFormat)var7.poll();
      if(var8 == null) {
         var8 = new SimpleDateFormat(var1, var3.method7890(-1672941769));
      } else {
         var8.applyPattern(var1);
      }

      var8.setTimeZone(var2);
      String var9 = var8.format(var0);
      var7.add(var8);
      return var9;
   }

   static String method2200(Date var0, String var1, TimeZone var2, Class470 var3) {
      if(null == aMap1089) {
         aMap1089 = new HashMap(7);
         Class470[] var4 = Class470.method7894(-1483379578);

         for(int var5 = 0; var5 < var4.length; ++var5) {
            Class470 var6 = var4[var5];
            aMap1089.put(var6, new ConcurrentLinkedQueue());
         }
      }

      ConcurrentLinkedQueue var7 = (ConcurrentLinkedQueue)aMap1089.get(var3);
      SimpleDateFormat var8 = (SimpleDateFormat)var7.poll();
      if(var8 == null) {
         var8 = new SimpleDateFormat(var1, var3.method7890(-1488085795));
      } else {
         var8.applyPattern(var1);
      }

      var8.setTimeZone(var2);
      String var9 = var8.format(var0);
      var7.add(var8);
      return var9;
   }

   static String method2201(Date var0, String var1, TimeZone var2, Class470 var3) {
      if(null == aMap1089) {
         aMap1089 = new HashMap(7);
         Class470[] var4 = Class470.method7894(-1566343931);

         for(int var5 = 0; var5 < var4.length; ++var5) {
            Class470 var6 = var4[var5];
            aMap1089.put(var6, new ConcurrentLinkedQueue());
         }
      }

      ConcurrentLinkedQueue var7 = (ConcurrentLinkedQueue)aMap1089.get(var3);
      SimpleDateFormat var8 = (SimpleDateFormat)var7.poll();
      if(var8 == null) {
         var8 = new SimpleDateFormat(var1, var3.method7890(-1618949277));
      } else {
         var8.applyPattern(var1);
      }

      var8.setTimeZone(var2);
      String var9 = var8.format(var0);
      var7.add(var8);
      return var9;
   }

   static TimeZone method2202() {
      return method2195("Europe/London", 1282159592);
   }

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

   static TimeZone method2203(String var0) {
      HashMap var1 = aHashMap1088;
      synchronized(var1) {
         TimeZone var2 = (TimeZone)aHashMap1088.get(var0);
         if(var2 == null) {
            var2 = TimeZone.getTimeZone(var0);
            aHashMap1088.put(var0, var2);
         }

         return var2;
      }
   }

   static TimeZone method2204(String var0) {
      HashMap var1 = aHashMap1088;
      synchronized(var1) {
         TimeZone var2 = (TimeZone)aHashMap1088.get(var0);
         if(var2 == null) {
            var2 = TimeZone.getTimeZone(var0);
            aHashMap1088.put(var0, var2);
         }

         return var2;
      }
   }

   static TimeZone method2205(String var0) {
      HashMap var1 = aHashMap1088;
      synchronized(var1) {
         TimeZone var2 = (TimeZone)aHashMap1088.get(var0);
         if(var2 == null) {
            var2 = TimeZone.getTimeZone(var0);
            aHashMap1088.put(var0, var2);
         }

         return var2;
      }
   }

   static TimeZone method2206(String var0) {
      HashMap var1 = aHashMap1088;
      synchronized(var1) {
         TimeZone var2 = (TimeZone)aHashMap1088.get(var0);
         if(var2 == null) {
            var2 = TimeZone.getTimeZone(var0);
            aHashMap1088.put(var0, var2);
         }

         return var2;
      }
   }

   static void method2207(int var0) {
      Queue var1 = Class532.aQueue7220;
      synchronized(var1) {
         Point var2;
         if(Class572.aCanvas7591.isShowing()) {
            var2 = Class572.aCanvas7591.getLocationOnScreen();
         } else {
            var2 = null;
         }

         while(true) {
            Class225_Sub8_Sub2 var3 = (Class225_Sub8_Sub2)Class532.aQueue7220.poll();
            if(var3 == null) {
               return;
            }

            if(var2 != null && Class572.aCanvas7591.isShowing() && Class541.aBool7320) {
               var3.method16108(var2, 663043789);
               if(!var3.method16107((short)28383) && var3.method13534(-937710807) < 759890095 * Class563.anInt7495 && var3.method13541((byte)0) < Class440.anInt5458 * 1404657485 && var3.method13534(-937710807) >= 0 && var3.method13541((byte)0) >= 0) {
                  int var4 = var3.method13533(-1982708083);
                  if(var3.method13533(308960622) == -1) {
                     Class532.aClass510_Sub1_7221.method10822(var3, 1873264863);
                  } else if(Class461.method7783(var4, (byte)-60)) {
                     Class532.aClass510_Sub1_7221.method13490(var3, -595243163);
                  }
               }
            } else {
               var3.method13538(-925335586);
            }
         }
      }
   }

   static final void method2208(Class508 var0, int var1) {
      var0.anInt6003 -= 393249892;
      int var2 = var0.anIntArray6027[-937710807 * var0.anInt6003];
      int var3 = var0.anIntArray6027[1 + var0.anInt6003 * -937710807];
      int var4 = var0.anIntArray6027[2 + var0.anInt6003 * -937710807];
      int var5 = var0.anIntArray6027[var0.anInt6003 * -937710807 + 3];
      var2 += var3 << 14;
      var2 += var4 << 28;
      var2 += var5;
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var2;
   }

   static final boolean method2209(char var0, byte var1) {
      return 160 == var0 || 32 == var0 || 95 == var0 || var0 == 45;
   }

   public static void method2210(Class253 var0, int var1, int var2, int var3, boolean var4, Class225_Sub12_Sub2 var5, int var6) {
      Class225_Sub30.method13992(var0, var1, var2, var3, var4, (byte)0);
      Class371.aClass225_Sub12_Sub2_4642 = var5;
   }

   static final void method2211(Class508 var0, int var1) {
      Class505 var10000;
      if(var0.aBool6014) {
         if(var1 == -1923802101) {
            ;
         }

         var10000 = var0.aClass505_6011;
      } else {
         var10000 = var0.aClass505_6010;
      }

      Class505 var2 = var10000;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class234.method4061(var3, var4, var0, -1028456865);
   }

   static final void method2212(Class508 var0, byte var1) {
      Class221.method3827((short)16383);
   }
}
