package k7;

/* JADX INFO: loaded from: classes.dex */
public final class B {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public y f13995a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public x f13996b;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public String f13998d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public n f13999e;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public E f14001g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public C f14002h;
    public C i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public C f14003j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public long f14004k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public long f14005l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public o7.d f14006m;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f13997c = -1;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public N0.c f14000f = new N0.c(1);

    public static void b(String str, C c3) {
        if (c3 != null) {
            if (c3.f14016w != null) {
                throw new IllegalArgumentException(str.concat(".body != null").toString());
            }
            if (c3.f14017x != null) {
                throw new IllegalArgumentException(str.concat(".networkResponse != null").toString());
            }
            if (c3.f14018y != null) {
                throw new IllegalArgumentException(str.concat(".cacheResponse != null").toString());
            }
            if (c3.f14019z != null) {
                throw new IllegalArgumentException(str.concat(".priorResponse != null").toString());
            }
        }
    }

    public final C a() {
        int i = this.f13997c;
        if (i < 0) {
            throw new IllegalStateException(("code < 0: " + this.f13997c).toString());
        }
        y yVar = this.f13995a;
        if (yVar == null) {
            throw new IllegalStateException("request == null");
        }
        x xVar = this.f13996b;
        if (xVar == null) {
            throw new IllegalStateException("protocol == null");
        }
        String str = this.f13998d;
        if (str != null) {
            return new C(yVar, xVar, str, i, this.f13999e, this.f14000f.i(), this.f14001g, this.f14002h, this.i, this.f14003j, this.f14004k, this.f14005l, this.f14006m);
        }
        throw new IllegalStateException("message == null");
    }
}
