//
// ScrollingLayer::init from 0x5a9578 to 0x5a967c (260 bytes)
//
// 2 xrefs:
// > ScrollingLayer::create @ 0x5a9778
// > ??> @ 0x8fdc0
//
// 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 ScrollingLayer::init(ScrollingLayer *a1, cocos2d::CCSize a2, cocos2d::CCPoint a3, float a4)
{
__int64 v4; // x1
__int64 v5; // x23
char v7; // w21
float v8; // s1
cocos2d::CCLayerColor *v9; // x0
cocos2d::CCLayer *v10; // x0
ScrollingLayer_vtbl *v11; // x3
float width; // [xsp+50h] [xbp+50h]
cocos2d::_ccColor4B v14; // [xsp+60h] [xbp+60h] BYREF
v5 = v4;
width = a2.width;
v14.r = 0;
v14.g = 0;
v14.b = 0;
v14.a = 0;
v7 = cocos2d::CCLayerColor::initWithColor(a1, &v14);
if ( v7 )
{
a1->m_scrollFactor = width;
cocos2d::CCPoint::operator=(&a1->m_position, width, v8);
v14.r = 0;
v14.a = 50;
v14.g = 0;
v14.b = 0;
v9 = cocos2d::CCLayerColor::create();
a1->addChild_0(a1, v9, -2);
v10 = cocos2d::CCLayer::create();
v11 = a1->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_contentLayer = v10;
((void (__fastcall *)(ScrollingLayer *))v11->addChild_0)(a1);
cocos2d::CCSize::operator=(&a1->m_size, v5);
}
return v7;
}