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

import com.l7tech.server.module.ServerModuleFileListener;
import com.l7tech.util.ExceptionUtils;
import java.util.logging.Level;

class d
implements Runnable {
    final ServerModuleFileListener this$0;
    private static final String a = d.a(106, d.a("p_\u0004MvXT@ULI`_]UE\u0005Cv\u001cOMX\u0000I8lJJR\t_kUVB\u0011+MlYODHL\u007fl]JQD\u001c\f}J]KEV\f"));

    d(ServerModuleFileListener serverModuleFileListener) {
        this.this$0 = serverModuleFileListener;
    }

    @Override
    public void run() {
        try {
            this.this$0.b();
        }
        catch (RuntimeException runtimeException) {
            ServerModuleFileListener.a.log(Level.SEVERE, a + ExceptionUtils.getMessageWithCause((Throwable)runtimeException), ExceptionUtils.getDebugException((Throwable)runtimeException));
            Thread thread = Thread.currentThread();
            Thread.UncaughtExceptionHandler uncaughtExceptionHandler = thread.getUncaughtExceptionHandler();
            try {
                if (uncaughtExceptionHandler != null) {
                    uncaughtExceptionHandler.uncaughtException(thread, runtimeException);
                }
            }
            catch (RuntimeException runtimeException2) {
                throw d.a(runtimeException2);
            }
        }
    }

    private static RuntimeException a(RuntimeException runtimeException) {
        return runtimeException;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x52);
        }
        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 -> 79;
                    case 1 -> 91;
                    case 2 -> 6;
                    case 3 -> 70;
                    case 4 -> 114;
                    case 5 -> 86;
                    default -> 82;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

