package p009c1;

import java.util.List;
import p039m1.C1470g;

/* renamed from: c1.g */
/* loaded from: classes.dex */
public class C0502g extends C0501f {
    /* renamed from: b */
    public static final <T> List<T> m3609b() {
        return C0512q.f1932d;
    }

    /* renamed from: c */
    public static final <T> List<T> m3608c(T... tArr) {
        C1470g.m1292e(tArr, "elements");
        return tArr.length > 0 ? C0498c.m3618a(tArr) : m3609b();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: d */
    public static final <T> List<T> m3607d(List<? extends T> list) {
        C1470g.m1292e(list, "<this>");
        int size = list.size();
        return size != 0 ? size != 1 ? list : C0501f.m3610a(list.get(0)) : m3609b();
    }

    /* renamed from: e */
    public static final void m3606e() {
        throw new ArithmeticException("Index overflow has happened.");
    }
}