/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.cluster.ClusterNodeInfo
 *  com.l7tech.gateway.common.transport.InterfaceTag
 *  com.l7tech.objectmodel.DeleteException
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.objectmodel.UpdateException
 *  com.l7tech.util.Config
 *  com.l7tech.util.ExceptionUtils
 *  com.l7tech.util.InetAddressUtil
 *  jakarta.persistence.FlushModeType
 *  org.apache.commons.lang3.StringUtils
 *  org.hibernate.FlushMode
 *  org.hibernate.HibernateException
 *  org.hibernate.Session
 *  org.hibernate.query.Query
 *  org.springframework.orm.hibernate5.HibernateCallback
 *  org.springframework.orm.hibernate5.support.HibernateDaoSupport
 *  org.springframework.transaction.annotation.Propagation
 *  org.springframework.transaction.annotation.Transactional
 */
package com.l7tech.server.cluster;

import com.l7tech.gateway.common.cluster.ClusterNodeInfo;
import com.l7tech.gateway.common.transport.InterfaceTag;
import com.l7tech.objectmodel.DeleteException;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.UpdateException;
import com.l7tech.server.NodePropertiesLoaderImpl;
import com.l7tech.server.cluster.ClusterIDManager;
import com.l7tech.server.cluster.ClusterInfoManager;
import com.l7tech.server.cluster.c;
import com.l7tech.server.cluster.d;
import com.l7tech.server.cluster.e;
import com.l7tech.server.cluster.u;
import com.l7tech.server.cluster.v;
import com.l7tech.util.Config;
import com.l7tech.util.ExceptionUtils;
import com.l7tech.util.InetAddressUtil;
import jakarta.persistence.FlushModeType;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.text.ParseException;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.FlushMode;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.query.Query;
import org.springframework.orm.hibernate5.HibernateCallback;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Throwable.class})
public class ClusterInfoManagerImpl
extends HibernateDaoSupport
implements ClusterInfoManager {
    private static final String a;
    private static final String b;
    private static final String c;
    private static final String d;
    private static final String e;
    private static final String f;
    private static final String g;
    private static final String h;
    private static final String i;
    private static final String j;
    private static final String k;
    private static final String l;
    private static final String m;
    private static final Logger n;
    private static final long o;
    private String p;
    private String q;
    private String r;
    private final String s;
    private Config t;
    private ClusterIDManager u;
    private String v;
    private static final String[] w;

    public ClusterInfoManagerImpl(String string) {
        this.s = string;
    }

    @Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
    public void setServerConfig(Config config) {
        this.t = config;
    }

    @Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
    public void setClusterIDManager(ClusterIDManager clusterIDManager) {
        this.u = clusterIDManager;
    }

    @Override
    @Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
    public String thisNodeId() {
        return this.s;
    }

    @Override
    public void updateSelfStatus(double d10) throws UpdateException {
        block4: {
            ClusterNodeInfo clusterNodeInfo;
            long l2;
            block3: {
                l2 = System.currentTimeMillis();
                clusterNodeInfo = this.getSelfNodeInf();
                if (clusterNodeInfo == null) {
                    String[] stringArray = w;
                    n.warning(stringArray[67]);
                    clusterNodeInfo = this.b();
                }
                try {
                    if (clusterNodeInfo != null) break block3;
                    n.warning(w[32]);
                    break block4;
                }
                catch (UpdateException updateException) {
                    throw ClusterInfoManagerImpl.a((Exception)((Object)updateException));
                }
            }
            clusterNodeInfo.setAvgLoad(d10);
            clusterNodeInfo.setLastUpdateTimeStamp(l2);
            this.updateSelfStatus(clusterNodeInfo);
        }
    }

    @Override
    public void updateSelfStatus(ClusterNodeInfo clusterNodeInfo) throws UpdateException {
        try {
            this.getHibernateTemplate().execute((HibernateCallback)new c(this, clusterNodeInfo));
        }
        catch (HibernateException hibernateException) {
            String string = w[49];
            n.log(Level.WARNING, string, hibernateException);
            throw new UpdateException(string, (Throwable)hibernateException);
        }
    }

    @Override
    public String deleteNode(String string) throws DeleteException {
        ClusterNodeInfo clusterNodeInfo = this.a(string);
        if (clusterNodeInfo == null) {
            String[] stringArray = w;
            String string2 = stringArray[42];
            n.log(Level.WARNING, string2);
            throw new DeleteException(string2);
        }
        long l2 = clusterNodeInfo.getLastUpdateTimeStamp();
        if (System.currentTimeMillis() - l2 < 30000L) {
            String[] stringArray = w;
            String string3 = stringArray[0];
            n.log(Level.WARNING, stringArray[50], string3);
            throw new DeleteException(string3);
        }
        String string4 = clusterNodeInfo.getName();
        try {
            this.getHibernateTemplate().delete((Object)clusterNodeInfo);
        }
        catch (HibernateException hibernateException) {
            String string5 = w[7];
            n.log(Level.WARNING, string5, hibernateException);
        }
        return string4;
    }

    @Override
    @Transactional
    public void removeStaleNodes(long l2) {
        try {
            this.getHibernateTemplate().execute((HibernateCallback)new d(this, l2));
        }
        catch (Exception exception) {
            String string = w[53];
            n.log(Level.WARNING, string, exception);
        }
    }

    @Override
    public String renameNode(String string, String string2) throws UpdateException {
        ClusterNodeInfo clusterNodeInfo = this.a(string);
        if (clusterNodeInfo == null) {
            String[] stringArray = w;
            String string3 = stringArray[4];
            n.log(Level.WARNING, string3);
            throw new UpdateException(string3);
        }
        String string4 = clusterNodeInfo.getName();
        clusterNodeInfo.setName(string2);
        try {
            this.updateSelfStatus(clusterNodeInfo);
        }
        catch (HibernateException hibernateException) {
            String string5 = w[29];
            n.log(Level.WARNING, string5, hibernateException);
            throw new UpdateException(string5, (Throwable)hibernateException);
        }
        return string4;
    }

    @Override
    public void updateSelfUptime() throws UpdateException {
        block3: {
            block2: {
                ClusterNodeInfo clusterNodeInfo = this.getSelfNodeInf();
                try {
                    if (clusterNodeInfo == null) break block2;
                    clusterNodeInfo.setBootTime(o);
                    clusterNodeInfo.setLastUpdateTimeStamp(System.currentTimeMillis());
                    this.updateSelfStatus(clusterNodeInfo);
                    break block3;
                }
                catch (UpdateException updateException) {
                    throw ClusterInfoManagerImpl.a((Exception)((Object)updateException));
                }
            }
            n.warning(w[26]);
        }
    }

    @Override
    @Transactional(readOnly=true)
    public Collection<ClusterNodeInfo> retrieveClusterStatus() throws FindException {
        try {
            return (List)this.getHibernateTemplate().execute((HibernateCallback)new u(this));
        }
        catch (Exception exception) {
            String string = w[37];
            n.log(Level.WARNING, string, exception);
            throw new FindException(string, (Throwable)exception);
        }
    }

    @Override
    public synchronized ClusterNodeInfo getSelfNodeInf() {
        return this.getSelfNodeInf(false);
    }

    /*
     * Unable to fully structure code
     */
    @Override
    public synchronized ClusterNodeInfo getSelfNodeInf(boolean var1_1) {
        block28: {
            block29: {
                block33: {
                    block34: {
                        block39: {
                            block32: {
                                block31: {
                                    block30: {
                                        block36: {
                                            block35: {
                                                var2_2 = this.a(this.s);
                                                if (var2_2 == null) break block28;
                                                if (!this.c()) ** GOTO lbl15
                                                break block35;
                                                catch (UpdateException v0) {
                                                    throw ClusterInfoManagerImpl.a((Exception)v0);
                                                }
                                            }
                                            if (!var1_1) break block29;
                                            break block36;
                                            catch (UpdateException v1) {
                                                throw ClusterInfoManagerImpl.a((Exception)v1);
                                            }
                                        }
                                        try {
                                            block37: {
                                                if (!var1_1) break block30;
                                                break block37;
                                                catch (UpdateException v2) {
                                                    throw ClusterInfoManagerImpl.a((Exception)v2);
                                                }
                                            }
                                            this.r = null;
                                        }
                                        catch (UpdateException v3) {
                                            throw ClusterInfoManagerImpl.a((Exception)v3);
                                        }
                                    }
                                    var3_3 = this.d(null);
                                    var4_5 = this.e(var3_3);
                                    try {
                                        v4 = this.g(var2_2.getAddress()) == false;
                                    }
                                    catch (UpdateException v5) {
                                        throw ClusterInfoManagerImpl.a((Exception)v5);
                                    }
                                    var5_6 = v4;
                                    if (var4_5 == null) break block31;
                                    try {
                                        block38: {
                                            if (var4_5.equals(var2_2.getEsmAddress())) break block31;
                                            break block38;
                                            catch (UpdateException v6) {
                                                throw ClusterInfoManagerImpl.a((Exception)v6);
                                            }
                                        }
                                        v7 = true;
                                        break block32;
                                    }
                                    catch (UpdateException v8) {
                                        throw ClusterInfoManagerImpl.a((Exception)v8);
                                    }
                                }
                                v7 = false;
                            }
                            var6_7 = v7;
                            if (var5_6) ** GOTO lbl57
                            if (!var6_7) break block33;
                            break block39;
                            catch (UpdateException v9) {
                                throw ClusterInfoManagerImpl.a((Exception)v9);
                            }
                        }
                        try {
                            block40: {
                                if (!var5_6) break block34;
                                break block40;
                                catch (UpdateException v10) {
                                    throw ClusterInfoManagerImpl.a((Exception)v10);
                                }
                            }
                            var2_2.setAddress(var3_3);
                        }
                        catch (UpdateException v11) {
                            throw ClusterInfoManagerImpl.a((Exception)v11);
                        }
                    }
                    try {
                        if (var6_7) {
                            var2_2.setEsmAddress(var4_5);
                        }
                    }
                    catch (UpdateException v12) {
                        throw ClusterInfoManagerImpl.a((Exception)v12);
                    }
                    try {
                        this.updateSelfStatus(var2_2);
                    }
                    catch (UpdateException var7_8) {
                        var13_9 = ClusterInfoManagerImpl.w;
                        var8_10 = var13_9[23] + var3_3 + var13_9[48];
                        ClusterInfoManagerImpl.n.log(Level.WARNING, var8_10, var7_8);
                    }
                }
                var9_11 = var2_2.getEsmAddress();
                var10_12 = var2_2.getAddress();
                var11_13 = var2_2.getNodeIdentifier();
                var12_14 = var2_2.getName();
                var13_9 = ClusterInfoManagerImpl.w;
                ClusterInfoManagerImpl.n.config(var13_9[51] + var12_14 + var13_9[27] + var11_13 + var13_9[1] + var10_12 + var13_9[20] + var9_11 + ")");
            }
            return var2_2;
        }
        var3_4 = this.d();
        try {
            if (var3_4 != null) {
                return this.a(this.s, var3_4);
            }
        }
        catch (UpdateException v13) {
            throw ClusterInfoManagerImpl.a((Exception)v13);
        }
        ClusterInfoManagerImpl.n.severe(ClusterInfoManagerImpl.w[64]);
        return null;
    }

    /*
     * Loose catch block
     */
    @Override
    public boolean attemptClusterFirstMulticastAddressUpdate(String string, String string2) throws UpdateException {
        try {
            boolean bl2;
            block7: {
                block6: {
                    Integer n2 = (Integer)this.getHibernateTemplate().execute((HibernateCallback)new e(this, string, string2));
                    if (n2 == null) break block6;
                    try {
                        block8: {
                            if (n2 == 0) break block6;
                            break block8;
                            catch (HibernateException hibernateException) {
                                throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                            }
                        }
                        bl2 = true;
                        break block7;
                    }
                    catch (HibernateException hibernateException) {
                        throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                    }
                }
                bl2 = false;
            }
            return bl2;
        }
        catch (HibernateException hibernateException) {
            String[] stringArray = w;
            String string3 = stringArray[8];
            n.log(Level.WARNING, string3 + stringArray[14] + hibernateException.getMessage(), hibernateException);
            throw new UpdateException(string3, (Throwable)hibernateException);
        }
    }

    private String a() {
        try {
            if (this.v == null) {
                this.v = NodePropertiesLoaderImpl.getInstance().getProperty(w[22], w[54]);
            }
        }
        catch (HibernateException hibernateException) {
            throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
        }
        return this.v;
    }

    private ClusterNodeInfo b() {
        ClusterNodeInfo clusterNodeInfo = this.getSelfNodeInf();
        try {
            if (clusterNodeInfo == null) {
                n.warning(w[61]);
                return null;
            }
        }
        catch (HibernateException hibernateException) {
            throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
        }
        try {
            if (o > -1L) {
                clusterNodeInfo.setBootTime(o);
            }
        }
        catch (HibernateException hibernateException) {
            throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
        }
        return clusterNodeInfo;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Loose catch block
     */
    private ClusterNodeInfo a(String string, String string2) {
        Object object;
        String[] stringArray;
        ClusterNodeInfo clusterNodeInfo = new ClusterNodeInfo();
        clusterNodeInfo.setAddress(this.d(string2));
        clusterNodeInfo.setEsmAddress(this.e(clusterNodeInfo.getAddress()));
        clusterNodeInfo.setNodeIdentifier(string);
        clusterNodeInfo.setMac(string2);
        clusterNodeInfo.setBootTime(o);
        clusterNodeInfo.setLastUpdateTimeStamp(System.currentTimeMillis());
        Object object2 = null;
        for (int i2 = 1; i2 < 25; ++i2) {
            List list;
            block24: {
                FlushModeType flushModeType;
                Session session;
                block23: {
                    stringArray = w;
                    object = stringArray[12] + i2;
                    list = null;
                    session = null;
                    flushModeType = null;
                    session = this.currentSession();
                    flushModeType = session.getFlushMode();
                    session.setFlushMode(FlushMode.MANUAL);
                    Query query = session.createQuery(h);
                    query.setParameter(stringArray[19], object);
                    list = query.list();
                    if (flushModeType == null) break block23;
                    try {
                        block28: {
                            if (session == null) break block23;
                            break block28;
                            catch (HibernateException hibernateException) {
                                throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                            }
                        }
                        session.setFlushMode(flushModeType);
                    }
                    catch (HibernateException hibernateException) {
                        throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                    }
                }
                if (session != null) {
                    session = null;
                }
                break block24;
                catch (HibernateException hibernateException) {
                    block25: {
                        try {
                            stringArray = w;
                            String string3 = stringArray[10];
                            n.log(Level.WARNING, string3, hibernateException);
                            if (flushModeType == null) break block25;
                        }
                        catch (Throwable throwable) {
                            block27: {
                                block26: {
                                    if (flushModeType == null) break block26;
                                    try {
                                        block29: {
                                            if (session == null) break block26;
                                            break block29;
                                            catch (HibernateException hibernateException2) {
                                                throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException2));
                                            }
                                        }
                                        session.setFlushMode(flushModeType);
                                    }
                                    catch (HibernateException hibernateException3) {
                                        throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException3));
                                    }
                                }
                                if (session == null) break block27;
                                session = null;
                            }
                            throw throwable;
                        }
                        try {
                            if (session != null) {
                                session.setFlushMode(flushModeType);
                            }
                        }
                        catch (HibernateException hibernateException4) {
                            throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException4));
                        }
                    }
                    if (session != null) {
                        session = null;
                    }
                }
            }
            try {
                if (list != null && !list.isEmpty()) continue;
            }
            catch (HibernateException hibernateException) {
                throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
            }
            object2 = object;
            break;
        }
        if (object2 == null) {
            stringArray = w;
            object2 = stringArray[39];
        }
        clusterNodeInfo.setName(object2);
        try {
            this.a(clusterNodeInfo);
        }
        catch (HibernateException hibernateException) {
            stringArray = w;
            object = stringArray[24];
            n.log(Level.SEVERE, (String)object, hibernateException);
        }
        stringArray = w;
        n.finest(stringArray[66] + clusterNodeInfo.getNodeIdentifier() + stringArray[59] + clusterNodeInfo.getName());
        return clusterNodeInfo;
    }

    private void a(ClusterNodeInfo clusterNodeInfo) throws HibernateException {
        this.getHibernateTemplate().save((Object)clusterNodeInfo);
    }

    private ClusterNodeInfo a(String string) {
        try {
            return (ClusterNodeInfo)this.getHibernateTemplate().execute((HibernateCallback)new v(this, string));
        }
        catch (Exception exception) {
            String string2 = w[60];
            n.log(Level.WARNING, string2, exception);
            return null;
        }
    }

    private String b(String string) {
        return ClusterIDManager.a(string);
    }

    private String c(String string) {
        String string2;
        block17: {
            NetworkInterface networkInterface;
            block16: {
                string2 = null;
                networkInterface = null;
                try {
                    networkInterface = NetworkInterface.getByName(string);
                }
                catch (SocketException socketException) {
                    try {
                        if (n.isLoggable(Level.WARNING)) {
                            n.log(Level.WARNING, w[55] + string + w[47] + socketException.getMessage() + w[58], ExceptionUtils.getDebugException((Throwable)socketException));
                        }
                    }
                    catch (SocketException socketException2) {
                        throw ClusterInfoManagerImpl.a(socketException2);
                    }
                }
                if (networkInterface != null) {
                    Enumeration<InetAddress> enumeration = networkInterface.getInetAddresses();
                    boolean bl2 = InetAddressUtil.isUseIpv6();
                    while (enumeration.hasMoreElements()) {
                        InetAddress inetAddress;
                        block15: {
                            inetAddress = enumeration.nextElement();
                            try {
                                try {
                                    try {
                                        if (!bl2 && inetAddress instanceof Inet4Address) break block15;
                                    }
                                    catch (SocketException socketException) {
                                        throw ClusterInfoManagerImpl.a(socketException);
                                    }
                                    if (!bl2) continue;
                                }
                                catch (SocketException socketException) {
                                    throw ClusterInfoManagerImpl.a(socketException);
                                }
                                if (!(inetAddress instanceof Inet6Address)) continue;
                            }
                            catch (SocketException socketException) {
                                throw ClusterInfoManagerImpl.a(socketException);
                            }
                        }
                        string2 = inetAddress.getHostAddress();
                        break;
                    }
                }
                try {
                    if (!StringUtils.isEmpty(string2)) break block16;
                    n.log(Level.FINE, w[5], networkInterface);
                    break block17;
                }
                catch (SocketException socketException) {
                    throw ClusterInfoManagerImpl.a(socketException);
                }
            }
            n.log(Level.FINE, w[35], new Object[]{networkInterface, string2});
        }
        return string2;
    }

    private boolean c() {
        boolean bl2;
        block5: {
            block4: {
                try {
                    try {
                        if (this.p == null || this.r == null) break block4;
                    }
                    catch (HibernateException hibernateException) {
                        throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                    }
                    bl2 = true;
                    break block5;
                }
                catch (HibernateException hibernateException) {
                    throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                }
            }
            bl2 = false;
        }
        return bl2;
    }

    /*
     * Loose catch block
     */
    private synchronized String d(String string) {
        block14: {
            block16: {
                block15: {
                    if (this.p != null) break block14;
                    try {
                        block17: {
                            this.p = this.e();
                            if (this.p != null) break block15;
                            break block17;
                            catch (UnknownHostException unknownHostException) {
                                throw ClusterInfoManagerImpl.a(unknownHostException);
                            }
                        }
                        this.p = this.c(w[40]);
                    }
                    catch (UnknownHostException unknownHostException) {
                        throw ClusterInfoManagerImpl.a(unknownHostException);
                    }
                }
                try {
                    if (this.p != null) break block16;
                    this.p = InetAddress.getLocalHost().getHostAddress();
                    break block16;
                }
                catch (HibernateException hibernateException) {
                    throw ClusterInfoManagerImpl.a((Exception)((Object)hibernateException));
                }
                {
                    catch (UnknownHostException unknownHostException) {
                        n.log(Level.FINEST, w[30], unknownHostException);
                    }
                }
            }
            try {
                if (this.p == null) {
                    this.p = this.b(string);
                }
            }
            catch (UnknownHostException unknownHostException) {
                throw ClusterInfoManagerImpl.a(unknownHostException);
            }
            try {
                if (this.p == null) {
                    this.p = this.f();
                }
            }
            catch (UnknownHostException unknownHostException) {
                throw ClusterInfoManagerImpl.a(unknownHostException);
            }
        }
        return this.p;
    }

    private synchronized String d() {
        Collection<String> collection;
        String string = this.q;
        if (string == null && !(collection = this.u.getMacs()).isEmpty()) {
            this.q = string = collection.iterator().next();
        }
        return string;
    }

    /*
     * Loose catch block
     */
    private String e() {
        String string;
        block6: {
            String[] stringArray = w;
            string = this.t.getProperty(stringArray[52]);
            try {
                if (string == null) break block6;
                try {
                    block7: {
                        if (this.a(InetAddress.getByName(string))) break block6;
                        break block7;
                        catch (UnknownHostException unknownHostException) {
                            throw ClusterInfoManagerImpl.a(unknownHostException);
                        }
                    }
                    n.log(Level.WARNING, w[68], string);
                }
                catch (UnknownHostException unknownHostException) {
                    throw ClusterInfoManagerImpl.a(unknownHostException);
                }
            }
            catch (UnknownHostException unknownHostException) {
                stringArray = w;
                n.log(Level.WARNING, stringArray[25] + string + stringArray[44], unknownHostException);
                string = null;
            }
        }
        return string;
    }

    private String f() {
        return this.u.loadNodeProperty(w[6]);
    }

    /*
     * Loose catch block
     */
    private String e(String string) {
        String string2;
        block14: {
            InterfaceTag interfaceTag;
            String string3;
            String[] stringArray;
            block12: {
                string2 = this.r;
                if (string2 != null) break block14;
                string2 = string;
                stringArray = w;
                String string4 = this.t.getProperty(stringArray[38]);
                if (string4 == null) break block12;
                try {
                    block15: {
                        if (InetAddressUtil.isAnyHostAddress((String)string4)) break block12;
                        break block15;
                        catch (SocketException socketException) {
                            throw ClusterInfoManagerImpl.a(socketException);
                        }
                    }
                    if (InetAddressUtil.isLoopbackAddress((String)string4)) break block12;
                }
                catch (SocketException socketException) {
                    throw ClusterInfoManagerImpl.a(socketException);
                }
                string2 = string4;
            }
            if ((string3 = this.t.getProperty((stringArray = w)[28])) != null && (interfaceTag = this.f(string3)) != null) {
                List list = Collections.emptyList();
                try {
                    list = InetAddressUtil.findAllLocalInetAddresses();
                }
                catch (SocketException socketException) {
                    stringArray = w;
                    n.log(Level.WARNING, stringArray[46] + ExceptionUtils.getMessage((Throwable)socketException), ExceptionUtils.getDebugException((Throwable)socketException));
                }
                Set set = interfaceTag.getIpPatterns();
                InetAddress inetAddress = null;
                block8: for (InetAddress inetAddress2 : list) {
                    for (String string5 : set) {
                        block13: {
                            try {
                                if (!InetAddressUtil.patternMatchesAddress((String)string5, (InetAddress)inetAddress2)) continue;
                                if (inetAddress != null) break block13;
                            }
                            catch (SocketException socketException) {
                                throw ClusterInfoManagerImpl.a(socketException);
                            }
                            inetAddress = inetAddress2;
                            continue;
                        }
                        n.log(Level.WARNING, w[62], new Object[]{string3, inetAddress});
                        break block8;
                    }
                }
                if (inetAddress != null) {
                    string2 = inetAddress.getHostAddress();
                }
            }
            this.r = string2;
        }
        return string2;
    }

    private InterfaceTag f(String string) {
        InterfaceTag interfaceTag = null;
        try {
            Set set;
            String string2 = this.t.getProperty(InterfaceTag.PROPERTY_NAME);
            try {
                set = string2 == null ? Collections.emptySet() : InterfaceTag.parseMultiple((String)string2);
            }
            catch (ParseException parseException) {
                throw ClusterInfoManagerImpl.a(parseException);
            }
            Set set2 = set;
            for (InterfaceTag interfaceTag2 : set2) {
                if (!interfaceTag2.getName().equalsIgnoreCase(string)) continue;
                interfaceTag = interfaceTag2;
                break;
            }
        }
        catch (ParseException parseException) {
            n.log(Level.WARNING, w[43] + ExceptionUtils.getMessage((Throwable)parseException), ExceptionUtils.getDebugException((Throwable)parseException));
        }
        return interfaceTag;
    }

    private boolean g(String string) {
        boolean bl2;
        block17: {
            bl2 = true;
            if (string == null) {
                bl2 = false;
            } else {
                String[] stringArray;
                InetAddress inetAddress = null;
                try {
                    inetAddress = InetAddress.getByName(string);
                }
                catch (UnknownHostException unknownHostException) {
                    stringArray = w;
                    n.log(Level.WARNING, stringArray[36] + string + "'", unknownHostException);
                }
                if (inetAddress != null) {
                    boolean bl3;
                    boolean bl4;
                    String string2;
                    boolean bl5;
                    block16: {
                        boolean bl6;
                        block15: {
                            boolean bl7;
                            bl5 = this.a(inetAddress);
                            string2 = this.e();
                            try {
                                bl7 = string2 != null;
                            }
                            catch (UnknownHostException unknownHostException) {
                                throw ClusterInfoManagerImpl.a(unknownHostException);
                            }
                            bl4 = bl7;
                            try {
                                try {
                                    if (!bl4 || !string2.equals(string)) break block15;
                                }
                                catch (UnknownHostException unknownHostException) {
                                    throw ClusterInfoManagerImpl.a(unknownHostException);
                                }
                                bl6 = true;
                                break block16;
                            }
                            catch (UnknownHostException unknownHostException) {
                                throw ClusterInfoManagerImpl.a(unknownHostException);
                            }
                        }
                        bl6 = bl3 = false;
                    }
                    if (!bl5) {
                        bl2 = bl3;
                        stringArray = w;
                        n.log(Level.WARNING, stringArray[13], string);
                    } else {
                        try {
                            if (!bl4 || bl3) break block17;
                        }
                        catch (UnknownHostException unknownHostException) {
                            throw ClusterInfoManagerImpl.a(unknownHostException);
                        }
                        bl2 = false;
                        n.log(Level.CONFIG, w[31], new Object[]{string2, string});
                    }
                }
            }
        }
        return bl2;
    }

    private boolean a(InetAddress inetAddress) {
        boolean bl2;
        block4: {
            bl2 = false;
            try {
                for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {
                    for (InetAddress inetAddress2 : Collections.list(networkInterface.getInetAddresses())) {
                        if (!inetAddress2.equals(inetAddress)) continue;
                        bl2 = true;
                        break block4;
                    }
                }
            }
            catch (SocketException socketException) {
                n.log(Level.WARNING, w[15], socketException);
            }
        }
        return bl2;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[69];
                var3_1 = 0;
                var2_2 = "!\nU|8\u001dt0BD3v\u0016u9\u0007D9v\u001aq&B^3\"Rr0\u0007^|%\u0006q9\u0007\u001009\u001cwu\u0007^3#\u0015xu\u0016_=:\u001e\u007f\"BV3$Rt0\u000eU(?\u001d~u\u0004B3;Rt4\u0016Q>7\u0001u{Bd./Rq2\u0003Y2v\u001eq!\u0007Br\u0005yBy,l1&\u0007\\95\u00060;\rT9\u001f\u0016u;\u0016Y:?\u0017bu\u0004B3;Rs9\u0017C(3\u0000O<\fV3v\u001b~u\u0001\\=%\u00010\u000f;\rT9x\u0011| \u0011D9$\\y%\u001d!\nQ(v\u001c\u007f1\u0007\u0010?7\u001c~:\u0016\u0010>3Rb0\u0016B53\u0004u1*\u0011\u000bT|8\u001ddu\u0004Y22RY%BV.9\u001f0;\u0007D+9\u0000{u\u000b^(3\u0000v4\u0001U|-Bm\u000f;\rT9x\u0011| \u0011D9$\\y%\u001d0\u0010B3$Rt0\u000eU(?\u001cwu\u0001\\)%\u0006u'BC(7\u0006e&\u00110\u0010B3$Re%\u0006Q(?\u001cwu\u0006R u\u0015X9$\u001706\u000eE/\"\u0017b\n\u000b^:9\\~4\u000fU|kR*;\u0003]9%0\u0010B3$R|:\r[58\u001503\rB|7\u0004q<\u000eQ>:\u00170;\rT9v\u001cq8\u0007\u001b3\u0010_1v\u0011| \u0011D9$-y;\u0004_|?\u001c06\u000eQ/%R\u0007\u0012\u0003D9!\u0013i6\u0014\u0006T.3\u0001cu\u0006_9%R~:\u0016\u0010.3\u0001\u007f9\u0014U|\"\u001d04\fI|:\u001ds4\u000e\u0010=2\u0016b0\u0011C|qUke\u001f\u0017{x\u0002oB)\u0016\u0003^29\u000602\u0007D|8\u0017d\"\rB7v\u001b~!\u0007B:7\u0011u&BD3v\u0013t1\u0010U/%\\\f1\u0007\\9\"\u001703\u0010_1v\f6\u000eE/\"\u0017b\n\u000b^:94u\u0015X9$\u001706\u000eE/\"\u0017b\n\u000b^:9\\~:\u0006U\u00152\u0017~!\u000bV53\u00000hB\n29\u0016u\u001c\u0006U2\"\u001bv<\u0007B\u0004;\u0003]9\byBu/;;`o\u00a4 \u0012T=\"\u001706\u000eE/\"\u0017b\n\u000b^:9Rc0\u0016\u00101#\u001ed<\u0001Q/\"-q1\u0006B9%\u00010hB\n1#\u001ed<\u0001Q/\"3t1\u0010U/%Rg=\u0007B9v\u001c\u007f1\u0007Y8vO0o\f_83;tu\u0003^8vB0hB\u0018/3\u001eu6\u0016\u0010?9\u0007~!J\u001auv\u0014b:\u000f\u0010?:\u0007c!\u0007B\u0003?\u001cv:BG43\u0000uu\u000fE0\"\u001bs4\u0011D\u00037\u0016t'\u0007C/v\u001bcu\f_(v\u001ce9\u000e\u0019\f;\rT9x\u0016r{\u0016I,3\u001c\u0010\u0010B3$Rc4\u0014Y21R~:\u0006U{%R~0\u0015\u00105&R7\u001e6\u0003^29\u00060'\u0007S3$\u00160;\u0007G|5\u001ee&\u0016U.v\u001c\u007f1\u0007\u001f\u001c\fF=:\u001btu+`|7\u0016t'\u0007C/v\u0011\u007f;\u0004Y;#\u0000u1B\u0017'6\u0003^29\u00060'\u0007D.?\u0017f0BT>v\u0017~!\u0010I|0\u001dbu\u0016X5%R~:\u0006Ur\u0005uJy8l\u00154\u0006]58\\u&\u000fy2\"\u0017b3\u0003S9\u0002\u0013w\u001c0\u0010B3$Rc4\u0014Y21R~:\u0006U{%R~0\u0015\u001027\u001fuH%\u0010_>:\u0017}u\u0005U(\"\u001b~2BQ82\u0000u&\u0011\u0010+?\u0006xu+^9\"3t1\u0010U/%\\w0\u0016|35\u0013|\u001d\rC(~[>2\u0007D\u00149\u0001d\u0014\u0006T.3\u0001c}KH\u0000\u0012T=\"\u001b~2BS0#\u0001d0\u0010\u0010\u0015\u0006Rq1\u0006B9%\u00010!\r\u001017\u0006s=BS38\u0014y2\u0017B=\"\u001b\u007f;B\u0017{-BmrE\u0010t!\u0013cuE\u0017'g\u000f7rKH'\u0007S3$\u001603\rB|\"\u001ay&B^32\u00170<\u0011\u001029\u000604\u0001S9%\u0001y7\u000eU|7\u001ctu\u0003D(3\u001f`!BD3v\u0000u6\u0010U=\"\u00170<\u0016\u0010:7\u001b|0\u0006\u001b3\u0010_1v\u0011| \u0011D9$-y;\u0004_|?\u001c06\u000eQ/%R\u00139\u0003C(\u0003\u0002t4\u0016U\b?\u001fu\u0006\u0016Q1& \u001b\u0007D+9\u0000{u\u000b^(3\u0000v4\u0001U|-Bmu\nQ/v;`u\u0019\u0001!\u0018\u0016\u0003^29\u00060'\u0007C3:\u0004uu\u0003T8$\u0017c&B\u0017\u001f0\u0010B3$Rb0\u0016B53\u0004y;\u0005\u0010?:\u0007c!\u0007B|%\u0006q!\u0017C,6\r]r:Ed0\u0001Xr%\u0017b#\u0007Br&\u0000\u007f6\u0007C/\u0015\u001d~!\u0010_0:\u0017b\u001c\u0012q82\u0000u&\u0011\u0007;\ro27\u001fu\b&\u0011W\u00033\u0006xe>u\u0015X9$\u001706\u000eE/\"\u0017b\n\u000b^:9\\|4\u0011D\t&\u0016q!\u0007d5;\u0017C!\u0003],vN0o\u000eQ/\"'`1\u0003D9\u0002\u001b}01D=;\u0002\u001d!\nQ(v\u001c\u007f1\u0007\u0010?7\u001c~:\u0016\u0010>3Rb0\u0016B53\u0004u1\u001e\u0010\u0010B3$R|:\u0003T58\u00150<\fD9$\u0014q6\u0007\u0010(7\u0015coB\frN\u001051\u001c\u007f'\u000b^;x\u000e;\rT9\u001f\u0016u;\u0016Y:?\u0017b6\u0000\fQ>:\u00170!\r\u00100?\u0001du\u000b^(3\u0000v4\u0001U/v\u0006\u007fu\u0001X95\u00190\u00101}|?\u001cd0\u0010V=5\u00170!\u0003Wfv\u0002uE\u0002rL\u00110\u0010B3$Re%\u0006Q(?\u001cwu\u0006R(4\u0006]58Rd'\u001bY21Rd:BT9:\u0017d0BE2{\u0001d4\u000eU|8\u001dt0BKl+\r\u0000\u0011Y21Rc0\u0010F9$R\u001c6\r]r:Ed0\u0001Xr5\u001ee&\u0016U.x\u001b`\u0014\u0006T.3\u0001c\u001f0\u0010B3$Rs9\u0007Q2?\u001cwu\u0001\\)%\u0006u'BC(7\u0006e&\u0007C\u00058\u001bC-: \u0010\u0010B3$Rw0\u0016D58\u00150;\u0007D+9\u0000{u\u000b^(3\u0000v4\u0001U|\u00e9 \u0012T=\"\u001706\u000eE/\"\u0017b\n\u000b^:9^0}\u0011U03\u0011du\u0001_)8\u00068\u007fK\u0010=%Rs:\u0017^(v\u0014b:\u000f\u0010?:\u0007c!\u0007B\u0003?\u001cv:BG43\u0000uu\u000fE0\"\u001bs4\u0011D\u00037\u0016t'\u0007C/v\u001bcu\f_(v\u001ce9\u000e\u0019|7\u000106\rE2\"\u0001u9\u0007S(v\u0001u!BS0#\u0001d0\u0010o58\u0014\u007f{\u000fE0\"\u001bs4\u0011D\u00037\u0016t'\u0007C/vO0o\u000fE0\"\u001bs4\u0011D\u001d2\u0016b0\u0011C|!\u001au'\u0007\u0010?:\u0007c!\u0007B\u0003?\u001cv:L^32\u0017y1B\r|l\u001c\u007f1\u0007y8v\u0013~1BS3#\u001cd&\u0007\\95\u0006>6\rE2\"R-uR@u\u0003C|5\u001ee&\u0016U.\t\u001b~3\r\u0010+>\u0017b0BS0#\u0001d0\u0010o58\u0014\u007f{\f_83;t0\fD50\u001bu'BY2vZ*;\rT9?\u0016c|\u0002rL\u0007u\fQ13O0\u001f0\u0010B3$Rb0\u0016B53\u0004y;\u0005\u0010?:\u0007c!\u0007B|%\u0006q!\u0017C+3\u0003Y03\u00160!\r\u0010.3\u0011b0\u0003D92R~:\u0006U|?\u001cv:BB3!Ry;BD=4\u001eu{v\u001c\fD9$\u0014q6\u0007\u0010(7\u00150.RM|5\u001d~!\u0003Y2%R`4\u0016D9$\u001ccu\u000fQ(5\u001ay;\u0005\u001019\u0000uu\u0016X=8R\u007f;\u0007\u001023\u0006g:\u0010[|7\u0016t'\u0007C/3\u00010:\f\u0010(>\u001bcu\f_83\\0\u0002\u000b\\0v\u0007c0BV5$\u0001du\u000fQ(5\u001a0:\u0004\u0010'g\u000f\u0004;\u0003]9,\u0006\n_):\u00160;\rD|1\u0017du\nU.3\\0!\nY/v\u0001u'\u0014U.v\u001aq&B^3v\u001fq6]\u001c6\r]r:Ed0\u0001Xr5\u001ee&\u0016U.x\u001b`\u0014\u0006T.3\u0001c6\u0014\u0006T92Rs9\u0017C(3\u00000&\u0016Q(#\u00010'\rG|0\u001dbu\u0016X5%Rc0\u0010F9$\\0<\u0006U2\"\u001bv<\u0007Bav";
                var4_3 = "!\nU|8\u001dt0BD3v\u0016u9\u0007D9v\u001aq&B^3\"Rr0\u0007^|%\u0006q9\u0007\u001009\u001cwu\u0007^3#\u0015xu\u0016_=:\u001e\u007f\"BV3$Rt0\u000eU(?\u001d~u\u0004B3;Rt4\u0016Q>7\u0001u{Bd./Rq2\u0003Y2v\u001eq!\u0007Br\u0005yBy,l1&\u0007\\95\u00060;\rT9\u001f\u0016u;\u0016Y:?\u0017bu\u0004B3;Rs9\u0017C(3\u0000O<\fV3v\u001b~u\u0001\\=%\u00010\u000f;\rT9x\u0011| \u0011D9$\\y%\u001d!\nQ(v\u001c\u007f1\u0007\u0010?7\u001c~:\u0016\u0010>3Rb0\u0016B53\u0004u1*\u0011\u000bT|8\u001ddu\u0004Y22RY%BV.9\u001f0;\u0007D+9\u0000{u\u000b^(3\u0000v4\u0001U|-Bm\u000f;\rT9x\u0011| \u0011D9$\\y%\u001d0\u0010B3$Rt0\u000eU(?\u001cwu\u0001\\)%\u0006u'BC(7\u0006e&\u00110\u0010B3$Re%\u0006Q(?\u001cwu\u0006R u\u0015X9$\u001706\u000eE/\"\u0017b\n\u000b^:9\\~4\u000fU|kR*;\u0003]9%0\u0010B3$R|:\r[58\u001503\rB|7\u0004q<\u000eQ>:\u00170;\rT9v\u001cq8\u0007\u001b3\u0010_1v\u0011| \u0011D9$-y;\u0004_|?\u001c06\u000eQ/%R\u0007\u0012\u0003D9!\u0013i6\u0014\u0006T.3\u0001cu\u0006_9%R~:\u0016\u0010.3\u0001\u007f9\u0014U|\"\u001d04\fI|:\u001ds4\u000e\u0010=2\u0016b0\u0011C|qUke\u001f\u0017{x\u0002oB)\u0016\u0003^29\u000602\u0007D|8\u0017d\"\rB7v\u001b~!\u0007B:7\u0011u&BD3v\u0013t1\u0010U/%\\\f1\u0007\\9\"\u001703\u0010_1v\f6\u000eE/\"\u0017b\n\u000b^:94u\u0015X9$\u001706\u000eE/\"\u0017b\n\u000b^:9\\~:\u0006U\u00152\u0017~!\u000bV53\u00000hB\n29\u0016u\u001c\u0006U2\"\u001bv<\u0007B\u0004;\u0003]9\byBu/;;`o\u00a4 \u0012T=\"\u001706\u000eE/\"\u0017b\n\u000b^:9Rc0\u0016\u00101#\u001ed<\u0001Q/\"-q1\u0006B9%\u00010hB\n1#\u001ed<\u0001Q/\"3t1\u0010U/%Rg=\u0007B9v\u001c\u007f1\u0007Y8vO0o\f_83;tu\u0003^8vB0hB\u0018/3\u001eu6\u0016\u0010?9\u0007~!J\u001auv\u0014b:\u000f\u0010?:\u0007c!\u0007B\u0003?\u001cv:BG43\u0000uu\u000fE0\"\u001bs4\u0011D\u00037\u0016t'\u0007C/v\u001bcu\f_(v\u001ce9\u000e\u0019\f;\rT9x\u0016r{\u0016I,3\u001c\u0010\u0010B3$Rc4\u0014Y21R~:\u0006U{%R~0\u0015\u00105&R7\u001e6\u0003^29\u00060'\u0007S3$\u00160;\u0007G|5\u001ee&\u0016U.v\u001c\u007f1\u0007\u001f\u001c\fF=:\u001btu+`|7\u0016t'\u0007C/v\u0011\u007f;\u0004Y;#\u0000u1B\u0017'6\u0003^29\u00060'\u0007D.?\u0017f0BT>v\u0017~!\u0010I|0\u001dbu\u0016X5%R~:\u0006Ur\u0005uJy8l\u00154\u0006]58\\u&\u000fy2\"\u0017b3\u0003S9\u0002\u0013w\u001c0\u0010B3$Rc4\u0014Y21R~:\u0006U{%R~0\u0015\u001027\u001fuH%\u0010_>:\u0017}u\u0005U(\"\u001b~2BQ82\u0000u&\u0011\u0010+?\u0006xu+^9\"3t1\u0010U/%\\w0\u0016|35\u0013|\u001d\rC(~[>2\u0007D\u00149\u0001d\u0014\u0006T.3\u0001c}KH\u0000\u0012T=\"\u001b~2BS0#\u0001d0\u0010\u0010\u0015\u0006Rq1\u0006B9%\u00010!\r\u001017\u0006s=BS38\u0014y2\u0017B=\"\u001b\u007f;B\u0017{-BmrE\u0010t!\u0013cuE\u0017'g\u000f7rKH'\u0007S3$\u001603\rB|\"\u001ay&B^32\u00170<\u0011\u001029\u000604\u0001S9%\u0001y7\u000eU|7\u001ctu\u0003D(3\u001f`!BD3v\u0000u6\u0010U=\"\u00170<\u0016\u0010:7\u001b|0\u0006\u001b3\u0010_1v\u0011| \u0011D9$-y;\u0004_|?\u001c06\u000eQ/%R\u00139\u0003C(\u0003\u0002t4\u0016U\b?\u001fu\u0006\u0016Q1& \u001b\u0007D+9\u0000{u\u000b^(3\u0000v4\u0001U|-Bmu\nQ/v;`u\u0019\u0001!\u0018\u0016\u0003^29\u00060'\u0007C3:\u0004uu\u0003T8$\u0017c&B\u0017\u001f0\u0010B3$Rb0\u0016B53\u0004y;\u0005\u0010?:\u0007c!\u0007B|%\u0006q!\u0017C,6\r]r:Ed0\u0001Xr%\u0017b#\u0007Br&\u0000\u007f6\u0007C/\u0015\u001d~!\u0010_0:\u0017b\u001c\u0012q82\u0000u&\u0011\u0007;\ro27\u001fu\b&\u0011W\u00033\u0006xe>u\u0015X9$\u001706\u000eE/\"\u0017b\n\u000b^:9\\|4\u0011D\t&\u0016q!\u0007d5;\u0017C!\u0003],vN0o\u000eQ/\"'`1\u0003D9\u0002\u001b}01D=;\u0002\u001d!\nQ(v\u001c\u007f1\u0007\u0010?7\u001c~:\u0016\u0010>3Rb0\u0016B53\u0004u1\u001e\u0010\u0010B3$R|:\u0003T58\u00150<\fD9$\u0014q6\u0007\u0010(7\u0015coB\frN\u001051\u001c\u007f'\u000b^;x\u000e;\rT9\u001f\u0016u;\u0016Y:?\u0017b6\u0000\fQ>:\u00170!\r\u00100?\u0001du\u000b^(3\u0000v4\u0001U/v\u0006\u007fu\u0001X95\u00190\u00101}|?\u001cd0\u0010V=5\u00170!\u0003Wfv\u0002uE\u0002rL\u00110\u0010B3$Re%\u0006Q(?\u001cwu\u0006R(4\u0006]58Rd'\u001bY21Rd:BT9:\u0017d0BE2{\u0001d4\u000eU|8\u001dt0BKl+\r\u0000\u0011Y21Rc0\u0010F9$R\u001c6\r]r:Ed0\u0001Xr5\u001ee&\u0016U.x\u001b`\u0014\u0006T.3\u0001c\u001f0\u0010B3$Rs9\u0007Q2?\u001cwu\u0001\\)%\u0006u'BC(7\u0006e&\u0007C\u00058\u001bC-: \u0010\u0010B3$Rw0\u0016D58\u00150;\u0007D+9\u0000{u\u000b^(3\u0000v4\u0001U|\u00e9 \u0012T=\"\u001706\u000eE/\"\u0017b\n\u000b^:9^0}\u0011U03\u0011du\u0001_)8\u00068\u007fK\u0010=%Rs:\u0017^(v\u0014b:\u000f\u0010?:\u0007c!\u0007B\u0003?\u001cv:BG43\u0000uu\u000fE0\"\u001bs4\u0011D\u00037\u0016t'\u0007C/v\u001bcu\f_(v\u001ce9\u000e\u0019|7\u000106\rE2\"\u0001u9\u0007S(v\u0001u!BS0#\u0001d0\u0010o58\u0014\u007f{\u000fE0\"\u001bs4\u0011D\u00037\u0016t'\u0007C/vO0o\u000fE0\"\u001bs4\u0011D\u001d2\u0016b0\u0011C|!\u001au'\u0007\u0010?:\u0007c!\u0007B\u0003?\u001cv:L^32\u0017y1B\r|l\u001c\u007f1\u0007y8v\u0013~1BS3#\u001cd&\u0007\\95\u0006>6\rE2\"R-uR@u\u0003C|5\u001ee&\u0016U.\t\u001b~3\r\u0010+>\u0017b0BS0#\u0001d0\u0010o58\u0014\u007f{\f_83;t0\fD50\u001bu'BY2vZ*;\rT9?\u0016c|\u0002rL\u0007u\fQ13O0\u001f0\u0010B3$Rb0\u0016B53\u0004y;\u0005\u0010?:\u0007c!\u0007B|%\u0006q!\u0017C+3\u0003Y03\u00160!\r\u0010.3\u0011b0\u0003D92R~:\u0006U|?\u001cv:BB3!Ry;BD=4\u001eu{v\u001c\fD9$\u0014q6\u0007\u0010(7\u00150.RM|5\u001d~!\u0003Y2%R`4\u0016D9$\u001ccu\u000fQ(5\u001ay;\u0005\u001019\u0000uu\u0016X=8R\u007f;\u0007\u001023\u0006g:\u0010[|7\u0016t'\u0007C/3\u00010:\f\u0010(>\u001bcu\f_83\\0\u0002\u000b\\0v\u0007c0BV5$\u0001du\u000fQ(5\u001a0:\u0004\u0010'g\u000f\u0004;\u0003]9,\u0006\n_):\u00160;\rD|1\u0017du\nU.3\\0!\nY/v\u0001u'\u0014U.v\u001aq&B^3v\u001fq6]\u001c6\r]r:Ed0\u0001Xr5\u001ee&\u0016U.x\u001b`\u0014\u0006T.3\u0001c6\u0014\u0006T92Rs9\u0017C(3\u00000&\u0016Q(#\u00010'\rG|0\u001dbu\u0016X5%Rc0\u0010F9$\\0<\u0006U2\"\u001bv<\u0007Bav".length();
                var1_4 = 102;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 71;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = ClusterInfoManagerImpl.a(v0, ClusterInfoManagerImpl.h(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "Qd9U^aW@`#IXp\u0001W%%^Rz\u0005V%1TC5\u0003Zl$\u001b_z\u0013W+wKTg\u001fSu$\u001bE}\u0012\u0012q6Y]pWEd$\u001bRy\u0012Sw2_\u0011f\u001e\\f2\u001b]t\u0004F%\"KUt\u0003W+wZEa\u0012_u#R_rWFjwITv\u0005Wd#^\u0011g\u0018E#{UwZUq\u0005Wv$\u001b\u00162\f\u0002xp\u001c\u001d5\u001eA%9TE5\u0007@`$^_aY";
                    var4_3 = "Qd9U^aW@`#IXp\u0001W%%^Rz\u0005V%1TC5\u0003Zl$\u001b_z\u0013W+wKTg\u001fSu$\u001bE}\u0012\u0012q6Y]pWEd$\u001bRy\u0012Sw2_\u0011f\u001e\\f2\u001b]t\u0004F%\"KUt\u0003W+wZEa\u0012_u#R_rWFjwITv\u0005Wd#^\u0011g\u0018E#{UwZUq\u0005Wv$\u001b\u00162\f\u0002xp\u001c\u001d5\u001eA%9TE5\u0007@`$^_aY".length();
                    var1_4 = 113;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 32;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = ClusterInfoManagerImpl.a(v0, ClusterInfoManagerImpl.h(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        ClusterInfoManagerImpl.w = var5;
        ClusterInfoManagerImpl.m = ClusterInfoManagerImpl.w[56];
        ClusterInfoManagerImpl.c = ClusterInfoManagerImpl.w[17];
        ClusterInfoManagerImpl.e = ClusterInfoManagerImpl.w[63];
        ClusterInfoManagerImpl.a = ClusterInfoManagerImpl.w[65];
        ClusterInfoManagerImpl.l = ClusterInfoManagerImpl.w[21];
        ClusterInfoManagerImpl.b = ClusterInfoManagerImpl.w[3];
        ClusterInfoManagerImpl.f = ClusterInfoManagerImpl.w[34];
        ClusterInfoManagerImpl.d = ClusterInfoManagerImpl.w[45];
        var0_6 = ClusterInfoManagerImpl.w;
        ClusterInfoManagerImpl.g = var0_6[33] + ClusterNodeInfo.class.getName();
        ClusterInfoManagerImpl.h = var0_6[11] + ClusterNodeInfo.class.getName() + var0_6[9];
        ClusterInfoManagerImpl.i = var0_6[11] + ClusterNodeInfo.class.getName() + var0_6[18];
        ClusterInfoManagerImpl.j = var0_6[16] + ClusterNodeInfo.class.getName() + var0_6[57];
        ClusterInfoManagerImpl.k = var0_6[2] + ClusterNodeInfo.class.getName() + var0_6[41];
        ClusterInfoManagerImpl.n = Logger.getLogger(ClusterInfoManagerImpl.class.getName());
        ClusterInfoManagerImpl.o = System.currentTimeMillis();
    }

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

    private static char[] h(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x57);
        }
        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 -> 18;
                    case 1 -> 37;
                    case 2 -> 119;
                    case 3 -> 27;
                    case 4 -> 17;
                    case 5 -> 53;
                    default -> 87;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

