{"type": "func", "start": 6890204, "end": 6890464, "name": "CCMenuItemToggler::create", "pseudocode": "// \n// CCMenuItemToggler::create from 0x6922dc to 0x6923e0 (260 bytes)\n// \n// 52 xrefs:\n// > GameToolbox::createNotifyToggles @ 0x69c0a0\n// > GameToolbox::createNotifyToggles @ 0x69c428\n// > GameToolbox::createToggleButton @ 0x69c6f0\n// > GJThreadCell::loadFromThread @ 0x73eb08\n// > GJMessageCell::loadFromMessage @ 0x73fb18\n// > GJRequestCell::loadFromScore @ 0x745560\n// > LevelCell::loadFromLevel @ 0x748438\n// > CommentCell::loadFromComment @ 0x74c728\n// > PauseLayer::createToggleButton @ 0x7d5998\n// > MoreSearchLayer::createToggleButton @ 0x7df418\n// > ShareLevelSettingsLayer::init @ 0x7f302c\n// > ShareLevelSettingsLayer::init @ 0x7f3280\n// > ColorSelectPopup::init @ 0x865c90\n// > GJGarageLayer::setupIconSelect @ 0x8c0fc8\n// > GJGarageLayer::setupIconSelect @ 0x8c1050\n// > GJGarageLayer::setupIconSelect @ 0x8c10d4\n// > GJGarageLayer::setupIconSelect @ 0x8c1158\n// > GJGarageLayer::setupIconSelect @ 0x8c11dc\n// > GJGarageLayer::setupIconSelect @ 0x8c1260\n// > GJGarageLayer::setupIconSelect @ 0x8c12e4\n// > GJGarageLayer::setupIconSelect @ 0x8c1368\n// > GJGarageLayer::setupIconSelect @ 0x8c13ec\n// > GJGarageLayer::setupIconSelect @ 0x8c1470\n// > GJGarageLayer::setupIconSelect @ 0x8c14f4\n// > OptionsLayer::createToggleButton @ 0x8ee73c\n// > VideoOptionsLayer::createToggleButton @ 0x8ef5f0\n// > ParentalOptionsLayer::init @ 0x8f6e74\n// > SupportLayer::createToggleButton @ 0x90160c\n// > ShareCommentLayer::init @ 0x90f700\n// > LeaderboardsLayer::setupTabs @ 0x94ee20\n// > LeaderboardsLayer::setupTabs @ 0x94eed8\n// > LeaderboardsLayer::setupTabs @ 0x94ef88\n// > LeaderboardsLayer::setupTabs @ 0x94f038\n// > CustomizeObjectLayer::createToggleButton @ 0x982f54\n// > AccountLayer::createToggleButton @ 0x98c748\n// > GJAccountSettingsLayer::createToggleButton @ 0xa1fc80\n// > ColorSelectLiveOverlay::createToggleButton @ 0xa650dc\n// > CharacterColorPage::init @ 0xb52a80\n// > LevelSettingsLayer::createToggleButton @ 0xb6257c\n// > EditorUI::setupCreateMenu @ 0xbfe434\n// > AccountReviewPopup::buildFilterRows @ 0xc472ec\n// > AccountReviewPopup::buildReportedRows @ 0xc4d538\n// > AutoBackupPopup::buildRows @ 0xc57e6c\n// > LevelPickerPopup::init @ 0xc6a764\n// > DeathMarkerSettingsPopup::init @ 0xca6c7c\n// > DeathTrackerOptionsPopup::init @ 0xca8eb0\n// > KeybindCapturePopup::init @ 0xcf7690\n// > PlatformerControlsPopup::init @ 0xcfaee4\n// > PlatformerControlsPopup::init @ 0xcfb534\n// > ReportPopup::buildReasonRows @ 0xcfeb84\n// > TimeSpeedControl::init @ 0xd03e0c\n// > <???> @ 0x9b6f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:36 +0000\n// \n\n__int64 __fastcall CCMenuItemToggler::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  __int64 v10; // x19\n\n  v10 = operator new(0x190u);\n  cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v10);\n  *(_BYTE *)(v10 + 338) = 0;\n  *(_BYTE *)(v10 + 339) = 0;\n  *(_QWORD *)(v10 + 344) = 0;\n  *(_QWORD *)(v10 + 352) = 0;\n  *(_QWORD *)(v10 + 360) = 0;\n  *(_DWORD *)(v10 + 368) = 0;\n  *(_DWORD *)(v10 + 372) = 0;\n  *(_QWORD *)(v10 + 376) = 0;\n  *(_QWORD *)(v10 + 384) = 0;\n  *(_QWORD *)v10 = &off_1416CD0;\n  *(_QWORD *)(v10 + 320) = &off_1417110;\n  *(_BYTE *)(v10 + 392) = 0;\n  *(_BYTE *)(v10 + 393) = 0;\n  if ( (unsigned __int8)CCMenuItemToggler::init((CCMenuItemToggler *)v10, a1, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);\n    return v10;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 16LL))(v10);\n    return 0;\n  }\n}", "assembly": "; \n; CCMenuItemToggler::create from 0x6922dc to 0x6923e0 (260 bytes)\n; \n; 52 xrefs:\n; > GameToolbox::createNotifyToggles @ 0x69c0a0\n; > GameToolbox::createNotifyToggles @ 0x69c428\n; > GameToolbox::createToggleButton @ 0x69c6f0\n; > GJThreadCell::loadFromThread @ 0x73eb08\n; > GJMessageCell::loadFromMessage @ 0x73fb18\n; > GJRequestCell::loadFromScore @ 0x745560\n; > LevelCell::loadFromLevel @ 0x748438\n; > CommentCell::loadFromComment @ 0x74c728\n; > PauseLayer::createToggleButton @ 0x7d5998\n; > MoreSearchLayer::createToggleButton @ 0x7df418\n; > ShareLevelSettingsLayer::init @ 0x7f302c\n; > ShareLevelSettingsLayer::init @ 0x7f3280\n; > ColorSelectPopup::init @ 0x865c90\n; > GJGarageLayer::setupIconSelect @ 0x8c0fc8\n; > GJGarageLayer::setupIconSelect @ 0x8c1050\n; > GJGarageLayer::setupIconSelect @ 0x8c10d4\n; > GJGarageLayer::setupIconSelect @ 0x8c1158\n; > GJGarageLayer::setupIconSelect @ 0x8c11dc\n; > GJGarageLayer::setupIconSelect @ 0x8c1260\n; > GJGarageLayer::setupIconSelect @ 0x8c12e4\n; > GJGarageLayer::setupIconSelect @ 0x8c1368\n; > GJGarageLayer::setupIconSelect @ 0x8c13ec\n; > GJGarageLayer::setupIconSelect @ 0x8c1470\n; > GJGarageLayer::setupIconSelect @ 0x8c14f4\n; > OptionsLayer::createToggleButton @ 0x8ee73c\n; > VideoOptionsLayer::createToggleButton @ 0x8ef5f0\n; > ParentalOptionsLayer::init @ 0x8f6e74\n; > SupportLayer::createToggleButton @ 0x90160c\n; > ShareCommentLayer::init @ 0x90f700\n; > LeaderboardsLayer::setupTabs @ 0x94ee20\n; > LeaderboardsLayer::setupTabs @ 0x94eed8\n; > LeaderboardsLayer::setupTabs @ 0x94ef88\n; > LeaderboardsLayer::setupTabs @ 0x94f038\n; > CustomizeObjectLayer::createToggleButton @ 0x982f54\n; > AccountLayer::createToggleButton @ 0x98c748\n; > GJAccountSettingsLayer::createToggleButton @ 0xa1fc80\n; > ColorSelectLiveOverlay::createToggleButton @ 0xa650dc\n; > CharacterColorPage::init @ 0xb52a80\n; > LevelSettingsLayer::createToggleButton @ 0xb6257c\n; > EditorUI::setupCreateMenu @ 0xbfe434\n; > AccountReviewPopup::buildFilterRows @ 0xc472ec\n; > AccountReviewPopup::buildReportedRows @ 0xc4d538\n; > AutoBackupPopup::buildRows @ 0xc57e6c\n; > LevelPickerPopup::init @ 0xc6a764\n; > DeathMarkerSettingsPopup::init @ 0xca6c7c\n; > DeathTrackerOptionsPopup::init @ 0xca8eb0\n; > KeybindCapturePopup::init @ 0xcf7690\n; > PlatformerControlsPopup::init @ 0xcfaee4\n; > PlatformerControlsPopup::init @ 0xcfb534\n; > ReportPopup::buildReasonRows @ 0xcfeb84\n; > TimeSpeedControl::init @ 0xd03e0c\n; > <???> @ 0x9b6f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:36 +0000\n; \nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0x6922dc\nMOV             X29, SP                                                ; +0x4, 0x6922e0\nSTP             X23, X24, [SP,#var_s30]                                ; +0x8, 0x6922e4\nMOV             X24, X0                                                ; +0xc, 0x6922e8\nMOV             X0, #0x190; unsigned __int64                           ; +0x10, 0x6922ec\nSTP             X19, X20, [SP,#var_s10]                                ; +0x14, 0x6922f0\nSTP             X21, X22, [SP,#var_s20]                                ; +0x18, 0x6922f4\nMOV             X23, X1                                                ; +0x1c, 0x6922f8\nMOV             X22, X2                                                ; +0x20, 0x6922fc\nMOV             X20, X3                                                ; +0x24, 0x692300\nMOV             X21, X4                                                ; +0x28, 0x692304\nBL              _Znwm; operator new(ulong)                             ; +0x2c, 0x692308\nMOV             X19, X0                                                ; +0x30, 0x69230c\nBL              _ZN7cocos2d10CCNodeRGBAC2Ev; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x34, 0x692310\nFMOV            S0, WZR                                                ; +0x38, 0x692314\nADRP            X6, #_ZTV17CCMenuItemToggler_ptr@PAGE                  ; +0x3c, 0x692318\nSTRB            WZR, [X19,#0x152]                                      ; +0x40, 0x69231c\nMOV             X0, X19                                                ; +0x44, 0x692320\nSTRB            WZR, [X19,#0x153]                                      ; +0x48, 0x692324\nMOV             X1, X24                                                ; +0x4c, 0x692328\nSTR             XZR, [X19,#0x158]                                      ; +0x50, 0x69232c\nMOV             X2, X23                                                ; +0x54, 0x692330\nSTR             XZR, [X19,#0x160]                                      ; +0x58, 0x692334\nMOV             X3, X22                                                ; +0x5c, 0x692338\nSTR             XZR, [X19,#0x168]                                      ; +0x60, 0x69233c\nMOV             X4, X20                                                ; +0x64, 0x692340\nSTR             WZR, [X19,#0x170]                                      ; +0x68, 0x692344\nMOV             X5, X21                                                ; +0x6c, 0x692348\nSTR             S0, [X19,#0x174]                                       ; +0x70, 0x69234c\nLDR             X6, [X6,#_ZTV17CCMenuItemToggler_ptr@PAGEOFF]; `vtable for'CCMenuItemToggler ... ; +0x74, 0x692350\nSTR             XZR, [X19,#0x178]                                      ; +0x78, 0x692354\nADD             X7, X6, #0x10                                          ; +0x7c, 0x692358\nSTR             XZR, [X19,#0x180]                                      ; +0x80, 0x69235c\nADD             X6, X6, #0x450                                         ; +0x84, 0x692360\nSTR             X7, [X19]                                              ; +0x88, 0x692364\nSTR             X6, [X19,#0x140]                                       ; +0x8c, 0x692368\nSTRB            WZR, [X19,#0x188]                                      ; +0x90, 0x69236c\nSTRB            WZR, [X19,#0x189]                                      ; +0x94, 0x692370\nBL              _ZN17CCMenuItemToggler4initEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemToggler::init(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x98, 0x692374\nUXTB            W0, W0                                                 ; +0x9c, 0x692378\nCBZ             W0, loc_6923A0                                         ; +0xa0, 0x69237c\nMOV             X0, X19; this                                          ; +0xa4, 0x692380\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xa8, 0x692384\nMOV             X0, X19                                                ; +0xac, 0x692388\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb0, 0x69238c\nLDP             X21, X22, [SP,#var_s20]                                ; +0xb4, 0x692390\nLDP             X23, X24, [SP,#var_s30]                                ; +0xb8, 0x692394\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xbc, 0x692398\nRET                                                                    ; +0xc0, 0x69239c\nLDR             X1, [X19]                                              ; +0xc4, 0x6923a0\nMOV             X0, X19                                                ; +0xc8, 0x6923a4\nMOV             X19, #0                                                ; +0xcc, 0x6923a8\nLDR             X1, [X1,#0x10]                                         ; +0xd0, 0x6923ac\nBLR             X1                                                     ; +0xd4, 0x6923b0\nMOV             X0, X19                                                ; +0xd8, 0x6923b4\nLDP             X19, X20, [SP,#var_s10]                                ; +0xdc, 0x6923b8\nLDP             X21, X22, [SP,#var_s20]                                ; +0xe0, 0x6923bc\nLDP             X23, X24, [SP,#var_s30]                                ; +0xe4, 0x6923c0\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xe8, 0x6923c4\nRET                                                                    ; +0xec, 0x6923c8\nMOV             X20, X0                                                ; +0xf0, 0x6923cc\nMOV             X0, X19; void *                                        ; +0xf4, 0x6923d0\nBL              _ZdlPv; operator delete(void *)                        ; +0xf8, 0x6923d4\nMOV             X0, X20                                                ; +0xfc, 0x6923d8\nBL              _Unwind_Resume                                         ; +0x100, 0x6923dc", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}