MT Manager v2.15.3版本的 MD5 值为:27f0d62ac7123fbbaefff319fdab9f13

以下内容为反编译后的 RunnableC8164.java 源代码,内容仅作参考


package l;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;

public final class RunnableC8164 implements Runnable, InterfaceC1662 {

    public static final InterfaceC6372 f23993 = C1320.m4112(RunnableC8164.class);

    public int f23994;

    public byte[] f23995;

    public byte[] f23996;

    public final HashMap f23997;

    public InterfaceC13030 f23998;

    public int f23999;

    public InetAddress f24000;

    public C10457 f24001;

    public ArrayList f24002;

    public DatagramSocket f24003;

    public int f24004;

    public InetAddress f24005;

    public C2270 f24006;

    public C2270 f24007;

    public DatagramPacket f24008;

    public final Object f24009;

    public Thread f24010;

    public int f24011;

    public C12983 f24012;

    public final HashSet f24013;

    public HashMap f24014;

    public DatagramPacket f24015;

    private void m19474(C12983 c12983) {
        synchronized (this.f24013) {
            this.f24013.remove(c12983);
            this.f24013.notifyAll();
        }
    }

    @Override
    public final void run() {
        while (this.f24010 == Thread.currentThread()) {
            try {
                try {
                    try {
                        this.f24008.setLength(((C5872) this.f23998.mo703()).m14655());
                        this.f24003.setSoTimeout(this.f24011);
                        this.f24003.receive(this.f24008);
                        InterfaceC6372 interfaceC6372 = f23993;
                        interfaceC6372.mo10327("NetBIOS: new data read from socket");
                        AbstractC14901 abstractC14901 = (AbstractC14901) this.f24014.get(new Integer(AbstractC14901.m31063(0, this.f23996)));
                        if (abstractC14901 != null && !abstractC14901.f44138) {
                            synchronized (abstractC14901) {
                                abstractC14901.m31065(this.f23996);
                                abstractC14901.f44138 = true;
                                if (interfaceC6372.mo10329()) {
                                    interfaceC6372.mo10327(abstractC14901.toString());
                                    interfaceC6372.mo10327(C5938.m14865(this.f23996, 0, this.f24008.getLength()));
                                }
                                abstractC14901.notify();
                            }
                        }
                    } catch (SocketTimeoutException e) {
                        f23993.mo10343("Socket timeout", e);
                    }
                } catch (Exception e2) {
                    f23993.mo10335("Uncaught exception in NameServiceClient", (Throwable) e2);
                }
            } finally {
                m19490();
            }
        }
    }

    public final C12983 m19479() {
        C2270 c2270 = this.f24007;
        if (c2270 != null) {
            return c2270.f8191;
        }
        return null;
    }

