//
// cocos2d::CCLayerMultiplex::initWithArray from 0xd5df3c to 0xd5dfc0 (132 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayerMultiplex::createWithArray @ 0xd5dfe8
// > ??> @ 0x44d58
//
// This function is hookable on this platform (idp: arm, 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 13:07:49 +0000
//
__int64 __fastcall cocos2d::CCLayerMultiplex::initWithArray(cocos2d::CCLayerMultiplex *this, cocos2d::CCArray *a2)
{
unsigned __int8 v3; // w0
unsigned int v4; // w20
cocos2d::CCArray *v5; // x0
cocos2d::CCArray *v6; // x0
void (__fastcall *v7)(cocos2d::CCLayerMultiplex *, __int64); // x21
__int64 v8; // x0
v3 = cocos2d::CCLayer::init(this);
v4 = v3;
if ( v3 )
{
v5 = (cocos2d::CCArray *)cocos2d::CCArray::count(a2);
v6 = cocos2d::CCArray::createWithCapacity(v5);
*((_QWORD *)this + 51) = v6;
cocos2d::CCArray::addObjectsFromArray(v6, a2);
cocos2d::CCObject::retain(*((_QWORD *)this + 51));
*((_DWORD *)this + 101) = 0;
v7 = *(void (__fastcall **)(cocos2d::CCLayerMultiplex *, __int64))(*(_QWORD *)this + 456LL);
v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 51), 0);
v7(this, v8);
}
return v4;
}