package p060t1;

import p006b1.C0476f;
import p006b1.C0479g;
import p006b1.C0484l;
import p012d1.InterfaceC0629d;
import p036l1.InterfaceC1432l;

/* renamed from: t1.s */
/* loaded from: classes.dex */
public final class C1713s {
    /* renamed from: a */
    public static final <T> Object m521a(Object obj, InterfaceC0629d<? super T> interfaceC0629d) {
        if (obj instanceof C1703o) {
            C0476f.C0477a c0477a = C0476f.f1684d;
            obj = C0479g.m3622a(((C1703o) obj).f3937a);
        }
        return C0476f.m3626a(obj);
    }

    /* renamed from: b */
    public static final <T> Object m520b(Object obj, InterfaceC1432l<? super Throwable, C0484l> interfaceC1432l) {
        Throwable m3625b = C0476f.m3625b(obj);
        return m3625b == null ? interfaceC1432l != null ? new C1705p(obj, interfaceC1432l) : obj : new C1703o(m3625b, false, 2, null);
    }

    /* renamed from: c */
    public static final <T> Object m519c(Object obj, InterfaceC1676g<?> interfaceC1676g) {
        Throwable m3625b = C0476f.m3625b(obj);
        return m3625b == null ? obj : new C1703o(m3625b, false, 2, null);
    }

    /* renamed from: d */
    public static /* synthetic */ Object m518d(Object obj, InterfaceC1432l interfaceC1432l, int i, Object obj2) {
        if ((i & 1) != 0) {
            interfaceC1432l = null;
        }
        return m520b(obj, interfaceC1432l);
    }
}