/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.extension.provider.sharedstate;

public class SharedStateProviderLowMemoryException
extends RuntimeException {
    static final long serialVersionUID = 4072562250460821323L;
    private static final String a = SharedStateProviderLowMemoryException.a(11, SharedStateProviderLowMemoryException.a("a'7?$F'"));

    public SharedStateProviderLowMemoryException(String string, String string2, Throwable throwable) {
        super(SharedStateProviderLowMemoryException.formatMessage(string, string2), throwable);
    }

    public SharedStateProviderLowMemoryException(String string, String string2) {
        super(SharedStateProviderLowMemoryException.formatMessage(string, string2));
    }

    private static String formatMessage(String string, String string2) {
        return String.format(a, string, string2);
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x5F);
        }
        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 -> 49;
                    case 1 -> 9;
                    case 2 -> 79;
                    case 3 -> 105;
                    case 4 -> 15;
                    case 5 -> 104;
                    default -> 95;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

