package o;

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

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class LV implements Parcelable.ClassLoaderCreator {
    public final /* synthetic */ int a;

    public /* synthetic */ LV(int i) {
        this.a = i;
    }

    public static MV a(Parcel parcel, ClassLoader classLoader) {
        D90 d90;
        if (classLoader == null) {
            classLoader = LV.class.getClassLoader();
        }
        Object value = parcel.readValue(classLoader);
        int i = parcel.readInt();
        if (i == 0) {
            d90 = C0669Zu.O;
        } else if (i == 1) {
            d90 = ME.G;
        } else {
            if (i != 2) {
                throw new IllegalStateException(AbstractC0126Ew.k(i, "Unsupported MutableState policy ", " was restored"));
            }
            d90 = C0669Zu.S;
        }
        return new MV(value, d90);
    }

    @Override // android.os.Parcelable.ClassLoaderCreator
    public final Object createFromParcel(Parcel parcel, ClassLoader classLoader) {
        switch (this.a) {
            case 0:
                return a(parcel, classLoader);
            case 1:
                if (parcel.readParcelable(classLoader) == null) {
                    return AbstractC1725l.m;
                }
                throw new IllegalStateException("superState must be null");
            case 2:
                return new C2640uh(parcel, classLoader);
            case 3:
                return new SB(parcel, classLoader);
            case 4:
                return new C1919n10(parcel, classLoader);
            default:
                return new De0(parcel, classLoader);
        }
    }

    @Override // android.os.Parcelable.Creator
    public final Object[] newArray(int i) {
        switch (this.a) {
            case 0:
                return new MV[i];
            case 1:
                return new AbstractC1725l[i];
            case 2:
                return new C2640uh[i];
            case 3:
                return new SB[i];
            case 4:
                return new C1919n10[i];
            default:
                return new De0[i];
        }
    }

    @Override // android.os.Parcelable.Creator
    public final Object createFromParcel(Parcel parcel) {
        switch (this.a) {
            case 0:
                return a(parcel, null);
            case 1:
                if (parcel.readParcelable(null) == null) {
                    return AbstractC1725l.m;
                }
                throw new IllegalStateException("superState must be null");
            case 2:
                return new C2640uh(parcel, null);
            case 3:
                return new SB(parcel, null);
            case 4:
                return new C1919n10(parcel, null);
            default:
                return new De0(parcel, null);
        }
    }
}
