package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Kc0 {
    public static final Cc0 a = new Cc0(3, null);

    /*  JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
        jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
        	at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
        	at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
        	at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
        */
    /* JADX WARN: Removed duplicated region for block: B:17:0x004a A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:20:0x0053  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r5v3, types: [java.lang.Object, java.util.List] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x0048 -> B:18:0x004b). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object a(o.Vb0 r5, boolean r6, o.DX r7, o.AbstractC0728ad r8) {
        /*
            boolean r0 = r8 instanceof o.Dc0
            if (r0 == 0) goto L13
            r0 = r8
            o.Dc0 r0 = (o.Dc0) 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.Dc0 r0 = new o.Dc0
            r0.<init>(r8)
        L18:
            java.lang.Object r8 = r0.r
            int r1 = r0.s
            r2 = 1
            if (r1 == 0) goto L37
            if (r1 != r2) goto L2f
            boolean r5 = r0.q
            o.DX r6 = r0.p
            o.Vb0 r7 = r0.f79o
            o.IJ.H(r8)
            r4 = r6
            r6 = r5
            r5 = r7
            r7 = r4
            goto L4b
        L2f:
            java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
            java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
            r5.<init>(r6)
            throw r5
        L37:
            o.IJ.H(r8)
        L3a:
            r0.f79o = r5
            r0.p = r7
            r0.q = r6
            r0.s = r2
            java.lang.Object r8 = r5.a(r7, r0)
            o.Dn r1 = o.EnumC0091Dn.l
            if (r8 != r1) goto L4b
            return r1
        L4b:
            o.CX r8 = (o.CX) r8
            boolean r1 = c(r8, r6)
            if (r1 == 0) goto L3a
            java.lang.Object r5 = r8.a
            r6 = 0
            java.lang.Object r5 = r5.get(r6)
            return r5
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Kc0.a(o.Vb0, boolean, o.DX, o.ad):java.lang.Object");
    }

    /* JADX WARN: Type inference failed for: r6v1, types: [java.lang.Object, java.util.Collection, java.util.List] */
    public static boolean c(CX cx, boolean z) {
        ?? r6 = cx.a;
        int size = r6.size();
        int i = 0;
        while (true) {
            boolean zP = true;
            if (i >= size) {
                return true;
            }
            IX ix = (IX) r6.get(i);
            if (!z) {
                zP = As0.p(ix);
            } else if (ix.b() || ix.h || !ix.d) {
                zP = false;
            }
            if (!zP) {
                return false;
            }
            i++;
        }
    }

    public static C2058oa0 d(InterfaceC0065Cn interfaceC0065Cn, TI ti, SC sc) {
        return AbstractC1692kh0.C(interfaceC0065Cn, null, new C2484t(ti, sc, (InterfaceC0220Im) null), 1);
    }

    /* JADX WARN: Code restructure failed: missing block: B:35:0x009e, code lost:
    
        if (r15 == r5) goto L36;
     */
    /* JADX WARN: Removed duplicated region for block: B:21:0x0053  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x0061  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r15v10, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Type inference failed for: r15v4, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:35:0x009e -> B:13:0x002e). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object e(o.Vb0 r13, o.DX r14, o.AbstractC0728ad r15) {
        /*
            boolean r0 = r15 instanceof o.Jc0
            if (r0 == 0) goto L13
            r0 = r15
            o.Jc0 r0 = (o.Jc0) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.r = r1
            goto L18
        L13:
            o.Jc0 r0 = new o.Jc0
            r0.<init>(r15)
        L18:
            java.lang.Object r15 = r0.q
            int r1 = r0.r
            r2 = 2
            r3 = 0
            r4 = 1
            o.Dn r5 = o.EnumC0091Dn.l
            if (r1 == 0) goto L43
            if (r1 == r4) goto L3b
            if (r1 != r2) goto L33
            o.DX r13 = r0.p
            o.Vb0 r14 = r0.f171o
            o.IJ.H(r15)
        L2e:
            r12 = r14
            r14 = r13
            r13 = r12
            goto La1
        L33:
            java.lang.IllegalStateException r13 = new java.lang.IllegalStateException
            java.lang.String r14 = "call to 'resume' before 'invoke' with coroutine"
            r13.<init>(r14)
            throw r13
        L3b:
            o.DX r13 = r0.p
            o.Vb0 r14 = r0.f171o
            o.IJ.H(r15)
            goto L56
        L43:
            o.IJ.H(r15)
        L46:
            r0.f171o = r13
            r0.p = r14
            r0.r = r4
            java.lang.Object r15 = r13.a(r14, r0)
            if (r15 != r5) goto L53
            goto La0
        L53:
            r12 = r14
            r14 = r13
            r13 = r12
        L56:
            o.CX r15 = (o.CX) r15
            java.lang.Object r15 = r15.a
            int r1 = r15.size()
            r6 = r3
        L5f:
            if (r6 >= r1) goto Lc0
            java.lang.Object r7 = r15.get(r6)
            o.IX r7 = (o.IX) r7
            boolean r7 = o.As0.q(r7)
            if (r7 != 0) goto Lbd
            int r1 = r15.size()
            r6 = r3
        L72:
            if (r6 >= r1) goto L92
            java.lang.Object r7 = r15.get(r6)
            o.IX r7 = (o.IX) r7
            boolean r8 = r7.b()
            if (r8 != 0) goto Lb8
            o.Wb0 r8 = r14.p
            long r8 = r8.I
            long r10 = r14.b()
            boolean r7 = o.As0.I(r7, r8, r10)
            if (r7 == 0) goto L8f
            goto Lb8
        L8f:
            int r6 = r6 + 1
            goto L72
        L92:
            r0.f171o = r14
            r0.p = r13
            r0.r = r2
            o.DX r15 = o.DX.n
            java.lang.Object r15 = r14.a(r15, r0)
            if (r15 != r5) goto L2e
        La0:
            return r5
        La1:
            o.CX r15 = (o.CX) r15
            java.lang.Object r15 = r15.a
            int r1 = r15.size()
            r6 = r3
        Laa:
            if (r6 >= r1) goto L46
            java.lang.Object r7 = r15.get(r6)
            o.IX r7 = (o.IX) r7
            boolean r7 = r7.b()
            if (r7 == 0) goto Lba
        Lb8:
            r13 = 0
            return r13
        Lba:
            int r6 = r6 + 1
            goto Laa
        Lbd:
            int r6 = r6 + 1
            goto L5f
        Lc0:
            java.lang.Object r13 = r15.get(r3)
            return r13
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Kc0.e(o.Vb0, o.DX, o.ad):java.lang.Object");
    }
}
