package o;

import android.content.Context;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class B00 {
    public final C2891xG a;
    public final List b;
    public final int c;
    public final C2891xG d;
    public final S80 e;
    public final C0282Kw f;
    public final boolean g;

    public B00(C2891xG c2891xG, List list, int i, C2891xG c2891xG2, S80 s80, C0282Kw c0282Kw, boolean z) {
        this.a = c2891xG;
        this.b = list;
        this.c = i;
        this.d = c2891xG2;
        this.e = s80;
        this.f = c0282Kw;
        this.g = z;
    }

    public final void a(C2891xG c2891xG, C1721kw c1721kw) {
        Context context = c2891xG.a;
        C2891xG c2891xG2 = this.a;
        if (context != c2891xG2.a) {
            throw new IllegalStateException(("Interceptor '" + c1721kw + "' cannot modify the request's context.").toString());
        }
        if (c2891xG.b == C0669Zu.P) {
            throw new IllegalStateException(("Interceptor '" + c1721kw + "' cannot set the request's data to null.").toString());
        }
        if (c2891xG.c != c2891xG2.c) {
            throw new IllegalStateException(("Interceptor '" + c1721kw + "' cannot modify the request's target.").toString());
        }
        if (c2891xG.q != c2891xG2.q) {
            throw new IllegalStateException(("Interceptor '" + c1721kw + "' cannot modify the request's lifecycle.").toString());
        }
        if (c2891xG.r == c2891xG2.r) {
            return;
        }
        throw new IllegalStateException(("Interceptor '" + c1721kw + "' cannot modify the request's size resolver. Use `Interceptor.Chain.withSize` instead.").toString());
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object b(o.C2891xG r12, o.AbstractC0298Lm r13) {
        /*
            r11 = this;
            boolean r0 = r13 instanceof o.C3056z00
            if (r0 == 0) goto L13
            r0 = r13
            o.z00 r0 = (o.C3056z00) r0
            int r1 = r0.s
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.s = r1
            goto L18
        L13:
            o.z00 r0 = new o.z00
            r0.<init>(r11, r13)
        L18:
            java.lang.Object r13 = r0.q
            int r1 = r0.s
            r2 = 1
            if (r1 == 0) goto L31
            if (r1 != r2) goto L29
            o.kw r12 = r0.p
            o.B00 r0 = r0.f818o
            o.IJ.H(r13)
            goto L70
        L29:
            java.lang.IllegalStateException r12 = new java.lang.IllegalStateException
            java.lang.String r13 = "call to 'resume' before 'invoke' with coroutine"
            r12.<init>(r13)
            throw r12
        L31:
            o.IJ.H(r13)
            java.util.List r13 = r11.b
            int r1 = r11.c
            if (r1 <= 0) goto L45
            int r3 = r1 + (-1)
            java.lang.Object r3 = r13.get(r3)
            o.kw r3 = (o.C1721kw) r3
            r11.a(r12, r3)
        L45:
            java.lang.Object r13 = r13.get(r1)
            o.kw r13 = (o.C1721kw) r13
            int r6 = r1 + 1
            o.B00 r3 = new o.B00
            o.Kw r9 = r11.f
            boolean r10 = r11.g
            o.xG r4 = r11.a
            java.util.List r5 = r11.b
            o.S80 r8 = r11.e
            r7 = r12
            r3.<init>(r4, r5, r6, r7, r8, r9, r10)
            r0.f818o = r11
            r0.p = r13
            r0.s = r2
            java.lang.Object r12 = r13.d(r3, r0)
            o.Dn r0 = o.EnumC0091Dn.l
            if (r12 != r0) goto L6c
            return r0
        L6c:
            r0 = r13
            r13 = r12
            r12 = r0
            r0 = r11
        L70:
            o.yG r13 = (o.AbstractC2986yG) r13
            o.xG r1 = r13.a()
            r0.a(r1, r12)
            return r13
        */
        throw new UnsupportedOperationException("Method not decompiled: o.B00.b(o.xG, o.Lm):java.lang.Object");
    }
}
