// // CCMenuItemToggler::create from 0x576a14 to 0x576b18 (260 bytes) // // 40 xrefs: // > GameToolbox::createToggleButton @ 0x580034 // > LevelCell::loadFromLevel @ 0x612778 // > GJRequestCell::loadFromScore @ 0x61c660 // > GJMessageCell::loadFromMessage @ 0x61d398 // > EditorUI::setupCreateMenu @ 0x6b34a8 // > PauseLayer::createToggleButton @ 0x6c6d74 // > MoreSearchLayer::createToggleButton @ 0x6d394c // > ShareLevelSettingsLayer::init @ 0x6e5f3c // > ShareLevelSettingsLayer::init @ 0x6e6180 // > LevelBrowserLayer::init @ 0x6ebc5c // > ColorSelectPopup::init @ 0x73f0e0 // > GJGarageLayer::setupIconSelect @ 0x7983dc // > GJGarageLayer::setupIconSelect @ 0x798454 // > GJGarageLayer::setupIconSelect @ 0x7984c8 // > GJGarageLayer::setupIconSelect @ 0x79853c // > GJGarageLayer::setupIconSelect @ 0x7985b0 // > GJGarageLayer::setupIconSelect @ 0x798624 // > GJGarageLayer::setupIconSelect @ 0x798698 // > GJGarageLayer::setupIconSelect @ 0x79870c // > GJGarageLayer::setupIconSelect @ 0x798780 // > GJGarageLayer::setupIconSelect @ 0x7987f4 // > GJGarageLayer::setupIconSelect @ 0x79886c // > OptionsLayer::createToggleButton @ 0x7c9678 // > VideoOptionsLayer::createToggleButton @ 0x7cca00 // > SupportLayer::createToggleButton @ 0x7dd0c4 // > ShareCommentLayer::init @ 0x7e736c // > LeaderboardsLayer::setupTabs @ 0x81de0c // > LeaderboardsLayer::setupTabs @ 0x81deb8 // > LeaderboardsLayer::setupTabs @ 0x81df5c // > LeaderboardsLayer::setupTabs @ 0x81e000 // > CustomizeObjectLayer::createToggleButton @ 0x8404fc // > AccountLayer::createToggleButton @ 0x84afec // > GJAccountSettingsLayer::createToggleButton @ 0x8c9fb8 // > MessagesProfilePage::init @ 0x8f3690 // > FRequestProfilePage::init @ 0x8f5eec // > CollisionBlockPopup::createToggleButton @ 0x90932c // > ColorSelectLiveOverlay::createToggleButton @ 0x90a99c // > CharacterColorPage::init @ 0xa25e84 // > LevelSettingsLayer::createToggleButton @ 0xa35398 // > @ 0x73cf8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // CCMenuItemToggler *CCMenuItemToggler::create( cocos2d::CCNode *a1, cocos2d::CCNode *a2, cocos2d::CCObject *a3, cocos2d::SEL_MenuHandler a4) { void (__cdecl *ptr)(cocos2d::CCObject *); // x20 size_t adj; // x21 __int64 v9; // x19 cocos2d::SEL_MenuHandler v11; // 0:x4.16 ptr = a4.ptr; adj = a4.adj; v9 = operator new(0x190u); cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v9); *(_BYTE *)(v9 + 338) = 0; *(_BYTE *)(v9 + 339) = 0; *(_QWORD *)(v9 + 344) = 0; *(_QWORD *)(v9 + 352) = 0; *(_QWORD *)(v9 + 360) = 0; v11.ptr = ptr; *(_DWORD *)(v9 + 368) = 0; v11.adj = adj; *(_DWORD *)(v9 + 372) = 0; *(_QWORD *)(v9 + 376) = 0; *(_QWORD *)(v9 + 384) = 0; *(_QWORD *)v9 = &off_1138E90; *(_QWORD *)(v9 + 320) = &off_11392C0; *(_BYTE *)(v9 + 392) = 0; *(_BYTE *)(v9 + 393) = 0; if ( CCMenuItemToggler::init((CCMenuItemToggler *)v9, a1, a2, a3, v11) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9); return (CCMenuItemToggler *)v9; } else { (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 16LL))(v9); return nullptr; } }