package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class W3 implements OC {
    public final /* synthetic */ int l = 0;
    public final /* synthetic */ float m;
    public final /* synthetic */ Object n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f390o;

    public /* synthetic */ W3(float f, C2493t4 c2493t4, C0444Rd c0444Rd) {
        this.m = f;
        this.n = c2493t4;
        this.f390o = c0444Rd;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        switch (this.l) {
            case 0:
                float f = this.m;
                C2493t4 c2493t4 = (C2493t4) this.n;
                C0444Rd c0444Rd = (C0444Rd) this.f390o;
                C2610uK c2610uK = (C2610uK) obj;
                c2610uK.a();
                C3113zg c3113zg = c2610uK.l;
                C3126zm0 c3126zm0 = c3113zg.m;
                long jD = c3126zm0.D();
                c3126zm0.x().n();
                try {
                    OD od = (OD) c3126zm0.m;
                    od.I(f, 0.0f);
                    od.F(45.0f, 0L);
                    c3113zg.c(c2493t4, c0444Rd);
                    break;
                } finally {
                    AbstractC2462sn.t(c3126zm0, jD);
                }
            default:
                C1217fi0 c1217fi0 = (C1217fi0) this.n;
                OC oc = (OC) this.f390o;
                long jLongValue = ((Long) obj).longValue();
                if (c1217fi0.b == Long.MIN_VALUE) {
                    c1217fi0.b = jLongValue;
                }
                float f2 = c1217fi0.e;
                U6 u6 = new U6(f2);
                float f3 = this.m;
                U6 u62 = C1217fi0.f;
                long jB = f3 == 0.0f ? c1217fi0.a.b(new U6(f2), u62, c1217fi0.c) : C2887xC.E((jLongValue - c1217fi0.b) / f3);
                float f4 = ((U6) c1217fi0.a.m(jB, u6, u62, c1217fi0.c)).a;
                c1217fi0.c = (U6) c1217fi0.a.l(jB, u6, u62, c1217fi0.c);
                c1217fi0.b = jLongValue;
                float f5 = c1217fi0.e - f4;
                c1217fi0.e = f4;
                oc.g(Float.valueOf(f5));
                break;
        }
        return Oh0.a;
    }

    public /* synthetic */ W3(C1217fi0 c1217fi0, float f, OC oc) {
        this.n = c1217fi0;
        this.m = f;
        this.f390o = oc;
    }
}
