package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.util.List;
import kotlin.Metadata;

/* JADX INFO: renamed from: ns6, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\u0002\n\u0000¨\u0006\u0000"}, d2 = {"collection"}, k = 2, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class C0635ns6 {
    public static final Object[] a = new Object[0];

    public static final void a(int i, List list) {
        int size = list.size();
        if (i < 0 || i >= size) {
            throw new IndexOutOfBoundsException(n41.l("Index ", i, " is out of bounds. The list has ", " elements.", size));
        }
    }

    public static final void b(List list, int i, int i2) {
        int size = list.size();
        if (i > i2) {
            throw new IllegalArgumentException(n41.l("Indices are out of order. fromIndex (", i, ") is greater than toIndex (", ").", i2));
        }
        if (i < 0) {
            throw new IndexOutOfBoundsException(n41.i(i, "fromIndex (", ") is less than 0."));
        }
        if (i2 <= size) {
            return;
        }
        throw new IndexOutOfBoundsException("toIndex (" + i2 + ") is more than than the list size (" + size + ')');
    }
}
