//
// CCMenuItemToggler::create from 0x6922dc to 0x6923e0 (260 bytes)
//
// 52 xrefs:
// > GameToolbox::createNotifyToggles @ 0x69c0a0
// > GameToolbox::createNotifyToggles @ 0x69c428
// > GameToolbox::createToggleButton @ 0x69c6f0
// > GJThreadCell::loadFromThread @ 0x73eb08
// > GJMessageCell::loadFromMessage @ 0x73fb18
// > GJRequestCell::loadFromScore @ 0x745560
// > LevelCell::loadFromLevel @ 0x748438
// > CommentCell::loadFromComment @ 0x74c728
// > PauseLayer::createToggleButton @ 0x7d5998
// > MoreSearchLayer::createToggleButton @ 0x7df418
// > ShareLevelSettingsLayer::init @ 0x7f302c
// > ShareLevelSettingsLayer::init @ 0x7f3280
// > ColorSelectPopup::init @ 0x865c90
// > GJGarageLayer::setupIconSelect @ 0x8c0fc8
// > GJGarageLayer::setupIconSelect @ 0x8c1050
// > GJGarageLayer::setupIconSelect @ 0x8c10d4
// > GJGarageLayer::setupIconSelect @ 0x8c1158
// > GJGarageLayer::setupIconSelect @ 0x8c11dc
// > GJGarageLayer::setupIconSelect @ 0x8c1260
// > GJGarageLayer::setupIconSelect @ 0x8c12e4
// > GJGarageLayer::setupIconSelect @ 0x8c1368
// > GJGarageLayer::setupIconSelect @ 0x8c13ec
// > GJGarageLayer::setupIconSelect @ 0x8c1470
// > GJGarageLayer::setupIconSelect @ 0x8c14f4
// > OptionsLayer::createToggleButton @ 0x8ee73c
// > VideoOptionsLayer::createToggleButton @ 0x8ef5f0
// > ParentalOptionsLayer::init @ 0x8f6e74
// > SupportLayer::createToggleButton @ 0x90160c
// > ShareCommentLayer::init @ 0x90f700
// > LeaderboardsLayer::setupTabs @ 0x94ee20
// > LeaderboardsLayer::setupTabs @ 0x94eed8
// > LeaderboardsLayer::setupTabs @ 0x94ef88
// > LeaderboardsLayer::setupTabs @ 0x94f038
// > CustomizeObjectLayer::createToggleButton @ 0x982f54
// > AccountLayer::createToggleButton @ 0x98c748
// > GJAccountSettingsLayer::createToggleButton @ 0xa1fc80
// > ColorSelectLiveOverlay::createToggleButton @ 0xa650dc
// > CharacterColorPage::init @ 0xb52a80
// > LevelSettingsLayer::createToggleButton @ 0xb6257c
// > EditorUI::setupCreateMenu @ 0xbfe434
// > AccountReviewPopup::buildFilterRows @ 0xc472ec
// > AccountReviewPopup::buildReportedRows @ 0xc4d538
// > AutoBackupPopup::buildRows @ 0xc57e6c
// > LevelPickerPopup::init @ 0xc6a764
// > DeathMarkerSettingsPopup::init @ 0xca6c7c
// > DeathTrackerOptionsPopup::init @ 0xca8eb0
// > KeybindCapturePopup::init @ 0xcf7690
// > PlatformerControlsPopup::init @ 0xcfaee4
// > PlatformerControlsPopup::init @ 0xcfb534
// > ReportPopup::buildReasonRows @ 0xcfeb84
// > TimeSpeedControl::init @ 0xd03e0c
// > ??> @ 0x9b6f8
//
// This function is hookable on this platform (idp: arm, 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:50:36 +0000
//
__int64 __fastcall CCMenuItemToggler::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 v10; // x19
v10 = operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v10);
*(_BYTE *)(v10 + 338) = 0;
*(_BYTE *)(v10 + 339) = 0;
*(_QWORD *)(v10 + 344) = 0;
*(_QWORD *)(v10 + 352) = 0;
*(_QWORD *)(v10 + 360) = 0;
*(_DWORD *)(v10 + 368) = 0;
*(_DWORD *)(v10 + 372) = 0;
*(_QWORD *)(v10 + 376) = 0;
*(_QWORD *)(v10 + 384) = 0;
*(_QWORD *)v10 = &off_1416CD0;
*(_QWORD *)(v10 + 320) = &off_1417110;
*(_BYTE *)(v10 + 392) = 0;
*(_BYTE *)(v10 + 393) = 0;
if ( (unsigned __int8)CCMenuItemToggler::init((CCMenuItemToggler *)v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
return v10;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 16LL))(v10);
return 0;
}
}