/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.cluster.ClusterProperty
 *  com.l7tech.gateway.common.custom.ClassNameToEntitySerializer
 *  com.l7tech.gateway.common.custom.CustomAssertionsRegistrar
 *  com.l7tech.gateway.common.entity.EntitiesResolver
 *  com.l7tech.gateway.common.module.ServerModuleFile
 *  com.l7tech.gateway.common.resources.ResourceEntry
 *  com.l7tech.gateway.common.resources.ResourceEntryHeader
 *  com.l7tech.gateway.common.security.keystore.SsgKeyEntry
 *  com.l7tech.gateway.common.security.password.SecurePassword
 *  com.l7tech.objectmodel.Entity
 *  com.l7tech.objectmodel.EntityHeader
 *  com.l7tech.objectmodel.EntityType
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.objectmodel.SsgKeyHeader
 *  com.l7tech.policy.AssertionResourceInfo
 *  com.l7tech.policy.assertion.Assertion
 *  com.l7tech.policy.assertion.AssertionResourceType
 *  com.l7tech.policy.assertion.CustomAssertionHolder
 *  com.l7tech.policy.assertion.GlobalResourceInfo
 *  com.l7tech.policy.assertion.OptionalPrivateKeyable
 *  com.l7tech.policy.assertion.PrivateKeyable
 *  com.l7tech.policy.assertion.UsesEntitiesAtDesignTime
 *  com.l7tech.policy.assertion.UsesResourceInfo
 *  com.l7tech.policy.assertion.UsesVariables
 *  com.l7tech.policy.assertion.ext.store.KeyValueStore
 *  com.l7tech.policy.variable.BuiltinVariables
 *  com.l7tech.search.Dependency$DependencyType
 *  com.l7tech.search.Dependency$MethodReturnType
 *  com.l7tech.util.Functions
 *  com.l7tech.util.Functions$Unary
 *  jakarta.inject.Inject
 *  jakarta.inject.Named
 *  org.apache.commons.lang3.StringUtils
 *  org.jetbrains.annotations.NotNull
 *  org.jetbrains.annotations.Nullable
 */
package com.l7tech.server.search.processors;

import com.l7tech.gateway.common.cluster.ClusterProperty;
import com.l7tech.gateway.common.custom.ClassNameToEntitySerializer;
import com.l7tech.gateway.common.custom.CustomAssertionsRegistrar;
import com.l7tech.gateway.common.entity.EntitiesResolver;
import com.l7tech.gateway.common.module.ServerModuleFile;
import com.l7tech.gateway.common.resources.ResourceEntry;
import com.l7tech.gateway.common.resources.ResourceEntryHeader;
import com.l7tech.gateway.common.security.keystore.SsgKeyEntry;
import com.l7tech.gateway.common.security.password.SecurePassword;
import com.l7tech.objectmodel.Entity;
import com.l7tech.objectmodel.EntityHeader;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.SsgKeyHeader;
import com.l7tech.policy.AssertionResourceInfo;
import com.l7tech.policy.assertion.Assertion;
import com.l7tech.policy.assertion.AssertionResourceType;
import com.l7tech.policy.assertion.CustomAssertionHolder;
import com.l7tech.policy.assertion.GlobalResourceInfo;
import com.l7tech.policy.assertion.OptionalPrivateKeyable;
import com.l7tech.policy.assertion.PrivateKeyable;
import com.l7tech.policy.assertion.UsesEntitiesAtDesignTime;
import com.l7tech.policy.assertion.UsesResourceInfo;
import com.l7tech.policy.assertion.UsesVariables;
import com.l7tech.policy.assertion.ext.store.KeyValueStore;
import com.l7tech.policy.variable.BuiltinVariables;
import com.l7tech.search.Dependency;
import com.l7tech.server.DefaultKey;
import com.l7tech.server.DefaultKeyImpl;
import com.l7tech.server.EntityFinder;
import com.l7tech.server.EntityHeaderUtils;
import com.l7tech.server.cluster.ClusterPropertyManager;
import com.l7tech.server.globalresources.ResourceEntryManager;
import com.l7tech.server.module.AssertionModuleFinder;
import com.l7tech.server.module.ServerModuleFileManager;
import com.l7tech.server.policy.CustomKeyValueStoreManager;
import com.l7tech.server.policy.module.ModularAssertionModule;
import com.l7tech.server.search.exceptions.CannotReplaceDependenciesException;
import com.l7tech.server.search.exceptions.CannotRetrieveDependenciesException;
import com.l7tech.server.search.objects.BrokenDependency;
import com.l7tech.server.search.objects.Dependency;
import com.l7tech.server.search.objects.DependentAssertion;
import com.l7tech.server.search.objects.DependentObject;
import com.l7tech.server.search.processors.DefaultDependencyProcessor;
import com.l7tech.server.search.processors.DependencyFinder;
import com.l7tech.server.search.processors.DependencyProcessor;
import com.l7tech.server.search.processors.DependencyProcessorUtils;
import com.l7tech.server.search.processors.f;
import com.l7tech.server.search.processors.g;
import com.l7tech.server.search.processors.h;
import com.l7tech.server.search.processors.i;
import com.l7tech.server.search.processors.j;
import com.l7tech.server.security.password.SecurePasswordManager;
import com.l7tech.server.store.CustomKeyValueStoreImpl;
import com.l7tech.util.Functions;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/*
 * Exception performing whole class analysis ignored.
 */
