package o;

import java.util.concurrent.CancellationException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Wp, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0586Wp extends Sb0 implements SC {
    public C2963y10 p;
    public S6 q;
    public int r;
    public final /* synthetic */ float s;
    public final /* synthetic */ C3031ym0 t;
    public final /* synthetic */ C1832m50 u;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0586Wp(float f, C3031ym0 c3031ym0, C1832m50 c1832m50, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.s = f;
        this.t = c3031ym0;
        this.u = c1832m50;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        return ((C0586Wp) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        return new C0586Wp(this.s, this.t, this.u, interfaceC0220Im);
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        float f;
        S6 s6;
        C2963y10 c2963y10;
        S6 s62;
        Object objM;
        Object obj2;
        int i = this.r;
        if (i == 0) {
            IJ.H(obj);
            f = this.s;
            if (Math.abs(f) > 1.0f) {
                C2963y10 c2963y102 = new C2963y10();
                c2963y102.l = f;
                C2963y10 c2963y103 = new C2963y10();
                S6 s6A = C2887xC.a(28, f);
                try {
                    C3031ym0 c3031ym0 = this.t;
                    C0247Jn c0247Jn = (C0247Jn) c3031ym0.m;
                    C1035dn c1035dn = new C1035dn(c2963y103, this.u, c2963y102, c3031ym0, 1);
                    this.p = c2963y102;
                    this.q = s6A;
                    this.r = 1;
                    s6 = s6A;
                    try {
                        objM = As0.m(s6, new C0275Kp(c0247Jn, AbstractC1692kh0.u, s6A.m.getValue(), s6A.n), Long.MIN_VALUE, c1035dn, this);
                        obj2 = EnumC0091Dn.l;
                        if (objM != obj2) {
                            objM = Oh0.a;
                        }
                    } catch (CancellationException unused) {
                        c2963y10 = c2963y102;
                        s62 = s6;
                        c2963y10.l = ((Number) s62.l.b.g(s62.n)).floatValue();
                        f = c2963y10.l;
                        return new Float(f);
                    }
                } catch (CancellationException unused2) {
                    s6 = s6A;
                }
                if (objM == obj2) {
                    return obj2;
                }
                c2963y10 = c2963y102;
                f = c2963y10.l;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s62 = this.q;
            c2963y10 = this.p;
            try {
                IJ.H(obj);
            } catch (CancellationException unused3) {
                c2963y10.l = ((Number) s62.l.b.g(s62.n)).floatValue();
                f = c2963y10.l;
                return new Float(f);
            }
            f = c2963y10.l;
        }
        return new Float(f);
    }
}
