{"type": "func", "start": 6442828480, "end": 6442828634, "name": "cocos2d::CCMenuItem::create", "pseudocode": "// \n// cocos2d::CCMenuItem::create from 0x18005c2c0 to 0x18005c35a (154 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenuItem::create @ 0x18005c364\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcf28\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\ncocos2d::CCNodeRGBA *__fastcall cocos2d::CCMenuItem::create(__int64 a1, __int64 a2)\n{\n  cocos2d::CCNodeRGBA *v4; // rax\n  cocos2d::CCNodeRGBA *v5; // rbx\n\n  v4 = (cocos2d::CCNodeRGBA *)sub_1800E4AC0(0x178u);\n  v5 = v4;\n  if ( v4 )\n  {\n    cocos2d::CCNodeRGBA::CCNodeRGBA(v4);\n    *(_QWORD *)v5 = &cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCNode'};\n    *((_QWORD *)v5 + 40) = &cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCRGBAProtocol'};\n    *((_WORD *)v5 + 172) = 0;\n    *((_QWORD *)v5 + 44) = 0;\n    *((_QWORD *)v5 + 45) = 0;\n    *((_QWORD *)v5 + 46) = 0;\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  cocos2d::CCMenuItem::initWithTarget(v5, a1, a2);\n  cocos2d::CCObject::autorelease(v5);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCMenuItem::create from 0x18005c2c0 to 0x18005c35a (154 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenuItem::create @ 0x18005c364\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcf28\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, 0x18005c2c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18005c2c5\npush    rdi                                                            ; +0xa, 0x18005c2ca\nsub     rsp, 20h                                                       ; +0xb, 0x18005c2cb\nmov     rdi, rdx                                                       ; +0xf, 0x18005c2cf\nmov     rsi, rcx                                                       ; +0x12, 0x18005c2d2\nmov     ecx, 178h; Size                                                ; +0x15, 0x18005c2d5\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18005c2da\nmov     rbx, rax                                                       ; +0x1f, 0x18005c2df\nmov     [rsp+28h+arg_10], rax                                          ; +0x22, 0x18005c2e2\ntest    rax, rax                                                       ; +0x27, 0x18005c2e7\njz      short loc_18005C32E                                            ; +0x2a, 0x18005c2ea\nmov     rcx, rax; this                                                 ; +0x2c, 0x18005c2ec\ncall    ??0CCNodeRGBA@cocos2d@@QEAA@XZ; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x2f, 0x18005c2ef\nlea     rax, ??_7CCMenuItem@cocos2d@@6BCCNode@1@@; const cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCNode'} ; +0x34, 0x18005c2f4\nmov     [rbx], rax                                                     ; +0x3b, 0x18005c2fb\nlea     rax, ??_7CCMenuItem@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCMenuItem::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x3e, 0x18005c2fe\nmov     [rbx+140h], rax                                                ; +0x45, 0x18005c305\nmov     word ptr [rbx+158h], 0                                         ; +0x4c, 0x18005c30c\nxor     eax, eax                                                       ; +0x55, 0x18005c315\nmov     [rbx+160h], rax                                                ; +0x57, 0x18005c317\nmov     [rbx+168h], rax                                                ; +0x5e, 0x18005c31e\nmov     [rbx+170h], rax                                                ; +0x65, 0x18005c325\njmp     short loc_18005C331                                            ; +0x6c, 0x18005c32c\nmov     rbx, rax                                                       ; +0x6e, 0x18005c32e\nmov     r8, rdi                                                        ; +0x71, 0x18005c331\nmov     rdx, rsi                                                       ; +0x74, 0x18005c334\nmov     rcx, rbx                                                       ; +0x77, 0x18005c337\ncall    ?initWithTarget@CCMenuItem@cocos2d@@QEAA_NPEAVCCObject@2@P832@EAAX0@Z@Z; cocos2d::CCMenuItem::initWithTarget(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x7a, 0x18005c33a\nmov     rcx, rbx; this                                                 ; +0x7f, 0x18005c33f\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x82, 0x18005c342\nmov     rax, rbx                                                       ; +0x87, 0x18005c347\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8a, 0x18005c34a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8f, 0x18005c34f\nadd     rsp, 20h                                                       ; +0x94, 0x18005c354\npop     rdi                                                            ; +0x98, 0x18005c358\nretn                                                                   ; +0x99, 0x18005c359", "xrefs": ["cocos2d::CCMenuItem::create @ 0x18005c364", "<???> @ 0x18014cf68", "<???> @ 0x1801bcf28"], "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"}