; ; cocos2d::CCLayerMultiplex::initWithLayers from 0x180050350 to 0x180050445 (245 bytes) ; ; 5 xrefs: ; > cocos2d::CCLayerMultiplex::create @ 0x18004faf2 ; > @ 0x18013847c ; > @ 0x18013848c ; > @ 0x1801438a8 ; > @ 0x1801b1f8c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x180050350 mov [rsp+arg_10], rbp ; +0x5, 0x180050355 push rsi ; +0xa, 0x18005035a sub rsp, 20h ; +0xb, 0x18005035b mov rbx, r8 ; +0xf, 0x18005035f mov rbp, rdx ; +0x12, 0x180050362 mov rsi, rcx ; +0x15, 0x180050365 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x180050368 test rax, rax ; +0x1d, 0x18005036d jz loc_180050435 ; +0x20, 0x180050370 mov [rsp+28h+arg_0], rdi ; +0x26, 0x180050376 lea rdx, [rsp+28h+arg_18] ; +0x2b, 0x18005037b mov rdi, [rsi] ; +0x30, 0x180050380 mov rcx, rax ; +0x33, 0x180050383 call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x36, 0x180050386 mov rdx, rax ; +0x3b, 0x18005038b mov rcx, rsi ; +0x3e, 0x18005038e call qword ptr [rdi+128h] ; +0x41, 0x180050391 mov ecx, 5; Count ; +0x47, 0x180050397 mov word ptr [rsi+168h], 0 ; +0x4c, 0x18005039c call ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x55, 0x1800503a5 mov rcx, rax; this ; +0x5a, 0x1800503aa mov [rsi+1A0h], rax ; +0x5d, 0x1800503ad call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x64, 0x1800503b4 mov rcx, [rsi+1A0h]; this ; +0x69, 0x1800503b9 mov rdx, rbp; struct cocos2d::CCObject * ; +0x70, 0x1800503c0 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x73, 0x1800503c3 mov rax, [rbx] ; +0x78, 0x1800503c8 mov rdi, [rsp+28h+arg_0] ; +0x7b, 0x1800503cb test rax, rax ; +0x80, 0x1800503d0 jz short loc_1800503FC ; +0x83, 0x1800503d3 nop word ptr [rax+rax+00000000h] ; +0x85, 0x1800503d5 mov rcx, [rsi+1A0h]; this ; +0x90, 0x1800503e0 mov rdx, rax; struct cocos2d::CCObject * ; +0x97, 0x1800503e7 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x9a, 0x1800503ea mov rax, [rbx+8] ; +0x9f, 0x1800503ef lea rbx, [rbx+8] ; +0xa3, 0x1800503f3 test rax, rax ; +0xa7, 0x1800503f7 jnz short loc_1800503E0 ; +0xaa, 0x1800503fa mov rcx, [rsi+1A0h]; this ; +0xac, 0x1800503fc xor edx, edx; unsigned int ; +0xb3, 0x180050403 mov rbx, [rsi] ; +0xb5, 0x180050405 mov dword ptr [rsi+198h], 0 ; +0xb8, 0x180050408 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0xc2, 0x180050412 mov rdx, rax ; +0xc7, 0x180050417 mov rcx, rsi ; +0xca, 0x18005041a call qword ptr [rbx+1C0h] ; +0xcd, 0x18005041d mov al, 1 ; +0xd3, 0x180050423 mov rbx, [rsp+28h+arg_8] ; +0xd5, 0x180050425 mov rbp, [rsp+28h+arg_10] ; +0xda, 0x18005042a add rsp, 20h ; +0xdf, 0x18005042f pop rsi ; +0xe3, 0x180050433 retn ; +0xe4, 0x180050434 mov rbx, [rsp+28h+arg_8] ; +0xe5, 0x180050435 mov rbp, [rsp+28h+arg_10] ; +0xea, 0x18005043a add rsp, 20h ; +0xef, 0x18005043f pop rsi ; +0xf3, 0x180050443 retn ; +0xf4, 0x180050444