//
// 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
//
bool __fastcall cocos2d::CCLayerMultiplex::initWithArray(cocos2d::CCLayerMultiplex *this, struct cocos2d::CCArray *a2)
{
struct cocos2d::CCDirector *v4; // rax
__int64 v5; // rbx
__int64 v6; // rax
unsigned int v7; // eax
cocos2d::CCArray *v8; // rax
cocos2d::CCArray *v9; // rcx
__int64 v10; // rbx
struct cocos2d::CCString *v11; // rax
char v13; // [rsp+40h] [rbp+18h] BYREF
v4 = cocos2d::CCDirector::sharedDirector();
if ( v4 )
{
v5 = *(_QWORD *)this;
cocos2d::CCDirector::getWinSize(v4, &v13);
(*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, __int64))(v5 + 312))(this, v6);
*((_WORD *)this + 180) = 0;
v7 = cocos2d::CCArray::count(a2);
v8 = cocos2d::CCArray::createWithCapacity(v7);
*((_QWORD *)this + 52) = v8;
cocos2d::CCArray::addObjectsFromArray(v8, a2);
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 52));
v9 = *((cocos2d::CCArray **)this + 52);
v10 = *(_QWORD *)this;
*((_DWORD *)this + 102) = 0;
v11 = cocos2d::CCArray::stringAtIndex(v9, 0);
(*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))(v10 + 464))(this, v11);
LOBYTE(v4) = 1;
}
return (char)v4;
}