
public class Class514 {

   static Class552 aClass552_6068 = new Class552(128);


   static Class225_Sub14_Sub6 method10895(byte[] var0) {
      return new Class225_Sub14_Sub6(new RS2Buffer(var0), Class485.anInterface13_5891);
   }

   public static void method10896() {
      aClass552_6068.method11813(19533917);
   }

   public static void method10897() {
      aClass552_6068.method11813(545533961);
   }

   static Class225_Sub14_Sub6 method10898(int var0) {
      Class225_Sub14_Sub6 var1 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var0);
      if(null != var1) {
         return var1;
      } else {
         byte[] var2 = Class473.aClass253_5798.method4547(var0, 0, (byte)-51);
         if(var2 != null && var2.length > 1) {
            try {
               var1 = Class512.method10884(var2, 455512578);
            } catch (Exception var4) {
               throw new RuntimeException(var4.getMessage() + " " + var0);
            }

            aClass552_6068.method11812(var1, (long)var0);
            return var1;
         } else {
            return null;
         }
      }
   }

   static Class225_Sub14_Sub6 method10899(int var0) {
      Class225_Sub14_Sub6 var1 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var0);
      if(null != var1) {
         return var1;
      } else {
         byte[] var2 = Class473.aClass253_5798.method4547(var0, 0, (byte)-9);
         if(var2 != null && var2.length > 1) {
            try {
               var1 = Class512.method10884(var2, 455512578);
            } catch (Exception var4) {
               throw new RuntimeException(var4.getMessage() + " " + var0);
            }

            aClass552_6068.method11812(var1, (long)var0);
            return var1;
         } else {
            return null;
         }
      }
   }

   static Class225_Sub14_Sub6 method10900(int var0) {
      Class225_Sub14_Sub6 var1 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var0);
      if(null != var1) {
         return var1;
      } else {
         byte[] var2 = Class473.aClass253_5798.method4547(var0, 0, (byte)-37);
         if(var2 != null && var2.length > 1) {
            try {
               var1 = Class512.method10884(var2, 455512578);
            } catch (Exception var4) {
               throw new RuntimeException(var4.getMessage() + " " + var0);
            }

            aClass552_6068.method11812(var1, (long)var0);
            return var1;
         } else {
            return null;
         }
      }
   }

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

   static Class225_Sub14_Sub6 method10901(Class386 var0, int var1, int var2) {
      int var3 = 592770963 * var0.anInt4820 | var1 << 10;
      Class225_Sub14_Sub6 var4 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var3 << 16);
      if(var4 != null) {
         return var4;
      } else {
         byte[] var5 = Class473.aClass253_5798.method4512(Class473.aClass253_5798.method4519(var3, 830536094), 749605384);
         if(var5 != null) {
            if(var5.length <= 1) {
               return null;
            } else {
               try {
                  var4 = Class512.method10884(var5, 455512578);
               } catch (Exception var7) {
                  throw new RuntimeException(var7.getMessage() + " " + var3);
               }

               var4.aClass386_10449 = var0;
               aClass552_6068.method11812(var4, (long)var3 << 16);
               return var4;
            }
         } else {
            var3 = 592770963 * var0.anInt4820 | 65536 + var2 << 10;
            var4 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var3 << 16);
            if(null != var4) {
               return var4;
            } else {
               var5 = Class473.aClass253_5798.method4512(Class473.aClass253_5798.method4519(var3, 1351413534), 749605384);
               if(var5 != null) {
                  if(var5.length <= 1) {
                     return null;
                  } else {
                     try {
                        var4 = Class512.method10884(var5, 455512578);
                     } catch (Exception var8) {
                        throw new RuntimeException(var8.getMessage() + " " + var3);
                     }

                     var4.aClass386_10449 = var0;
                     aClass552_6068.method11812(var4, (long)var3 << 16);
                     return var4;
                  }
               } else {
                  var3 = 592770963 * var0.anInt4820 | 67107840;
                  var4 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var3 << 16);
                  if(null != var4) {
                     return var4;
                  } else {
                     var5 = Class473.aClass253_5798.method4512(Class473.aClass253_5798.method4519(var3, 2046916588), 749605384);
                     if(var5 != null) {
                        if(var5.length <= 1) {
                           return null;
                        } else {
                           try {
                              var4 = Class512.method10884(var5, 455512578);
                           } catch (Exception var9) {
                              throw new RuntimeException(var9.getMessage() + " " + var3);
                           }

                           var4.aClass386_10449 = var0;
                           aClass552_6068.method11812(var4, (long)var3 << 16);
                           return var4;
                        }
                     } else {
                        return null;
                     }
                  }
               }
            }
         }
      }
   }

   static Class225_Sub14_Sub6 method10902(Class386 var0, int var1, int var2) {
      int var3 = 592770963 * var0.anInt4820 | var1 << 10;
      Class225_Sub14_Sub6 var4 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var3 << 16);
      if(var4 != null) {
         return var4;
      } else {
         byte[] var5 = Class473.aClass253_5798.method4512(Class473.aClass253_5798.method4519(var3, 398963181), 749605384);
         if(var5 != null) {
            if(var5.length <= 1) {
               return null;
            } else {
               try {
                  var4 = Class512.method10884(var5, 455512578);
               } catch (Exception var7) {
                  throw new RuntimeException(var7.getMessage() + " " + var3);
               }

               var4.aClass386_10449 = var0;
               aClass552_6068.method11812(var4, (long)var3 << 16);
               return var4;
            }
         } else {
            var3 = 592770963 * var0.anInt4820 | 65536 + var2 << 10;
            var4 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var3 << 16);
            if(null != var4) {
               return var4;
            } else {
               var5 = Class473.aClass253_5798.method4512(Class473.aClass253_5798.method4519(var3, 1617306506), 749605384);
               if(var5 != null) {
                  if(var5.length <= 1) {
                     return null;
                  } else {
                     try {
                        var4 = Class512.method10884(var5, 455512578);
                     } catch (Exception var8) {
                        throw new RuntimeException(var8.getMessage() + " " + var3);
                     }

                     var4.aClass386_10449 = var0;
                     aClass552_6068.method11812(var4, (long)var3 << 16);
                     return var4;
                  }
               } else {
                  var3 = 592770963 * var0.anInt4820 | 67107840;
                  var4 = (Class225_Sub14_Sub6)aClass552_6068.method11811((long)var3 << 16);
                  if(null != var4) {
                     return var4;
                  } else {
                     var5 = Class473.aClass253_5798.method4512(Class473.aClass253_5798.method4519(var3, -69574101), 749605384);
                     if(var5 != null) {
                        if(var5.length <= 1) {
                           return null;
                        } else {
                           try {
                              var4 = Class512.method10884(var5, 455512578);
                           } catch (Exception var9) {
                              throw new RuntimeException(var9.getMessage() + " " + var3);
                           }

                           var4.aClass386_10449 = var0;
                           aClass552_6068.method11812(var4, (long)var3 << 16);
                           return var4;
                        }
                     } else {
                        return null;
                     }
                  }
               }
            }
         }
      }
   }

   static final void method10903(Class124 var0, Class121 var1, Class508 var2, int var3) {
      int var4 = var2.anIntArray6027[(var2.anInt6003 -= 98312473) * -937710807];
      var0.aBool1400 = var4 == 1;
      Class460.method7767(var0, 227596911);
   }

   static final void method10904(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      ItemDefinition var3 = Class277.aClass410_3220.method7007(var2, -1957162130);
      int var4;
      if(var3.aBool4998) {
         var4 = 486716741 * var3.anInt4999;
      } else if(var3.aBool4970) {
         var4 = -1690413731 * Class118.aClass520_1194.anInt7140;
      } else {
         var4 = -536278137 * Class118.aClass520_1194.anInt7141;
      }

      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var4;
   }

   static final void method10905(Class508 var0, int var1) {
      if(Class446.aBool5570) {
         Class444[] var2 = Class11.method714(-832151862);
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = var2.length;
      } else {
         var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = 0;
      }

   }

   static final void method10906(int var0, int var1, int var2) {
      if(client.aClass481_7742 != Class481.aClass481_5855) {
         if(Class421.method7188(var0, var1, false, Class41.method1117(var0, var1, 1, 1, 867710682), -1458879521)) {
            return;
         }

         Class421.method7188(var0, var1, false, Class216.method3742(var0, var1, 1, 1, 0, 639741949), -1254595749);
      } else {
         if(Class421.method7188(var0, var1, false, Class216.method3742(var0, var1, 1, 1, 0, 639741949), -380276463)) {
            return;
         }

         Class421.method7188(var0, var1, false, Class41.method1117(var0, var1, 1, 1, 692137103), -1196236188);
      }

   }

   static void method10907(int var0, int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, boolean var14, int var15, int var16) {
      if(0 != var1 && -1 != var3) {
         Object var17 = null;
         int var18;
         if(var1 < 0) {
            var18 = -var1 - 1;
            if(var18 == 1458342211 * client.anInt7800) {
               var17 = Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113;
            } else {
               var17 = client.aClass515_Sub1_Sub4_Sub4_Sub1Array7799[var18];
            }
         } else {
            var18 = var1 - 1;
            ObjectVar var19 = (ObjectVar)client.aClass423_7693.method7211((long)var18);
            if(null != var19) {
               var17 = (Class515_Sub1_Sub4_Sub4)var19.object;
            }
         }

         if(var17 != null) {
            Class546 var21 = ((Class515_Sub1_Sub4_Sub4)var17).method16642((byte)-21);
            if(null != var21.anIntArrayArray7416 && null != var21.anIntArrayArray7416[var3]) {
               var4 -= var21.anIntArrayArray7416[var3][1];
            }

            if(var21.anIntArrayArray7398 != null && var21.anIntArrayArray7398[var3] != null) {
               var4 -= var21.anIntArrayArray7398[var3][1];
            }
         }
      }

      Class515_Sub1_Sub4_Sub1 var20 = new Class515_Sub1_Sub4_Sub1(client.aClass279_7807.method4917(-2045526760), var0, Class509.anInt6033 * -1949414095, -1949414095 * Class509.anInt6033, var6, var7, var4, var10 + -1255739433 * client.anInt7659, var11 + client.anInt7659 * -1255739433, var12, var13, var1, var2, var5, var14, var3, var15);
      var20.method16345(var8, var9, Class419.method7167(var8, var9, -1949414095 * Class509.anInt6033, (byte)-20) - var5, -1255739433 * client.anInt7659 + var10, (byte)1);
      client.aClass456_7725.method7712(new Class225_Sub14_Sub4(var20), (byte)93);
   }

   static int method10908(Class515_Sub1_Sub4_Sub4_Sub1 var0, int var1) {
      int var2 = -1837645043 * var0.anInt10855;
      Class546 var3 = var0.method16642((byte)-31);
      int var4 = var0.aClass477_Sub3_10786.method7973(663636508);
      if(var4 != -1 && !var0.aClass477_Sub3_10786.aBool7998) {
         if(-507954565 * var3.anInt7385 != var4 && 899098661 * var3.anInt7386 != var4 && var4 != -542865139 * var3.anInt7383 && var4 != -1778858655 * var3.anInt7387) {
            if(var3.anInt7408 * 574941571 == var4 || var4 == var3.anInt7404 * 1402189619 || var4 == -2049507921 * var3.anInt7400 || var4 == -1626086259 * var3.anInt7391) {
               var2 = -456838535 * var0.anInt10861;
            }
         } else {
            var2 = -656725129 * var0.anInt10877;
         }
      } else {
         var2 = 25029843 * var0.anInt10870;
      }

      return var2;
   }

   public static int method10909(int var0, int var1, int var2, int var3) {
      var2 &= 3;
      return 0 == var2?var0:(1 == var2?var1:(2 == var2?4095 - var0:4095 - var1));
   }

   static final void method10910(Class508 var0, int var1) {
      int var2 = var0.anIntArray6027[(var0.anInt6003 -= 98312473) * -937710807];
      var0.anIntArray6027[(var0.anInt6003 += 98312473) * -937710807 - 1] = Class277.aClass410_3220.method7007(var2, -1957162130).anInt4961 * 842833259;
   }
}
