package com.l7tech.external.assertions.gatewaygraphql.server.resolver.mutation;

import com.l7tech.external.assertions.gatewaygraphql.EntityTypeInfo;
import com.l7tech.external.assertions.gatewaygraphql.server.data.EntityMutationStatus;
import com.l7tech.external.assertions.gatewaygraphql.server.data.KeyDTO;
import com.l7tech.external.assertions.gatewaygraphql.server.error.NoMutationException;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.ResolverExecutionContext;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.finder.SsgKeyEntryFinder;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.finder.SsgKeyStoreFinder;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.helper.SsgKeyUsageHelper;
import com.l7tech.external.assertions.gatewaygraphql.server.resolver.transformer.SsgKeyTransformer;
import com.l7tech.external.assertions.gatewaygraphql.server.util.Util;
import com.l7tech.gateway.common.security.keystore.SsgKeyEntry;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.ObjectModelException;
import com.l7tech.objectmodel.ObjectNotFoundException;
import com.l7tech.server.DefaultKey;
import com.l7tech.server.cluster.ClusterPropertyManager;
import com.l7tech.server.security.keystore.SsgKeyStore;
import com.l7tech.server.security.keystore.SsgKeyStoreManager;
import com.l7tech.util.ExceptionUtils;
import graphql.schema.DataFetchingEnvironment;
import java.security.KeyStoreException;
import java.util.List;
import java.util.concurrent.Future;
import java.util.logging.Logger;
import lombok.Generated;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;

public class SsgKeyMutationResolver extends EntityAwareGraphQLMutationResolver2<SsgKeyEntry, KeyDTO, KeyDTO.KeyInput, KeyDTO.KeyRefInput> {
   @Generated
   private static final Logger c;
   private final DefaultKey d;
   private final SsgKeyUsageHelper e;
   private final SsgKeyStoreManager f;
   private final SsgKeyStoreFinder g;
   private static final String[] h;

   public SsgKeyMutationResolver(PlatformTransactionManager var1, BeanFactory var2) {
      super(EntityTypeInfo.KEY, var1, new SsgKeyTransformer(var2));
      String[] var3 = h;
      this.d = (DefaultKey)var2.getBean(var3[4], DefaultKey.class);
      this.e = new SsgKeyUsageHelper((ClusterPropertyManager)var2.getBean(var3[8], ClusterPropertyManager.class));
      this.f = (SsgKeyStoreManager)var2.getBean(var3[7], SsgKeyStoreManager.class);
      this.g = new SsgKeyStoreFinder(this.f);
   }

   @Override
   protected Logger getLogger() {
      return c;
   }

