package r2;

import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import e4.C;
import h3.C2167o4;
import kotlin.jvm.internal.D;
import n2.AbstractC2613d;
import q2.C2843f;

/* JADX INFO: renamed from: r2.h, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC2883h implements g5.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final i5.h f23923a = W.a.R("kotlin.Array<android.os.Parcelable>", new i5.g[0], new C2167o4(12));

    public static Parcelable[] a(j5.c decoder) {
        kotlin.jvm.internal.o.h(decoder, "decoder");
        if (!(decoder instanceof C2843f)) {
            throw new IllegalArgumentException(m1.g.f(f23923a.f19087a, decoder).toString());
        }
        C2843f c2843f = (C2843f) decoder;
        Bundle bundle = c2843f.f23617g;
        String key = c2843f.f23619i;
        kotlin.jvm.internal.g gVarA = D.a(Parcelable.class);
        kotlin.jvm.internal.o.h(key, "key");
        Parcelable[] parcelableArray = Build.VERSION.SDK_INT >= 34 ? (Parcelable[]) B1.b.c(bundle, key, C.D(gVarA)) : bundle.getParcelableArray(key);
        if (parcelableArray == null) {
            parcelableArray = null;
        }
        if (parcelableArray != null) {
            return parcelableArray;
        }
        AbstractC2613d.i(key);
        throw null;
    }
}
