import java.util.Stack;

public class Class332 implements Interface50 {

   static Class332 aClass332_4176 = new Class332(1);
   int anInt4177;
   static Class332 aClass332_4178 = new Class332(0);
   static Class332 aClass332_4179 = new Class332(2);
   static int anInt4180;
   public static Class253 aClass253_4181;


   Class332(int var1) {
      this.anInt4177 = 902383931 * var1;
   }

   public int method89(byte var1) {
      return this.anInt4177 * 1188997107;
   }

   public int method269() {
      return this.anInt4177 * 1188997107;
   }

   public static Class332[] method6151() {
      return new Class332[]{aClass332_4178, aClass332_4179, aClass332_4176};
   }

   public static Class332[] method6152() {
      return new Class332[]{aClass332_4178, aClass332_4179, aClass332_4176};
   }

   static void method6153(Class579 var0, int var1) {
      var0.aClass515_Sub1_7618 = null;
      Stack var2 = Class579.aStack7620;
      synchronized(var2) {
         if(Class579.aStack7620.size() < 200) {
            Class579.aStack7620.push(var0);
         }

      }
   }

   public static String method6154(String var0, char var1, String var2, int var3) {
      int var4 = var0.length();
      int var5 = var2.length();
      int var6 = var4;
      int var7 = var5 - 1;
      if(var7 != 0) {
         int var8 = 0;

         while(true) {
            var8 = var0.indexOf(var1, var8);
            if(var8 < 0) {
               break;
            }

            ++var8;
            var6 += var7;
         }
      }

      StringBuilder var11 = new StringBuilder(var6);
      int var9 = 0;

      while(true) {
         int var10 = var0.indexOf(var1, var9);
         if(var10 < 0) {
            var11.append(var0.substring(var9));
            return var11.toString();
         }

         var11.append(var0.substring(var9, var10));
         var11.append(var2);
         var9 = 1 + var10;
      }
   }

   public static Class121 method6155(int var0, byte var1) {
      return Class18.aClass121Array188[var0 >> 16];
   }

   static final void method6156(Class124 var0, Class121 var1, Class508 var2, byte var3) {
      String var4 = (String)var2.anObjectArray6004[(var2.anInt6005 -= -46848683) * 639741949];
      if(Class245.method4382(var4, var2, (byte)46) != null) {
         if(var3 >= 32) {
            ;
         }

         var4 = var4.substring(0, var4.length() - 1);
      }

      var0.anObjectArray1469 = Class193.method3350(var4, var2, 304807524);
      var0.aBool1520 = true;
   }

   public static void method6157(int var0, int var1) {
      if(1881519639 * client.anInt7734 != var0) {
         client.anInt7673 = 0;
         if(0 == var0 || var0 == 6) {
            Class14.method732((short)256);
         }

         if(0 != var0 && Class573.aClass232_7594 != null) {
            Class573.aClass232_7594.method4000(188990653);
            Class573.aClass232_7594 = null;
         }

         if(9 == var0) {
            Class103.method2109(client.anInt7734 * 1881519639 == 12 || client.anInt7734 * 1881519639 == 16 || Class304.aClass535_3876.anInt7277 * -480228727 != client.anInt7831 * 1231941283, (byte)-102);
         }

         if(var0 == 15) {
            Class563.method11956(Class304.aClass535_3876.anInt7273 * -1876560777 != client.anInt7831 * 1231941283, -1257070028);
         }

         if(7 != var0 && 11 != var0) {
            if(var0 != 4 && (var0 != 18 || client.anInt7734 * 1881519639 == 10)) {
               if(16 == var0) {
                  Class81.method1659(722892466);
               }
            } else if(!Class14.method732((short)256)) {
               return;
            }
         } else if(!Class118_Sub19.method14476(1887509816)) {
            return;
         }

         if(Class32.method871(var0, 1486935375)) {
            client.aClass279_7807.method4931((byte)34);
            Class496_Sub2.method15407(true, 54970357);
         }

         if(19 == var0 || 9 == var0) {
            Class56_Sub2.method13111(-392105446);
         }

         boolean var2 = 5 == var0 || Class118_Sub7.method13186(var0, (byte)-87) || Class434.method7336(var0, 901295821);
         boolean var3 = 5 == client.anInt7734 * 1881519639 || Class118_Sub7.method13186(client.anInt7734 * 1881519639, (byte)-93) || Class434.method7336(client.anInt7734 * 1881519639, -1969184948);
         if(var3 != var2) {
            if(var2) {
               Class226.anInt2621 = Class226.anInt2619 * 376616053;
               if(Class500.aClass225_Sub6_5953.aClass463_Sub9_8503.method12871(-1348823122) != 0) {
                  Class175.method3066(2, Class243.aClass253_2928, Class226.anInt2619 * 548075331, 0, Class500.aClass225_Sub6_5953.aClass463_Sub9_8503.method12871(-1510067775), false, 1782118597);
                  Class508.method10790(-1968900841);
               } else {
                  Class225_Sub1.method12265(2, 1332713754);
               }

               Class338.aClass247_4364.method4401(false, (byte)20);
            } else {
               Class225_Sub1.method12265(2, 832717543);
               Class338.aClass247_4364.method4401(true, (byte)-64);
            }
         }

         if(Class32.method871(var0, 1955658327) || 0 == var0 || 6 == var0) {
            Class428.aClass545_5383.method11458();
         }

         client.anInt7734 = var0 * 906289575;
      }
   }

