package p138.p176.p177.p190.p210.p211;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.Arrays;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.p210.C3710;
import p138.p176.p177.p190.p239.C4150;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ഺ.ޅ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3720 implements C3710.InterfaceC3712 {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final String f11456;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final String f11457;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final long f11458;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final long f11459;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final byte[] f11460;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public int f11461;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public static final C3431 f11454 = C3431.m5580(null, "application/id3", Long.MAX_VALUE);

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public static final C3431 f11455 = C3431.m5580(null, "application/x-scte35", Long.MAX_VALUE);
    public static final Parcelable.Creator<C3720> CREATOR = new C3721();

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ഺ.ޅ.֏$֏, reason: contains not printable characters */
    public static class C3721 implements Parcelable.Creator<C3720> {
        @Override // android.os.Parcelable.Creator
        public C3720 createFromParcel(Parcel parcel) {
            return new C3720(parcel);
        }

        @Override // android.os.Parcelable.Creator
        public C3720[] newArray(int i) {
            return new C3720[i];
        }
    }

    public C3720(Parcel parcel) {
        String string = parcel.readString();
        C4150.m6755(string);
        this.f11456 = string;
        this.f11457 = parcel.readString();
        this.f11458 = parcel.readLong();
        this.f11459 = parcel.readLong();
        this.f11460 = parcel.createByteArray();
    }

    public C3720(String str, String str2, long j, long j2, byte[] bArr) {
        this.f11456 = str;
        this.f11457 = str2;
        this.f11458 = j;
        this.f11459 = j2;
        this.f11460 = bArr;
    }

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

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || C3720.class != obj.getClass()) {
            return false;
        }
        C3720 c3720 = (C3720) obj;
        return this.f11458 == c3720.f11458 && this.f11459 == c3720.f11459 && C4150.m6769((Object) this.f11456, (Object) c3720.f11456) && C4150.m6769((Object) this.f11457, (Object) c3720.f11457) && Arrays.equals(this.f11460, c3720.f11460);
    }

    public int hashCode() {
        if (this.f11461 == 0) {
            String str = this.f11456;
            int iHashCode = (527 + (str != null ? str.hashCode() : 0)) * 31;
            String str2 = this.f11457;
            int iHashCode2 = str2 != null ? str2.hashCode() : 0;
            long j = this.f11458;
            int i = (((iHashCode + iHashCode2) * 31) + ((int) (j ^ (j >>> 32)))) * 31;
            long j2 = this.f11459;
            this.f11461 = Arrays.hashCode(this.f11460) + ((i + ((int) (j2 ^ (j2 >>> 32)))) * 31);
        }
        return this.f11461;
    }

    public String toString() {
        StringBuilder sbM4889 = C2803.m4889("EMSG: scheme=");
        sbM4889.append(this.f11456);
        sbM4889.append(", id=");
        sbM4889.append(this.f11459);
        sbM4889.append(", durationMs=");
        sbM4889.append(this.f11458);
        sbM4889.append(", value=");
        sbM4889.append(this.f11457);
        return sbM4889.toString();
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.f11456);
        parcel.writeString(this.f11457);
        parcel.writeLong(this.f11458);
        parcel.writeLong(this.f11459);
        parcel.writeByteArray(this.f11460);
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x0036  */
    @Override // p138.p176.p177.p190.p210.C3710.InterfaceC3712
    /* JADX INFO: renamed from: ފ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public C3431 mo5966() {
        byte b;
        String str = this.f11456;
        int iHashCode = str.hashCode();
        if (iHashCode != -1468477611) {
            if (iHashCode != -795945609) {
                b = (iHashCode == 1303648457 && str.equals("https://developer.apple.com/streaming/emsg-id3")) ? (byte) 1 : (byte) -1;
            } else if (str.equals("https://aomedia.org/emsg/ID3")) {
                b = 0;
            }
        } else if (str.equals("urn:scte:scte35:2014:bin")) {
            b = 2;
        }
        if (b == 0 || b == 1) {
            return f11454;
        }
        if (b != 2) {
            return null;
        }
        return f11455;
    }

    @Override // p138.p176.p177.p190.p210.C3710.InterfaceC3712
    /* JADX INFO: renamed from: ލ */
    public byte[] mo5967() {
        if (mo5966() != null) {
            return this.f11460;
        }
        return null;
    }
}
