package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.ys, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3042ys implements InterfaceC2294qz {
    public final /* synthetic */ int l = 1;
    public final /* synthetic */ InterfaceC2294qz m;
    public final /* synthetic */ B10 n;

    public C3042ys(C3137zs c3137zs, B10 b10, InterfaceC2294qz interfaceC2294qz) {
        this.n = b10;
        this.m = interfaceC2294qz;
    }

    /* JADX WARN: Removed duplicated region for block: B:36:0x0065  */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0018  */
    @Override // o.InterfaceC2294qz
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object c(java.lang.Object r6, o.InterfaceC0220Im r7) throws java.lang.Throwable {
        /*
            r5 = this;
            int r0 = r5.l
            switch(r0) {
                case 0: goto L52;
                default: goto L5;
            }
        L5:
            boolean r0 = r7 instanceof o.C0025Az
            if (r0 == 0) goto L18
            r0 = r7
            o.Az r0 = (o.C0025Az) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L18
            int r1 = r1 - r2
            r0.r = r1
            goto L1d
        L18:
            o.Az r0 = new o.Az
            r0.<init>(r5, r7)
        L1d:
            java.lang.Object r7 = r0.p
            int r1 = r0.r
            r2 = 1
            if (r1 == 0) goto L36
            if (r1 != r2) goto L2e
            o.ys r6 = r0.f50o
            o.IJ.H(r7)     // Catch: java.lang.Throwable -> L2c
            goto L48
        L2c:
            r7 = move-exception
            goto L4d
        L2e:
            java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
            java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
            r6.<init>(r7)
            throw r6
        L36:
            o.IJ.H(r7)
            o.qz r7 = r5.m     // Catch: java.lang.Throwable -> L4b
            r0.f50o = r5     // Catch: java.lang.Throwable -> L4b
            r0.r = r2     // Catch: java.lang.Throwable -> L4b
            java.lang.Object r6 = r7.c(r6, r0)     // Catch: java.lang.Throwable -> L4b
            o.Dn r7 = o.EnumC0091Dn.l
            if (r6 != r7) goto L48
            goto L4a
        L48:
            o.Oh0 r7 = o.Oh0.a
        L4a:
            return r7
        L4b:
            r7 = move-exception
            r6 = r5
        L4d:
            o.B10 r6 = r6.n
            r6.l = r7
            throw r7
        L52:
            boolean r0 = r7 instanceof o.C2947xs
            if (r0 == 0) goto L65
            r0 = r7
            o.xs r0 = (o.C2947xs) r0
            int r1 = r0.q
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L65
            int r1 = r1 - r2
            r0.q = r1
            goto L6a
        L65:
            o.xs r0 = new o.xs
            r0.<init>(r5, r7)
        L6a:
            java.lang.Object r7 = r0.f797o
            int r1 = r0.q
            o.Oh0 r2 = o.Oh0.a
            r3 = 1
            if (r1 == 0) goto L81
            if (r1 != r3) goto L79
            o.IJ.H(r7)
            goto La1
        L79:
            java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
            java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
            r6.<init>(r7)
            throw r6
        L81:
            o.IJ.H(r7)
            o.B10 r7 = r5.n
            java.lang.Object r1 = r7.l
            o.xq r4 = o.F3.f
            if (r1 == r4) goto L92
            boolean r1 = o.F3.c(r1, r6)
            if (r1 != 0) goto La1
        L92:
            r7.l = r6
            r0.q = r3
            o.qz r7 = r5.m
            java.lang.Object r6 = r7.c(r6, r0)
            o.Dn r7 = o.EnumC0091Dn.l
            if (r6 != r7) goto La1
            r2 = r7
        La1:
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C3042ys.c(java.lang.Object, o.Im):java.lang.Object");
    }

    public C3042ys(InterfaceC2294qz interfaceC2294qz, B10 b10) {
        this.m = interfaceC2294qz;
        this.n = b10;
    }
}