   public KeyDTO.KeysPayload setKeys(List<KeyDTO.KeyInput> param1, DataFetchingEnvironment param2) {
      // $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: new com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload
      // 03: dup
      // 04: invokespecial com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload.<init> ()V
      // 07: astore 3
      // 08: aload 0
      // 09: aload 1
      // 0a: aload 2
      // 0b: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.transformNoDefEntityMappings (Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;)V
      // 0e: aload 1
      // 0f: invokeinterface java/util/List.isEmpty ()Z 1
      // 14: ifeq 1d
      // 17: aload 3
      // 18: areturn
      // 19: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1c: athrow
      // 1d: aload 0
      // 1e: aload 2
      // 1f: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.a (Lgraphql/schema/DataFetchingEnvironment;)Z
      // 22: istore 4
      // 24: aload 0
      // 25: aload 2
      // 26: invokeinterface graphql/schema/DataFetchingEnvironment.getGraphQlContext ()Lgraphql/GraphQLContext; 1
      // 2b: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.getResolverExecutionContext (Lgraphql/GraphQLContext;)Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;
      // 2e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext.getQueryOptionsSupplier ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/QueryOptionsSupplier;
      // 31: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/QueryOptionsSupplier.isRollbackMutationErrorsStrategyEnabled ()Z
      // 34: ifne 43
      // 37: iload 4
      // 39: ifeq 7c
      // 3c: goto 43
      // 3f: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 42: athrow
      // 43: aload 1
      // 44: invokedynamic accept ()Ljava/util/function/Consumer; bsm=java/lang/invoke/LambdaMetafactory.metafactory (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; args=[ (Ljava/lang/Object;)V, com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.lambda$setKeys$0 (Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput;)V, (Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput;)V ]
      // 49: invokeinterface java/util/List.forEach (Ljava/util/function/Consumer;)V 2
      // 4e: aload 0
      // 4f: aload 1
      // 50: aload 2
      // 51: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.a (Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;
      // 54: astore 5
      // 56: aload 1
      // 57: invokedynamic accept ()Ljava/util/function/Consumer; bsm=java/lang/invoke/LambdaMetafactory.metafactory (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; args=[ (Ljava/lang/Object;)V, com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.lambda$setKeys$1 (Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput;)V, (Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput;)V ]
      // 5c: invokeinterface java/util/List.forEach (Ljava/util/function/Consumer;)V 2
      // 61: aload 5
      // 63: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload.hasErrors ()Z
      // 66: ifne 75
      // 69: iload 4
      // 6b: ifeq 7c
      // 6e: goto 75
      // 71: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 74: athrow
      // 75: aload 5
      // 77: areturn
      // 78: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 7b: athrow
      // 7c: aload 0
      // 7d: aload 1
      // 7e: aload 2
      // 7f: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.a (Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;
      // 82: areturn
      // try (4 -> 13): 13 java/lang/IllegalArgumentException
      // try (19 -> 28): 29 java/lang/IllegalArgumentException
      // try (39 -> 47): 48 java/lang/IllegalArgumentException
      // try (45 -> 52): 52 java/lang/IllegalArgumentException
   }

   private KeyDTO.KeysPayload a(List<KeyDTO.KeyInput> var1, DataFetchingEnvironment var2) {
      KeyDTO.KeysPayload var3 = new KeyDTO.KeysPayload();
      SsgKeyEntryFinder var4 = new SsgKeyEntryFinder(this.f);
      return this.execute(var2, (var5, var6) -> {
         var5.setFinder(var4);
         var1.forEach(var5x -> {
            try {
               if (this.a(var2, var5, var6)) {
                  var3.add(null, EntityMutationStatus.NONE, h[5], this.toRawEntity(var5x), null);
                  return;
               }
            } catch (IllegalArgumentException var6x) {
               throw b(var6x);
            }

            this.doUpsertSilently(var5x, var5, var3, var6);
         });
         return var3;
      });
   }

   public KeyDTO.KeyPayload updateKey(KeyDTO.KeyRefInput var1, KeyDTO.KeyInput var2, DataFetchingEnvironment var3) {
      SsgKeyEntryFinder var4 = new SsgKeyEntryFinder(this.f);
      return this.execute(var3, (var5, var6) -> {
         KeyDTO.KeyPayload var7 = new KeyDTO.KeyPayload();
         var5.setFinder(var4);
         var2.setRefInput(var1);
         var2.setTest(this.a(var3));
         this.doUpdateSilently(var2, var5, var7, var6);
         return var7;
      });
   }

