//
// cocos2d::CCScrollLayer::nodeWithLayers from 0x578f1c to 0x579064 (328 bytes)
//
// 1 xrefs:
// > ??> @ 0x90120
//
// 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
//
__int64 __fastcall cocos2d::CCScrollLayer::nodeWithLayers(cocos2d::CCArray *this, cocos2d::CCArray *a2)
{
int v3; // w20
__int64 v4; // x19
v3 = (int)a2;
v4 = operator new(0x200u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v4);
*(_DWORD *)(v4 + 404) = 0;
*(_QWORD *)v4 = &off_1139EC0;
*(_QWORD *)(v4 + 320) = off_113A340;
*(_QWORD *)(v4 + 328) = &off_113A3B0;
*(_QWORD *)(v4 + 336) = off_113A3C8;
*(_QWORD *)(v4 + 344) = &off_113A3E8;
*(_QWORD *)(v4 + 352) = off_113A408;
*(_DWORD *)(v4 + 408) = 0;
*(_DWORD *)(v4 + 428) = 0;
*(_QWORD *)(v4 + 440) = 0;
*(_BYTE *)(v4 + 456) = 0;
*(_BYTE *)(v4 + 457) = 0;
*(_DWORD *)(v4 + 412) = 0;
*(_DWORD *)(v4 + 416) = 0;
*(_DWORD *)(v4 + 420) = 0;
*(_DWORD *)(v4 + 424) = 0;
*(_DWORD *)(v4 + 432) = 0;
*(_DWORD *)(v4 + 448) = 0;
*(_DWORD *)(v4 + 452) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 460), 0.0, 0.0);
*(_DWORD *)(v4 + 468) = 0;
*(_QWORD *)(v4 + 480) = 0;
*(_DWORD *)(v4 + 492) = 0;
*(_BYTE *)(v4 + 496) = 0;
*(_QWORD *)(v4 + 504) = 0;
*(_DWORD *)(v4 + 472) = 0;
*(_DWORD *)(v4 + 476) = 0;
*(_DWORD *)(v4 + 488) = 0;
if ( cocos2d::CCScrollLayer::initWithLayers((cocos2d::CCLayer *)v4, this, v3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return 0;
}
}