/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.ExceptionUtils
 *  com.l7tech.xml.xslt.CompiledStylesheet
 */
package com.l7tech.server.policy.assertion.xml;

import com.l7tech.server.policy.assertion.xml.ServerXslTransformation;
import com.l7tech.server.policy.assertion.xml.j;
import com.l7tech.server.util.res.ResourceObjectFactory;
import com.l7tech.util.ExceptionUtils;
import com.l7tech.xml.xslt.CompiledStylesheet;
import java.io.IOException;
import java.text.ParseException;

class i
implements ResourceObjectFactory<CompiledStylesheet> {
    final ServerXslTransformation this$0;
    private static final String a = i.a(43, i.a("Zlf8*Cx{m'*'T+j\"t.?J=|jb?2\u001cx"));

    i(ServerXslTransformation serverXslTransformation) {
        this.this$0 = serverXslTransformation;
    }

    @Override
    public CompiledStylesheet createResourceObject(String string) throws ParseException {
        try {
            return ServerXslTransformation.g.createUserObject(this.this$0.c(""), new j(this, string));
        }
        catch (IOException iOException) {
            throw (ParseException)new ParseException(a + ExceptionUtils.getMessage((Throwable)iOException), 0).initCause(iOException);
        }
    }

    @Override
    public void closeResourceObject(CompiledStylesheet compiledStylesheet) {
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x73);
        }
        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 -> 36;
                    case 1 -> 41;
                    case 2 -> 44;
                    case 3 -> 113;
                    case 4 -> 109;
                    case 5 -> 13;
                    default -> 115;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

