import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class Class442 implements Interface46 {

   Interface30 anInterface30_5464;
   Map aMap5465;


   public void method262() {
      if(this.aMap5465 != null) {
         this.aMap5465.clear();
      }

   }

   public int method264(int var1, int var2) {
      if(this.aMap5465 != null) {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var3 != null) {
            return ((Integer)var3.anObject3996).intValue();
         }
      }

      return ((Integer)this.anInterface30_5464.method163(var1, 1163422824)).intValue();
   }

   public void method246(int var1, int var2, byte var3) {
      if(this.aMap5465 == null) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Integer.valueOf(var2)));
      } else {
         Class316 var4 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var4 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Integer.valueOf(var2)));
         } else {
            var4.anObject3996 = Integer.valueOf(var2);
         }
      }

   }

   public long method247(int var1, byte var2) {
      if(null != this.aMap5465) {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null != var3) {
            return ((Long)var3.anObject3996).longValue();
         }
      }

      return ((Long)this.anInterface30_5464.method163(var1, 1266455762)).longValue();
   }

   public void method248(int var1, long var2) {
      if(this.aMap5465 == null) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Long.valueOf(var2)));
      } else {
         Class316 var4 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null == var4) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Long.valueOf(var2)));
         } else {
            var4.anObject3996 = Long.valueOf(var2);
         }
      }

   }

   public Object method253(int var1, int var2) {
      if(this.aMap5465 != null) {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null != var3) {
            return var3.anObject3996;
         }
      }

      return this.anInterface30_5464.method163(var1, -123123690);
   }

   public Object method249(int var1) {
      if(this.aMap5465 != null) {
         Class316 var2 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null != var2) {
            return var2.anObject3996;
         }
      }

      return this.anInterface30_5464.method163(var1, -1582824826);
   }

   public void method265(int var1) {
      if(this.aMap5465 != null) {
         this.aMap5465.clear();
      }

   }

   public void method252(int var1, int var2) {
      if(this.aMap5465 != null) {
         this.aMap5465.remove(Integer.valueOf(var1));
      }

   }

   public Iterator iterator() {
      return this.aMap5465 == null?Collections.emptyList().iterator():this.aMap5465.values().iterator();
   }

   public Iterator method7417() {
      return this.aMap5465 == null?Collections.emptyList().iterator():this.aMap5465.values().iterator();
   }

   public Iterator method7418() {
      return this.aMap5465 == null?Collections.emptyList().iterator():this.aMap5465.values().iterator();
   }

   public Class442(Interface30 var1) {
      this.anInterface30_5464 = var1;
   }

   public int method266(int var1) {
      if(this.aMap5465 != null) {
         Class316 var2 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var2 != null) {
            return ((Integer)var2.anObject3996).intValue();
         }
      }

      return ((Integer)this.anInterface30_5464.method163(var1, -157374258)).intValue();
   }

   public void method256(int var1, int var2) {
      if(this.aMap5465 == null) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Integer.valueOf(var2)));
      } else {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var3 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Integer.valueOf(var2)));
         } else {
            var3.anObject3996 = Integer.valueOf(var2);
         }
      }

   }

   public void method245(int var1, Object var2, byte var3) {
      if(null == this.aMap5465) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
      } else {
         Class316 var4 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var4 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
         } else {
            var4.anObject3996 = var2;
         }
      }

   }

   public void method261(int var1, Object var2) {
      if(null == this.aMap5465) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
      } else {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var3 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
         } else {
            var3.anObject3996 = var2;
         }
      }

   }

   public long method251(int var1) {
      if(null != this.aMap5465) {
         Class316 var2 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null != var2) {
            return ((Long)var2.anObject3996).longValue();
         }
      }

      return ((Long)this.anInterface30_5464.method163(var1, -1025593973)).longValue();
   }

   public void method267(int var1) {
      if(this.aMap5465 != null) {
         this.aMap5465.remove(Integer.valueOf(var1));
      }

   }

   public Object method259(int var1) {
      if(this.aMap5465 != null) {
         Class316 var2 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null != var2) {
            return var2.anObject3996;
         }
      }

      return this.anInterface30_5464.method163(var1, -974954911);
   }

   public void method260(int var1) {
      if(this.aMap5465 != null) {
         this.aMap5465.remove(Integer.valueOf(var1));
      }

   }

   public void method257(int var1, long var2) {
      if(this.aMap5465 == null) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Long.valueOf(var2)));
      } else {
         Class316 var4 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(null == var4) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Long.valueOf(var2)));
         } else {
            var4.anObject3996 = Long.valueOf(var2);
         }
      }

   }

   public void method258(int var1, Object var2) {
      if(null == this.aMap5465) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
      } else {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var3 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
         } else {
            var3.anObject3996 = var2;
         }
      }

   }

   public void method263(int var1, Object var2) {
      if(null == this.aMap5465) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
      } else {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var3 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, var2));
         } else {
            var3.anObject3996 = var2;
         }
      }

   }

   public Iterator method7419() {
      return this.aMap5465 == null?Collections.emptyList().iterator():this.aMap5465.values().iterator();
   }

   public void method250() {
      if(this.aMap5465 != null) {
         this.aMap5465.clear();
      }

   }

   public void method255(int var1, int var2) {
      if(this.aMap5465 == null) {
         this.aMap5465 = new HashMap();
         this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Integer.valueOf(var2)));
      } else {
         Class316 var3 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var3 == null) {
            this.aMap5465.put(Integer.valueOf(var1), new Class316(var1, Integer.valueOf(var2)));
         } else {
            var3.anObject3996 = Integer.valueOf(var2);
         }
      }

   }

   public int method254(int var1) {
      if(this.aMap5465 != null) {
         Class316 var2 = (Class316)this.aMap5465.get(Integer.valueOf(var1));
         if(var2 != null) {
            return ((Integer)var2.anObject3996).intValue();
         }
      }

      return ((Integer)this.anInterface30_5464.method163(var1, -1000128432)).intValue();
   }

   static void method7420(int var0, int var1, int var2, boolean var3, int var4, boolean var5, int var6) {
      if(var0 < var1) {
         int var7 = (var0 + var1) / 2;
         int var8 = var0;
         Class536_Sub1 var9 = Class419.aClass536_Sub1Array5326[var7];
         Class419.aClass536_Sub1Array5326[var7] = Class419.aClass536_Sub1Array5326[var1];
         Class419.aClass536_Sub1Array5326[var1] = var9;

         for(int var10 = var0; var10 < var1; ++var10) {
            if(Class550_Sub6.method13967(Class419.aClass536_Sub1Array5326[var10], var9, var2, var3, var4, var5, (byte)-84) <= 0) {
               Class536_Sub1 var11 = Class419.aClass536_Sub1Array5326[var10];
               Class419.aClass536_Sub1Array5326[var10] = Class419.aClass536_Sub1Array5326[var8];
               Class419.aClass536_Sub1Array5326[var8++] = var11;
            }
         }

         Class419.aClass536_Sub1Array5326[var1] = Class419.aClass536_Sub1Array5326[var8];
         Class419.aClass536_Sub1Array5326[var8] = var9;
         method7420(var0, var8 - 1, var2, var3, var4, var5, 1057925547);
         method7420(var8 + 1, var1, var2, var3, var4, var5, 1057925547);
      }

   }

   public static int method7421(long var0) {
      Class90.method1801(var0);
      return Class409.aCalendar5008.get(1);
   }

   static final void method7422(Class508 var0, int var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class500.aClass225_Sub6_5953.aClass463_Sub9_8482.method12871(-1639029729);
   }

   static final void method7423(Class508 var0, short var1) {
      Class505 var2 = var0.aBool6014?var0.aClass505_6011:var0.aClass505_6010;
      Class124 var3 = var2.aClass124_5977;
      Class121 var4 = var2.aClass121_5978;
      Class119.method2326(var3, var4, false, 0, var0, (byte)85);
   }

   static final void method7424(Class508 var0, int var1) {
      if(4 == Class225_Sub21_Sub5.anInt10087 * -1736568489) {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = (int)((double)Class336.aClass35_Sub1_4206.method918((byte)66) * 2607.5945876176133D) >> 3;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = (int)client.aFloat7750 >> 3;
      }

   }

   static final void method7425(Class508 var0, byte var1) {
      if(Class103.aClass64_1017 != null) {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 1;
         var0.aClass64_5997 = Class103.aClass64_1017;
         var0.aMap6018.put(Class251.aClass251_2979, Class105.method2163(var0.aClass64_5997, -1028093919));
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 0;
      }

   }
}