    public final void m19483(AbstractC14901 abstractC14901, AbstractC14901 abstractC149012, int i) {
        RunnableC8164 runnableC8164;
        Integer num;
        int length = ((C5872) this.f23998.mo703()).m14644().length;
        if (length == 0) {
            length = 1;
        }
        synchronized (abstractC149012) {
            Integer num2 = null;
            while (true) {
                int i2 = length - 1;
                if (length <= 0) {
                    break;
                }
                try {
                    synchronized (this.f24009) {
                        try {
                            int i3 = this.f24004 + 1;
                            this.f24004 = i3;
                            if ((i3 & 65535) == 0) {
                                this.f24004 = 1;
                            }
                            int i4 = this.f24004;
                            abstractC14901.f44134 = i4;
                            num = new Integer(i4);
                            try {
                                this.f24015.setAddress(abstractC14901.f44127);
                                this.f24015.setLength(abstractC14901.m31066(this.f23995));
                                abstractC149012.f44138 = false;
                                this.f24014.put(num, abstractC149012);
                                m19480(i + 1000);
                                this.f24003.send(this.f24015);
                                InterfaceC6372 interfaceC6372 = f23993;
                                if (interfaceC6372.mo10329()) {
                                    interfaceC6372.mo10327(abstractC14901.toString());
                                    interfaceC6372.mo10327(C5938.m14865(this.f23995, 0, this.f24015.getLength()));
                                }
                                try {
                                    long currentTimeMillis = System.currentTimeMillis();
                                    while (i > 0) {
                                        long j = i;
                                        abstractC149012.wait(j);
                                        if (!abstractC149012.f44138 || abstractC14901.f44114 != abstractC149012.f44136) {
                                            abstractC149012.f44138 = false;
                                            i = (int) (j - (System.currentTimeMillis() - currentTimeMillis));
                                        } else {
                                            this.f24014.remove(num);
                                            return;
                                        }
                                    }
                                    this.f24014.remove(num);
                                    synchronized (this.f24009) {
                                        if (!m19485(abstractC14901.f44127)) {
                                            break;
                                        }
                                        if (abstractC14901.f44127 == m19491()) {
                                            m19494();
                                        }
                                        abstractC14901.f44127 = m19491();
                                    }
                                } catch (InterruptedException unused) {
                                    runnableC8164 = this;
                                    num2 = num;
                                    throw new InterruptedIOException();
                                } catch (Throwable th) {
                                    th = th;
                                    runnableC8164 = this;
                                    runnableC8164.f24014.remove(num);
                                    throw th;
                                }
                            } catch (Throwable th2) {
                                th = th2;
                                runnableC8164 = this;
                                num2 = num;
                                while (true) {
                                    try {
                                        try {
                                            try {
                                                break;
                                            } catch (InterruptedException unused2) {
                                                throw new InterruptedIOException();
                                            }
                                        } catch (Throwable th3) {
                                            th = th3;
                                            num = num2;
                                            runnableC8164.f24014.remove(num);
                                            throw th;
                                        }
                                    } catch (Throwable th4) {
                                        th = th4;
                                    }
                                }
                                throw th;
                            }
                        } catch (Throwable th5) {
                            th = th5;
                            runnableC8164 = this;
                        }
                    }
                } catch (InterruptedException unused3) {
                    runnableC8164 = this;
                } catch (Throwable th6) {
                    th = th6;
                    runnableC8164 = this;
                    num = num2;
                    runnableC8164.f24014.remove(num);
                    throw th;
                }
                length = i2;
                num2 = num;
            }
        }
    }

    public final void m19484(C2270[] c2270Arr) {
        if (((C5872) this.f23998.mo703()).m14643() == 0) {
            return;
        }
        long currentTimeMillis = ((C5872) this.f23998.mo703()).m14643() != -1 ? System.currentTimeMillis() + (((C5872) this.f23998.mo703()).m14643() * 1000) : -1L;
        synchronized (this.f23997) {
            for (int i = 0; i < c2270Arr.length; i++) {
                C9615 c9615 = (C9615) this.f23997.get(c2270Arr[i].f8191);
                if (c9615 == null) {
                    C2270 c2270 = c2270Arr[i];
                    this.f23997.put(c2270.f8191, new C9615(c2270, currentTimeMillis));
                } else {
                    c9615.f27813 = c2270Arr[i];
                    c9615.f27814 = currentTimeMillis;
                }
            }
        }
    }

    public final void m19490() {
        synchronized (this.f24009) {
            DatagramSocket datagramSocket = this.f24003;
            if (datagramSocket != null) {
                datagramSocket.close();
                this.f24003 = null;
            }
            this.f24010 = null;
            this.f24014.clear();
        }
    }

    public final InetAddress m19491() {
        InterfaceC13030 interfaceC13030 = this.f23998;
        if (((C5872) interfaceC13030.mo703()).m14644().length == 0) {
            return null;
        }
        return ((C5872) interfaceC13030.mo703()).m14644()[this.f23994];
    }

    public final C2270 m19492(C12983 c12983) {
        C2270 c2270;
        if (((C5872) this.f23998.mo703()).m14643() == 0) {
            return null;
        }
        synchronized (this.f23997) {
            C9615 c9615 = (C9615) this.f23997.get(c12983);
            if (c9615 != null && c9615.f27814 < System.currentTimeMillis() && c9615.f27814 >= 0) {
                c9615 = null;
            }
            c2270 = c9615 != null ? c9615.f27813 : null;
        }
        return c2270;
    }

