{"type": "func", "start": 4296609456, "end": 4296609644, "name": "CCMenuItemToggler::create", "pseudocode": "// \n// CCMenuItemToggler::create from 0x100190eb0 to 0x100190f6c (188 bytes)\n// \n// 33 xrefs:\n// > GameToolbox::createToggleButton @ 0x100044478\n// > MoreSearchLayer::createToggleButton @ 0x10005668c\n// > VideoOptionsLayer::createToggleButton @ 0x1000f0ac8\n// > LevelCell::loadFromLevel @ 0x100102d08\n// > GJRequestCell::loadFromScore @ 0x10010a66c\n// > GJMessageCell::loadFromMessage @ 0x10010aefc\n// > CharacterColorPage::init @ 0x100129488\n// > LevelSettingsLayer::createToggleButton @ 0x10017b804\n// > SupportLayer::createToggleButton @ 0x100192994\n// > FRequestProfilePage::init @ 0x1001b6574\n// > MessagesProfilePage::init @ 0x1001cc43c\n// > ShareCommentLayer::init @ 0x1001d4b20\n// > ShareLevelSettingsLayer::init @ 0x1002772b4\n// > ShareLevelSettingsLayer::init @ 0x100277538\n// > GJAccountSettingsLayer::createToggleButton @ 0x1002d6860\n// > GJGarageLayer::setupIconSelect @ 0x100303b30\n// > GJGarageLayer::setupIconSelect @ 0x100303bac\n// > GJGarageLayer::setupIconSelect @ 0x100303c20\n// > GJGarageLayer::setupIconSelect @ 0x100303c94\n// > GJGarageLayer::setupIconSelect @ 0x100303d08\n// > GJGarageLayer::setupIconSelect @ 0x100303d7c\n// > GJGarageLayer::setupIconSelect @ 0x100303df0\n// > GJGarageLayer::setupIconSelect @ 0x100303e64\n// > GJGarageLayer::setupIconSelect @ 0x100303ed8\n// > GJGarageLayer::setupIconSelect @ 0x100303f4c\n// > GJGarageLayer::setupIconSelect @ 0x100303fc0\n// > LeaderboardsLayer::setupTabs @ 0x1003b10d0\n// > LeaderboardsLayer::setupTabs @ 0x1003b117c\n// > LeaderboardsLayer::setupTabs @ 0x1003b1218\n// > LeaderboardsLayer::setupTabs @ 0x1003b12b4\n// > EditorUI::setupCreateMenu @ 0x1003e3ee8\n// > LevelBrowserLayer::init @ 0x100414f74\n// > ColorSelectPopup::init @ 0x10041d320\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nCCMenuItemToggler *__fastcall CCMenuItemToggler::create(\n        cocos2d::CCNode *a1,\n        cocos2d::CCNode *a2,\n        cocos2d::CCObject *a3,\n        cocos2d::SEL_MenuHandler a4)\n{\n  size_t adj; // x20\n  void (__cdecl *ptr)(cocos2d::CCObject *); // x21\n  char *v9; // x19\n  cocos2d::SEL_MenuHandler v11; // 0:x4.16\n\n  adj = a4.adj;\n  ptr = a4.ptr;\n  v9 = (char *)operator new(0x190u);\n  cocos2d::CCNodeRGBA::CCNodeRGBA();\n  *((_WORD *)v9 + 169) = 0;\n  *(_OWORD *)(v9 + 344) = 0u;\n  *(_OWORD *)(v9 + 360) = 0u;\n  *(_QWORD *)v9 = &off_1007A75A8;\n  *((_QWORD *)v9 + 40) = off_1007A79D8;\n  *((_QWORD *)v9 + 47) = 0;\n  *((_QWORD *)v9 + 48) = 0;\n  *((_WORD *)v9 + 196) = 0;\n  v11.ptr = ptr;\n  v11.adj = adj;\n  if ( CCMenuItemToggler::init((CCMenuItemToggler *)v9, a1, a2, a3, v11) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 16LL))(v9);\n    return nullptr;\n  }\n  return (CCMenuItemToggler *)v9;\n}", "assembly": "; \n; CCMenuItemToggler::create from 0x100190eb0 to 0x100190f6c (188 bytes)\n; \n; 33 xrefs:\n; > GameToolbox::createToggleButton @ 0x100044478\n; > MoreSearchLayer::createToggleButton @ 0x10005668c\n; > VideoOptionsLayer::createToggleButton @ 0x1000f0ac8\n; > LevelCell::loadFromLevel @ 0x100102d08\n; > GJRequestCell::loadFromScore @ 0x10010a66c\n; > GJMessageCell::loadFromMessage @ 0x10010aefc\n; > CharacterColorPage::init @ 0x100129488\n; > LevelSettingsLayer::createToggleButton @ 0x10017b804\n; > SupportLayer::createToggleButton @ 0x100192994\n; > FRequestProfilePage::init @ 0x1001b6574\n; > MessagesProfilePage::init @ 0x1001cc43c\n; > ShareCommentLayer::init @ 0x1001d4b20\n; > ShareLevelSettingsLayer::init @ 0x1002772b4\n; > ShareLevelSettingsLayer::init @ 0x100277538\n; > GJAccountSettingsLayer::createToggleButton @ 0x1002d6860\n; > GJGarageLayer::setupIconSelect @ 0x100303b30\n; > GJGarageLayer::setupIconSelect @ 0x100303bac\n; > GJGarageLayer::setupIconSelect @ 0x100303c20\n; > GJGarageLayer::setupIconSelect @ 0x100303c94\n; > GJGarageLayer::setupIconSelect @ 0x100303d08\n; > GJGarageLayer::setupIconSelect @ 0x100303d7c\n; > GJGarageLayer::setupIconSelect @ 0x100303df0\n; > GJGarageLayer::setupIconSelect @ 0x100303e64\n; > GJGarageLayer::setupIconSelect @ 0x100303ed8\n; > GJGarageLayer::setupIconSelect @ 0x100303f4c\n; > GJGarageLayer::setupIconSelect @ 0x100303fc0\n; > LeaderboardsLayer::setupTabs @ 0x1003b10d0\n; > LeaderboardsLayer::setupTabs @ 0x1003b117c\n; > LeaderboardsLayer::setupTabs @ 0x1003b1218\n; > LeaderboardsLayer::setupTabs @ 0x1003b12b4\n; > EditorUI::setupCreateMenu @ 0x1003e3ee8\n; > LevelBrowserLayer::init @ 0x100414f74\n; > ColorSelectPopup::init @ 0x10041d320\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x100190eb0\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100190eb4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100190eb8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100190ebc\nADD             X29, SP, #0x30                                         ; +0x10, 0x100190ec0\nMOV             X20, X4                                                ; +0x14, 0x100190ec4\nMOV             X21, X3                                                ; +0x18, 0x100190ec8\nMOV             X22, X2                                                ; +0x1c, 0x100190ecc\nMOV             X23, X1                                                ; +0x20, 0x100190ed0\nMOV             X24, X0                                                ; +0x24, 0x100190ed4\nMOV             W0, #0x190; __sz                                       ; +0x28, 0x100190ed8\nBL              __Znwm; operator new(ulong)                            ; +0x2c, 0x100190edc\nMOV             X19, X0                                                ; +0x30, 0x100190ee0\nBL              cocos2d__CCNodeRGBA__CCNodeRGBA                        ; +0x34, 0x100190ee4\nSTRH            WZR, [X19,#0x152]                                      ; +0x38, 0x100190ee8\nADD             X8, X19, #0x158                                        ; +0x3c, 0x100190eec\nMOVI            V0.16B, #0                                             ; +0x40, 0x100190ef0\nSTP             Q0, Q0, [X8]                                           ; +0x44, 0x100190ef4\nADRL            X8, off_1007A75A8                                      ; +0x48, 0x100190ef8\nSTR             X8, [X19]                                              ; +0x50, 0x100190f00\nADD             X8, X8, #(off_1007A79D8 - 0x1007A75A8)                 ; +0x54, 0x100190f04\nSTR             X8, [X19,#0x140]                                       ; +0x58, 0x100190f08\nSTP             XZR, XZR, [X19,#0x178]                                 ; +0x5c, 0x100190f0c\nSTRH            WZR, [X19,#0x188]                                      ; +0x60, 0x100190f10\nMOV             X0, X19                                                ; +0x64, 0x100190f14\nMOV             X1, X24                                                ; +0x68, 0x100190f18\nMOV             X2, X23                                                ; +0x6c, 0x100190f1c\nMOV             X3, X22                                                ; +0x70, 0x100190f20\nMOV             X4, X21                                                ; +0x74, 0x100190f24\nMOV             X5, X20                                                ; +0x78, 0x100190f28\nBL              CCMenuItemToggler__init                                ; +0x7c, 0x100190f2c\nCBZ             W0, loc_100190F40                                      ; +0x80, 0x100190f30\nMOV             X0, X19                                                ; +0x84, 0x100190f34\nBL              cocos2d__CCObject__autorelease                         ; +0x88, 0x100190f38\nB               loc_100190F54                                          ; +0x8c, 0x100190f3c\nLDR             X8, [X19]                                              ; +0x90, 0x100190f40\nLDR             X8, [X8,#0x10]                                         ; +0x94, 0x100190f44\nMOV             X0, X19                                                ; +0x98, 0x100190f48\nBLR             X8                                                     ; +0x9c, 0x100190f4c\nMOV             X19, #0                                                ; +0xa0, 0x100190f50\nMOV             X0, X19                                                ; +0xa4, 0x100190f54\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa8, 0x100190f58\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xac, 0x100190f5c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xb0, 0x100190f60\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xb4, 0x100190f64\nRET                                                                    ; +0xb8, 0x100190f68", "xrefs": ["GameToolbox::createToggleButton @ 0x100044478", "MoreSearchLayer::createToggleButton @ 0x10005668c", "VideoOptionsLayer::createToggleButton @ 0x1000f0ac8", "LevelCell::loadFromLevel @ 0x100102d08", "GJRequestCell::loadFromScore @ 0x10010a66c", "GJMessageCell::loadFromMessage @ 0x10010aefc", "CharacterColorPage::init @ 0x100129488", "LevelSettingsLayer::createToggleButton @ 0x10017b804", "SupportLayer::createToggleButton @ 0x100192994", "FRequestProfilePage::init @ 0x1001b6574", "MessagesProfilePage::init @ 0x1001cc43c", "ShareCommentLayer::init @ 0x1001d4b20", "ShareLevelSettingsLayer::init @ 0x1002772b4", "ShareLevelSettingsLayer::init @ 0x100277538", "GJAccountSettingsLayer::createToggleButton @ 0x1002d6860", "GJGarageLayer::setupIconSelect @ 0x100303b30", "GJGarageLayer::setupIconSelect @ 0x100303bac", "GJGarageLayer::setupIconSelect @ 0x100303c20", "GJGarageLayer::setupIconSelect @ 0x100303c94", "GJGarageLayer::setupIconSelect @ 0x100303d08", "GJGarageLayer::setupIconSelect @ 0x100303d7c", "GJGarageLayer::setupIconSelect @ 0x100303df0", "GJGarageLayer::setupIconSelect @ 0x100303e64", "GJGarageLayer::setupIconSelect @ 0x100303ed8", "GJGarageLayer::setupIconSelect @ 0x100303f4c", "GJGarageLayer::setupIconSelect @ 0x100303fc0", "LeaderboardsLayer::setupTabs @ 0x1003b10d0", "LeaderboardsLayer::setupTabs @ 0x1003b117c", "LeaderboardsLayer::setupTabs @ 0x1003b1218", "LeaderboardsLayer::setupTabs @ 0x1003b12b4", "EditorUI::setupCreateMenu @ 0x1003e3ee8", "LevelBrowserLayer::init @ 0x100414f74", "ColorSelectPopup::init @ 0x10041d320"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}