package o;

import android.view.View;
import androidx.appcompat.view.menu.ActionMenuItemView;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.d1, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0965d1 extends JB {
    public final /* synthetic */ int u = 0;
    public final /* synthetic */ View v;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0965d1(ActionMenuItemView actionMenuItemView) {
        super(actionMenuItemView);
        this.v = actionMenuItemView;
    }

    @Override // o.JB
    public final D80 b() {
        C1156f1 c1156f1;
        switch (this.u) {
            case 0:
                AbstractC1060e1 abstractC1060e1 = ((ActionMenuItemView) this.v).x;
                if (abstractC1060e1 == null || (c1156f1 = ((C1252g1) abstractC1060e1).a.E) == null) {
                    return null;
                }
                return c1156f1.a();
            default:
                C1156f1 c1156f12 = ((C1348h1) this.v).f550o.D;
                if (c1156f12 == null) {
                    return null;
                }
                return c1156f12.a();
        }
    }

    @Override // o.JB
    public final boolean c() {
        D80 d80B;
        switch (this.u) {
            case 0:
                ActionMenuItemView actionMenuItemView = (ActionMenuItemView) this.v;
                BO bo = actionMenuItemView.v;
                return bo != null && bo.c(actionMenuItemView.s) && (d80B = b()) != null && d80B.b();
            default:
                ((C1348h1) this.v).f550o.l();
                return true;
        }
    }

    @Override // o.JB
    public boolean d() {
        switch (this.u) {
            case 1:
                C1444i1 c1444i1 = ((C1348h1) this.v).f550o;
                if (c1444i1.F != null) {
                    return false;
                }
                c1444i1.e();
                return true;
            default:
                return super.d();
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0965d1(C1348h1 c1348h1, C1348h1 c1348h12) {
        super(c1348h12);
        this.v = c1348h1;
    }
}
