{"type": "func", "start": 6442787184, "end": 6442787429, "name": "cocos2d::CCLayerMultiplex::initWithLayers", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::initWithLayers from 0x180052170 to 0x180052265 (245 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCLayerMultiplex::create @ 0x180051912\n// > <???> @ 0x180141694\n// > <???> @ 0x1801416a4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc220\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::initWithLayers(\n        cocos2d::CCLayerMultiplex *this,\n        struct cocos2d::CCLayer *a2,\n        char *a3)\n{\n  struct cocos2d::CCDirector *v6; // rax\n  __int64 v7; // rdi\n  __int64 v8; // rax\n  struct cocos2d::CCArray *v9; // rax\n  struct cocos2d::CCObject *v10; // rax\n  cocos2d::CCArray *v11; // rcx\n  __int64 v12; // rbx\n  struct cocos2d::CCString *v13; // rax\n  char v15; // [rsp+48h] [rbp+20h] BYREF\n\n  v6 = cocos2d::CCDirector::sharedDirector();\n  if ( v6 )\n  {\n    v7 = *(_QWORD *)this;\n    cocos2d::CCDirector::getWinSize(v6, &v15);\n    (*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, __int64))(v7 + 312))(this, v8);\n    *((_WORD *)this + 180) = 0;\n    v9 = cocos2d::CCArray::createWithCapacity(5u);\n    *((_QWORD *)this + 52) = v9;\n    cocos2d::CCObject::retain(v9);\n    cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 52), a2);\n    v10 = *(struct cocos2d::CCObject **)a3;\n    if ( *(_QWORD *)a3 )\n    {\n      do\n      {\n        cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 52), v10);\n        v10 = *((struct cocos2d::CCObject **)a3 + 1);\n        a3 += 8;\n      }\n      while ( v10 );\n    }\n    v11 = *((cocos2d::CCArray **)this + 52);\n    v12 = *(_QWORD *)this;\n    *((_DWORD *)this + 102) = 0;\n    v13 = cocos2d::CCArray::stringAtIndex(v11, 0);\n    (*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))(v12 + 464))(this, v13);\n    LOBYTE(v6) = 1;\n  }\n  return (char)v6;\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::initWithLayers from 0x180052170 to 0x180052265 (245 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCLayerMultiplex::create @ 0x180051912\n; > <???> @ 0x180141694\n; > <???> @ 0x1801416a4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc220\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], rbx                                               ; +0x0, 0x180052170\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180052175\npush    rsi                                                            ; +0xa, 0x18005217a\nsub     rsp, 20h                                                       ; +0xb, 0x18005217b\nmov     rbx, r8                                                        ; +0xf, 0x18005217f\nmov     rbp, rdx                                                       ; +0x12, 0x180052182\nmov     rsi, rcx                                                       ; +0x15, 0x180052185\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x180052188\ntest    rax, rax                                                       ; +0x1d, 0x18005218d\njz      loc_180052255                                                  ; +0x20, 0x180052190\nmov     [rsp+28h+arg_0], rdi                                           ; +0x26, 0x180052196\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x2b, 0x18005219b\nmov     rdi, [rsi]                                                     ; +0x30, 0x1800521a0\nmov     rcx, rax                                                       ; +0x33, 0x1800521a3\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x36, 0x1800521a6\nmov     rdx, rax                                                       ; +0x3b, 0x1800521ab\nmov     rcx, rsi                                                       ; +0x3e, 0x1800521ae\ncall    qword ptr [rdi+138h]                                           ; +0x41, 0x1800521b1\nmov     ecx, 5; Count                                                  ; +0x47, 0x1800521b7\nmov     word ptr [rsi+168h], 0                                         ; +0x4c, 0x1800521bc\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x55, 0x1800521c5\nmov     rcx, rax; this                                                 ; +0x5a, 0x1800521ca\nmov     [rsi+1A0h], rax                                                ; +0x5d, 0x1800521cd\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x64, 0x1800521d4\nmov     rcx, [rsi+1A0h]; this                                          ; +0x69, 0x1800521d9\nmov     rdx, rbp; struct cocos2d::CCObject *                           ; +0x70, 0x1800521e0\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x73, 0x1800521e3\nmov     rax, [rbx]                                                     ; +0x78, 0x1800521e8\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7b, 0x1800521eb\ntest    rax, rax                                                       ; +0x80, 0x1800521f0\njz      short loc_18005221C                                            ; +0x83, 0x1800521f3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x85, 0x1800521f5\nmov     rcx, [rsi+1A0h]; this                                          ; +0x90, 0x180052200\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x97, 0x180052207\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x9a, 0x18005220a\nmov     rax, [rbx+8]                                                   ; +0x9f, 0x18005220f\nlea     rbx, [rbx+8]                                                   ; +0xa3, 0x180052213\ntest    rax, rax                                                       ; +0xa7, 0x180052217\njnz     short loc_180052200                                            ; +0xaa, 0x18005221a\nmov     rcx, [rsi+1A0h]; this                                          ; +0xac, 0x18005221c\nxor     edx, edx; unsigned int                                         ; +0xb3, 0x180052223\nmov     rbx, [rsi]                                                     ; +0xb5, 0x180052225\nmov     dword ptr [rsi+198h], 0                                        ; +0xb8, 0x180052228\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0xc2, 0x180052232\nmov     rdx, rax                                                       ; +0xc7, 0x180052237\nmov     rcx, rsi                                                       ; +0xca, 0x18005223a\ncall    qword ptr [rbx+1D0h]                                           ; +0xcd, 0x18005223d\nmov     al, 1                                                          ; +0xd3, 0x180052243\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd5, 0x180052245\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xda, 0x18005224a\nadd     rsp, 20h                                                       ; +0xdf, 0x18005224f\npop     rsi                                                            ; +0xe3, 0x180052253\nretn                                                                   ; +0xe4, 0x180052254\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe5, 0x180052255\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xea, 0x18005225a\nadd     rsp, 20h                                                       ; +0xef, 0x18005225f\npop     rsi                                                            ; +0xf3, 0x180052263\nretn                                                                   ; +0xf4, 0x180052264", "xrefs": ["cocos2d::CCLayerMultiplex::create @ 0x180051912", "<???> @ 0x180141694", "<???> @ 0x1801416a4", "<???> @ 0x18014cf68", "<???> @ 0x1801bc220"], "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"}