    public final void m19494() {
        int i = this.f23994 + 1;
        InterfaceC13030 interfaceC13030 = this.f23998;
        this.f23994 = i < ((C5872) interfaceC13030.mo703()).m14644().length ? this.f23994 + 1 : 0;
        if (((C5872) interfaceC13030.mo703()).m14644().length == 0) {
            return;
        }
        InetAddress inetAddress = ((C5872) interfaceC13030.mo703()).m14644()[this.f23994];
    }

    public final void m19480(int i) {
        this.f24011 = 0;
        InterfaceC13030 interfaceC13030 = this.f23998;
        if (((C5872) interfaceC13030.mo703()).m14670() != 0) {
            this.f24011 = Math.max(((C5872) interfaceC13030.mo703()).m14670(), i);
        }
        if (this.f24003 == null) {
            this.f24003 = new DatagramSocket(this.f23999, this.f24000);
            Thread thread = new Thread(this, "JCIFS-NameServiceClient");
            this.f24010 = thread;
            thread.setDaemon(true);
            this.f24010.start();
        }
    }

    public final boolean m19485(InetAddress inetAddress) {
        int i = 0;
        while (inetAddress != null) {
            InterfaceC13030 interfaceC13030 = this.f23998;
            if (i >= ((C5872) interfaceC13030.mo703()).m14644().length) {
                break;
            }
            if (inetAddress.hashCode() == ((C5872) interfaceC13030.mo703()).m14644()[i].hashCode()) {
                return true;
            }
            i++;
        }
        return false;
    }

    public RunnableC8164(InterfaceC13030 interfaceC13030) {
        InetAddress byName;
        interfaceC13030.mo703().getClass();
        interfaceC13030.mo703().getClass();
        this.f24009 = new Object();
        this.f23994 = 0;
        HashMap hashMap = new HashMap();
        this.f23997 = hashMap;
        this.f24013 = new HashSet();
        this.f24014 = new HashMap();
        this.f24004 = 0;
        this.f24002 = new ArrayList();
        this.f24001 = new C10457();
        this.f23999 = 0;
        this.f24000 = null;
        this.f23998 = interfaceC13030;
        InetAddress m14660 = ((C5872) interfaceC13030.mo703()).m14660();
        this.f24005 = m14660;
        byte[] bArr = new byte[((C5872) interfaceC13030.mo703()).m14658()];
        this.f23995 = bArr;
        byte[] bArr2 = new byte[((C5872) interfaceC13030.mo703()).m14655()];
        this.f23996 = bArr2;
        this.f24015 = new DatagramPacket(bArr, ((C5872) interfaceC13030.mo703()).m14658(), m14660, InterfaceC9720.f28052);
        this.f24008 = new DatagramPacket(bArr2, ((C5872) interfaceC13030.mo703()).m14655());
        this.f24002 = ((C5872) interfaceC13030.mo703()).m14675();
        C12983 c12983 = new C12983(interfaceC13030.mo703(), "0.0.0.0", 0, null);
        this.f24012 = c12983;
        C2270 c2270 = new C2270(c12983, 0);
        this.f24006 = c2270;
        hashMap.put(c12983, new C9615(c2270, -1L));
        interfaceC13030.mo703().getClass();
        try {
            try {
                byName = InetAddress.getLocalHost();
            } catch (UnknownHostException unused) {
                byName = InetAddress.getByName("127.0.0.1");
            }
            interfaceC13030.mo703().getClass();
            byte[] address = byName.getAddress();
            String str = "JCIFS" + (address[2] & 255) + "_" + (address[3] & 255) + "_" + C5938.m14864((int) (Math.random() * 255.0d), 2);
            InterfaceC3767 mo703 = interfaceC13030.mo703();
            interfaceC13030.mo703().getClass();
            C12983 c129832 = new C12983(mo703, str, 0, null);
            C2270 c22702 = new C2270(c129832, byName.hashCode(), 0);
            this.f24007 = c22702;
            m19482(c129832, c22702, -1L);
        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        }
    }

