//
// CCMenuItemToggler::create from 0x3c6e68 to 0x3c6f08 (160 bytes)
//
// 50 xrefs:
// > GameToolbox::createNotifyToggles @ 0x3ccf7e
// > GameToolbox::createToggleButton @ 0x3cd310
// > GJThreadCell::loadFromThread @ 0x42b686
// > GJMessageCell::loadFromMessage @ 0x42c064
// > GJRequestCell::loadFromScore @ 0x42e9be
// > LevelCell::loadFromLevel @ 0x430ae6
// > CommentCell::loadFromComment @ 0x433dea
// > PauseLayer::createToggleButton @ 0x48efe6
// > MoreSearchLayer::createToggleButton @ 0x49578a
// > ShareLevelSettingsLayer::init @ 0x4a2fec
// > ShareLevelSettingsLayer::init @ 0x4a31f4
// > ColorSelectPopup::init @ 0x4e07c0
// > GJGarageLayer::setupIconSelect @ 0x50f84a
// > GJGarageLayer::setupIconSelect @ 0x50f89a
// > GJGarageLayer::setupIconSelect @ 0x50f8ea
// > GJGarageLayer::setupIconSelect @ 0x50f93a
// > GJGarageLayer::setupIconSelect @ 0x50f98a
// > GJGarageLayer::setupIconSelect @ 0x50f9da
// > GJGarageLayer::setupIconSelect @ 0x50fa2a
// > GJGarageLayer::setupIconSelect @ 0x50fada
// > GJGarageLayer::setupIconSelect @ 0x50fb2a
// > GJGarageLayer::setupIconSelect @ 0x50fb7a
// > GJGarageLayer::setupIconSelect @ 0x50fbca
// > OptionsLayer::createToggleButton @ 0x52cb6e
// > VideoOptionsLayer::createToggleButton @ 0x52d338
// > ParentalOptionsLayer::init @ 0x5324be
// > SupportLayer::createToggleButton @ 0x539522
// > ShareCommentLayer::init @ 0x541884
// > LeaderboardsLayer::setupTabs @ 0x563666
// > LeaderboardsLayer::setupTabs @ 0x5636f4
// > LeaderboardsLayer::setupTabs @ 0x563782
// > LeaderboardsLayer::setupTabs @ 0x563810
// > CustomizeObjectLayer::createToggleButton @ 0x57e22e
// > AccountLayer::createToggleButton @ 0x583d1c
// > GJAccountSettingsLayer::createToggleButton @ 0x5d48ea
// > ColorSelectLiveOverlay::createToggleButton @ 0x601392
// > CharacterColorPage::init @ 0x69dcca
// > LevelSettingsLayer::createToggleButton @ 0x6a92d0
// > EditorUI::setupCreateMenu @ 0x70c140
// > AccountReviewPopup::buildFilterRows @ 0x7369aa
// > AccountReviewPopup::buildReportedRows @ 0x739872
// > AutoBackupPopup::buildRows @ 0x73efee
// > LevelPickerPopup::init @ 0x74abd4
// > DeathMarkerSettingsPopup::init @ 0x76ea4a
// > DeathTrackerOptionsPopup::init @ 0x770196
// > KeybindCapturePopup::init @ 0x79aca0
// > PlatformerControlsPopup::init @ 0x79d252
// > PlatformerControlsPopup::init @ 0x79d5d0
// > ReportPopup::buildReasonRows @ 0x79f820
// > TimeSpeedControl::init @ 0x7a2562
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:34 +0000
//
cocos2d::CCNodeRGBA *__fastcall CCMenuItemToggler::create(int a1, int a2, int a3, int a4, int a5)
{
cocos2d::CCNodeRGBA *v8; // r4
int v9; // r3
int *v10; // r0
int varg_r3; // [sp+24h] [bp+18h]
v8 = (cocos2d::CCNodeRGBA *)operator new(0x138u);
cocos2d::CCNodeRGBA::CCNodeRGBA(v8);
*((_DWORD *)v8 + 74) = 0;
*((_BYTE *)v8 + 278) = 0;
*((_BYTE *)v8 + 279) = 0;
*((_DWORD *)v8 + 70) = 0;
*((_DWORD *)v8 + 71) = 0;
*((_DWORD *)v8 + 72) = 0;
*((_DWORD *)v8 + 73) = 0;
*((_DWORD *)v8 + 75) = 0;
*((_DWORD *)v8 + 76) = 0;
*((_BYTE *)v8 + 308) = 0;
*((_BYTE *)v8 + 309) = 0;
*(_DWORD *)v8 = &off_C850A8;
*((_DWORD *)v8 + 66) = &off_C852C8;
if ( CCMenuItemToggler::init(v8, a1, a2, a3, varg_r3, a5) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
v9 = *(_DWORD *)v8;
v10 = (int *)v8;
v8 = nullptr;
(*(void (__fastcall **)(int *))(v9 + 8))(v10);
}
return v8;
}