package R5;

import E1.InterfaceC0100g;
import android.os.Bundle;
import android.os.Parcelable;
import com.martsnew.domain.model.Episode;
import com.martsnew.domain.model.Movie;
import java.io.Serializable;

/* JADX INFO: renamed from: R5.s, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0299s implements InterfaceC0100g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Movie f6187a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Episode f6188b;

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

    public C0299s(Movie movie, Episode episode, boolean z8) {
        this.f6187a = movie;
        this.f6188b = episode;
        this.f6189c = z8;
    }

    public static final C0299s fromBundle(Bundle bundle) {
        P6.g.e(bundle, "bundle");
        bundle.setClassLoader(C0299s.class.getClassLoader());
        if (!bundle.containsKey("movie")) {
            throw new IllegalArgumentException("Required argument \"movie\" is missing and does not have an android:defaultValue");
        }
        if (!Parcelable.class.isAssignableFrom(Movie.class) && !Serializable.class.isAssignableFrom(Movie.class)) {
            throw new UnsupportedOperationException(Movie.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
        }
        Movie movie = (Movie) bundle.get("movie");
        if (movie == null) {
            throw new IllegalArgumentException("Argument \"movie\" is marked as non-null but was passed a null value.");
        }
        if (!bundle.containsKey("episode")) {
            throw new IllegalArgumentException("Required argument \"episode\" is missing and does not have an android:defaultValue");
        }
        if (!Parcelable.class.isAssignableFrom(Episode.class) && !Serializable.class.isAssignableFrom(Episode.class)) {
            throw new UnsupportedOperationException(Episode.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
        }
        Episode episode = (Episode) bundle.get("episode");
        if (bundle.containsKey("continueWatch")) {
            return new C0299s(movie, episode, bundle.getBoolean("continueWatch"));
        }
        throw new IllegalArgumentException("Required argument \"continueWatch\" is missing and does not have an android:defaultValue");
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0299s)) {
            return false;
        }
        C0299s c0299s = (C0299s) obj;
        return P6.g.a(this.f6187a, c0299s.f6187a) && P6.g.a(this.f6188b, c0299s.f6188b) && this.f6189c == c0299s.f6189c;
    }

    public final int hashCode() {
        int iHashCode = this.f6187a.hashCode() * 31;
        Episode episode = this.f6188b;
        return ((iHashCode + (episode == null ? 0 : episode.hashCode())) * 31) + (this.f6189c ? 1231 : 1237);
    }

    public final String toString() {
        return "TvPlayerActivityArgs(movie=" + this.f6187a + ", episode=" + this.f6188b + ", continueWatch=" + this.f6189c + ")";
    }
}