   public KeyDTO.KeysPayload deleteKeys(List<KeyDTO.KeyRefInput> param1, List<String> param2, DataFetchingEnvironment 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: new com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload
      // 03: dup
      // 04: invokespecial com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload.<init> ()V
      // 07: astore 4
      // 09: aload 1
      // 0a: ifnonnull 2a
      // 0d: aload 2
      // 0e: ifnonnull 2a
      // 11: goto 18
      // 14: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 17: athrow
      // 18: new java/lang/IllegalArgumentException
      // 1b: dup
      // 1c: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.h [Ljava/lang/String;
      // 1f: bipush 9
      // 21: aaload
      // 22: invokespecial java/lang/IllegalArgumentException.<init> (Ljava/lang/String;)V
      // 25: athrow
      // 26: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 29: athrow
      // 2a: aload 1
      // 2b: ifnull 45
      // 2e: aload 0
      // 2f: aload 3
      // 30: aload 0
      // 31: aload 1
      // 32: aload 3
      // 33: aload 4
      // 35: invokedynamic doInTransaction (Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver;Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;)Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverTransactionCallback; bsm=java/lang/invoke/LambdaMetafactory.metafactory (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; args=[ (Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;Lorg/springframework/transaction/TransactionStatus;)Ljava/lang/Object;, com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.lambda$deleteKeys$6 (Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;Lorg/springframework/transaction/TransactionStatus;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;, (Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;Lorg/springframework/transaction/TransactionStatus;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload; ]
      // 3a: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.execute (Lgraphql/schema/DataFetchingEnvironment;Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverTransactionCallback;)Ljava/lang/Object;
      // 3d: checkcast com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload
      // 40: areturn
      // 41: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 44: athrow
      // 45: aload 0
      // 46: aload 3
      // 47: aload 0
      // 48: aload 2
      // 49: aload 3
      // 4a: aload 4
      // 4c: invokedynamic doInTransaction (Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver;Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;)Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverTransactionCallback; bsm=java/lang/invoke/LambdaMetafactory.metafactory (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; args=[ (Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;Lorg/springframework/transaction/TransactionStatus;)Ljava/lang/Object;, com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.lambda$deleteKeys$8 (Ljava/util/List;Lgraphql/schema/DataFetchingEnvironment;Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;Lorg/springframework/transaction/TransactionStatus;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload;, (Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;Lorg/springframework/transaction/TransactionStatus;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload; ]
      // 51: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.execute (Lgraphql/schema/DataFetchingEnvironment;Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverTransactionCallback;)Ljava/lang/Object;
      // 54: checkcast com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeysPayload
      // 57: areturn
      // try (4 -> 8): 9 java/lang/IllegalArgumentException
      // try (6 -> 18): 18 java/lang/IllegalArgumentException
      // try (20 -> 32): 32 java/lang/IllegalArgumentException
   }

   private boolean a(DataFetchingEnvironment param1, ResolverExecutionContext param2, TransactionStatus 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/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext.getQueryOptionsSupplier ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/QueryOptionsSupplier;
      // 04: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/QueryOptionsSupplier.isRollbackMutationErrorsStrategyEnabled ()Z
      // 07: ifeq 36
      // 0a: aload 0
      // 0b: aload 1
      // 0c: invokeinterface graphql/schema/DataFetchingEnvironment.getGraphQlContext ()Lgraphql/GraphQLContext; 1
      // 11: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.isPrimaryTransactionSetForRollbackOnly (Lgraphql/GraphQLContext;)Z
      // 14: ifne 2e
      // 17: goto 1e
      // 1a: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1d: athrow
      // 1e: aload 3
      // 1f: invokeinterface org/springframework/transaction/TransactionStatus.isRollbackOnly ()Z 1
      // 24: ifeq 36
      // 27: goto 2e
      // 2a: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 2d: athrow
      // 2e: bipush 1
      // 2f: goto 37
      // 32: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 35: athrow
      // 36: bipush 0
      // 37: ireturn
      // try (0 -> 9): 10 java/lang/IllegalArgumentException
      // try (4 -> 15): 16 java/lang/IllegalArgumentException
      // try (12 -> 20): 20 java/lang/IllegalArgumentException
   }

   protected SsgKeyEntry findByGoid(Goid var1) {
      return null;
   }

   protected SsgKeyEntry findByRefInput(KeyDTO.KeyRefInput var1) throws FindException {
      try {
         return this.f.lookupKeyByKeyAlias(var1.getAlias(), Goid.parseGoid(var1.getKeystoreId()));
      } catch (KeyStoreException var3) {
         throw new IllegalStateException(h[14] + ExceptionUtils.getMessageWithCause(var3), var3);
      } catch (ObjectNotFoundException var4) {
         return null;
      }
   }

