//
// CCMenuItemToggler::create from 0x100190eb0 to 0x100190f6c (188 bytes)
//
// 33 xrefs:
// > GameToolbox::createToggleButton @ 0x100044478
// > MoreSearchLayer::createToggleButton @ 0x10005668c
// > VideoOptionsLayer::createToggleButton @ 0x1000f0ac8
// > LevelCell::loadFromLevel @ 0x100102d08
// > GJRequestCell::loadFromScore @ 0x10010a66c
// > GJMessageCell::loadFromMessage @ 0x10010aefc
// > CharacterColorPage::init @ 0x100129488
// > LevelSettingsLayer::createToggleButton @ 0x10017b804
// > SupportLayer::createToggleButton @ 0x100192994
// > FRequestProfilePage::init @ 0x1001b6574
// > MessagesProfilePage::init @ 0x1001cc43c
// > ShareCommentLayer::init @ 0x1001d4b20
// > ShareLevelSettingsLayer::init @ 0x1002772b4
// > ShareLevelSettingsLayer::init @ 0x100277538
// > GJAccountSettingsLayer::createToggleButton @ 0x1002d6860
// > GJGarageLayer::setupIconSelect @ 0x100303b30
// > GJGarageLayer::setupIconSelect @ 0x100303bac
// > GJGarageLayer::setupIconSelect @ 0x100303c20
// > GJGarageLayer::setupIconSelect @ 0x100303c94
// > GJGarageLayer::setupIconSelect @ 0x100303d08
// > GJGarageLayer::setupIconSelect @ 0x100303d7c
// > GJGarageLayer::setupIconSelect @ 0x100303df0
// > GJGarageLayer::setupIconSelect @ 0x100303e64
// > GJGarageLayer::setupIconSelect @ 0x100303ed8
// > GJGarageLayer::setupIconSelect @ 0x100303f4c
// > GJGarageLayer::setupIconSelect @ 0x100303fc0
// > LeaderboardsLayer::setupTabs @ 0x1003b10d0
// > LeaderboardsLayer::setupTabs @ 0x1003b117c
// > LeaderboardsLayer::setupTabs @ 0x1003b1218
// > LeaderboardsLayer::setupTabs @ 0x1003b12b4
// > EditorUI::setupCreateMenu @ 0x1003e3ee8
// > LevelBrowserLayer::init @ 0x100414f74
// > ColorSelectPopup::init @ 0x10041d320
//
// 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 *__fastcall CCMenuItemToggler::create(
cocos2d::CCNode *a1,
cocos2d::CCNode *a2,
cocos2d::CCObject *a3,
cocos2d::SEL_MenuHandler a4)
{
size_t adj; // x20
void (__cdecl *ptr)(cocos2d::CCObject *); // x21
char *v9; // x19
cocos2d::SEL_MenuHandler v11; // 0:x4.16
adj = a4.adj;
ptr = a4.ptr;
v9 = (char *)operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA();
*((_WORD *)v9 + 169) = 0;
*(_OWORD *)(v9 + 344) = 0u;
*(_OWORD *)(v9 + 360) = 0u;
*(_QWORD *)v9 = &off_1007A75A8;
*((_QWORD *)v9 + 40) = off_1007A79D8;
*((_QWORD *)v9 + 47) = 0;
*((_QWORD *)v9 + 48) = 0;
*((_WORD *)v9 + 196) = 0;
v11.ptr = ptr;
v11.adj = adj;
if ( CCMenuItemToggler::init((CCMenuItemToggler *)v9, a1, a2, a3, v11) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 16LL))(v9);
return nullptr;
}
return (CCMenuItemToggler *)v9;
}