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

import com.l7tech.objectmodel.Goid;
import com.l7tech.server.uddi.o;

class SubscribeUDDIEvent
extends o {
    private final Goid b;
    private final Type c;
    private final boolean d;

    SubscribeUDDIEvent(Goid goid, Type type) {
        this(goid, type, false);
    }

    SubscribeUDDIEvent(Goid goid, Type type, boolean bl2) {
        super(false);
        this.b = goid;
        this.c = type;
        this.d = bl2;
    }

    Goid a() {
        return this.b;
    }

    Type b() {
        return this.c;
    }

    boolean c() {
        return this.d;
    }

    static final class Type
    extends Enum<Type> {
        public static final /* enum */ Type SUBSCRIBE;
        public static final /* enum */ Type UNSUBSCRIBE;
        private static final /* synthetic */ Type[] $VALUES;

        public static Type[] values() {
            return (Type[])$VALUES.clone();
        }

        public static Type valueOf(String string) {
            return Enum.valueOf(Type.class, string);
        }

        private static /* synthetic */ Type[] $values() {
            return new Type[]{SUBSCRIBE, UNSUBSCRIBE};
        }

        /*
         * Enabled aggressive block sorting
         */
        static {
            String[] stringArray = new String[2];
            int n2 = 0;
            String string = "wY#c!\u00072p^2s\tqB2e \u00068`R";
            int n3 = "wY#c!\u00072p^2s\tqB2e \u00068`R".length();
            int n4 = 11;
            int n5 = -1;
            while (true) {
                int n6 = ++n5;
                stringArray[n2++] = Type.a(120, Type.a(string.substring(n6, n6 + n4)));
                if ((n5 += n4) >= n3) {
                    SUBSCRIBE = new Type();
                    UNSUBSCRIBE = new Type();
                    $VALUES = Type.$values();
                    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] ^ 9);
            }
            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 -> 90;
                        case 1 -> 111;
                        case 2 -> 8;
                        case 3 -> 78;
                        case 4 -> 27;
                        case 5 -> 44;
                        default -> 9;
                    })));
                    ++n3;
                    n4 = n4;
                } while (n4 > n3);
            }
            return new String(cArray2).intern();
        }
    }
}

