package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class X5 extends Sb0 implements SC {
    public final /* synthetic */ int p;
    public int q;
    public final /* synthetic */ long r;
    public final /* synthetic */ Object s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public X5(long j, Vb0 vb0, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.p = 2;
        this.r = j;
        this.s = vb0;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) obj;
        InterfaceC0220Im interfaceC0220Im = (InterfaceC0220Im) obj2;
        switch (this.p) {
        }
        return ((X5) l(interfaceC0065Cn, interfaceC0220Im)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                return new X5((Z5) this.s, this.r, interfaceC0220Im, 0);
            case 1:
                return new X5((C1738l6) this.s, this.r, interfaceC0220Im, 1);
            default:
                return new X5(this.r, (Vb0) this.s, interfaceC0220Im);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:20:0x0044  */
    @Override // o.AbstractC0728ad
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object n(java.lang.Object r11) {
        /*
            r10 = this;
            int r0 = r10.p
            switch(r0) {
                case 0: goto L85;
                case 1: goto L54;
                default: goto L5;
            }
        L5:
            int r0 = r10.q
            r1 = 8
            long r3 = r10.r
            r5 = 2
            r6 = 1
            o.Dn r7 = o.EnumC0091Dn.l
            if (r0 == 0) goto L25
            if (r0 == r6) goto L21
            if (r0 != r5) goto L19
            o.IJ.H(r11)
            goto L3c
        L19:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r0)
            throw r11
        L21:
            o.IJ.H(r11)
            goto L33
        L25:
            o.IJ.H(r11)
            long r8 = r3 - r1
            r10.q = r6
            java.lang.Object r11 = o.F3.t(r8, r10)
            if (r11 != r7) goto L33
            goto L53
        L33:
            r10.q = r5
            java.lang.Object r11 = o.F3.t(r1, r10)
            if (r11 != r7) goto L3c
            goto L53
        L3c:
            java.lang.Object r11 = r10.s
            o.Vb0 r11 = (o.Vb0) r11
            o.sg r11 = r11.n
            if (r11 == 0) goto L51
            o.EX r0 = new o.EX
            r0.<init>(r3)
            o.H20 r1 = new o.H20
            r1.<init>(r0)
            r11.resumeWith(r1)
        L51:
            o.Oh0 r7 = o.Oh0.a
        L53:
            return r7
        L54:
            int r0 = r10.q
            r1 = 1
            if (r0 == 0) goto L67
            if (r0 != r1) goto L5f
            o.IJ.H(r11)
            goto L82
        L5f:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r0)
            throw r11
        L67:
            o.IJ.H(r11)
            java.lang.Object r11 = r10.s
            o.l6 r11 = (o.C1738l6) r11
            o.lT r0 = new o.lT
            long r2 = r10.r
            r0.<init>(r2)
            o.fa0 r2 = o.K50.d
            r10.q = r1
            java.lang.Object r11 = o.C1738l6.b(r11, r0, r2, r10)
            o.Dn r0 = o.EnumC0091Dn.l
            if (r11 != r0) goto L82
            goto L84
        L82:
            o.Oh0 r0 = o.Oh0.a
        L84:
            return r0
        L85:
            int r0 = r10.q
            r1 = 1
            if (r0 == 0) goto L98
            if (r0 != r1) goto L90
            o.IJ.H(r11)
            goto Lae
        L90:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r0)
            throw r11
        L98:
            o.IJ.H(r11)
            java.lang.Object r11 = r10.s
            o.Z5 r11 = (o.Z5) r11
            o.JR r11 = r11.l
            r10.q = r1
            long r0 = r10.r
            java.lang.Object r11 = r11.b(r0, r10)
            o.Dn r0 = o.EnumC0091Dn.l
            if (r11 != r0) goto Lae
            goto Lb0
        Lae:
            o.Oh0 r0 = o.Oh0.a
        Lb0:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: o.X5.n(java.lang.Object):java.lang.Object");
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ X5(Object obj, long j, InterfaceC0220Im interfaceC0220Im, int i) {
        super(2, interfaceC0220Im);
        this.p = i;
        this.s = obj;
        this.r = j;
    }
}
