package mapped;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.cert.Certificate;
import javax.net.ssl.HandshakeCompletedListener;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import org.bouncycastle.crypto.tls.TlsClientProtocol;

@ObfuscatedName("ax")
class class12 extends SSLSocket {
   @ObfuscatedName("vq")
   @ObfuscatedSignature(
      descriptor = "Lcj;"
   )
   public static FriendSystem friendSystem;
   @ObfuscatedName("kf")
   @ObfuscatedSignature(
      descriptor = "[Luz;"
   )
   static SpritePixels[] mapDotSprites;
   @ObfuscatedName("ln")
   @ObfuscatedGetter(
      intValue = 933165657
   )
   static int field56;
   @ObfuscatedName("at")
   Certificate[] field52;
   // $FF: synthetic field
   @ObfuscatedSignature(
      descriptor = "Lak;"
   )
   final class15 this$0;
   // $FF: synthetic field
   final TlsClientProtocol val$tlsClientProtocol;
   // $FF: synthetic field
   final String val$host;

   @ObfuscatedSignature(
      descriptor = "(Lak;Lorg/bouncycastle/crypto/tls/TlsClientProtocol;Ljava/lang/String;)V"
   )
   class12(class15 var1, TlsClientProtocol var2, String var3) {
      this.this$0 = var1;
      this.val$tlsClientProtocol = var2;
      this.val$host = var3;
   }

   public InputStream getInputStream() throws IOException {
      return this.val$tlsClientProtocol.getInputStream();
   }

   public boolean getEnableSessionCreation() {
      return false;
   }

   public String[] getEnabledCipherSuites() {
      return null;
   }

   public String[] getEnabledProtocols() {
      return null;
   }

   public boolean getNeedClientAuth() {
      return false;
   }

   public SSLSession getSession() {
      return new class17(this);
   }

   public String[] getSupportedProtocols() {
      return null;
   }

   public boolean getUseClientMode() {
      return false;
   }

   public void removeHandshakeCompletedListener(HandshakeCompletedListener var1) {
   }

   public void setEnableSessionCreation(boolean var1) {
   }

   public void setEnabledCipherSuites(String[] var1) {
   }

   public void setEnabledProtocols(String[] var1) {
   }

   public void setNeedClientAuth(boolean var1) {
   }

   public void setUseClientMode(boolean var1) {
   }

   public void setWantClientAuth(boolean var1) {
   }

   public void startHandshake() throws IOException {
      this.val$tlsClientProtocol.connect(new class13(this));
   }

   public void addHandshakeCompletedListener(HandshakeCompletedListener var1) {
   }

   public synchronized void close() throws IOException {
      this.val$tlsClientProtocol.close();
   }

   public OutputStream getOutputStream() throws IOException {
      return this.val$tlsClientProtocol.getOutputStream();
   }

   public String[] getSupportedCipherSuites() {
      return null;
   }

