package sm;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public abstract class t {
    public static List a(List builder) {
        kotlin.jvm.internal.t.g(builder, "builder");
        return ((tm.b) builder).C();
    }

    public static final Object[] b(Object[] objArr, boolean z10) {
        kotlin.jvm.internal.t.g(objArr, "<this>");
        if (z10 && kotlin.jvm.internal.t.b(objArr.getClass(), Object[].class)) {
            return objArr;
        }
        Object[] copyOf = Arrays.copyOf(objArr, objArr.length, Object[].class);
        kotlin.jvm.internal.t.f(copyOf, "copyOf(...)");
        return copyOf;
    }

    public static List c() {
        return new tm.b();
    }

    public static List d(int i10) {
        return new tm.b(i10);
    }

    public static List e(Object obj) {
        List singletonList = Collections.singletonList(obj);
        kotlin.jvm.internal.t.f(singletonList, "singletonList(...)");
        return singletonList;
    }

    public static Object[] f(int i10, Object[] array) {
        kotlin.jvm.internal.t.g(array, "array");
        if (i10 < array.length) {
            array[i10] = null;
        }
        return array;
    }
}
