/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.HexUtils
 *  com.l7tech.util.SyspropUtil
 */
package com.l7tech.server;

import com.l7tech.server.NodePropertiesLoader;
import com.l7tech.util.HexUtils;
import com.l7tech.util.SyspropUtil;
import java.security.SecureRandom;
import java.util.Properties;
import java.util.logging.Logger;

public class NodePropertiesLoaderImpl
implements NodePropertiesLoader {
    private static final Logger a;
    private static final String b;
    private static final String c;
    private static final String d;
    private static final String e;
    private static final String f;
    private static final String g;
    private static final String h;
    private static volatile NodePropertiesLoader i;
    private Properties j = new Properties();
    private final boolean k = SyspropUtil.getBoolean((String)l[22], (boolean)false);
    private static final String[] l;

    private NodePropertiesLoaderImpl() {
        this.a();
    }

    /*
     * Exception decompiling
     */
    private void a() {
        /*
         * 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 [3[TRYBLOCK]], but top level block is 10[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:1055)
         *     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 String b() {
        byte[] byArray = new byte[32];
        new SecureRandom().nextBytes(byArray);
        return HexUtils.encodeBase64((byte[])byArray, (boolean)true).substring(0, 32);
    }

    @Override
    public Properties getProperties() {
        return this.j;
    }

    @Override
    public String getProperty(String string, String string2) {
        return this.j.getProperty(string, string2);
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public static NodePropertiesLoader getInstance() {
        if (null != i) return i;
        Class<NodePropertiesLoaderImpl> clazz = NodePropertiesLoaderImpl.class;
        synchronized (NodePropertiesLoaderImpl.class) {
            if (null != i) return i;
            i = new NodePropertiesLoaderImpl();
            // ** MonitorExit[var0] (shouldn't be in output)
            return i;
        }
    }

    @Override
    public boolean isDiskless() {
        return this.k;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[26];
                var3_1 = 0;
                var2_2 = "*\u001bIb)B)\f\n^~(\u000b&\bIUb?\u0007h\u001f\u001bT}>\u0010<\u0006\fH\u0007\u000b\f]l.\u000e<(\u001d\fHb.\u0010+\n\u001a\u0014c4\u0006-?\u001bT}('&\u0019?Z\u007f\u001f\u0007.\u001cGK\u007f4\u0012-\u001d\u001dRh(\b\u0019\bId:\u0000$\n\u0007\u000b\f]l.\u000e<\u000f\u0001\u0006_hu\u0012:\u0000\u0019^\u007f/\u000b-\u001c/HIUb?\u0007h\u001f\u001bT}>\u0010<\u0016ILe>\fh\u001a\u001aRc<B,\u0006\u001aPa>\u0011;O\nTc=\u000b/O\u0004Ti>\b(,uH\t#\u001c*\u0019\f\u0006V#7U<\n\nS#?\u000b;\u0004\u0005^~(!'\u0001\u000fRj\u0003HS\u001b\u001e\u0006\u0007Ml7\u000b,O\u0007Ti>B8\u001d\u0006Kh)\u0016!\n\u001a\u001bk2\u000e-UI(\u001d\fHb.\u0010+\n\u001a\u0014c4\u0006-?\u001bT}('&\u0019?Z\u007f\u001f\u0007.\u001cGK\u007f4\u0012-\u001d\u001dRh(\b(,uH\t#\u001c*0HI^c-\u000b:\u0000\u0007Vh5\u0016h\u0019\bId:\u0000$\nIVx(\u0016h\r\f\u001bi>\u0004!\u0001\f_-=\r:O\u001dSh{E?,\u0006Na?B&\u0000\u001d\u001ba4\u0003,O\u0007Ti>B8\u001d\u0006Kh)\u0016!\n\u001a\u001bh5\u0014!\u001d\u0006U`>\f<O\u001fZ\u007f2\u0003*\u0003\f\u001bi>\u0004!\u0001\u0000Od4\f;\u0016(\fUh)\u0003<\n\r\u001b{:\u000e=\nI]b)BoO\u0005;\u0001^-|\b\u0000\u0019Od4\f)\u0003\u000f\f\u0006Uk2\u0005\f\u0006\u001b^n/\r:\u0016\b\u0019\bId:\u0000$\n\u0019:\u001aRc<B,\n\u000fZx7\u0016h\u0019\bWx>B.\u0000\u001b\u001b*':\u0007Ih8\r/\u0001\u0000Ah?B&\u0000\r^-+\u0010'\u001f\fIy\"B,\n\u000fRc2\u0016!\u0000\u0007\u0001-\u0019\f\u0006V#7U<\n\nS#?\u000b;\u0004\u0005^~(!'\u0001\u000fRj\b\u0000\u0019Od4\f)\u0003";
                var4_3 = "*\u001bIb)B)\f\n^~(\u000b&\bIUb?\u0007h\u001f\u001bT}>\u0010<\u0006\fH\u0007\u000b\f]l.\u000e<(\u001d\fHb.\u0010+\n\u001a\u0014c4\u0006-?\u001bT}('&\u0019?Z\u007f\u001f\u0007.\u001cGK\u007f4\u0012-\u001d\u001dRh(\b\u0019\bId:\u0000$\n\u0007\u000b\f]l.\u000e<\u000f\u0001\u0006_hu\u0012:\u0000\u0019^\u007f/\u000b-\u001c/HIUb?\u0007h\u001f\u001bT}>\u0010<\u0016ILe>\fh\u001a\u001aRc<B,\u0006\u001aPa>\u0011;O\nTc=\u000b/O\u0004Ti>\b(,uH\t#\u001c*\u0019\f\u0006V#7U<\n\nS#?\u000b;\u0004\u0005^~(!'\u0001\u000fRj\u0003HS\u001b\u001e\u0006\u0007Ml7\u000b,O\u0007Ti>B8\u001d\u0006Kh)\u0016!\n\u001a\u001bk2\u000e-UI(\u001d\fHb.\u0010+\n\u001a\u0014c4\u0006-?\u001bT}('&\u0019?Z\u007f\u001f\u0007.\u001cGK\u007f4\u0012-\u001d\u001dRh(\b(,uH\t#\u001c*0HI^c-\u000b:\u0000\u0007Vh5\u0016h\u0019\bId:\u0000$\nIVx(\u0016h\r\f\u001bi>\u0004!\u0001\f_-=\r:O\u001dSh{E?,\u0006Na?B&\u0000\u001d\u001ba4\u0003,O\u0007Ti>B8\u001d\u0006Kh)\u0016!\n\u001a\u001bh5\u0014!\u001d\u0006U`>\f<O\u001fZ\u007f2\u0003*\u0003\f\u001bi>\u0004!\u0001\u0000Od4\f;\u0016(\fUh)\u0003<\n\r\u001b{:\u000e=\nI]b)BoO\u0005;\u0001^-|\b\u0000\u0019Od4\f)\u0003\u000f\f\u0006Uk2\u0005\f\u0006\u001b^n/\r:\u0016\b\u0019\bId:\u0000$\n\u0019:\u001aRc<B,\n\u000fZx7\u0016h\u0019\bWx>B.\u0000\u001b\u001b*':\u0007Ih8\r/\u0001\u0000Ah?B&\u0000\r^-+\u0010'\u001f\fIy\"B,\n\u000fRc2\u0016!\u0000\u0007\u0001-\u0019\f\u0006V#7U<\n\nS#?\u000b;\u0004\u0005^~(!'\u0001\u000fRj\b\u0000\u0019Od4\f)\u0003".length();
                var1_4 = 31;
                var0_5 = -1;
lbl7:
                // 2 sources

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

                while (true) {
                    var5[var3_1++] = NodePropertiesLoaderImpl.a(v0, NodePropertiesLoaderImpl.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "lk2\u0005\u0018\u007fWmt3\u0012Bf@q\u0003%>v";
                    var4_3 = "lk2\u0005\u0018\u007fWmt3\u0012Bf@q\u0003%>v".length();
                    var1_4 = 15;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 44;
                        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++] = NodePropertiesLoaderImpl.a(v0, NodePropertiesLoaderImpl.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;
            }
        }
        NodePropertiesLoaderImpl.l = var5;
        NodePropertiesLoaderImpl.c = NodePropertiesLoaderImpl.l[24];
        NodePropertiesLoaderImpl.e = NodePropertiesLoaderImpl.l[19];
        NodePropertiesLoaderImpl.g = NodePropertiesLoaderImpl.l[23];
        NodePropertiesLoaderImpl.h = NodePropertiesLoaderImpl.l[7];
        NodePropertiesLoaderImpl.b = NodePropertiesLoaderImpl.l[8];
        NodePropertiesLoaderImpl.d = NodePropertiesLoaderImpl.l[2];
        NodePropertiesLoaderImpl.f = NodePropertiesLoaderImpl.l[1];
        NodePropertiesLoaderImpl.a = Logger.getLogger(NodePropertiesLoaderImpl.class.getName());
        NodePropertiesLoaderImpl.i = null;
    }

    private static Throwable a(Throwable throwable) {
        return throwable;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 9);
        }
        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 -> 46;
                    case 1 -> 40;
                    case 2 -> 122;
                    case 3 -> 76;
                    case 4 -> 26;
                    case 5 -> 35;
                    default -> 9;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

