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

import com.l7tech.server.communityschemas.SchemaManagerImpl;
import com.l7tech.util.ExceptionUtils;
import java.util.TimerTask;
import java.util.logging.Level;

abstract class r
extends TimerTask {
    private static final String a = r.a(94, r.a("CHv+f\u001dPbCwss\u0000PsVg:y\u0016\u0013yH3 u\u0010V{G30w\u001b[s\u0006~2\u007f\u0016GsHr=u\u001d\u0013bNa6w\u001c\t6"));

    private r() {
    }

    @Override
    public final void run() {
        try {
            this.doRun();
        }
        catch (Throwable throwable) {
            SchemaManagerImpl.a.log(Level.SEVERE, a + ExceptionUtils.getMessage((Throwable)throwable), throwable);
        }
    }

    protected abstract void doRun();

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x6D);
        }
        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 -> 72;
                    case 1 -> 120;
                    case 2 -> 77;
                    case 3 -> 13;
                    case 4 -> 72;
                    case 5 -> 38;
                    default -> 109;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