   protected SsgKeyEntry findByInput(KeyDTO.KeyInput param1) throws FindException {
      // $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/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.getRefInput ()Lcom/l7tech/external/assertions/gatewaygraphql/server/input/EntityRefInput;
      // 04: ifnull 15
      // 07: aload 1
      // 08: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.getRefInput ()Lcom/l7tech/external/assertions/gatewaygraphql/server/input/EntityRefInput;
      // 0b: checkcast com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyRefInput
      // 0e: goto 16
      // 11: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 14: athrow
      // 15: aconst_null
      // 16: astore 2
      // 17: aload 2
      // 18: ifnull 54
      // 1b: aload 2
      // 1c: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyRefInput.getAlias ()Ljava/lang/String;
      // 1f: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/util/Util.isNotEmpty (Ljava/lang/String;)Z
      // 22: ifeq 3b
      // 25: goto 2c
      // 28: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 2b: athrow
      // 2c: aload 1
      // 2d: aload 2
      // 2e: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyRefInput.getAlias ()Ljava/lang/String;
      // 31: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.setAlias (Ljava/lang/String;)V
      // 34: goto 3b
      // 37: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 3a: athrow
      // 3b: aload 2
      // 3c: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyRefInput.getKeystoreId ()Ljava/lang/String;
      // 3f: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/util/Util.isNotEmpty (Ljava/lang/String;)Z
      // 42: ifeq 54
      // 45: aload 1
      // 46: aload 2
      // 47: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyRefInput.getKeystoreId ()Ljava/lang/String;
      // 4a: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.setKeystoreId (Ljava/lang/String;)V
      // 4d: goto 54
      // 50: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 53: athrow
      // 54: aload 1
      // 55: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.getAlias ()Ljava/lang/String;
      // 58: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/util/Util.isNotEmpty (Ljava/lang/String;)Z
      // 5b: ifeq 80
      // 5e: aload 1
      // 5f: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.getKeystoreId ()Ljava/lang/String;
      // 62: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/util/Util.isEmpty (Ljava/lang/String;)Z
      // 65: ifeq 80
      // 68: goto 6f
      // 6b: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 6e: athrow
      // 6f: aload 1
      // 70: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.h [Ljava/lang/String;
      // 73: bipush 10
      // 75: aaload
      // 76: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.setKeystoreId (Ljava/lang/String;)V
      // 79: goto 80
      // 7c: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 7f: athrow
      // 80: aload 1
      // 81: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.getFinder ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/finder/SsgKeyEntryFinder;
      // 84: aload 1
      // 85: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/finder/SsgKeyEntryFinder.find (Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput;)Lcom/l7tech/gateway/common/security/keystore/SsgKeyEntry;
      // 88: areturn
      // try (0 -> 7): 7 com/l7tech/objectmodel/FindException
      // try (11 -> 17): 18 com/l7tech/objectmodel/FindException
      // try (13 -> 24): 25 com/l7tech/objectmodel/FindException
      // try (27 -> 35): 36 com/l7tech/objectmodel/FindException
      // try (38 -> 46): 47 com/l7tech/objectmodel/FindException
      // try (42 -> 54): 55 com/l7tech/objectmodel/FindException
   }

   protected KeyDTO.KeyInput toEntityInput(Object var1) {
      KeyDTO.KeyInput var2 = new KeyDTO.KeyInput();
      String[] var3 = Util.tokenizeKeyAlias(String.valueOf(var1));
      var2.setKeystoreId(var3[0]);
      var2.setAlias(var3[1]);
      return var2;
   }

   private KeyDTO.KeyInput a(KeyDTO.KeyRefInput var1) {
      KeyDTO.KeyInput var2 = new KeyDTO.KeyInput();
      var2.setRefInput(var1);
      var2.setAlias(var1.getAlias());
      var2.setKeystoreId(var1.getKeystoreId());
      return var2;
   }

   protected KeyDTO doCreate(KeyDTO.KeyInput var1) throws ObjectModelException {
      SsgKeyStore var2 = this.g.doFindMutableKeyStore(this.b(var1.getKeystoreId()));
      SsgKeyEntry var3 = this.toEntity(var1);

      try {
         this.setEntity(var1, var3);
         if (!var1.isTest()) {
            this.a(var1, var3, var2, false);
         }
      } catch (ObjectModelException var4) {
         throw b(var4);
      }

      return this.toEntityDTO(var3);
   }

   private Goid b(String var1) {
      try {
         if (Util.isNotEmpty(var1)) {
            return Goid.parseGoid(var1);
         }
      } catch (IllegalArgumentException var2) {
         throw b(var2);
      }

      return Goid.parseGoid(h[1]);
   }

