package p447.p448.p457.p458;

import java.util.List;
import javax.net.ssl.SSLSocket;
import p402.p411.p413.C6635;
import p402.p420.C6703;
import p447.EnumC6924;
import p447.p448.p457.C7069;

/* JADX INFO: renamed from: ސ.ޣ.މ.ކ.ކ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7085 implements InterfaceC7086 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean f20608;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public InterfaceC7086 f20609;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final String f20610;

    public C7085(String str) {
        if (str != null) {
            this.f20610 = str;
        } else {
            C6635.m9824("socketPackage");
            throw null;
        }
    }

    @Override // p447.p448.p457.p458.InterfaceC7086
    /* JADX INFO: renamed from: ֏ */
    public String mo10385(SSLSocket sSLSocket) {
        if (sSLSocket == null) {
            C6635.m9824("sslSocket");
            throw null;
        }
        InterfaceC7086 interfaceC7086M10392 = m10392(sSLSocket);
        if (interfaceC7086M10392 != null) {
            return interfaceC7086M10392.mo10385(sSLSocket);
        }
        return null;
    }

    @Override // p447.p448.p457.p458.InterfaceC7086
    /* JADX INFO: renamed from: ֏ */
    public void mo10386(SSLSocket sSLSocket, String str, List<? extends EnumC6924> list) {
        if (sSLSocket == null) {
            C6635.m9824("sslSocket");
            throw null;
        }
        if (list == null) {
            C6635.m9824("protocols");
            throw null;
        }
        InterfaceC7086 interfaceC7086M10392 = m10392(sSLSocket);
        if (interfaceC7086M10392 != null) {
            interfaceC7086M10392.mo10386(sSLSocket, str, list);
        }
    }

    @Override // p447.p448.p457.p458.InterfaceC7086
    /* JADX INFO: renamed from: ֏ */
    public boolean mo10387() {
        return true;
    }

    @Override // p447.p448.p457.p458.InterfaceC7086
    /* JADX INFO: renamed from: ؠ */
    public boolean mo10388(SSLSocket sSLSocket) {
        if (sSLSocket == null) {
            C6635.m9824("sslSocket");
            throw null;
        }
        String name = sSLSocket.getClass().getName();
        C6635.m9823((Object) name, "sslSocket.javaClass.name");
        return C6703.m9899(name, this.f20610, false, 2);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final synchronized InterfaceC7086 m10392(SSLSocket sSLSocket) {
        Class<?> superclass;
        if (!this.f20608) {
            try {
                superclass = sSLSocket.getClass();
            } catch (Exception e) {
                if (C7069.f20588 == null) {
                    throw null;
                }
                C7069.f20586.m10381("Failed to initialize DeferredSocketAdapter " + this.f20610, 5, e);
            }
            while (true) {
                String name = superclass.getName();
                if (!(!C6635.m9825((Object) name, (Object) (this.f20610 + ".OpenSSLSocketImpl")))) {
                    break;
                }
                superclass = superclass.getSuperclass();
                C6635.m9823((Object) superclass, "possibleClass.superclass");
                this.f20608 = true;
            }
            this.f20609 = new C7077(superclass);
            this.f20608 = true;
        }
        return this.f20609;
    }
}
