/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.ObjectModelException
 */
package com.l7tech.server.wsdm.subscription;

import com.l7tech.objectmodel.ObjectModelException;
import com.l7tech.server.wsdm.subscription.SubscriptionNotifier;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;

class l
implements Runnable {
    final List val$callbacks;
    final SubscriptionNotifier this$0;
    private static final String[] a;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    l(SubscriptionNotifier subscriptionNotifier, List list) {
        this.this$0 = subscriptionNotifier;
        this.val$callbacks = list;
    }

    @Override
    public void run() {
        for (SubscriptionNotifier.ServiceStatusNotificationContext serviceStatusNotificationContext : this.val$callbacks) {
            try {
                String string = this.this$0.a(serviceStatusNotificationContext);
                this.this$0.a(serviceStatusNotificationContext.target, string, serviceStatusNotificationContext.notificationPolicyGuid);
            }
            catch (IOException iOException) {
                String[] stringArray = a;
                SubscriptionNotifier.a.log(Level.SEVERE, stringArray[1], iOException);
            }
        }
        try {
            this.this$0.subscriptionManager.notified(this.this$0.k);
        }
        catch (ObjectModelException objectModelException) {
            SubscriptionNotifier.a.log(Level.WARNING, a[0], objectModelException);
        }
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "UJ|\nG<ntK=\u001aN:!r@=\u0006D-'fM~\t_0!n\u0004n\u001cJ-;s(UJ|\nG<ntK=\u000fN7+rEi\r\u000b7!tM{\u0001H8:iKsHO6-uIx\u0006_";
        int n3 = "UJ|\nG<ntK=\u001aN:!r@=\u0006D-'fM~\t_0!n\u0004n\u001cJ-;s(UJ|\nG<ntK=\u000fN7+rEi\r\u000b7!tM{\u0001H8:iKsHO6-uIx\u0006_".length();
        int n4 = 36;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = l.a(37, l.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] ^ 0x6B);
        }
        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 -> 37;
                    case 1 -> 1;
                    case 2 -> 56;
                    case 3 -> 77;
                    case 4 -> 14;
                    case 5 -> 124;
                    default -> 107;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

