package X6FRs_4.KQgRr5e_0.YghfZG_14;

import X6FRs_4.KQgRr5e_0.LGe8pk_15.YghfZG_14;
import X6FRs_4.KQgRr5e_0.XnFJ5_9;
import X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.Nm6q_10;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.PorterDuff;
import android.util.AttributeSet;
import android.util.Log;
import android.util.Xml;
import android.view.InflateException;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
/* compiled from: SupportMenuInflater.java */
/* loaded from: classes.dex */
public class IMuAHx_6 extends MenuInflater {
    public static final Class<?>[] KQgRr5e_0;
    public static final Class<?>[] QxJ9d_1;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public Context f836KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public Object f837KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Object[] f838KQgRr5e_0;

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public final Object[] f839QxJ9d_1;

    /* compiled from: SupportMenuInflater.java */
    /* loaded from: classes.dex */
    public static class KQgRr5e_0 implements MenuItem.OnMenuItemClickListener {
        public static final Class<?>[] KQgRr5e_0 = {MenuItem.class};

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Object f840KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Method f841KQgRr5e_0;

        public KQgRr5e_0(Object obj, String str) {
            this.f840KQgRr5e_0 = obj;
            Class<?> cls = obj.getClass();
            try {
                this.f841KQgRr5e_0 = cls.getMethod(str, KQgRr5e_0);
            } catch (Exception e) {
                InflateException inflateException = new InflateException("Couldn't resolve menu item onClick handler " + str + " in class " + cls.getName());
                inflateException.initCause(e);
                throw inflateException;
            }
        }

