/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.common.io.WhirlycacheFactory
 */
package com.l7tech.server;

import com.l7tech.common.io.WhirlycacheFactory;
import com.l7tech.server.LifecycleException;
import com.l7tech.server.ServerComponentLifecycle;
import java.util.logging.Logger;

public class WhirlyLifecycle
implements ServerComponentLifecycle {
    private static final Logger a;
    private static final String[] b;

    @Override
    public void start() throws LifecycleException {
    }

    @Override
    public void stop() throws LifecycleException {
    }

    @Override
    public void close() throws LifecycleException {
        a.info(b[1]);
        WhirlycacheFactory.shutdown();
    }

    public String toString() {
        return b[0];
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "\u001fB\n%#)\u0013)I\u000b2o\u0013\u001f&^\u00118#<\u0015:\u001b\u001bB\u0016#;9\u001e/\n\u000788>P+K\u0000?*p\u0004=D\n9(~";
        int n3 = "\u001fB\n%#)\u0013)I\u000b2o\u0013\u001f&^\u00118#<\u0015:\u001b\u001bB\u0016#;9\u001e/\n\u000788>P+K\u0000?*p\u0004=D\n9(~".length();
        int n4 = 22;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = WhirlyLifecycle.a(123, WhirlyLifecycle.a(string.substring(n6, n6 + n4)));
            if ((n5 += n4) >= n3) {
                b = stringArray;
                a = Logger.getLogger(WhirlyLifecycle.class.getName());
                return;
            }
            n4 = string.charAt(n5);
        }
    }

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

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(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 -> 51;
                    case 1 -> 81;
                    case 2 -> 24;
                    case 3 -> 44;
                    case 4 -> 52;
                    case 5 -> 43;
                    default -> 11;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

