/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.hibernate.HibernateException
 *  org.hibernate.Session
 *  org.springframework.orm.hibernate5.HibernateCallback
 */
package com.l7tech.server.wsdm.subscription;

import com.l7tech.server.wsdm.subscription.SubscriptionManagerImpl;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate5.HibernateCallback;

class g
implements HibernateCallback<Void> {
    final long val$now;
    final String val$clusterNodeId;
    private static final String[] a;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    g(SubscriptionManagerImpl subscriptionManagerImpl, long l2, String string) {
        this.val$now = l2;
        this.val$clusterNodeId = string;
    }

    public Void doInHibernate(Session session) throws HibernateException {
        String[] stringArray = a;
        session.createQuery(SubscriptionManagerImpl.v).setLong(stringArray[0], this.val$now).setString(stringArray[1], this.val$clusterNodeId).executeUpdate();
        return null;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "C/u\u001fP4\u0016F(o\b\u007f/\u000b@ R\u0002s>\u000b@9h\u000el\u0015\rK+O\u000f";
        int n3 = "C/u\u001fP4\u0016F(o\b\u007f/\u000b@ R\u0002s>\u000b@9h\u000el\u0015\rK+O\u000f".length();
        int n4 = 20;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = g.a(100, g.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] ^ 6);
        }
        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 -> 75;
                    case 1 -> 42;
                    case 2 -> 98;
                    case 3 -> 15;
                    case 4 -> 122;
                    case 5 -> 63;
                    default -> 6;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

