package androidx.media3.common.util;

import android.os.Looper;
import android.text.TextUtils;
import defpackage.gm4;
import defpackage.if7;
import defpackage.pm2;
import defpackage.rq6;
import defpackage.yl7;

/* JADX INFO: loaded from: classes.dex */
@UnstableApi
public final class Assertions {
    private Assertions() {
    }

    @yl7
    @gm4
    @Deprecated
    public static void checkArgument(boolean z) {
        if7.e(z);
    }

    @yl7
    @Deprecated
    public static int checkIndex(int i, int i2, int i3) {
        if (i < i2 || i >= i3) {
            throw new IndexOutOfBoundsException();
        }
        return i;
    }

    @yl7
    @gm4
    @Deprecated
    public static void checkMainThread() {
        if7.p(Looper.myLooper() == Looper.getMainLooper(), "Not in application's main thread");
    }

    @yl7
    @pm2
    @Deprecated
    public static String checkNotEmpty(@rq6 String str) {
        if7.e(!TextUtils.isEmpty(str));
        return str;
    }

    @pm2
    @Deprecated
    @yl7
    @gm4
    public static <T> T checkNotNull(@rq6 T t, Object obj) {
        if7.l(t, obj);
        return t;
    }

    @yl7
    @gm4
    @Deprecated
    public static void checkState(boolean z) {
        if7.o(z);
    }

    @pm2
    @Deprecated
    @yl7
    @gm4
    public static <T> T checkStateNotNull(@rq6 T t, Object obj) {
        if7.l(t, obj);
        return t;
    }

    @yl7
    @gm4
    @Deprecated
    public static void checkArgument(boolean z, Object obj) {
        if7.f(z, obj);
    }

    @yl7
    @pm2
    @Deprecated
    public static String checkNotEmpty(@rq6 String str, Object obj) {
        if7.f(!TextUtils.isEmpty(str), obj);
        return str;
    }

    @pm2
    @Deprecated
    @yl7
    @gm4
    public static <T> T checkNotNull(@rq6 T t) {
        t.getClass();
        return t;
    }

    @yl7
    @gm4
    @Deprecated
    public static void checkState(boolean z, Object obj) {
        if7.p(z, obj);
    }

    @pm2
    @Deprecated
    @yl7
    @gm4
    public static <T> T checkStateNotNull(@rq6 T t) {
        t.getClass();
        return t;
    }
}
