{"type": "func", "start": 4295092688, "end": 4295092872, "name": "CCMenuItemToggler::create", "pseudocode": "// \n// CCMenuItemToggler::create from 0x10001e9d0 to 0x10001ea88 (184 bytes)\n// \n// 52 xrefs:\n// > AccountLayer::createToggleButton @ 0x10009b412\n// > CustomizeObjectLayer::createToggleButton @ 0x1001db302\n// > LevelCell::loadFromLevel @ 0x10022a4a0\n// > CommentCell::loadFromComment @ 0x10022f1ee\n// > GJRequestCell::loadFromScore @ 0x100232018\n// > GJMessageCell::loadFromMessage @ 0x10023281e\n// > GJThreadCell::loadFromThread @ 0x1002338f6\n// > LevelSettingsLayer::createToggleButton @ 0x1002583d1\n// > ShareLevelSettingsLayer::init @ 0x10026f5dd\n// > ShareLevelSettingsLayer::init @ 0x10026f859\n// > GJAccountSettingsLayer::createToggleButton @ 0x10028be0b\n// > GJGarageLayer::setupIconSelect @ 0x100354a2e\n// > GJGarageLayer::setupIconSelect @ 0x100354a99\n// > GJGarageLayer::setupIconSelect @ 0x100354b07\n// > GJGarageLayer::setupIconSelect @ 0x100354b75\n// > GJGarageLayer::setupIconSelect @ 0x100354be3\n// > GJGarageLayer::setupIconSelect @ 0x100354c51\n// > GJGarageLayer::setupIconSelect @ 0x100354cbf\n// > GJGarageLayer::setupIconSelect @ 0x100354d2d\n// > GJGarageLayer::setupIconSelect @ 0x100354d9b\n// > GJGarageLayer::setupIconSelect @ 0x100354e09\n// > GJGarageLayer::setupIconSelect @ 0x100354e77\n// > SupportLayer::createToggleButton @ 0x100383de2\n// > PauseLayer::createToggleButton @ 0x1003c23d1\n// > sub_1004EAD20 @ 0x1004eafb2\n// > GameToolbox::createToggleButton @ 0x1004eb633\n// > LeaderboardsLayer::setupTabs @ 0x100513f75\n// > LeaderboardsLayer::setupTabs @ 0x100514031\n// > LeaderboardsLayer::setupTabs @ 0x1005140ed\n// > LeaderboardsLayer::setupTabs @ 0x1005141a4\n// > ColorSelectLiveOverlay::createToggleButton @ 0x1005970a1\n// > KeybindCapturePopup::init @ 0x1005b428f\n// > EditorUI::setupCreateMenu @ 0x100637a79\n// > ShareCommentLayer::init @ 0x1006b1857\n// > sub_10070B210 @ 0x10070b292\n// > CharacterColorPage::init @ 0x10073cc1f\n// > ColorSelectPopup::init @ 0x100804db3\n// > sub_10087B920 @ 0x10087b9a2\n// > VideoOptionsLayer::createToggleButton @ 0x1008810c5\n// > ParentalOptionsLayer::init @ 0x1008847e3\n// > DeathMarkerSettingsPopup::init @ 0x1008c75e4\n// > sub_1008CA190 @ 0x1008ca383\n// > sub_10093E4A0 @ 0x10093ed21\n// > PlatformerControlsPopup::init @ 0x10095d818\n// > PlatformerControlsPopup::init @ 0x10095dc93\n// > PlatformerControlsPopup::init @ 0x10095dd83\n// > PlatformerControlsPopup::init @ 0x10095de6b\n// > sub_1009645C0 @ 0x100964784\n// > TimeSpeedControl::init @ 0x100977aab\n// > sub_10097E2F0 @ 0x10097e955\n// > AccountReviewPopup::buildReportedRows @ 0x10099c062\n// > AccountReviewPopup::buildFilterRows @ 0x10099dc19\n// \n// This function is hookable on this platform (idp: pc, 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:18:57 +0000\n// \n\nchar *__fastcall CCMenuItemToggler::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  char *v7; // rbx\n\n  v7 = (char *)operator new(0x190u);\n  cocos2d::CCNodeRGBA::CCNodeRGBA(v7);\n  *((_WORD *)v7 + 169) = 0;\n  *(_OWORD *)(v7 + 344) = 0;\n  *(_OWORD *)(v7 + 360) = 0;\n  *(_QWORD *)v7 = off_100AB65C8;\n  *((_QWORD *)v7 + 40) = off_100AB6A08;\n  *(_OWORD *)(v7 + 376) = 0;\n  *((_WORD *)v7 + 196) = 0;\n  if ( (unsigned __int8)CCMenuItemToggler::init(v7, a1, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease(v7);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 16LL))(v7);\n    return nullptr;\n  }\n  return v7;\n}", "assembly": "; \n; CCMenuItemToggler::create from 0x10001e9d0 to 0x10001ea88 (184 bytes)\n; \n; 52 xrefs:\n; > AccountLayer::createToggleButton @ 0x10009b412\n; > CustomizeObjectLayer::createToggleButton @ 0x1001db302\n; > LevelCell::loadFromLevel @ 0x10022a4a0\n; > CommentCell::loadFromComment @ 0x10022f1ee\n; > GJRequestCell::loadFromScore @ 0x100232018\n; > GJMessageCell::loadFromMessage @ 0x10023281e\n; > GJThreadCell::loadFromThread @ 0x1002338f6\n; > LevelSettingsLayer::createToggleButton @ 0x1002583d1\n; > ShareLevelSettingsLayer::init @ 0x10026f5dd\n; > ShareLevelSettingsLayer::init @ 0x10026f859\n; > GJAccountSettingsLayer::createToggleButton @ 0x10028be0b\n; > GJGarageLayer::setupIconSelect @ 0x100354a2e\n; > GJGarageLayer::setupIconSelect @ 0x100354a99\n; > GJGarageLayer::setupIconSelect @ 0x100354b07\n; > GJGarageLayer::setupIconSelect @ 0x100354b75\n; > GJGarageLayer::setupIconSelect @ 0x100354be3\n; > GJGarageLayer::setupIconSelect @ 0x100354c51\n; > GJGarageLayer::setupIconSelect @ 0x100354cbf\n; > GJGarageLayer::setupIconSelect @ 0x100354d2d\n; > GJGarageLayer::setupIconSelect @ 0x100354d9b\n; > GJGarageLayer::setupIconSelect @ 0x100354e09\n; > GJGarageLayer::setupIconSelect @ 0x100354e77\n; > SupportLayer::createToggleButton @ 0x100383de2\n; > PauseLayer::createToggleButton @ 0x1003c23d1\n; > sub_1004EAD20 @ 0x1004eafb2\n; > GameToolbox::createToggleButton @ 0x1004eb633\n; > LeaderboardsLayer::setupTabs @ 0x100513f75\n; > LeaderboardsLayer::setupTabs @ 0x100514031\n; > LeaderboardsLayer::setupTabs @ 0x1005140ed\n; > LeaderboardsLayer::setupTabs @ 0x1005141a4\n; > ColorSelectLiveOverlay::createToggleButton @ 0x1005970a1\n; > KeybindCapturePopup::init @ 0x1005b428f\n; > EditorUI::setupCreateMenu @ 0x100637a79\n; > ShareCommentLayer::init @ 0x1006b1857\n; > sub_10070B210 @ 0x10070b292\n; > CharacterColorPage::init @ 0x10073cc1f\n; > ColorSelectPopup::init @ 0x100804db3\n; > sub_10087B920 @ 0x10087b9a2\n; > VideoOptionsLayer::createToggleButton @ 0x1008810c5\n; > ParentalOptionsLayer::init @ 0x1008847e3\n; > DeathMarkerSettingsPopup::init @ 0x1008c75e4\n; > sub_1008CA190 @ 0x1008ca383\n; > sub_10093E4A0 @ 0x10093ed21\n; > PlatformerControlsPopup::init @ 0x10095d818\n; > PlatformerControlsPopup::init @ 0x10095dc93\n; > PlatformerControlsPopup::init @ 0x10095dd83\n; > PlatformerControlsPopup::init @ 0x10095de6b\n; > sub_1009645C0 @ 0x100964784\n; > TimeSpeedControl::init @ 0x100977aab\n; > sub_10097E2F0 @ 0x10097e955\n; > AccountReviewPopup::buildReportedRows @ 0x10099c062\n; > AccountReviewPopup::buildFilterRows @ 0x10099dc19\n; \n; This function is hookable on this platform (idp: pc, 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:18:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x10001e9d0\nmov     rbp, rsp                                                       ; +0x1, 0x10001e9d1\npush    r15                                                            ; +0x4, 0x10001e9d4\npush    r14                                                            ; +0x6, 0x10001e9d6\npush    r13                                                            ; +0x8, 0x10001e9d8\npush    r12                                                            ; +0xa, 0x10001e9da\npush    rbx                                                            ; +0xc, 0x10001e9dc\npush    rax                                                            ; +0xd, 0x10001e9dd\nmov     [rbp+var_30], r8                                               ; +0xe, 0x10001e9de\nmov     r15, rcx                                                       ; +0x12, 0x10001e9e2\nmov     r12, rdx                                                       ; +0x15, 0x10001e9e5\nmov     r13, rsi                                                       ; +0x18, 0x10001e9e8\nmov     r14, rdi                                                       ; +0x1b, 0x10001e9eb\nmov     edi, 190h; __sz                                                ; +0x1e, 0x10001e9ee\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x10001e9f3\nmov     rbx, rax                                                       ; +0x28, 0x10001e9f8\nmov     rdi, rax                                                       ; +0x2b, 0x10001e9fb\ncall    cocos2d__CCNodeRGBA__CCNodeRGBA                                ; +0x2e, 0x10001e9fe\nmov     word ptr [rbx+152h], 0                                         ; +0x33, 0x10001ea03\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x10001ea0c\nmovups  xmmword ptr [rbx+158h], xmm0                                   ; +0x3f, 0x10001ea0f\nmovups  xmmword ptr [rbx+168h], xmm0                                   ; +0x46, 0x10001ea16\nlea     rax, off_100AB65C8                                             ; +0x4d, 0x10001ea1d\nmov     [rbx], rax                                                     ; +0x54, 0x10001ea24\nlea     rax, off_100AB6A08                                             ; +0x57, 0x10001ea27\nmov     [rbx+140h], rax                                                ; +0x5e, 0x10001ea2e\nmovups  xmmword ptr [rbx+178h], xmm0                                   ; +0x65, 0x10001ea35\nmov     word ptr [rbx+188h], 0                                         ; +0x6c, 0x10001ea3c\nmov     rdi, rbx                                                       ; +0x75, 0x10001ea45\nmov     rsi, r14                                                       ; +0x78, 0x10001ea48\nmov     rdx, r13                                                       ; +0x7b, 0x10001ea4b\nmov     rcx, r12                                                       ; +0x7e, 0x10001ea4e\nmov     r8, r15                                                        ; +0x81, 0x10001ea51\nmov     r9, [rbp+var_30]                                               ; +0x84, 0x10001ea54\ncall    CCMenuItemToggler__init                                        ; +0x88, 0x10001ea58\ntest    al, al                                                         ; +0x8d, 0x10001ea5d\njz      short loc_10001EA6B                                            ; +0x8f, 0x10001ea5f\nmov     rdi, rbx                                                       ; +0x91, 0x10001ea61\ncall    cocos2d__CCObject__autorelease                                 ; +0x94, 0x10001ea64\njmp     short loc_10001EA76                                            ; +0x99, 0x10001ea69\nmov     rax, [rbx]                                                     ; +0x9b, 0x10001ea6b\nmov     rdi, rbx                                                       ; +0x9e, 0x10001ea6e\ncall    qword ptr [rax+10h]                                            ; +0xa1, 0x10001ea71\nxor     ebx, ebx                                                       ; +0xa4, 0x10001ea74\nmov     rax, rbx                                                       ; +0xa6, 0x10001ea76\nadd     rsp, 8                                                         ; +0xa9, 0x10001ea79\npop     rbx                                                            ; +0xad, 0x10001ea7d\npop     r12                                                            ; +0xae, 0x10001ea7e\npop     r13                                                            ; +0xb0, 0x10001ea80\npop     r14                                                            ; +0xb2, 0x10001ea82\npop     r15                                                            ; +0xb4, 0x10001ea84\npop     rbp                                                            ; +0xb6, 0x10001ea86\nretn                                                                   ; +0xb7, 0x10001ea87", "xrefs": ["AccountLayer::createToggleButton @ 0x10009b412", "CustomizeObjectLayer::createToggleButton @ 0x1001db302", "LevelCell::loadFromLevel @ 0x10022a4a0", "CommentCell::loadFromComment @ 0x10022f1ee", "GJRequestCell::loadFromScore @ 0x100232018", "GJMessageCell::loadFromMessage @ 0x10023281e", "GJThreadCell::loadFromThread @ 0x1002338f6", "LevelSettingsLayer::createToggleButton @ 0x1002583d1", "ShareLevelSettingsLayer::init @ 0x10026f5dd", "ShareLevelSettingsLayer::init @ 0x10026f859", "GJAccountSettingsLayer::createToggleButton @ 0x10028be0b", "GJGarageLayer::setupIconSelect @ 0x100354a2e", "GJGarageLayer::setupIconSelect @ 0x100354a99", "GJGarageLayer::setupIconSelect @ 0x100354b07", "GJGarageLayer::setupIconSelect @ 0x100354b75", "GJGarageLayer::setupIconSelect @ 0x100354be3", "GJGarageLayer::setupIconSelect @ 0x100354c51", "GJGarageLayer::setupIconSelect @ 0x100354cbf", "GJGarageLayer::setupIconSelect @ 0x100354d2d", "GJGarageLayer::setupIconSelect @ 0x100354d9b", "GJGarageLayer::setupIconSelect @ 0x100354e09", "GJGarageLayer::setupIconSelect @ 0x100354e77", "SupportLayer::createToggleButton @ 0x100383de2", "PauseLayer::createToggleButton @ 0x1003c23d1", "sub_1004EAD20 @ 0x1004eafb2", "GameToolbox::createToggleButton @ 0x1004eb633", "LeaderboardsLayer::setupTabs @ 0x100513f75", "LeaderboardsLayer::setupTabs @ 0x100514031", "LeaderboardsLayer::setupTabs @ 0x1005140ed", "LeaderboardsLayer::setupTabs @ 0x1005141a4", "ColorSelectLiveOverlay::createToggleButton @ 0x1005970a1", "KeybindCapturePopup::init @ 0x1005b428f", "EditorUI::setupCreateMenu @ 0x100637a79", "ShareCommentLayer::init @ 0x1006b1857", "sub_10070B210 @ 0x10070b292", "CharacterColorPage::init @ 0x10073cc1f", "ColorSelectPopup::init @ 0x100804db3", "sub_10087B920 @ 0x10087b9a2", "VideoOptionsLayer::createToggleButton @ 0x1008810c5", "ParentalOptionsLayer::init @ 0x1008847e3", "DeathMarkerSettingsPopup::init @ 0x1008c75e4", "sub_1008CA190 @ 0x1008ca383", "sub_10093E4A0 @ 0x10093ed21", "PlatformerControlsPopup::init @ 0x10095d818", "PlatformerControlsPopup::init @ 0x10095dc93", "PlatformerControlsPopup::init @ 0x10095dd83", "PlatformerControlsPopup::init @ 0x10095de6b", "sub_1009645C0 @ 0x100964784", "TimeSpeedControl::init @ 0x100977aab", "sub_10097E2F0 @ 0x10097e955", "AccountReviewPopup::buildReportedRows @ 0x10099c062", "AccountReviewPopup::buildFilterRows @ 0x10099dc19"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}