package l1;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: compiled from: _ArraysJvm.kt */
/* JADX INFO: loaded from: classes.dex */
public class d extends c {
    public static final <T> List<T> a(T[] tArr) {
        w1.g.e(tArr, "<this>");
        List<T> listA = f.a(tArr);
        w1.g.d(listA, "asList(this)");
        return listA;
    }

    public static final <T> T[] b(T[] tArr, T[] tArr2, int i3, int i4, int i5) {
        w1.g.e(tArr, "<this>");
        w1.g.e(tArr2, "destination");
        System.arraycopy(tArr, i4, tArr2, i3, i5 - i4);
        return tArr2;
    }

    public static /* synthetic */ Object[] c(Object[] objArr, Object[] objArr2, int i3, int i4, int i5, int i6, Object obj) {
        if ((i6 & 2) != 0) {
            i3 = 0;
        }
        if ((i6 & 4) != 0) {
            i4 = 0;
        }
        if ((i6 & 8) != 0) {
            i5 = objArr.length;
        }
        return b(objArr, objArr2, i3, i4, i5);
    }

    public static final <T> void d(T[] tArr, Comparator<? super T> comparator) {
        w1.g.e(tArr, "<this>");
        w1.g.e(comparator, "comparator");
        if (tArr.length > 1) {
            Arrays.sort(tArr, comparator);
        }
    }
}