        @Override // android.view.MenuItem.OnMenuItemClickListener
        public boolean onMenuItemClick(MenuItem menuItem) {
            try {
                if (this.f841KQgRr5e_0.getReturnType() == Boolean.TYPE) {
                    return ((Boolean) this.f841KQgRr5e_0.invoke(this.f840KQgRr5e_0, menuItem)).booleanValue();
                }
                this.f841KQgRr5e_0.invoke(this.f840KQgRr5e_0, menuItem);
                return true;
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    }

    static {
        Class<?>[] clsArr = {Context.class};
        KQgRr5e_0 = clsArr;
        QxJ9d_1 = clsArr;
    }

    public IMuAHx_6(Context context) {
        super(context);
        this.f836KQgRr5e_0 = context;
        Object[] objArr = {context};
        this.f838KQgRr5e_0 = objArr;
        this.f839QxJ9d_1 = objArr;
    }

    /* JADX WARN: Code restructure failed: missing block: B:12:0x003b, code lost:
        r8 = null;
        r6 = false;
        r7 = false;
     */
    /* JADX WARN: Code restructure failed: missing block: B:13:0x0040, code lost:
        if (r6 != false) goto L64;
     */
    /* JADX WARN: Code restructure failed: missing block: B:14:0x0042, code lost:
        if (r15 == 1) goto L60;
     */
    /* JADX WARN: Code restructure failed: missing block: B:16:0x0048, code lost:
        if (r15 == 2) goto L44;
     */
    /* JADX WARN: Code restructure failed: missing block: B:18:0x004b, code lost:
        if (r15 == 3) goto L14;
     */
    /* JADX WARN: Code restructure failed: missing block: B:20:0x004f, code lost:
        r15 = r13.getName();
     */
    /* JADX WARN: Code restructure failed: missing block: B:21:0x0053, code lost:
        if (r7 == false) goto L21;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x0059, code lost:
        if (r15.equals(r8) == false) goto L21;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x005b, code lost:
        r8 = null;
        r7 = false;
     */
    /* JADX WARN: Code restructure failed: missing block: B:26:0x0062, code lost:
        if (r15.equals("group") == false) goto L25;
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x0064, code lost:
        r0.QxJ9d_1();
     */
    /* JADX WARN: Code restructure failed: missing block: B:29:0x006c, code lost:
        if (r15.equals("item") == false) goto L38;
     */
    /* JADX WARN: Code restructure failed: missing block: B:31:0x0072, code lost:
        if (r0.m459KQgRr5e_0() != false) goto L37;
     */
    /* JADX WARN: Code restructure failed: missing block: B:32:0x0074, code lost:
        r15 = r0.f844KQgRr5e_0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:33:0x0076, code lost:
        if (r15 == null) goto L35;
     */
    /* JADX WARN: Code restructure failed: missing block: B:35:0x007c, code lost:
        if (r15.m242KQgRr5e_0() == false) goto L35;
     */
    /* JADX WARN: Code restructure failed: missing block: B:36:0x007e, code lost:
        r0.KQgRr5e_0();
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x0082, code lost:
        r0.m458KQgRr5e_0();
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x008a, code lost:
        if (r15.equals("menu") == false) goto L42;
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x008c, code lost:
        r6 = true;
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x008e, code lost:
        if (r7 == false) goto L45;
     */
    /* JADX WARN: Code restructure failed: missing block: B:43:0x0091, code lost:
        r15 = r13.getName();
     */
    /* JADX WARN: Code restructure failed: missing block: B:44:0x0099, code lost:
        if (r15.equals("group") == false) goto L49;
     */
    /* JADX WARN: Code restructure failed: missing block: B:45:0x009b, code lost:
        r0.KQgRr5e_0(r14);
     */
    /* JADX WARN: Code restructure failed: missing block: B:47:0x00a3, code lost:
        if (r15.equals("item") == false) goto L53;
     */
    /* JADX WARN: Code restructure failed: missing block: B:48:0x00a5, code lost:
        r0.QxJ9d_1(r14);
     */
    /* JADX WARN: Code restructure failed: missing block: B:50:0x00ad, code lost:
        if (r15.equals("menu") == false) goto L57;
     */
    /* JADX WARN: Code restructure failed: missing block: B:51:0x00af, code lost:
        KQgRr5e_0(r13, r14, r0.KQgRr5e_0());
     */
    /* JADX WARN: Code restructure failed: missing block: B:52:0x00b7, code lost:
        r8 = r15;
        r7 = true;
     */
    /* JADX WARN: Code restructure failed: missing block: B:53:0x00b9, code lost:
        r15 = r13.next();
     */
    /* JADX WARN: Code restructure failed: missing block: B:55:0x00c5, code lost:
        throw new java.lang.RuntimeException("Unexpected end of document");
     */
    /* JADX WARN: Code restructure failed: missing block: B:56:0x00c6, code lost:
        return;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void KQgRr5e_0(XmlPullParser xmlPullParser, AttributeSet attributeSet, Menu menu) throws XmlPullParserException, IOException {
        QxJ9d_1 qxJ9d_1 = new QxJ9d_1(menu);
        int eventType = xmlPullParser.getEventType();
        while (true) {
            if (eventType == 2) {
                String name = xmlPullParser.getName();
                if (name.equals("menu")) {
                    eventType = xmlPullParser.next();
                } else {
                    throw new RuntimeException("Expecting menu, got " + name);
                }
            } else {
                eventType = xmlPullParser.next();
                if (eventType == 1) {
                    break;
                }
            }
        }
    }

    @Override // android.view.MenuInflater
    public void inflate(int i, Menu menu) {
        if (!(menu instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.KQgRr5e_0)) {
            super.inflate(i, menu);
            return;
        }
        XmlResourceParser xmlResourceParser = null;
        try {
            try {
                try {
                    xmlResourceParser = this.f836KQgRr5e_0.getResources().getLayout(i);
                    KQgRr5e_0(xmlResourceParser, Xml.asAttributeSet(xmlResourceParser), menu);
                } catch (XmlPullParserException e) {
                    throw new InflateException("Error inflating menu XML", e);
                }
            } catch (IOException e2) {
                throw new InflateException("Error inflating menu XML", e2);
            }
        } finally {
            if (xmlResourceParser != null) {
                xmlResourceParser.close();
            }
        }
    }

    /* compiled from: SupportMenuInflater.java */
    /* loaded from: classes.dex */
    public class QxJ9d_1 {

        /* renamed from: FSaI4_7  reason: collision with root package name */
        public int f3189FSaI4_7;

        /* renamed from: IFxWkV_5  reason: collision with root package name */
        public int f3190IFxWkV_5;

        /* renamed from: IFxWkV_5  reason: collision with other field name */
        public boolean f842IFxWkV_5;

        /* renamed from: IMuAHx_6  reason: collision with root package name */
        public int f3191IMuAHx_6;

        /* renamed from: KNBe_11  reason: collision with root package name */
        public int f3192KNBe_11;
        public char KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public int f843KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public X6FRs_4.IMuAHx_6.EuDEkJe_12.QxJ9d_1 f844KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public ColorStateList f846KQgRr5e_0 = null;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public PorterDuff.Mode f847KQgRr5e_0 = null;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Menu f848KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public CharSequence f849KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public String f850KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public boolean f851KQgRr5e_0;

        /* renamed from: Mqv2r_3  reason: collision with root package name */
        public int f3193Mqv2r_3;

        /* renamed from: Mqv2r_3  reason: collision with other field name */
        public CharSequence f852Mqv2r_3;

        /* renamed from: Mqv2r_3  reason: collision with other field name */
        public boolean f853Mqv2r_3;

        /* renamed from: Nm6q_10  reason: collision with root package name */
        public int f3194Nm6q_10;
        public int PGPF6hQ_2;

        /* renamed from: PGPF6hQ_2  reason: collision with other field name */
        public CharSequence f854PGPF6hQ_2;

        /* renamed from: PGPF6hQ_2  reason: collision with other field name */
        public String f855PGPF6hQ_2;

        /* renamed from: PGPF6hQ_2  reason: collision with other field name */
        public boolean f856PGPF6hQ_2;
        public char QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public int f857QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public CharSequence f858QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public String f859QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public boolean f860QxJ9d_1;

        /* renamed from: X6FRs_4  reason: collision with root package name */
        public int f3195X6FRs_4;

        /* renamed from: X6FRs_4  reason: collision with other field name */
        public boolean f861X6FRs_4;

        /* renamed from: Xgtqvk_8  reason: collision with root package name */
        public int f3196Xgtqvk_8;

        /* renamed from: XnFJ5_9  reason: collision with root package name */
        public int f3197XnFJ5_9;

        public QxJ9d_1(Menu menu) {
            this.f848KQgRr5e_0 = menu;
            QxJ9d_1();
        }

        public void KQgRr5e_0(AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = IMuAHx_6.this.f836KQgRr5e_0.obtainStyledAttributes(attributeSet, XnFJ5_9.MenuGroup);
            this.f843KQgRr5e_0 = obtainStyledAttributes.getResourceId(XnFJ5_9.MenuGroup_android_id, 0);
            this.f857QxJ9d_1 = obtainStyledAttributes.getInt(XnFJ5_9.MenuGroup_android_menuCategory, 0);
            this.PGPF6hQ_2 = obtainStyledAttributes.getInt(XnFJ5_9.MenuGroup_android_orderInCategory, 0);
            this.f3193Mqv2r_3 = obtainStyledAttributes.getInt(XnFJ5_9.MenuGroup_android_checkableBehavior, 0);
            this.f851KQgRr5e_0 = obtainStyledAttributes.getBoolean(XnFJ5_9.MenuGroup_android_visible, true);
            this.f860QxJ9d_1 = obtainStyledAttributes.getBoolean(XnFJ5_9.MenuGroup_android_enabled, true);
            obtainStyledAttributes.recycle();
        }

        public void QxJ9d_1() {
            this.f843KQgRr5e_0 = 0;
            this.f857QxJ9d_1 = 0;
            this.PGPF6hQ_2 = 0;
            this.f3193Mqv2r_3 = 0;
            this.f851KQgRr5e_0 = true;
            this.f860QxJ9d_1 = true;
        }

        public void QxJ9d_1(AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = IMuAHx_6.this.f836KQgRr5e_0.obtainStyledAttributes(attributeSet, XnFJ5_9.MenuItem);
            this.f3195X6FRs_4 = obtainStyledAttributes.getResourceId(XnFJ5_9.MenuItem_android_id, 0);
            this.f3190IFxWkV_5 = (obtainStyledAttributes.getInt(XnFJ5_9.MenuItem_android_menuCategory, this.f857QxJ9d_1) & (-65536)) | (obtainStyledAttributes.getInt(XnFJ5_9.MenuItem_android_orderInCategory, this.PGPF6hQ_2) & 65535);
            this.f849KQgRr5e_0 = obtainStyledAttributes.getText(XnFJ5_9.MenuItem_android_title);
            this.f858QxJ9d_1 = obtainStyledAttributes.getText(XnFJ5_9.MenuItem_android_titleCondensed);
            this.f3191IMuAHx_6 = obtainStyledAttributes.getResourceId(XnFJ5_9.MenuItem_android_icon, 0);
            this.KQgRr5e_0 = KQgRr5e_0(obtainStyledAttributes.getString(XnFJ5_9.MenuItem_android_alphabeticShortcut));
            this.f3189FSaI4_7 = obtainStyledAttributes.getInt(XnFJ5_9.MenuItem_alphabeticModifiers, RecyclerView.WGk6X_27.FLAG_APPEARED_IN_PRE_LAYOUT);
            this.QxJ9d_1 = KQgRr5e_0(obtainStyledAttributes.getString(XnFJ5_9.MenuItem_android_numericShortcut));
            this.f3196Xgtqvk_8 = obtainStyledAttributes.getInt(XnFJ5_9.MenuItem_numericModifiers, RecyclerView.WGk6X_27.FLAG_APPEARED_IN_PRE_LAYOUT);
            if (obtainStyledAttributes.hasValue(XnFJ5_9.MenuItem_android_checkable)) {
                this.f3197XnFJ5_9 = obtainStyledAttributes.getBoolean(XnFJ5_9.MenuItem_android_checkable, false) ? 1 : 0;
            } else {
                this.f3197XnFJ5_9 = this.f3193Mqv2r_3;
            }
            this.f853Mqv2r_3 = obtainStyledAttributes.getBoolean(XnFJ5_9.MenuItem_android_checked, false);
            this.f861X6FRs_4 = obtainStyledAttributes.getBoolean(XnFJ5_9.MenuItem_android_visible, this.f851KQgRr5e_0);
            this.f842IFxWkV_5 = obtainStyledAttributes.getBoolean(XnFJ5_9.MenuItem_android_enabled, this.f860QxJ9d_1);
            this.f3194Nm6q_10 = obtainStyledAttributes.getInt(XnFJ5_9.MenuItem_showAsAction, -1);
            this.f855PGPF6hQ_2 = obtainStyledAttributes.getString(XnFJ5_9.MenuItem_android_onClick);
            this.f3192KNBe_11 = obtainStyledAttributes.getResourceId(XnFJ5_9.MenuItem_actionLayout, 0);
            this.f850KQgRr5e_0 = obtainStyledAttributes.getString(XnFJ5_9.MenuItem_actionViewClass);
            String string = obtainStyledAttributes.getString(XnFJ5_9.MenuItem_actionProviderClass);
            this.f859QxJ9d_1 = string;
            boolean z = string != null;
            if (z && this.f3192KNBe_11 == 0 && this.f850KQgRr5e_0 == null) {
                this.f844KQgRr5e_0 = (X6FRs_4.IMuAHx_6.EuDEkJe_12.QxJ9d_1) KQgRr5e_0(this.f859QxJ9d_1, IMuAHx_6.QxJ9d_1, IMuAHx_6.this.f839QxJ9d_1);
            } else {
                if (z) {
                    Log.w("SupportMenuInflater", "Ignoring attribute 'actionProviderClass'. Action view already specified.");
                }
                this.f844KQgRr5e_0 = null;
            }
            this.f854PGPF6hQ_2 = obtainStyledAttributes.getText(XnFJ5_9.MenuItem_contentDescription);
            this.f852Mqv2r_3 = obtainStyledAttributes.getText(XnFJ5_9.MenuItem_tooltipText);
            if (obtainStyledAttributes.hasValue(XnFJ5_9.MenuItem_iconTintMode)) {
                this.f847KQgRr5e_0 = YghfZG_14.KQgRr5e_0(obtainStyledAttributes.getInt(XnFJ5_9.MenuItem_iconTintMode, -1), this.f847KQgRr5e_0);
            } else {
                this.f847KQgRr5e_0 = null;
            }
            if (obtainStyledAttributes.hasValue(XnFJ5_9.MenuItem_iconTint)) {
                this.f846KQgRr5e_0 = obtainStyledAttributes.getColorStateList(XnFJ5_9.MenuItem_iconTint);
            } else {
                this.f846KQgRr5e_0 = null;
            }
            obtainStyledAttributes.recycle();
            this.f856PGPF6hQ_2 = false;
        }

        public final char KQgRr5e_0(String str) {
            if (str == null) {
                return (char) 0;
            }
            return str.charAt(0);
        }

        public final void KQgRr5e_0(MenuItem menuItem) {
            boolean z = false;
            menuItem.setChecked(this.f853Mqv2r_3).setVisible(this.f861X6FRs_4).setEnabled(this.f842IFxWkV_5).setCheckable(this.f3197XnFJ5_9 >= 1).setTitleCondensed(this.f858QxJ9d_1).setIcon(this.f3191IMuAHx_6);
            int i = this.f3194Nm6q_10;
            if (i >= 0) {
                menuItem.setShowAsAction(i);
            }
            if (this.f855PGPF6hQ_2 != null) {
                if (!IMuAHx_6.this.f836KQgRr5e_0.isRestricted()) {
                    menuItem.setOnMenuItemClickListener(new KQgRr5e_0(IMuAHx_6.this.KQgRr5e_0(), this.f855PGPF6hQ_2));
                } else {
                    throw new IllegalStateException("The android:onClick attribute cannot be used within a restricted context");
                }
            }
            boolean z2 = menuItem instanceof X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.XnFJ5_9;
            if (z2) {
                X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.XnFJ5_9 xnFJ5_9 = (X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.XnFJ5_9) menuItem;
            }
            if (this.f3197XnFJ5_9 >= 2) {
                if (z2) {
                    ((X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.XnFJ5_9) menuItem).PGPF6hQ_2(true);
                } else if (menuItem instanceof Nm6q_10) {
                    ((Nm6q_10) menuItem).KQgRr5e_0(true);
                }
            }
            String str = this.f850KQgRr5e_0;
            if (str != null) {
                menuItem.setActionView((View) KQgRr5e_0(str, IMuAHx_6.KQgRr5e_0, IMuAHx_6.this.f838KQgRr5e_0));
                z = true;
            }
            int i2 = this.f3192KNBe_11;
            if (i2 > 0) {
                if (!z) {
                    menuItem.setActionView(i2);
                } else {
                    Log.w("SupportMenuInflater", "Ignoring attribute 'itemActionViewLayout'. Action view already specified.");
                }
            }
            X6FRs_4.IMuAHx_6.EuDEkJe_12.QxJ9d_1 qxJ9d_1 = this.f844KQgRr5e_0;
            if (qxJ9d_1 != null) {
                X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.KQgRr5e_0(menuItem, qxJ9d_1);
            }
            X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.KQgRr5e_0(menuItem, this.f854PGPF6hQ_2);
            X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.QxJ9d_1(menuItem, this.f852Mqv2r_3);
            X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.KQgRr5e_0(menuItem, this.KQgRr5e_0, this.f3189FSaI4_7);
            X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.QxJ9d_1(menuItem, this.QxJ9d_1, this.f3196Xgtqvk_8);
            PorterDuff.Mode mode = this.f847KQgRr5e_0;
            if (mode != null) {
                X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.KQgRr5e_0(menuItem, mode);
            }
            ColorStateList colorStateList = this.f846KQgRr5e_0;
            if (colorStateList != null) {
                X6FRs_4.IMuAHx_6.EuDEkJe_12.IMuAHx_6.KQgRr5e_0(menuItem, colorStateList);
            }
        }

        /* renamed from: KQgRr5e_0  reason: collision with other method in class */
        public void m458KQgRr5e_0() {
            this.f856PGPF6hQ_2 = true;
            KQgRr5e_0(this.f848KQgRr5e_0.add(this.f843KQgRr5e_0, this.f3195X6FRs_4, this.f3190IFxWkV_5, this.f849KQgRr5e_0));
        }

        public SubMenu KQgRr5e_0() {
            this.f856PGPF6hQ_2 = true;
            SubMenu addSubMenu = this.f848KQgRr5e_0.addSubMenu(this.f843KQgRr5e_0, this.f3195X6FRs_4, this.f3190IFxWkV_5, this.f849KQgRr5e_0);
            KQgRr5e_0(addSubMenu.getItem());
            return addSubMenu;
        }

        /* renamed from: KQgRr5e_0  reason: collision with other method in class */
        public boolean m459KQgRr5e_0() {
            return this.f856PGPF6hQ_2;
        }

        public final <T> T KQgRr5e_0(String str, Class<?>[] clsArr, Object[] objArr) {
            try {
                Constructor<?> constructor = IMuAHx_6.this.f836KQgRr5e_0.getClassLoader().loadClass(str).getConstructor(clsArr);
                constructor.setAccessible(true);
                return (T) constructor.newInstance(objArr);
            } catch (Exception e) {
                Log.w("SupportMenuInflater", "Cannot instantiate class: " + str, e);
                return null;
            }
        }
    }

    public Object KQgRr5e_0() {
        if (this.f837KQgRr5e_0 == null) {
            this.f837KQgRr5e_0 = KQgRr5e_0(this.f836KQgRr5e_0);
        }
        return this.f837KQgRr5e_0;
    }

    public final Object KQgRr5e_0(Object obj) {
        return (!(obj instanceof Activity) && (obj instanceof ContextWrapper)) ? KQgRr5e_0(((ContextWrapper) obj).getBaseContext()) : obj;
    }
}
