//
// CCMenuItemToggler::create from 0x10001e9d0 to 0x10001ea88 (184 bytes)
//
// 52 xrefs:
// > AccountLayer::createToggleButton @ 0x10009b412
// > CustomizeObjectLayer::createToggleButton @ 0x1001db302
// > LevelCell::loadFromLevel @ 0x10022a4a0
// > CommentCell::loadFromComment @ 0x10022f1ee
// > GJRequestCell::loadFromScore @ 0x100232018
// > GJMessageCell::loadFromMessage @ 0x10023281e
// > GJThreadCell::loadFromThread @ 0x1002338f6
// > LevelSettingsLayer::createToggleButton @ 0x1002583d1
// > ShareLevelSettingsLayer::init @ 0x10026f5dd
// > ShareLevelSettingsLayer::init @ 0x10026f859
// > GJAccountSettingsLayer::createToggleButton @ 0x10028be0b
// > GJGarageLayer::setupIconSelect @ 0x100354a2e
// > GJGarageLayer::setupIconSelect @ 0x100354a99
// > GJGarageLayer::setupIconSelect @ 0x100354b07
// > GJGarageLayer::setupIconSelect @ 0x100354b75
// > GJGarageLayer::setupIconSelect @ 0x100354be3
// > GJGarageLayer::setupIconSelect @ 0x100354c51
// > GJGarageLayer::setupIconSelect @ 0x100354cbf
// > GJGarageLayer::setupIconSelect @ 0x100354d2d
// > GJGarageLayer::setupIconSelect @ 0x100354d9b
// > GJGarageLayer::setupIconSelect @ 0x100354e09
// > GJGarageLayer::setupIconSelect @ 0x100354e77
// > SupportLayer::createToggleButton @ 0x100383de2
// > PauseLayer::createToggleButton @ 0x1003c23d1
// > sub_1004EAD20 @ 0x1004eafb2
// > GameToolbox::createToggleButton @ 0x1004eb633
// > LeaderboardsLayer::setupTabs @ 0x100513f75
// > LeaderboardsLayer::setupTabs @ 0x100514031
// > LeaderboardsLayer::setupTabs @ 0x1005140ed
// > LeaderboardsLayer::setupTabs @ 0x1005141a4
// > ColorSelectLiveOverlay::createToggleButton @ 0x1005970a1
// > KeybindCapturePopup::init @ 0x1005b428f
// > EditorUI::setupCreateMenu @ 0x100637a79
// > ShareCommentLayer::init @ 0x1006b1857
// > sub_10070B210 @ 0x10070b292
// > CharacterColorPage::init @ 0x10073cc1f
// > ColorSelectPopup::init @ 0x100804db3
// > sub_10087B920 @ 0x10087b9a2
// > VideoOptionsLayer::createToggleButton @ 0x1008810c5
// > ParentalOptionsLayer::init @ 0x1008847e3
// > DeathMarkerSettingsPopup::init @ 0x1008c75e4
// > sub_1008CA190 @ 0x1008ca383
// > sub_10093E4A0 @ 0x10093ed21
// > PlatformerControlsPopup::init @ 0x10095d818
// > PlatformerControlsPopup::init @ 0x10095dc93
// > PlatformerControlsPopup::init @ 0x10095dd83
// > PlatformerControlsPopup::init @ 0x10095de6b
// > sub_1009645C0 @ 0x100964784
// > TimeSpeedControl::init @ 0x100977aab
// > sub_10097E2F0 @ 0x10097e955
// > AccountReviewPopup::buildReportedRows @ 0x10099c062
// > AccountReviewPopup::buildFilterRows @ 0x10099dc19
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:18:57 +0000
//
char *__fastcall CCMenuItemToggler::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
char *v7; // rbx
v7 = (char *)operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA(v7);
*((_WORD *)v7 + 169) = 0;
*(_OWORD *)(v7 + 344) = 0;
*(_OWORD *)(v7 + 360) = 0;
*(_QWORD *)v7 = off_100AB65C8;
*((_QWORD *)v7 + 40) = off_100AB6A08;
*(_OWORD *)(v7 + 376) = 0;
*((_WORD *)v7 + 196) = 0;
if ( (unsigned __int8)CCMenuItemToggler::init(v7, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return v7;
}