package androidx.compose.runtime.collection;

import J4.c;
import java.util.List;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes.dex */
public final class MutableVectorKt {
    public static final <T> MutableVector<T> MutableVector(int i6) {
        o.m();
        throw null;
    }

    public static MutableVector MutableVector$default(int i6, int i7, Object obj) {
        o.m();
        throw null;
    }

    public static final void checkIndex(List<?> list, int i6) {
        int size = list.size();
        if (i6 < 0 || i6 >= size) {
            throwListIndexOutOfBoundsException(i6, size);
        }
    }

    public static final void checkSubIndex(List<?> list, int i6, int i7) {
        if (i6 > i7) {
            throwReversedIndicesException(i6, i7);
        }
        if (i6 < 0) {
            throwNegativeIndexException(i6);
        }
        if (i7 > list.size()) {
            throwOutOfRangeException(i7, list.size());
        }
    }

    public static final <T> MutableVector<T> mutableVectorOf() {
        o.m();
        throw null;
    }

    private static final void throwListIndexOutOfBoundsException(int i6, int i7) {
        throw new IndexOutOfBoundsException("Index " + i6 + " is out of bounds. The list has " + i7 + " elements.");
    }

    private static final void throwNegativeIndexException(int i6) {
        throw new IndexOutOfBoundsException(Z0.o.j(i6, "fromIndex (", ") is less than 0."));
    }

    private static final void throwOutOfRangeException(int i6, int i7) {
        throw new IndexOutOfBoundsException("toIndex (" + i6 + ") is more than than the list size (" + i7 + ')');
    }

    private static final void throwReversedIndicesException(int i6, int i7) {
        throw new IllegalArgumentException("Indices are out of order. fromIndex (" + i6 + ") is greater than toIndex (" + i7 + ").");
    }

    public static final <T> MutableVector<T> MutableVector(int i6, c cVar) {
        o.m();
        throw null;
    }

    public static final /* synthetic */ <T> MutableVector<T> mutableVectorOf(T... tArr) {
        return new MutableVector<>(tArr, tArr.length);
    }
}
