package mapped;

import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;

@ObfuscatedName("fk")
public class class149 extends class144 {
   @ObfuscatedName("at")
   @ObfuscatedGetter(
      intValue = 1032151659
   )
   int field1668;
   @ObfuscatedName("ah")
   @ObfuscatedGetter(
      intValue = -872808131
   )
   int field1670;
   @ObfuscatedName("ar")
   @ObfuscatedGetter(
      intValue = 1260682791
   )
   int field1669;
   @ObfuscatedName("ao")
   @ObfuscatedGetter(
      intValue = 601087697
   )
   int field1671;
   // $FF: synthetic field
   @ObfuscatedSignature(
      descriptor = "Lfv;"
   )
   final class147 this$0;

   @ObfuscatedSignature(
      descriptor = "(Lfv;)V"
   )
   class149(class147 var1) {
      this.this$0 = var1;
   }

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(Luj;I)V",
      garbageValue = "-734756620"
   )
   void vmethod3510(Buffer var1) {
      this.field1668 = var1.readInt_base();
      this.field1671 = var1.readInt_base();
      this.field1670 = var1.readUnsignedByte_base();
      this.field1669 = var1.readUnsignedByte_base();
   }

   @ObfuscatedName("ah")
   @ObfuscatedSignature(
      descriptor = "(Lfc;I)V",
      garbageValue = "-2111347169"
   )
   void vmethod3506(ClanSettings var1) {
      var1.method3337_base(this.field1668, this.field1671, this.field1670, this.field1669);
   }

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(II)Lhz;",
      garbageValue = "1206229207"
   )
   public static HitSplatDefinition method3275(int var0) {
      HitSplatDefinition var1 = (HitSplatDefinition)HitSplatDefinition.HitSplatDefinition_cached.get((long)var0);
      if(var1 != null) {
         return var1;
      } else {
         byte[] var2 = HitSplatDefinition.HitSplatDefinition_archive.takeFile_base(32, var0);
         var1 = new HitSplatDefinition();
         if(var2 != null) {
            var1.method3852(new Buffer(var2));
         }

         HitSplatDefinition.HitSplatDefinition_cached.put(var1, (long)var0);
         return var1;
      }
   }

   @ObfuscatedName("ao")
   @ObfuscatedSignature(
      descriptor = "(ILdt;ZI)I",
      garbageValue = "1559513020"
   )
   static int method3270(int var0, Script var1, boolean var2) {
      return var0 < 1000?class47.method898(var0, var1, var2):(var0 < 1100?WidgetDefinition.method6302(var0, var1, var2):(var0 < 1200?class357.method6863(var0, var1, var2):(var0 < 1300?class426.method7948(var0, var1, var2):(var0 < 1400?WorldMapRectangle.method4925(var0, var1, var2):(var0 < 1500?class1.method11(var0, var1, var2):(var0 < 1600?ClanChannelMember.method3248(var0, var1, var2):(var0 < 1700?ReflectionCheck.method710(var0, var1, var2):(var0 < 1800?class30.method462(var0, var1, var2):(var0 < 1900?ItemComposition.method4015(var0, var1, var2):(var0 < 2000?UserComparator6.method3019(var0, var1, var2):(var0 < 2100?WidgetDefinition.method6302(var0, var1, var2):(var0 < 2200?class357.method6863(var0, var1, var2):(var0 < 2300?class426.method7948(var0, var1, var2):(var0 < 2400?WorldMapRectangle.method4925(var0, var1, var2):(var0 < 2500?class1.method11(var0, var1, var2):(var0 < 2600?class168.method3514(var0, var1, var2):(var0 < 2700?class60.method1190(var0, var1, var2):(var0 < 2800?FloorOverlayDefinition.method4035(var0, var1, var2):(var0 < 2900?UrlRequester.method2901(var0, var1, var2):(var0 < 3000?UserComparator6.method3019(var0, var1, var2):(var0 < 3200?World.method1899(var0, var1, var2):(var0 < 3300?class159.method3416(var0, var1, var2):(var0 < 3400?class463.method8508(var0, var1, var2):(var0 < 3500?ApproximateRouteStrategy.method1251(var0, var1, var2):(var0 < 3600?RouteStrategy.method4393(var0, var1, var2):(var0 < 3700?class350.method6852(var0, var1, var2):(var0 < 3800?SequenceDefinition.method4096(var0, var1, var2):(var0 < 3900?WorldMapRectangle.method4926(var0, var1, var2):(var0 < 4000?Actor.method2495(var0, var1, var2):(var0 < 4100?class422.method7907(var0, var1, var2):(var0 < 4200?ArchiveDiskAction.method6886(var0, var1, var2):(var0 < 4300?ObjectSound.method1973(var0, var1, var2):(var0 < 5100?class12.method131(var0, var1, var2):(var0 < 5400?class72.method2138(var0, var1, var2):(var0 < 5600?SoundSystem.method869(var0, var1, var2):(var0 < 5700?UserComparator9.method2987(var0, var1, var2):(var0 < 6300?class134.method3148(var0, var1, var2):(var0 < 6600?class138.method3161(var0, var1, var2):(var0 < 6700?SecureRandomCallable.method2324(var0, var1, var2):(var0 < 6800?class344.method6810(var0, var1, var2):(var0 < 6900?class17.method248(var0, var1, var2):(var0 < 7000?VerticalAlignment.method3753(var0, var1, var2):(var0 < 7100?class148.method3265(var0, var1, var2):(var0 < 7200?class158.method3412(var0, var1, var2):(var0 < 7300?ScriptEvent.method2367(var0, var1, var2):(var0 < 7500?class147.method3256(var0, var1, var2):(var0 < 7600?class59.method1184(var0, var1, var2):(var0 < 7700?class12.method142(var0, var1, var2):(var0 < 8100?ModelData0.method5818(var0, var1, var2):2)))))))))))))))))))))))))))))))))))))))))))))))));
   }

   @ObfuscatedName("hr")
   @ObfuscatedSignature(
      descriptor = "(II)V",
      garbageValue = "379656715"
   )
   static void getLoginError_base(int var0) {
      int var1 = Login.loginIndex;
      if(var0 == -3) {
         class139.setLoginResponseString_base("Connection timed out.", "Please try using a different world.", "");
      } else if(var0 == -2) {
         class139.setLoginResponseString_base("Error connecting to server.", "Please try using a different world.", "");
      } else if(var0 == -1) {
         class139.setLoginResponseString_base("No response from server.", "Please try using a different world.", "");
      } else if(var0 == 3) {
         UserComparator7.method2966_base(3);
         Login.field931 = 1;
      } else if(var0 == 4) {
         class129.method3086_base(0);
      } else if(var0 == 5) {
         Login.field931 = 2;
         class139.setLoginResponseString_base("Either your account is still logged in, or the last", "world you were using has become unavailable.", "Please try again later.");
      } else if(var0 == 68) {
         if(!Client.field494) {
            Client.field494 = true;
            ByteArrayPool.method7920_base();
            return;
         }

         class139.setLoginResponseString_base("Ash has been updated!", "Please reload this page.", "");
      } else if(!Client.onMobile && var0 == 6) {
         class139.setLoginResponseString_base("Ash has been updated!", "Please reload this page.", "");
      } else if(var0 == 7) {
         class139.setLoginResponseString_base("This world is full.", "Please use a different world.", "");
      } else if(var0 == 8) {
         class139.setLoginResponseString_base("Unable to connect.", "Login server offline.", "");
      } else if(var0 == 9) {
         class139.setLoginResponseString_base("Login limit exceeded.", "Too many connections from your address.", "");
      } else if(var0 == 10) {
         class139.setLoginResponseString_base("Unable to connect.", "Bad session id.", "");
      } else if(var0 == 11) {
         class139.setLoginResponseString_base("We suspect someone knows your password.", "Press \'change your password\' on front page.", "");
      } else if(var0 == 12) {
         class139.setLoginResponseString_base("You need a members account to login to this world.", "Please subscribe, or use a different world.", "");
      } else if(var0 == 13) {
         class139.setLoginResponseString_base("Could not complete login.", "Please try using a different world.", "");
      } else if(var0 == 14) {
         class139.setLoginResponseString_base("The server is being updated.", "Please wait 1 minute and try again.", "");
      } else if(var0 == 16) {
         class139.setLoginResponseString_base("Too many login attempts.", "You can use the Jagex Launcher to continue playing.", "Press the button below to download it now.");
         UserComparator7.method2966_base(33);
      } else if(var0 == 17) {
         class139.setLoginResponseString_base("To access this free world, log into a", "members world and move your character", "to a non-members area.");
      } else if(var0 == 18) {
         class129.method3086_base(1);
      } else if(var0 == 19) {
         class139.setLoginResponseString_base("This world is running a closed Beta.", "Sorry invited players only.", "Please use a different world.");
      } else if(var0 == 20) {
         class139.setLoginResponseString_base("Invalid loginserver requested.", "Please try using a different world.", "");
      } else if(var0 == 22) {
         class139.setLoginResponseString_base("Malformed login packet.", "Please try again.", "");
      } else if(var0 == 23) {
         class139.setLoginResponseString_base("No reply from loginserver.", "Please wait 1 minute and try again.", "");
      } else if(var0 == 24) {
         class139.setLoginResponseString_base("Error loading your profile.", "Please contact customer support.", "");
      } else if(var0 == 25) {
         class139.setLoginResponseString_base("Unexpected loginserver response.", "Please try using a different world.", "");
      } else if(var0 == 26) {
         class139.setLoginResponseString_base("This computers address has been blocked", "as it was used to break our rules.", "");
      } else if(var0 == 27) {
         class139.setLoginResponseString_base("", "Service unavailable.", "");
      } else if(var0 == 31) {
         class139.setLoginResponseString_base("Your account has not been verified", "please check your email and", "complete the verification process.");
      } else if(var0 == 32) {
         class129.method3086_base(2);
      } else if(var0 == 37) {
         class139.setLoginResponseString_base("Your account is currently inaccessible.", "Please try again in a few minutes.", "");
      } else if(var0 == 38) {
         class139.setLoginResponseString_base("You need to vote to play!", "Visit ashps.net and vote,", "and then come back here!");
      } else if(var0 == 55) {
         UserComparator7.method2966_base(8);
      } else if(var0 == 58) {
         class139.setLoginResponseString_base("Only email addresses are valid!", "Please use an email to log in...", "");
      } else {
         if(var0 == 56) {
            class139.setLoginResponseString_base("Enter the 6-digit code generated by your", "authenticator app.", "");
            WorldMapSection2.updateGameState_base(11);
            return;
         }

         if(var0 == 57) {
            class139.setLoginResponseString_base("The code you entered was incorrect.", "Please try again.", "");
            WorldMapSection2.updateGameState_base(11);
            return;
         }

         if(var0 == 61) {
            class139.setLoginResponseString_base("", "Please enter your date of birth (DD/MM/YYYY)", "");
            UserComparator7.method2966_base(7);
         } else {
            if(var0 == 62) {
               WorldMapSection2.updateGameState_base(10);
               UserComparator7.method2966_base(9);
               class139.setLoginResponseString_base("Login attempt timed out.", "Please try again.", "");
               return;
            }

            if(var0 == 63) {
               WorldMapSection2.updateGameState_base(10);
               UserComparator7.method2966_base(9);
               class139.setLoginResponseString_base("You were signed out.", "Please sign in again.", "");
               return;
            }

            if(var0 == 65 || var0 == 67) {
               WorldMapSection2.updateGameState_base(10);
               UserComparator7.method2966_base(9);
               class139.setLoginResponseString_base("Failed to login.", "Please try again.", "");
               return;
            }

            if(var0 == 71) {
               WorldMapSection2.updateGameState_base(10);
               UserComparator7.method2966_base(7);
               class139.setLoginResponseString_base("There was a problem updating your DOB.", "Please try again later. If the problem ", "persists, please contact Jagex Support.");
            } else if(var0 == 73) {
               WorldMapSection2.updateGameState_base(10);
               UserComparator7.method2966_base(6);
               class139.setLoginResponseString_base("Your date of birth information is waiting", "to be reviewed by our staff.", "It will be processed shortly.");
            } else if(var0 == 72) {
               WorldMapSection2.updateGameState_base(10);
               UserComparator7.method2966_base(32);
            } else {
               class139.setLoginResponseString_base("Unexpected server response", "Please try using a different world.", "");
            }
         }
      }

      WorldMapSection2.updateGameState_base(10);
      int var4 = Login.loginIndex;
      boolean var5 = var1 != var4;
      if(!var5 && Client.field526.method9577_base()) {
         UserComparator7.method2966_base(9);
      }

   }
}
