package androidx.compose.foundation.layout;

import o.AbstractC0126Ew;
import o.AbstractC1943nH;
import o.C0148Fs;
import o.C2052oV;
import o.LP;
import o.RP;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
final class PaddingElement extends RP {
    public final float a;
    public final float b;
    public final float c;
    public final float d;

    public PaddingElement(float f, float f2, float f3, float f4) {
        this.a = f;
        this.b = f2;
        this.c = f3;
        this.d = f4;
        boolean z = true;
        boolean z2 = (f >= 0.0f || Float.isNaN(f)) & (f2 >= 0.0f || Float.isNaN(f2)) & (f3 >= 0.0f || Float.isNaN(f3));
        if (f4 < 0.0f && !Float.isNaN(f4)) {
            z = false;
        }
        if (!z2 || !z) {
            AbstractC1943nH.a("Padding must be non-negative");
        }
    }

    public final boolean equals(Object obj) {
        PaddingElement paddingElement = obj instanceof PaddingElement ? (PaddingElement) obj : null;
        return paddingElement != null && C0148Fs.a(this.a, paddingElement.a) && C0148Fs.a(this.b, paddingElement.b) && C0148Fs.a(this.c, paddingElement.c) && C0148Fs.a(this.d, paddingElement.d);
    }

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

    public final int hashCode() {
        return Boolean.hashCode(true) + AbstractC0126Ew.d(this.d, AbstractC0126Ew.d(this.c, AbstractC0126Ew.d(this.b, Float.hashCode(this.a) * 31, 31), 31), 31);
    }

    @Override // o.RP
    public final void j(LP lp) {
        C2052oV c2052oV = (C2052oV) lp;
        c2052oV.z = this.a;
        c2052oV.A = this.b;
        c2052oV.B = this.c;
        c2052oV.C = this.d;
        c2052oV.D = true;
    }
}
