package sm;

import java.util.List;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public abstract class a0 extends z {
    public static List M(List list) {
        kotlin.jvm.internal.t.g(list, "<this>");
        return new t0(list);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int N(List list, int i10) {
        int m10;
        int m11;
        int m12;
        m10 = u.m(list);
        if (new jn.i(0, m10).B(i10)) {
            m12 = u.m(list);
            return m12 - i10;
        }
        StringBuilder sb2 = new StringBuilder();
        sb2.append("Element index ");
        sb2.append(i10);
        sb2.append(" must be in range [");
        m11 = u.m(list);
        sb2.append(new jn.i(0, m11));
        sb2.append("].");
        throw new IndexOutOfBoundsException(sb2.toString());
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int O(List list, int i10) {
        int m10;
        m10 = u.m(list);
        return m10 - i10;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int P(List list, int i10) {
        if (new jn.i(0, list.size()).B(i10)) {
            return list.size() - i10;
        }
        throw new IndexOutOfBoundsException("Position index " + i10 + " must be in range [" + new jn.i(0, list.size()) + "].");
    }
}
