package com.l7tech.server.policy.assertion.xmlsec;

import com.l7tech.gateway.common.audit.AssertionMessages;
import com.l7tech.message.Message;
import com.l7tech.policy.assertion.AssertionStatus;
import com.l7tech.policy.assertion.xmlsec.RequireWssSignedElement;
import com.l7tech.policy.variable.VariableMetadata;
import com.l7tech.policy.variable.VariableNotSettableException;
import com.l7tech.security.token.ParsedElement;
import com.l7tech.security.token.SamlSecurityToken;
import com.l7tech.security.token.SignedElement;
import com.l7tech.security.token.SigningSecurityToken;
import com.l7tech.security.token.X509SigningSecurityToken;
import com.l7tech.security.xml.processor.ProcessorResult;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.util.WSSecurityProcessorUtils;
import com.l7tech.util.ConfigFactory;
import java.util.Collection;
import java.util.logging.Level;
import org.springframework.context.ApplicationContext;

public class ServerRequireWssSignedElement extends ServerRequireWssOperation<RequireWssSignedElement> {
   private static final boolean h;
   private static final String[] j;

   public ServerRequireWssSignedElement(RequireWssSignedElement var1, ApplicationContext var2) {
      super(var1, var2);
   }

   @Override
   protected String getPastTenseOperationName() {
      return j[4];
   }

