private boolean onKeyUpPanel(int p5, android.view.KeyEvent p6)
    {
        if (this.mActionMode != null) {
            return 0;
        } else {
            boolean v1_6;
            String v3_1 = this.getPanelState(p5, 1);
            if ((p5 != 0) || ((this.mDecorContentParent == null) || ((!this.mDecorContentParent.canShowOverflowMenu()) || (android.support.v4.view.ViewConfigurationCompat.hasPermanentMenuKey(android.view.ViewConfiguration.get(this.mContext)))))) {
                if ((v3_1.isOpen) || (v3_1.isHandled)) {
                    v1_6 = v3_1.isOpen;
                    this.closePanel(v3_1, 1);
                } else {
                    if (!v3_1.isPrepared) {
                        v1_6 = 0;
                    } else {
                        boolean v1_11;
                        if (v3_1.refreshMenuContent) {
                            v3_1.isPrepared = 0;
                            v1_11 = this.preparePanel(v3_1, p6);
                        } else {
                            v1_11 = 1;
                        }
                        if (!v1_11) {
                        } else {
                            this.openPanel(v3_1, p6);
                            v1_6 = 1;
                        }
                    }
                }
            } else {
                boolean v0_6;
                if (!this.mDecorContentParent.isOverflowMenuShowing()) {
                    if ((this.isDestroyed()) || (!this.preparePanel(v3_1, p6))) {
                    } else {
                        v0_6 = this.mDecorContentParent.showOverflowMenu();
                    }
                } else {
                    v0_6 = this.mDecorContentParent.hideOverflowMenu();
                }
                v1_6 = v0_6;
            }
            if (v1_6) {
                boolean v0_10 = ((android.media.AudioManager) this.mContext.getSystemService(audio));
                if (v0_10) {
                    v0_10.playSoundEffect(0);
                } else {
                    android.util.Log.w(AppCompatDelegate, Couldn't get audio manager);
                }
            }
            return v1_6;
        }
    }