package p012d1;

import p012d1.InterfaceC0633f;
import p039m1.C1470g;

/* renamed from: d1.e */
/* loaded from: classes.dex */
public interface InterfaceC0630e extends InterfaceC0633f.InterfaceC0636b {

    /* renamed from: a */
    public static final C0632b f2159a = C0632b.f2160d;

    /* renamed from: d1.e$a */
    /* loaded from: classes.dex */
    public static final class C0631a {
        /* renamed from: a */
        public static <E extends InterfaceC0633f.InterfaceC0636b> E m3238a(InterfaceC0630e interfaceC0630e, InterfaceC0633f.InterfaceC0638c<E> interfaceC0638c) {
            C1470g.m1292e(interfaceC0638c, "key");
            if (!(interfaceC0638c instanceof AbstractC0626b)) {
                if (InterfaceC0630e.f2159a == interfaceC0638c) {
                    C1470g.m1294c(interfaceC0630e, "null cannot be cast to non-null type E of kotlin.coroutines.ContinuationInterceptor.get");
                    return interfaceC0630e;
                }
                return null;
            }
            AbstractC0626b abstractC0626b = (AbstractC0626b) interfaceC0638c;
            if (abstractC0626b.m3244a(interfaceC0630e.getKey())) {
                E e = (E) abstractC0626b.m3243b(interfaceC0630e);
                if (e instanceof InterfaceC0633f.InterfaceC0636b) {
                    return e;
                }
                return null;
            }
            return null;
        }

        /* renamed from: b */
        public static InterfaceC0633f m3237b(InterfaceC0630e interfaceC0630e, InterfaceC0633f.InterfaceC0638c<?> interfaceC0638c) {
            C1470g.m1292e(interfaceC0638c, "key");
            if (!(interfaceC0638c instanceof AbstractC0626b)) {
                return InterfaceC0630e.f2159a == interfaceC0638c ? C0639g.f2162d : interfaceC0630e;
            }
            AbstractC0626b abstractC0626b = (AbstractC0626b) interfaceC0638c;
            return (!abstractC0626b.m3244a(interfaceC0630e.getKey()) || abstractC0626b.m3243b(interfaceC0630e) == null) ? interfaceC0630e : C0639g.f2162d;
        }
    }

    /* renamed from: d1.e$b */
    /* loaded from: classes.dex */
    public static final class C0632b implements InterfaceC0633f.InterfaceC0638c<InterfaceC0630e> {

        /* renamed from: d */
        public static final /* synthetic */ C0632b f2160d = new C0632b();
    }

    /* renamed from: g */
    void mo514g(InterfaceC0629d<?> interfaceC0629d);

    /* renamed from: h */
    <T> InterfaceC0629d<T> mo513h(InterfaceC0629d<? super T> interfaceC0629d);
}