   private List<KeyDTO.KeyUsageType> a(List<KeyDTO.KeyUsageType> param1) {
      // $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: new java/util/LinkedHashSet
      // 03: dup
      // 04: aload 1
      // 05: invokespecial java/util/LinkedHashSet.<init> (Ljava/util/Collection;)V
      // 08: astore 2
      // 09: aload 2
      // 0a: getstatic com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType.SSL Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType;
      // 0d: invokeinterface java/util/Set.contains (Ljava/lang/Object;)Z 2
      // 12: istore 3
      // 13: aload 2
      // 14: getstatic com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType.SERVER_SSL Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType;
      // 17: invokeinterface java/util/Set.contains (Ljava/lang/Object;)Z 2
      // 1c: istore 4
      // 1e: aload 2
      // 1f: getstatic com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType.CLIENT_SSL Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType;
      // 22: invokeinterface java/util/Set.contains (Ljava/lang/Object;)Z 2
      // 27: istore 5
      // 29: iload 3
      // 2a: ifeq 77
      // 2d: iload 5
      // 2f: ifeq 57
      // 32: goto 39
      // 35: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 38: athrow
      // 39: iload 4
      // 3b: ifne 57
      // 3e: goto 45
      // 41: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 44: athrow
      // 45: new java/lang/IllegalArgumentException
      // 48: dup
      // 49: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.h [Ljava/lang/String;
      // 4c: bipush 11
      // 4e: aaload
      // 4f: invokespecial java/lang/IllegalArgumentException.<init> (Ljava/lang/String;)V
      // 52: athrow
      // 53: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 56: athrow
      // 57: iload 4
      // 59: ifne 8d
      // 5c: aload 2
      // 5d: getstatic com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType.SERVER_SSL Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType;
      // 60: invokeinterface java/util/Set.add (Ljava/lang/Object;)Z 2
      // 65: pop
      // 66: aload 2
      // 67: getstatic com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType.CLIENT_SSL Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType;
      // 6a: invokeinterface java/util/Set.add (Ljava/lang/Object;)Z 2
      // 6f: pop
      // 70: goto 8d
      // 73: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 76: athrow
      // 77: iload 4
      // 79: ifeq 8d
      // 7c: aload 2
      // 7d: getstatic com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType.SSL Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyUsageType;
      // 80: invokeinterface java/util/Set.add (Ljava/lang/Object;)Z 2
      // 85: pop
      // 86: goto 8d
      // 89: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 8c: athrow
      // 8d: new java/util/ArrayList
      // 90: dup
      // 91: aload 2
      // 92: invokespecial java/util/ArrayList.<init> (Ljava/util/Collection;)V
      // 95: areturn
      // try (17 -> 21): 22 java/lang/IllegalArgumentException
      // try (19 -> 26): 27 java/lang/IllegalArgumentException
      // try (24 -> 36): 36 java/lang/IllegalArgumentException
      // try (38 -> 49): 49 java/lang/IllegalArgumentException
      // try (51 -> 57): 58 java/lang/IllegalArgumentException
   }

   protected KeyDTO doUpdate(KeyDTO.KeyInput var1, SsgKeyEntry var2) throws ObjectModelException {
      SsgKeyStore var3 = this.g.doFindMutableKeyStore(var2.getKeystoreId());

      try {
         if (var2.isRestrictedAccess()) {
            throw new NoMutationException(h[13]);
         }
      } catch (ObjectModelException var9) {
         throw b(var9);
      }

      List var4 = null;

      label49: {
         try {
            if (var1.isFullInput() || !Util.isNotEmpty(var1.getUsageTypes())) {
               break label49;
            }
         } catch (ObjectModelException var8) {
            throw b(var8);
         }

         var4 = SsgKeyUsageHelper.findDesignatedKeyUsages(var2, this.d);
         var4.addAll(var1.getUsageTypes());
      }

      label42: {
         try {
            if (var1.isFullInput()) {
               this.resetEntitySelectively(var1, var2);
               this.setEntity(var1, var2);
               break label42;
            }
         } catch (ObjectModelException var7) {
            throw b(var7);
         }

         this.resetEntityConditionally(var1, var2);
         this.setEntityConditionally(var1, var2);
      }

      try {
         if (!var1.isTest()) {
            this.a(var1, var2, var3, true);
         }
      } catch (ObjectModelException var6) {
         throw b(var6);
      }

      if (var4 != null) {
         List var5 = this.a(var4);
         return new KeyDTO(var2, null, var5);
      } else {
         return this.toEntityDTO(var2);
      }
   }

