import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.Arrays;

public class ItemDefinition implements Interface18 {

   int anInt4928 = 1163369393;
   byte[] aByteArray4929;
   int anInt4930 = 0;
   static final int anInt4931 = 6;
   int[] anIntArray4932;
   public int anInt4933 = 1259931903;
   Class410 aClass410_4934;
   int anInt4935;
   public int anInt4936 = 0;
   int anInt4937;
   public String aString4938 = "null";
   short[] aShortArray4939;
   int[] anIntArray4940;
   byte[] aByteArray4941;
   short[] aShortArray4942;
   short[] aShortArray4943;
   byte[] aByteArray4944;
   int anInt4945 = -1946608079;
   int anInt4946 = 165725151;
   static final int anInt4947 = 5;
   public int anInt4948 = 0;
   public int anInt4949 = 0;
   public int anInt4950 = 0;
   public int anInt4951 = 0;
   public int anInt4952 = 0;
   int[] anIntArray4953;
   public int anInt4954 = 1496525487;
   public int anInt4955 = 477888753;
   public static final int anInt4956 = 1;
   int anInt4957 = 0;
   public int anInt4958 = 0;
   public String[] aStringArray4959;
   public int anInt4960 = -517265805;
   public int anInt4961 = -685156163;
   public int anInt4962 = 1756144464;
   public static final int anInt4963 = 0;
   int anInt4964 = 651354931;
   public String[] aStringArray4965;
   public int anInt4966 = -626657131;
   public int[] anIntArray4967;
   int anInt4968 = 1705570815;
   int anInt4969 = 0;
   public boolean aBool4970 = false;
   int anInt4971 = 0;
   int anInt4972 = 0;
   int anInt4973 = 0;
   int anInt4974 = 0;
   int anInt4975 = -1813178839;
   int anInt4976 = 623986085;
   int anInt4977 = -1953974929;
   int anInt4978 = -918202907;
   short[] aShortArray4979;
   public int anInt4980 = 0;
   public int anInt4981 = -1992183573;
   public int anInt4982 = 2131743999;
   int anInt4983 = 235374719;
   public int anInt4984 = 791793941;
   int anInt4985 = 1138308992;
   int anInt4986 = 626664576;
   int anInt4987 = -1837059200;
   int anInt4988 = 0;
   public static final int anInt4989 = 2;
   int[] anIntArray4990;
   public boolean aBool4991 = false;
   public int anInt4992 = 0;
   Class423 aClass423_4993;
   public static short[] aShortArray4994 = new short[256];
   int anInt4995 = -783209689;
   int anInt4996 = -117181053;
   public int anInt4997 = -782145207;
   public boolean aBool4998 = false;
   public int anInt4999;


   public final boolean method6885(boolean var1, Class417 var2) {
      int var3;
      int var4;
      int var5;
      if(var1) {
         if(null != var2 && var2.anIntArray5144 != null) {
            var3 = var2.anIntArray5144[0];
            var4 = var2.anIntArray5144[1];
            var5 = var2.anIntArray5144[2];
         } else {
            var3 = -522943185 * this.anInt4945;
            var4 = this.anInt4928 * -1728826705;
            var5 = 846000641 * this.anInt4968;
         }
      } else if(var2 != null && null != var2.anIntArray5142) {
         var3 = var2.anIntArray5142[0];
         var4 = var2.anIntArray5142[1];
         var5 = var2.anIntArray5142[2];
      } else {
         var3 = -1094311917 * this.anInt4978;
         var4 = 553600993 * this.anInt4946;
         var5 = this.anInt4964 * -6803451;
      }

      if(var3 == -1) {
         return true;
      } else {
         boolean var6 = true;
         if(!this.aClass410_4934.aClass253_5010.method4506(var3, 0, (byte)36)) {
            var6 = false;
         }

         if(var4 != -1 && !this.aClass410_4934.aClass253_5010.method4506(var4, 0, (byte)-23)) {
            var6 = false;
         }

         if(var5 != -1 && !this.aClass410_4934.aClass253_5010.method4506(var5, 0, (byte)-11)) {
            var6 = false;
         }

         return var6;
      }
   }

   void method6886(int var1) {}

   // XXX: Decode definitions
   void method6887(RS2Buffer var1, int var2) {
      while(true) {
    	 // XXX: OPCODE
         int var3 = var1.readUnsignedByte(-700559597);
         if(var3 == 0) {
            if(var2 >= 315200319) {
               ;
            }

            return;
         }

         // XXX: Read opcode values
         this.method6888(var1, var3, 2083428270);
      }
   }

   void method6888(RS2Buffer var1, int var2, int var3) {
      if(var2 == 1) {
         this.anInt4937 = var1.readLargeSmart(2009258481) * -129244031;
      } else if(2 == var2) {
         this.aString4938 = var1.readString((byte)-79);
      } else if(4 == var2) {
         this.anInt4962 = var1.readUnsignedShort(-937710807) * 142611993;
      } else if(5 == var2) {
         this.anInt4958 = var1.readUnsignedShort(-937710807) * -1915339629;
      } else if(var2 == 6) {
         this.anInt4948 = var1.readUnsignedShort(-937710807) * -1808005601;
      } else if(7 == var2) {
         this.anInt4950 = var1.readUnsignedShort(-937710807) * 415895897;
         if(this.anInt4950 * -1036310807 > 32767) {
            this.anInt4950 -= 291045376;
         }
      } else if(8 == var2) {
         this.anInt4951 = var1.readUnsignedShort(-937710807) * 949092931;
         if(1409604203 * this.anInt4951 > 32767) {
            this.anInt4951 -= 37945344;
         }
      } else if(11 == var2) {
         this.anInt4952 = 1697466997;
      } else if(12 == var2) {
         this.anInt4954 = var1.readInt_(1696771610) * 1496525487;
      } else if(13 == var2) {
         this.anInt4960 = var1.readUnsignedByte(-700559597) * 517265805;
      } else if(var2 == 14) {
         this.anInt4961 = var1.readUnsignedByte(-700559597) * 685156163;
      } else if(16 == var2) {
         this.aBool4970 = true;
      } else if(18 == var2) {
         this.anInt4933 = var1.readUnsignedShort(-937710807) * -1259931903;
      } else if(var2 == 23) {
         this.anInt4978 = var1.readLargeSmart(1594066467) * 918202907;
      } else if(var2 == 24) {
         this.anInt4946 = var1.readLargeSmart(1646677672) * -165725151;
      } else if(var2 == 25) {
         this.anInt4945 = var1.readLargeSmart(1947055293) * 1946608079;
      } else if(26 == var2) {
         this.anInt4928 = var1.readLargeSmart(1795057642) * -1163369393;
      } else if(27 == var2) {
         this.anInt4966 = var1.readUnsignedByte(-700559597) * 626657131;
      } else if(var2 >= 30 && var2 < 35) {
         this.aStringArray4965[var2 - 30] = var1.readString((byte)-17);
      } else if(var2 >= 35 && var2 < 40) {
         this.aStringArray4959[var2 - 35] = var1.readString((byte)52);
      } else {
         int var4;
         int var5;
         if(40 == var2) {
            var4 = var1.readUnsignedByte(-700559597);
            this.aShortArray4939 = new short[var4];
            this.aShortArray4979 = new short[var4];

            for(var5 = 0; var5 < var4; ++var5) {
               this.aShortArray4939[var5] = (short)var1.readUnsignedShort(-937710807);
               this.aShortArray4979[var5] = (short)var1.readUnsignedShort(-937710807);
            }
         } else if(var2 == 41) {
            var4 = var1.readUnsignedByte(-700559597);
            this.aShortArray4942 = new short[var4];
            this.aShortArray4943 = new short[var4];

            for(var5 = 0; var5 < var4; ++var5) {
               this.aShortArray4942[var5] = (short)var1.readUnsignedShort(-937710807);
               this.aShortArray4943[var5] = (short)var1.readUnsignedShort(-937710807);
            }
         } else if(var2 == 42) {
            var4 = var1.readUnsignedByte(-700559597);
            this.aByteArray4941 = new byte[var4];

            for(var5 = 0; var5 < var4; ++var5) {
               this.aByteArray4941[var5] = var1.readByte(1791348291);
            }
         } else if(43 == var2) {
            this.anInt4999 = var1.readInt_(-2054048788) * 1603114381;
            this.aBool4998 = true;
         } else {
            int var6;
            int var7;
            byte var9;
            if(44 == var2) {
               var4 = var1.readUnsignedShort(-937710807);
               var5 = 0;

               for(var6 = var4; var6 > 0; var6 >>= 1) {
                  ++var5;
               }

               this.aByteArray4944 = new byte[var5];
               var9 = 0;

               for(var7 = 0; var7 < var5; ++var7) {
                  if((var4 & 1 << var7) > 0) {
                     this.aByteArray4944[var7] = var9++;
                  } else {
                     this.aByteArray4944[var7] = -1;
                  }
               }
            } else if(45 == var2) {
               var4 = var1.readUnsignedShort(-937710807);
               var5 = 0;

               for(var6 = var4; var6 > 0; var6 >>= 1) {
                  ++var5;
               }

               this.aByteArray4929 = new byte[var5];
               var9 = 0;

               for(var7 = 0; var7 < var5; ++var7) {
                  if((var4 & 1 << var7) > 0) {
                     this.aByteArray4929[var7] = var9++;
                  } else {
                     this.aByteArray4929[var7] = -1;
                  }
               }
            } else if(var2 == 65) {
               this.aBool4991 = true;
            } else if(78 == var2) {
               this.anInt4964 = var1.readLargeSmart(1809513362) * -651354931;
            } else if(var2 == 79) {
               this.anInt4968 = var1.readLargeSmart(2065876007) * -1705570815;
            } else if(90 == var2) {
               this.anInt4975 = var1.readLargeSmart(2128602762) * 1813178839;
            } else if(91 == var2) {
               this.anInt4977 = var1.readLargeSmart(1963473835) * 1953974929;
            } else if(92 == var2) {
               this.anInt4976 = var1.readLargeSmart(2133692439) * -623986085;
            } else if(var2 == 93) {
               this.anInt4995 = var1.readLargeSmart(1588943991) * 783209689;
            } else if(94 == var2) {
               this.anInt4984 = var1.readUnsignedShort(-937710807) * -791793941;
            } else if(var2 == 95) {
               this.anInt4949 = var1.readUnsignedShort(-937710807) * 1091531269;
            } else if(var2 == 96) {
               this.anInt4992 = var1.readUnsignedByte(-700559597) * -1250535995;
            } else if(var2 == 97) {
               this.anInt4981 = var1.readUnsignedShort(-937710807) * 1992183573;
            } else if(var2 == 98) {
               this.anInt4982 = var1.readUnsignedShort(-937710807) * -2131743999;
            } else if(var2 >= 100 && var2 < 110) {
               if(null == this.anIntArray4990) {
                  this.anIntArray4990 = new int[10];
                  this.anIntArray4940 = new int[10];
               }

               this.anIntArray4990[var2 - 100] = var1.readUnsignedShort(-937710807);
               this.anIntArray4940[var2 - 100] = var1.readUnsignedShort(-937710807);
            } else if(110 == var2) {
               this.anInt4985 = var1.readUnsignedShort(-937710807) * -628641169;
            } else if(111 == var2) {
               this.anInt4986 = var1.readUnsignedShort(-937710807) * -867519415;
            } else if(112 == var2) {
               this.anInt4987 = var1.readUnsignedShort(-937710807) * 790954343;
            } else if(var2 == 113) {
               this.anInt4988 = var1.readByte(1290190599) * -1471100263;
            } else if(var2 == 114) {
               this.anInt4957 = var1.readByte(1398672348) * -1089129741;
            } else if(115 == var2) {
               this.anInt4936 = var1.readUnsignedByte(-700559597) * 1302822749;
            } else if(121 == var2) {
               this.anInt4983 = var1.readUnsignedShort(-937710807) * -235374719;
            } else if(var2 == 122) {
               this.anInt4955 = var1.readUnsignedShort(-937710807) * -477888753;
            } else if(var2 == 125) {
               this.anInt4969 = (var1.readByte(2040977173) << 2) * -2134072361;
               this.anInt4971 = (var1.readByte(1651975129) << 2) * 1196181421;
               this.anInt4973 = (var1.readByte(280460087) << 2) * -1776609781;
            } else if(126 == var2) {
               this.anInt4930 = (var1.readByte(1404003616) << 2) * 515050057;
               this.anInt4972 = (var1.readByte(-1259665735) << 2) * 1638077447;
               this.anInt4974 = (var1.readByte(-384999122) << 2) * 1569230857;
            } else if(127 != var2 && 128 != var2 && 129 != var2 && 130 != var2) {
               if(var2 == 132) {
                  var4 = var1.readUnsignedByte(-700559597);
                  this.anIntArray4967 = new int[var4];

                  for(var5 = 0; var5 < var4; ++var5) {
                     this.anIntArray4967[var5] = var1.readUnsignedShort(-937710807);
                  }
               } else if(134 == var2) {
                  this.anInt4980 = var1.readUnsignedByte(-700559597) * 518399867;
               } else if(139 == var2) {
                  this.anInt4996 = var1.readUnsignedShort(-937710807) * 117181053;
               } else if(140 == var2) {
                  this.anInt4997 = var1.readUnsignedShort(-937710807) * 782145207;
               } else if(var2 >= 142 && var2 < 147) {
                  if(null == this.anIntArray4932) {
                     this.anIntArray4932 = new int[6];
                     Arrays.fill(this.anIntArray4932, -1);
                  }

                  this.anIntArray4932[var2 - 142] = var1.readUnsignedShort(-937710807);
               } else if(var2 >= 150 && var2 < 155) {
                  if(null == this.anIntArray4953) {
                     this.anIntArray4953 = new int[5];
                     Arrays.fill(this.anIntArray4953, -1);
                  }

                  this.anIntArray4953[var2 - 150] = var1.readUnsignedShort(-937710807);
               } else if(249 == var2) {
                  var4 = var1.readUnsignedByte(-700559597);
                  if(null == this.aClass423_4993) {
                     var5 = Class468.method7880(var4, (byte)-87);
                     this.aClass423_4993 = new Class423(var5);
                  }

                  for(var5 = 0; var5 < var4; ++var5) {
                     boolean var10 = var1.readUnsignedByte(-700559597) == 1;
                     var7 = var1.readTriByte(1183258988);
                     Object var8;
                     if(var10) {
                        var8 = new ObjectVar(var1.readString((byte)38));
                     } else {
                        var8 = new IntVar(var1.readInt_(-1282515313));
                     }

                     this.aClass423_4993.method7206((Class225)var8, (long)var7);
                  }
               }
            } else {
               var1.readUnsignedByte(-700559597);
               var1.readUnsignedShort(-937710807);
            }
         }
      }

   }

