package androidx.core.graphics.drawable; import android.content.res.ColorStateList; import androidx.versionedparcelable.VersionedParcel; /* loaded from: classes.dex */ public class IconCompatParcelizer { public static IconCompat read(VersionedParcel versionedParcel) { IconCompat iconCompat = new IconCompat(); iconCompat.f6386o = versionedParcel.c(iconCompat.f6386o, 1); iconCompat.c = versionedParcel.b(iconCompat.c); iconCompat.g = versionedParcel.BY_(iconCompat.g, 3); iconCompat.e = versionedParcel.c(iconCompat.e, 4); iconCompat.b = versionedParcel.c(iconCompat.b, 5); iconCompat.h = (ColorStateList) versionedParcel.BY_(iconCompat.h, 6); iconCompat.j = versionedParcel.b(iconCompat.j, 7); iconCompat.f = versionedParcel.b(iconCompat.f, 8); iconCompat.g(); return iconCompat; } public static void write(IconCompat iconCompat, VersionedParcel versionedParcel) { iconCompat.c(VersionedParcel.d()); if (-1 != iconCompat.f6386o) { versionedParcel.e(iconCompat.f6386o, 1); } if (iconCompat.c != null) { versionedParcel.e(iconCompat.c); } if (iconCompat.g != null) { versionedParcel.Ca_(iconCompat.g, 3); } if (iconCompat.e != 0) { versionedParcel.e(iconCompat.e, 4); } if (iconCompat.b != 0) { versionedParcel.e(iconCompat.b, 5); } if (iconCompat.h != null) { versionedParcel.Ca_(iconCompat.h, 6); } if (iconCompat.j != null) { versionedParcel.a(iconCompat.j, 7); } if (iconCompat.f != null) { versionedParcel.a(iconCompat.f, 8); } } }