{"type": "func", "start": 6442816336, "end": 6442816426, "name": "cocos2d::CCMenu::createWithItems", "pseudocode": "// \n// cocos2d::CCMenu::createWithItems from 0x180059350 to 0x1800593aa (90 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2ae4\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\nstruct cocos2d::CCMenu *__fastcall cocos2d::CCMenu::createWithItems(struct cocos2d::CCMenuItem *a1, char *a2)\n{\n  cocos2d::CCArray *v2; // rdi\n  struct cocos2d::CCArray *v4; // rax\n  struct cocos2d::CCObject *v5; // rcx\n\n  v2 = nullptr;\n  if ( a1 )\n  {\n    v4 = cocos2d::CCArray::create(a1, 0);\n    v5 = *(struct cocos2d::CCObject **)a2;\n    v2 = v4;\n    if ( *(_QWORD *)a2 )\n    {\n      do\n      {\n        cocos2d::CCArray::addObject(v2, v5);\n        v5 = *((struct cocos2d::CCObject **)a2 + 1);\n        a2 += 8;\n      }\n      while ( v5 );\n    }\n  }\n  return cocos2d::CCMenu::createWithArray(v2);\n}", "assembly": "; \n; cocos2d::CCMenu::createWithItems from 0x180059350 to 0x1800593aa (90 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2ae4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180059350\npush    rdi                                                            ; +0x5, 0x180059355\nsub     rsp, 20h                                                       ; +0x6, 0x180059356\nxor     edi, edi                                                       ; +0xa, 0x18005935a\nmov     rbx, rdx                                                       ; +0xc, 0x18005935c\ntest    rcx, rcx                                                       ; +0xf, 0x18005935f\njz      short loc_180059398                                            ; +0x12, 0x180059362\nxor     edx, edx                                                       ; +0x14, 0x180059364\ncall    ?create@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@ZZ; cocos2d::CCArray::create(cocos2d::CCObject *,...) ; +0x16, 0x180059366\nmov     rcx, [rbx]                                                     ; +0x1b, 0x18005936b\nmov     rdi, rax                                                       ; +0x1e, 0x18005936e\ntest    rcx, rcx                                                       ; +0x21, 0x180059371\njz      short loc_180059398                                            ; +0x24, 0x180059374\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x180059376\nmov     rdx, rcx; struct cocos2d::CCObject *                           ; +0x30, 0x180059380\nmov     rcx, rdi; this                                                 ; +0x33, 0x180059383\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x36, 0x180059386\nmov     rcx, [rbx+8]                                                   ; +0x3b, 0x18005938b\nlea     rbx, [rbx+8]                                                   ; +0x3f, 0x18005938f\ntest    rcx, rcx                                                       ; +0x43, 0x180059393\njnz     short loc_180059380                                            ; +0x46, 0x180059396\nmov     rcx, rdi; struct cocos2d::CCArray *                            ; +0x48, 0x180059398\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x18005939b\nadd     rsp, 20h                                                       ; +0x50, 0x1800593a0\npop     rdi                                                            ; +0x54, 0x1800593a4\njmp     ?createWithArray@CCMenu@cocos2d@@SAPEAV12@PEAVCCArray@2@@Z; cocos2d::CCMenu::createWithArray(cocos2d::CCArray *) ; +0x55, 0x1800593a5", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2ae4"], "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"}