{"type": "func", "start": 6442786304, "end": 6442786489, "name": "cocos2d::CCLayerMultiplex::initWithArray", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::initWithArray from 0x180051e00 to 0x180051eb9 (185 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCLayerMultiplex::createWithArray @ 0x1800519fb\n// > <???> @ 0x1801416b8\n// > <???> @ 0x1801416c8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc1b4\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:45 +0000\n// \n\nbool __fastcall cocos2d::CCLayerMultiplex::initWithArray(cocos2d::CCLayerMultiplex *this, struct cocos2d::CCArray *a2)\n{\n  struct cocos2d::CCDirector *v4; // rax\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  unsigned int v7; // eax\n  cocos2d::CCArray *v8; // rax\n  cocos2d::CCArray *v9; // rcx\n  __int64 v10; // rbx\n  struct cocos2d::CCString *v11; // rax\n  char v13; // [rsp+40h] [rbp+18h] BYREF\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  if ( v4 )\n  {\n    v5 = *(_QWORD *)this;\n    cocos2d::CCDirector::getWinSize(v4, &v13);\n    (*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, __int64))(v5 + 312))(this, v6);\n    *((_WORD *)this + 180) = 0;\n    v7 = cocos2d::CCArray::count(a2);\n    v8 = cocos2d::CCArray::createWithCapacity(v7);\n    *((_QWORD *)this + 52) = v8;\n    cocos2d::CCArray::addObjectsFromArray(v8, a2);\n    cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 52));\n    v9 = *((cocos2d::CCArray **)this + 52);\n    v10 = *(_QWORD *)this;\n    *((_DWORD *)this + 102) = 0;\n    v11 = cocos2d::CCArray::stringAtIndex(v9, 0);\n    (*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))(v10 + 464))(this, v11);\n    LOBYTE(v4) = 1;\n  }\n  return (char)v4;\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::initWithArray from 0x180051e00 to 0x180051eb9 (185 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCLayerMultiplex::createWithArray @ 0x1800519fb\n; > <???> @ 0x1801416b8\n; > <???> @ 0x1801416c8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc1b4\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:45 +0000\n; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x180051e00\npush    rdi                                                            ; +0x5, 0x180051e05\nsub     rsp, 20h                                                       ; +0x6, 0x180051e06\nmov     rsi, rdx                                                       ; +0xa, 0x180051e0a\nmov     rdi, rcx                                                       ; +0xd, 0x180051e0d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x180051e10\ntest    rax, rax                                                       ; +0x15, 0x180051e15\njz      loc_180051EAE                                                  ; +0x18, 0x180051e18\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1e, 0x180051e1e\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x23, 0x180051e23\nmov     rbx, [rdi]                                                     ; +0x28, 0x180051e28\nmov     rcx, rax                                                       ; +0x2b, 0x180051e2b\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x2e, 0x180051e2e\nmov     rdx, rax                                                       ; +0x33, 0x180051e33\nmov     rcx, rdi                                                       ; +0x36, 0x180051e36\ncall    qword ptr [rbx+138h]                                           ; +0x39, 0x180051e39\nmov     rcx, rsi; this                                                 ; +0x3f, 0x180051e3f\nmov     word ptr [rdi+168h], 0                                         ; +0x42, 0x180051e42\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x180051e4b\nmov     ecx, eax; Count                                                ; +0x50, 0x180051e50\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x52, 0x180051e52\nmov     rdx, rsi; struct cocos2d::CCArray *                            ; +0x57, 0x180051e57\nmov     [rdi+1A0h], rax                                                ; +0x5a, 0x180051e5a\nmov     rcx, rax; this                                                 ; +0x61, 0x180051e61\ncall    ?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x64, 0x180051e64\nmov     rcx, [rdi+1A0h]; this                                          ; +0x69, 0x180051e69\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x70, 0x180051e70\nmov     rcx, [rdi+1A0h]; this                                          ; +0x75, 0x180051e75\nxor     edx, edx; unsigned int                                         ; +0x7c, 0x180051e7c\nmov     rbx, [rdi]                                                     ; +0x7e, 0x180051e7e\nmov     dword ptr [rdi+198h], 0                                        ; +0x81, 0x180051e81\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x8b, 0x180051e8b\nmov     rdx, rax                                                       ; +0x90, 0x180051e90\nmov     rcx, rdi                                                       ; +0x93, 0x180051e93\ncall    qword ptr [rbx+1D0h]                                           ; +0x96, 0x180051e96\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9c, 0x180051e9c\nmov     al, 1                                                          ; +0xa1, 0x180051ea1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa3, 0x180051ea3\nadd     rsp, 20h                                                       ; +0xa8, 0x180051ea8\npop     rdi                                                            ; +0xac, 0x180051eac\nretn                                                                   ; +0xad, 0x180051ead\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x180051eae\nadd     rsp, 20h                                                       ; +0xb3, 0x180051eb3\npop     rdi                                                            ; +0xb7, 0x180051eb7\nretn                                                                   ; +0xb8, 0x180051eb8", "xrefs": ["cocos2d::CCLayerMultiplex::createWithArray @ 0x1800519fb", "<???> @ 0x1801416b8", "<???> @ 0x1801416c8", "<???> @ 0x18014cf68", "<???> @ 0x1801bc1b4"], "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"}