package d0.w; import d0.z.d.m; import kotlin.coroutines.CoroutineContext; import kotlin.coroutines.CoroutineContext.Element; import kotlin.jvm.functions.Function1; /* compiled from: CoroutineContextImpl.kt */ /* loaded from: classes3.dex */ public abstract class b implements CoroutineContext.Key { public final CoroutineContext.Key a; /* renamed from: b reason: collision with root package name */ public final Function1 f3567b; /* JADX WARN: Multi-variable type inference failed */ public b(CoroutineContext.Key key, Function1 function1) { m.checkNotNullParameter(key, "baseKey"); m.checkNotNullParameter(function1, "safeCast"); this.f3567b = function1; this.a = key instanceof b ? (CoroutineContext.Key) ((b) key).a : key; } public final boolean isSubKey$kotlin_stdlib(CoroutineContext.Key key) { m.checkNotNullParameter(key, "key"); return key == this || this.a == key; } /* JADX WARN: Incorrect return type in method signature: (Lkotlin/coroutines/CoroutineContext$Element;)TE; */ public final CoroutineContext.Element tryCast$kotlin_stdlib(CoroutineContext.Element element) { m.checkNotNullParameter(element, "element"); return (CoroutineContext.Element) this.f3567b.invoke(element); } }