    public final C2270 m19476(C12983 c12983) {
        C2270 c2270;
        C2270 c22702 = null;
        InetAddress inetAddress = c12983.f39142 == 29 ? this.f24005 : null;
        c12983.f39141 = inetAddress != null ? inetAddress.hashCode() : 0;
        C2270 m19492 = m19492(c12983);
        if (m19492 == null) {
            synchronized (this.f24013) {
                if (!this.f24013.contains(c12983)) {
                    this.f24013.add(c12983);
                } else {
                    while (this.f24013.contains(c12983)) {
                        try {
                            this.f24013.wait();
                        } catch (InterruptedException e) {
                            f23993.mo10343("Interrupted", e);
                        }
                    }
                    c22702 = m19492(c12983);
                    if (c22702 == null) {
                        synchronized (this.f24013) {
                            this.f24013.add(c12983);
                        }
                    }
                }
            }
            try {
                if (c22702 == null) {
                    try {
                        c2270 = m19477(c12983, inetAddress);
                    } catch (UnknownHostException unused) {
                        c2270 = this.f24006;
                    }
                    m19492 = c2270;
                    m19481(c12983, m19492);
                    m19474(c12983);
                } else {
                    m19492 = c22702;
                }
            } catch (Throwable th) {
                m19481(c12983, c22702);
                m19474(c12983);
                throw th;
            }
        }
        if (m19492 != this.f24006) {
            return m19492;
        }
        throw new UnknownHostException(c12983.toString());
    }

    public final void m19481(C12983 c12983, C2270 c2270) {
        InterfaceC13030 interfaceC13030 = this.f23998;
        if (((C5872) interfaceC13030.mo703()).m14643() == 0) {
            return;
        }
        m19482(c12983, c2270, ((C5872) interfaceC13030.mo703()).m14643() != -1 ? System.currentTimeMillis() + (((C5872) interfaceC13030.mo703()).m14643() * 1000) : -1L);
    }

    public final void m19482(C12983 c12983, C2270 c2270, long j) {
        if (((C5872) this.f23998.mo703()).m14643() == 0) {
            return;
        }
        synchronized (this.f23997) {
            C9615 c9615 = (C9615) this.f23997.get(c12983);
            if (c9615 == null) {
                this.f23997.put(c12983, new C9615(c2270, j));
            } else {
                c9615.f27813 = c2270;
                c9615.f27814 = j;
            }
        }
    }

