import java.util.HashMap;
import java.util.Map;

public abstract class Class182_Sub1 extends Class182 implements Interface30 {

   protected Class251 aClass251_8995;
   public static int anInt8996;


   public int method14405(Class316 var1) {
      byte var2 = 2;
      int var3;
      if(var1.anObject3996 instanceof Integer) {
         var3 = var2 + 4;
      } else if(var1.anObject3996 instanceof Long) {
         var3 = var2 + 8;
      } else if(var1.anObject3996 instanceof String) {
         var3 = var2 + Class133.method2503((String)var1.anObject3996, (byte)91);
      } else {
         if(!(var1.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         var3 = var2 + ((Interface43)var1.anObject3996).method99(904945975);
      }

      return var3;
   }

   public void method14406(RS2Buffer var1, Class316 var2) {
      var1.writeShort(var2.anInt3997 * -917776691, -875831225);
      if(var2.anObject3996 instanceof Integer) {
         var1.writeInt(((Integer)var2.anObject3996).intValue(), -1981354561);
      } else if(var2.anObject3996 instanceof Long) {
         var1.writeLong(((Long)var2.anObject3996).longValue());
      } else if(var2.anObject3996 instanceof String) {
         var1.method13892((String)var2.anObject3996, (byte)-103);
      } else {
         if(!(var2.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         ((Interface43)var2.anObject3996).method238(var1, 1625159334);
      }

   }

   public int method14407(byte var1) {
      return this.anInt2199 * 2090471389;
   }

   public Object method163(int var1, int var2) {
      Class169 var3 = this.method14423(var1, 1990582524);
      return null != var3 && var3.method2892(-2020310042)?var3.method2888(235666699):null;
   }

   public int method14408(Class316 var1, int var2) {
      byte var3 = 2;
      int var4;
      if(var1.anObject3996 instanceof Integer) {
         var4 = var3 + 4;
      } else if(var1.anObject3996 instanceof Long) {
         var4 = var3 + 8;
      } else if(var1.anObject3996 instanceof String) {
         var4 = var3 + Class133.method2503((String)var1.anObject3996, (byte)104);
      } else {
         if(!(var1.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         var4 = var3 + ((Interface43)var1.anObject3996).method99(1871340811);
      }

      return var4;
   }

   public void method14409(RS2Buffer var1, Class316 var2, byte var3) {
      var1.writeShort(var2.anInt3997 * -917776691, 185110460);
      if(var2.anObject3996 instanceof Integer) {
         var1.writeInt(((Integer)var2.anObject3996).intValue(), -1305589511);
      } else if(var2.anObject3996 instanceof Long) {
         var1.writeLong(((Long)var2.anObject3996).longValue());
      } else if(var2.anObject3996 instanceof String) {
         var1.method13892((String)var2.anObject3996, (byte)-18);
      } else {
         if(!(var2.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         ((Interface43)var2.anObject3996).method238(var1, -1061983725);
      }

   }

   public Class316 method14410(RS2Buffer var1, int var2) {
      int var3 = var1.readUnsignedShort(-937710807);
      Class169 var4 = this.method14423(var3, -1128422273);
      if(!var4.method2892(-1446583060)) {
         throw new IllegalStateException("");
      } else {
         Class316 var5 = new Class316(var3);
         Class var6 = var4.aClass337_2047.method6211(-2089919365).aClass3066;
         if(var6 == Integer.class) {
            var5.anObject3996 = Integer.valueOf(var1.readInt_(1222240053));
         } else if(var6 == Long.class) {
            var5.anObject3996 = Long.valueOf(var1.method13729((byte)106));
         } else if(String.class == var6) {
            var5.anObject3996 = var1.method13927((short)-28518);
         } else {
            if(!Interface43.class.isAssignableFrom(var6)) {
               throw new IllegalStateException();
            }

            try {
               Interface43 var7 = (Interface43)var6.newInstance();
               var7.method239(var1, (byte)0);
               var5.anObject3996 = var7;
            } catch (InstantiationException var8) {
               ;
            } catch (IllegalAccessException var9) {
               ;
            }
         }

         return var5;
      }
   }

   public Class316 method14411(RS2Buffer var1, Class263 var2) {
      int var3 = var1.readUnsignedShort(-937710807);
      Class316 var4 = new Class316(var3);
      Class var5 = var2.aClass3066;
      if(Integer.class == var5) {
         var4.anObject3996 = Integer.valueOf(var1.readInt_(-968734672));
      } else if(var5 == Long.class) {
         var4.anObject3996 = Long.valueOf(var1.method13729((byte)33));
      } else if(String.class == var5) {
         var4.anObject3996 = var1.method13927((short)-4006);
      } else {
         if(!Interface43.class.isAssignableFrom(var5)) {
            throw new IllegalStateException();
         }

         try {
            Interface43 var6 = (Interface43)var5.newInstance();
            var6.method239(var1, (byte)0);
            var4.anObject3996 = var6;
         } catch (InstantiationException var7) {
            ;
         } catch (IllegalAccessException var8) {
            ;
         }
      }

      Class169 var9 = this.method14423(var3, -860696564);
      return var9.method2892(-1213651667) && var9.aClass337_2047.method6211(-1832407090) == var2?var4:null;
   }

   public abstract Class169 method14412(int var1);

   public int method14413() {
      return this.anInt2199 * 2090471389;
   }

   Class182_Sub1(Class481 var1, Class251 var2, Class470 var3, int var4) {
      super(var1, var3, var4);
      this.aClass251_8995 = var2;
   }

   public void method14414(RS2Buffer var1, Class316 var2) {
      var1.writeShort(var2.anInt3997 * -917776691, -870831618);
      if(var2.anObject3996 instanceof Integer) {
         var1.writeInt(((Integer)var2.anObject3996).intValue(), -803467826);
      } else if(var2.anObject3996 instanceof Long) {
         var1.writeLong(((Long)var2.anObject3996).longValue());
      } else if(var2.anObject3996 instanceof String) {
         var1.method13892((String)var2.anObject3996, (byte)-91);
      } else {
         if(!(var2.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         ((Interface43)var2.anObject3996).method238(var1, -1091608632);
      }

   }

   public int method14415(Class316 var1) {
      byte var2 = 2;
      int var3;
      if(var1.anObject3996 instanceof Integer) {
         var3 = var2 + 4;
      } else if(var1.anObject3996 instanceof Long) {
         var3 = var2 + 8;
      } else if(var1.anObject3996 instanceof String) {
         var3 = var2 + Class133.method2503((String)var1.anObject3996, (byte)110);
      } else {
         if(!(var1.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         var3 = var2 + ((Interface43)var1.anObject3996).method99(2142315602);
      }

      return var3;
   }

   public int method14416(Class316 var1) {
      byte var2 = 2;
      int var3;
      if(var1.anObject3996 instanceof Integer) {
         var3 = var2 + 4;
      } else if(var1.anObject3996 instanceof Long) {
         var3 = var2 + 8;
      } else if(var1.anObject3996 instanceof String) {
         var3 = var2 + Class133.method2503((String)var1.anObject3996, (byte)67);
      } else {
         if(!(var1.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         var3 = var2 + ((Interface43)var1.anObject3996).method99(1362327631);
      }

      return var3;
   }

   public int method14417(Class316 var1) {
      byte var2 = 2;
      int var3;
      if(var1.anObject3996 instanceof Integer) {
         var3 = var2 + 4;
      } else if(var1.anObject3996 instanceof Long) {
         var3 = var2 + 8;
      } else if(var1.anObject3996 instanceof String) {
         var3 = var2 + Class133.method2503((String)var1.anObject3996, (byte)77);
      } else {
         if(!(var1.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         var3 = var2 + ((Interface43)var1.anObject3996).method99(1023849077);
      }

      return var3;
   }

   public static Map method14418(Class182_Sub1[] var0) {
      if(var0 != null && 0 != var0.length) {
         HashMap var1 = new HashMap();
         Class182_Sub1[] var2 = var0;

         for(int var3 = 0; var3 < var2.length; ++var3) {
            Class182_Sub1 var4 = var2[var3];
            var1.put(var4.aClass251_8995, var4);
         }

         return var1;
      } else {
         return null;
      }
   }

   public void method14419(RS2Buffer var1, Class316 var2) {
      var1.writeShort(var2.anInt3997 * -917776691, -323669417);
      if(var2.anObject3996 instanceof Integer) {
         var1.writeInt(((Integer)var2.anObject3996).intValue(), -2118489381);
      } else if(var2.anObject3996 instanceof Long) {
         var1.writeLong(((Long)var2.anObject3996).longValue());
      } else if(var2.anObject3996 instanceof String) {
         var1.method13892((String)var2.anObject3996, (byte)-90);
      } else {
         if(!(var2.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         ((Interface43)var2.anObject3996).method238(var1, -488694474);
      }

   }

   public Class316 method14420(RS2Buffer var1, Class263 var2, byte var3) {
      int var4 = var1.readUnsignedShort(-937710807);
      Class316 var5 = new Class316(var4);
      Class var6 = var2.aClass3066;
      if(Integer.class == var6) {
         var5.anObject3996 = Integer.valueOf(var1.readInt_(-475704358));
      } else if(var6 == Long.class) {
         var5.anObject3996 = Long.valueOf(var1.method13729((byte)17));
      } else if(String.class == var6) {
         var5.anObject3996 = var1.method13927((short)-16213);
      } else {
         if(!Interface43.class.isAssignableFrom(var6)) {
            throw new IllegalStateException();
         }

         try {
            Interface43 var7 = (Interface43)var6.newInstance();
            var7.method239(var1, (byte)0);
            var5.anObject3996 = var7;
         } catch (InstantiationException var8) {
            ;
         } catch (IllegalAccessException var9) {
            ;
         }
      }

      Class169 var10 = this.method14423(var4, -1718479289);
      return var10.method2892(-1983149939) && var10.aClass337_2047.method6211(1151935374) == var2?var5:null;
   }

   public int method14421() {
      return this.anInt2199 * 2090471389;
   }

   public void method14422(RS2Buffer var1, Class316 var2) {
      var1.writeShort(var2.anInt3997 * -917776691, -1092812127);
      if(var2.anObject3996 instanceof Integer) {
         var1.writeInt(((Integer)var2.anObject3996).intValue(), -268871121);
      } else if(var2.anObject3996 instanceof Long) {
         var1.writeLong(((Long)var2.anObject3996).longValue());
      } else if(var2.anObject3996 instanceof String) {
         var1.method13892((String)var2.anObject3996, (byte)-20);
      } else {
         if(!(var2.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         ((Interface43)var2.anObject3996).method238(var1, 657611605);
      }

   }

   public abstract Class169 method14423(int var1, int var2);

   public Object method160(int var1) {
      Class169 var2 = this.method14423(var1, 1174150994);
      return null != var2 && var2.method2892(-2070597884)?var2.method2888(235666699):null;
   }

   public Class316 method14424(RS2Buffer var1) {
      int var2 = var1.readUnsignedShort(-937710807);
      Class169 var3 = this.method14423(var2, 1060441652);
      if(!var3.method2892(-1072131337)) {
         throw new IllegalStateException("");
      } else {
         Class316 var4 = new Class316(var2);
         Class var5 = var3.aClass337_2047.method6211(-570223173).aClass3066;
         if(var5 == Integer.class) {
            var4.anObject3996 = Integer.valueOf(var1.readInt_(807596586));
         } else if(var5 == Long.class) {
            var4.anObject3996 = Long.valueOf(var1.method13729((byte)115));
         } else if(String.class == var5) {
            var4.anObject3996 = var1.method13927((short)-19294);
         } else {
            if(!Interface43.class.isAssignableFrom(var5)) {
               throw new IllegalStateException();
            }

            try {
               Interface43 var6 = (Interface43)var5.newInstance();
               var6.method239(var1, (byte)0);
               var4.anObject3996 = var6;
            } catch (InstantiationException var7) {
               ;
            } catch (IllegalAccessException var8) {
               ;
            }
         }

         return var4;
      }
   }

   public Class316 method14425(RS2Buffer var1, Class263 var2) {
      int var3 = var1.readUnsignedShort(-937710807);
      Class316 var4 = new Class316(var3);
      Class var5 = var2.aClass3066;
      if(Integer.class == var5) {
         var4.anObject3996 = Integer.valueOf(var1.readInt_(-693704722));
      } else if(var5 == Long.class) {
         var4.anObject3996 = Long.valueOf(var1.method13729((byte)48));
      } else if(String.class == var5) {
         var4.anObject3996 = var1.method13927((short)-31002);
      } else {
         if(!Interface43.class.isAssignableFrom(var5)) {
            throw new IllegalStateException();
         }

         try {
            Interface43 var6 = (Interface43)var5.newInstance();
            var6.method239(var1, (byte)0);
            var4.anObject3996 = var6;
         } catch (InstantiationException var7) {
            ;
         } catch (IllegalAccessException var8) {
            ;
         }
      }

      Class169 var9 = this.method14423(var3, 1212295521);
      return var9.method2892(-1761992966) && var9.aClass337_2047.method6211(-700801269) == var2?var4:null;
   }

   public Object method159(int var1) {
      Class169 var2 = this.method14423(var1, -889141043);
      return null != var2 && var2.method2892(-1811390739)?var2.method2888(235666699):null;
   }

   public Object method161(int var1) {
      Class169 var2 = this.method14423(var1, 1142023709);
      return null != var2 && var2.method2892(-1784636603)?var2.method2888(235666699):null;
   }

   public int method14426(Class316 var1) {
      byte var2 = 2;
      int var3;
      if(var1.anObject3996 instanceof Integer) {
         var3 = var2 + 4;
      } else if(var1.anObject3996 instanceof Long) {
         var3 = var2 + 8;
      } else if(var1.anObject3996 instanceof String) {
         var3 = var2 + Class133.method2503((String)var1.anObject3996, (byte)105);
      } else {
         if(!(var1.anObject3996 instanceof Interface43)) {
            throw new IllegalStateException();
         }

         var3 = var2 + ((Interface43)var1.anObject3996).method99(2078549197);
      }

      return var3;
   }

   public Object method162(int var1) {
      Class169 var2 = this.method14423(var1, 410165122);
      return null != var2 && var2.method2892(-1539423327)?var2.method2888(235666699):null;
   }

   static final void method14427(Class508 var0, int var1) {
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -201037775 * ((Class515_Sub1_Sub4_Sub4_Sub2)var0.aClass515_Sub1_Sub4_Sub4_6021).aClass411_10896.anInt5056;
   }

   static final void method14428(Class124 var0, Class121 var1, Class508 var2, int var3) {
      var0.anInt1410 = -62967579;
      var0.anInt1411 = 811127001 * client.anInt7800;
      var0.anInt1412 = 0;
      if(-1 == var0.anInt1369 * -875927841 && !var1.aBool1206) {
         Class477_Sub2.method12815(var0.anInt1406 * 34646887, (byte)2);
      }

   }
}
