package o;

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

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

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

    public static H90 a(Parcel parcel, ClassLoader classLoader) {
        if (classLoader == null) {
            classLoader = G90.class.getClassLoader();
        }
        int i = parcel.readInt();
        if (i == 0) {
            return new H90();
        }
        NW nwE = C1555j90.m.e();
        for (int i2 = 0; i2 < i; i2++) {
            nwE.add(parcel.readValue(classLoader));
        }
        return new H90(nwE.c());
    }

    @Override // android.os.Parcelable.ClassLoaderCreator
    public final Object createFromParcel(Parcel parcel, ClassLoader classLoader) {
        switch (this.a) {
            case 0:
                return a(parcel, classLoader);
            case 1:
                return new C2349re(parcel, classLoader);
            case 2:
                return new C0505Tm(parcel, classLoader);
            case 3:
                return new MN(parcel, classLoader);
            case 4:
                return new F80(parcel, classLoader);
            default:
                return new Rf0(parcel, classLoader);
        }
    }

    @Override // android.os.Parcelable.Creator
    public final Object[] newArray(int i) {
        switch (this.a) {
            case 0:
                return new H90[i];
            case 1:
                return new C2349re[i];
            case 2:
                return new C0505Tm[i];
            case 3:
                return new MN[i];
            case 4:
                return new F80[i];
            default:
                return new Rf0[i];
        }
    }

    @Override // android.os.Parcelable.Creator
    public final Object createFromParcel(Parcel parcel) {
        switch (this.a) {
            case 0:
                return a(parcel, null);
            case 1:
                return new C2349re(parcel, null);
            case 2:
                return new C0505Tm(parcel, null);
            case 3:
                return new MN(parcel, null);
            case 4:
                return new F80(parcel, null);
            default:
                return new Rf0(parcel, null);
        }
    }
}
