//
// cocos2d::CCLayerMultiplex::initWithLayers from 0x7d82be to 0x7d8314 (86 bytes)
//
// 1 xrefs:
// > cocos2d::CCLayerMultiplex::create @ 0x7d833e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:41 +0000
//
int __fastcall cocos2d::CCLayerMultiplex::initWithLayers(
cocos2d::CCArray **this,
cocos2d::CCLayer *a2,
cocos2d::CCObject **a3)
{
unsigned int v6; // r1
int v7; // r6
cocos2d::CCArray *v8; // r0
cocos2d::CCObject *i; // r1
cocos2d::CCObject *v10; // t1
cocos2d::CCArray *v11; // r3
void (__fastcall *v12)(cocos2d::CCArray **, int); // r5
int v13; // r0
v7 = cocos2d::CCLayer::init((cocos2d::CCLayer *)this);
if ( v7 )
{
v8 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)&byte_5, v6);
*(this + 80) = v8;
cocos2d::CCObject::retain((int)v8);
cocos2d::CCArray::addObject(*(this + 80), a2);
for ( i = *a3; i; i = v10 )
{
cocos2d::CCArray::addObject(*(this + 80), i);
v10 = a3[1];
++a3;
}
v11 = *this;
*(this + 79) = nullptr;
v12 = *((void (__fastcall **)(cocos2d::CCArray **, int))v11 + 57);
v13 = cocos2d::CCArray::objectAtIndex(*(this + 80), 0);
v12(this, v13);
}
return v7;
}