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

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

class e
implements Runnable {
    final EntityInvalidationEvent val$entityInvalidationEvent;
    final ServerModuleFileListener this$0;
    private static final String a = e.a(17, e.a("eCD\u0002N\u0015\rUI\f\u0006X\u0012\u0004@YE\fNQ\u0016XD@\u0006\u0000!\u0013_NI\u0010S\u0018\u000fW\ri\rT\u0018\u0015I\re\rV\u0010\rYIM\u0017I\u001e\u000f\u0010HZ\u0006N\u0005[\u0010"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    e(ServerModuleFileListener serverModuleFileListener, EntityInvalidationEvent entityInvalidationEvent) {
        this.this$0 = serverModuleFileListener;
        this.val$entityInvalidationEvent = entityInvalidationEvent;
    }

    @Override
    public void run() {
        try {
            this.this$0.a(this.val$entityInvalidationEvent);
        }
        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 e.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] ^ 0x70);
        }
        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 -> 33;
                    case 1 -> 60;
                    case 2 -> 61;
                    case 3 -> 114;
                    case 4 -> 49;
                    case 5 -> 96;
                    default -> 112;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

