package ra; /* compiled from: ObjectArrays.java */ /* loaded from: classes4.dex */ public final class i0 { static Object a(Object obj, int i10) { if (obj != null) { return obj; } throw new NullPointerException("at index " + i10); } static Object[] b(Object... objArr) { return c(objArr, objArr.length); } static Object[] c(Object[] objArr, int i10) { for (int i11 = 0; i11 < i10; i11++) { a(objArr[i11], i11); } return objArr; } public static T[] d(T[] tArr, int i10) { return (T[]) k0.b(tArr, i10); } }