package F1;

import n1.l;

/* JADX INFO: loaded from: classes.dex */
public abstract class C {
    public static final Object a(Object obj, q1.d dVar) {
        if (!(obj instanceof C0143y)) {
            return n1.l.b(obj);
        }
        l.a aVar = n1.l.f5861g;
        return n1.l.b(n1.m.a(((C0143y) obj).f667a));
    }

    public static final Object b(Object obj, InterfaceC0131l interfaceC0131l) {
        Throwable thD = n1.l.d(obj);
        return thD == null ? obj : new C0143y(thD, false, 2, null);
    }

    public static final Object c(Object obj, y1.l lVar) {
        Throwable thD = n1.l.d(obj);
        return thD == null ? lVar != null ? new C0144z(obj, lVar) : obj : new C0143y(thD, false, 2, null);
    }

    public static /* synthetic */ Object d(Object obj, y1.l lVar, int i2, Object obj2) {
        if ((i2 & 1) != 0) {
            lVar = null;
        }
        return c(obj, lVar);
    }
}
