{"type": "func", "start": 5727832, "end": 5727856, "name": "CCMenuItemToggler::activeItem", "pseudocode": "// \n// CCMenuItemToggler::activeItem from 0x576658 to 0x576670 (24 bytes)\n// \n// 8 xrefs:\n// > CCMenuItemToggler::selected @ 0x576688\n// > CCMenuItemToggler::activate @ 0x5766bc\n// > CCMenuItemToggler::unselected @ 0x5766f0\n// > CCMenuItemToggler::toggle @ 0x576778\n// > SongInfoLayer::init @ 0x7df854\n// > SongInfoLayer::init @ 0x7df878\n// > GameOptionsLayer::setupOptions @ 0x8dc318\n// > <???> @ 0xa5e58\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nCCMenuItemSpriteExtra *CCMenuItemToggler::activeItem(CCMenuItemToggler *a1)\n{\n  _BOOL4 m_toggled; // w2\n  CCMenuItemSpriteExtra *m_offButton; // x1\n  CCMenuItemSpriteExtra *result; // x0\n\n  m_toggled = a1->m_toggled;\n  m_offButton = a1->m_offButton;\n  result = a1->m_onButton;\n  if ( !m_toggled )\n    return m_offButton;\n  return result;\n}", "assembly": "; \n; CCMenuItemToggler::activeItem from 0x576658 to 0x576670 (24 bytes)\n; \n; 8 xrefs:\n; > CCMenuItemToggler::selected @ 0x576688\n; > CCMenuItemToggler::activate @ 0x5766bc\n; > CCMenuItemToggler::unselected @ 0x5766f0\n; > CCMenuItemToggler::toggle @ 0x576778\n; > SongInfoLayer::init @ 0x7df854\n; > SongInfoLayer::init @ 0x7df878\n; > GameOptionsLayer::setupOptions @ 0x8dc318\n; > <???> @ 0xa5e58\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDRB            W2, [X0,#0x188]                                        ; +0x0, 0x576658\nLDR             X1, [X0,#0x178]                                        ; +0x4, 0x57665c\nLDR             X0, [X0,#0x180]                                        ; +0x8, 0x576660\nCMP             W2, WZR                                                ; +0xc, 0x576664\nCSEL            X0, X0, X1, NE                                         ; +0x10, 0x576668\nRET                                                                    ; +0x14, 0x57666c", "xrefs": ["CCMenuItemToggler::selected @ 0x576688", "CCMenuItemToggler::activate @ 0x5766bc", "CCMenuItemToggler::unselected @ 0x5766f0", "CCMenuItemToggler::toggle @ 0x576778", "SongInfoLayer::init @ 0x7df854", "SongInfoLayer::init @ 0x7df878", "GameOptionsLayer::setupOptions @ 0x8dc318", "<???> @ 0xa5e58"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}