/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.ca.apim.gateway.extension.processorinjection.ServiceInjection
 *  com.ca.apim.gateway.extension.processorinjection.ServiceInjectionContext
 *  com.l7tech.util.ExceptionUtils
 */
package com.l7tech.server.messageprocessor.injection;

import com.ca.apim.gateway.extension.processorinjection.ServiceInjection;
import com.ca.apim.gateway.extension.processorinjection.ServiceInjectionContext;
import com.l7tech.server.messageprocessor.injection.MessageProcessorInjectorImpl;
import com.l7tech.server.messageprocessor.injection.ServiceInjectionContextImpl;
import com.l7tech.util.ExceptionUtils;
import java.util.function.BiFunction;
import java.util.logging.Level;

class a
implements BiFunction<Boolean, ServiceInjection, Boolean> {
    final ServiceInjectionContextImpl val$serviceInjectionContext;
    private static final String a = com.l7tech.server.messageprocessor.injection.a.a(114, com.l7tech.server.messageprocessor.injection.a.a("E(\u0004sM\u000bq6$\u0018oA\u000b`\u007f\"\u0018%B\t}z(\u0012%P\u00074s5\u0013fQ\u001cq8m?bJ\u0007f\u007f#\u0011%E\u0006p6.\u0019kP\u0001zc$\u0018b\nHYs>\u0005dC\r.6"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    a(ServiceInjectionContextImpl serviceInjectionContextImpl) {
        this.val$serviceInjectionContext = serviceInjectionContextImpl;
    }

    /*
     * Loose catch block
     */
    @Override
    public Boolean apply(Boolean bl2, ServiceInjection serviceInjection) {
        try {
            boolean bl3;
            block7: {
                block6: {
                    if (!serviceInjection.execute((ServiceInjectionContext)this.val$serviceInjectionContext)) break block6;
                    try {
                        block8: {
                            if (!bl2.booleanValue()) break block6;
                            break block8;
                            catch (Exception exception) {
                                throw com.l7tech.server.messageprocessor.injection.a.a(exception);
                            }
                        }
                        bl3 = true;
                        break block7;
                    }
                    catch (Exception exception) {
                        throw com.l7tech.server.messageprocessor.injection.a.a(exception);
                    }
                }
                bl3 = false;
            }
            return bl3;
        }
        catch (Exception exception) {
            MessageProcessorInjectorImpl.a.log(Level.WARNING, a + ExceptionUtils.getMessageWithCause((Throwable)exception), ExceptionUtils.getDebugException((Throwable)exception));
            return bl2;
        }
    }

    private static Exception a(Exception exception) {
        return exception;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x66);
        }
        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 -> 100;
                    case 1 -> 63;
                    case 2 -> 4;
                    case 3 -> 119;
                    case 4 -> 86;
                    case 5 -> 26;
                    default -> 102;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

