package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.p50, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2117p50 extends Sb0 implements SC {
    public long p;
    public int q;
    public /* synthetic */ long r;
    public final /* synthetic */ C2212q50 s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2117p50(C2212q50 c2212q50, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.s = c2212q50;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        long j = ((C1791lj0) obj).a;
        C2117p50 c2117p50 = new C2117p50(this.s, (InterfaceC0220Im) obj2);
        c2117p50.r = j;
        return c2117p50.n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        C2117p50 c2117p50 = new C2117p50(this.s, interfaceC0220Im);
        c2117p50.r = ((C1791lj0) obj).a;
        return c2117p50;
    }

    /* JADX WARN: Removed duplicated region for block: B:22:0x006f  */
    @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 r15) {
        /*
            r14 = this;
            int r0 = r14.q
            r1 = 3
            r2 = 2
            r3 = 1
            o.q50 r4 = r14.s
            o.Dn r5 = o.EnumC0091Dn.l
            if (r0 == 0) goto L2f
            if (r0 == r3) goto L29
            if (r0 == r2) goto L21
            if (r0 != r1) goto L19
            long r0 = r14.p
            long r2 = r14.r
            o.IJ.H(r15)
            goto L71
        L19:
            java.lang.IllegalStateException r15 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r15.<init>(r0)
            throw r15
        L21:
            long r2 = r14.p
            long r6 = r14.r
            o.IJ.H(r15)
            goto L57
        L29:
            long r6 = r14.r
            o.IJ.H(r15)
            goto L41
        L2f:
            o.IJ.H(r15)
            long r6 = r14.r
            o.JR r15 = r4.f
            r14.r = r6
            r14.q = r3
            java.lang.Object r15 = r15.b(r6, r14)
            if (r15 != r5) goto L41
            goto L6e
        L41:
            o.lj0 r15 = (o.C1791lj0) r15
            long r8 = r15.a
            long r8 = o.C1791lj0.d(r6, r8)
            r14.r = r6
            r14.p = r8
            r14.q = r2
            java.lang.Object r15 = r4.a(r8, r14)
            if (r15 != r5) goto L56
            goto L6e
        L56:
            r2 = r8
        L57:
            o.lj0 r15 = (o.C1791lj0) r15
            long r11 = r15.a
            o.JR r8 = r4.f
            long r9 = o.C1791lj0.d(r2, r11)
            r14.r = r6
            r14.p = r11
            r14.q = r1
            r13 = r14
            java.lang.Object r15 = r8.a(r9, r11, r13)
            if (r15 != r5) goto L6f
        L6e:
            return r5
        L6f:
            r2 = r6
            r0 = r11
        L71:
            o.lj0 r15 = (o.C1791lj0) r15
            long r4 = r15.a
            long r0 = o.C1791lj0.d(r0, r4)
            long r0 = o.C1791lj0.d(r2, r0)
            o.lj0 r15 = new o.lj0
            r15.<init>(r0)
            return r15
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2117p50.n(java.lang.Object):java.lang.Object");
    }
}
