// // CCMenuItemToggler::toggle from 0x691fd4 to 0x6920e4 (272 bytes) // // 117 xrefs: // > CCMenuItemToggler::init @ 0x6922a4 // > CCMenuItemToggler::setSizeMult @ 0x692420 // > CCMenuItemToggler::normalTouch @ 0x692434 // > CCMenuItemToggler::selectedTouch @ 0x692444 // > GameToolbox::NotifyToggleSet::setState @ 0x69c4f4 // > GameToolbox::NotifyToggleSet::setState @ 0x69c504 // > GameToolbox::createToggleButton @ 0x69c700 // > GJThreadCell::onToggleSelect @ 0x734f20 // > CommentCell::onBulkSelectToggle @ 0x73501c // > LevelCell::updateToggle @ 0x737368 // > CommentCell::updateBulkToggle @ 0x738da0 // > GJRequestCell::updateToggle @ 0x739a4c // > GJMessageCell::updateToggle @ 0x73a2b4 // > GJThreadCell::loadFromThread @ 0x73eb18 // > GJMessageCell::loadFromMessage @ 0x73fb28 // > GJRequestCell::loadFromScore @ 0x745570 // > LevelCell::loadFromLevel @ 0x748444 // > CommentCell::loadFromComment @ 0x74c738 // > EditorUI::selectBuildTab @ 0x7c2be8 // > PauseLayer::createToggleButton @ 0x7d59a4 // > MoreSearchLayer::createToggleButton @ 0x7df424 // > ShareLevelSettingsLayer::updateSettingsState @ 0x7f27a8 // > ShareLevelSettingsLayer::init @ 0x7f3040 // > ShareLevelSettingsLayer::init @ 0x7f3290 // > ColorSelectPopup::onPlayerColor1 @ 0x8626b4 // > ColorSelectPopup::onPlayerColor2 @ 0x862760 // > ColorSelectPopup::init @ 0x865ca0 // > GJGarageLayer::selectTab @ 0x8c0d10 // > OptionsLayer::createToggleButton @ 0x8ee748 // > VideoOptionsLayer::createToggleButton @ 0x8ef600 // > ParentalOptionsLayer::updateToggleStates @ 0x8f0160 // > ParentalOptionsLayer::updateToggleStates @ 0x8f0170 // > ParentalOptionsLayer::init @ 0x8f6e98 // > SupportLayer::createToggleButton @ 0x901618 // > LeaderboardsLayer::toggleTabButtons @ 0x94e370 // > LeaderboardsLayer::toggleTabButtons @ 0x94e384 // > LeaderboardsLayer::toggleTabButtons @ 0x94e398 // > LeaderboardsLayer::toggleTabButtons @ 0x94e3ac // > LeaderboardsLayer::setupTabs @ 0x94ee2c // > LeaderboardsLayer::setupTabs @ 0x94eee4 // > LeaderboardsLayer::setupTabs @ 0x94ef94 // > LeaderboardsLayer::setupTabs @ 0x94f044 // > CustomizeObjectLayer::createToggleButton @ 0x982f60 // > AccountLayer::createToggleButton @ 0x98c754 // > GJAccountSettingsLayer::onMessageSetting @ 0xa1d03c // > GJAccountSettingsLayer::onFriendRequests @ 0xa1d0dc // > GJAccountSettingsLayer::onCommentSetting @ 0xa1d17c // > GJAccountSettingsLayer::onGroupFriends @ 0xa1d244 // > SetupEnterTriggerPopup::onEnterType @ 0xa1d2e0 // > SetupEnterTriggerPopup::onEnterType @ 0xa1d2f4 // > GJAccountSettingsLayer::createToggleButton @ 0xa1fc8c // > GameLevelOptionsLayer::toggleLDM @ 0xa21580 // > GameLevelOptionsLayer::didToggle @ 0xa2613c // > GameLevelOptionsLayer::didToggle @ 0xa26158 // > SetupPulsePopup::onGroupMainOnly @ 0xa45088 // > SetupPulsePopup::onGroupSecondaryOnly @ 0xa450e4 // > ColorSelectLiveOverlay::createToggleButton @ 0xa650e8 // > SetupInstantCountPopup::onCountType @ 0xa9e5d4 // > SetupInstantCountPopup::onCountType @ 0xa9e5e8 // > SetupInstantCountPopup::onCountType @ 0xa9e5fc // > SetupTouchTogglePopup::onTouchMode @ 0xaa28e0 // > SetupTouchTogglePopup::onTouchMode @ 0xaa28fc // > SetupTouchTogglePopup::onControlMode @ 0xaa298c // > SetupTouchTogglePopup::onControlMode @ 0xaa29a8 // > SetupCameraOffsetTrigger::onTargetMode @ 0xaadef4 // > SetupCameraOffsetTrigger::onTargetMode @ 0xaadf10 // > CreateParticlePopup::onDynamicColor @ 0xafc370 // > CreateParticlePopup::onDynamicColor @ 0xafc388 // > CreateParticlePopup::onUniformColor @ 0xafe980 // > CreateParticlePopup::onUniformColor @ 0xafe994 // > CreateParticlePopup::onPosType @ 0xafea18 // > CreateParticlePopup::onPosType @ 0xafea2c // > CreateParticlePopup::onPosType @ 0xafea38 // > CreateParticlePopup::onPosType @ 0xafea4c // > CreateParticlePopup::onEmitterMode @ 0xaff04c // > CreateParticlePopup::onEmitterMode @ 0xaff05c // > SetupTriggerPopup::updateToggleItem @ 0xb1a84c // > SetupTriggerPopup::onTouchTriggered @ 0xb1bb5c // > SetupTriggerPopup::onSpawnedByTrigger @ 0xb1bba0 // > SetupTriggerPopup::updateCustomToggleTrigger @ 0xb1bfe8 // > SetupCameraEdgePopup::onCameraEdge @ 0xb25274 // > SetupCameraEdgePopup::onCameraEdge @ 0xb25290 // > SetupCameraEdgePopup::onCameraEdge @ 0xb252ac // > SetupCameraEdgePopup::onCameraEdge @ 0xb252c8 // > SetupTeleportPopup::updateTeleportGravityState @ 0xb27c64 // > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0xb431dc // > SetupEnterEffectPopup::onEnterType @ 0xb43824 // > SetupEnterEffectPopup::onEnterType @ 0xb43838 // > CharacterColorPage::init @ 0xb52a9c // > LevelSettingsLayer::createToggleButton @ 0xb62588 // > LevelSettingsLayer::onSelectMode @ 0xb627b8 // > SetupKeyframePopup::updateTimeModeButtons @ 0xb69360 // > SelectEventLayer::onCustomToggleTriggerValue @ 0xb81cdc // > SelectEventLayer::onCustomToggleTriggerValue @ 0xb81d10 // > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0xb81f20 // > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0xb81f38 // > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0xb81f50 // > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0xb81f80 // > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0xb81f98 // > ShareListLayer::updateUnlistedF @ 0xbaa1e8 // > GameSettingsLayer::addToggle @ 0xc0573c // > AccountReviewPopup::applySelected @ 0xc4f330 // > AutoBackupPopup::onSelectAll @ 0xc57908 // > AutoBackupPopup::buildRows @ 0xc57e90 // > AutoBackupPopup::onToggleRow @ 0xc5931c // > LevelPickerPopup::onToggleFavorites @ 0xc84858 // > DeathMarkerSettingsPopup::init @ 0xca6ca8 // > DeathTrackerOptionsPopup::init @ 0xca8ee4 // > EditorSoundConfigUploadPopup::updateVisibilityState @ 0xcd3e50 // > KeybindCapturePopup::init @ 0xcf7a18 // > KeybindCapturePopup::keyDown @ 0xcf7f50 // > PlatformerControlsPopup::refreshUploadColumn @ 0xcfa7bc // > PlatformerControlsPopup::refreshUploadColumn @ 0xcfa848 // > PlatformerControlsPopup::syncSourceUI @ 0xcfac2c // > PlatformerControlsPopup::init @ 0xcfaf00 // > TimeSpeedControl::init @ 0xd03e18 // > @ 0x8d430 // // 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::toggle(CCMenuItemToggler *this, unsigned __int8 a2) { unsigned int v2; // w23 __int64 v4; // x2 __int64 active; // x0 const cocos2d::CCSize *v6; // x0 float v8[2]; // [xsp+48h] [xbp+48h] BYREF _BYTE v9[8]; // [xsp+50h] [xbp+50h] BYREF v2 = a2; v4 = *((_QWORD *)this + 47); *((_BYTE *)this + 392) = a2; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, a2 ^ 1u); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 48) + 344LL))(*((_QWORD *)this + 48), v2); active = CCMenuItemToggler::activeItem(this); v6 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)active + 328LL))(active); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v8, v6); (*(void (__fastcall **)(CCMenuItemToggler *, float *))(*(_QWORD *)this + 320LL))(this, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v8[0] * 0.5, v8[1] * 0.5); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 47) + 184LL))(*((_QWORD *)this + 47), v9); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 48) + 184LL))(*((_QWORD *)this + 48), v9); return _stack_chk_guard; }