   public int method6889(int var1) {
      return null == this.anIntArray4932?-1:this.anIntArray4932[var1];
   }

   void method6890(ItemDefinition var1, ItemDefinition var2, byte var3) {
      this.anInt4954 = 0;
      this.anInt4937 = 1 * var1.anInt4937;
      this.anInt4962 = var1.anInt4962 * 1;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = var1.anInt4948 * 1;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = var1.anInt4951 * 1;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = 1 * var2.anInt4960;
      this.anInt4961 = 1 * var2.anInt4961;
      this.anInt4966 = var2.anInt4966 * 1;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = 1 * var2.anInt4945;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = var2.anInt4968 * 1;
      this.anInt4969 = var2.anInt4969 * 1;
      this.anInt4930 = 1 * var2.anInt4930;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = 1 * var2.anInt4972;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = var2.anInt4975 * 1;
      this.anInt4976 = var2.anInt4976 * 1;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = var2.anInt4995 * 1;
      this.anInt4984 = var2.anInt4984 * 1;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var4 = 0; var4 < 4; ++var4) {
            this.aStringArray4959[var4] = var2.aStringArray4959[var4];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5235.method7137(this.aClass410_4934.aClass470_5014, (byte)-48);
   }

   void method6891(ItemDefinition var1, ItemDefinition var2, int var3) {
      this.anInt4954 = 0;
      this.anInt4937 = var1.anInt4937 * 1;
      this.anInt4962 = 1 * var1.anInt4962;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = 1 * var1.anInt4948;
      this.anInt4949 = 1 * var1.anInt4949;
      this.anInt4950 = 1 * var1.anInt4950;
      this.anInt4951 = 1 * var1.anInt4951;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = var2.anInt4960 * 1;
      this.anInt4961 = var2.anInt4961 * 1;
      this.anInt4966 = 1 * var2.anInt4966;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = var2.anInt4945 * 1;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = 1 * var2.anInt4968;
      this.anInt4969 = 1 * var2.anInt4969;
      this.anInt4930 = var2.anInt4930 * 1;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = var2.anInt4972 * 1;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = 1 * var2.anInt4975;
      this.anInt4976 = 1 * var2.anInt4976;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = 1 * var2.anInt4995;
      this.anInt4984 = 1 * var2.anInt4984;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.anInt4952 = 1 * var2.anInt4952;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var4 = 0; var4 < 4; ++var4) {
            this.aStringArray4959[var4] = var2.aStringArray4959[var4];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5260.method7137(this.aClass410_4934.aClass470_5014, (byte)-29);
   }

   static String method6892(int var0, Class470 var1) {
      return var0 < 100000?"<col=ffff00>" + var0 + "</col>":(var0 < 10000000?"<col=ffffff>" + var0 / 1000 + Class418.aClass418_5206.method7137(var1, (byte)-122) + "</col>":"<col=00ff80>" + var0 / 1000000 + Class418.aClass418_5285.method7137(var1, (byte)-111) + "</col>");
   }

   public ItemDefinition method6893(int var1, byte var2) {
      if(this.anIntArray4990 != null && var1 > 1) {
         int var3 = -1;

         for(int var4 = 0; var4 < 10; ++var4) {
            if(var1 >= this.anIntArray4940[var4] && 0 != this.anIntArray4940[var4]) {
               var3 = this.anIntArray4990[var4];
            }
         }

         if(var3 != -1) {
            return this.aClass410_4934.method7007(var3, -1957162130);
         }
      }

      return this;
   }

   public final boolean method6894(boolean var1, Class417 var2) {
      int var3;
      int var4;
      if(var1) {
         if(null != var2 && null != var2.anIntArray5145) {
            var3 = var2.anIntArray5145[0];
            var4 = var2.anIntArray5145[1];
         } else {
            var3 = this.anInt4977 * -611993999;
            var4 = -579572887 * this.anInt4995;
         }
      } else if(null != var2 && var2.anIntArray5146 != null) {
         var3 = var2.anIntArray5146[0];
         var4 = var2.anIntArray5146[1];
      } else {
         var3 = -1248912921 * this.anInt4975;
         var4 = this.anInt4976 * 2064377299;
      }

      if(var3 == -1) {
         return true;
      } else {
         boolean var5 = true;
         if(!this.aClass410_4934.aClass253_5010.method4506(var3, 0, (byte)31)) {
            var5 = false;
         }

         if(-1 != var4 && !this.aClass410_4934.aClass253_5010.method4506(var4, 0, (byte)34)) {
            var5 = false;
         }

         return var5;
      }
   }

   int[] method6895(int[] var1, int var2, int var3) {
      int[] var4 = new int[1152];
      int var5 = 0;

      for(int var6 = 0; var6 < 32; ++var6) {
         for(int var7 = 0; var7 < 36; ++var7) {
            int var8 = var1[var5];
            if(var8 == 0) {
               if(var7 > 0 && 0 != var1[var5 - 1]) {
                  var8 = var2;
               } else if(var6 > 0 && 0 != var1[var5 - 36]) {
                  var8 = var2;
               } else if(var7 < 35 && 0 != var1[1 + var5]) {
                  var8 = var2;
               } else if(var6 < 31 && var1[36 + var5] != 0) {
                  var8 = var2;
               }
            }

            var4[var5++] = var8;
         }
      }

      return var4;
   }

   void method6896(int[] var1, int var2, byte var3) {
      for(int var4 = 31; var4 > 0; --var4) {
         int var5 = var4 * 36;

         for(int var6 = 35; var6 > 0; --var6) {
            if(0 == var1[var5 + var6] && 0 != var1[var5 + var6 - 1 - 36]) {
               var1[var6 + var5] = var2;
            }
         }
      }

   }

   public final boolean method6897(boolean var1, Class417 var2, byte var3) {
      int var4;
      int var5;
      int var6;
      if(var1) {
         if(null != var2 && var2.anIntArray5144 != null) {
            var4 = var2.anIntArray5144[0];
            var5 = var2.anIntArray5144[1];
            var6 = var2.anIntArray5144[2];
         } else {
            var4 = -522943185 * this.anInt4945;
            var5 = this.anInt4928 * -1728826705;
            var6 = 846000641 * this.anInt4968;
         }
      } else if(var2 != null && null != var2.anIntArray5142) {
         var4 = var2.anIntArray5142[0];
         var5 = var2.anIntArray5142[1];
         var6 = var2.anIntArray5142[2];
      } else {
         var4 = -1094311917 * this.anInt4978;
         var5 = 553600993 * this.anInt4946;
         var6 = this.anInt4964 * -6803451;
      }

      if(var4 == -1) {
         return true;
      } else {
         boolean var7 = true;
         if(!this.aClass410_4934.aClass253_5010.method4506(var4, 0, (byte)-48)) {
            var7 = false;
         }

         if(var5 != -1 && !this.aClass410_4934.aClass253_5010.method4506(var5, 0, (byte)25)) {
            var7 = false;
         }

         if(var6 != -1 && !this.aClass410_4934.aClass253_5010.method4506(var6, 0, (byte)-34)) {
            var7 = false;
         }

         return var7;
      }
   }

   public final Class96 method6898(boolean var1, Class417 var2, byte var3) {
      int var4;
      int var5;
      int var6;
      if(var1) {
         if(null != var2 && null != var2.anIntArray5144) {
            var4 = var2.anIntArray5144[0];
            var5 = var2.anIntArray5144[1];
            var6 = var2.anIntArray5144[2];
         } else {
            var4 = this.anInt4945 * -522943185;
            var5 = this.anInt4928 * -1728826705;
            var6 = this.anInt4968 * 846000641;
         }
      } else if(var2 != null && var2.anIntArray5142 != null) {
         var4 = var2.anIntArray5142[0];
         var5 = var2.anIntArray5142[1];
         var6 = var2.anIntArray5142[2];
      } else {
         var4 = -1094311917 * this.anInt4978;
         var5 = this.anInt4946 * 553600993;
         var6 = this.anInt4964 * -6803451;
      }

      if(var4 == -1) {
         return null;
      } else {
         Class96 var7 = Class96.method1867(this.aClass410_4934.aClass253_5010, var4, 0);
         if(null == var7) {
            return null;
         } else {
            if(var7.anInt947 < 13) {
               var7.method1848(2);
            }

            if(var5 != -1) {
               Class96 var8 = Class96.method1867(this.aClass410_4934.aClass253_5010, var5, 0);
               if(var8.anInt947 < 13) {
                  var8.method1848(2);
               }

               if(var6 != -1) {
                  Class96 var9 = Class96.method1867(this.aClass410_4934.aClass253_5010, var6, 0);
                  if(var9.anInt947 < 13) {
                     var9.method1848(2);
                  }

                  Class96[] var10 = new Class96[]{var7, var8, var9};
                  var7 = new Class96(var10, 3);
               } else {
                  Class96[] var12 = new Class96[]{var7, var8};
                  var7 = new Class96(var12, 2);
               }
            }

            if(!var1 && (-1939603481 * this.anInt4969 != 0 || 0 != this.anInt4971 * 1348776997 || 0 != this.anInt4973 * 1366312355)) {
               var7.method1863(-1939603481 * this.anInt4969, this.anInt4971 * 1348776997, this.anInt4973 * 1366312355);
            }

            if(var1 && (this.anInt4930 * -503642119 != 0 || 0 != -825747017 * this.anInt4972 || 1308098105 * this.anInt4974 != 0)) {
               var7.method1863(-503642119 * this.anInt4930, this.anInt4972 * -825747017, this.anInt4974 * 1308098105);
            }

            short[] var11;
            int var13;
            if(null != this.aShortArray4939) {
               if(null != var2 && null != var2.aShortArray5143) {
                  var11 = var2.aShortArray5143;
               } else {
                  var11 = this.aShortArray4979;
               }

               for(var13 = 0; var13 < this.aShortArray4939.length; ++var13) {
                  var7.method1860(this.aShortArray4939[var13], var11[var13]);
               }
            }

            if(this.aShortArray4942 != null) {
               if(null != var2 && var2.aShortArray5147 != null) {
                  var11 = var2.aShortArray5147;
               } else {
                  var11 = this.aShortArray4943;
               }

               for(var13 = 0; var13 < this.aShortArray4942.length; ++var13) {
                  var7.method1878(this.aShortArray4942[var13], var11[var13]);
               }
            }

            return var7;
         }
      }
   }

