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

import com.l7tech.gateway.common.transport.SsgConnector;
import com.l7tech.server.transport.TransportModule;
import com.l7tech.util.ExceptionUtils;
import java.util.TimerTask;
import java.util.logging.Level;

class d
extends TimerTask {
    final SsgConnector val$roc;
    final TransportModule this$0;
    private static final String[] a;

    d(TransportModule transportModule, SsgConnector ssgConnector) {
        this.this$0 = transportModule;
        this.val$roc = ssgConnector;
    }

    @Override
    public void run() {
        try {
            this.this$0.addConnector(this.val$roc);
        }
        catch (Exception exception) {
            String string = ExceptionUtils.getMessage((Throwable)exception);
            int n2 = this.val$roc.getPort();
            String string2 = this.val$roc.getScheme();
            String[] stringArray = a;
            this.this$0.logger.log(Level.WARNING, stringArray[0] + string2 + stringArray[2] + n2 + stringArray[1] + string, ExceptionUtils.getDebugException((Throwable)exception));
        }
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[3];
        int n2 = 0;
        String string = "/\\\nU5X&\u000e]KD-\\t\u000e\u0012\u0002@\u0012\u0013ZQ\u0004Y7Xe\u000e]\u0019\u00176S&\n]\u0019Cy";
        int n3 = "/\\\nU5X&\u000e]KD-\\t\u000e\u0012\u0002@\u0012\u0013ZQ\u0004Y7Xe\u000e]\u0019\u00176S&\n]\u0019Cy".length();
        int n4 = 16;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = d.a(42, d.a(string.substring(n6, n6 + n4)));
            if ((n5 += n4) >= n3) {
                a = stringArray;
                return;
            }
            n4 = string.charAt(n5);
        }
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x2C);
        }
        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 -> 80;
                    case 1 -> 24;
                    case 2 -> 65;
                    case 3 -> 29;
                    case 4 -> 115;
                    case 5 -> 23;
                    default -> 44;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

