/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.jetbrains.annotations.NotNull
 */
package com.l7tech.server.bundling.exceptions;

import com.l7tech.server.bundling.EntityMappingInstructions;
import com.l7tech.server.bundling.exceptions.BundleImportException;
import org.jetbrains.annotations.NotNull;

/*
 * Exception performing whole class analysis ignored.
 */
public class IncorrectMappingInstructionsException
extends BundleImportException {
    private static final long serialVersionUID = 3836314954706329670L;
    private static final String exceptionMessage;
    private static final String[] b;

    public IncorrectMappingInstructionsException(@NotNull EntityMappingInstructions entityMappingInstructions, @NotNull String string) {
        if (entityMappingInstructions == null) {
            IncorrectMappingInstructionsException.$$$reportNull$$$0(0);
        }
        if (string == null) {
            IncorrectMappingInstructionsException.$$$reportNull$$$0(1);
        }
        super(entityMappingInstructions, String.format(b[6], string, entityMappingInstructions.getSourceEntityHeader().toStringVerbose()));
    }

    public IncorrectMappingInstructionsException(@NotNull EntityMappingInstructions entityMappingInstructions, @NotNull String string, @NotNull Throwable throwable) {
        if (entityMappingInstructions == null) {
            IncorrectMappingInstructionsException.$$$reportNull$$$0(2);
        }
        if (string == null) {
            IncorrectMappingInstructionsException.$$$reportNull$$$0(3);
        }
        if (throwable == null) {
            IncorrectMappingInstructionsException.$$$reportNull$$$0(4);
        }
        super(entityMappingInstructions, String.format(b[3], string, entityMappingInstructions.getSourceEntityHeader().toStringVerbose()), throwable);
    }

    /*
     * Exception decompiling
     */
    private static /* synthetic */ void $$$reportNull$$$0(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 1[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 IllegalArgumentException b(IllegalArgumentException illegalArgumentException) {
        return illegalArgumentException;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[7];
                var3_1 = 0;
                var2_2 = "Ir;3x'\u0010KG|&l}~\u0003Ap#lb,\u0005Rv9ls<\u0019@\u007f\"-vf\u0012\\p.3e \u0018J`d\n\u007f*\u0018Va. e\u0004\u0016Tc\"-v\u0000\u0019Wg96r=\u001eK}8\u0006i*\u0012Tg\",\u007f>ea,6|,\u0019P3-,ci7j|?\rd%\u001b\u0004c*1p$\u0012Pv9c6l\u0004\u00033$%1l\u0004\n68c|<\u0004P3%,ei\u0015A3%6}%7m}(,c;\u0012Ggk.p9\u0007M},cx'\u0004Pa> e \u0018J`qc4xSW=k\u000ep9\u0007M},cw&\u0005\u001e3nq5:\u0006\u0018z%*ew";
                var4_3 = "Ir;3x'\u0010KG|&l}~\u0003Ap#lb,\u0005Rv9ls<\u0019@\u007f\"-vf\u0012\\p.3e \u0018J`d\n\u007f*\u0018Va. e\u0004\u0016Tc\"-v\u0000\u0019Wg96r=\u001eK}8\u0006i*\u0012Tg\",\u007f>ea,6|,\u0019P3-,ci7j|?\rd%\u001b\u0004c*1p$\u0012Pv9c6l\u0004\u00033$%1l\u0004\n68c|<\u0004P3%,ei\u0015A3%6}%7m}(,c;\u0012Ggk.p9\u0007M},cx'\u0004Pa> e \u0018J`qc4xSW=k\u000ep9\u0007M},cw&\u0005\u001e3nq5:\u0006\u0018z%*ew".length();
                var1_4 = 7;
                var0_5 = -1;
lbl7:
                // 2 sources

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

                while (true) {
                    var5[var3_1++] = IncorrectMappingInstructionsException.b(v0, IncorrectMappingInstructionsException.b(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "Qn (h6\n7ue04{#\n_\u007fs6h!\u001fUe4{`?\u001cHy&8}8\u0000Rxi{,`KO%s\u0016h!\u001fUe4{o>\u001d\u0006+vi-\"";
                    var4_3 = "Qn (h6\n7ue04{#\n_\u007fs6h!\u001fUe4{`?\u001cHy&8}8\u0000Rxi{,`KO%s\u0016h!\u001fUe4{o>\u001d\u0006+vi-\"".length();
                    var1_4 = 7;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 39;
                        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++] = IncorrectMappingInstructionsException.b(v0, IncorrectMappingInstructionsException.b(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;
            }
        }
        IncorrectMappingInstructionsException.b = var5;
        IncorrectMappingInstructionsException.exceptionMessage = IncorrectMappingInstructionsException.b[6];
    }

    private static char[] b(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x48);
        }
        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 -> 27;
                    case 1 -> 44;
                    case 2 -> 116;
                    case 3 -> 124;
                    case 4 -> 46;
                    case 5 -> 118;
                    default -> 72;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

