//
// cocos2d::CCScrollLayer::initWithLayers from 0x2e7d0c to 0x2e7dda (206 bytes)
//
// 1 xrefs:
// > cocos2d::CCScrollLayer::nodeWithLayers @ 0x2e7e98
//
// 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
//
bool __fastcall cocos2d::CCScrollLayer::initWithLayers(cocos2d::CCLayer *this, cocos2d::CCArray *a2, int a3)
{
_BOOL4 v6; // r8
cocos2d::CCDirector *v7; // r0
cocos2d::CCTouchDispatcher *v8; // r0
cocos2d::CCDirector *v9; // r0
cocos2d::CCDirector *v10; // r0
unsigned int v11; // r5
int height; // s15
float v13; // s15
unsigned int v14; // r1
cocos2d::CCNode *v15; // r0
cocos2d::CCSize v17; // [sp+4h] [bp-10h] BYREF
v6 = cocos2d::CCLayer::init(this);
if ( v6 )
{
v7 = cocos2d::CCDirector::sharedDirector();
v8 = v7->getTouchDispatcher(v7);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v8, &this->cocos2d::CCTouchDelegate, 0, 1);
*((_DWORD *)this + 79) = 1;
v9 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v17, v9);
*((float *)this + 81) = (float)((int)v17.width - a3);
v10 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v17, v10);
v11 = 0;
height = (int)v17.height;
*((_DWORD *)this + 83) = *((_DWORD *)this + 81);
v13 = (float)height;
*((float *)this + 82) = v13;
*((float *)this + 84) = v13;
while ( v11 < cocos2d::CCArray::count(a2) )
{
v14 = v11++;
v15 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a2, v14);
this->addChild(this, v15);
}
*((_DWORD *)this + 80) = cocos2d::CCArray::count(a2);
}
return v6;
}