package androidx.compose.ui.draw;

import o.AbstractC0126Ew;
import o.AbstractC2461sm0;
import o.AbstractC2811wV;
import o.Ag0;
import o.C0444Rd;
import o.C2906xV;
import o.Co0;
import o.F3;
import o.InterfaceC2555tm;
import o.InterfaceC2584u2;
import o.LP;
import o.RP;
import o.T80;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
final class PainterElement extends RP {
    public final AbstractC2811wV a;
    public final InterfaceC2584u2 b;
    public final InterfaceC2555tm c;
    public final float d;
    public final C0444Rd e;

    public PainterElement(AbstractC2811wV abstractC2811wV, InterfaceC2584u2 interfaceC2584u2, InterfaceC2555tm interfaceC2555tm, float f, C0444Rd c0444Rd) {
        this.a = abstractC2811wV;
        this.b = interfaceC2584u2;
        this.c = interfaceC2555tm;
        this.d = f;
        this.e = c0444Rd;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PainterElement)) {
            return false;
        }
        PainterElement painterElement = (PainterElement) obj;
        return F3.c(this.a, painterElement.a) && F3.c(this.b, painterElement.b) && F3.c(this.c, painterElement.c) && Float.compare(this.d, painterElement.d) == 0 && F3.c(this.e, painterElement.e);
    }

    @Override // o.RP
    public final LP f() {
        C2906xV c2906xV = new C2906xV();
        c2906xV.z = this.a;
        c2906xV.A = true;
        c2906xV.B = this.b;
        c2906xV.C = this.c;
        c2906xV.D = this.d;
        c2906xV.E = this.e;
        return c2906xV;
    }

    public final int hashCode() {
        int iD = AbstractC0126Ew.d(this.d, (this.c.hashCode() + ((this.b.hashCode() + Ag0.d(this.a.hashCode() * 31, true, 31)) * 31)) * 31, 31);
        C0444Rd c0444Rd = this.e;
        return iD + (c0444Rd == null ? 0 : c0444Rd.hashCode());
    }

    @Override // o.RP
    public final void j(LP lp) {
        C2906xV c2906xV = (C2906xV) lp;
        boolean z = c2906xV.A;
        AbstractC2811wV abstractC2811wV = this.a;
        boolean z2 = (z && T80.a(c2906xV.z.g(), abstractC2811wV.g())) ? false : true;
        c2906xV.z = abstractC2811wV;
        c2906xV.A = true;
        c2906xV.B = this.b;
        c2906xV.C = this.c;
        c2906xV.D = this.d;
        c2906xV.E = this.e;
        if (z2) {
            Co0.G(c2906xV);
        }
        AbstractC2461sm0.A(c2906xV);
    }

    public final String toString() {
        return "PainterElement(painter=" + this.a + ", sizeToIntrinsics=true, alignment=" + this.b + ", contentScale=" + this.c + ", alpha=" + this.d + ", colorFilter=" + this.e + ')';
    }
}
