package org.runite.client;

public final class Class38_Sub1 extends Class38 {

   static int[][][] anIntArrayArrayArray2609;
   static String accRegistryIp;
   static int anInt2612;
   static int anInt2614 = 0;
   static boolean aBoolean2615 = false;
   static int anInt2617 = 0;
   static int anInt2618;


   public static void minimapIcons(RSInterface var0, AbstractSprite var1, int var2, int var3, int var4, int var6) {
      try {
         if(null != var1) {

             int var9 = var3 * var3 - -(var2 * var2);
            int var7 = 2047 & TextureOperation9.anInt3102 + GraphicDefinition.CAMERA_DIRECTION;//Region turns Map Icons + NPC Dots stay static
            int var8 = Math.max(var0.width / 2, var0.height / 2) - -10;
            if(var8 * var8 >= var9) {
               int var10 = Class51.anIntArray840[var7];
               var10 = var10 * 256 / (Class164_Sub2.anInt3020 - -256);
               int var11 = Class51.anIntArray851[var7];
               var11 = 256 * var11 / (256 + Class164_Sub2.anInt3020);
               int var12 = var10 * var2 - -(var3 * var11) >> 16;
               int var13 = var11 * var2 + -(var3 * var10) >> 16;
               if(HDToolKit.highDetail) {
                  ((HDSprite)var1).drawMinimapIcons(var0.width / 2 + var6 + var12 - var1.anInt3697 / 2, var0.height / 2 + var4 - (var13 + var1.anInt3706 / 2), (HDSprite)var0.method866(false));
               } else {
                  ((SoftwareSprite)var1).drawMinimapIcons(var0.width / 2 + var6 - -var12 + -(var1.anInt3697 / 2), -(var1.anInt3706 / 2) + var0.height / 2 + var4 + -var13, var0.anIntArray207, var0.anIntArray291);
               }

            }
         }
      } catch (RuntimeException var14) {
         throw ClientErrorException.clientError(var14, "em.B(" + (var0 != null ? "{...}" : "null") + ',' + "{...}" + ',' + var2 + ',' + var3 + ',' + var4 + ',' + (byte) 11 + ',' + var6 + ')');
      }
   }

   static int method1031(int var0) {
      try {

          return var0 >>> 7;
      } catch (RuntimeException var3) {
         throw ClientErrorException.clientError(var3, "em.C(" + var0 + ',' + 2 + ')');
      }
   }

}