   protected KeyDTO doDelete(KeyDTO.KeyInput param1, SsgKeyEntry param2) throws ObjectModelException {
      // $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 0
      // 01: getfield com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.g Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/finder/SsgKeyStoreFinder;
      // 04: aload 2
      // 05: invokevirtual com/l7tech/gateway/common/security/keystore/SsgKeyEntry.getKeystoreId ()Lcom/l7tech/objectmodel/Goid;
      // 08: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/finder/SsgKeyStoreFinder.doFindMutableKeyStore (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/server/security/keystore/SsgKeyStore;
      // 0b: astore 3
      // 0c: aload 1
      // 0d: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.getExecutionContext ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext;
      // 10: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/ResolverExecutionContext.getQueryOptionsSupplier ()Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/QueryOptionsSupplier;
      // 13: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/QueryOptionsSupplier.isForceDeleteEnabled ()Z
      // 16: istore 4
      // 18: aload 2
      // 19: invokevirtual com/l7tech/gateway/common/security/keystore/SsgKeyEntry.isRestrictedAccess ()Z
      // 1c: ifeq 3d
      // 1f: iload 4
      // 21: ifne 3d
      // 24: goto 2b
      // 27: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 2a: athrow
      // 2b: new com/l7tech/external/assertions/gatewaygraphql/server/error/NoMutationException
      // 2e: dup
      // 2f: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.h [Ljava/lang/String;
      // 32: bipush 6
      // 34: aaload
      // 35: invokespecial com/l7tech/external/assertions/gatewaygraphql/server/error/NoMutationException.<init> (Ljava/lang/String;)V
      // 38: athrow
      // 39: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 3c: athrow
      // 3d: aload 0
      // 3e: getfield com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.e Lcom/l7tech/external/assertions/gatewaygraphql/server/resolver/helper/SsgKeyUsageHelper;
      // 41: aload 2
      // 42: aload 0
      // 43: getfield com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.d Lcom/l7tech/server/DefaultKey;
      // 46: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/helper/SsgKeyUsageHelper.hasAnyDesignatedKeyUsages (Lcom/l7tech/gateway/common/security/keystore/SsgKeyEntry;Lcom/l7tech/server/DefaultKey;)Z
      // 49: ifeq 69
      // 4c: iload 4
      // 4e: ifne 69
      // 51: goto 58
      // 54: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 57: athrow
      // 58: new com/l7tech/external/assertions/gatewaygraphql/server/error/NoMutationException
      // 5b: dup
      // 5c: getstatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.h [Ljava/lang/String;
      // 5f: bipush 3
      // 60: aaload
      // 61: invokespecial com/l7tech/external/assertions/gatewaygraphql/server/error/NoMutationException.<init> (Ljava/lang/String;)V
      // 64: athrow
      // 65: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 68: athrow
      // 69: aload 1
      // 6a: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput.isTest ()Z
      // 6d: ifne 7e
      // 70: aload 0
      // 71: aload 1
      // 72: aload 2
      // 73: aload 3
      // 74: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.a (Lcom/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO$KeyInput;Lcom/l7tech/gateway/common/security/keystore/SsgKeyEntry;Lcom/l7tech/server/security/keystore/SsgKeyStore;)V
      // 77: goto 7e
      // 7a: invokestatic com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.b (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 7d: athrow
      // 7e: aload 0
      // 7f: aload 2
      // 80: invokevirtual com/l7tech/external/assertions/gatewaygraphql/server/resolver/mutation/SsgKeyMutationResolver.toEntityDTO (Lcom/l7tech/objectmodel/Entity;)Lcom/l7tech/external/assertions/gatewaygraphql/server/data/EntityDTO;
      // 83: checkcast com/l7tech/external/assertions/gatewaygraphql/server/data/KeyDTO
      // 86: areturn
      // try (11 -> 16): 17 com/l7tech/objectmodel/ObjectModelException
      // try (14 -> 26): 26 com/l7tech/objectmodel/ObjectModelException
      // try (28 -> 37): 38 com/l7tech/objectmodel/ObjectModelException
      // try (35 -> 47): 47 com/l7tech/objectmodel/ObjectModelException
      // try (49 -> 57): 58 com/l7tech/objectmodel/ObjectModelException
   }

