package Nm6q_10;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
/* compiled from: Okio.kt */
/* loaded from: classes.dex */
public final class YghfZG_14 {
    public static final IMuAHx_6 KQgRr5e_0(G83uNX_24 g83uNX_24) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(g83uNX_24, "$receiver");
        return new Eps4cJe_18(g83uNX_24);
    }

    public static final IFxWkV_5 KQgRr5e_0(H5YG8fq_22 h5YG8fq_22) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(h5YG8fq_22, "$receiver");
        return new NQvZgp_17(h5YG8fq_22);
    }

    public static final G83uNX_24 KQgRr5e_0(InputStream inputStream) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(inputStream, "$receiver");
        return new WwEq_13(inputStream, new KVtv3R_25());
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static final H5YG8fq_22 m189KQgRr5e_0(Socket socket) throws IOException {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(socket, "$receiver");
        SI64pbG_23 sI64pbG_23 = new SI64pbG_23(socket);
        OutputStream outputStream = socket.getOutputStream();
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.KQgRr5e_0((Object) outputStream, "getOutputStream()");
        return sI64pbG_23.KQgRr5e_0(new JZJr_16(outputStream, sI64pbG_23));
    }

    public static final G83uNX_24 KQgRr5e_0(Socket socket) throws IOException {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(socket, "$receiver");
        SI64pbG_23 sI64pbG_23 = new SI64pbG_23(socket);
        InputStream inputStream = socket.getInputStream();
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.KQgRr5e_0((Object) inputStream, "getInputStream()");
        return sI64pbG_23.KQgRr5e_0(new WwEq_13(inputStream, sI64pbG_23));
    }

    public static final boolean KQgRr5e_0(AssertionError assertionError) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(assertionError, "$receiver");
        if (assertionError.getCause() != null) {
            String message = assertionError.getMessage();
            return message != null ? FSaI4_7.KNBe_11.EuDEkJe_12.KQgRr5e_0((CharSequence) message, (CharSequence) "getsockname failed", false, 2, (Object) null) : false;
        }
        return false;
    }
}
