/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.identity.fed.FederatedUser
 *  org.hibernate.HibernateException
 *  org.hibernate.Session
 */
package com.l7tech.server.identity.fed;

import com.l7tech.identity.fed.FederatedUser;
import com.l7tech.server.identity.fed.FederatedUserManagerImpl;
import com.l7tech.server.util.ReadOnlyHibernateCallback;
import java.sql.SQLException;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;

class f
extends ReadOnlyHibernateCallback<List> {
    final String val$email;
    final FederatedUserManagerImpl this$0;
    private static final String[] a;

    f(FederatedUserManagerImpl federatedUserManagerImpl, String string) {
        this.this$0 = federatedUserManagerImpl;
        this.val$email = string;
    }

    @Override
    protected List<FederatedUser> doInHibernateReadOnly(Session session) throws HibernateException, SQLException {
        String[] stringArray = a;
        return session.createQuery(this.this$0.t).setParameter(stringArray[1], (Object)FederatedUserManagerImpl.access$100(this.this$0)).setParameter(stringArray[0], (Object)this.val$email).list();
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "p9X\u001a}\ne&V\u0005x\u0000\bg\u001d]";
        int n3 = "p9X\u001a}\ne&V\u0005x\u0000\bg\u001d]".length();
        int n4 = 5;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = f.a(77, f.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] ^ 0x20);
        }
        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 -> 88;
                    case 1 -> 25;
                    case 2 -> 116;
                    case 3 -> 62;
                    case 4 -> 92;
                    case 5 -> 41;
                    default -> 32;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