public class DefaultAssertionDependencyProcessor<A extends Assertion>
extends DefaultDependencyProcessor<A>
implements DependencyProcessor<A> {
    private static final Pattern a;
    @Inject
    private ClusterPropertyManager clusterPropertyManager;
    @Inject
    private ResourceEntryManager resourceEntryManager;
    @Inject
    private SecurePasswordManager securePasswordManager;
    @Inject
    private CustomKeyValueStoreManager customKeyValueStoreManager;
    @Inject
    @Named(value="customAssertionRegistrar")
    private CustomAssertionsRegistrar customAssertionRegistrar;
    @Inject
    @Named(value="modularAssertionModuleFinder")
    private AssertionModuleFinder<ModularAssertionModule> modularAssertionModuleFinder;
    @Inject
    private DefaultKey defaultKey;
    @Inject
    private ServerModuleFileManager serverModuleFileManager;
    @Inject
    private EntityFinder entityFinder;
    private static final String[] c;

    /*
     * Unable to fully structure code
     */
    @Override
    @NotNull
    public List<Dependency> findDependencies(@NotNull A var1_1, @NotNull DependencyFinder var2_2) throws FindException, CannotRetrieveDependenciesException {
        block32: {
            try {
                if (var1_1 == null) {
                    DefaultAssertionDependencyProcessor.b(0);
                }
            }
            catch (FindException v0) {
                throw DefaultAssertionDependencyProcessor.a((Exception)v0);
            }
            try {
                if (var2_2 == null) {
                    DefaultAssertionDependencyProcessor.b(1);
                }
            }
            catch (FindException v1) {
                throw DefaultAssertionDependencyProcessor.a((Exception)v1);
            }
            var3_3 = super.findDependencies(var1_1, var2_2);
            try {
                if (var1_1 instanceof UsesEntitiesAtDesignTime) {
                    this.a((UsesEntitiesAtDesignTime)var1_1);
                }
            }
            catch (FindException v2) {
                throw DefaultAssertionDependencyProcessor.a((Exception)v2);
            }
            try {
                this.a(var1_1, var2_2, var3_3);
                if (var1_1 instanceof UsesVariables) {
                    this.a((UsesVariables)var1_1, var2_2, var3_3);
                }
            }
            catch (FindException v3) {
                throw DefaultAssertionDependencyProcessor.a((Exception)v3);
            }
            try {
                if (var1_1 instanceof UsesResourceInfo) {
                    this.a((UsesResourceInfo)var1_1, var2_2, var3_3);
                }
            }
            catch (FindException v4) {
                throw DefaultAssertionDependencyProcessor.a((Exception)v4);
            }
            try {
                if (var1_1 instanceof PrivateKeyable) {
                    this.a((PrivateKeyable)var1_1, var2_2, var3_3);
                }
            }
            catch (FindException v5) {
                throw DefaultAssertionDependencyProcessor.a((Exception)v5);
            }
            if (var1_1 instanceof CustomAssertionHolder) {
                var4_4 = ((CustomAssertionHolder)var1_1).getCustomAssertion();
                if (var4_4 != null) {
                    var5_6 = this.customAssertionRegistrar.getModuleInfoForAssertionClass(var4_4.getClass().getName());
                    try {
                        try {
                            if (var5_6 == null || !var5_6.isFromDb()) ** GOTO lbl65
                        }
                        catch (FindException v6) {
                            throw DefaultAssertionDependencyProcessor.a((Exception)v6);
                        }
                        this.a(var5_6.getModuleEntityName(), var2_2, var3_3);
                    }
                    catch (FindException v7) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)v7);
                    }
                }
            } else {
                var4_5 = this.modularAssertionModuleFinder.getModuleForClassLoader(var1_1.getClass().getClassLoader());
                try {
                    try {
                        if (var4_5 == null || !var4_5.isFromDb()) break block32;
                    }
                    catch (FindException v8) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)v8);
                    }
                    this.a(var4_5.getEntityName(), var2_2, var3_3);
                }
                catch (FindException v9) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)v9);
                }
            }
        }
        try {
            v10 = var3_3;
            if (v10 == null) {
                DefaultAssertionDependencyProcessor.b(2);
            }
        }
        catch (FindException v11) {
            throw DefaultAssertionDependencyProcessor.a((Exception)v11);
        }
        return v10;
    }

    private void a(UsesEntitiesAtDesignTime usesEntitiesAtDesignTime) {
        EntityHeader[] entityHeaderArray = usesEntitiesAtDesignTime.getEntitiesUsedAtDesignTime();
        if (entityHeaderArray != null) {
            for (EntityHeader entityHeader : entityHeaderArray) {
                if (!usesEntitiesAtDesignTime.needsProvideEntity(entityHeader)) continue;
                try {
                    Entity entity = this.entityFinder.find(entityHeader);
                    try {
                        if (entity == null) {
                            logger.warning(new f(this, entityHeader));
                            continue;
                        }
                    }
                    catch (FindException findException) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                    }
                    usesEntitiesAtDesignTime.provideEntity(entityHeader, entity);
                }
                catch (FindException findException) {
                    logger.warning(new g(this, entityHeader));
                }
            }
        }
    }

    private void a(@NotNull A a10, @NotNull DependencyFinder dependencyFinder, List<Dependency> list) throws FindException, CannotRetrieveDependenciesException {
        try {
            if (a10 == null) {
                DefaultAssertionDependencyProcessor.b(3);
            }
        }
        catch (FindException findException) {
            throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
        }
        try {
            if (dependencyFinder == null) {
                DefaultAssertionDependencyProcessor.b(4);
            }
        }
        catch (FindException findException) {
            throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
        }
        EntitiesResolver entitiesResolver = EntitiesResolver.builder().keyValueStore((KeyValueStore)new CustomKeyValueStoreImpl(this.customKeyValueStoreManager)).classNameToSerializer((ClassNameToEntitySerializer)new h(this)).build();
        for (EntityHeader entityHeader : entitiesResolver.getEntitiesUsed(a10)) {
            Entity entity = this.loadEntity(entityHeader);
            Dependency dependency = dependencyFinder.a(DependencyFinder.FindResults.create(entity, entityHeader));
            try {
                try {
                    if (dependency == null || list.contains(dependency)) continue;
                }
                catch (FindException findException) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                }
                list.add(dependency);
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
        }
    }

    private void a(UsesVariables usesVariables, @NotNull DependencyFinder dependencyFinder, List<Dependency> list) throws FindException, CannotRetrieveDependenciesException {
        try {
            if (dependencyFinder == null) {
                DefaultAssertionDependencyProcessor.b(5);
            }
        }
        catch (FindException findException) {
            throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
        }
        boolean bl2 = dependencyFinder.a(c[25], Boolean.class, true);
        for (String string : usesVariables.getVariablesUsed()) {
            boolean bl3;
            block18: {
                block17: {
                    try {
                        try {
                            try {
                                try {
                                    if (!string.startsWith(BuiltinVariables.PREFIX_CLUSTER_PROPERTY) || string.length() <= BuiltinVariables.PREFIX_CLUSTER_PROPERTY.length()) break block17;
                                }
                                catch (FindException findException) {
                                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                                }
                                if (string.startsWith(BuiltinVariables.PREFIX_GATEWAY_RANDOM)) break block17;
                            }
                            catch (FindException findException) {
                                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                            }
                            if (string.startsWith(BuiltinVariables.PREFIX_GATEWAY_TIME)) break block17;
                        }
                        catch (FindException findException) {
                            throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                        }
                        bl3 = true;
                        break block18;
                    }
                    catch (FindException findException) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                    }
                }
                bl3 = false;
            }
            boolean bl4 = bl3;
            try {
                if (bl4) {
                    this.a(dependencyFinder, list, string);
                    continue;
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            try {
                if (!bl2) continue;
                this.b(dependencyFinder, list, string);
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
        }
    }

    private void a(@NotNull DependencyFinder dependencyFinder, List<Dependency> list, String string) throws FindException, CannotRetrieveDependenciesException {
        block7: {
            try {
                if (dependencyFinder == null) {
                    DefaultAssertionDependencyProcessor.b(6);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            String string2 = string.substring(BuiltinVariables.PREFIX_CLUSTER_PROPERTY.length() + 1);
            ClusterProperty clusterProperty = (ClusterProperty)this.clusterPropertyManager.findByUniqueName(string2);
            Dependency dependency = dependencyFinder.a(DependencyFinder.FindResults.create(clusterProperty, new EntityHeader(Goid.DEFAULT_GOID, EntityType.CLUSTER_PROPERTY, string2, null)));
            try {
                try {
                    if (dependency == null || list.contains(dependency)) break block7;
                }
                catch (FindException findException) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                }
                list.add(dependency);
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
        }
    }

    private void b(@NotNull DependencyFinder dependencyFinder, List<Dependency> list, String string) throws FindException, CannotRetrieveDependenciesException {
        block8: {
            try {
                if (dependencyFinder == null) {
                    DefaultAssertionDependencyProcessor.b(7);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            Matcher matcher = a.matcher(string);
            if (matcher.matches()) {
                String string2 = matcher.group(1);
                SecurePassword securePassword = (SecurePassword)this.securePasswordManager.findByUniqueName(string2);
                Dependency dependency = dependencyFinder.a(DependencyFinder.FindResults.create(securePassword, new EntityHeader(Goid.DEFAULT_GOID, EntityType.SECURE_PASSWORD, string2, null)));
                try {
                    try {
                        if (dependency == null || list.contains(dependency)) break block8;
                    }
                    catch (FindException findException) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                    }
                    list.add(dependency);
                }
                catch (FindException findException) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                }
            }
        }
    }

    private void a(@NotNull UsesResourceInfo usesResourceInfo, @NotNull DependencyFinder dependencyFinder, List<Dependency> list) throws FindException, CannotRetrieveDependenciesException {
        block12: {
            try {
                if (usesResourceInfo == null) {
                    DefaultAssertionDependencyProcessor.b(8);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            try {
                if (dependencyFinder == null) {
                    DefaultAssertionDependencyProcessor.b(9);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            AssertionResourceInfo assertionResourceInfo = usesResourceInfo.getResourceInfo();
            try {
                if (assertionResourceInfo == null || !assertionResourceInfo.getType().equals(AssertionResourceType.GLOBAL_RESOURCE)) break block12;
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            String string = ((GlobalResourceInfo)assertionResourceInfo).getId();
            ResourceEntry resourceEntry = this.resourceEntryManager.findResourceByUriAndType(string, null);
            Dependency dependency = dependencyFinder.a(DependencyFinder.FindResults.create(resourceEntry, new EntityHeader(Goid.DEFAULT_GOID, EntityType.RESOURCE_ENTRY, string, null)));
            try {
                try {
                    if (dependency == null || list.contains(dependency)) break block12;
                }
                catch (FindException findException) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                }
                list.add(dependency);
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
        }
    }

    private void a(@NotNull PrivateKeyable privateKeyable, @NotNull DependencyFinder dependencyFinder, List<Dependency> list) throws CannotRetrieveDependenciesException, FindException {
        block21: {
            block20: {
                try {
                    if (privateKeyable == null) {
                        DefaultAssertionDependencyProcessor.b(10);
                    }
                }
                catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                }
                try {
                    if (dependencyFinder == null) {
                        DefaultAssertionDependencyProcessor.b(11);
                    }
                }
                catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                }
                try {
                    try {
                        try {
                            try {
                                if (privateKeyable instanceof OptionalPrivateKeyable && ((OptionalPrivateKeyable)privateKeyable).isUsesNoKey()) break block20;
                            }
                            catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                                throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                            }
                            if (privateKeyable.isUsesDefaultKeyStore()) break block20;
                        }
                        catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                            throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                        }
                        if (privateKeyable.isUsesDynamicPrivateKey()) break block20;
                    }
                    catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                        throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                    }
                    this.b(privateKeyable, dependencyFinder, list);
                    break block21;
                }
                catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                }
            }
            try {
                try {
                    try {
                        if (privateKeyable instanceof OptionalPrivateKeyable && ((OptionalPrivateKeyable)privateKeyable).isUsesNoKey()) break block21;
                    }
                    catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                        throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                    }
                    if (!privateKeyable.isUsesDefaultKeyStore()) break block21;
                }
                catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
                }
                this.c(privateKeyable, dependencyFinder, list);
            }
            catch (CannotRetrieveDependenciesException cannotRetrieveDependenciesException) {
                throw DefaultAssertionDependencyProcessor.a(cannotRetrieveDependenciesException);
            }
        }
    }

    /*
     * Loose catch block
     */
    private void b(@NotNull PrivateKeyable privateKeyable, @NotNull DependencyFinder dependencyFinder, List<Dependency> list) throws CannotRetrieveDependenciesException {
        block15: {
            try {
                if (privateKeyable == null) {
                    DefaultAssertionDependencyProcessor.b(12);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            try {
                if (dependencyFinder == null) {
                    DefaultAssertionDependencyProcessor.b(13);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            SsgKeyHeader ssgKeyHeader = new SsgKeyHeader(String.valueOf(privateKeyable.getNonDefaultKeystoreId()) + ":" + privateKeyable.getKeyAlias(), privateKeyable.getNonDefaultKeystoreId(), privateKeyable.getKeyAlias(), privateKeyable.getKeyAlias());
            try {
                Entity entity;
                block14: {
                    entity = this.loadEntity((EntityHeader)ssgKeyHeader);
                    try {
                        if (entity != null) break block14;
                        list.add(new BrokenDependency((EntityHeader)ssgKeyHeader));
                        break block15;
                    }
                    catch (FindException findException) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                    }
                }
                Dependency dependency = dependencyFinder.a(DependencyFinder.FindResults.create(entity, (EntityHeader)ssgKeyHeader));
                if (dependency == null) break block15;
                try {
                    block16: {
                        if (list.contains(dependency)) break block15;
                        break block16;
                        catch (FindException findException) {
                            throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                        }
                    }
                    list.add(dependency);
                }
                catch (FindException findException) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                }
            }
            catch (FindException findException) {
                list.add(new BrokenDependency((EntityHeader)ssgKeyHeader));
            }
        }
    }

    /*
     * Loose catch block
     */
    private void c(@NotNull PrivateKeyable privateKeyable, @NotNull DependencyFinder dependencyFinder, List<Dependency> list) throws FindException, CannotRetrieveDependenciesException {
        block32: {
            Dependency dependency;
            SsgKeyEntry ssgKeyEntry;
            block31: {
                block30: {
                    try {
                        if (privateKeyable == null) {
                            DefaultAssertionDependencyProcessor.b(14);
                        }
                    }
                    catch (IOException iOException) {
                        throw DefaultAssertionDependencyProcessor.a(iOException);
                    }
                    try {
                        if (dependencyFinder == null) {
                            DefaultAssertionDependencyProcessor.b(15);
                        }
                    }
                    catch (IOException iOException) {
                        throw DefaultAssertionDependencyProcessor.a(iOException);
                    }
                    try {
                        ssgKeyEntry = this.defaultKey.getSslInfo();
                        try {
                            if (ssgKeyEntry == null || DefaultKeyImpl.isNullEntry(ssgKeyEntry)) break block30;
                        }
                        catch (IOException iOException) {
                            throw DefaultAssertionDependencyProcessor.a(iOException);
                        }
                        dependency = dependencyFinder.a(DependencyFinder.FindResults.create(ssgKeyEntry, EntityHeaderUtils.fromEntity((Entity)ssgKeyEntry)));
                        if (dependency == null) break block30;
                        try {
                            block33: {
                                if (list.contains(dependency)) break block30;
                                break block33;
                                catch (IOException iOException) {
                                    throw DefaultAssertionDependencyProcessor.a(iOException);
                                }
                            }
                            list.add(dependency);
                        }
                        catch (IOException iOException) {
                            throw DefaultAssertionDependencyProcessor.a(iOException);
                        }
                    }
                    catch (IOException iOException) {
                        throw new CannotRetrieveDependenciesException(privateKeyable.getClass(), iOException.getMessage());
                    }
                }
                try {
                    ssgKeyEntry = this.defaultKey.getServerSslInfo();
                    try {
                        if (ssgKeyEntry == null || DefaultKeyImpl.isNullEntry(ssgKeyEntry)) break block31;
                    }
                    catch (IOException iOException) {
                        throw DefaultAssertionDependencyProcessor.a(iOException);
                    }
                    dependency = dependencyFinder.a(DependencyFinder.FindResults.create(ssgKeyEntry, EntityHeaderUtils.fromEntity((Entity)ssgKeyEntry)));
                    if (dependency == null) break block31;
                    try {
                        block34: {
                            if (list.contains(dependency)) break block31;
                            break block34;
                            catch (IOException iOException) {
                                throw DefaultAssertionDependencyProcessor.a(iOException);
                            }
                        }
                        list.add(dependency);
                    }
                    catch (IOException iOException) {
                        throw DefaultAssertionDependencyProcessor.a(iOException);
                    }
                }
                catch (IOException iOException) {
                    // empty catch block
                }
            }
            try {
                ssgKeyEntry = this.defaultKey.getClientSslInfo();
                try {
                    if (ssgKeyEntry == null || DefaultKeyImpl.isNullEntry(ssgKeyEntry)) break block32;
                }
                catch (IOException iOException) {
                    throw DefaultAssertionDependencyProcessor.a(iOException);
                }
                dependency = dependencyFinder.a(DependencyFinder.FindResults.create(ssgKeyEntry, EntityHeaderUtils.fromEntity((Entity)ssgKeyEntry)));
                if (dependency == null) break block32;
                try {
                    block35: {
                        if (list.contains(dependency)) break block32;
                        break block35;
                        catch (IOException iOException) {
                            throw DefaultAssertionDependencyProcessor.a(iOException);
                        }
                    }
                    list.add(dependency);
                }
                catch (IOException iOException) {
                    throw DefaultAssertionDependencyProcessor.a(iOException);
                }
            }
            catch (IOException iOException) {
                // empty catch block
            }
        }
    }

    private void a(@Nullable String string, @NotNull DependencyFinder dependencyFinder, @NotNull List<Dependency> list) throws FindException, CannotRetrieveDependenciesException {
        block11: {
            ServerModuleFile serverModuleFile;
            try {
                if (dependencyFinder == null) {
                    DefaultAssertionDependencyProcessor.b(16);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            try {
                if (list == null) {
                    DefaultAssertionDependencyProcessor.b(17);
                }
            }
            catch (FindException findException) {
                throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
            }
            if (StringUtils.isNotBlank((CharSequence)string) && (serverModuleFile = (ServerModuleFile)this.serverModuleFileManager.findByUniqueName(string)) != null) {
                Dependency dependency = dependencyFinder.a(DependencyFinder.FindResults.create(serverModuleFile, new EntityHeader(Goid.DEFAULT_GOID, EntityType.SERVER_MODULE_FILE, string, null)));
                try {
                    try {
                        if (dependency == null || list.contains(dependency)) break block11;
                    }
                    catch (FindException findException) {
                        throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                    }
                    list.add(dependency);
                }
                catch (FindException findException) {
                    throw DefaultAssertionDependencyProcessor.a((Exception)((Object)findException));
                }
            }
        }
    }

    @Override
    @NotNull
    public DependentObject createDependentObject(@NotNull A a10) {
        try {
            if (a10 == null) {
                DefaultAssertionDependencyProcessor.b(18);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        return new DependentAssertion((String)a10.meta().get(c[31]), a10.getClass());
    }

    @Override
    @NotNull
    public List<DependentObject> createDependentObjects(@NotNull Object object, @NotNull Dependency.DependencyType dependencyType, @NotNull Dependency.MethodReturnType methodReturnType) {
        try {
            if (object == null) {
                DefaultAssertionDependencyProcessor.b(19);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        try {
            if (dependencyType == null) {
                DefaultAssertionDependencyProcessor.b(20);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        try {
            if (methodReturnType == null) {
                DefaultAssertionDependencyProcessor.b(21);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        throw new UnsupportedOperationException(c[7]);
    }

    @Override
    @NotNull
    public List<DependencyFinder.FindResults<A>> find(@NotNull Object object, @NotNull Dependency.DependencyType dependencyType, @NotNull Dependency.MethodReturnType methodReturnType) {
        try {
            if (object == null) {
                DefaultAssertionDependencyProcessor.b(22);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        try {
            if (dependencyType == null) {
                DefaultAssertionDependencyProcessor.b(23);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        try {
            if (methodReturnType == null) {
                DefaultAssertionDependencyProcessor.b(24);
            }
        }
        catch (UnsupportedOperationException unsupportedOperationException) {
            throw DefaultAssertionDependencyProcessor.a(unsupportedOperationException);
        }
        throw new UnsupportedOperationException(c[22]);
    }

    @Override
    public void replaceDependencies(@NotNull A a10, @NotNull Map<EntityHeader, EntityHeader> map, @NotNull DependencyFinder dependencyFinder, boolean bl2) throws CannotReplaceDependenciesException {
        block32: {
            AssertionResourceInfo assertionResourceInfo;
            block31: {
                EntityHeader entityHeader;
                AssertionResourceInfo assertionResourceInfo2;
                try {
                    if (a10 == null) {
                        DefaultAssertionDependencyProcessor.b(25);
                    }
                }
                catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                }
                try {
                    if (map == null) {
                        DefaultAssertionDependencyProcessor.b(26);
                    }
                }
                catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                }
                try {
                    if (dependencyFinder == null) {
                        DefaultAssertionDependencyProcessor.b(27);
                    }
                }
                catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                }
                try {
                    if (!bl2) {
                        return;
                    }
                }
                catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                    throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                }
                super.replaceDependencies(a10, map, dependencyFinder, bl2);
                EntitiesResolver entitiesResolver = EntitiesResolver.builder().keyValueStore((KeyValueStore)new CustomKeyValueStoreImpl(this.customKeyValueStoreManager)).classNameToSerializer((ClassNameToEntitySerializer)new i(this)).build();
                for (EntityHeader entityHeader2 : assertionResourceInfo2 = entitiesResolver.getEntitiesUsed(a10)) {
                    entityHeader = DependencyProcessorUtils.findMappedHeader(map, entityHeader2);
                    try {
                        if (entityHeader == null) continue;
                        entitiesResolver.replaceEntity(a10, entityHeader2, entityHeader);
                    }
                    catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                        throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                    }
                }
                if (a10 instanceof UsesResourceInfo) {
                    assertionResourceInfo = ((UsesResourceInfo)a10).getResourceInfo();
                    try {
                        if (assertionResourceInfo == null || !assertionResourceInfo.getType().equals(AssertionResourceType.GLOBAL_RESOURCE)) break block31;
                    }
                    catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                        throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                    }
                    String string = ((GlobalResourceInfo)assertionResourceInfo).getId();
                    EntityHeader entityHeader3 = (EntityHeader)Functions.grepFirst(map.keySet(), (Functions.Unary)new j(this, string));
                    if (entityHeader3 != null) {
                        EntityHeader entityHeader2;
                        entityHeader2 = new GlobalResourceInfo();
                        entityHeader = DependencyProcessorUtils.findMappedHeader(map, entityHeader3);
                        try {
                            if (entityHeader instanceof ResourceEntryHeader) {
                                entityHeader2.setId(((ResourceEntryHeader)entityHeader).getUri());
                                ((UsesResourceInfo)a10).setResourceInfo((AssertionResourceInfo)entityHeader2);
                            }
                        }
                        catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                            throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                        }
                    }
                }
            }
            if (a10 instanceof PrivateKeyable) {
                EntityHeader entityHeader;
                block33: {
                    assertionResourceInfo = (PrivateKeyable)a10;
                    try {
                        try {
                            if (assertionResourceInfo instanceof OptionalPrivateKeyable && ((OptionalPrivateKeyable)assertionResourceInfo).isUsesNoKey()) break block32;
                        }
                        catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                            throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                        }
                        if (assertionResourceInfo.getKeyAlias() == null) break block32;
                    }
                    catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                        throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                    }
                    SsgKeyHeader ssgKeyHeader = new SsgKeyHeader(String.valueOf(assertionResourceInfo.getNonDefaultKeystoreId()) + ":" + assertionResourceInfo.getKeyAlias(), assertionResourceInfo.getNonDefaultKeystoreId(), assertionResourceInfo.getKeyAlias(), assertionResourceInfo.getKeyAlias());
                    entityHeader = DependencyProcessorUtils.findMappedHeader(map, (EntityHeader)ssgKeyHeader);
                    try {
                        try {
                            if (entityHeader == null) break block32;
                            if (entityHeader instanceof SsgKeyHeader) break block33;
                        }
                        catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                            throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                        }
                        throw new CannotReplaceDependenciesException(a10.getClass(), c[13]);
                    }
                    catch (CannotReplaceDependenciesException cannotReplaceDependenciesException) {
                        throw DefaultAssertionDependencyProcessor.a(cannotReplaceDependenciesException);
                    }
                }
                assertionResourceInfo.setNonDefaultKeystoreId(((SsgKeyHeader)entityHeader).getKeystoreId());
                assertionResourceInfo.setKeyAlias(((SsgKeyHeader)entityHeader).getAlias());
            }
        }
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[32];
                var3_1 = 0;
                var2_2 = "bA\u0011\u0000O-fxO\u0004\u0001T:vJK\u0000\u0001q;j`M\u0019\u0001l\u0018bA\u0011\u0000I>}gO\u0012\bz\u001bj~K\u001e\u0000z1lgK\u0003>O\\\u0017\u0011r:az\u000e\u0016\u000bm\u007fO@A\u0004*j3c.^\u0011\u0016~2jzK\u0002D8z|)\u000e\u001f\u0002?z| \u000b\u0003Dr*|z\u000e\u001e\u000bk\u007fmk\u000e\u001e\u0011s3\u000b}K\u0011\u0016|7YoB\u0005\u0001\u0015m\\\u0015\u0005k:Kk^\u0015\n{:aza\u0012\u000ez<{\u0004hG\u001e\u0000\u0013|K\u0000\b~<jJK\u0000\u0001q;j`M\u0019\u0001lAO]\u0003\u0001m+fa@4\u0001o:ajK\u001e\u0010?\u0010mdK\u0013\u0010l\u007flo@\u001e\u000bk\u007fmk\u000e\u0013\u0016z>{kJP\u0002m0b.OP\u0017z>}mFP\u0012~3zk\u0000\u0018bA\u0011\u0000M:|a[\u0002\u0007z\u001bj~K\u001e\u0000z1lgK\u0003\u0018bA\u0011\u0000[:io[\u001c\u0010T:vJK\u0000\u0001q;j`M\t0P]\u0015\u0007o>|}r^LD>\"to]>@\u0002To\u0003\n%2\u0005?#\u0017/82\u0002%'r^\u0014s>f`Z\u0015\u001ck{\to]\u0003\u0001m+fa@%bA\u0011\u0000L:l{\\\u00154~,|yA\u0002\u0000M:ik\\\u0015\n|:Kk^\u0015\n{:amWGOZ\u0004\u0001r/{g@\u0017Dk0/|K\u0000\b~<j.]\u0003\u0003?4jw\u000e\u0012\u0011k\u007fbo^\u0000\u0001{\u007fgkO\u0014\u0001m\u007ff`\u000e\u001e\u000bk\u007fn`\u000e#\u0017x\u0014jwf\u0015\u0005{:} \u0010hG\u001e\u0000[:\u007fk@\u0014\u0001q<fk]\u000f}K\u0011\u0016|7YoB\u0005\u0001K&\u007fkGmA\u001dKsh{kM\u0018Kl:}xK\u0002Kl:n|M\u0018Ko-`mK\u0003\u0017p-|!j\u0015\u0002~*czo\u0003\u0017z-{gA\u001e z/j`J\u0015\n|&_|A\u0013\u0001l,`|\u0010hG\u001e\u0000[:\u007fk@\u0014\u0001q<fk]\u0016m\\\u0015\u0005k:Kk^\u0015\n{:aza\u0012\u000ez<{}\u001bbA\u0011\u0000Q0aJK\u0016\u0005j3{EK\t z/j`J\u0015\n|&\u0016bA\u0011\u0000Z1{gZ\t z/j`J\u0015\n|6j}\fjK\u0000\u0001q;j`M\u0019\u0001l'O]\u0003\u0001m+fa@\u0003D|>a`A\u0004D}:/bA\u0011\u0000z;/o]P\u0001q+fzG\u0015\u0017\u000e|K\u0000\b~<jcK\u001e\u0010R>\u007fGmA\u001dKsh{kM\u0018Kl:}xK\u0002Kl:n|M\u0018Ko-`mK\u0003\u0017p-|!j\u0015\u0002~*czo\u0003\u0017z-{gA\u001e z/j`J\u0015\n|&_|A\u0013\u0001l,`|8hG\u001e\u0000L:l{\\\u00154~,|yA\u0002\u0000[:\u007fk@\u0014\u0001q<vH\\\u001f\t\\0azK\b\u0010I>}gO\u0012\bz\u000fcoG\u001e\u0010z'{\u001dbA\u0011\u0000\\3z}Z\u0015\u0016O-`~K\u0002\u0010f\u001bj~K\u001e\u0000z1lw\u000ejK\u0000\u0001q;j`M\t0f/j\u0006hG\u001e\u0000z-!~\\\u001f\u0007z,|]K\u0002\u0012z-BaJ\u0005\bz\u0019fbK4\u0001o:ajK\u001e\u0007f";
                var4_3 = "bA\u0011\u0000O-fxO\u0004\u0001T:vJK\u0000\u0001q;j`M\u0019\u0001l\u0018bA\u0011\u0000I>}gO\u0012\bz\u001bj~K\u001e\u0000z1lgK\u0003>O\\\u0017\u0011r:az\u000e\u0016\u000bm\u007fO@A\u0004*j3c.^\u0011\u0016~2jzK\u0002D8z|)\u000e\u001f\u0002?z| \u000b\u0003Dr*|z\u000e\u001e\u000bk\u007fmk\u000e\u001e\u0011s3\u000b}K\u0011\u0016|7YoB\u0005\u0001\u0015m\\\u0015\u0005k:Kk^\u0015\n{:aza\u0012\u000ez<{\u0004hG\u001e\u0000\u0013|K\u0000\b~<jJK\u0000\u0001q;j`M\u0019\u0001lAO]\u0003\u0001m+fa@4\u0001o:ajK\u001e\u0010?\u0010mdK\u0013\u0010l\u007flo@\u001e\u000bk\u007fmk\u000e\u0013\u0016z>{kJP\u0002m0b.OP\u0017z>}mFP\u0012~3zk\u0000\u0018bA\u0011\u0000M:|a[\u0002\u0007z\u001bj~K\u001e\u0000z1lgK\u0003\u0018bA\u0011\u0000[:io[\u001c\u0010T:vJK\u0000\u0001q;j`M\t0P]\u0015\u0007o>|}r^LD>\"to]>@\u0002To\u0003\n%2\u0005?#\u0017/82\u0002%'r^\u0014s>f`Z\u0015\u001ck{\to]\u0003\u0001m+fa@%bA\u0011\u0000L:l{\\\u00154~,|yA\u0002\u0000M:ik\\\u0015\n|:Kk^\u0015\n{:amWGOZ\u0004\u0001r/{g@\u0017Dk0/|K\u0000\b~<j.]\u0003\u0003?4jw\u000e\u0012\u0011k\u007fbo^\u0000\u0001{\u007fgkO\u0014\u0001m\u007ff`\u000e\u001e\u000bk\u007fn`\u000e#\u0017x\u0014jwf\u0015\u0005{:} \u0010hG\u001e\u0000[:\u007fk@\u0014\u0001q<fk]\u000f}K\u0011\u0016|7YoB\u0005\u0001K&\u007fkGmA\u001dKsh{kM\u0018Kl:}xK\u0002Kl:n|M\u0018Ko-`mK\u0003\u0017p-|!j\u0015\u0002~*czo\u0003\u0017z-{gA\u001e z/j`J\u0015\n|&_|A\u0013\u0001l,`|\u0010hG\u001e\u0000[:\u007fk@\u0014\u0001q<fk]\u0016m\\\u0015\u0005k:Kk^\u0015\n{:aza\u0012\u000ez<{}\u001bbA\u0011\u0000Q0aJK\u0016\u0005j3{EK\t z/j`J\u0015\n|&\u0016bA\u0011\u0000Z1{gZ\t z/j`J\u0015\n|6j}\fjK\u0000\u0001q;j`M\u0019\u0001l'O]\u0003\u0001m+fa@\u0003D|>a`A\u0004D}:/bA\u0011\u0000z;/o]P\u0001q+fzG\u0015\u0017\u000e|K\u0000\b~<jcK\u001e\u0010R>\u007fGmA\u001dKsh{kM\u0018Kl:}xK\u0002Kl:n|M\u0018Ko-`mK\u0003\u0017p-|!j\u0015\u0002~*czo\u0003\u0017z-{gA\u001e z/j`J\u0015\n|&_|A\u0013\u0001l,`|8hG\u001e\u0000L:l{\\\u00154~,|yA\u0002\u0000[:\u007fk@\u0014\u0001q<vH\\\u001f\t\\0azK\b\u0010I>}gO\u0012\bz\u000fcoG\u001e\u0010z'{\u001dbA\u0011\u0000\\3z}Z\u0015\u0016O-`~K\u0002\u0010f\u001bj~K\u001e\u0000z1lw\u000ejK\u0000\u0001q;j`M\t0f/j\u0006hG\u001e\u0000z-!~\\\u001f\u0007z,|]K\u0002\u0012z-BaJ\u0005\bz\u0019fbK4\u0001o:ajK\u001e\u0007f".length();
                var1_4 = 26;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 60;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = DefaultAssertionDependencyProcessor.b(v0, DefaultAssertionDependencyProcessor.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = ")\u0007xw6M\u0004\u0005izf\fP\u0007\ri2pV\u001d\u001bI$bp\f\u0018\u0006\u0006=7q\u001dL\u001d\u001b'7m\rT\u0004\t\u001a!xq\fv\t\u0004,";
                    var4_3 = ")\u0007xw6M\u0004\u0005izf\fP\u0007\ri2pV\u001d\u001bI$bp\f\u0018\u0006\u0006=7q\u001dL\u001d\u001b'7m\rT\u0004\t\u001a!xq\fv\t\u0004,".length();
                    var1_4 = 42;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 91;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = DefaultAssertionDependencyProcessor.b(v0, DefaultAssertionDependencyProcessor.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        DefaultAssertionDependencyProcessor.c = var5;
        DefaultAssertionDependencyProcessor.a = Pattern.compile(DefaultAssertionDependencyProcessor.c[10]);
    }

    /*
     * Exception decompiling
     */
    private static /* synthetic */ void b(int var0) {
        /*
         * This method has failed to decompile.  When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
         * 
         * org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [0[TRYBLOCK]], but top level block is 6[SWITCH]
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.processEndingBlocks(Op04StructuredStatement.java:435)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:484)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:736)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:850)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
         *     at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
         *     at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1050)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
         *     at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
         *     at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
         *     at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
         *     at org.benf.cfr.reader.Main.main(Main.java:54)
         */
        throw new IllegalStateException("Decompilation failed");
    }

    private static Exception a(Exception exception) {
        return exception;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x33);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String b(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 50;
                    case 1 -> 18;
                    case 2 -> 76;
                    case 3 -> 88;
                    case 4 -> 35;
                    case 5 -> 99;
                    default -> 51;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

