package p447.p448.p453;

import java.util.List;
import p138.p139.p143.p144.C2803;
import p402.p411.p413.C6635;
import p447.C6926;
import p447.C6933;
import p447.InterfaceC6868;
import p447.InterfaceC6912;
import p447.p448.p452.C6960;
import p447.p448.p452.C6964;

/* JADX INFO: renamed from: ސ.ޣ.ޅ.ބ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C6987 implements InterfaceC6912.InterfaceC6913 {

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

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final C6964 f20331;

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

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

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

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

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

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

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

    /* JADX WARN: Multi-variable type inference failed */
    public C6987(C6964 c6964, List<? extends InterfaceC6912> list, int i, C6960 c6960, C6926 c6926, int i2, int i3, int i4) {
        if (c6964 == null) {
            C6635.m9824("call");
            throw null;
        }
        if (list == 0) {
            C6635.m9824("interceptors");
            throw null;
        }
        if (c6926 == null) {
            C6635.m9824("request");
            throw null;
        }
        this.f20331 = c6964;
        this.f20332 = list;
        this.f20333 = i;
        this.f20334 = c6960;
        this.f20335 = c6926;
        this.f20336 = i2;
        this.f20337 = i3;
        this.f20338 = i4;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ C6987 m10266(C6987 c6987, int i, C6960 c6960, C6926 c6926, int i2, int i3, int i4, int i5) {
        int i6 = (i5 & 1) != 0 ? c6987.f20333 : i;
        C6960 c69602 = (i5 & 2) != 0 ? c6987.f20334 : c6960;
        C6926 c69262 = (i5 & 4) != 0 ? c6987.f20335 : c6926;
        int i7 = (i5 & 8) != 0 ? c6987.f20336 : i2;
        int i8 = (i5 & 16) != 0 ? c6987.f20337 : i3;
        int i9 = (i5 & 32) != 0 ? c6987.f20338 : i4;
        if (c69262 != null) {
            return new C6987(c6987.f20331, c6987.f20332, i6, c69602, c69262, i7, i8, i9);
        }
        C6635.m9824("request");
        throw null;
    }

    @Override // p447.InterfaceC6912.InterfaceC6913
    public InterfaceC6868 call() {
        return this.f20331;
    }

    @Override // p447.InterfaceC6912.InterfaceC6913
    /* JADX INFO: renamed from: ֏ */
    public C6933 mo10101(C6926 c6926) {
        if (c6926 == null) {
            C6635.m9824("request");
            throw null;
        }
        if (!(this.f20333 < this.f20332.size())) {
            throw new IllegalStateException("Check failed.".toString());
        }
        this.f20330++;
        C6960 c6960 = this.f20334;
        if (c6960 != null) {
            if (!c6960.f20237.m10212(c6926.f20128)) {
                StringBuilder sbM4889 = C2803.m4889("network interceptor ");
                sbM4889.append(this.f20332.get(this.f20333 - 1));
                sbM4889.append(" must retain the same host and port");
                throw new IllegalStateException(sbM4889.toString().toString());
            }
            if (!(this.f20330 == 1)) {
                StringBuilder sbM48892 = C2803.m4889("network interceptor ");
                sbM48892.append(this.f20332.get(this.f20333 - 1));
                sbM48892.append(" must call proceed() exactly once");
                throw new IllegalStateException(sbM48892.toString().toString());
            }
        }
        C6987 c6987M10266 = m10266(this, this.f20333 + 1, null, c6926, 0, 0, 0, 58);
        InterfaceC6912 interfaceC6912 = this.f20332.get(this.f20333);
        C6933 c6933Intercept = interfaceC6912.intercept(c6987M10266);
        if (c6933Intercept == null) {
            throw new NullPointerException("interceptor " + interfaceC6912 + " returned null");
        }
        if (this.f20334 != null) {
            if (!(this.f20333 + 1 >= this.f20332.size() || c6987M10266.f20330 == 1)) {
                throw new IllegalStateException(("network interceptor " + interfaceC6912 + " must call proceed() exactly once").toString());
            }
        }
        if (c6933Intercept.f20152 != null) {
            return c6933Intercept;
        }
        throw new IllegalStateException(("interceptor " + interfaceC6912 + " returned a response with no body").toString());
    }

    @Override // p447.InterfaceC6912.InterfaceC6913
    /* JADX INFO: renamed from: ބ */
    public C6926 mo10102() {
        return this.f20335;
    }
}
