{"type": "func", "start": 6442830640, "end": 6442830708, "name": "cocos2d::CCMenuItemToggle::create", "pseudocode": "// \n// cocos2d::CCMenuItemToggle::create from 0x18005cb30 to 0x18005cb74 (68 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcfe8\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 11:21:49 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCMenuItemToggle *__fastcall cocos2d::CCMenuItemToggle::create()\n{\n  cocos2d::CCMenuItemToggle *v0; // rax\n  cocos2d::CCMenuItemToggle *v1; // rbx\n\n  v0 = (cocos2d::CCMenuItemToggle *)sub_1800E4AC0(0x188u);\n  if ( v0 )\n    v1 = cocos2d::CCMenuItemToggle::CCMenuItemToggle(v0);\n  else\n    v1 = nullptr;\n  cocos2d::CCMenuItemToggle::initWithItem(v1, nullptr);\n  cocos2d::CCObject::autorelease(v1);\n  return v1;\n}", "assembly": "; \n; cocos2d::CCMenuItemToggle::create from 0x18005cb30 to 0x18005cb74 (68 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcfe8\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 11:21:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x18005cb30\nsub     rsp, 20h                                                       ; +0x2, 0x18005cb32\nmov     ecx, 188h; Size                                                ; +0x6, 0x18005cb36\ncall    sub_1800E4AC0                                                  ; +0xb, 0x18005cb3b\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x18005cb40\ntest    rax, rax                                                       ; +0x15, 0x18005cb45\njz      short loc_18005CB57                                            ; +0x18, 0x18005cb48\nmov     rcx, rax; this                                                 ; +0x1a, 0x18005cb4a\ncall    ??0CCMenuItemToggle@cocos2d@@QEAA@XZ; cocos2d::CCMenuItemToggle::CCMenuItemToggle(void) ; +0x1d, 0x18005cb4d\nmov     rbx, rax                                                       ; +0x22, 0x18005cb52\njmp     short loc_18005CB59                                            ; +0x25, 0x18005cb55\nxor     ebx, ebx                                                       ; +0x27, 0x18005cb57\nxor     edx, edx; struct cocos2d::CCMenuItem *                         ; +0x29, 0x18005cb59\nmov     rcx, rbx; this                                                 ; +0x2b, 0x18005cb5b\ncall    ?initWithItem@CCMenuItemToggle@cocos2d@@QEAA_NPEAVCCMenuItem@2@@Z; cocos2d::CCMenuItemToggle::initWithItem(cocos2d::CCMenuItem *) ; +0x2e, 0x18005cb5e\nmov     rcx, rbx; this                                                 ; +0x33, 0x18005cb63\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x36, 0x18005cb66\nmov     rax, rbx                                                       ; +0x3b, 0x18005cb6b\nadd     rsp, 20h                                                       ; +0x3e, 0x18005cb6e\npop     rbx                                                            ; +0x42, 0x18005cb72\nretn                                                                   ; +0x43, 0x18005cb73", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bcfe8"], "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"}