private boolean onKeyUpPanel(int p4, android.view.KeyEvent p5)
    {
        if (this.mActionMode == null) {
            boolean v0_1 = 1;
            androidx.appcompat.app.AppCompatDelegateImpl$PanelFeatureState v2 = this.getPanelState(p4, 1);
            if (p4 != null) {
                if ((!v2.isOpen) && (!v2.isHandled)) {
                    if (!v2.isPrepared) {
                        v0_1 = 0;
                    } else {
                        androidx.appcompat.widget.DecorContentParent v4_9;
                        if (!v2.refreshMenuContent) {
                            v4_9 = 1;
                        } else {
                            v2.isPrepared = 0;
                            v4_9 = this.preparePanel(v2, p5);
                        }
                        if (v4_9 == null) {
                        } else {
                            this.openPanel(v2, p5);
                        }
                    }
                } else {
                    androidx.appcompat.widget.DecorContentParent v4_10 = v2.isOpen;
                    this.closePanel(v2, 1);
                    v0_1 = v4_10;
                }
            } else {
                androidx.appcompat.widget.DecorContentParent v4_22 = this.mDecorContentParent;
                if ((v4_22 == null) || ((!v4_22.canShowOverflowMenu()) || (android.view.ViewConfiguration.get(this.mContext).hasPermanentMenuKey()))) {
                } else {
                    if (this.mDecorContentParent.isOverflowMenuShowing()) {
                        v0_1 = this.mDecorContentParent.hideOverflowMenu();
                    } else {
                        if ((this.mIsDestroyed) || (!this.preparePanel(v2, p5))) {
                        } else {
                            v0_1 = this.mDecorContentParent.showOverflowMenu();
                        }
                    }
                }
            }
            if (v0_1) {
                androidx.appcompat.widget.DecorContentParent v4_20 = ((android.media.AudioManager) this.mContext.getApplicationContext().getSystemService(audio));
                if (v4_20 == null) {
                    android.util.Log.w(AppCompatDelegate, Couldn't get audio manager);
                } else {
                    v4_20.playSoundEffect(0);
                }
            }
            return v0_1;
        } else {
            return 0;
        }
    }