/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.ca.apim.gateway.extension.sharedstate.SharedExecutorServiceProvider
 *  com.l7tech.util.Config
 */
package com.l7tech.server.extension.registry.sharedstate;

import com.ca.apim.gateway.extension.sharedstate.SharedExecutorServiceProvider;
import com.l7tech.server.extension.provider.sharedstate.LocalExecutorServiceProvider;
import com.l7tech.server.extension.registry.AbstractRegistryImpl;
import com.l7tech.util.Config;
import java.util.Objects;
import java.util.logging.Logger;

public class SharedExecutorProviderRegistry
extends AbstractRegistryImpl<SharedExecutorServiceProvider> {
    private static final Logger c;
    private static final String d;
    private static final String e;
    private Config f;
    private static final String[] h;

    public SharedExecutorProviderRegistry(Config config) {
        Objects.requireNonNull(config, h[1]);
        this.f = config;
        this.register(d, new LocalExecutorServiceProvider(), new String[0]);
    }

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

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "\u0014z$\r#\\\u0014\u0016e NnZ[\u0003p>B9\u0013_\u000fa,M3TU\u0019;-J3IH\u001ew<W%Y_\u000fp*V4RHYq,E!HV\u0003\u00154z'E)Z\u001a\u0014t'M/I\u001a\u0015piM5QV";
        int n3 = "\u0014z$\r#\\\u0014\u0016e NnZ[\u0003p>B9\u0013_\u000fa,M3TU\u0019;-J3IH\u001ew<W%Y_\u000fp*V4RHYq,E!HV\u0003\u00154z'E)Z\u001a\u0014t'M/I\u001a\u0015piM5QV".length();
        int n4 = 57;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = SharedExecutorProviderRegistry.b(127, SharedExecutorProviderRegistry.b(string.substring(n6, n6 + n4)));
            if ((n5 += n4) >= n3) {
                h = stringArray;
                e = h[0];
                c = Logger.getLogger(SharedExecutorProviderRegistry.class.getName());
                d = LocalExecutorServiceProvider.class.getName();
                return;
            }
            n4 = string.charAt(n5);
        }
    }

    private static char[] b(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x45);
        }
        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 -> 8;
                    case 1 -> 106;
                    case 2 -> 54;
                    case 3 -> 92;
                    case 4 -> 63;
                    case 5 -> 66;
                    default -> 69;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

