package P6;

import O6.q;
import O6.r;
import java.util.AbstractCollection;
import java.util.Collection;

/* JADX INFO: loaded from: classes.dex */
public abstract class p {
    public static Collection a(AbstractCollection abstractCollection) {
        if (!(abstractCollection instanceof Q6.a) || (abstractCollection instanceof Q6.b)) {
            return abstractCollection;
        }
        e(abstractCollection, "kotlin.collections.MutableCollection");
        throw null;
    }

    public static void b(int i, Object obj) {
        if (obj == null || c(i, obj)) {
            return;
        }
        e(obj, "kotlin.jvm.functions.Function" + i);
        throw null;
    }

    public static boolean c(int i, Object obj) {
        if (obj instanceof A6.a) {
            if ((obj instanceof e ? ((e) obj).e() : obj instanceof O6.a ? 0 : obj instanceof O6.l ? 1 : obj instanceof O6.p ? 2 : obj instanceof q ? 3 : obj instanceof r ? 4 : -1) == i) {
                return true;
            }
        }
        return false;
    }

    public static final B6.b d(Object[] objArr) {
        g.e(objArr, "array");
        return new B6.b(objArr);
    }

    public static void e(Object obj, String str) {
        ClassCastException classCastException = new ClassCastException((obj == null ? "null" : obj.getClass().getName()) + " cannot be cast to " + str);
        g.g(classCastException, p.class.getName());
        throw classCastException;
    }
}
