{"type": "func", "start": 6442822448, "end": 6442822516, "name": "cocos2d::CCMenuItemToggle::create", "pseudocode": "// \n// cocos2d::CCMenuItemToggle::create from 0x18005ab30 to 0x18005ab74 (68 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2d30\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\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 *)operator new(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 0x18005ab30 to 0x18005ab74 (68 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2d30\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\npush    rbx                                                            ; +0x0, 0x18005ab30\nsub     rsp, 20h                                                       ; +0x2, 0x18005ab32\nmov     ecx, 188h; Size                                                ; +0x6, 0x18005ab36\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x18005ab3b\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x18005ab40\ntest    rax, rax                                                       ; +0x15, 0x18005ab45\njz      short loc_18005AB57                                            ; +0x18, 0x18005ab48\nmov     rcx, rax; this                                                 ; +0x1a, 0x18005ab4a\ncall    ??0CCMenuItemToggle@cocos2d@@QEAA@XZ; cocos2d::CCMenuItemToggle::CCMenuItemToggle(void) ; +0x1d, 0x18005ab4d\nmov     rbx, rax                                                       ; +0x22, 0x18005ab52\njmp     short loc_18005AB59                                            ; +0x25, 0x18005ab55\nxor     ebx, ebx                                                       ; +0x27, 0x18005ab57\nxor     edx, edx; struct cocos2d::CCMenuItem *                         ; +0x29, 0x18005ab59\nmov     rcx, rbx; this                                                 ; +0x2b, 0x18005ab5b\ncall    ?initWithItem@CCMenuItemToggle@cocos2d@@QEAA_NPEAVCCMenuItem@2@@Z; cocos2d::CCMenuItemToggle::initWithItem(cocos2d::CCMenuItem *) ; +0x2e, 0x18005ab5e\nmov     rcx, rbx; this                                                 ; +0x33, 0x18005ab63\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x36, 0x18005ab66\nmov     rax, rbx                                                       ; +0x3b, 0x18005ab6b\nadd     rsp, 20h                                                       ; +0x3e, 0x18005ab6e\npop     rbx                                                            ; +0x42, 0x18005ab72\nretn                                                                   ; +0x43, 0x18005ab73", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2d30"], "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"}