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

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

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

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

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

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

    public z5(int i10, byte[] bArr) {
        this.f21401a = i10;
        this.f21403c = bArr;
        w();
    }

    public final void w() {
        l1 l1Var = this.f21402b;
        if (l1Var != null || this.f21403c == null) {
            if (l1Var == null || this.f21403c != null) {
                if (l1Var != null && this.f21403c != null) {
                    throw new IllegalStateException("Invalid internal representation - full");
                }
                if (l1Var != null || this.f21403c != null) {
                    throw new IllegalStateException("Impossible");
                }
                throw new IllegalStateException("Invalid internal representation - empty");
            }
        }
    }

    @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.f21401a);
        byte[] bArrC = this.f21403c;
        if (bArrC == null) {
            bArrC = this.f21402b.c();
        }
        com.bumptech.glide.g.o(parcel, 2, bArrC);
        com.bumptech.glide.g.N(I, parcel);
    }
}