   private void a(KeyDTO.KeyInput var1, SsgKeyEntry var2, SsgKeyStore var3, boolean var4) {
      try {
         boolean var5 = var1.getExecutionContext().getQueryOptionsSupplier().isReplaceAllMatchingCertChainEnabled();
         Future var6 = var3.storePrivateKeyEntry(true, null, var2, var4, var5);

         try {
            if (!Boolean.TRUE.equals(var6.get())) {
               throw new IllegalStateException(h[12]);
            }
         } catch (RuntimeException var10) {
            throw b(var10);
         }

         label40: {
            try {
               if (!var4) {
                  var1.getFinder().markCreated(var2);
                  break label40;
               }
            } catch (RuntimeException var11) {
               throw b(var11);
            }

            var1.getFinder().markUpdated(var2);
         }

         if (Util.isNotEmpty(var1.getUsageTypes())) {
            for (KeyDTO.KeyUsageType var9 : this.a(var1.getUsageTypes())) {
               this.e.setKeyUsage(var2, var9);
            }
         }
      } catch (RuntimeException var12) {
         throw var12;
      } catch (Exception var13) {
         throw new IllegalStateException(var13);
      }
   }

   private void a(KeyDTO.KeyInput var1, SsgKeyEntry var2, SsgKeyStore var3) {
      try {
         Future var4 = var3.deletePrivateKeyEntry(true, null, var2.getAlias());

         try {
            if (!Boolean.TRUE.equals(var4.get())) {
               throw new IllegalStateException(h[0]);
            }
         } catch (RuntimeException var5) {
            throw b(var5);
         }

         var1.getFinder().markDeleted(var2);
      } catch (RuntimeException var6) {
         throw var6;
      } catch (Exception var7) {
         throw new RuntimeException(var7);
      }
   }

   private boolean a(DataFetchingEnvironment var1) {
      return this.getQueryOptionSupplier(var1.getGraphQlContext()).isTestModeEnabled();
   }

