package e1;

import java.util.Arrays;
import java.util.Objects;
import u0.C;
import u0.C1564A;
import u0.C1578n;
import u0.C1579o;
import u0.E;

/* JADX INFO: renamed from: e1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0863a implements C {

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public static final C1579o f12419g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public static final C1579o f12420h;

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f12424d;

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f12426f;

    static {
        C1578n c1578n = new C1578n();
        c1578n.f17320m = E.m("application/id3");
        f12419g = new C1579o(c1578n);
        C1578n c1578n2 = new C1578n();
        c1578n2.f17320m = E.m("application/x-scte35");
        f12420h = new C1579o(c1578n2);
    }

    public C0863a(String str, String str2, long j8, long j9, byte[] bArr) {
        this.f12421a = str;
        this.f12422b = str2;
        this.f12423c = j8;
        this.f12424d = j9;
        this.f12425e = bArr;
    }

    @Override // u0.C
    public final /* synthetic */ void a(C1564A c1564a) {
    }

    @Override // u0.C
    public final byte[] b() {
        if (c() != null) {
            return this.f12425e;
        }
        return null;
    }

    @Override // u0.C
    public final C1579o c() {
        String str = this.f12421a;
        str.getClass();
        switch (str) {
            case "urn:scte:scte35:2014:bin":
                return f12420h;
            case "https://aomedia.org/emsg/ID3":
            case "https://developer.apple.com/streaming/emsg-id3":
                return f12419g;
            default:
                return null;
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && C0863a.class == obj.getClass()) {
            C0863a c0863a = (C0863a) obj;
            if (this.f12423c == c0863a.f12423c && this.f12424d == c0863a.f12424d && Objects.equals(this.f12421a, c0863a.f12421a) && Objects.equals(this.f12422b, c0863a.f12422b) && Arrays.equals(this.f12425e, c0863a.f12425e)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        if (this.f12426f == 0) {
            String str = this.f12421a;
            int iHashCode = (527 + (str != null ? str.hashCode() : 0)) * 31;
            String str2 = this.f12422b;
            int iHashCode2 = (iHashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            long j8 = this.f12423c;
            int i = (iHashCode2 + ((int) (j8 ^ (j8 >>> 32)))) * 31;
            long j9 = this.f12424d;
            this.f12426f = Arrays.hashCode(this.f12425e) + ((i + ((int) (j9 ^ (j9 >>> 32)))) * 31);
        }
        return this.f12426f;
    }

    public final String toString() {
        return "EMSG: scheme=" + this.f12421a + ", id=" + this.f12424d + ", durationMs=" + this.f12423c + ", value=" + this.f12422b;
    }
}
