{"type": "func", "start": 3960424, "end": 3960584, "name": "CCMenuItemToggler::create", "pseudocode": "// \n// CCMenuItemToggler::create from 0x3c6e68 to 0x3c6f08 (160 bytes)\n// \n// 50 xrefs:\n// > GameToolbox::createNotifyToggles @ 0x3ccf7e\n// > GameToolbox::createToggleButton @ 0x3cd310\n// > GJThreadCell::loadFromThread @ 0x42b686\n// > GJMessageCell::loadFromMessage @ 0x42c064\n// > GJRequestCell::loadFromScore @ 0x42e9be\n// > LevelCell::loadFromLevel @ 0x430ae6\n// > CommentCell::loadFromComment @ 0x433dea\n// > PauseLayer::createToggleButton @ 0x48efe6\n// > MoreSearchLayer::createToggleButton @ 0x49578a\n// > ShareLevelSettingsLayer::init @ 0x4a2fec\n// > ShareLevelSettingsLayer::init @ 0x4a31f4\n// > ColorSelectPopup::init @ 0x4e07c0\n// > GJGarageLayer::setupIconSelect @ 0x50f84a\n// > GJGarageLayer::setupIconSelect @ 0x50f89a\n// > GJGarageLayer::setupIconSelect @ 0x50f8ea\n// > GJGarageLayer::setupIconSelect @ 0x50f93a\n// > GJGarageLayer::setupIconSelect @ 0x50f98a\n// > GJGarageLayer::setupIconSelect @ 0x50f9da\n// > GJGarageLayer::setupIconSelect @ 0x50fa2a\n// > GJGarageLayer::setupIconSelect @ 0x50fada\n// > GJGarageLayer::setupIconSelect @ 0x50fb2a\n// > GJGarageLayer::setupIconSelect @ 0x50fb7a\n// > GJGarageLayer::setupIconSelect @ 0x50fbca\n// > OptionsLayer::createToggleButton @ 0x52cb6e\n// > VideoOptionsLayer::createToggleButton @ 0x52d338\n// > ParentalOptionsLayer::init @ 0x5324be\n// > SupportLayer::createToggleButton @ 0x539522\n// > ShareCommentLayer::init @ 0x541884\n// > LeaderboardsLayer::setupTabs @ 0x563666\n// > LeaderboardsLayer::setupTabs @ 0x5636f4\n// > LeaderboardsLayer::setupTabs @ 0x563782\n// > LeaderboardsLayer::setupTabs @ 0x563810\n// > CustomizeObjectLayer::createToggleButton @ 0x57e22e\n// > AccountLayer::createToggleButton @ 0x583d1c\n// > GJAccountSettingsLayer::createToggleButton @ 0x5d48ea\n// > ColorSelectLiveOverlay::createToggleButton @ 0x601392\n// > CharacterColorPage::init @ 0x69dcca\n// > LevelSettingsLayer::createToggleButton @ 0x6a92d0\n// > EditorUI::setupCreateMenu @ 0x70c140\n// > AccountReviewPopup::buildFilterRows @ 0x7369aa\n// > AccountReviewPopup::buildReportedRows @ 0x739872\n// > AutoBackupPopup::buildRows @ 0x73efee\n// > LevelPickerPopup::init @ 0x74abd4\n// > DeathMarkerSettingsPopup::init @ 0x76ea4a\n// > DeathTrackerOptionsPopup::init @ 0x770196\n// > KeybindCapturePopup::init @ 0x79aca0\n// > PlatformerControlsPopup::init @ 0x79d252\n// > PlatformerControlsPopup::init @ 0x79d5d0\n// > ReportPopup::buildReasonRows @ 0x79f820\n// > TimeSpeedControl::init @ 0x7a2562\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n// \n\ncocos2d::CCNodeRGBA *__fastcall CCMenuItemToggler::create(int a1, int a2, int a3, int a4, int a5)\n{\n  cocos2d::CCNodeRGBA *v8; // r4\n  int v9; // r3\n  int *v10; // r0\n  int varg_r3; // [sp+24h] [bp+18h]\n\n  v8 = (cocos2d::CCNodeRGBA *)operator new(0x138u);\n  cocos2d::CCNodeRGBA::CCNodeRGBA(v8);\n  *((_DWORD *)v8 + 74) = 0;\n  *((_BYTE *)v8 + 278) = 0;\n  *((_BYTE *)v8 + 279) = 0;\n  *((_DWORD *)v8 + 70) = 0;\n  *((_DWORD *)v8 + 71) = 0;\n  *((_DWORD *)v8 + 72) = 0;\n  *((_DWORD *)v8 + 73) = 0;\n  *((_DWORD *)v8 + 75) = 0;\n  *((_DWORD *)v8 + 76) = 0;\n  *((_BYTE *)v8 + 308) = 0;\n  *((_BYTE *)v8 + 309) = 0;\n  *(_DWORD *)v8 = &off_C850A8;\n  *((_DWORD *)v8 + 66) = &off_C852C8;\n  if ( CCMenuItemToggler::init(v8, a1, a2, a3, varg_r3, a5) )\n  {\n    cocos2d::CCObject::autorelease(v8);\n  }\n  else\n  {\n    v9 = *(_DWORD *)v8;\n    v10 = (int *)v8;\n    v8 = nullptr;\n    (*(void (__fastcall **)(int *))(v9 + 8))(v10);\n  }\n  return v8;\n}", "assembly": "; \n; CCMenuItemToggler::create from 0x3c6e68 to 0x3c6f08 (160 bytes)\n; \n; 50 xrefs:\n; > GameToolbox::createNotifyToggles @ 0x3ccf7e\n; > GameToolbox::createToggleButton @ 0x3cd310\n; > GJThreadCell::loadFromThread @ 0x42b686\n; > GJMessageCell::loadFromMessage @ 0x42c064\n; > GJRequestCell::loadFromScore @ 0x42e9be\n; > LevelCell::loadFromLevel @ 0x430ae6\n; > CommentCell::loadFromComment @ 0x433dea\n; > PauseLayer::createToggleButton @ 0x48efe6\n; > MoreSearchLayer::createToggleButton @ 0x49578a\n; > ShareLevelSettingsLayer::init @ 0x4a2fec\n; > ShareLevelSettingsLayer::init @ 0x4a31f4\n; > ColorSelectPopup::init @ 0x4e07c0\n; > GJGarageLayer::setupIconSelect @ 0x50f84a\n; > GJGarageLayer::setupIconSelect @ 0x50f89a\n; > GJGarageLayer::setupIconSelect @ 0x50f8ea\n; > GJGarageLayer::setupIconSelect @ 0x50f93a\n; > GJGarageLayer::setupIconSelect @ 0x50f98a\n; > GJGarageLayer::setupIconSelect @ 0x50f9da\n; > GJGarageLayer::setupIconSelect @ 0x50fa2a\n; > GJGarageLayer::setupIconSelect @ 0x50fada\n; > GJGarageLayer::setupIconSelect @ 0x50fb2a\n; > GJGarageLayer::setupIconSelect @ 0x50fb7a\n; > GJGarageLayer::setupIconSelect @ 0x50fbca\n; > OptionsLayer::createToggleButton @ 0x52cb6e\n; > VideoOptionsLayer::createToggleButton @ 0x52d338\n; > ParentalOptionsLayer::init @ 0x5324be\n; > SupportLayer::createToggleButton @ 0x539522\n; > ShareCommentLayer::init @ 0x541884\n; > LeaderboardsLayer::setupTabs @ 0x563666\n; > LeaderboardsLayer::setupTabs @ 0x5636f4\n; > LeaderboardsLayer::setupTabs @ 0x563782\n; > LeaderboardsLayer::setupTabs @ 0x563810\n; > CustomizeObjectLayer::createToggleButton @ 0x57e22e\n; > AccountLayer::createToggleButton @ 0x583d1c\n; > GJAccountSettingsLayer::createToggleButton @ 0x5d48ea\n; > ColorSelectLiveOverlay::createToggleButton @ 0x601392\n; > CharacterColorPage::init @ 0x69dcca\n; > LevelSettingsLayer::createToggleButton @ 0x6a92d0\n; > EditorUI::setupCreateMenu @ 0x70c140\n; > AccountReviewPopup::buildFilterRows @ 0x7369aa\n; > AccountReviewPopup::buildReportedRows @ 0x739872\n; > AutoBackupPopup::buildRows @ 0x73efee\n; > LevelPickerPopup::init @ 0x74abd4\n; > DeathMarkerSettingsPopup::init @ 0x76ea4a\n; > DeathTrackerOptionsPopup::init @ 0x770196\n; > KeybindCapturePopup::init @ 0x79aca0\n; > PlatformerControlsPopup::init @ 0x79d252\n; > PlatformerControlsPopup::init @ 0x79d5d0\n; > ReportPopup::buildReasonRows @ 0x79f820\n; > TimeSpeedControl::init @ 0x7a2562\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n; \nSUB             SP, SP, #8                                             ; +0x0, 0x3c6e68\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x2, 0x3c6e6a\nMOV             R7, R0                                                 ; +0x4, 0x3c6e6c\nMOV.W           R0, #0x138; unsigned int                               ; +0x6, 0x3c6e6e\nMOV             R6, R1                                                 ; +0xa, 0x3c6e72\nMOV             R5, R2                                                 ; +0xc, 0x3c6e74\nSTR             R3, [SP,#0xC+varg_r3]                                  ; +0xe, 0x3c6e76\nBL              _Znwj; operator new(uint)                              ; +0x10, 0x3c6e78\nMOV             R4, R0                                                 ; +0x14, 0x3c6e7c\nBL              _ZN7cocos2d10CCNodeRGBAC2Ev; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x16, 0x3c6e7e\nMOVS            R2, #0                                                 ; +0x1a, 0x3c6e82\nSTR.W           R2, [R4,#0x128]                                        ; +0x1c, 0x3c6e84\nLDR             R2, =(_ZTV17CCMenuItemToggler_ptr - 0x3C6E98)          ; +0x20, 0x3c6e88\nMOVS            R3, #0                                                 ; +0x22, 0x3c6e8a\nSTRB.W          R3, [R4,#0x116]                                        ; +0x24, 0x3c6e8c\nSTRB.W          R3, [R4,#0x117]                                        ; +0x28, 0x3c6e90\nADD             R2, PC; _ZTV17CCMenuItemToggler_ptr                    ; +0x2c, 0x3c6e94\nLDR             R2, [R2]; `vtable for'CCMenuItemToggler ...            ; +0x2e, 0x3c6e96\nSTR.W           R3, [R4,#0x118]                                        ; +0x30, 0x3c6e98\nADD.W           R1, R2, #8                                             ; +0x34, 0x3c6e9c\nSTR.W           R3, [R4,#0x11C]                                        ; +0x38, 0x3c6ea0\nADD.W           R2, R2, #0x228                                         ; +0x3c, 0x3c6ea4\nSTR.W           R3, [R4,#0x120]                                        ; +0x40, 0x3c6ea8\nSTR.W           R3, [R4,#0x124]                                        ; +0x44, 0x3c6eac\nSTR.W           R3, [R4,#0x12C]                                        ; +0x48, 0x3c6eb0\nSTR.W           R3, [R4,#0x130]                                        ; +0x4c, 0x3c6eb4\nSTRB.W          R3, [R4,#0x134]                                        ; +0x50, 0x3c6eb8\nSTRB.W          R3, [R4,#0x135]                                        ; +0x54, 0x3c6ebc\nADD             R3, SP, #0xC+varg_r3                                   ; +0x58, 0x3c6ec0\nSTR             R1, [R4]                                               ; +0x5a, 0x3c6ec2\nLDM.W           R3, {R0,R1}                                            ; +0x5c, 0x3c6ec4\nMOV             R3, R5                                                 ; +0x60, 0x3c6ec8\nSTR.W           R2, [R4,#0x108]                                        ; +0x62, 0x3c6eca\nMOV             R2, R6                                                 ; +0x66, 0x3c6ece\nSTMEA.W         SP, {R0,R1}                                            ; +0x68, 0x3c6ed0\nMOV             R0, R4                                                 ; +0x6c, 0x3c6ed4\nMOV             R1, R7                                                 ; +0x6e, 0x3c6ed6\nBL              _ZN17CCMenuItemToggler4initEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemToggler::init(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x70, 0x3c6ed8\nMOV             R5, R0                                                 ; +0x74, 0x3c6edc\nCBZ             R0, loc_3C6EF2                                         ; +0x76, 0x3c6ede\nMOV             R0, R4; this                                           ; +0x78, 0x3c6ee0\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x7a, 0x3c6ee2\nB               loc_3C6EFC                                             ; +0x7e, 0x3c6ee6\nMOV             R0, R4; void *                                         ; +0x80, 0x3c6ee8\nBL              _ZdlPv; operator delete(void *)                        ; +0x82, 0x3c6eea\nBL              __cxa_end_cleanup                                      ; +0x86, 0x3c6eee\nLDR             R3, [R4]                                               ; +0x8a, 0x3c6ef2\nMOV             R0, R4                                                 ; +0x8c, 0x3c6ef4\nMOV             R4, R5                                                 ; +0x8e, 0x3c6ef6\nLDR             R3, [R3,#8]                                            ; +0x90, 0x3c6ef8\nBLX             R3                                                     ; +0x92, 0x3c6efa\nMOV             R0, R4                                                 ; +0x94, 0x3c6efc\nADD             SP, SP, #0xC                                           ; +0x96, 0x3c6efe\nPOP.W           {R4-R7,LR}                                             ; +0x98, 0x3c6f00\nADD             SP, SP, #8                                             ; +0x9c, 0x3c6f04\nBX              LR                                                     ; +0x9e, 0x3c6f06", "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"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}