package d6;

import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: renamed from: d6.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0847b implements B, Parcelable {
    public static final C0846a CREATOR = new C0846a();

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final int f12289q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final float f12290r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final boolean f12291s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final boolean f12292t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final boolean f12293u;

    public /* synthetic */ C0847b(int i, float f3, boolean z8, int i5) {
        this(i, (i5 & 2) != 0 ? 0.5f : f3, (i5 & 4) != 0 ? true : z8, false, false);
    }

    @Override // d6.B
    public final int a() {
        return this.f12289q;
    }

    @Override // d6.B
    public final boolean d() {
        return this.f12292t;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    @Override // d6.B
    public final boolean e() {
        return this.f12293u;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0847b)) {
            return false;
        }
        C0847b c0847b = (C0847b) obj;
        return this.f12289q == c0847b.f12289q && Float.compare(this.f12290r, c0847b.f12290r) == 0 && this.f12291s == c0847b.f12291s && this.f12292t == c0847b.f12292t && this.f12293u == c0847b.f12293u;
    }

    public final int hashCode() {
        return ((((((Float.floatToIntBits(this.f12290r) + (this.f12289q * 31)) * 31) + (this.f12291s ? 1231 : 1237)) * 31) + (this.f12292t ? 1231 : 1237)) * 31) + (this.f12293u ? 1231 : 1237);
    }

    @Override // d6.B
    public final float m() {
        return this.f12290r;
    }

    @Override // d6.B
    public final boolean q() {
        return this.f12291s;
    }

    public final String toString() {
        return "ChildAlignment(offset=" + this.f12289q + ", fraction=" + this.f12290r + ", isFractionEnabled=" + this.f12291s + ", includePadding=" + this.f12292t + ", alignToBaseline=" + this.f12293u + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        P6.g.e(parcel, "parcel");
        parcel.writeInt(this.f12289q);
        parcel.writeFloat(this.f12290r);
        parcel.writeByte(this.f12291s ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.f12292t ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.f12293u ? (byte) 1 : (byte) 0);
    }

    public C0847b(int i, float f3, boolean z8, boolean z9, boolean z10) {
        this.f12289q = i;
        this.f12290r = f3;
        this.f12291s = z8;
        this.f12292t = z9;
        this.f12293u = z10;
        if (0.0f > f3 || f3 > 1.0f) {
            throw new IllegalArgumentException("fraction must be a value between 0f and 1f");
        }
    }
}
