package i6;

import android.os.Parcel;
import android.os.Parcelable;
import d6.EnumC0848c;

/* JADX INFO: loaded from: classes.dex */
public final class g implements Parcelable {
    public static final f CREATOR = new f();

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

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

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

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

    public g(int i, boolean z8, boolean z9, EnumC0848c enumC0848c) {
        P6.g.e(enumC0848c, "loopDirection");
        this.f13553q = i;
        this.f13554r = z8;
        this.f13555s = z9;
        this.f13556t = enumC0848c;
    }

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

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof g)) {
            return false;
        }
        g gVar = (g) obj;
        return this.f13553q == gVar.f13553q && this.f13554r == gVar.f13554r && this.f13555s == gVar.f13555s && this.f13556t == gVar.f13556t;
    }

    public final int hashCode() {
        return this.f13556t.hashCode() + (((((this.f13553q * 31) + (this.f13554r ? 1231 : 1237)) * 31) + (this.f13555s ? 1231 : 1237)) * 31);
    }

    public final String toString() {
        return "SavedState(selectedPosition=" + this.f13553q + ", isLoopingStart=" + this.f13554r + ", isLoopingAllowed=" + this.f13555s + ", loopDirection=" + this.f13556t + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        P6.g.e(parcel, "parcel");
        parcel.writeInt(this.f13553q);
        parcel.writeByte(this.f13554r ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.f13555s ? (byte) 1 : (byte) 0);
        parcel.writeInt(this.f13556t.ordinal());
    }
}
