; ; cocos2d::CCLayerMultiplex::initWithArray from 0x180051e00 to 0x180051eb9 (185 bytes) ; ; 5 xrefs: ; > cocos2d::CCLayerMultiplex::createWithArray @ 0x1800519fb ; > @ 0x1801416b8 ; > @ 0x1801416c8 ; > @ 0x18014cf68 ; > @ 0x1801bc1b4 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:45 +0000 ; mov [rsp+arg_8], rsi ; +0x0, 0x180051e00 push rdi ; +0x5, 0x180051e05 sub rsp, 20h ; +0x6, 0x180051e06 mov rsi, rdx ; +0xa, 0x180051e0a mov rdi, rcx ; +0xd, 0x180051e0d call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x180051e10 test rax, rax ; +0x15, 0x180051e15 jz loc_180051EAE ; +0x18, 0x180051e18 mov [rsp+28h+arg_0], rbx ; +0x1e, 0x180051e1e lea rdx, [rsp+28h+arg_10] ; +0x23, 0x180051e23 mov rbx, [rdi] ; +0x28, 0x180051e28 mov rcx, rax ; +0x2b, 0x180051e2b call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x2e, 0x180051e2e mov rdx, rax ; +0x33, 0x180051e33 mov rcx, rdi ; +0x36, 0x180051e36 call qword ptr [rbx+138h] ; +0x39, 0x180051e39 mov rcx, rsi; this ; +0x3f, 0x180051e3f mov word ptr [rdi+168h], 0 ; +0x42, 0x180051e42 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x180051e4b mov ecx, eax; Count ; +0x50, 0x180051e50 call ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x52, 0x180051e52 mov rdx, rsi; struct cocos2d::CCArray * ; +0x57, 0x180051e57 mov [rdi+1A0h], rax ; +0x5a, 0x180051e5a mov rcx, rax; this ; +0x61, 0x180051e61 call ?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x64, 0x180051e64 mov rcx, [rdi+1A0h]; this ; +0x69, 0x180051e69 call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x70, 0x180051e70 mov rcx, [rdi+1A0h]; this ; +0x75, 0x180051e75 xor edx, edx; unsigned int ; +0x7c, 0x180051e7c mov rbx, [rdi] ; +0x7e, 0x180051e7e mov dword ptr [rdi+198h], 0 ; +0x81, 0x180051e81 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x8b, 0x180051e8b mov rdx, rax ; +0x90, 0x180051e90 mov rcx, rdi ; +0x93, 0x180051e93 call qword ptr [rbx+1D0h] ; +0x96, 0x180051e96 mov rbx, [rsp+28h+arg_0] ; +0x9c, 0x180051e9c mov al, 1 ; +0xa1, 0x180051ea1 mov rsi, [rsp+28h+arg_8] ; +0xa3, 0x180051ea3 add rsp, 20h ; +0xa8, 0x180051ea8 pop rdi ; +0xac, 0x180051eac retn ; +0xad, 0x180051ead mov rsi, [rsp+28h+arg_8] ; +0xae, 0x180051eae add rsp, 20h ; +0xb3, 0x180051eb3 pop rdi ; +0xb7, 0x180051eb7 retn ; +0xb8, 0x180051eb8