    public final C2270 m19477(C12983 c12983, InetAddress inetAddress) {
        InterfaceC13030 interfaceC13030 = this.f23998;
        C4562 c4562 = new C4562(interfaceC13030.mo703(), c12983);
        C5404 c5404 = new C5404(interfaceC13030.mo703());
        InterfaceC6372 interfaceC6372 = f23993;
        if (inetAddress == null) {
            Iterator it = this.f24002.iterator();
            while (it.hasNext()) {
                EnumC11767 enumC11767 = (EnumC11767) it.next();
                try {
                    int ordinal = enumC11767.ordinal();
                    if (ordinal == 0 || ordinal == 1) {
                        EnumC11767 enumC117672 = EnumC11767.f34926;
                        if (enumC11767 != enumC117672 || c12983.f39143 == "\u0001\u0002__MSBROWSE__\u0002" || c12983.f39142 == 29) {
                            c4562.f44127 = this.f24005;
                            c4562.f44132 = true;
                        } else {
                            c4562.f44127 = m19491();
                            c4562.f44132 = false;
                        }
                        int m14677 = ((C5872) interfaceC13030.mo703()).m14677();
                        while (true) {
                            int i = m14677 - 1;
                            if (m14677 > 0) {
                                try {
                                    m19483(c4562, c5404, ((C5872) interfaceC13030.mo703()).m14640());
                                    if (c5404.f44138 && c5404.f44116 == 0) {
                                        c5404.f44137[0].f8191.f39141 = c4562.f44127.hashCode();
                                        return c5404.f44137[0];
                                    }
                                    if (enumC11767 == enumC117672) {
                                        break;
                                    }
                                    m14677 = i;
                                } catch (IOException e) {
                                    interfaceC6372.mo10333("Failed to send nameservice request for " + c12983.f39143, (Exception) e);
                                    throw new UnknownHostException(c12983.f39143);
                                }
                            }
                        }
                    } else if (ordinal == 3) {
                        this.f24001.m23325(interfaceC13030);
                    }
                } catch (IOException e2) {
                    interfaceC6372.mo10312("Failed to lookup name", (Exception) e2);
                }
            }
            throw new UnknownHostException(c12983.f39143);
        }
        c4562.f44127 = inetAddress;
        c4562.f44132 = inetAddress.equals(this.f24005) || inetAddress.getAddress()[3] == -1;
        int m146772 = ((C5872) interfaceC13030.mo703()).m14677();
        do {
            try {
                m19483(c4562, c5404, ((C5872) interfaceC13030.mo703()).m14640());
                if (!c5404.f44138 || c5404.f44116 != 0) {
                    m146772--;
                    if (m146772 <= 0) {
                        break;
                    }
                } else {
                    C2270[] c2270Arr = c5404.f44137;
                    int length = c2270Arr.length - 1;
                    c2270Arr[length].f8191.f39141 = inetAddress.hashCode();
                    return c5404.f44137[length];
                }
            } catch (InterruptedIOException e3) {
                if (interfaceC6372.mo10329()) {
                    interfaceC6372.mo10343("Timeout waiting for response " + c12983.f39143, e3);
                }
                throw new UnknownHostException(c12983.f39143);
            } catch (IOException e4) {
                interfaceC6372.mo10333("Failed to send nameservice request for " + c12983.f39143, (Exception) e4);
                throw new UnknownHostException(c12983.f39143);
            }
        } while (c4562.f44132);
        throw new UnknownHostException(c12983.f39143);
    }

    public final C2270[] m19487(InterfaceC7556 interfaceC7556) {
        InterfaceC13030 interfaceC13030 = this.f23998;
        C1428 c1428 = new C1428(interfaceC13030.mo703(), (C2270) interfaceC7556.mo6724(C2270.class));
        InterfaceC3767 mo703 = interfaceC13030.mo703();
        int i = 0;
        C12983 c12983 = new C12983(interfaceC13030.mo703(), "*\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000", 0, null);
        AbstractC14901 abstractC14901 = new AbstractC14901(mo703);
        abstractC14901.f44120 = c12983;
        abstractC14901.f44114 = 33;
        abstractC14901.f44129 = false;
        abstractC14901.f44132 = false;
        abstractC14901.f44127 = interfaceC7556.mo6728();
        int m14677 = ((C5872) interfaceC13030.mo703()).m14677();
        while (true) {
            int i2 = m14677 - 1;
            if (m14677 > 0) {
                try {
                    m19483(abstractC14901, c1428, ((C5872) interfaceC13030.mo703()).m14640());
                    if (c1428.f44138 && c1428.f44116 == 0) {
                        int hashCode = abstractC14901.f44127.hashCode();
                        while (true) {
                            C2270[] c2270Arr = c1428.f5724;
                            if (i >= c2270Arr.length) {
                                return c2270Arr;
                            }
                            c2270Arr[i].f8191.f39141 = hashCode;
                            i++;
                        }
                    } else {
                        m14677 = i2;
                    }
                } catch (IOException e) {
                    f23993.mo10333("Failed to send node status request for " + interfaceC7556, (Exception) e);
                    throw new UnknownHostException(interfaceC7556.toString());
                }
            } else {
                throw new UnknownHostException(interfaceC7556.mo6726());
            }
        }
    }

