package defpackage;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.ProtocolException;
import java.net.SocketTimeoutException;
import java.security.cert.CertificateException;
import java.util.regex.Pattern;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLPeerUnverifiedException;
import okhttp3.internal.http2.ConnectionShutdownException;

/* renamed from: ᵨᵺᵶ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3770 implements InterfaceC4849 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final /* synthetic */ int f14090;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final Object f14091;

    public /* synthetic */ C3770(int i, Object obj) {
        this.f14090 = i;
        this.f14091 = obj;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static int m8430(C2977 c2977, int i) {
        String strM6560 = c2977.f11505.m6560("Retry-After");
        if (strM6560 == null) {
            strM6560 = null;
        }
        if (strM6560 == null) {
            return i;
        }
        if (Pattern.compile("\\d+").matcher(strM6560).matches()) {
            return Integer.valueOf(strM6560).intValue();
        }
        return Integer.MAX_VALUE;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public boolean m8431(IOException iOException, C1588 c1588, C1947 c1947) {
        AbstractC0523 abstractC0523;
        boolean z = iOException instanceof ConnectionShutdownException;
        if (!((C3914) this.f14091).f14690) {
            return false;
        }
        if ((!z && (((abstractC0523 = c1947.f7852) != null && abstractC0523.mo2242()) || (iOException instanceof FileNotFoundException))) || (iOException instanceof ProtocolException)) {
            return false;
        }
        if (iOException instanceof InterruptedIOException) {
            if (!(iOException instanceof SocketTimeoutException) || !z) {
                return false;
            }
        } else if (((iOException instanceof SSLHandshakeException) && (iOException.getCause() instanceof CertificateException)) || (iOException instanceof SSLPeerUnverifiedException)) {
            return false;
        }
        C4699 c4699 = c1588.f6309;
        if (c4699 == null || !c4699.f17373) {
            return false;
        }
        C0290 c0290Mo6923 = c1588.f6292.mo6923();
        C4699 c46992 = c1588.f6309;
        return c0290Mo6923.m1634(c46992 != null ? c46992.m9889() : null);
    }

    /*  JADX ERROR: JadxRuntimeException in pass: ModVisitor
        jadx.core.utils.exceptions.JadxRuntimeException: Can't remove SSA var: r0v25 ￊﾾ￡ﾵﾝ, still in use, count: 2, list:
          (r0v25 ￊﾾ￡ﾵﾝ) from 0x0072: MOVE (r18v0 ￊﾾ￡ﾵﾝ) = (r0v25 ￊﾾ￡ﾵﾝ)
          (r0v25 ￊﾾ￡ﾵﾝ) from 0x005e: MOVE (r18v3 ￊﾾ￡ﾵﾝ) = (r0v25 ￊﾾ￡ﾵﾝ)
        	at jadx.core.utils.InsnRemover.removeSsaVar(InsnRemover.java:162)
        	at jadx.core.utils.InsnRemover.unbindResult(InsnRemover.java:127)
        	at jadx.core.utils.InsnRemover.unbindInsn(InsnRemover.java:91)
        	at jadx.core.utils.InsnRemover.addAndUnbind(InsnRemover.java:57)
        	at jadx.core.dex.visitors.ModVisitor.removeStep(ModVisitor.java:463)
        	at jadx.core.dex.visitors.ModVisitor.visit(ModVisitor.java:97)
        */
    @Override // defpackage.InterfaceC4849
    /* renamed from: ᵥᵯˎ */
    public final defpackage.C2977 mo6305(defpackage.C5251 r36) {
        /*
            Method dump skipped, instructions count: 738
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C3770.mo6305(ᵼˆˏˈ):ᵞᵞᵞ");
    }

    /* JADX WARN: Removed duplicated region for block: B:74:0x00de  */
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public defpackage.C1947 m8432(defpackage.C2977 r12, defpackage.C4699 r13) throws java.net.ProtocolException {
        /*
            Method dump skipped, instructions count: 390
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C3770.m8432(ᵞᵞᵞ, ᵵʔ):ːˀᵹᵨ");
    }
}
