package o;

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

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

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        switch (this.p) {
            case 0:
                return ((C1165f50) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            case 1:
                return ((C1165f50) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            case 2:
                return ((C1165f50) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
            default:
                long j = ((C1765lT) obj).a;
                C1165f50 c1165f50 = new C1165f50(this.r, (InterfaceC0220Im) obj2);
                c1165f50.s = j;
                return c1165f50.n(Oh0.a);
        }
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                return new C1165f50(this.r, this.s, interfaceC0220Im, 0);
            case 1:
                return new C1165f50(this.r, this.s, interfaceC0220Im, 1);
            case 2:
                return new C1165f50(this.r, this.s, interfaceC0220Im, 2);
            default:
                C1165f50 c1165f50 = new C1165f50(this.r, interfaceC0220Im);
                c1165f50.s = ((C1765lT) obj).a;
                return c1165f50;
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        switch (this.p) {
            case 0:
                int i = this.q;
                if (i == 0) {
                    IJ.H(obj);
                    C2212q50 c2212q50 = this.r.O;
                    long j = this.s;
                    this.q = 1;
                    Object objB = c2212q50.b(j, false, this);
                    EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                    if (objB == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return Oh0.a;
            case 1:
                int i2 = this.q;
                if (i2 == 0) {
                    IJ.H(obj);
                    C2212q50 c2212q502 = this.r.O;
                    C1261g50 c1261g50 = new C1261g50(this.s, null);
                    this.q = 1;
                    Object objF = c2212q502.f(2, c1261g50, this);
                    EnumC0091Dn enumC0091Dn2 = EnumC0091Dn.l;
                    if (objF == enumC0091Dn2) {
                        return enumC0091Dn2;
                    }
                } else {
                    if (i2 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return Oh0.a;
            case 2:
                int i3 = this.q;
                if (i3 == 0) {
                    IJ.H(obj);
                    C2212q50 c2212q503 = this.r.O;
                    long j2 = this.s;
                    this.q = 1;
                    Object objB2 = c2212q503.b(j2, true, this);
                    EnumC0091Dn enumC0091Dn3 = EnumC0091Dn.l;
                    if (objB2 == enumC0091Dn3) {
                        return enumC0091Dn3;
                    }
                } else {
                    if (i3 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return Oh0.a;
            default:
                int i4 = this.q;
                if (i4 != 0) {
                    if (i4 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                    return obj;
                }
                IJ.H(obj);
                long j3 = this.s;
                C2212q50 c2212q504 = this.r.O;
                this.q = 1;
                Object objA = androidx.compose.foundation.gestures.a.a(c2212q504, j3, this);
                EnumC0091Dn enumC0091Dn4 = EnumC0091Dn.l;
                return objA == enumC0091Dn4 ? enumC0091Dn4 : objA;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1165f50(C1453i50 c1453i50, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.p = 3;
        this.r = c1453i50;
    }
}
