package ῲ.ῲ.ඓ.㳳;

import android.content.Context;
import android.view.MenuItem;
import android.view.SubMenu;
import ῲ.ᨨ.㸾.K.AbstractMenuItemC1863;
import ῲ.ᨨ.㸾.K.AbstractSubMenuC1862;
import ῲ.㴹.C2288;

/* renamed from: ῲ.ῲ.ඓ.㳳.ʬ  reason: contains not printable characters */
/* compiled from: BaseMenuWrapper */
public abstract class AbstractC1896 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public C2288<AbstractSubMenuC1862, SubMenu> f6436;

    /* renamed from: ῲ  reason: contains not printable characters */
    public C2288<AbstractMenuItemC1863, MenuItem> f6437;

    /* renamed from: K  reason: contains not printable characters */
    public final Context f6438;

    public AbstractC1896(Context context) {
        this.f6438 = context;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final MenuItem m4920(MenuItem menuItem) {
        if (!(menuItem instanceof AbstractMenuItemC1863)) {
            return menuItem;
        }
        AbstractMenuItemC1863 r0 = (AbstractMenuItemC1863) menuItem;
        if (this.f6437 == null) {
            this.f6437 = new C2288<>();
        }
        MenuItem orDefault = this.f6437.getOrDefault(menuItem, null);
        if (orDefault != null) {
            return orDefault;
        }
        MenuItemC1904 r4 = new MenuItemC1904(this.f6438, r0);
        this.f6437.put(r0, r4);
        return r4;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final SubMenu m4921(SubMenu subMenu) {
        if (!(subMenu instanceof AbstractSubMenuC1862)) {
            return subMenu;
        }
        AbstractSubMenuC1862 r3 = (AbstractSubMenuC1862) subMenu;
        if (this.f6436 == null) {
            this.f6436 = new C2288<>();
        }
        SubMenu subMenu2 = this.f6436.get(r3);
        if (subMenu2 != null) {
            return subMenu2;
        }
        SubMenuC1932 r0 = new SubMenuC1932(this.f6438, r3);
        this.f6436.put(r3, r0);
        return r0;
    }
}
