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

import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes2.dex */
public final class yh1 extends f8.a {
    public static final Parcelable.Creator<yh1> CREATOR = new wk(23);

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public pf f18842b = null;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public byte[] f18843c;

    public yh1(int i10, byte[] bArr) {
        this.f18841a = i10;
        this.f18843c = bArr;
        zzb();
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        int I = com.bumptech.glide.g.I(20293, parcel);
        com.bumptech.glide.g.C(parcel, 1, 4);
        parcel.writeInt(this.f18841a);
        byte[] bArrB = this.f18843c;
        if (bArrB == null) {
            bArrB = this.f18842b.b();
        }
        com.bumptech.glide.g.o(parcel, 2, bArrB);
        com.bumptech.glide.g.N(I, parcel);
    }

    public final void zzb() {
        pf pfVar = this.f18842b;
        if (pfVar != null || this.f18843c == null) {
            if (pfVar == null || this.f18843c != null) {
                if (pfVar != null && this.f18843c != null) {
                    throw new IllegalStateException("Invalid internal representation - full");
                }
                if (pfVar != null || this.f18843c != null) {
                    throw new IllegalStateException("Impossible");
                }
                throw new IllegalStateException("Invalid internal representation - empty");
            }
        }
    }
}