   public boolean getWantClientAuth() {
      return false;
   }

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "([Loj;II)Loj;",
      garbageValue = "-948387119"
   )
   public static MouseWheel method170(MouseWheel[] var0, int var1) {
      MouseWheel[] var2 = var0;

      for(int var3 = 0; var3 < var2.length; ++var3) {
         MouseWheel var4 = var2[var3];
         if(var1 == var4.rsOrdinal_base()) {
            return var4;
         }
      }

      return null;
   }

   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "(I)[Llu;",
      garbageValue = "915557708"
   )
   public static ServerPacket[] method168() {
      return new ServerPacket[]{ServerPacket.NPC_INFO_LARGE, ServerPacket.CAM_LOOKAT, ServerPacket.PLAYER_INFO, ServerPacket.IF_SETSCROLLPOS, ServerPacket.VARP_LARGE, ServerPacket.MAP_PROJANIM, ServerPacket.IF_MOVESUB, ServerPacket.MAP_ANIM, ServerPacket.CAM_SMOOTH_RESET, ServerPacket.IF_SETANGLE, ServerPacket.IF_SETTEXT, ServerPacket.NPC_HEADICON_SPECIFIC, ServerPacket.LOC_DEL, ServerPacket.RUNCLIENTSCRIPT, ServerPacket.UPDATE_REBOOT_TIMER, ServerPacket.NPC_ANIM_SPECIFIC, ServerPacket.HEATMAP_TOGGLE, ServerPacket.MESSAGE_FRIENDCHANNEL, ServerPacket.CHAT_FILTER_SETTINGS, ServerPacket.IF_SETPLAYERHEAD, ServerPacket.IF_SETPLAYERMODEL_OBJ, ServerPacket.PLAYER_ANIM_SPECIFIC, ServerPacket.PROJANIM_SPECIFIC_OLD, ServerPacket.CAM_MOVETO_EASED_CIRCULAR, ServerPacket.MESSAGE_PRIVATE_ECHO, ServerPacket.IF_SETPLAYERMODEL_SELF, ServerPacket.IF_INITIALSTATE, ServerPacket.VARP_SMALL, ServerPacket.IF_SETANIM, ServerPacket.HINT_ARROW, ServerPacket.CHAT_FILTER_SETTINGS_PRIVATECHAT, ServerPacket.UPDATE_STOCKMARKET_SLOT, ServerPacket.field3280, ServerPacket.IF_SETNPCHEAD_ACTIVE, ServerPacket.IF_CLOSESUB, ServerPacket.MESSAGE_CLANCHANNEL_SYSTEM, ServerPacket.MIDI_JINGLE, ServerPacket.OBJ_DEL, ServerPacket.UPDATE_INV_PARTIAL, ServerPacket.OBJ_ADD, ServerPacket.OBJ_OPFILTER, ServerPacket.IF_SETMODEL, ServerPacket.MINIMAP_TOGGLE, ServerPacket.LOC_MERGEPLAYER, ServerPacket.CAM_RESET, ServerPacket.CAM_MOVETO_EASED, ServerPacket.SOUND_AREA, ServerPacket.IF_OPENSUB, ServerPacket.IF_SETPOSITION, ServerPacket.UPDATE_INV_FULL, ServerPacket.IF_SETROTATESPEED, ServerPacket.IF_CLEARINV, ServerPacket.LOC_ANIM, ServerPacket.LOC_ADD_CHANGE, ServerPacket.field3302, ServerPacket.CAM_LOOKAT_EASED_ANGLE_RELATIVE, ServerPacket.RESET_ANIMS, ServerPacket.CLANCHANNEL_FULL, ServerPacket.UPDATE_STAT_OLD, ServerPacket.VARP_SYNC, ServerPacket.MESSAGE_GAME, ServerPacket.VARP_RESET, ServerPacket.LOGOUT_WITHREASON, ServerPacket.UPDATE_FRIENDLIST, ServerPacket.SEND_PING, ServerPacket.CLANSETTINGS_FULL, ServerPacket.IF_SETHIDE, ServerPacket.CAM_SHAKE, ServerPacket.MIDI_SONG_WITHSECONDARY, ServerPacket.CAM_LOOKAT_EASED_COORD, ServerPacket.CAM_MOVETO, ServerPacket.VARCLAN, ServerPacket.MESSAGE_PRIVATE, ServerPacket.UPDATE_SITESETTINGS, ServerPacket.CLANCHANNEL_DELTA, ServerPacket.MIDI_SONG_STOP, ServerPacket.UPDATE_UID192, ServerPacket.MAP_PROJANIM_OLD, ServerPacket.UPDATE_ZONE_FULL_FOLLOWS, ServerPacket.MIDI_SONG_OLD, ServerPacket.CLANSETTINGS_DELTA, ServerPacket.NPC_SPOTANIM_SPECIFIC, ServerPacket.IF_SETPLAYERMODEL_BODYTYPE, ServerPacket.UPDATE_FRIENDCHAT_CHANNEL_FULL_V1, ServerPacket.UPDATE_TRADINGPOST, ServerPacket.PROJANIM_SPECIFIC, ServerPacket.UPDATE_ZONE_PARTIAL_ENCLOSED, ServerPacket.UPDATE_ZONE_PARTIAL_FOLLOWS, ServerPacket.VARCLAN_ENABLE, ServerPacket.PLAYER_SPOTANIM_SPECIFIC, ServerPacket.UPDATE_INV_STOPTRANSMIT, ServerPacket.FRIENDLIST_LOADED, ServerPacket.MAP_PROJANIM_OLD_OLD, ServerPacket.REBUILD_NORMAL, ServerPacket.OBJ_COUNT, ServerPacket.CAM_UNKNOWN, ServerPacket.IF_SETPLAYERMODEL_BASECOLOUR, ServerPacket.SYNTH_SOUND, ServerPacket.LOGOUT_TRANSFER, ServerPacket.LOGOUT, ServerPacket.CAM_MODE, ServerPacket.MAP_ANIM_SPECIFIC, ServerPacket.IF_SETOBJECT, ServerPacket.TRIGGER_ONDIALOGABORT, ServerPacket.SET_PLAYER_OP, ServerPacket.MESSAGE_CLANCHANNEL, ServerPacket.CAM_LOOKAT_EASED_ANGLE_ABSOLUTE, ServerPacket.NPC_INFO_SMALL, ServerPacket.IF_SETNPCHEAD, ServerPacket.UPDATE_IGNORELIST, ServerPacket.UPDATE_FRIENDCHAT_CHANNEL_SINGLEUSER, ServerPacket.IF_SETEVENTS, ServerPacket.URL_OPEN, ServerPacket.MIDI_SONG, ServerPacket.LOC_ANIM_SPECIFIC, ServerPacket.IF_OPENTOP, ServerPacket.SERVER_TICK_END, ServerPacket.REBUILD_NORMAL_OLD, ServerPacket.UPDATE_RUNENERGY, ServerPacket.UPDATE_RUNWEIGHT, ServerPacket.MIDI_SWAP, ServerPacket.REBUILD_REGION, ServerPacket.IF_SETCOLOUR, ServerPacket.UPDATE_FRIENDCHAT_CHANNEL_FULL_V2, ServerPacket.SET_MAP_FLAG, ServerPacket.UPDATE_STAT, ServerPacket.REFLECTION_CHECKER};
   }

   @ObfuscatedName("ar")
   @ObfuscatedSignature(
      descriptor = "(IB)Z",
      garbageValue = "1"
   )
   public static boolean method169_base(int var0) {
      return (var0 >> 20 & 1) != 0;
   }

   @ObfuscatedName("al")
   @ObfuscatedSignature(
      descriptor = "(II)I",
      garbageValue = "-1907529408"
   )
   static int Messages_getLastChatID_base(int var0) {
      Message var1 = (Message)Messages.Messages_hashTable.get((long)var0);
      return var1 == null?-1:(var1.previousDual == Messages.Messages_queue.sentinel?-1:((Message)var1.previousDual).count);
   }

   @ObfuscatedName("aw")
   @ObfuscatedSignature(
      descriptor = "(Ljava/lang/String;IB)V",
      garbageValue = "12"
   )
   static final void method167_base(String var0, int var1) {
      PacketBufferNode var2 = class113.method2919(ClientPacket.FRIENDCHAT_SETRANK, Client.packetWriter.isaacCipher);
      var2.packetBuffer.writeByte_base(ClanChannel.stringCp1252NullTerminatedByteSize_base(var0) + 1);
      var2.packetBuffer.writeStringCp1252NullTerminated_base(var0);
      var2.packetBuffer.writeByteNeg_base(var1);
      Client.packetWriter.method2867(var2);
   }

   @ObfuscatedName("bw")
   @ObfuscatedSignature(
      descriptor = "(ILdt;ZI)I",
      garbageValue = "1724856740"
   )
   static int method131(int var0, Script var1, boolean var2) {
      if(var0 == 5000) {
         Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = Client.publicChatMode;
         return 1;
      } else if(var0 == 5001) {
         DbTableType.Interpreter_intStackSize -= 3;
         Client.publicChatMode = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize];
         PlayerCompositionColorTextureOverride.privateChatMode = WorldMapArea.method4580(Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize + 1]);
         if(PlayerCompositionColorTextureOverride.privateChatMode == null) {
            PlayerCompositionColorTextureOverride.privateChatMode = PrivateChatMode.field5280;
         }

         Client.tradeChatMode = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize + 2];
         PacketBufferNode var11 = class113.method2919(ClientPacket.SET_CHATFILTERSETTINGS, Client.packetWriter.isaacCipher);
         var11.packetBuffer.writeByte_base(Client.publicChatMode);
         var11.packetBuffer.writeByte_base(PlayerCompositionColorTextureOverride.privateChatMode.field5279);
         var11.packetBuffer.writeByte_base(Client.tradeChatMode);
         Client.packetWriter.method2867(var11);
         return 1;
      } else {
         String var3;
         int var4;
         int var5;
         PacketBufferNode var6;
         if(var0 == 5002) {
            var3 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize];
            DbTableType.Interpreter_intStackSize -= 2;
            var4 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize];
            var5 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize + 1];
            var6 = class113.method2919(ClientPacket.SEND_SNAPSHOT, Client.packetWriter.isaacCipher);
            var6.packetBuffer.writeByte_base(ClanChannel.stringCp1252NullTerminatedByteSize_base(var3) + 2);
            var6.packetBuffer.writeStringCp1252NullTerminated_base(var3);
            var6.packetBuffer.writeByte_base(var4 - 1);
            var6.packetBuffer.writeByte_base(var5);
            Client.packetWriter.method2867(var6);
            return 1;
         } else {
            int var7;
            Message var8;
            if(var0 == 5003) {
               DbTableType.Interpreter_intStackSize -= 2;
               var7 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize];
               var4 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize + 1];
               var8 = class14.method191(var7, var4);
               if(var8 != null) {
                  Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var8.count;
                  Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var8.cycle;
                  Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var8.sender != null?var8.sender:"";
                  Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var8.prefix != null?var8.prefix:"";
                  Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var8.text != null?var8.text:"";
                  Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var8.isFromFriend_base()?1:(var8.isFromIgnored_base()?2:0);
               } else {
                  Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = -1;
                  Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                  Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                  Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                  Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                  Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
               }

               return 1;
            } else {
               Message var9;
               if(var0 == 5004) {
                  var7 = Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize];
                  var9 = class31.method471(var7);
                  if(var9 != null) {
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var9.type;
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var9.cycle;
                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var9.sender != null?var9.sender:"";
                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var9.prefix != null?var9.prefix:"";
                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var9.text != null?var9.text:"";
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var9.isFromFriend_base()?1:(var9.isFromIgnored_base()?2:0);
                  } else {
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = -1;
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                  }

                  return 1;
               } else if(var0 == 5005) {
                  if(PlayerCompositionColorTextureOverride.privateChatMode == null) {
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = -1;
                  } else {
                     Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = PlayerCompositionColorTextureOverride.privateChatMode.field5279;
                  }

                  return 1;
               } else {
                  PacketBufferNode var12;
                  if(var0 == 5008) {
                     var3 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize];
                     var4 = Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize];
                     var12 = class544.method9920(var4, var3, class85.clientLanguage, -1);
                     Client.packetWriter.method2867(var12);
                     return 1;
                  } else if(var0 == 5009) {
                     class127.Interpreter_stringStackSize -= 2;
                     var3 = Interpreter.Interpreter_stringStack[class127.Interpreter_stringStackSize];
                     String var13 = Interpreter.Interpreter_stringStack[class127.Interpreter_stringStackSize + 1];
                     var12 = class113.method2919(ClientPacket.MESSAGE_PRIVATE, Client.packetWriter.isaacCipher);
                     var12.packetBuffer.writeShort_base(0);
                     int var10 = var12.packetBuffer.offset;
                     var12.packetBuffer.writeStringCp1252NullTerminated_base(var3);
                     PcmPlayer.method847(var12.packetBuffer, var13);
                     var12.packetBuffer.writeLengthShort_base(var12.packetBuffer.offset - var10);
                     Client.packetWriter.method2867(var12);
                     return 1;
                  } else if(var0 == 5010) {
                     var3 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize];
                     DbTableType.Interpreter_intStackSize -= 2;
                     var4 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize];
                     var5 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize + 1];
                     var6 = class544.method9920(var4, var3, class85.clientLanguage, var5);
                     Client.packetWriter.method2867(var6);
                     return 1;
                  } else if(var0 != 5015) {
                     if(var0 == 5016) {
                        Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = Client.tradeChatMode;
                        return 1;
                     } else if(var0 == 5017) {
                        var7 = Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize];
                        Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = Message.Messages_getHistorySize_base(var7);
                        return 1;
                     } else if(var0 == 5018) {
                        var7 = Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize];
                        Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = Messages_getLastChatID_base(var7);
                        return 1;
                     } else if(var0 == 5019) {
                        var7 = Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize];
                        Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = class92.method2446_base(var7);
                        return 1;
                     } else if(var0 == 5020) {
                        var3 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize];
                        class9.doCheat_base(var3);
                        return 1;
                     } else if(var0 == 5021) {
                        Client.field694 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize].toLowerCase().trim();
                        return 1;
                     } else if(var0 == 5022) {
                        Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = Client.field694;
                        return 1;
                     } else if(var0 == 5023) {
                        var3 = Interpreter.Interpreter_stringStack[--class127.Interpreter_stringStackSize];
                        System.out.println(var3);
                        return 1;
                     } else if(var0 == 5030) {
                        DbTableType.Interpreter_intStackSize -= 2;
                        var7 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize];
                        var4 = Interpreter.Interpreter_intStack[DbTableType.Interpreter_intStackSize + 1];
                        var8 = class14.method191(var7, var4);
                        if(var8 != null) {
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var8.count;
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var8.cycle;
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var8.sender != null?var8.sender:"";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var8.prefix != null?var8.prefix:"";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var8.text != null?var8.text:"";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var8.isFromFriend_base()?1:(var8.isFromIgnored_base()?2:0);
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                        } else {
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = -1;
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                        }

                        return 1;
                     } else if(var0 == 5031) {
                        var7 = Interpreter.Interpreter_intStack[--DbTableType.Interpreter_intStackSize];
                        var9 = class31.method471(var7);
                        if(var9 != null) {
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var9.type;
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var9.cycle;
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var9.sender != null?var9.sender:"";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var9.prefix != null?var9.prefix:"";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var9.text != null?var9.text:"";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = var9.isFromFriend_base()?1:(var9.isFromIgnored_base()?2:0);
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                        } else {
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = -1;
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                           Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = "";
                           Interpreter.Interpreter_intStack[++DbTableType.Interpreter_intStackSize - 1] = 0;
                        }

                        return 1;
                     } else {
                        return 2;
                     }
                  } else {
                     if(class229.localPlayer != null && class229.localPlayer.username != null) {
                        var3 = class229.localPlayer.username.getName_base();
                     } else {
                        var3 = "";
                     }

                     Interpreter.Interpreter_stringStack[++class127.Interpreter_stringStackSize - 1] = var3;
                     return 1;
                  }
               }
            }
         }
      }
   }

   @ObfuscatedName("cg")
   @ObfuscatedSignature(
      descriptor = "(ILdt;ZB)I",
      garbageValue = "11"
   )
   static int method142(int var0, Script var1, boolean var2) {
      return 2;
   }
}
