import java.util.Random;

public class Class425 {

   public static int[] anIntArray5361;
   public static int anInt5362;
   static final int anInt5363 = 12;
   public static int[] anIntArray5364;
   static int anInt5365;
   static Class340 aClass340_5366 = new Class340(16, Class339.aClass339_4367);


   public static void method7252(int var0, int var1) {
      int var2;
      if(-1776632199 * anInt5362 != var0) {
         anIntArray5364 = new int[var0];

         for(var2 = 0; var2 < var0; ++var2) {
            anIntArray5364[var2] = (var2 << 12) / var0;
         }

         anInt5362 = var0 * 537611209;
      }

      if(var1 != anInt5365 * -1581011029) {
         if(var1 != anInt5362 * -1776632199) {
            anIntArray5361 = new int[var1];

            for(var2 = 0; var2 < var1; ++var2) {
               anIntArray5361[var2] = (var2 << 12) / var1;
            }
         } else {
            anIntArray5361 = anIntArray5364;
         }

         anInt5365 = var1 * 599905027;
      }

   }

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

   public static byte[] method7253(int var0, int var1) {
      byte[] var2 = (byte[])((byte[])aClass340_5366.method6243(Integer.valueOf(var0), (byte)40));
      if(null == var2) {
         var2 = new byte[512];
         Random var3 = new Random((long)var0);

         int var4;
         for(var4 = 0; var4 < 255; ++var4) {
            var2[var4] = (byte)var4;
         }

         for(var4 = 0; var4 < 255; ++var4) {
            int var5 = 255 - var4;
            int var6 = Class300.method5381(var3, var5, (byte)-41);
            byte var7 = var2[var6];
            var2[var6] = var2[var5];
            var2[var5] = var2[511 - var4] = var7;
         }

         aClass340_5366.method6244(Integer.valueOf(var0), var2, -259045015);
      }

      return var2;
   }

   public static void method7254(int var0, int var1) {
      int var2;
      if(-1776632199 * anInt5362 != var0) {
         anIntArray5364 = new int[var0];

         for(var2 = 0; var2 < var0; ++var2) {
            anIntArray5364[var2] = (var2 << 12) / var0;
         }

         anInt5362 = var0 * 537611209;
      }

      if(var1 != anInt5365 * -1581011029) {
         if(var1 != anInt5362 * -1776632199) {
            anIntArray5361 = new int[var1];

            for(var2 = 0; var2 < var1; ++var2) {
               anIntArray5361[var2] = (var2 << 12) / var1;
            }
         } else {
            anIntArray5361 = anIntArray5364;
         }

         anInt5365 = var1 * 599905027;
      }

   }

   public static void method7255(int var0, int var1, int var2) {
      int var3;
      if(-1776632199 * anInt5362 != var0) {
         anIntArray5364 = new int[var0];

         for(var3 = 0; var3 < var0; ++var3) {
            anIntArray5364[var3] = (var3 << 12) / var0;
         }

         anInt5362 = var0 * 537611209;
      }

      if(var1 != anInt5365 * -1581011029) {
         if(var1 != anInt5362 * -1776632199) {
            anIntArray5361 = new int[var1];

            for(var3 = 0; var3 < var1; ++var3) {
               anIntArray5361[var3] = (var3 << 12) / var1;
            }
         } else {
            anIntArray5361 = anIntArray5364;
         }

         anInt5365 = var1 * 599905027;
      }

   }

   public static void method7256(int var0, int var1) {
      int var2;
      if(-1776632199 * anInt5362 != var0) {
         anIntArray5364 = new int[var0];

         for(var2 = 0; var2 < var0; ++var2) {
            anIntArray5364[var2] = (var2 << 12) / var0;
         }

         anInt5362 = var0 * 537611209;
      }

      if(var1 != anInt5365 * -1581011029) {
         if(var1 != anInt5362 * -1776632199) {
            anIntArray5361 = new int[var1];

            for(var2 = 0; var2 < var1; ++var2) {
               anIntArray5361[var2] = (var2 << 12) / var1;
            }
         } else {
            anIntArray5361 = anIntArray5364;
         }

         anInt5365 = var1 * 599905027;
      }

   }

   public static byte[] method7257(int var0) {
      byte[] var1 = (byte[])((byte[])aClass340_5366.method6243(Integer.valueOf(var0), (byte)10));
      if(null == var1) {
         var1 = new byte[512];
         Random var2 = new Random((long)var0);

         int var3;
         for(var3 = 0; var3 < 255; ++var3) {
            var1[var3] = (byte)var3;
         }

         for(var3 = 0; var3 < 255; ++var3) {
            int var4 = 255 - var3;
            int var5 = Class300.method5381(var2, var4, (byte)-39);
            byte var6 = var1[var5];
            var1[var5] = var1[var4];
            var1[var4] = var1[511 - var3] = var6;
         }

         aClass340_5366.method6244(Integer.valueOf(var0), var1, -1141336360);
      }

      return var1;
   }

   static final void method7258(Class508 var0, int var1) {
      var0.anInt6005 -= -46848683;
      var0.anInt6003 -= 294937419;
      String var2 = (String)var0.anObjectArray6004[639741949 * var0.anInt6005];
      boolean var3 = 1 == var0.anIntArray6027[var0.anInt6003 * -937710807];
      boolean var4 = var0.anIntArray6027[-937710807 * var0.anInt6003 + 1] == 1;
      boolean var5 = 1 == var0.anIntArray6027[2 + -937710807 * var0.anInt6003];
      Class225_Sub15 var6 = Class543.method11415(OutgoingOpcode.aClass302_3863, client.aClass180_7703.aClass433_2184, (byte)1);
      var6.buffer.writeShort(Class190.method3320(var2, -1752349824) + 1, 1642621875);
      var6.buffer.writeString(var2, (byte)115);
      int var7 = 0;
      if(var3) {
         var7 |= 1;
      }

      if(var4) {
         var7 |= 2;
      }

      if(var5) {
         var7 |= 4;
      }

      var6.buffer.writeByte(var7, -765864773);
      client.aClass180_7703.method3191(var6, (byte)-67);
   }
}
