{"type": "func", "start": 6442830544, "end": 6442830625, "name": "cocos2d::CCMenuItemToggle::create", "pseudocode": "// \n// cocos2d::CCMenuItemToggle::create from 0x18005cad0 to 0x18005cb21 (81 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcfdc\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(struct cocos2d::CCMenuItem *a1)\n{\n  cocos2d::CCMenuItemToggle *v2; // rax\n  cocos2d::CCMenuItemToggle *v3; // rbx\n\n  v2 = (cocos2d::CCMenuItemToggle *)sub_1800E4AC0(0x188u);\n  if ( v2 )\n    v3 = cocos2d::CCMenuItemToggle::CCMenuItemToggle(v2);\n  else\n    v3 = nullptr;\n  cocos2d::CCMenuItemToggle::initWithItem(v3, a1);\n  cocos2d::CCObject::autorelease(v3);\n  return v3;\n}", "assembly": "; \n; cocos2d::CCMenuItemToggle::create from 0x18005cad0 to 0x18005cb21 (81 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcfdc\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005cad0\npush    rdi                                                            ; +0x5, 0x18005cad5\nsub     rsp, 20h                                                       ; +0x6, 0x18005cad6\nmov     rdi, rcx                                                       ; +0xa, 0x18005cada\nmov     ecx, 188h; Size                                                ; +0xd, 0x18005cadd\ncall    sub_1800E4AC0                                                  ; +0x12, 0x18005cae2\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x18005cae7\ntest    rax, rax                                                       ; +0x1c, 0x18005caec\njz      short loc_18005CAFE                                            ; +0x1f, 0x18005caef\nmov     rcx, rax; this                                                 ; +0x21, 0x18005caf1\ncall    ??0CCMenuItemToggle@cocos2d@@QEAA@XZ; cocos2d::CCMenuItemToggle::CCMenuItemToggle(void) ; +0x24, 0x18005caf4\nmov     rbx, rax                                                       ; +0x29, 0x18005caf9\njmp     short loc_18005CB00                                            ; +0x2c, 0x18005cafc\nxor     ebx, ebx                                                       ; +0x2e, 0x18005cafe\nmov     rdx, rdi; struct cocos2d::CCMenuItem *                         ; +0x30, 0x18005cb00\nmov     rcx, rbx; this                                                 ; +0x33, 0x18005cb03\ncall    ?initWithItem@CCMenuItemToggle@cocos2d@@QEAA_NPEAVCCMenuItem@2@@Z; cocos2d::CCMenuItemToggle::initWithItem(cocos2d::CCMenuItem *) ; +0x36, 0x18005cb06\nmov     rcx, rbx; this                                                 ; +0x3b, 0x18005cb0b\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x3e, 0x18005cb0e\nmov     rax, rbx                                                       ; +0x43, 0x18005cb13\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x46, 0x18005cb16\nadd     rsp, 20h                                                       ; +0x4b, 0x18005cb1b\npop     rdi                                                            ; +0x4f, 0x18005cb1f\nretn                                                                   ; +0x50, 0x18005cb20", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bcfdc"], "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"}