/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.service.PublishedService
 */
package com.l7tech.server.service.resolution;

import com.l7tech.gateway.common.service.PublishedService;
import java.util.Collections;
import java.util.Set;

public class Result {
    private static final Set<PublishedService> a;
    public static final Result NO_MATCH;
    public static final Result NOT_APPLICABLE;
    private final Set<PublishedService> b;
    private static final String c;

    public Set<PublishedService> getMatches() {
        return this.b;
    }

    Result(Set<PublishedService> set) {
        if (set == null) {
            throw new NullPointerException(c);
        }
        this.b = set;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public boolean equals(Object object) {
        Result result;
        block21: {
            block20: {
                block19: {
                    try {
                        try {
                            try {
                                if (object != NO_MATCH && object != NOT_APPLICABLE) break block19;
                            }
                            catch (NullPointerException nullPointerException) {
                                throw Result.a(nullPointerException);
                            }
                            if (this != object) return false;
                            return true;
                        }
                        catch (NullPointerException nullPointerException) {
                            throw Result.a(nullPointerException);
                        }
                    }
                    catch (NullPointerException nullPointerException) {
                        throw Result.a(nullPointerException);
                    }
                }
                try {
                    if (this == object) {
                        return true;
                    }
                }
                catch (NullPointerException nullPointerException) {
                    throw Result.a(nullPointerException);
                }
                try {
                    try {
                        if (object == null) return false;
                        if (this.getClass() == object.getClass()) break block20;
                        return false;
                    }
                    catch (NullPointerException nullPointerException) {
                        throw Result.a(nullPointerException);
                    }
                }
                catch (NullPointerException nullPointerException) {
                    throw Result.a(nullPointerException);
                }
            }
            result = (Result)object;
            try {
                try {
                    if (this.b == null) break block21;
                    if (this.b.equals(result.b)) return true;
                    return false;
                }
                catch (NullPointerException nullPointerException) {
                    throw Result.a(nullPointerException);
                }
            }
            catch (NullPointerException nullPointerException) {
                throw Result.a(nullPointerException);
            }
        }
        try {
            if (result.b == null) return true;
            return false;
        }
        catch (NullPointerException nullPointerException) {
            throw Result.a(nullPointerException);
        }
    }

    public int hashCode() {
        int n2;
        try {
            if (this.b == a) {
                return super.hashCode();
            }
        }
        catch (NullPointerException nullPointerException) {
            throw Result.a(nullPointerException);
        }
        try {
            n2 = this.b != null ? this.b.hashCode() : 0;
        }
        catch (NullPointerException nullPointerException) {
            throw Result.a(nullPointerException);
        }
        return n2;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        c = Result.a(81, Result.a("g^Uxa\rD\u0010H\u001a{aHSDR\u001b}m\u0006\u0007\u0010V\u0014bg\u0000EC"));
        a = Collections.emptySet();
        NO_MATCH = new Result(a);
        NOT_APPLICABLE = new Result(a);
    }

    private static NullPointerException a(NullPointerException nullPointerException) {
        return nullPointerException;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x71);
        }
        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 -> 97;
                    case 1 -> 106;
                    case 2 -> 36;
                    case 3 -> 71;
                    case 4 -> 85;
                    case 5 -> 57;
                    default -> 113;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

