/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.service.PublishedService
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.util.Functions$Binary
 *  com.l7tech.util.Pair
 *  com.l7tech.util.Triple
 */
package com.l7tech.server.service.resolution;

import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.objectmodel.Goid;
import com.l7tech.server.service.resolution.NonUniqueServiceResolutionException;
import com.l7tech.server.service.resolution.SoapActionResolver;
import com.l7tech.server.service.resolution.UrnResolver;
import com.l7tech.util.Functions;
import com.l7tech.util.Pair;
import com.l7tech.util.Triple;
import java.util.Map;
import java.util.Set;

class c
implements Functions.Binary<Set<Triple<String, String, String>>, Set<Triple<String, String, String>>, Pair<Map<String, Object>, PublishedService>> {
    final Goid val$serviceGoid;
    private static final String[] a;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    c(NonUniqueServiceResolutionException nonUniqueServiceResolutionException, Goid goid) {
        this.val$serviceGoid = goid;
    }

    public Set<Triple<String, String, String>> call(Set<Triple<String, String, String>> set, Pair<Map<String, Object>, PublishedService> pair) {
        if (Goid.equals((Goid)((PublishedService)pair.right).getGoid(), (Goid)this.val$serviceGoid)) {
            String[] stringArray = a;
            set.add((Triple<String, String, String>)new Triple((Object)((PublishedService)pair.right).getRoutingUri(), (Object)((String)((Map)pair.left).get(UrnResolver.class.getName() + stringArray[0])), (Object)((String)((Map)pair.left).get(SoapActionResolver.class.getName() + stringArray[1]))));
        }
        return set;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "\u0007P\u0018V%8\u0006\u0007P\u0018V%8";
        int n3 = "\u0007P\u0018V%8\u0006\u0007P\u0018V%8".length();
        int n4 = 6;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = c.a(109, c.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] ^ 0x67);
        }
        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 -> 68;
                    case 1 -> 75;
                    case 2 -> 20;
                    case 3 -> 87;
                    case 4 -> 61;
                    case 5 -> 48;
                    default -> 103;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

