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