package com.google.android.gms.internal.ads;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import java.util.Arrays;
import java.util.Objects;
import java.util.UUID;

/* JADX INFO: loaded from: classes2.dex */
public final class bk2 implements Parcelable {
    public static final Parcelable.Creator<bk2> CREATOR = new wk(27);

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

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

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

    @Nullable
    public final String zzb;

    @Nullable
    public final byte[] zzd;

    public bk2(Parcel parcel) {
        this.f9563b = new UUID(parcel.readLong(), parcel.readLong());
        this.zzb = parcel.readString();
        String string = parcel.readString();
        String str = bb1.f9474a;
        this.f9564c = string;
        this.zzd = parcel.createByteArray();
    }

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

    public final boolean equals(@Nullable Object obj) {
        if (!(obj instanceof bk2)) {
            return false;
        }
        if (obj == this) {
            return true;
        }
        bk2 bk2Var = (bk2) obj;
        return Objects.equals(this.zzb, bk2Var.zzb) && Objects.equals(this.f9564c, bk2Var.f9564c) && Objects.equals(this.f9563b, bk2Var.f9563b) && Arrays.equals(this.zzd, bk2Var.zzd);
    }

    public final int hashCode() {
        int i10 = this.f9562a;
        if (i10 != 0) {
            return i10;
        }
        int iHashCode = this.f9563b.hashCode() * 31;
        String str = this.zzb;
        int iB = defpackage.e.b(this.f9564c, (iHashCode + (str == null ? 0 : str.hashCode())) * 31, 31) + Arrays.hashCode(this.zzd);
        this.f9562a = iB;
        return iB;
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        UUID uuid = this.f9563b;
        parcel.writeLong(uuid.getMostSignificantBits());
        parcel.writeLong(uuid.getLeastSignificantBits());
        parcel.writeString(this.zzb);
        parcel.writeString(this.f9564c);
        parcel.writeByteArray(this.zzd);
    }

    public bk2(UUID uuid, @Nullable String str, String str2, @Nullable byte[] bArr) {
        uuid.getClass();
        this.f9563b = uuid;
        this.zzb = null;
        this.f9564c = hc.a(str2);
        this.zzd = bArr;
    }
}
