package mapped;

import java.util.concurrent.Callable;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;

@ObfuscatedName("fd")
public class class130 implements Callable {
   @ObfuscatedName("du")
   @ObfuscatedSignature(
      descriptor = "[Lup;"
   )
   static IndexedSprite[] worldSelectFlagSprites;
   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "Lfm;"
   )
   final class131 field1520;
   @ObfuscatedName("ah")
   @ObfuscatedSignature(
      descriptor = "Lfa;"
   )
   final class132 field1523;
   @ObfuscatedName("ar")
   @ObfuscatedSignature(
      descriptor = "Lfq;"
   )
   final class133 field1521;
   @ObfuscatedName("ao")
   @ObfuscatedGetter(
      intValue = 107549985
   )
   final int field1519;
   // $FF: synthetic field
   @ObfuscatedSignature(
      descriptor = "Lfo;"
   )
   final class139 this$0;

   @ObfuscatedSignature(
      descriptor = "(Lfo;Lfm;Lfa;Lfq;I)V"
   )
   class130(class139 var1, class131 var2, class132 var3, class133 var4, int var5) {
      this.this$0 = var1;
      this.field1520 = var2;
      this.field1523 = var3;
      this.field1521 = var4;
      this.field1519 = var5;
   }

   public Object call() {
      this.field1520.method3117_base();
      class131[][] var1;
      if(this.field1523 == class132.field1550) {
         var1 = this.this$0.field1597;
      } else {
         var1 = this.this$0.field1596;
      }

      var1[this.field1519][this.field1521.method3140_base()] = this.field1520;
      return null;
   }

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(IIII)Luz;",
      garbageValue = "587580140"
   )
   static SpritePixels method3096(int var0, int var1, int var2) {
      DemotingHashTable var3 = WorldMapRegion.WorldMapRegion_cachedSprites;
      long var4 = (long)(var2 << 16 | var0 << 8 | var1);
      return (SpritePixels)var3.get_base(var4);
   }

   @ObfuscatedName("mt")
   @ObfuscatedSignature(
      descriptor = "(II)V",
      garbageValue = "900613719"
   )
   static final void method3095_base(int var0) {
      if(HealthBarDefinition.widgetDefinition.loadInterface_base(var0)) {
         Widget[] var1 = HealthBarDefinition.widgetDefinition.Widget_interfaceComponents[var0];

         for(int var2 = 0; var2 < var1.length; ++var2) {
            Widget var3 = var1[var2];
            if(var3 != null) {
               var3.modelFrame = 0;
               var3.modelFrameCycle = 0;
            }
         }

      }
   }
}
