{"type": "func", "start": 6442824512, "end": 6442824602, "name": "cocos2d::CCMenu::createWithItems", "pseudocode": "// \n// cocos2d::CCMenu::createWithItems from 0x18005b340 to 0x18005b39a (90 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcd78\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\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 0x18005b340 to 0x18005b39a (90 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcd78\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, 0x18005b340\npush    rdi                                                            ; +0x5, 0x18005b345\nsub     rsp, 20h                                                       ; +0x6, 0x18005b346\nxor     edi, edi                                                       ; +0xa, 0x18005b34a\nmov     rbx, rdx                                                       ; +0xc, 0x18005b34c\ntest    rcx, rcx                                                       ; +0xf, 0x18005b34f\njz      short loc_18005B388                                            ; +0x12, 0x18005b352\nxor     edx, edx                                                       ; +0x14, 0x18005b354\ncall    ?create@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@ZZ; cocos2d::CCArray::create(cocos2d::CCObject *,...) ; +0x16, 0x18005b356\nmov     rcx, [rbx]                                                     ; +0x1b, 0x18005b35b\nmov     rdi, rax                                                       ; +0x1e, 0x18005b35e\ntest    rcx, rcx                                                       ; +0x21, 0x18005b361\njz      short loc_18005B388                                            ; +0x24, 0x18005b364\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x18005b366\nmov     rdx, rcx; struct cocos2d::CCObject *                           ; +0x30, 0x18005b370\nmov     rcx, rdi; this                                                 ; +0x33, 0x18005b373\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x36, 0x18005b376\nmov     rcx, [rbx+8]                                                   ; +0x3b, 0x18005b37b\nlea     rbx, [rbx+8]                                                   ; +0x3f, 0x18005b37f\ntest    rcx, rcx                                                       ; +0x43, 0x18005b383\njnz     short loc_18005B370                                            ; +0x46, 0x18005b386\nmov     rcx, rdi; struct cocos2d::CCArray *                            ; +0x48, 0x18005b388\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x18005b38b\nadd     rsp, 20h                                                       ; +0x50, 0x18005b390\npop     rdi                                                            ; +0x54, 0x18005b394\njmp     ?createWithArray@CCMenu@cocos2d@@SAPEAV12@PEAVCCArray@2@@Z; cocos2d::CCMenu::createWithArray(cocos2d::CCArray *) ; +0x55, 0x18005b395", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bcd78"], "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"}