package u0;

import java.util.Arrays;
import x0.AbstractC1709a;

/* JADX INFO: loaded from: classes.dex */
public final class Y {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int[] f17249d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean[] f17250e;

    static {
        x0.v.G(0);
        x0.v.G(1);
        x0.v.G(3);
        x0.v.G(4);
    }

    public Y(T t6, boolean z8, int[] iArr, boolean[] zArr) {
        int i = t6.f17200a;
        this.f17246a = i;
        boolean z9 = false;
        AbstractC1709a.d(i == iArr.length && i == zArr.length);
        this.f17247b = t6;
        if (z8 && i > 1) {
            z9 = true;
        }
        this.f17248c = z9;
        this.f17249d = (int[]) iArr.clone();
        this.f17250e = (boolean[]) zArr.clone();
    }

    public final boolean a(int i) {
        return this.f17249d[i] == 4;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && Y.class == obj.getClass()) {
            Y y8 = (Y) obj;
            if (this.f17248c == y8.f17248c && this.f17247b.equals(y8.f17247b) && Arrays.equals(this.f17249d, y8.f17249d) && Arrays.equals(this.f17250e, y8.f17250e)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Arrays.hashCode(this.f17250e) + ((Arrays.hashCode(this.f17249d) + (((this.f17247b.hashCode() * 31) + (this.f17248c ? 1 : 0)) * 31)) * 31);
    }
}