   static {
      String[] var5 = new String[15];
      int var3 = 0;
      String var2 = "j w'\u0004\u0007q\u001f'r=\u000e\u0002q^\"<,\u0019\u0002pM \u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,{@o<u&\u0019PrJ:}=\u0002\u001fqLnu'K\u0004wZnn,\u001a\u0005zL:<(\u0019\u0015?Y/u%\u000e\u00143\u001f'{'\u0004\u0002vQ)<=\u0003\u0015?R;h(\u001f\u0019pQ@t+ei\u001f\u0018~Knu:K\u0014zL'{'\n\u0004z[nz&\u0019PkW+<:\u001b\u0015|V/pi\u001b\u0005mO!o,K\u0013~Q s=K\u0012z\u001f*y%\u000e\u0004z[\n[+z(\u001e\u001ckt+e@o<u&\u0019PrJ:}=\u0002\u001fqLnu'K\u0004wZnn,\u001a\u0005zL:<(\u0019\u0015?Y/u%\u000e\u00143\u001f'{'\u0004\u0002vQ)<=\u0003\u0015?R;h(\u001f\u0019pQ4t+ei\b\u0011qQ!hi\t\u0015?[+p,\u001f\u0015{\u001f*i,K\u0004p\u001f:t,K\u0011|\\+o:K\u0002zL:n \b\u0004vP o\u0012L={\u0002\u000e\tLK!n,&\u0011q^)y;\u0016\\\"i:\u001f\u0015mo<s9\u000e\u0002kF\u0003}'\n\u0017zM\u001eM+z\u0000\u0005\u0000jK=<9\n\u0002~R+h,\u0019PvLnq \u0018\u0003vQ) \u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,{^v j(\u0007\u0019{\u001f%y0K\u0005l^)yi\u001f\toZn\u007f&\u0006\u0012vQ/h \u0004\u001e%\u001f\u001dO\u0005K\u0013~Q s=K\u0012z\u001f=l,\b\u0019yV+xi\u001c\u0019kWn_\u0005\"5Qk\u0011O\u001a'PhV:t&\u001e\u0004?l\u000bN\u001f.\"@l\u001dP\u0016j w'\u0004\u0007q\u001f'r=\u000e\u0002q^\"<,\u0019\u0002pM";
      int var4 = "j w'\u0004\u0007q\u001f'r=\u000e\u0002q^\"<,\u0019\u0002pM \u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,{@o<u&\u0019PrJ:}=\u0002\u001fqLnu'K\u0004wZnn,\u001a\u0005zL:<(\u0019\u0015?Y/u%\u000e\u00143\u001f'{'\u0004\u0002vQ)<=\u0003\u0015?R;h(\u001f\u0019pQ@t+ei\u001f\u0018~Knu:K\u0014zL'{'\n\u0004z[nz&\u0019PkW+<:\u001b\u0015|V/pi\u001b\u0005mO!o,K\u0013~Q s=K\u0012z\u001f*y%\u000e\u0004z[\n[+z(\u001e\u001ckt+e@o<u&\u0019PrJ:}=\u0002\u001fqLnu'K\u0004wZnn,\u001a\u0005zL:<(\u0019\u0015?Y/u%\u000e\u00143\u001f'{'\u0004\u0002vQ)<=\u0003\u0015?R;h(\u001f\u0019pQ4t+ei\b\u0011qQ!hi\t\u0015?[+p,\u001f\u0015{\u001f*i,K\u0004p\u001f:t,K\u0011|\\+o:K\u0002zL:n \b\u0004vP o\u0012L={\u0002\u000e\tLK!n,&\u0011q^)y;\u0016\\\"i:\u001f\u0015mo<s9\u000e\u0002kF\u0003}'\n\u0017zM\u001eM+z\u0000\u0005\u0000jK=<9\n\u0002~R+h,\u0019PvLnq \u0018\u0003vQ) \u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,y[@/\u000f~,{^v j(\u0007\u0019{\u001f%y0K\u0005l^)yi\u001f\toZn\u007f&\u0006\u0012vQ/h \u0004\u001e%\u001f\u001dO\u0005K\u0013~Q s=K\u0012z\u001f=l,\b\u0019yV+xi\u001c\u0019kWn_\u0005\"5Qk\u0011O\u001a'PhV:t&\u001e\u0004?l\u000bN\u001f.\"@l\u001dP\u0016j w'\u0004\u0007q\u001f'r=\u000e\u0002q^\"<,\u0019\u0002pM"
         .length();
      char var1 = 22;
      int var7 = -1;

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

         while (true) {
            String var8 = c(var10000, c(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     h = var5;
                     c = Logger.getLogger(SsgKeyMutationResolver.class.getName());
                     return;
                  }

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

                  var2 = "=b, AX8\u0018h! @\\v\u0003w1aV\\2Vc e\u0002M9Vs=e\u0002X5\u0015b&s\u0002K3\u0005s'iAM?\u0019i&23u'oP\u00193\u0018d:uLM3\u0004b1 UQ?\u001aburGM$\u001fb#iL^v\u0002o0 I\\/Z'6aWJ3K";
                  var4 = "=b, AX8\u0018h! @\\v\u0003w1aV\\2Vc e\u0002M9Vs=e\u0002X5\u0015b&s\u0002K3\u0005s'iAM?\u0019i&23u'oP\u00193\u0018d:uLM3\u0004b1 UQ?\u001aburGM$\u001fb#iL^v\u0002o0 I\\/Z'6aWJ3K"
                     .length();
                  var1 = '4';
                  var7 = -1;
            }

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

   private static Exception b(Exception var0) {
      return var0;
   }

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

      return var10000;
   }

   private static String c(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 -> 39;
            case 1 -> 86;
            case 2 -> 4;
            case 3 -> 81;
            case 4 -> 115;
            case 5 -> 104;
            default -> 7;
         });
      }

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