package p447;

import java.net.Proxy;
import java.net.ProxySelector;
import java.util.List;
import java.util.Objects;
import javax.net.SocketFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.p411.p413.C6635;
import p402.p420.C6703;
import p447.C6908;
import p447.p448.C6943;

/* JADX INFO: renamed from: ސ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C6860 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C6908 f19900;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final List<EnumC6924> f19901;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final List<C6881> f19902;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final InterfaceC6891 f19903;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final SocketFactory f19904;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final SSLSocketFactory f19905;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final HostnameVerifier f19906;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final C6871 f19907;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final InterfaceC6861 f19908;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final Proxy f19909;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public final ProxySelector f19910;

    public C6860(String str, int i, InterfaceC6891 interfaceC6891, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, C6871 c6871, InterfaceC6861 interfaceC6861, Proxy proxy, List<? extends EnumC6924> list, List<C6881> list2, ProxySelector proxySelector) {
        if (str == null) {
            C6635.m9824("uriHost");
            throw null;
        }
        if (interfaceC6891 == null) {
            C6635.m9824("dns");
            throw null;
        }
        if (socketFactory == null) {
            C6635.m9824("socketFactory");
            throw null;
        }
        if (interfaceC6861 == null) {
            C6635.m9824("proxyAuthenticator");
            throw null;
        }
        if (list == null) {
            C6635.m9824("protocols");
            throw null;
        }
        if (list2 == null) {
            C6635.m9824("connectionSpecs");
            throw null;
        }
        if (proxySelector == null) {
            C6635.m9824("proxySelector");
            throw null;
        }
        this.f19903 = interfaceC6891;
        this.f19904 = socketFactory;
        this.f19905 = sSLSocketFactory;
        this.f19906 = hostnameVerifier;
        this.f19907 = c6871;
        this.f19908 = interfaceC6861;
        this.f19909 = proxy;
        this.f19910 = proxySelector;
        C6908.C6909 c6909 = new C6908.C6909();
        String str2 = this.f19905 != null ? "https" : "http";
        if (C6703.m9905(str2, "http", true)) {
            c6909.f20024 = "http";
        } else {
            if (!C6703.m9905(str2, "https", true)) {
                throw new IllegalArgumentException(C2803.m4879("unexpected scheme: ", str2));
            }
            c6909.f20024 = "https";
        }
        String strM7203 = C4303.m7203(C6908.C6911.m10095(C6908.f20012, str, 0, 0, false, 7));
        if (strM7203 == null) {
            throw new IllegalArgumentException(C2803.m4879("unexpected host: ", str));
        }
        c6909.f20027 = strM7203;
        if (!(1 <= i && 65535 >= i)) {
            throw new IllegalArgumentException(C2803.m4871("unexpected port: ", i).toString());
        }
        c6909.f20028 = i;
        this.f19900 = c6909.m10092();
        this.f19901 = C6943.m10175(list);
        this.f19902 = C6943.m10175(list2);
    }

    public boolean equals(Object obj) {
        if (obj instanceof C6860) {
            C6860 c6860 = (C6860) obj;
            if (C6635.m9825(this.f19900, c6860.f19900) && m10021(c6860)) {
                return true;
            }
        }
        return false;
    }

    public int hashCode() {
        return Objects.hashCode(this.f19907) + ((Objects.hashCode(this.f19906) + ((Objects.hashCode(this.f19905) + ((Objects.hashCode(this.f19909) + ((this.f19910.hashCode() + ((this.f19902.hashCode() + ((this.f19901.hashCode() + ((this.f19908.hashCode() + ((this.f19903.hashCode() + ((this.f19900.hashCode() + 527) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31);
    }

    public String toString() {
        StringBuilder sbM4889;
        Object obj;
        StringBuilder sbM48892 = C2803.m4889("Address{");
        sbM48892.append(this.f19900.f20017);
        sbM48892.append(':');
        sbM48892.append(this.f19900.f20018);
        sbM48892.append(", ");
        if (this.f19909 != null) {
            sbM4889 = C2803.m4889("proxy=");
            obj = this.f19909;
        } else {
            sbM4889 = C2803.m4889("proxySelector=");
            obj = this.f19910;
        }
        sbM4889.append(obj);
        sbM48892.append(sbM4889.toString());
        sbM48892.append("}");
        return sbM48892.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final boolean m10021(C6860 c6860) {
        if (c6860 != null) {
            return C6635.m9825(this.f19903, c6860.f19903) && C6635.m9825(this.f19908, c6860.f19908) && C6635.m9825(this.f19901, c6860.f19901) && C6635.m9825(this.f19902, c6860.f19902) && C6635.m9825(this.f19910, c6860.f19910) && C6635.m9825(this.f19909, c6860.f19909) && C6635.m9825(this.f19905, c6860.f19905) && C6635.m9825(this.f19906, c6860.f19906) && C6635.m9825(this.f19907, c6860.f19907) && this.f19900.f20018 == c6860.f19900.f20018;
        }
        C6635.m9824("that");
        throw null;
    }
}