   public final Class568 method6899(Class545 var1, int var2, int var3, Class540 var4, Class477 var5, int var6, int var7, int var8, int var9) {
      int var10;
      if(this.anIntArray4990 != null && var3 > 1) {
         var10 = -1;

         for(int var11 = 0; var11 < 10; ++var11) {
            if(var3 >= this.anIntArray4940[var11] && this.anIntArray4940[var11] != 0) {
               var10 = this.anIntArray4990[var11];
            }
         }

         if(-1 != var10) {
            return this.aClass410_4934.method7007(var10, -1957162130).method6931(var1, var2, 1, var4, var5, var6, var7, var8, var9, 412057594);
         }
      }

      var10 = var2;
      if(var5 != null) {
         var10 = var2 | var5.method7983(257675263);
      }

      Class564 var12 = this.aClass410_4934.aClass564_5017;
      Class568 var20;
      synchronized(var12) {
         var20 = (Class568)this.aClass410_4934.aClass564_5017.method11959((long)(this.anInt4935 * 1349863775 | var1.anInt7353 * -1659372711 << 29));
      }

      if(var20 == null || var1.method11494(var20.m(), var10) != 0) {
         if(null != var20) {
            var10 = var1.method11495(var10, var20.m());
         }

         int var19 = var10;
         if(this.aShortArray4942 != null) {
            var19 = var10 | '\u8000';
         }

         if(null != this.aShortArray4939 || var4 != null) {
            var19 |= 16384;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 1;
         }

         if(128 != this.anInt4985 * 1008462991) {
            var19 |= 2;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 4;
         }

         Class96 var13 = Class96.method1867(this.aClass410_4934.aClass253_5010, 59267969 * this.anInt4937, 0);
         if(null == var13) {
            return null;
         }

         if(var13.anInt947 < 13) {
            var13.method1848(2);
         }

         var20 = var1.method11493(var13, var19, this.aClass410_4934.anInt5021 * -18620791, 64 + this.anInt4988 * 1687021993, 850 + this.anInt4957 * -1689055449);
         if(128 != 1008462991 * this.anInt4985 || 128 != 685211129 * this.anInt4986 || 128 != this.anInt4987 * -920810921) {
            var20.oa(1008462991 * this.anInt4985, 685211129 * this.anInt4986, -920810921 * this.anInt4987);
         }

         int var14;
         if(null != this.aShortArray4939) {
            for(var14 = 0; var14 < this.aShortArray4939.length; ++var14) {
               if(null != this.aByteArray4941 && var14 < this.aByteArray4941.length) {
                  var20.X(this.aShortArray4939[var14], aShortArray4994[this.aByteArray4941[var14] & 255]);
               } else {
                  var20.X(this.aShortArray4939[var14], this.aShortArray4979[var14]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var14 = 0; var14 < this.aShortArray4942.length; ++var14) {
               var20.W(this.aShortArray4942[var14], this.aShortArray4943[var14]);
            }
         }

         if(var4 != null) {
            for(var14 = 0; var14 < 10; ++var14) {
               for(int var15 = 0; var15 < Class33.aShortArrayArray382[var14].length; ++var15) {
                  if(var4.anIntArray7312[var14] < Class102.aShortArrayArrayArray1007[var14][var15].length) {
                     var20.X(Class33.aShortArrayArray382[var14][var15], Class102.aShortArrayArrayArray1007[var14][var15][var4.anIntArray7312[var14]]);
                  }
               }
            }
         }

         var20.KA(var10);
         Class564 var21 = this.aClass410_4934.aClass564_5017;
         synchronized(var21) {
            this.aClass410_4934.aClass564_5017.method11958(var20, (long)(this.anInt4935 * 1349863775 | -1659372711 * var1.anInt7353 << 29));
         }
      }

      if(null != var5 || var9 != 0) {
         var20 = var20.method12060((byte)1, var10, true);
         if(null != var5) {
            var5.method8040(var20, 0, 777293719);
         }

         if(var9 != 0) {
            var20.PA(var6, var7, var8, var9);
         }
      }

      var20.KA(var2);
      return var20;
   }

   public final Class96 method6900(boolean var1, Class417 var2, int var3) {
      int var4;
      int var5;
      if(var1) {
         if(var2 != null && var2.anIntArray5145 != null) {
            var4 = var2.anIntArray5145[0];
            var5 = var2.anIntArray5145[1];
         } else {
            var4 = this.anInt4977 * -611993999;
            var5 = this.anInt4995 * -579572887;
         }
      } else if(null != var2 && null != var2.anIntArray5146) {
         var4 = var2.anIntArray5146[0];
         var5 = var2.anIntArray5146[1];
      } else {
         var4 = this.anInt4975 * -1248912921;
         var5 = 2064377299 * this.anInt4976;
      }

      if(-1 == var4) {
         return null;
      } else {
         Class96 var6 = Class96.method1867(this.aClass410_4934.aClass253_5010, var4, 0);
         if(var6.anInt947 < 13) {
            var6.method1848(2);
         }

         if(var5 != -1) {
            Class96 var7 = Class96.method1867(this.aClass410_4934.aClass253_5010, var5, 0);
            if(var7.anInt947 < 13) {
               var7.method1848(2);
            }

            Class96[] var8 = new Class96[]{var6, var7};
            var6 = new Class96(var8, 2);
         }

         short[] var9;
         int var10;
         if(null != this.aShortArray4939) {
            if(null != var2 && null != var2.aShortArray5143) {
               var9 = var2.aShortArray5143;
            } else {
               var9 = this.aShortArray4979;
            }

            for(var10 = 0; var10 < this.aShortArray4939.length; ++var10) {
               var6.method1860(this.aShortArray4939[var10], var9[var10]);
            }
         }

         if(null != this.aShortArray4942) {
            if(var2 != null && var2.aShortArray5147 != null) {
               var9 = var2.aShortArray5147;
            } else {
               var9 = this.aShortArray4943;
            }

            for(var10 = 0; var10 < this.aShortArray4942.length; ++var10) {
               var6.method1878(this.aShortArray4942[var10], var9[var10]);
            }
         }

         return var6;
      }
   }

   public int method6901(int var1, int var2, int var3) {
      if(null == this.aClass423_4993) {
         return var2;
      } else {
         IntVar var4 = (IntVar)this.aClass423_4993.method7211((long)var1);
         return null == var4?var2:var4.integer * 442885445;
      }
   }

   public String method6902(int var1, String var2, int var3) {
      if(null == this.aClass423_4993) {
         return var2;
      } else {
         ObjectVar var4 = (ObjectVar)this.aClass423_4993.method7211((long)var1);
         return var4 == null?var2:(String)var4.object;
      }
   }

   void method6903(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4937 = var1.anInt4937 * 1;
      this.anInt4962 = 1 * var1.anInt4962;
      this.anInt4958 = 1 * var1.anInt4958;
      this.anInt4948 = 1 * var1.anInt4948;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = 1 * var1.anInt4951;
      this.aShortArray4939 = var1.aShortArray4939;
      this.aShortArray4979 = var1.aShortArray4979;
      this.aByteArray4941 = var1.aByteArray4941;
      this.aShortArray4942 = var1.aShortArray4942;
      this.aShortArray4943 = var1.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4954 = 1 * var2.anInt4954;
      this.anInt4952 = 1697466997;
   }

   public int method6904(int var1, byte var2) {
      return this.anIntArray4953 == null?-1:this.anIntArray4953[var1];
   }

   void method6905(RS2Buffer var1, int var2) {
      if(var2 == 1) {
         this.anInt4937 = var1.readLargeSmart(1666815379) * -129244031;
      } else if(2 == var2) {
         this.aString4938 = var1.readString((byte)34);
      } else if(4 == var2) {
         this.anInt4962 = var1.readUnsignedShort(-937710807) * 142611993;
      } else if(5 == var2) {
         this.anInt4958 = var1.readUnsignedShort(-937710807) * -1915339629;
      } else if(var2 == 6) {
         this.anInt4948 = var1.readUnsignedShort(-937710807) * -1808005601;
      } else if(7 == var2) {
         this.anInt4950 = var1.readUnsignedShort(-937710807) * 415895897;
         if(this.anInt4950 * -1036310807 > 32767) {
            this.anInt4950 -= 291045376;
         }
      } else if(8 == var2) {
         this.anInt4951 = var1.readUnsignedShort(-937710807) * 949092931;
         if(1409604203 * this.anInt4951 > 32767) {
            this.anInt4951 -= 37945344;
         }
      } else if(11 == var2) {
         this.anInt4952 = 1697466997;
      } else if(12 == var2) {
         this.anInt4954 = var1.readInt_(-330132996) * 1496525487;
      } else if(13 == var2) {
         this.anInt4960 = var1.readUnsignedByte(-700559597) * 517265805;
      } else if(var2 == 14) {
         this.anInt4961 = var1.readUnsignedByte(-700559597) * 685156163;
      } else if(16 == var2) {
         this.aBool4970 = true;
      } else if(18 == var2) {
         this.anInt4933 = var1.readUnsignedShort(-937710807) * -1259931903;
      } else if(var2 == 23) {
         this.anInt4978 = var1.readLargeSmart(1986751770) * 918202907;
      } else if(var2 == 24) {
         this.anInt4946 = var1.readLargeSmart(1764734038) * -165725151;
      } else if(var2 == 25) {
         this.anInt4945 = var1.readLargeSmart(1993253263) * 1946608079;
      } else if(26 == var2) {
         this.anInt4928 = var1.readLargeSmart(1898054554) * -1163369393;
      } else if(27 == var2) {
         this.anInt4966 = var1.readUnsignedByte(-700559597) * 626657131;
      } else if(var2 >= 30 && var2 < 35) {
         this.aStringArray4965[var2 - 30] = var1.readString((byte)-9);
      } else if(var2 >= 35 && var2 < 40) {
         this.aStringArray4959[var2 - 35] = var1.readString((byte)85);
      } else {
         int var3;
         int var4;
         if(40 == var2) {
            var3 = var1.readUnsignedByte(-700559597);
            this.aShortArray4939 = new short[var3];
            this.aShortArray4979 = new short[var3];

            for(var4 = 0; var4 < var3; ++var4) {
               this.aShortArray4939[var4] = (short)var1.readUnsignedShort(-937710807);
               this.aShortArray4979[var4] = (short)var1.readUnsignedShort(-937710807);
            }
         } else if(var2 == 41) {
            var3 = var1.readUnsignedByte(-700559597);
            this.aShortArray4942 = new short[var3];
            this.aShortArray4943 = new short[var3];

            for(var4 = 0; var4 < var3; ++var4) {
               this.aShortArray4942[var4] = (short)var1.readUnsignedShort(-937710807);
               this.aShortArray4943[var4] = (short)var1.readUnsignedShort(-937710807);
            }
         } else if(var2 == 42) {
            var3 = var1.readUnsignedByte(-700559597);
            this.aByteArray4941 = new byte[var3];

            for(var4 = 0; var4 < var3; ++var4) {
               this.aByteArray4941[var4] = var1.readByte(2097655343);
            }
         } else if(43 == var2) {
            this.anInt4999 = var1.readInt_(790055744) * 1603114381;
            this.aBool4998 = true;
         } else {
            int var5;
            int var6;
            byte var8;
            if(44 == var2) {
               var3 = var1.readUnsignedShort(-937710807);
               var4 = 0;

               for(var5 = var3; var5 > 0; var5 >>= 1) {
                  ++var4;
               }

               this.aByteArray4944 = new byte[var4];
               var8 = 0;

               for(var6 = 0; var6 < var4; ++var6) {
                  if((var3 & 1 << var6) > 0) {
                     this.aByteArray4944[var6] = var8++;
                  } else {
                     this.aByteArray4944[var6] = -1;
                  }
               }
            } else if(45 == var2) {
               var3 = var1.readUnsignedShort(-937710807);
               var4 = 0;

               for(var5 = var3; var5 > 0; var5 >>= 1) {
                  ++var4;
               }

               this.aByteArray4929 = new byte[var4];
               var8 = 0;

               for(var6 = 0; var6 < var4; ++var6) {
                  if((var3 & 1 << var6) > 0) {
                     this.aByteArray4929[var6] = var8++;
                  } else {
                     this.aByteArray4929[var6] = -1;
                  }
               }
            } else if(var2 == 65) {
               this.aBool4991 = true;
            } else if(78 == var2) {
               this.anInt4964 = var1.readLargeSmart(1773930446) * -651354931;
            } else if(var2 == 79) {
               this.anInt4968 = var1.readLargeSmart(1964121908) * -1705570815;
            } else if(90 == var2) {
               this.anInt4975 = var1.readLargeSmart(1719732113) * 1813178839;
            } else if(91 == var2) {
               this.anInt4977 = var1.readLargeSmart(1947289161) * 1953974929;
            } else if(92 == var2) {
               this.anInt4976 = var1.readLargeSmart(1872129479) * -623986085;
            } else if(var2 == 93) {
               this.anInt4995 = var1.readLargeSmart(1916582667) * 783209689;
            } else if(94 == var2) {
               this.anInt4984 = var1.readUnsignedShort(-937710807) * -791793941;
            } else if(var2 == 95) {
               this.anInt4949 = var1.readUnsignedShort(-937710807) * 1091531269;
            } else if(var2 == 96) {
               this.anInt4992 = var1.readUnsignedByte(-700559597) * -1250535995;
            } else if(var2 == 97) {
               this.anInt4981 = var1.readUnsignedShort(-937710807) * 1992183573;
            } else if(var2 == 98) {
               this.anInt4982 = var1.readUnsignedShort(-937710807) * -2131743999;
            } else if(var2 >= 100 && var2 < 110) {
               if(null == this.anIntArray4990) {
                  this.anIntArray4990 = new int[10];
                  this.anIntArray4940 = new int[10];
               }

               this.anIntArray4990[var2 - 100] = var1.readUnsignedShort(-937710807);
               this.anIntArray4940[var2 - 100] = var1.readUnsignedShort(-937710807);
            } else if(110 == var2) {
               this.anInt4985 = var1.readUnsignedShort(-937710807) * -628641169;
            } else if(111 == var2) {
               this.anInt4986 = var1.readUnsignedShort(-937710807) * -867519415;
            } else if(112 == var2) {
               this.anInt4987 = var1.readUnsignedShort(-937710807) * 790954343;
            } else if(var2 == 113) {
               this.anInt4988 = var1.readByte(-956197343) * -1471100263;
            } else if(var2 == 114) {
               this.anInt4957 = var1.readByte(1038181783) * -1089129741;
            } else if(115 == var2) {
               this.anInt4936 = var1.readUnsignedByte(-700559597) * 1302822749;
            } else if(121 == var2) {
               this.anInt4983 = var1.readUnsignedShort(-937710807) * -235374719;
            } else if(var2 == 122) {
               this.anInt4955 = var1.readUnsignedShort(-937710807) * -477888753;
            } else if(var2 == 125) {
               this.anInt4969 = (var1.readByte(-66557041) << 2) * -2134072361;
               this.anInt4971 = (var1.readByte(-437294915) << 2) * 1196181421;
               this.anInt4973 = (var1.readByte(-201035457) << 2) * -1776609781;
            } else if(126 == var2) {
               this.anInt4930 = (var1.readByte(-466651707) << 2) * 515050057;
               this.anInt4972 = (var1.readByte(498886731) << 2) * 1638077447;
               this.anInt4974 = (var1.readByte(57342985) << 2) * 1569230857;
            } else if(127 != var2 && 128 != var2 && 129 != var2 && 130 != var2) {
               if(var2 == 132) {
                  var3 = var1.readUnsignedByte(-700559597);
                  this.anIntArray4967 = new int[var3];

                  for(var4 = 0; var4 < var3; ++var4) {
                     this.anIntArray4967[var4] = var1.readUnsignedShort(-937710807);
                  }
               } else if(134 == var2) {
                  this.anInt4980 = var1.readUnsignedByte(-700559597) * 518399867;
               } else if(139 == var2) {
                  this.anInt4996 = var1.readUnsignedShort(-937710807) * 117181053;
               } else if(140 == var2) {
                  this.anInt4997 = var1.readUnsignedShort(-937710807) * 782145207;
               } else if(var2 >= 142 && var2 < 147) {
                  if(null == this.anIntArray4932) {
                     this.anIntArray4932 = new int[6];
                     Arrays.fill(this.anIntArray4932, -1);
                  }

                  this.anIntArray4932[var2 - 142] = var1.readUnsignedShort(-937710807);
               } else if(var2 >= 150 && var2 < 155) {
                  if(null == this.anIntArray4953) {
                     this.anIntArray4953 = new int[5];
                     Arrays.fill(this.anIntArray4953, -1);
                  }

                  this.anIntArray4953[var2 - 150] = var1.readUnsignedShort(-937710807);
               } else if(249 == var2) {
                  var3 = var1.readUnsignedByte(-700559597);
                  if(null == this.aClass423_4993) {
                     var4 = Class468.method7880(var3, (byte)-75);
                     this.aClass423_4993 = new Class423(var4);
                  }

                  for(var4 = 0; var4 < var3; ++var4) {
                     boolean var9 = var1.readUnsignedByte(-700559597) == 1;
                     var6 = var1.readTriByte(1648165373);
                     Object var7;
                     if(var9) {
                        var7 = new ObjectVar(var1.readString((byte)69));
                     } else {
                        var7 = new IntVar(var1.readInt_(158601039));
                     }

                     this.aClass423_4993.method7206((Class225)var7, (long)var6);
                  }
               }
            } else {
               var1.readUnsignedByte(-700559597);
               var1.readUnsignedShort(-937710807);
            }
         }
      }

   }

   void method6906(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4937 = var1.anInt4937 * 1;
      this.anInt4962 = 1 * var1.anInt4962;
      this.anInt4958 = 1 * var1.anInt4958;
      this.anInt4948 = 1 * var1.anInt4948;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = 1 * var1.anInt4951;
      this.aShortArray4939 = var1.aShortArray4939;
      this.aShortArray4979 = var1.aShortArray4979;
      this.aByteArray4941 = var1.aByteArray4941;
      this.aShortArray4942 = var1.aShortArray4942;
      this.aShortArray4943 = var1.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4954 = 1 * var2.anInt4954;
      this.anInt4952 = 1697466997;
   }

   void method6907(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4954 = 0;
      this.anInt4937 = 1 * var1.anInt4937;
      this.anInt4962 = var1.anInt4962 * 1;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = var1.anInt4948 * 1;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = var1.anInt4951 * 1;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = 1 * var2.anInt4960;
      this.anInt4961 = 1 * var2.anInt4961;
      this.anInt4966 = var2.anInt4966 * 1;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = 1 * var2.anInt4945;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = var2.anInt4968 * 1;
      this.anInt4969 = var2.anInt4969 * 1;
      this.anInt4930 = 1 * var2.anInt4930;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = 1 * var2.anInt4972;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = var2.anInt4975 * 1;
      this.anInt4976 = var2.anInt4976 * 1;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = var2.anInt4995 * 1;
      this.anInt4984 = var2.anInt4984 * 1;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var3 = 0; var3 < 4; ++var3) {
            this.aStringArray4959[var3] = var2.aStringArray4959[var3];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5235.method7137(this.aClass410_4934.aClass470_5014, (byte)-115);
   }

   void method6908(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4954 = 0;
      this.anInt4937 = 1 * var1.anInt4937;
      this.anInt4962 = var1.anInt4962 * 1;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = var1.anInt4948 * 1;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = var1.anInt4951 * 1;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = 1 * var2.anInt4960;
      this.anInt4961 = 1 * var2.anInt4961;
      this.anInt4966 = var2.anInt4966 * 1;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = 1 * var2.anInt4945;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = var2.anInt4968 * 1;
      this.anInt4969 = var2.anInt4969 * 1;
      this.anInt4930 = 1 * var2.anInt4930;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = 1 * var2.anInt4972;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = var2.anInt4975 * 1;
      this.anInt4976 = var2.anInt4976 * 1;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = var2.anInt4995 * 1;
      this.anInt4984 = var2.anInt4984 * 1;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var3 = 0; var3 < 4; ++var3) {
            this.aStringArray4959[var3] = var2.aStringArray4959[var3];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5235.method7137(this.aClass410_4934.aClass470_5014, (byte)-57);
   }

   void method6909(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4954 = 0;
      this.anInt4937 = 1 * var1.anInt4937;
      this.anInt4962 = var1.anInt4962 * 1;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = var1.anInt4948 * 1;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = var1.anInt4951 * 1;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = 1 * var2.anInt4960;
      this.anInt4961 = 1 * var2.anInt4961;
      this.anInt4966 = var2.anInt4966 * 1;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = 1 * var2.anInt4945;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = var2.anInt4968 * 1;
      this.anInt4969 = var2.anInt4969 * 1;
      this.anInt4930 = 1 * var2.anInt4930;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = 1 * var2.anInt4972;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = var2.anInt4975 * 1;
      this.anInt4976 = var2.anInt4976 * 1;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = var2.anInt4995 * 1;
      this.anInt4984 = var2.anInt4984 * 1;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var3 = 0; var3 < 4; ++var3) {
            this.aStringArray4959[var3] = var2.aStringArray4959[var3];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5235.method7137(this.aClass410_4934.aClass470_5014, (byte)-1);
   }

   void method6910(ItemDefinition var1, ItemDefinition var2, int var3) {
      this.anInt4937 = var1.anInt4937 * 1;
      this.anInt4962 = 1 * var1.anInt4962;
      this.anInt4958 = 1 * var1.anInt4958;
      this.anInt4948 = 1 * var1.anInt4948;
      this.anInt4949 = var1.anInt4949 * 1;
      this.anInt4950 = var1.anInt4950 * 1;
      this.anInt4951 = 1 * var1.anInt4951;
      this.aShortArray4939 = var1.aShortArray4939;
      this.aShortArray4979 = var1.aShortArray4979;
      this.aByteArray4941 = var1.aByteArray4941;
      this.aShortArray4942 = var1.aShortArray4942;
      this.aShortArray4943 = var1.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4954 = 1 * var2.anInt4954;
      this.anInt4952 = 1697466997;
   }

   public int method6911(int var1) {
      return this.anIntArray4953 == null?-1:this.anIntArray4953[var1];
   }

   void method6912(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4954 = 0;
      this.anInt4937 = var1.anInt4937 * 1;
      this.anInt4962 = 1 * var1.anInt4962;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = 1 * var1.anInt4948;
      this.anInt4949 = 1 * var1.anInt4949;
      this.anInt4950 = 1 * var1.anInt4950;
      this.anInt4951 = 1 * var1.anInt4951;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = var2.anInt4960 * 1;
      this.anInt4961 = var2.anInt4961 * 1;
      this.anInt4966 = 1 * var2.anInt4966;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = var2.anInt4945 * 1;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = 1 * var2.anInt4968;
      this.anInt4969 = 1 * var2.anInt4969;
      this.anInt4930 = var2.anInt4930 * 1;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = var2.anInt4972 * 1;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = 1 * var2.anInt4975;
      this.anInt4976 = 1 * var2.anInt4976;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = 1 * var2.anInt4995;
      this.anInt4984 = 1 * var2.anInt4984;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.anInt4952 = 1 * var2.anInt4952;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var3 = 0; var3 < 4; ++var3) {
            this.aStringArray4959[var3] = var2.aStringArray4959[var3];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5260.method7137(this.aClass410_4934.aClass470_5014, (byte)-46);
   }

   void method6913(ItemDefinition var1, ItemDefinition var2) {
      this.anInt4954 = 0;
      this.anInt4937 = var1.anInt4937 * 1;
      this.anInt4962 = 1 * var1.anInt4962;
      this.anInt4958 = var1.anInt4958 * 1;
      this.anInt4948 = 1 * var1.anInt4948;
      this.anInt4949 = 1 * var1.anInt4949;
      this.anInt4950 = 1 * var1.anInt4950;
      this.anInt4951 = 1 * var1.anInt4951;
      this.aShortArray4939 = var2.aShortArray4939;
      this.aShortArray4979 = var2.aShortArray4979;
      this.aByteArray4941 = var2.aByteArray4941;
      this.aShortArray4942 = var2.aShortArray4942;
      this.aShortArray4943 = var2.aShortArray4943;
      this.aString4938 = var2.aString4938;
      this.aBool4970 = var2.aBool4970;
      this.anInt4960 = var2.anInt4960 * 1;
      this.anInt4961 = var2.anInt4961 * 1;
      this.anInt4966 = 1 * var2.anInt4966;
      this.anInt4978 = var2.anInt4978 * 1;
      this.anInt4946 = var2.anInt4946 * 1;
      this.anInt4964 = var2.anInt4964 * 1;
      this.anInt4945 = var2.anInt4945 * 1;
      this.anInt4928 = 1 * var2.anInt4928;
      this.anInt4968 = 1 * var2.anInt4968;
      this.anInt4969 = 1 * var2.anInt4969;
      this.anInt4930 = var2.anInt4930 * 1;
      this.anInt4971 = 1 * var2.anInt4971;
      this.anInt4972 = var2.anInt4972 * 1;
      this.anInt4973 = var2.anInt4973 * 1;
      this.anInt4974 = 1 * var2.anInt4974;
      this.anInt4975 = 1 * var2.anInt4975;
      this.anInt4976 = 1 * var2.anInt4976;
      this.anInt4977 = 1 * var2.anInt4977;
      this.anInt4995 = 1 * var2.anInt4995;
      this.anInt4984 = 1 * var2.anInt4984;
      this.anInt4936 = var2.anInt4936 * 1;
      this.aStringArray4965 = var2.aStringArray4965;
      this.aClass423_4993 = var2.aClass423_4993;
      this.anInt4952 = 1 * var2.anInt4952;
      this.aStringArray4959 = new String[5];
      if(var2.aStringArray4959 != null) {
         for(int var3 = 0; var3 < 4; ++var3) {
            this.aStringArray4959[var3] = var2.aStringArray4959[var3];
         }
      }

      this.aStringArray4959[4] = Class418.aClass418_5260.method7137(this.aClass410_4934.aClass470_5014, (byte)-25);
   }

   public final Class568 method6914(Class545 var1, int var2, int var3, Class540 var4, Class477 var5, int var6, int var7, int var8, int var9) {
      int var10;
      if(this.anIntArray4990 != null && var3 > 1) {
         var10 = -1;

         for(int var11 = 0; var11 < 10; ++var11) {
            if(var3 >= this.anIntArray4940[var11] && this.anIntArray4940[var11] != 0) {
               var10 = this.anIntArray4990[var11];
            }
         }

         if(-1 != var10) {
            return this.aClass410_4934.method7007(var10, -1957162130).method6931(var1, var2, 1, var4, var5, var6, var7, var8, var9, 412057594);
         }
      }

      var10 = var2;
      if(var5 != null) {
         var10 = var2 | var5.method7983(257675263);
      }

      Class564 var12 = this.aClass410_4934.aClass564_5017;
      Class568 var20;
      synchronized(var12) {
         var20 = (Class568)this.aClass410_4934.aClass564_5017.method11959((long)(this.anInt4935 * 1349863775 | var1.anInt7353 * -1659372711 << 29));
      }

      if(var20 == null || var1.method11494(var20.m(), var10) != 0) {
         if(null != var20) {
            var10 = var1.method11495(var10, var20.m());
         }

         int var19 = var10;
         if(this.aShortArray4942 != null) {
            var19 = var10 | '\u8000';
         }

         if(null != this.aShortArray4939 || var4 != null) {
            var19 |= 16384;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 1;
         }

         if(128 != this.anInt4985 * 1008462991) {
            var19 |= 2;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 4;
         }

         Class96 var13 = Class96.method1867(this.aClass410_4934.aClass253_5010, 59267969 * this.anInt4937, 0);
         if(null == var13) {
            return null;
         }

         if(var13.anInt947 < 13) {
            var13.method1848(2);
         }

         var20 = var1.method11493(var13, var19, this.aClass410_4934.anInt5021 * -18620791, 64 + this.anInt4988 * 1687021993, 850 + this.anInt4957 * -1689055449);
         if(128 != 1008462991 * this.anInt4985 || 128 != 685211129 * this.anInt4986 || 128 != this.anInt4987 * -920810921) {
            var20.oa(1008462991 * this.anInt4985, 685211129 * this.anInt4986, -920810921 * this.anInt4987);
         }

         int var14;
         if(null != this.aShortArray4939) {
            for(var14 = 0; var14 < this.aShortArray4939.length; ++var14) {
               if(null != this.aByteArray4941 && var14 < this.aByteArray4941.length) {
                  var20.X(this.aShortArray4939[var14], aShortArray4994[this.aByteArray4941[var14] & 255]);
               } else {
                  var20.X(this.aShortArray4939[var14], this.aShortArray4979[var14]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var14 = 0; var14 < this.aShortArray4942.length; ++var14) {
               var20.W(this.aShortArray4942[var14], this.aShortArray4943[var14]);
            }
         }

         if(var4 != null) {
            for(var14 = 0; var14 < 10; ++var14) {
               for(int var15 = 0; var15 < Class33.aShortArrayArray382[var14].length; ++var15) {
                  if(var4.anIntArray7312[var14] < Class102.aShortArrayArrayArray1007[var14][var15].length) {
                     var20.X(Class33.aShortArrayArray382[var14][var15], Class102.aShortArrayArrayArray1007[var14][var15][var4.anIntArray7312[var14]]);
                  }
               }
            }
         }

         var20.KA(var10);
         Class564 var21 = this.aClass410_4934.aClass564_5017;
         synchronized(var21) {
            this.aClass410_4934.aClass564_5017.method11958(var20, (long)(this.anInt4935 * 1349863775 | -1659372711 * var1.anInt7353 << 29));
         }
      }

      if(null != var5 || var9 != 0) {
         var20 = var20.method12060((byte)1, var10, true);
         if(null != var5) {
            var5.method8040(var20, 0, 1824411703);
         }

         if(var9 != 0) {
            var20.PA(var6, var7, var8, var9);
         }
      }

      var20.KA(var2);
      return var20;
   }

   public final Class568 method6915(Class545 var1, int var2, int var3, Class540 var4, Class477 var5, int var6, int var7, int var8, int var9) {
      int var10;
      if(this.anIntArray4990 != null && var3 > 1) {
         var10 = -1;

         for(int var11 = 0; var11 < 10; ++var11) {
            if(var3 >= this.anIntArray4940[var11] && this.anIntArray4940[var11] != 0) {
               var10 = this.anIntArray4990[var11];
            }
         }

         if(-1 != var10) {
            return this.aClass410_4934.method7007(var10, -1957162130).method6931(var1, var2, 1, var4, var5, var6, var7, var8, var9, 412057594);
         }
      }

      var10 = var2;
      if(var5 != null) {
         var10 = var2 | var5.method7983(257675263);
      }

      Class564 var12 = this.aClass410_4934.aClass564_5017;
      Class568 var20;
      synchronized(var12) {
         var20 = (Class568)this.aClass410_4934.aClass564_5017.method11959((long)(this.anInt4935 * 1349863775 | var1.anInt7353 * -1659372711 << 29));
      }

      if(var20 == null || var1.method11494(var20.m(), var10) != 0) {
         if(null != var20) {
            var10 = var1.method11495(var10, var20.m());
         }

         int var19 = var10;
         if(this.aShortArray4942 != null) {
            var19 = var10 | '\u8000';
         }

         if(null != this.aShortArray4939 || var4 != null) {
            var19 |= 16384;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 1;
         }

         if(128 != this.anInt4985 * 1008462991) {
            var19 |= 2;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 4;
         }

         Class96 var13 = Class96.method1867(this.aClass410_4934.aClass253_5010, 59267969 * this.anInt4937, 0);
         if(null == var13) {
            return null;
         }

         if(var13.anInt947 < 13) {
            var13.method1848(2);
         }

         var20 = var1.method11493(var13, var19, this.aClass410_4934.anInt5021 * -18620791, 64 + this.anInt4988 * 1687021993, 850 + this.anInt4957 * -1689055449);
         if(128 != 1008462991 * this.anInt4985 || 128 != 685211129 * this.anInt4986 || 128 != this.anInt4987 * -920810921) {
            var20.oa(1008462991 * this.anInt4985, 685211129 * this.anInt4986, -920810921 * this.anInt4987);
         }

         int var14;
         if(null != this.aShortArray4939) {
            for(var14 = 0; var14 < this.aShortArray4939.length; ++var14) {
               if(null != this.aByteArray4941 && var14 < this.aByteArray4941.length) {
                  var20.X(this.aShortArray4939[var14], aShortArray4994[this.aByteArray4941[var14] & 255]);
               } else {
                  var20.X(this.aShortArray4939[var14], this.aShortArray4979[var14]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var14 = 0; var14 < this.aShortArray4942.length; ++var14) {
               var20.W(this.aShortArray4942[var14], this.aShortArray4943[var14]);
            }
         }

         if(var4 != null) {
            for(var14 = 0; var14 < 10; ++var14) {
               for(int var15 = 0; var15 < Class33.aShortArrayArray382[var14].length; ++var15) {
                  if(var4.anIntArray7312[var14] < Class102.aShortArrayArrayArray1007[var14][var15].length) {
                     var20.X(Class33.aShortArrayArray382[var14][var15], Class102.aShortArrayArrayArray1007[var14][var15][var4.anIntArray7312[var14]]);
                  }
               }
            }
         }

         var20.KA(var10);
         Class564 var21 = this.aClass410_4934.aClass564_5017;
         synchronized(var21) {
            this.aClass410_4934.aClass564_5017.method11958(var20, (long)(this.anInt4935 * 1349863775 | -1659372711 * var1.anInt7353 << 29));
         }
      }

      if(null != var5 || var9 != 0) {
         var20 = var20.method12060((byte)1, var10, true);
         if(null != var5) {
            var5.method8040(var20, 0, 590364493);
         }

         if(var9 != 0) {
            var20.PA(var6, var7, var8, var9);
         }
      }

      var20.KA(var2);
      return var20;
   }

   public final Class568 method6916(Class545 var1, int var2, int var3, Class540 var4, Class477 var5, int var6, int var7, int var8, int var9) {
      int var10;
      if(this.anIntArray4990 != null && var3 > 1) {
         var10 = -1;

         for(int var11 = 0; var11 < 10; ++var11) {
            if(var3 >= this.anIntArray4940[var11] && this.anIntArray4940[var11] != 0) {
               var10 = this.anIntArray4990[var11];
            }
         }

         if(-1 != var10) {
            return this.aClass410_4934.method7007(var10, -1957162130).method6931(var1, var2, 1, var4, var5, var6, var7, var8, var9, 412057594);
         }
      }

      var10 = var2;
      if(var5 != null) {
         var10 = var2 | var5.method7983(257675263);
      }

      Class564 var12 = this.aClass410_4934.aClass564_5017;
      Class568 var20;
      synchronized(var12) {
         var20 = (Class568)this.aClass410_4934.aClass564_5017.method11959((long)(this.anInt4935 * 1349863775 | var1.anInt7353 * -1659372711 << 29));
      }

      if(var20 == null || var1.method11494(var20.m(), var10) != 0) {
         if(null != var20) {
            var10 = var1.method11495(var10, var20.m());
         }

         int var19 = var10;
         if(this.aShortArray4942 != null) {
            var19 = var10 | '\u8000';
         }

         if(null != this.aShortArray4939 || var4 != null) {
            var19 |= 16384;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 1;
         }

         if(128 != this.anInt4985 * 1008462991) {
            var19 |= 2;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 4;
         }

         Class96 var13 = Class96.method1867(this.aClass410_4934.aClass253_5010, 59267969 * this.anInt4937, 0);
         if(null == var13) {
            return null;
         }

         if(var13.anInt947 < 13) {
            var13.method1848(2);
         }

         var20 = var1.method11493(var13, var19, this.aClass410_4934.anInt5021 * -18620791, 64 + this.anInt4988 * 1687021993, 850 + this.anInt4957 * -1689055449);
         if(128 != 1008462991 * this.anInt4985 || 128 != 685211129 * this.anInt4986 || 128 != this.anInt4987 * -920810921) {
            var20.oa(1008462991 * this.anInt4985, 685211129 * this.anInt4986, -920810921 * this.anInt4987);
         }

         int var14;
         if(null != this.aShortArray4939) {
            for(var14 = 0; var14 < this.aShortArray4939.length; ++var14) {
               if(null != this.aByteArray4941 && var14 < this.aByteArray4941.length) {
                  var20.X(this.aShortArray4939[var14], aShortArray4994[this.aByteArray4941[var14] & 255]);
               } else {
                  var20.X(this.aShortArray4939[var14], this.aShortArray4979[var14]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var14 = 0; var14 < this.aShortArray4942.length; ++var14) {
               var20.W(this.aShortArray4942[var14], this.aShortArray4943[var14]);
            }
         }

         if(var4 != null) {
            for(var14 = 0; var14 < 10; ++var14) {
               for(int var15 = 0; var15 < Class33.aShortArrayArray382[var14].length; ++var15) {
                  if(var4.anIntArray7312[var14] < Class102.aShortArrayArrayArray1007[var14][var15].length) {
                     var20.X(Class33.aShortArrayArray382[var14][var15], Class102.aShortArrayArrayArray1007[var14][var15][var4.anIntArray7312[var14]]);
                  }
               }
            }
         }

         var20.KA(var10);
         Class564 var21 = this.aClass410_4934.aClass564_5017;
         synchronized(var21) {
            this.aClass410_4934.aClass564_5017.method11958(var20, (long)(this.anInt4935 * 1349863775 | -1659372711 * var1.anInt7353 << 29));
         }
      }

      if(null != var5 || var9 != 0) {
         var20 = var20.method12060((byte)1, var10, true);
         if(null != var5) {
            var5.method8040(var20, 0, 1832362023);
         }

         if(var9 != 0) {
            var20.PA(var6, var7, var8, var9);
         }
      }

      var20.KA(var2);
      return var20;
   }

   public final boolean method6917(boolean var1, Class417 var2, int var3) {
      int var4;
      int var5;
      if(var1) {
         if(null != var2 && null != var2.anIntArray5145) {
            var4 = var2.anIntArray5145[0];
            var5 = var2.anIntArray5145[1];
         } else {
            var4 = this.anInt4977 * -611993999;
            var5 = -579572887 * this.anInt4995;
         }
      } else if(null != var2 && var2.anIntArray5146 != null) {
         var4 = var2.anIntArray5146[0];
         var5 = var2.anIntArray5146[1];
      } else {
         var4 = -1248912921 * this.anInt4975;
         var5 = this.anInt4976 * 2064377299;
      }

      if(var4 == -1) {
         return true;
      } else {
         boolean var6 = true;
         if(!this.aClass410_4934.aClass253_5010.method4506(var4, 0, (byte)94)) {
            var6 = false;
         }

         if(-1 != var5 && !this.aClass410_4934.aClass253_5010.method4506(var5, 0, (byte)39)) {
            var6 = false;
         }

         return var6;
      }
   }

   public ItemDefinition method6918(int var1) {
      if(this.anIntArray4990 != null && var1 > 1) {
         int var2 = -1;

         for(int var3 = 0; var3 < 10; ++var3) {
            if(var1 >= this.anIntArray4940[var3] && 0 != this.anIntArray4940[var3]) {
               var2 = this.anIntArray4990[var3];
            }
         }

         if(var2 != -1) {
            return this.aClass410_4934.method7007(var2, -1957162130);
         }
      }

      return this;
   }

   public ItemDefinition method6919(int var1) {
      if(this.anIntArray4990 != null && var1 > 1) {
         int var2 = -1;

         for(int var3 = 0; var3 < 10; ++var3) {
            if(var1 >= this.anIntArray4940[var3] && 0 != this.anIntArray4940[var3]) {
               var2 = this.anIntArray4990[var3];
            }
         }

         if(var2 != -1) {
            return this.aClass410_4934.method7007(var2, -1957162130);
         }
      }

      return this;
   }

   public ItemDefinition method6920(int var1) {
      if(this.anIntArray4990 != null && var1 > 1) {
         int var2 = -1;

         for(int var3 = 0; var3 < 10; ++var3) {
            if(var1 >= this.anIntArray4940[var3] && 0 != this.anIntArray4940[var3]) {
               var2 = this.anIntArray4990[var3];
            }
         }

         if(var2 != -1) {
            return this.aClass410_4934.method7007(var2, -1957162130);
         }
      }

      return this;
   }

   int[] method6921(Class545 var1, Class545 var2, int var3, int var4, int var5, boolean var6, int var7, Class8 var8, Class540 var9) {
      Class96 var10 = Class96.method1867(this.aClass410_4934.aClass253_5010, this.anInt4937 * 59267969, 0);
      if(var10 == null) {
         return null;
      } else {
         if(var10.anInt947 < 13) {
            var10.method1848(2);
         }

         int var11;
         if(null != this.aShortArray4939) {
            for(var11 = 0; var11 < this.aShortArray4939.length; ++var11) {
               if(this.aByteArray4941 != null && var11 < this.aByteArray4941.length) {
                  var10.method1860(this.aShortArray4939[var11], aShortArray4994[this.aByteArray4941[var11] & 255]);
               } else {
                  var10.method1860(this.aShortArray4939[var11], this.aShortArray4979[var11]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var11 = 0; var11 < this.aShortArray4942.length; ++var11) {
               var10.method1878(this.aShortArray4942[var11], this.aShortArray4943[var11]);
            }
         }

         if(var9 != null) {
            for(var11 = 0; var11 < 10; ++var11) {
               for(int var12 = 0; var12 < Class33.aShortArrayArray382[var11].length; ++var12) {
                  if(var9.anIntArray7312[var11] < Class102.aShortArrayArrayArray1007[var11][var12].length) {
                     var10.method1860(Class33.aShortArrayArray382[var11][var12], Class102.aShortArrayArrayArray1007[var11][var12][var9.anIntArray7312[var11]]);
                  }
               }
            }
         }

         var11 = 2048;
         boolean var22 = false;
         if(128 != 1008462991 * this.anInt4985 || 685211129 * this.anInt4986 != 128 || this.anInt4987 * -920810921 != 128) {
            var22 = true;
            var11 |= 7;
         }

         Class568 var13 = var1.method11493(var10, var11, 64, 64 + 1687021993 * this.anInt4988, -1689055449 * this.anInt4957 + 768);
         if(!var13.method12101()) {
            return null;
         } else {
            if(var22) {
               var13.oa(1008462991 * this.anInt4985, this.anInt4986 * 685211129, -920810921 * this.anInt4987);
            }

            Class171 var14 = null;
            if(this.anInt4982 * -1823943423 != -1) {
               var14 = this.aClass410_4934.method7029(var1, var2, this.anInt4981 * -116094915, 10, 1, 0, true, true, 0, var8, var9, -2097227420);
               if(null == var14) {
                  return null;
               }
            } else if(this.anInt4955 * -1761800209 != -1) {
               var14 = this.aClass410_4934.method7029(var1, var2, -470824831 * this.anInt4983, var3, var4, var5, false, true, 0, var8, var9, 1698949112);
               if(var14 == null) {
                  return null;
               }
            } else if(-1 != 1626089223 * this.anInt4997) {
               var14 = this.aClass410_4934.method7029(var1, var2, this.anInt4996 * 664092373, var3, var4, var5, false, true, 0, var8, var9, -1485611180);
               if(var14 == null) {
                  return null;
               }
            }

            int var15;
            if(var6) {
               var15 = (int)((double)(-1930238423 * this.anInt4962) * 1.5D) << 2;
            } else if(var4 == 2) {
               var15 = (int)(1.04D * (double)(this.anInt4962 * -1930238423)) << 2;
            } else {
               var15 = this.anInt4962 * -1930238423 << 2;
            }

            Class317 var16 = var1.method11501();
            Class317 var17 = var1.method11467();
            var17.method5625(16.0F, 16.0F, 512.0F, 512.0F, 50.0F, 2.14748365E9F, (float)var1.method11482((byte)14).method2741(), (float)var1.method11482((byte)14).method2742());
            var1.method11500(var17);
            var1.method11460(0, 0, var1.method11482((byte)14).method2741(), var1.method11482((byte)14).method2742());
            Class328 var18 = new Class328();
            var1.method11603(var18);
            var1.IA(0.95F + (float)(Math.random() / 10.0D));
            var1.m(16777215, 0.95F + (float)(Math.random() / 10.0D), 0.95F + (float)(Math.random() / 10.0D), -50.0F, -10.0F, -50.0F);
            Class328 var19 = var1.method11491();
            var19.method5997(0.0F, 0.0F, 1.0F, Class312.method5556(-(124750541 * this.anInt4949) << 3));
            var19.method6003(0.0F, 1.0F, 0.0F, Class312.method5556(this.anInt4948 * 1220933087 << 3));
            var19.method6005((float)(-1036310807 * this.anInt4950 << 2), (float)((var15 * Class312.anIntArray3943[2004369819 * this.anInt4958 << 3] >> 14) - var13.YA() / 2 + (this.anInt4951 * 1409604203 << 2)), (float)((1409604203 * this.anInt4951 << 2) + (Class312.anIntArray3956[this.anInt4958 * 2004369819 << 3] * var15 >> 14)));
            var19.method6003(1.0F, 0.0F, 0.0F, Class312.method5556(2004369819 * this.anInt4958 << 3));
            var1.r(0, 0, 36, 32);
            var1.ba(2, 0);
            var1.B(0, 0, 36, 32, 0, 0);
            var1.c(0, -1, 0);
            var13.method12069(var19, (Class89)null, 1);
            var1.method11500(var16);
            int[] var20 = var1.ay(0, 0, 36, 32);
            if(var4 >= 1) {
               var20 = this.method6895(var20, -16777214, -2139346402);
               if(var4 >= 2) {
                  var20 = this.method6895(var20, -1, 1624183195);
               }
            }

            if(var5 != 0) {
               this.method6896(var20, var5, (byte)0);
            }

            if(this.anInt4955 * -1761800209 != -1) {
               var14.method2926(0, 0);
            } else if(this.anInt4997 * 1626089223 != -1) {
               var14.method2926(0, 0);
            }

            var1.method11599(var20, 0, 36, 36, 32, 98312473).method2926(0, 0);
            if(-1823943423 * this.anInt4982 != -1) {
               var14.method2926(0, 0);
            }

            if(1 == var7 || var7 == 2 && (1 == this.anInt4952 * -1124420131 || 1 != var3) && var3 != -1) {
               var8.method616(Class563.method11955(var3, this.aClass410_4934.aClass470_5014, (byte)-98), 0, 9, -256, -16777215, (short)-24392);
            }

            var20 = var1.ay(0, 0, 36, 32);

            for(int var21 = 0; var21 < var20.length; ++var21) {
               if(0 == (var20[var21] & 16777215)) {
                  var20[var21] = 0;
               } else {
                  var20[var21] |= -16777216;
               }
            }

            return var20;
         }
      }
   }

   int[] method6922(int[] var1, int var2) {
      int[] var3 = new int[1152];
      int var4 = 0;

      for(int var5 = 0; var5 < 32; ++var5) {
         for(int var6 = 0; var6 < 36; ++var6) {
            int var7 = var1[var4];
            if(var7 == 0) {
               if(var6 > 0 && 0 != var1[var4 - 1]) {
                  var7 = var2;
               } else if(var5 > 0 && 0 != var1[var4 - 36]) {
                  var7 = var2;
               } else if(var6 < 35 && 0 != var1[1 + var4]) {
                  var7 = var2;
               } else if(var5 < 31 && var1[36 + var4] != 0) {
                  var7 = var2;
               }
            }

            var3[var4++] = var7;
         }
      }

      return var3;
   }

   int[] method6923(int[] var1, int var2) {
      int[] var3 = new int[1152];
      int var4 = 0;

      for(int var5 = 0; var5 < 32; ++var5) {
         for(int var6 = 0; var6 < 36; ++var6) {
            int var7 = var1[var4];
            if(var7 == 0) {
               if(var6 > 0 && 0 != var1[var4 - 1]) {
                  var7 = var2;
               } else if(var5 > 0 && 0 != var1[var4 - 36]) {
                  var7 = var2;
               } else if(var6 < 35 && 0 != var1[1 + var4]) {
                  var7 = var2;
               } else if(var5 < 31 && var1[36 + var4] != 0) {
                  var7 = var2;
               }
            }

            var3[var4++] = var7;
         }
      }

      return var3;
   }

   int[] method6924(int[] var1, int var2) {
      int[] var3 = new int[1152];
      int var4 = 0;

      for(int var5 = 0; var5 < 32; ++var5) {
         for(int var6 = 0; var6 < 36; ++var6) {
            int var7 = var1[var4];
            if(var7 == 0) {
               if(var6 > 0 && 0 != var1[var4 - 1]) {
                  var7 = var2;
               } else if(var5 > 0 && 0 != var1[var4 - 36]) {
                  var7 = var2;
               } else if(var6 < 35 && 0 != var1[1 + var4]) {
                  var7 = var2;
               } else if(var5 < 31 && var1[36 + var4] != 0) {
                  var7 = var2;
               }
            }

            var3[var4++] = var7;
         }
      }

      return var3;
   }

   void method6925(int[] var1, int var2) {
      for(int var3 = 31; var3 > 0; --var3) {
         int var4 = var3 * 36;

         for(int var5 = 35; var5 > 0; --var5) {
            if(0 == var1[var4 + var5] && 0 != var1[var4 + var5 - 1 - 36]) {
               var1[var5 + var4] = var2;
            }
         }
      }

   }

   public final Class568 method6926(Class545 var1, int var2, int var3, Class540 var4, Class477 var5, int var6, int var7, int var8, int var9) {
      int var10;
      if(this.anIntArray4990 != null && var3 > 1) {
         var10 = -1;

         for(int var11 = 0; var11 < 10; ++var11) {
            if(var3 >= this.anIntArray4940[var11] && this.anIntArray4940[var11] != 0) {
               var10 = this.anIntArray4990[var11];
            }
         }

         if(-1 != var10) {
            return this.aClass410_4934.method7007(var10, -1957162130).method6931(var1, var2, 1, var4, var5, var6, var7, var8, var9, 412057594);
         }
      }

      var10 = var2;
      if(var5 != null) {
         var10 = var2 | var5.method7983(257675263);
      }

      Class564 var12 = this.aClass410_4934.aClass564_5017;
      Class568 var20;
      synchronized(var12) {
         var20 = (Class568)this.aClass410_4934.aClass564_5017.method11959((long)(this.anInt4935 * 1349863775 | var1.anInt7353 * -1659372711 << 29));
      }

      if(var20 == null || var1.method11494(var20.m(), var10) != 0) {
         if(null != var20) {
            var10 = var1.method11495(var10, var20.m());
         }

         int var19 = var10;
         if(this.aShortArray4942 != null) {
            var19 = var10 | '\u8000';
         }

         if(null != this.aShortArray4939 || var4 != null) {
            var19 |= 16384;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 1;
         }

         if(128 != this.anInt4985 * 1008462991) {
            var19 |= 2;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var19 |= 4;
         }

         Class96 var13 = Class96.method1867(this.aClass410_4934.aClass253_5010, 59267969 * this.anInt4937, 0);
         if(null == var13) {
            return null;
         }

         if(var13.anInt947 < 13) {
            var13.method1848(2);
         }

         var20 = var1.method11493(var13, var19, this.aClass410_4934.anInt5021 * -18620791, 64 + this.anInt4988 * 1687021993, 850 + this.anInt4957 * -1689055449);
         if(128 != 1008462991 * this.anInt4985 || 128 != 685211129 * this.anInt4986 || 128 != this.anInt4987 * -920810921) {
            var20.oa(1008462991 * this.anInt4985, 685211129 * this.anInt4986, -920810921 * this.anInt4987);
         }

         int var14;
         if(null != this.aShortArray4939) {
            for(var14 = 0; var14 < this.aShortArray4939.length; ++var14) {
               if(null != this.aByteArray4941 && var14 < this.aByteArray4941.length) {
                  var20.X(this.aShortArray4939[var14], aShortArray4994[this.aByteArray4941[var14] & 255]);
               } else {
                  var20.X(this.aShortArray4939[var14], this.aShortArray4979[var14]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var14 = 0; var14 < this.aShortArray4942.length; ++var14) {
               var20.W(this.aShortArray4942[var14], this.aShortArray4943[var14]);
            }
         }

         if(var4 != null) {
            for(var14 = 0; var14 < 10; ++var14) {
               for(int var15 = 0; var15 < Class33.aShortArrayArray382[var14].length; ++var15) {
                  if(var4.anIntArray7312[var14] < Class102.aShortArrayArrayArray1007[var14][var15].length) {
                     var20.X(Class33.aShortArrayArray382[var14][var15], Class102.aShortArrayArrayArray1007[var14][var15][var4.anIntArray7312[var14]]);
                  }
               }
            }
         }

         var20.KA(var10);
         Class564 var21 = this.aClass410_4934.aClass564_5017;
         synchronized(var21) {
            this.aClass410_4934.aClass564_5017.method11958(var20, (long)(this.anInt4935 * 1349863775 | -1659372711 * var1.anInt7353 << 29));
         }
      }

      if(null != var5 || var9 != 0) {
         var20 = var20.method12060((byte)1, var10, true);
         if(null != var5) {
            var5.method8040(var20, 0, -681498946);
         }

         if(var9 != 0) {
            var20.PA(var6, var7, var8, var9);
         }
      }

      var20.KA(var2);
      return var20;
   }

   public final Class96 method6927(boolean var1, Class417 var2) {
      int var3;
      int var4;
      int var5;
      if(var1) {
         if(null != var2 && null != var2.anIntArray5144) {
            var3 = var2.anIntArray5144[0];
            var4 = var2.anIntArray5144[1];
            var5 = var2.anIntArray5144[2];
         } else {
            var3 = this.anInt4945 * -522943185;
            var4 = this.anInt4928 * -1728826705;
            var5 = this.anInt4968 * 846000641;
         }
      } else if(var2 != null && var2.anIntArray5142 != null) {
         var3 = var2.anIntArray5142[0];
         var4 = var2.anIntArray5142[1];
         var5 = var2.anIntArray5142[2];
      } else {
         var3 = -1094311917 * this.anInt4978;
         var4 = this.anInt4946 * 553600993;
         var5 = this.anInt4964 * -6803451;
      }

      if(var3 == -1) {
         return null;
      } else {
         Class96 var6 = Class96.method1867(this.aClass410_4934.aClass253_5010, var3, 0);
         if(null == var6) {
            return null;
         } else {
            if(var6.anInt947 < 13) {
               var6.method1848(2);
            }

            if(var4 != -1) {
               Class96 var7 = Class96.method1867(this.aClass410_4934.aClass253_5010, var4, 0);
               if(var7.anInt947 < 13) {
                  var7.method1848(2);
               }

               if(var5 != -1) {
                  Class96 var8 = Class96.method1867(this.aClass410_4934.aClass253_5010, var5, 0);
                  if(var8.anInt947 < 13) {
                     var8.method1848(2);
                  }

                  Class96[] var9 = new Class96[]{var6, var7, var8};
                  var6 = new Class96(var9, 3);
               } else {
                  Class96[] var12 = new Class96[]{var6, var7};
                  var6 = new Class96(var12, 2);
               }
            }

            if(!var1 && (-1939603481 * this.anInt4969 != 0 || 0 != this.anInt4971 * 1348776997 || 0 != this.anInt4973 * 1366312355)) {
               var6.method1863(-1939603481 * this.anInt4969, this.anInt4971 * 1348776997, this.anInt4973 * 1366312355);
            }

            if(var1 && (this.anInt4930 * -503642119 != 0 || 0 != -825747017 * this.anInt4972 || 1308098105 * this.anInt4974 != 0)) {
               var6.method1863(-503642119 * this.anInt4930, this.anInt4972 * -825747017, this.anInt4974 * 1308098105);
            }

            short[] var10;
            int var11;
            if(null != this.aShortArray4939) {
               if(null != var2 && null != var2.aShortArray5143) {
                  var10 = var2.aShortArray5143;
               } else {
                  var10 = this.aShortArray4979;
               }

               for(var11 = 0; var11 < this.aShortArray4939.length; ++var11) {
                  var6.method1860(this.aShortArray4939[var11], var10[var11]);
               }
            }

            if(this.aShortArray4942 != null) {
               if(null != var2 && var2.aShortArray5147 != null) {
                  var10 = var2.aShortArray5147;
               } else {
                  var10 = this.aShortArray4943;
               }

               for(var11 = 0; var11 < this.aShortArray4942.length; ++var11) {
                  var6.method1878(this.aShortArray4942[var11], var10[var11]);
               }
            }

            return var6;
         }
      }
   }

   public int method6928(int var1, short var2) {
      return null == this.anIntArray4932?-1:this.anIntArray4932[var1];
   }

   public final Class96 method6929(boolean var1, Class417 var2) {
      int var3;
      int var4;
      int var5;
      if(var1) {
         if(null != var2 && null != var2.anIntArray5144) {
            var3 = var2.anIntArray5144[0];
            var4 = var2.anIntArray5144[1];
            var5 = var2.anIntArray5144[2];
         } else {
            var3 = this.anInt4945 * -522943185;
            var4 = this.anInt4928 * -1728826705;
            var5 = this.anInt4968 * 846000641;
         }
      } else if(var2 != null && var2.anIntArray5142 != null) {
         var3 = var2.anIntArray5142[0];
         var4 = var2.anIntArray5142[1];
         var5 = var2.anIntArray5142[2];
      } else {
         var3 = -1094311917 * this.anInt4978;
         var4 = this.anInt4946 * 553600993;
         var5 = this.anInt4964 * -6803451;
      }

      if(var3 == -1) {
         return null;
      } else {
         Class96 var6 = Class96.method1867(this.aClass410_4934.aClass253_5010, var3, 0);
         if(null == var6) {
            return null;
         } else {
            if(var6.anInt947 < 13) {
               var6.method1848(2);
            }

            if(var4 != -1) {
               Class96 var7 = Class96.method1867(this.aClass410_4934.aClass253_5010, var4, 0);
               if(var7.anInt947 < 13) {
                  var7.method1848(2);
               }

               if(var5 != -1) {
                  Class96 var8 = Class96.method1867(this.aClass410_4934.aClass253_5010, var5, 0);
                  if(var8.anInt947 < 13) {
                     var8.method1848(2);
                  }

                  Class96[] var9 = new Class96[]{var6, var7, var8};
                  var6 = new Class96(var9, 3);
               } else {
                  Class96[] var12 = new Class96[]{var6, var7};
                  var6 = new Class96(var12, 2);
               }
            }

            if(!var1 && (-1939603481 * this.anInt4969 != 0 || 0 != this.anInt4971 * 1348776997 || 0 != this.anInt4973 * 1366312355)) {
               var6.method1863(-1939603481 * this.anInt4969, this.anInt4971 * 1348776997, this.anInt4973 * 1366312355);
            }

            if(var1 && (this.anInt4930 * -503642119 != 0 || 0 != -825747017 * this.anInt4972 || 1308098105 * this.anInt4974 != 0)) {
               var6.method1863(-503642119 * this.anInt4930, this.anInt4972 * -825747017, this.anInt4974 * 1308098105);
            }

            short[] var10;
            int var11;
            if(null != this.aShortArray4939) {
               if(null != var2 && null != var2.aShortArray5143) {
                  var10 = var2.aShortArray5143;
               } else {
                  var10 = this.aShortArray4979;
               }

               for(var11 = 0; var11 < this.aShortArray4939.length; ++var11) {
                  var6.method1860(this.aShortArray4939[var11], var10[var11]);
               }
            }

            if(this.aShortArray4942 != null) {
               if(null != var2 && var2.aShortArray5147 != null) {
                  var10 = var2.aShortArray5147;
               } else {
                  var10 = this.aShortArray4943;
               }

               for(var11 = 0; var11 < this.aShortArray4942.length; ++var11) {
                  var6.method1878(this.aShortArray4942[var11], var10[var11]);
               }
            }

            return var6;
         }
      }
   }

   public final Class96 method6930(boolean var1, Class417 var2) {
      int var3;
      int var4;
      int var5;
      if(var1) {
         if(null != var2 && null != var2.anIntArray5144) {
            var3 = var2.anIntArray5144[0];
            var4 = var2.anIntArray5144[1];
            var5 = var2.anIntArray5144[2];
         } else {
            var3 = this.anInt4945 * -522943185;
            var4 = this.anInt4928 * -1728826705;
            var5 = this.anInt4968 * 846000641;
         }
      } else if(var2 != null && var2.anIntArray5142 != null) {
         var3 = var2.anIntArray5142[0];
         var4 = var2.anIntArray5142[1];
         var5 = var2.anIntArray5142[2];
      } else {
         var3 = -1094311917 * this.anInt4978;
         var4 = this.anInt4946 * 553600993;
         var5 = this.anInt4964 * -6803451;
      }

      if(var3 == -1) {
         return null;
      } else {
         Class96 var6 = Class96.method1867(this.aClass410_4934.aClass253_5010, var3, 0);
         if(null == var6) {
            return null;
         } else {
            if(var6.anInt947 < 13) {
               var6.method1848(2);
            }

            if(var4 != -1) {
               Class96 var7 = Class96.method1867(this.aClass410_4934.aClass253_5010, var4, 0);
               if(var7.anInt947 < 13) {
                  var7.method1848(2);
               }

               if(var5 != -1) {
                  Class96 var8 = Class96.method1867(this.aClass410_4934.aClass253_5010, var5, 0);
                  if(var8.anInt947 < 13) {
                     var8.method1848(2);
                  }

                  Class96[] var9 = new Class96[]{var6, var7, var8};
                  var6 = new Class96(var9, 3);
               } else {
                  Class96[] var12 = new Class96[]{var6, var7};
                  var6 = new Class96(var12, 2);
               }
            }

            if(!var1 && (-1939603481 * this.anInt4969 != 0 || 0 != this.anInt4971 * 1348776997 || 0 != this.anInt4973 * 1366312355)) {
               var6.method1863(-1939603481 * this.anInt4969, this.anInt4971 * 1348776997, this.anInt4973 * 1366312355);
            }

            if(var1 && (this.anInt4930 * -503642119 != 0 || 0 != -825747017 * this.anInt4972 || 1308098105 * this.anInt4974 != 0)) {
               var6.method1863(-503642119 * this.anInt4930, this.anInt4972 * -825747017, this.anInt4974 * 1308098105);
            }

            short[] var10;
            int var11;
            if(null != this.aShortArray4939) {
               if(null != var2 && null != var2.aShortArray5143) {
                  var10 = var2.aShortArray5143;
               } else {
                  var10 = this.aShortArray4979;
               }

               for(var11 = 0; var11 < this.aShortArray4939.length; ++var11) {
                  var6.method1860(this.aShortArray4939[var11], var10[var11]);
               }
            }

            if(this.aShortArray4942 != null) {
               if(null != var2 && var2.aShortArray5147 != null) {
                  var10 = var2.aShortArray5147;
               } else {
                  var10 = this.aShortArray4943;
               }

               for(var11 = 0; var11 < this.aShortArray4942.length; ++var11) {
                  var6.method1878(this.aShortArray4942[var11], var10[var11]);
               }
            }

            return var6;
         }
      }
   }

   public final Class568 method6931(Class545 var1, int var2, int var3, Class540 var4, Class477 var5, int var6, int var7, int var8, int var9, int var10) {
      int var11;
      if(this.anIntArray4990 != null && var3 > 1) {
         var11 = -1;

         for(int var12 = 0; var12 < 10; ++var12) {
            if(var3 >= this.anIntArray4940[var12] && this.anIntArray4940[var12] != 0) {
               var11 = this.anIntArray4990[var12];
            }
         }

         if(-1 != var11) {
            return this.aClass410_4934.method7007(var11, -1957162130).method6931(var1, var2, 1, var4, var5, var6, var7, var8, var9, 412057594);
         }
      }

      var11 = var2;
      if(var5 != null) {
         var11 = var2 | var5.method7983(257675263);
      }

      Class564 var13 = this.aClass410_4934.aClass564_5017;
      Class568 var20;
      synchronized(var13) {
         var20 = (Class568)this.aClass410_4934.aClass564_5017.method11959((long)(this.anInt4935 * 1349863775 | var1.anInt7353 * -1659372711 << 29));
      }

      if(var20 == null || var1.method11494(var20.m(), var11) != 0) {
         if(null != var20) {
            var11 = var1.method11495(var11, var20.m());
         }

         int var21 = var11;
         if(this.aShortArray4942 != null) {
            var21 = var11 | '\u8000';
         }

         if(null != this.aShortArray4939 || var4 != null) {
            var21 |= 16384;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var21 |= 1;
         }

         if(128 != this.anInt4985 * 1008462991) {
            var21 |= 2;
         }

         if(1008462991 * this.anInt4985 != 128) {
            var21 |= 4;
         }

         Class96 var14 = Class96.method1867(this.aClass410_4934.aClass253_5010, 59267969 * this.anInt4937, 0);
         if(null == var14) {
            return null;
         }

         if(var14.anInt947 < 13) {
            var14.method1848(2);
         }

         var20 = var1.method11493(var14, var21, this.aClass410_4934.anInt5021 * -18620791, 64 + this.anInt4988 * 1687021993, 850 + this.anInt4957 * -1689055449);
         if(128 != 1008462991 * this.anInt4985 || 128 != 685211129 * this.anInt4986 || 128 != this.anInt4987 * -920810921) {
            var20.oa(1008462991 * this.anInt4985, 685211129 * this.anInt4986, -920810921 * this.anInt4987);
         }

         int var15;
         if(null != this.aShortArray4939) {
            for(var15 = 0; var15 < this.aShortArray4939.length; ++var15) {
               if(null != this.aByteArray4941 && var15 < this.aByteArray4941.length) {
                  var20.X(this.aShortArray4939[var15], aShortArray4994[this.aByteArray4941[var15] & 255]);
               } else {
                  var20.X(this.aShortArray4939[var15], this.aShortArray4979[var15]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var15 = 0; var15 < this.aShortArray4942.length; ++var15) {
               var20.W(this.aShortArray4942[var15], this.aShortArray4943[var15]);
            }
         }

         if(var4 != null) {
            for(var15 = 0; var15 < 10; ++var15) {
               for(int var16 = 0; var16 < Class33.aShortArrayArray382[var15].length; ++var16) {
                  if(var4.anIntArray7312[var15] < Class102.aShortArrayArrayArray1007[var15][var16].length) {
                     var20.X(Class33.aShortArrayArray382[var15][var16], Class102.aShortArrayArrayArray1007[var15][var16][var4.anIntArray7312[var15]]);
                  }
               }
            }
         }

         var20.KA(var11);
         Class564 var22 = this.aClass410_4934.aClass564_5017;
         synchronized(var22) {
            this.aClass410_4934.aClass564_5017.method11958(var20, (long)(this.anInt4935 * 1349863775 | -1659372711 * var1.anInt7353 << 29));
         }
      }

      if(null != var5 || var9 != 0) {
         var20 = var20.method12060((byte)1, var11, true);
         if(null != var5) {
            var5.method8040(var20, 0, -830445370);
         }

         if(var9 != 0) {
            var20.PA(var6, var7, var8, var9);
         }
      }

      var20.KA(var2);
      return var20;
   }

   int[] method6932(Class545 var1, Class545 var2, int var3, int var4, int var5, boolean var6, int var7, Class8 var8, Class540 var9, int var10) {
      Class96 var11 = Class96.method1867(this.aClass410_4934.aClass253_5010, this.anInt4937 * 59267969, 0);
      if(var11 == null) {
         return null;
      } else {
         if(var11.anInt947 < 13) {
            var11.method1848(2);
         }

         int var12;
         if(null != this.aShortArray4939) {
            for(var12 = 0; var12 < this.aShortArray4939.length; ++var12) {
               if(this.aByteArray4941 != null && var12 < this.aByteArray4941.length) {
                  var11.method1860(this.aShortArray4939[var12], aShortArray4994[this.aByteArray4941[var12] & 255]);
               } else {
                  var11.method1860(this.aShortArray4939[var12], this.aShortArray4979[var12]);
               }
            }
         }

         if(this.aShortArray4942 != null) {
            for(var12 = 0; var12 < this.aShortArray4942.length; ++var12) {
               var11.method1878(this.aShortArray4942[var12], this.aShortArray4943[var12]);
            }
         }

         if(var9 != null) {
            for(var12 = 0; var12 < 10; ++var12) {
               for(int var13 = 0; var13 < Class33.aShortArrayArray382[var12].length; ++var13) {
                  if(var9.anIntArray7312[var12] < Class102.aShortArrayArrayArray1007[var12][var13].length) {
                     var11.method1860(Class33.aShortArrayArray382[var12][var13], Class102.aShortArrayArrayArray1007[var12][var13][var9.anIntArray7312[var12]]);
                  }
               }
            }
         }

         var12 = 2048;
         boolean var23 = false;
         if(128 != 1008462991 * this.anInt4985 || 685211129 * this.anInt4986 != 128 || this.anInt4987 * -920810921 != 128) {
            var23 = true;
            var12 |= 7;
         }

         Class568 var14 = var1.method11493(var11, var12, 64, 64 + 1687021993 * this.anInt4988, -1689055449 * this.anInt4957 + 768);
         if(!var14.method12101()) {
            return null;
         } else {
            if(var23) {
               var14.oa(1008462991 * this.anInt4985, this.anInt4986 * 685211129, -920810921 * this.anInt4987);
            }

            Class171 var15 = null;
            if(this.anInt4982 * -1823943423 != -1) {
               var15 = this.aClass410_4934.method7029(var1, var2, this.anInt4981 * -116094915, 10, 1, 0, true, true, 0, var8, var9, -269845520);
               if(null == var15) {
                  return null;
               }
            } else if(this.anInt4955 * -1761800209 != -1) {
               var15 = this.aClass410_4934.method7029(var1, var2, -470824831 * this.anInt4983, var3, var4, var5, false, true, 0, var8, var9, -986129957);
               if(var15 == null) {
                  return null;
               }
            } else if(-1 != 1626089223 * this.anInt4997) {
               var15 = this.aClass410_4934.method7029(var1, var2, this.anInt4996 * 664092373, var3, var4, var5, false, true, 0, var8, var9, 1634665626);
               if(var15 == null) {
                  return null;
               }
            }

            int var16;
            if(var6) {
               var16 = (int)((double)(-1930238423 * this.anInt4962) * 1.5D) << 2;
            } else if(var4 == 2) {
               var16 = (int)(1.04D * (double)(this.anInt4962 * -1930238423)) << 2;
            } else {
               var16 = this.anInt4962 * -1930238423 << 2;
            }

            Class317 var17 = var1.method11501();
            Class317 var18 = var1.method11467();
            var18.method5625(16.0F, 16.0F, 512.0F, 512.0F, 50.0F, 2.14748365E9F, (float)var1.method11482((byte)14).method2741(), (float)var1.method11482((byte)14).method2742());
            var1.method11500(var18);
            var1.method11460(0, 0, var1.method11482((byte)14).method2741(), var1.method11482((byte)14).method2742());
            Class328 var19 = new Class328();
            var1.method11603(var19);
            var1.IA(0.95F + (float)(Math.random() / 10.0D));
            var1.m(16777215, 0.95F + (float)(Math.random() / 10.0D), 0.95F + (float)(Math.random() / 10.0D), -50.0F, -10.0F, -50.0F);
            Class328 var20 = var1.method11491();
            var20.method5997(0.0F, 0.0F, 1.0F, Class312.method5556(-(124750541 * this.anInt4949) << 3));
            var20.method6003(0.0F, 1.0F, 0.0F, Class312.method5556(this.anInt4948 * 1220933087 << 3));
            var20.method6005((float)(-1036310807 * this.anInt4950 << 2), (float)((var16 * Class312.anIntArray3943[2004369819 * this.anInt4958 << 3] >> 14) - var14.YA() / 2 + (this.anInt4951 * 1409604203 << 2)), (float)((1409604203 * this.anInt4951 << 2) + (Class312.anIntArray3956[this.anInt4958 * 2004369819 << 3] * var16 >> 14)));
            var20.method6003(1.0F, 0.0F, 0.0F, Class312.method5556(2004369819 * this.anInt4958 << 3));
            var1.r(0, 0, 36, 32);
            var1.ba(2, 0);
            var1.B(0, 0, 36, 32, 0, 0);
            var1.c(0, -1, 0);
            var14.method12069(var20, (Class89)null, 1);
            var1.method11500(var17);
            int[] var21 = var1.ay(0, 0, 36, 32);
            if(var4 >= 1) {
               var21 = this.method6895(var21, -16777214, -1239233547);
               if(var4 >= 2) {
                  var21 = this.method6895(var21, -1, 943887461);
               }
            }

            if(var5 != 0) {
               this.method6896(var21, var5, (byte)0);
            }

            if(this.anInt4955 * -1761800209 != -1) {
               var15.method2926(0, 0);
            } else if(this.anInt4997 * 1626089223 != -1) {
               var15.method2926(0, 0);
            }

            var1.method11599(var21, 0, 36, 36, 32, 98312473).method2926(0, 0);
            if(-1823943423 * this.anInt4982 != -1) {
               var15.method2926(0, 0);
            }

            if(1 == var7 || var7 == 2 && (1 == this.anInt4952 * -1124420131 || 1 != var3) && var3 != -1) {
               var8.method616(Class563.method11955(var3, this.aClass410_4934.aClass470_5014, (byte)-76), 0, 9, -256, -16777215, (short)-30392);
            }

            var21 = var1.ay(0, 0, 36, 32);

            for(int var22 = 0; var22 < var21.length; ++var22) {
               if(0 == (var21[var22] & 16777215)) {
                  var21[var22] = 0;
               } else {
                  var21[var22] |= -16777216;
               }
            }

            return var21;
         }
      }
   }

   public final Class96 method6933(boolean var1, Class417 var2) {
      int var3;
      int var4;
      if(var1) {
         if(var2 != null && var2.anIntArray5145 != null) {
            var3 = var2.anIntArray5145[0];
            var4 = var2.anIntArray5145[1];
         } else {
            var3 = this.anInt4977 * -611993999;
            var4 = this.anInt4995 * -579572887;
         }
      } else if(null != var2 && null != var2.anIntArray5146) {
         var3 = var2.anIntArray5146[0];
         var4 = var2.anIntArray5146[1];
      } else {
         var3 = this.anInt4975 * -1248912921;
         var4 = 2064377299 * this.anInt4976;
      }

      if(-1 == var3) {
         return null;
      } else {
         Class96 var5 = Class96.method1867(this.aClass410_4934.aClass253_5010, var3, 0);
         if(var5.anInt947 < 13) {
            var5.method1848(2);
         }

         if(var4 != -1) {
            Class96 var6 = Class96.method1867(this.aClass410_4934.aClass253_5010, var4, 0);
            if(var6.anInt947 < 13) {
               var6.method1848(2);
            }

            Class96[] var7 = new Class96[]{var5, var6};
            var5 = new Class96(var7, 2);
         }

         short[] var8;
         int var9;
         if(null != this.aShortArray4939) {
            if(null != var2 && null != var2.aShortArray5143) {
               var8 = var2.aShortArray5143;
            } else {
               var8 = this.aShortArray4979;
            }

            for(var9 = 0; var9 < this.aShortArray4939.length; ++var9) {
               var5.method1860(this.aShortArray4939[var9], var8[var9]);
            }
         }

         if(null != this.aShortArray4942) {
            if(var2 != null && var2.aShortArray5147 != null) {
               var8 = var2.aShortArray5147;
            } else {
               var8 = this.aShortArray4943;
            }

            for(var9 = 0; var9 < this.aShortArray4942.length; ++var9) {
               var5.method1878(this.aShortArray4942[var9], var8[var9]);
            }
         }

         return var5;
      }
   }

   public int method6934(int var1, int var2) {
      if(null == this.aClass423_4993) {
         return var2;
      } else {
         IntVar var3 = (IntVar)this.aClass423_4993.method7211((long)var1);
         return null == var3?var2:var3.integer * 442885445;
      }
   }

   public int method6935(int var1, int var2) {
      if(null == this.aClass423_4993) {
         return var2;
      } else {
         IntVar var3 = (IntVar)this.aClass423_4993.method7211((long)var1);
         return null == var3?var2:var3.integer * 442885445;
      }
   }

   public String method6936(int var1, String var2) {
      if(null == this.aClass423_4993) {
         return var2;
      } else {
         ObjectVar var3 = (ObjectVar)this.aClass423_4993.method7211((long)var1);
         return var3 == null?var2:(String)var3.object;
      }
   }

   public int method6937(int var1) {
      return null == this.anIntArray4932?-1:this.anIntArray4932[var1];
   }

   public int method6938(int var1) {
      return null == this.anIntArray4932?-1:this.anIntArray4932[var1];
   }

   public int method6939(int var1) {
      return null == this.anIntArray4932?-1:this.anIntArray4932[var1];
   }

   static String method6940(int var0, Class470 var1) {
      return var0 < 100000?"<col=ffff00>" + var0 + "</col>":(var0 < 10000000?"<col=ffffff>" + var0 / 1000 + Class418.aClass418_5206.method7137(var1, (byte)-61) + "</col>":"<col=00ff80>" + var0 / 1000000 + Class418.aClass418_5285.method7137(var1, (byte)-49) + "</col>");
   }

   public static void method6941(String var0, boolean var1, boolean var2, int var3) {
      try {
         label279: {
            if(!var0.equalsIgnoreCase("commands") && !var0.equalsIgnoreCase("help")) {
               if(var0.equalsIgnoreCase("cls")) {
                  Class176.anInt2137 = 0;
                  Class176.anInt2136 = 0;
                  return;
               }

               if(!var0.equalsIgnoreCase("displayfps")) {
                  if(var0.equals("renderer")) {
                     Class85 var22 = Class428.aClass545_5383.method11427();
                     Class508.method10788("Toolkit ID: " + Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-23), 1942505518);
                     Class508.method10788("Vendor: " + var22.anInt861 * -1386369391, 2053440330);
                     Class508.method10788("Name: " + var22.aString863, 2105507301);
                     Class508.method10788("Version: " + -184214279 * var22.anInt864, 1912359329);
                     Class508.method10788("Device: " + var22.aString865, 1967964260);
                     Class508.method10788("Driver Version: " + 4452538459276189059L * var22.aLong866, 1882890905);
                     return;
                  }

                  if(var0.equals("heap")) {
                     Class508.method10788("Heap: " + 601874395 * GameEngine.anInt3290 + "MB", 1986236660);
                     return;
                  }

                  if(var0.equalsIgnoreCase("getcamerapos")) {
                     Class548 var23 = client.aClass279_7807.method4909(658747898);
                     Class508.method10788("Pos: " + Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113.aByte8443 + "," + ((Class90.anInt895 * -434903763 >> 9) + -843659437 * var23.anInt7419 >> 6) + "," + ((2099956753 * Class4.anInt112 >> 9) + -1518942839 * var23.anInt7420 >> 6) + "," + (var23.anInt7419 * -843659437 + (Class90.anInt895 * -434903763 >> 9) & 63) + "," + (var23.anInt7420 * -1518942839 + (2099956753 * Class4.anInt112 >> 9) & 63) + " Height: " + (Class419.method7167(-434903763 * Class90.anInt895, Class4.anInt112 * 2099956753, Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113.aByte8443, (byte)-46) - Class416.anInt5137 * -667483859), 1957845493);
                     Class508.method10788("Look: " + Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113.aByte8443 + "," + (Class251_Sub2.anInt8929 * -1342202115 + var23.anInt7419 * -843659437 >> 6) + "," + (var23.anInt7420 * -1518942839 + Class428.anInt5384 * 928223479 >> 6) + "," + (Class251_Sub2.anInt8929 * -1342202115 + -843659437 * var23.anInt7419 & 63) + "," + (928223479 * Class428.anInt5384 + var23.anInt7420 * -1518942839 & 63) + " Height: " + (Class419.method7167(Class251_Sub2.anInt8929 * -1342202115, 928223479 * Class428.anInt5384, Class5.aClass515_Sub1_Sub4_Sub4_Sub1_113.aByte8443, (byte)-47) - 191363875 * Class389.anInt4849), 1790604351);
                     return;
                  }
                  break label279;
               }

               client.aBool7873 = !client.aBool7873;
               if(client.aBool7873) {
                  Class508.method10788("FPS on", 1991386853);
               } else {
                  Class508.method10788("FPS off", 2142784010);
               }

               return;
            }

            Class508.method10788("commands - This command", 2104348586);
            Class508.method10788("cls - Clear console", 1827695593);
            Class508.method10788("displayfps - Toggle FPS and other information", 2141521137);
            Class508.method10788("renderer - Print graphics renderer information", 1934400109);
            Class508.method10788("heap - Print java memory information", 1842421814);
            Class508.method10788("getcamerapos - Print location and direction of camera for use in bug reports", 1924979154);
            return;
         }
      } catch (Exception var12) {
         Class508.method10788(Class418.aClass418_5149.method7137(Class498.aClass470_5944, (byte)-71), 1875663091);
         return;
      }

      if(Class487.aClass487_5903 != Class502.aClass487_5957 || client.anInt7803 * 1760366209 >= 2) {
         try {
            if(var0.equalsIgnoreCase("wm1")) {
               Class298.method5373(1, -1, -1, false, -1331073923);
               if(Class461.method7786((byte)16) == 1) {
                  Class508.method10788("Success", 1820966280);
               } else {
                  Class508.method10788("Failure", 2056247253);
               }

               return;
            }

            if(var0.equalsIgnoreCase("wm2")) {
               Class298.method5373(2, -1, -1, false, 229806143);
               if(Class461.method7786((byte)1) == 2) {
                  Class508.method10788("Success", 1855087861);
               } else {
                  Class508.method10788("Failure", 2068307718);
               }

               return;
            }

            if(Class446.aBool5570 && var0.equalsIgnoreCase("wm3")) {
               Class298.method5373(3, 1024, 768, false, -466853807);
               if(Class461.method7786((byte)17) == 3) {
                  Class508.method10788("Success", 1824854527);
               } else {
                  Class508.method10788("Failure", 1950585244);
               }

               return;
            }

            Class225_Sub15 var14;
            int var20;
            if(var0.startsWith("setlobby ")) {
               var20 = -1;
               var14 = null;
               var0 = var0.substring(9);
               int var16 = var0.indexOf(32);
               if(-1 == var16) {
                  Class508.method10788("Failure", 2144597364);
                  return;
               }

               try {
                  var20 = Integer.parseInt(var0.substring(0, var16));
               } catch (NumberFormatException var8) {
                  ;
               }

               if(-1 == var20) {
                  Class508.method10788("Failure", 1878456402);
                  return;
               }

               String var19 = var0.substring(1 + var16).trim() + ".runescape.com";
               Class521.method11057(var19, var20, 98312473);
               Class508.method10788("Success", 1893521968);
               return;
            }

            if(var0.equalsIgnoreCase("tk0")) {
               Class62_Sub2.method13095(0, false, 1565166678);
               if(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-74) == 0) {
                  Class508.method10788("Success", 2035497351);
                  Class500.aClass225_Sub6_5953.method13522(Class500.aClass225_Sub6_5953.aClass463_Sub15_8479, 0, 1174612515);
                  Class7.method605(-1358477367);
                  client.aBool7758 = false;
               } else {
                  Class508.method10788("Failure", 1933655298);
               }

               return;
            }

            if(var0.equalsIgnoreCase("tk1")) {
               Class62_Sub2.method13095(1, false, 1565166678);
               if(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-29) == 1) {
                  Class508.method10788("Success", 1779324433);
                  Class500.aClass225_Sub6_5953.method13522(Class500.aClass225_Sub6_5953.aClass463_Sub15_8479, 1, 36583712);
                  Class7.method605(-1358477367);
                  client.aBool7758 = false;
               } else {
                  Class508.method10788("Failure", 2112871064);
               }

               return;
            }

            if(var0.equalsIgnoreCase("tk2")) {
               Class62_Sub2.method13095(2, false, 1565166678);
               if(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-97) == 2) {
                  Class508.method10788("Success", 1958159325);
                  Class500.aClass225_Sub6_5953.method13522(Class500.aClass225_Sub6_5953.aClass463_Sub15_8479, 2, 1612654847);
                  Class7.method605(-1358477367);
                  client.aBool7758 = false;
               } else {
                  Class508.method10788("Failure", 1957036799);
               }

               return;
            }

            if(var0.equalsIgnoreCase("tk3")) {
               Class62_Sub2.method13095(3, false, 1565166678);
               if(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-117) == 3) {
                  Class508.method10788("Success", 1996083868);
                  Class500.aClass225_Sub6_5953.method13522(Class500.aClass225_Sub6_5953.aClass463_Sub15_8479, 3, -1770542405);
                  Class7.method605(-1358477367);
                  client.aBool7758 = false;
               } else {
                  Class508.method10788("Failure", 1800785307);
               }

               return;
            }

            if(var0.equalsIgnoreCase("tk5")) {
               Class62_Sub2.method13095(5, false, 1565166678);
               if(Class500.aClass225_Sub6_5953.aClass463_Sub15_8472.method12922((byte)-52) == 5) {
                  Class508.method10788("Success", 1800159549);
                  Class500.aClass225_Sub6_5953.method13522(Class500.aClass225_Sub6_5953.aClass463_Sub15_8479, 5, 1557906460);
                  Class7.method605(-1358477367);
                  client.aBool7758 = false;
               } else {
                  Class508.method10788("Failure", 2106603988);
               }

               return;
            }

            if(var0.equalsIgnoreCase("clientdrop")) {
               if(client.anInt7734 * 1881519639 == 2) {
                  Class457.method7727(103160245);
               } else if(client.anInt7734 * 1881519639 == 19) {
                  client.aClass180_7704.aBool2174 = true;
               }

               return;
            }

            int var15;
            if(var0.equalsIgnoreCase("breakcon")) {
               PacketContext[] var21 = client.aClass180Array7705;

               for(var15 = 0; var15 < var21.length; ++var15) {
                  PacketContext var17 = var21[var15];
                  if(var17.method3206((byte)-32) != null) {
                     var17.method3206((byte)-36).method4010(1370680700);
                  }
               }

               Class338.aClass247_4364.method4404(-610656827);
               return;
            }

            if(var0.startsWith("getclientvarpbit")) {
               var20 = Integer.parseInt(var0.substring(17));
               Class508.method10788("varpbit=" + Class118_Sub1.aClass175_8204.method49(Class118_Sub1.aClass175_8204.method52(var20, 1849951336), (byte)-18), 1818134360);
               return;
            }

            if(var0.startsWith("getclientvarp")) {
               var20 = Integer.parseInt(var0.substring(14));
               Class508.method10788("varp=" + Class118_Sub1.aClass175_8204.method50(Class118_Sub1.aClass175_8204.method53(Class251.aClass251_2983, var20, (byte)-41), 758544260), 1948476991);
               return;
            }

            String[] var18;
            if(var0.startsWith("directlogin")) {
               var18 = Class34.method879(var0.substring(12), ' ', -1750991246);
               if(var18.length == 2) {
                  RS2Buffer.method13956(var18[0], var18[1], (byte)-21);
               }

               return;
            }

            if(var0.startsWith("snlogin ")) {
               var18 = Class34.method879(var0.substring(8), ' ', -372561262);
               var15 = Integer.parseInt(var18[0]);
               Class251_Sub4.method14388(var15, (byte)-109);
               return;
            }

            File var4;
            if(var0.startsWith("setoutput ")) {
               var4 = new File(var0.substring(10));
               if(var4.exists()) {
                  var4 = new File(var0.substring(10) + "." + Class339.method6240(89465297) + ".log");
                  if(var4.exists()) {
                     Class508.method10788("file already exists!", 1790277334);
                     return;
                  }
               }

               if(Class181.aFileOutputStream2196 != null) {
                  Class181.aFileOutputStream2196.close();
                  Class181.aFileOutputStream2196 = null;
               }

               try {
                  Class181.aFileOutputStream2196 = new FileOutputStream(var4);
                  return;
               } catch (FileNotFoundException var9) {
                  Class508.method10788("Could not create " + var4.getName(), 2024926274);
                  return;
               } catch (SecurityException var10) {
                  Class508.method10788("Cannot write to " + var4.getName(), 1938400977);
                  return;
               }
            }

            if(var0.equals("closeoutput")) {
               if(null != Class181.aFileOutputStream2196) {
                  Class181.aFileOutputStream2196.close();
               }

               Class181.aFileOutputStream2196 = null;
               return;
            }

            if(var0.startsWith("runscript ")) {
               var4 = new File(var0.substring(10));
               if(!var4.exists()) {
                  Class508.method10788("No such file", 1936710090);
                  return;
               }

               byte[] var5 = Class334.method6174(var4, 1596866375);
               if(null == var5) {
                  Class508.method10788("Failed to read file", 2118813552);
                  return;
               }

               String[] var6 = Class34.method879(Class332.method6154(Class289.method5279(var5, -669674003), '\r', "", -1100146333), '\n', -207798059);
               Class498.method8338(var6, -900626057);
            }

            if(1881519639 * client.anInt7734 == 2 || 15 == client.anInt7734 * 1881519639) {
               PacketContext var13 = Class35_Sub1.method13169(883808512);
               var14 = Class543.method11415(OutgoingOpcode.aClass302_3832, var13.aClass433_2184, (byte)1);
               var14.buffer.writeByte(var0.length() + 3, -765864773);
               var14.buffer.writeByte(var1?1:0, -765864773);
               var14.buffer.writeByte(var2?1:0, -765864773);
               var14.buffer.writeString(var0, (byte)81);
               var13.method3191(var14, (byte)24);
            }
         } catch (Exception var11) {
            Class508.method10788(Class418.aClass418_5149.method7137(Class498.aClass470_5944, (byte)-94), 1910933230);
            return;
         }
      }

      if(1881519639 * client.anInt7734 != 2 && client.anInt7734 * 1881519639 != 15) {
         Class508.method10788(Class418.aClass418_5150.method7137(Class498.aClass470_5944, (byte)-105) + var0, 1841873381);
      }

   }
}
