{"type": "func", "start": 6442778592, "end": 6442778777, "name": "cocos2d::CCLayerMultiplex::initWithArray", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::initWithArray from 0x18004ffe0 to 0x180050099 (185 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCLayerMultiplex::createWithArray @ 0x18004fbdb\n// > <???> @ 0x1801384a0\n// > <???> @ 0x1801384b0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1f20\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\nbool __fastcall cocos2d::CCLayerMultiplex::initWithArray(cocos2d::CCLayerMultiplex *this, struct cocos2d::CCArray *a2)\n{\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCLayerMultiplex_vtbl *v5; // rbx\n  struct cocos2d::CCSize WinSize; // rax\n  unsigned int v7; // eax\n  cocos2d::CCArray *v8; // rax\n  cocos2d::CCArray *v9; // rcx\n  cocos2d::CCLayerMultiplex_vtbl *v10; // rbx\n  struct cocos2d::CCString *v11; // rax\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  if ( v4 )\n  {\n    v5 = this->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    WinSize = cocos2d::CCDirector::getWinSize(v4);\n    ((void (__fastcall *)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCSize))v5->setContentSize)(this, WinSize);\n    *(_WORD *)&this->m_bTouchEnabled = 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 = this->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    *((_DWORD *)this + 102) = 0;\n    v11 = cocos2d::CCArray::stringAtIndex(v9, 0);\n    ((void (__fastcall *)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))v10->addChild_1)(this, v11);\n    LOBYTE(v4) = 1;\n  }\n  return (char)v4;\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::initWithArray from 0x18004ffe0 to 0x180050099 (185 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCLayerMultiplex::createWithArray @ 0x18004fbdb\n; > <???> @ 0x1801384a0\n; > <???> @ 0x1801384b0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1f20\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_8], rsi                                               ; +0x0, 0x18004ffe0\npush    rdi                                                            ; +0x5, 0x18004ffe5\nsub     rsp, 20h                                                       ; +0x6, 0x18004ffe6\nmov     rsi, rdx                                                       ; +0xa, 0x18004ffea\nmov     rdi, rcx                                                       ; +0xd, 0x18004ffed\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x18004fff0\ntest    rax, rax                                                       ; +0x15, 0x18004fff5\njz      loc_18005008E                                                  ; +0x18, 0x18004fff8\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1e, 0x18004fffe\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x23, 0x180050003\nmov     rbx, [rdi]                                                     ; +0x28, 0x180050008\nmov     rcx, rax                                                       ; +0x2b, 0x18005000b\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x2e, 0x18005000e\nmov     rdx, rax                                                       ; +0x33, 0x180050013\nmov     rcx, rdi                                                       ; +0x36, 0x180050016\ncall    qword ptr [rbx+128h]                                           ; +0x39, 0x180050019\nmov     rcx, rsi; this                                                 ; +0x3f, 0x18005001f\nmov     word ptr [rdi+168h], 0                                         ; +0x42, 0x180050022\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x18005002b\nmov     ecx, eax; Count                                                ; +0x50, 0x180050030\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x52, 0x180050032\nmov     rdx, rsi; struct cocos2d::CCArray *                            ; +0x57, 0x180050037\nmov     [rdi+1A0h], rax                                                ; +0x5a, 0x18005003a\nmov     rcx, rax; this                                                 ; +0x61, 0x180050041\ncall    ?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x64, 0x180050044\nmov     rcx, [rdi+1A0h]; this                                          ; +0x69, 0x180050049\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x70, 0x180050050\nmov     rcx, [rdi+1A0h]; this                                          ; +0x75, 0x180050055\nxor     edx, edx; unsigned int                                         ; +0x7c, 0x18005005c\nmov     rbx, [rdi]                                                     ; +0x7e, 0x18005005e\nmov     dword ptr [rdi+198h], 0                                        ; +0x81, 0x180050061\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x8b, 0x18005006b\nmov     rdx, rax                                                       ; +0x90, 0x180050070\nmov     rcx, rdi                                                       ; +0x93, 0x180050073\ncall    qword ptr [rbx+1C0h]                                           ; +0x96, 0x180050076\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9c, 0x18005007c\nmov     al, 1                                                          ; +0xa1, 0x180050081\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa3, 0x180050083\nadd     rsp, 20h                                                       ; +0xa8, 0x180050088\npop     rdi                                                            ; +0xac, 0x18005008c\nretn                                                                   ; +0xad, 0x18005008d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x18005008e\nadd     rsp, 20h                                                       ; +0xb3, 0x180050093\npop     rdi                                                            ; +0xb7, 0x180050097\nretn                                                                   ; +0xb8, 0x180050098", "xrefs": ["cocos2d::CCLayerMultiplex::createWithArray @ 0x18004fbdb", "<???> @ 0x1801384a0", "<???> @ 0x1801384b0", "<???> @ 0x1801438a8", "<???> @ 0x1801b1f20"], "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"}