import java.util.zip.Inflater;

public class Class390 {

   static Class253 aClass253_4850;
   Inflater anInflater4851;
   public static int anInt4852;
   static Class171[] aClass171Array4853;


   public void method6692(RS2Buffer var1, byte[] var2) {
      if(31 == var1.buffer[-543666943 * var1.position] && -117 == var1.buffer[-543666943 * var1.position + 1]) {
         if(this.anInflater4851 == null) {
            this.anInflater4851 = new Inflater(true);
         }

         try {
            this.anInflater4851.setInput(var1.buffer, 10 + -543666943 * var1.position, var1.buffer.length - (10 + -543666943 * var1.position + 8));
            this.anInflater4851.inflate(var2);
         } catch (Exception var4) {
            this.anInflater4851.reset();
            throw new RuntimeException("");
         }

         this.anInflater4851.reset();
      } else {
         throw new RuntimeException("");
      }
   }

   public byte[] method6693(byte[] var1) {
      RS2Buffer var2 = new RS2Buffer(var1);
      var2.position = (var1.length - 4) * 1385214721;
      int var3 = var2.method13727(-1460525274);
      byte[] var4 = new byte[var3];
      var2.position = 0;
      this.method6695(var2, var4, -441205870);
      return var4;
   }

   public byte[] method6694(byte[] var1, byte var2) {
      RS2Buffer var3 = new RS2Buffer(var1);
      var3.position = (var1.length - 4) * 1385214721;
      int var4 = var3.method13727(-1200482678);
      byte[] var5 = new byte[var4];
      var3.position = 0;
      this.method6695(var3, var5, -735957405);
      return var5;
   }

   public void method6695(RS2Buffer var1, byte[] var2, int var3) {
      if(31 == var1.buffer[-543666943 * var1.position] && -117 == var1.buffer[-543666943 * var1.position + 1]) {
         if(this.anInflater4851 == null) {
            this.anInflater4851 = new Inflater(true);
         }

         try {
            this.anInflater4851.setInput(var1.buffer, 10 + -543666943 * var1.position, var1.buffer.length - (10 + -543666943 * var1.position + 8));
            this.anInflater4851.inflate(var2);
         } catch (Exception var5) {
            this.anInflater4851.reset();
            throw new RuntimeException("");
         }

         this.anInflater4851.reset();
      } else {
         throw new RuntimeException("");
      }
   }

   public byte[] method6696(byte[] var1) {
      RS2Buffer var2 = new RS2Buffer(var1);
      var2.position = (var1.length - 4) * 1385214721;
      int var3 = var2.method13727(-195214733);
      byte[] var4 = new byte[var3];
      var2.position = 0;
      this.method6695(var2, var4, 1703158958);
      return var4;
   }

   public Class390() {
      this(-1, 1000000, 1000000);
   }

   Class390(int var1, int var2, int var3) {}

   public void method6697(RS2Buffer var1, byte[] var2) {
      if(31 == var1.buffer[-543666943 * var1.position] && -117 == var1.buffer[-543666943 * var1.position + 1]) {
         if(this.anInflater4851 == null) {
            this.anInflater4851 = new Inflater(true);
         }

         try {
            this.anInflater4851.setInput(var1.buffer, 10 + -543666943 * var1.position, var1.buffer.length - (10 + -543666943 * var1.position + 8));
            this.anInflater4851.inflate(var2);
         } catch (Exception var4) {
            this.anInflater4851.reset();
            throw new RuntimeException("");
         }

         this.anInflater4851.reset();
      } else {
         throw new RuntimeException("");
      }
   }

   static void method6698(Class124 var0, int var1, int var2, int var3) {
      Class2.aClass124_18 = var0;
      Class2.anInt38 = -1336137555 * var1;
      Class2.anInt37 = var2 * -1834589129;
   }

   public static void method6699(int var0) {
      Class431 var1 = Class197.method3391("2", client.aClass481_7742.aString5857, true, 1130331098);
      Class498.aClass167_Sub1_5945.method14823(var1, -2104417064);
   }
}