   @Override
   protected AssertionStatus onCheckRequestSuccess(PolicyEnforcementContext param1, Message param2, String param3) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 2
      // 01: invokevirtual com/l7tech/message/Message.getSecurityKnob ()Lcom/l7tech/message/SecurityKnob;
      // 04: invokeinterface com/l7tech/message/SecurityKnob.getProcessorResult ()Lcom/l7tech/security/xml/processor/ProcessorResult; 1
      // 09: astore 4
      // 0b: aload 4
      // 0d: ifnull 47
      // 10: aload 0
      // 11: aload 1
      // 12: aload 2
      // 13: aload 4
      // 15: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/server/message/PolicyEnforcementContext;Lcom/l7tech/message/Message;Lcom/l7tech/security/xml/processor/ProcessorResult;)V
      // 18: aload 0
      // 19: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.isRequest ()Z
      // 1c: ifeq 47
      // 1f: goto 26
      // 22: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 25: athrow
      // 26: aload 1
      // 27: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.isResponseWss11 ()Z 1
      // 2c: ifeq 47
      // 2f: goto 36
      // 32: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 35: athrow
      // 36: aload 2
      // 37: invokevirtual com/l7tech/message/Message.getSecurityKnob ()Lcom/l7tech/message/SecurityKnob;
      // 3a: bipush 1
      // 3b: invokeinterface com/l7tech/message/SecurityKnob.setNeedsSignatureConfirmations (Z)V 2
      // 40: goto 47
      // 43: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 46: athrow
      // 47: getstatic com/l7tech/policy/assertion/AssertionStatus.NONE Lcom/l7tech/policy/assertion/AssertionStatus;
      // 4a: areturn
      // try (4 -> 14): 15 com/l7tech/policy/variable/VariableNotSettableException
      // try (6 -> 20): 21 com/l7tech/policy/variable/VariableNotSettableException
      // try (17 -> 27): 28 com/l7tech/policy/variable/VariableNotSettableException
   }

   @Override
   protected ParsedElement[] getElementsFoundByProcessor(ProcessorResult var1) {
      try {
         if (var1 == null) {
            return new ParsedElement[0];
         }
      } catch (VariableNotSettableException var2) {
         throw a(var2);
      }

      return var1.getElementsThatWereSigned();
   }

   @Override
   protected boolean elementsFoundByProcessorAreValid(PolicyEnforcementContext param1, Message param2, ProcessorResult param3, ParsedElement[] param4) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: bipush 1
      // 01: istore 5
      // 03: aload 2
      // 04: getstatic com/l7tech/message/MessageRole.REQUEST Lcom/l7tech/message/MessageRole;
      // 07: invokevirtual com/l7tech/message/Message.getRelated (Lcom/l7tech/message/MessageRole;)Lcom/l7tech/message/Message;
      // 0a: astore 6
      // 0c: aload 4
      // 0e: arraylength
      // 0f: ifle a1
      // 12: new com/l7tech/policy/assertion/IdentityTarget
      // 15: dup
      // 16: invokespecial com/l7tech/policy/assertion/IdentityTarget.<init> ()V
      // 19: new com/l7tech/policy/assertion/IdentityTarget
      // 1c: dup
      // 1d: aload 0
      // 1e: getfield com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.assertion Lcom/l7tech/policy/assertion/Assertion;
      // 21: checkcast com/l7tech/policy/assertion/xmlsec/RequireWssSignedElement
      // 24: invokevirtual com/l7tech/policy/assertion/xmlsec/RequireWssSignedElement.getIdentityTarget ()Lcom/l7tech/policy/assertion/IdentityTarget;
      // 27: invokespecial com/l7tech/policy/assertion/IdentityTarget.<init> (Lcom/l7tech/policy/assertion/IdentityTarget;)V
      // 2a: invokevirtual com/l7tech/policy/assertion/IdentityTarget.equals (Ljava/lang/Object;)Z
      // 2d: ifeq a1
      // 30: goto 37
      // 33: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 36: athrow
      // 37: aload 0
      // 38: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.isRequest ()Z
      // 3b: ifne 4f
      // 3e: aload 0
      // 3f: aload 2
      // 40: aload 3
      // 41: aconst_null
      // 42: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/message/Message;Lcom/l7tech/security/xml/processor/ProcessorResult;Ljava/util/Collection;)Z
      // 45: ifeq 9e
      // 48: goto 4f
      // 4b: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 4e: athrow
      // 4f: aload 1
      // 50: aload 2
      // 51: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getAuthenticationContext (Lcom/l7tech/message/Message;)Lcom/l7tech/server/message/AuthenticationContext; 2
      // 56: aload 3
      // 57: bipush 0
      // 58: anewarray 310
      // 5b: getstatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.h Z
      // 5e: aload 6
      // 60: aload 6
      // 62: ifnonnull 74
      // 65: goto 6c
      // 68: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 6b: athrow
      // 6c: aconst_null
      // 6d: goto 7c
      // 70: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 73: athrow
      // 74: aload 1
      // 75: aload 6
      // 77: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getAuthenticationContext (Lcom/l7tech/message/Message;)Lcom/l7tech/server/message/AuthenticationContext; 2
      // 7c: aload 0
      // 7d: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.getAudit ()Lcom/l7tech/gateway/common/audit/Audit;
      // 80: invokestatic com/l7tech/server/util/WSSecurityProcessorUtils.isValidSingleSigner (Lcom/l7tech/server/message/AuthenticationContext;Lcom/l7tech/security/xml/processor/ProcessorResult;[Lcom/l7tech/security/token/ParsedElement;ZLcom/l7tech/message/Message;Lcom/l7tech/server/message/AuthenticationContext;Lcom/l7tech/gateway/common/audit/Audit;)Z
      // 83: ifeq 9e
      // 86: aload 0
      // 87: aload 4
      // 89: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a ([Lcom/l7tech/security/token/ParsedElement;)Z
      // 8c: ifeq 9e
      // 8f: goto 96
      // 92: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 95: athrow
      // 96: bipush 1
      // 97: goto 9f
      // 9a: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 9d: athrow
      // 9e: bipush 0
      // 9f: istore 5
      // a1: iload 5
      // a3: ireturn
      // try (6 -> 21): 22 com/l7tech/policy/variable/VariableNotSettableException
      // try (24 -> 33): 34 com/l7tech/policy/variable/VariableNotSettableException
      // try (27 -> 46): 47 com/l7tech/policy/variable/VariableNotSettableException
      // try (36 -> 51): 51 com/l7tech/policy/variable/VariableNotSettableException
      // try (56 -> 64): 65 com/l7tech/policy/variable/VariableNotSettableException
      // try (60 -> 69): 69 com/l7tech/policy/variable/VariableNotSettableException
   }

   @Override
   protected boolean elementsFoundForAssertionAreValid(PolicyEnforcementContext param1, Message param2, ProcessorResult param3, ParsedElement[] param4) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: bipush 1
      // 01: istore 5
      // 03: new com/l7tech/policy/assertion/IdentityTarget
      // 06: dup
      // 07: invokespecial com/l7tech/policy/assertion/IdentityTarget.<init> ()V
      // 0a: new com/l7tech/policy/assertion/IdentityTarget
      // 0d: dup
      // 0e: aload 0
      // 0f: getfield com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.assertion Lcom/l7tech/policy/assertion/Assertion;
      // 12: checkcast com/l7tech/policy/assertion/xmlsec/RequireWssSignedElement
      // 15: invokevirtual com/l7tech/policy/assertion/xmlsec/RequireWssSignedElement.getIdentityTarget ()Lcom/l7tech/policy/assertion/IdentityTarget;
      // 18: invokespecial com/l7tech/policy/assertion/IdentityTarget.<init> (Lcom/l7tech/policy/assertion/IdentityTarget;)V
      // 1b: invokevirtual com/l7tech/policy/assertion/IdentityTarget.equals (Ljava/lang/Object;)Z
      // 1e: ifne 8e
      // 21: aload 4
      // 23: invokestatic java/util/Arrays.asList ([Ljava/lang/Object;)Ljava/util/List;
      // 26: astore 6
      // 28: aload 0
      // 29: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.isRequest ()Z
      // 2c: ifne 41
      // 2f: aload 0
      // 30: aload 2
      // 31: aload 3
      // 32: aload 6
      // 34: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/message/Message;Lcom/l7tech/security/xml/processor/ProcessorResult;Ljava/util/Collection;)Z
      // 37: ifeq 8c
      // 3a: goto 41
      // 3d: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 40: athrow
      // 41: aload 1
      // 42: aload 2
      // 43: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getAuthenticationContext (Lcom/l7tech/message/Message;)Lcom/l7tech/server/message/AuthenticationContext; 2
      // 48: aload 0
      // 49: getfield com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.assertion Lcom/l7tech/policy/assertion/Assertion;
      // 4c: checkcast com/l7tech/policy/assertion/xmlsec/RequireWssSignedElement
      // 4f: invokevirtual com/l7tech/policy/assertion/xmlsec/RequireWssSignedElement.getIdentityTarget ()Lcom/l7tech/policy/assertion/IdentityTarget;
      // 52: aload 3
      // 53: aload 6
      // 55: aload 6
      // 57: invokeinterface java/util/Collection.size ()I 1
      // 5c: anewarray 310
      // 5f: invokeinterface java/util/Collection.toArray ([Ljava/lang/Object;)[Ljava/lang/Object; 2
      // 64: checkcast [Lcom/l7tech/security/token/ParsedElement;
      // 67: invokestatic com/l7tech/server/util/WSSecurityProcessorUtils.isValidSigningIdentity (Lcom/l7tech/server/message/AuthenticationContext;Lcom/l7tech/policy/assertion/IdentityTarget;Lcom/l7tech/security/xml/processor/ProcessorResult;[Lcom/l7tech/security/token/ParsedElement;)Z
      // 6a: ifeq 8c
      // 6d: goto 74
      // 70: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 73: athrow
      // 74: aload 0
      // 75: aload 4
      // 77: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a ([Lcom/l7tech/security/token/ParsedElement;)Z
      // 7a: ifeq 8c
      // 7d: goto 84
      // 80: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 83: athrow
      // 84: bipush 1
      // 85: goto 8d
      // 88: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 8b: athrow
      // 8c: bipush 0
      // 8d: ireturn
      // 8e: iload 5
      // 90: ireturn
      // try (17 -> 26): 27 com/l7tech/policy/variable/VariableNotSettableException
      // try (20 -> 45): 46 com/l7tech/policy/variable/VariableNotSettableException
      // try (29 -> 52): 53 com/l7tech/policy/variable/VariableNotSettableException
      // try (48 -> 57): 57 com/l7tech/policy/variable/VariableNotSettableException
   }

   private boolean a(ParsedElement[] var1) {
      for (ParsedElement var5 : var1) {
         if (var5 instanceof SignedElement) {
            for (String var9 : ((SignedElement)var5).getDigestAlgorithmIds()) {
               try {
                  if (!this.assertion.acceptsDigest(var9)) {
                     this.logger.log(Level.INFO, j[5] + var9);
                     return false;
                  }
               } catch (VariableNotSettableException var10) {
                  throw a(var10);
               }
            }
         }
      }

      return true;
   }

   @Override
   protected boolean isAllowIfEmpty() {
      return false;
   }

   private boolean a(Message param1, ProcessorResult param2, Collection<ParsedElement> param3) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 1
      // 01: invokevirtual com/l7tech/message/Message.getSecurityKnob ()Lcom/l7tech/message/SecurityKnob;
      // 04: aload 2
      // 05: aload 0
      // 06: invokevirtual com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.getAudit ()Lcom/l7tech/gateway/common/audit/Audit;
      // 09: invokestatic com/l7tech/server/util/WSSecurityProcessorUtils.processSignatureConfirmations (Lcom/l7tech/message/SecurityKnob;Lcom/l7tech/security/xml/processor/ProcessorResult;Lcom/l7tech/gateway/common/audit/Audit;)Lcom/l7tech/util/Pair;
      // 0c: astore 4
      // 0e: aload 3
      // 0f: ifnull 37
      // 12: aload 4
      // 14: invokevirtual com/l7tech/util/Pair.getValue ()Ljava/lang/Object;
      // 17: ifnull 37
      // 1a: goto 21
      // 1d: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 20: athrow
      // 21: aload 3
      // 22: aload 4
      // 24: invokevirtual com/l7tech/util/Pair.getValue ()Ljava/lang/Object;
      // 27: checkcast java/util/Collection
      // 2a: invokeinterface java/util/Collection.addAll (Ljava/util/Collection;)Z 2
      // 2f: pop
      // 30: goto 37
      // 33: invokestatic com/l7tech/server/policy/assertion/xmlsec/ServerRequireWssSignedElement.a (Lcom/l7tech/policy/variable/VariableNotSettableException;)Lcom/l7tech/policy/variable/VariableNotSettableException;
      // 36: athrow
      // 37: aload 4
      // 39: invokevirtual com/l7tech/util/Pair.getKey ()Ljava/lang/Object;
      // 3c: checkcast java/lang/Boolean
      // 3f: invokevirtual java/lang/Boolean.booleanValue ()Z
      // 42: ireturn
      // try (7 -> 12): 13 com/l7tech/policy/variable/VariableNotSettableException
      // try (9 -> 21): 22 com/l7tech/policy/variable/VariableNotSettableException
   }

   private String a(String var1) {
      return VariableMetadata.prefixName(this.assertion.getVariablePrefix(), var1);
   }

   private void a(PolicyEnforcementContext var1, Message var2, ProcessorResult var3) {
      try {
         if (this.assertion.getVariablePrefix() == null || this.assertion.getVariablePrefix().length() <= 0) {
            return;
         }
      } catch (VariableNotSettableException var9) {
         throw a(var9);
      }

      SigningSecurityToken var4 = WSSecurityProcessorUtils.getSigningSecurityTokenByIdentity(
         var1.getAuthenticationContext(var2), var3, this.assertion.getIdentityTarget()
      );
      if (var4 != null) {
         SignedElement[] var5 = var4.getSignedElements();

         try {
            if (var5.length > 0) {
               this.a(var1, RequireWssSignedElement.VAR_SIGNATURE_ELEMENT, var5[0].getSignatureElement());
            }
         } catch (VariableNotSettableException var8) {
            throw a(var8);
         }

         this.a(var1, RequireWssSignedElement.VAR_TOKEN_TYPE, var4.getType().getCategory());
         if (var4 instanceof SamlSecurityToken var6) {
            this.a(var1, RequireWssSignedElement.VAR_TOKEN_ELEMENT, var6.asElement());
            String[] var7 = j;
            this.a(var1, RequireWssSignedElement.VAR_TOKEN_ATTRIBUTES + var7[3], var6.getIssuerCertificate());
            this.a(var1, RequireWssSignedElement.VAR_TOKEN_ATTRIBUTES + var7[2], var6.getSubjectCertificate());
            this.a(var1, RequireWssSignedElement.VAR_TOKEN_ATTRIBUTES + var7[1], var6.getMessageSigningCertificate());
         } else if (var4 instanceof X509SigningSecurityToken var10) {
            this.a(var1, RequireWssSignedElement.VAR_TOKEN_ELEMENT, var10.asElement());
            this.a(var1, RequireWssSignedElement.VAR_TOKEN_ATTRIBUTES, var10.getMessageSigningCertificate());
         }
      }
   }

   private void a(PolicyEnforcementContext var1, String var2, Object var3) {
      try {
         var1.setVariable(this.a(var2), var3);
      } catch (VariableNotSettableException var5) {
         this.logAndAudit(AssertionMessages.VARIABLE_NOTSET, var5.getVariable());
      }
   }

   static {
      String[] var5 = new String[6];
      int var3 = 0;
      String var2 = "n)\u000b$D%$h%\u000e$[w\"{#\u0014$X}<d%\u001f$Zw!x/\u0014o{{7c/\bm|};h(%xMv5c2\u000fkD\u0014#5\u000fmF{>jh\u0005oZf9k/\u0005k\\w\u0014#5\u0013hBw3yh\u0005oZf9k/\u0005k\\w\u0013#/\u0015y]w\"#%\u0003x\\{6d%\u0007~M";
      int var4 = "n)\u000b$D%$h%\u000e$[w\"{#\u0014$X}<d%\u001f$Zw!x/\u0014o{{7c/\bm|};h(%xMv5c2\u000fkD\u0014#5\u000fmF{>jh\u0005oZf9k/\u0005k\\w\u0014#5\u0013hBw3yh\u0005oZf9k/\u0005k\\w\u0013#/\u0015y]w\"#%\u0003x\\{6d%\u0007~M"
         .length();
      char var1 = '6';
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 96;
         String var10001 = var2.substring(++var7, var7 + var1);
         byte var10002 = -1;

         while (true) {
            String var8 = d(var10000, c(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     j = var5;
                     h = ConfigFactory.getBooleanProperty(j[0], true);
                     return;
                  }

                  var1 = var2.charAt(var7);
                  break;
               default:
                  var5[var3++] = var8;
                  if ((var7 += var1) < var4) {
                     var1 = var2.charAt(var7);
                     continue label24;
                  }

                  var2 = "\u0011@n\u000b\"\u0019\u001f&@n\u00004\t\u001f\u0003En\n5\u0014K\nD)\u000b(\t\u001f\u0003Jj\u00007\tZ\u0006\u0013)";
                  var4 = "\u0011@n\u000b\"\u0019\u001f&@n\u00004\t\u001f\u0003En\n5\u0014K\nD)\u000b(\t\u001f\u0003Jj\u00007\tZ\u0006\u0013)".length();
                  var1 = 6;
                  var7 = -1;
            }

            var10000 = 15;
            var10001 = var2.substring(++var7, var7 + var1);
            var10002 = 0;
         }
      }
   }

   private static VariableNotSettableException a(VariableNotSettableException var0) {
      return var0;
   }

   private static char[] c(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 48);
      }

      return var10000;
   }

   private static String d(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 109;
            case 1 -> 38;
            case 2 -> 6;
            case 3 -> 106;
            case 4 -> 72;
            case 5 -> 114;
            default -> 48;
         });
      }

      return new String(var10001).intern();
   }
}
