package p039m1;

import java.util.Arrays;
import p006b1.C0483k;

/* renamed from: m1.g */
/* loaded from: classes.dex */
public class C1470g {
    /* renamed from: a */
    public static boolean m1296a(Object obj, Object obj2) {
        return obj == null ? obj2 == null : obj.equals(obj2);
    }

    /* renamed from: b */
    public static void m1295b(Object obj) {
        if (obj == null) {
            m1286k();
        }
    }

    /* renamed from: c */
    public static void m1294c(Object obj, String str) {
        if (obj == null) {
            m1285l(str);
        }
    }

    /* renamed from: d */
    public static void m1293d(Object obj, String str) {
        if (obj != null) {
            return;
        }
        throw ((NullPointerException) m1289h(new NullPointerException(str + " must not be null")));
    }

    /* renamed from: e */
    public static void m1292e(Object obj, String str) {
        if (obj == null) {
            m1284m(str);
        }
    }

    /* renamed from: f */
    public static int m1291f(int i, int i2) {
        if (i < i2) {
            return -1;
        }
        return i == i2 ? 0 : 1;
    }

    /* renamed from: g */
    public static String m1290g(String str) {
        StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
        String name = C1470g.class.getName();
        int i = 0;
        while (!stackTrace[i].getClassName().equals(name)) {
            i++;
        }
        while (stackTrace[i].getClassName().equals(name)) {
            i++;
        }
        StackTraceElement stackTraceElement = stackTrace[i];
        String className = stackTraceElement.getClassName();
        String methodName = stackTraceElement.getMethodName();
        return "Parameter specified as non-null is null: method " + className + "." + methodName + ", parameter " + str;
    }

    /* renamed from: h */
    public static <T extends Throwable> T m1289h(T t) {
        return (T) m1288i(t, C1470g.class.getName());
    }

    /* renamed from: i */
    public static <T extends Throwable> T m1288i(T t, String str) {
        StackTraceElement[] stackTrace = t.getStackTrace();
        int length = stackTrace.length;
        int i = -1;
        for (int i2 = 0; i2 < length; i2++) {
            if (str.equals(stackTrace[i2].getClassName())) {
                i = i2;
            }
        }
        t.setStackTrace((StackTraceElement[]) Arrays.copyOfRange(stackTrace, i + 1, length));
        return t;
    }

    /* renamed from: j */
    public static String m1287j(String str, Object obj) {
        return str + obj;
    }

    /* renamed from: k */
    public static void m1286k() {
        throw ((NullPointerException) m1289h(new NullPointerException()));
    }

    /* renamed from: l */
    public static void m1285l(String str) {
        throw ((NullPointerException) m1289h(new NullPointerException(str)));
    }

    /* renamed from: m */
    public static void m1284m(String str) {
        throw ((NullPointerException) m1289h(new NullPointerException(m1290g(str))));
    }

    /* renamed from: n */
    public static void m1283n(String str) {
        throw ((C0483k) m1289h(new C0483k(str)));
    }

    /* renamed from: o */
    public static void m1282o(String str) {
        m1283n("lateinit property " + str + " has not been initialized");
    }
}