/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.AsyncAdminMethods$JobId
 */
package com.l7tech.server.admin;

import com.l7tech.gateway.common.AsyncAdminMethods;
import com.l7tech.server.admin.AsyncAdminMethodsImpl;
import com.l7tech.server.admin.c;
import java.util.Collection;
import java.util.HashSet;
import java.util.TimerTask;
import java.util.logging.Level;

class t
extends TimerTask {
    final AsyncAdminMethodsImpl this$0;
    private static final String a = t.a(125, t.a("z6FGZbyW1R\u0004N~~R>\\I^t=_,LJXxoQ1ZQH0wQ=\u0015V^chR+\u000f\u0004"));

    t(AsyncAdminMethodsImpl asyncAdminMethodsImpl) {
        this.this$0 = asyncAdminMethodsImpl;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    @Override
    public void run() {
        AsyncAdminMethodsImpl asyncAdminMethodsImpl = this.this$0;
        synchronized (asyncAdminMethodsImpl) {
            long l2 = System.currentTimeMillis();
            Collection<c> collection = this.this$0.c.values();
            HashSet<AsyncAdminMethods.JobId> hashSet = new HashSet<AsyncAdminMethods.JobId>();
            for (c c10 : collection) {
                long l3 = c10.f;
                if (!c10.c || l2 - l3 <= this.this$0.a) continue;
                hashSet.add(c10.a);
            }
            for (AsyncAdminMethods.JobId jobId : hashSet) {
                AsyncAdminMethodsImpl.logger.log(Level.WARNING, a + String.valueOf(jobId));
                this.this$0.c.remove(jobId);
            }
        }
    }

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

