package mapped;

import java.util.Comparator;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.api.RSGrandExchangeOfferTotalQuantityComparator;

@ObfuscatedName("oq")
final class GrandExchangeOfferTotalQuantityComparator implements Comparator, RSGrandExchangeOfferTotalQuantityComparator {
   @ObfuscatedName("jl")
   @ObfuscatedSignature(
      descriptor = "Lpf;"
   )
   static Font fontBold12;

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(Log;Log;I)I",
      garbageValue = "-2047796467"
   )
   int method7083(GrandExchangeEvent var1, GrandExchangeEvent var2) {
      return var1.grandExchangeOffer.totalQuantity < var2.grandExchangeOffer.totalQuantity?-1:(var2.grandExchangeOffer.totalQuantity == var1.grandExchangeOffer.totalQuantity?0:1);
   }

   public boolean equals(Object var1) {
      return super.equals(var1);
   }

   public int compare(Object var1, Object var2) {
      return this.method7083((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
   }

   @ObfuscatedName("am")
   @ObfuscatedSignature(
      descriptor = "(Lnn;B)I",
      garbageValue = "0"
   )
   static int method7082(Widget var0) {
      if(var0.type != 11) {
         Interpreter.Interpreter_stringStack[class127.Interpreter_stringStackSize - 1] = "";
         return 1;
      } else {
         String var1 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize];
         Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var0.method6765_base(var1);
         return 1;
      }
   }

   @ObfuscatedName("lm")
   @ObfuscatedSignature(
      descriptor = "(Ljava/lang/String;Ljava/lang/String;IIIIIZS)V",
      garbageValue = "14887"
   )
   static final void insertMenuItem_base(String var0, String var1, int var2, int var3, int var4, int var5, int var6, boolean var7) {
      if(!Client.isMenuOpen) {
         if(Client.menuOptionsCount < 500) {
            Client.menuActions[Client.menuOptionsCount] = var0;
            Client.menuTargets[Client.menuOptionsCount] = var1;
            Client.menuOpcodes[Client.menuOptionsCount] = var2;
            Client.menuIdentifiers[Client.menuOptionsCount] = var3;
            Client.menuArguments1[Client.menuOptionsCount] = var4;
            Client.menuArguments2[Client.menuOptionsCount] = var5;
            Client.menuItemIds[Client.menuOptionsCount] = var6;
            Client.menuShiftClick[Client.menuOptionsCount] = var7;
            ++Client.menuOptionsCount;
            Client.onMenuOptionsChanged(-1);
         }

      }
   }
}
