//
// ScrollingLayer::init from 0x1001b8864 to 0x1001b8920 (188 bytes)
//
// 1 xrefs:
// > ScrollingLayer::create @ 0x1001b880c
//
// 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 ScrollingLayer::init(ScrollingLayer *a1, cocos2d::CCSize a2, cocos2d::CCPoint a3, float a4)
{
double *v4; // x1
double *v5; // x2
float width; // s8
double *v7; // x22
double *v8; // x19
_BOOL4 v10; // w21
cocos2d::CCLayerColor *v11; // x0
cocos2d::CCLayer *v12; // x0
int v14; // [xsp+8h] [xbp-38h] BYREF
cocos2d::ccColor4B v15; // [xsp+Ch] [xbp-34h] BYREF
width = a2.width;
v7 = v5;
v8 = v4;
v15 = 0;
v10 = cocos2d::CCLayerColor::initWithColor(a1, &v15);
if ( v10 )
{
a1->m_scrollFactor = width;
sub_1000229D0(&a1->m_position, v7);
v14 = 838860800;
v11 = cocos2d::CCLayerColor::create_1((const cocos2d::ccColor4B *)&v14);
((void (__fastcall *)(ScrollingLayer *, cocos2d::CCLayerColor *, __int64))a1->addChild_0)(a1, v11, 4294967294LL);
v12 = cocos2d::CCLayer::create();
a1->m_contentLayer = v12;
((void (__fastcall *)(ScrollingLayer *, cocos2d::CCLayer *, __int64))a1->addChild_0)(a1, v12, 0xFFFFFFFFLL);
sub_100022B14(&a1->m_size, v8);
}
return v10;
}