   static final void method6158(Class508 var0, short var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      Class42 var3 = Class94.method1841(var2, (byte)-36);
      String var4 = "";
      if(null != var3) {
         if(var1 == 255) {
            return;
         }

         if(var3.aString447 != null) {
            if(var1 == 255) {
               ;
            }

            var4 = var3.aString447;
         }
      }

      var0.anObjectArray6004[(var0.anInt6005 += -46848683) * 639741949 - 1] = var4;
   }

   static final void method6159(Class515_Sub1_Sub4_Sub4 var0, Class515_Sub1_Sub4_Sub4 var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9) {
      int var10 = var1.method16644((byte)4);
      if(-1 != var10) {
         Class171 var11 = null;
         var11 = (Class171)client.aClass564_7712.method11959((long)var10);
         if(null == var11) {
            Class86[] var12 = Class152.method2757(Class485.aClass253_5890, var10, 0);
            if(var12 == null) {
               return;
            }

            var11 = Class428.aClass545_5383.method11483(var12[0], true);
            client.aClass564_7712.method11958(var11, (long)var10);
         }

         Class326 var16 = var0.method10913().aClass326_4031;
         Class408.method6983(var0.aByte8443, (int)var16.aFloat4036, (int)var16.aFloat4033, var0.method16638(2046584200) * 256, 0, false, 1268918796);
         int var13 = (int)(client.aFloatArray7680[0] + (float)var3 - 18.0F);
         int var14 = (int)(client.aFloatArray7680[1] + (float)var4 - 16.0F - 54.0F);
         var13 += var2 / 4 * 18;
         var14 += 18 * (var2 % 4);
         var11.method2926(var13, var14);
         if(var0 == var1) {
            Class428.aClass545_5383.method11464(var13 - 1, var14 - 1, 18, 18, -256, (byte)-95);
         }

         Class222_Sub5 var15 = Class389.method6688(1308363193);
         var15.aClass515_Sub1_Sub4_Sub4_8838 = var1;
         var15.anInt8840 = -2036306579 * var13;
         var15.anInt8837 = var14 * -1157497609;
         var15.anInt8841 = 1426795027 * (16 + var13);
         var15.anInt8836 = (16 + var14) * -1296981611;
         client.aClass462_7775.method7796(var15, -173146467);
      }
   }

   public static Class436 method6160(String var0, int var1, int var2) {
      Class436_Sub1 var3 = new Class436_Sub1();
      var3.aString5437 = var0;
      var3.anInt5436 = 296808287 * var1;
      return var3;
   }

   static final void method6161(Class508 var0, int var1) {
      var0.anInt6003 -= 196624946;
      int var2 = var0.anIntArray6027[-937710807 * var0.anInt6003];
      int var3 = var0.anIntArray6027[var0.anInt6003 * -937710807 + 1];
      if(-1 == var3) {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = -1;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class304.aClass243_3879.method4370(var2, (short)-14924).method16304((char)var3, -2005181298);
      }

   }
}
