package p012d1;

import p012d1.InterfaceC0633f;
import p012d1.InterfaceC0633f.InterfaceC0636b;
import p036l1.InterfaceC1432l;
import p039m1.C1470g;

/* renamed from: d1.b */
/* loaded from: classes.dex */
public abstract class AbstractC0626b<B extends InterfaceC0633f.InterfaceC0636b, E extends B> implements InterfaceC0633f.InterfaceC0638c<E> {

    /* renamed from: d */
    public final InterfaceC1432l<InterfaceC0633f.InterfaceC0636b, E> f2154d;

    /* renamed from: e */
    public final InterfaceC0633f.InterfaceC0638c<?> f2155e;

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r3v0, types: [l1.l<d1.f$b, E extends B>, java.lang.Object, l1.l<? super d1.f$b, ? extends E extends B>] */
    public AbstractC0626b(InterfaceC0633f.InterfaceC0638c<B> interfaceC0638c, InterfaceC1432l<? super InterfaceC0633f.InterfaceC0636b, ? extends E> interfaceC1432l) {
        C1470g.m1292e(interfaceC0638c, "baseKey");
        C1470g.m1292e(interfaceC1432l, "safeCast");
        this.f2154d = interfaceC1432l;
        this.f2155e = interfaceC0638c instanceof AbstractC0626b ? (InterfaceC0633f.InterfaceC0638c<B>) ((AbstractC0626b) interfaceC0638c).f2155e : interfaceC0638c;
    }

    /* renamed from: a */
    public final boolean m3244a(InterfaceC0633f.InterfaceC0638c<?> interfaceC0638c) {
        C1470g.m1292e(interfaceC0638c, "key");
        return interfaceC0638c == this || this.f2155e == interfaceC0638c;
    }

    /* JADX WARN: Incorrect return type in method signature: (Ld1/f$b;)TE; */
    /* renamed from: b */
    public final InterfaceC0633f.InterfaceC0636b m3243b(InterfaceC0633f.InterfaceC0636b interfaceC0636b) {
        C1470g.m1292e(interfaceC0636b, "element");
        return (InterfaceC0633f.InterfaceC0636b) this.f2154d.mo510e(interfaceC0636b);
    }
}