    public final C2270 m19475(int i, String str) {
        if (str == null || str.length() == 0) {
            return this.f24007;
        }
        C12983 c12983 = new C12983(this.f23998.mo703(), str, i, null);
        if (!Character.isDigit(str.charAt(0))) {
            return m19476(c12983);
        }
        char[] charArray = str.toCharArray();
        int i2 = 0;
        int i3 = 0;
        int i4 = 0;
        while (i2 < charArray.length) {
            char c = charArray[i2];
            if (c < '0' || c > '9') {
                return m19476(c12983);
            }
            int i5 = 0;
            while (c != '.') {
                if (c < '0' || c > '9') {
                    return m19476(c12983);
                }
                i5 = ((i5 * 10) + c) - 48;
                i2++;
                if (i2 >= charArray.length) {
                    break;
                }
                c = charArray[i2];
            }
            if (i5 > 255) {
                return m19476(c12983);
            }
            i4 = (i4 << 8) + i5;
            i3++;
            i2++;
        }
        if (i3 != 4 || str.endsWith(".")) {
            return m19476(c12983);
        }
        return new C2270(this.f24012, i4);
    }

    public final C2270[] m19486(String str, int i, String str2, InetAddress inetAddress) {
        InterfaceC13030 interfaceC13030 = this.f23998;
        C12983 c12983 = new C12983(interfaceC13030.mo703(), str, i, str2);
        InterfaceC6372 interfaceC6372 = f23993;
        InterfaceC3767 mo703 = interfaceC13030.mo703();
        C4562 c4562 = new C4562(mo703, c12983);
        C5404 c5404 = new C5404(mo703);
        if (inetAddress == null) {
            inetAddress = m19491();
        }
        c4562.f44127 = inetAddress;
        int i2 = 1;
        boolean z = inetAddress == null || inetAddress.equals(this.f24005) || inetAddress.getAddress()[3] == -1;
        c4562.f44132 = z;
        if (z) {
            if (c4562.f44127 == null) {
                c4562.f44127 = this.f24005;
            }
            i2 = ((C5872) mo703).m14677();
        }
        do {
            try {
                m19483(c4562, c5404, ((C5872) mo703).m14640());
                if (!c5404.f44138 || c5404.f44116 != 0) {
                    i2--;
                    if (i2 <= 0) {
                        break;
                    }
                } else {
                    return c5404.f44137;
                }
            } catch (InterruptedIOException e) {
                if (interfaceC6372.mo10329()) {
                    interfaceC6372.mo10343("Failed to send nameservice request for " + c12983.f39143, e);
                }
                throw new UnknownHostException(c12983.f39143);
            } catch (IOException e2) {
                interfaceC6372.mo10333("Failed to send nameservice request for " + c12983.f39143, (Exception) e2);
                throw new UnknownHostException(c12983.f39143);
            }
        } while (c4562.f44132);
        throw new UnknownHostException(c12983.f39143);
    }

    public final InterfaceC7556[] m19493(String str) {
        String str2;
        C2270 m19475 = m19475(0, str);
        try {
            C2270[] m19487 = m19487(m19475);
            m19484(m19487);
            return m19487;
        } catch (UnknownHostException unused) {
            StringBuilder sb = new StringBuilder("no name with type 0x");
            sb.append(C5938.m14864(m19475.f8191.f39142, 2));
            String str3 = m19475.f8191.f39140;
            if (str3 == null || str3.isEmpty()) {
                str2 = " with no scope";
            } else {
                str2 = " with scope " + m19475.f8191.f39140;
            }
            sb.append(str2);
            sb.append(" for host ");
            sb.append(m19475.mo6725());
            throw new UnknownHostException(sb.toString());
        }
    }

    public final InterfaceC7556[] m19488(String str, InetAddress inetAddress) {
        ?? obj = new Object();
        obj.f2223 = 2;
        C3720 c3720 = new C3720(obj, str, m19485(inetAddress) ? 27 : 29, inetAddress, this.f23998);
        C3720 c37202 = new C3720(obj, str, 32, inetAddress, this.f23998);
        c3720.setDaemon(true);
        c37202.setDaemon(true);
        try {
            synchronized (obj) {
                c3720.start();
                c37202.start();
                while (obj.f2223 > 0 && c3720.m10081() == null && c37202.m10081() == null) {
                    obj.wait();
                }
            }
            try {
                c3720.interrupt();
            } catch (SecurityException unused) {
            }
            try {
                c3720.join();
            } catch (InterruptedException unused2) {
            }
            try {
                c37202.interrupt();
            } catch (SecurityException unused3) {
            }
            try {
                c37202.join();
            } catch (InterruptedException unused4) {
            }
            if (c3720.m10081() != null) {
                return c3720.m10081();
            }
            if (c37202.m10081() != null) {
                return c37202.m10081();
            }
            throw c3720.m10082();
        } catch (InterruptedException unused5) {
            throw new UnknownHostException(str);
        }
    }

