package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.wV, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2811wV {
    public Ew0 l;
    public boolean m;
    public C0444Rd n;

    /* renamed from: o, reason: collision with root package name */
    public float f775o = 1.0f;
    public EnumC1280gK p = EnumC1280gK.l;

    public abstract boolean b(float f);

    public abstract boolean c(C0444Rd c0444Rd);

    public final void f(C2610uK c2610uK, long j, float f, C0444Rd c0444Rd) {
        C3113zg c3113zg = c2610uK.l;
        if (this.f775o != f) {
            if (!b(f)) {
                if (f == 1.0f) {
                    Ew0 ew0 = this.l;
                    if (ew0 != null) {
                        ew0.d(f);
                    }
                    this.m = false;
                } else {
                    Ew0 ew0B = this.l;
                    if (ew0B == null) {
                        ew0B = AbstractC0662Zn.b();
                        this.l = ew0B;
                    }
                    ew0B.d(f);
                    this.m = true;
                }
            }
            this.f775o = f;
        }
        if (!F3.c(this.n, c0444Rd)) {
            if (!c(c0444Rd)) {
                if (c0444Rd == null) {
                    Ew0 ew02 = this.l;
                    if (ew02 != null) {
                        ew02.g(null);
                    }
                    this.m = false;
                } else {
                    Ew0 ew0B2 = this.l;
                    if (ew0B2 == null) {
                        ew0B2 = AbstractC0662Zn.b();
                        this.l = ew0B2;
                    }
                    ew0B2.g(c0444Rd);
                    this.m = true;
                }
            }
            this.n = c0444Rd;
        }
        EnumC1280gK layoutDirection = c2610uK.getLayoutDirection();
        if (this.p != layoutDirection) {
            d(layoutDirection);
            this.p = layoutDirection;
        }
        int i = (int) (j >> 32);
        float fIntBitsToFloat = Float.intBitsToFloat((int) (c3113zg.f() >> 32)) - Float.intBitsToFloat(i);
        int i2 = (int) (j & 4294967295L);
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (c3113zg.f() & 4294967295L)) - Float.intBitsToFloat(i2);
        ((OD) c3113zg.m.m).z(0.0f, 0.0f, fIntBitsToFloat, fIntBitsToFloat2);
        if (f > 0.0f) {
            try {
                if (Float.intBitsToFloat(i) > 0.0f && Float.intBitsToFloat(i2) > 0.0f) {
                    if (this.m) {
                        float fIntBitsToFloat3 = Float.intBitsToFloat(i);
                        float fIntBitsToFloat4 = Float.intBitsToFloat(i2);
                        T00 t00F = AbstractC2001nt0.f(0L, (Float.floatToRawIntBits(fIntBitsToFloat4) & 4294967295L) | (Float.floatToRawIntBits(fIntBitsToFloat3) << 32));
                        InterfaceC2923xg interfaceC2923xgX = c3113zg.m.x();
                        Ew0 ew0B3 = this.l;
                        if (ew0B3 == null) {
                            ew0B3 = AbstractC0662Zn.b();
                            this.l = ew0B3;
                        }
                        try {
                            interfaceC2923xgX.r(t00F, ew0B3);
                            i(c2610uK);
                            interfaceC2923xgX.k();
                        } catch (Throwable th) {
                            interfaceC2923xgX.k();
                            throw th;
                        }
                    } else {
                        i(c2610uK);
                    }
                }
            } catch (Throwable th2) {
                ((OD) c3113zg.m.m).z(-0.0f, -0.0f, -fIntBitsToFloat, -fIntBitsToFloat2);
                throw th2;
            }
        }
        ((OD) c3113zg.m.m).z(-0.0f, -0.0f, -fIntBitsToFloat, -fIntBitsToFloat2);
    }

    public abstract long g();

    public abstract void i(C2610uK c2610uK);

    public void d(EnumC1280gK enumC1280gK) {
    }
}