    public final C11533 m19478(String str) {
        return m19489(str, false)[0];
    }

    public final C11533[] m19489(String str, boolean z) {
        int ordinal;
        InterfaceC7556[] m19486;
        if (str == null || str.length() == 0) {
            throw new UnknownHostException();
        }
        if (C11533.m25196(str)) {
            return new C11533[]{new C11533(m19475(0, str))};
        }
        InterfaceC6372 interfaceC6372 = f23993;
        if (interfaceC6372.mo10329()) {
            interfaceC6372.mo10327("Resolver order is " + ((C5872) this.f23998.mo703()).m14675());
        }
        Iterator it = ((C5872) this.f23998.mo703()).m14675().iterator();
        while (it.hasNext()) {
            EnumC11767 enumC11767 = (EnumC11767) it.next();
            try {
                ordinal = enumC11767.ordinal();
            } catch (IOException e) {
                InterfaceC6372 interfaceC63722 = f23993;
                interfaceC63722.mo10334("Resolving {} via {} failed:", str, enumC11767);
                interfaceC63722.mo10343("Exception is", e);
            }
            if (ordinal != 0) {
                if (ordinal != 1) {
                    if (ordinal == 2) {
                        for (int i = 0; i < str.length(); i++) {
                            if (!Character.isDigit(str.charAt(i))) {
                                InetAddress[] allByName = InetAddress.getAllByName(str);
                                C11533[] c11533Arr = new C11533[allByName.length];
                                for (int i2 = 0; i2 < allByName.length; i2++) {
                                    c11533Arr[i2] = new C11533(allByName[i2]);
                                }
                                InterfaceC6372 interfaceC63723 = f23993;
                                if (interfaceC63723.mo10338()) {
                                    interfaceC63723.mo10313("Resolved '{}' to {} using DNS", str, Arrays.toString(c11533Arr));
                                }
                                return c11533Arr;
                            }
                        }
                        throw new UnknownHostException(str);
                    }
                    if (ordinal == 3) {
                        C10457 c10457 = this.f24001;
                        InterfaceC13030 interfaceC13030 = this.f23998;
                        synchronized (c10457) {
                            new C12983(interfaceC13030.mo703(), str, 32, null);
                            c10457.m23325(interfaceC13030);
                        }
                    } else {
                        throw new UnknownHostException(str);
                    }
                } else if (str.length() <= 15) {
                    if (z) {
                        m19486 = m19488(str, ((C5872) this.f23998.mo703()).m14660());
                    } else {
                        m19486 = m19486(str, 32, null, ((C5872) this.f23998.mo703()).m14660());
                    }
                }
            } else if (!str.equals("\u0001\u0002__MSBROWSE__\u0002") && str.length() <= 15) {
                if (z) {
                    m19486 = m19488(str, m19491());
                } else {
                    m19486 = m19486(str, 32, null, m19491());
                }
            }
            if (m19486 != null) {
                InterfaceC6372 interfaceC63724 = f23993;
                if (interfaceC63724.mo10338()) {
                    interfaceC63724.mo10336("Resolved '{}' to addrs {} via {}", str, Arrays.toString(m19486), enumC11767);
                }
                C11533[] c11533Arr2 = new C11533[m19486.length];
                for (int i3 = 0; i3 < m19486.length; i3++) {
                    c11533Arr2[i3] = new C11533(m19486[i3]);
                }
                return c11533Arr2;
            }
        }
        throw new UnknownHostException(str);
    }
}