//
// ScrollingLayer::create from 0x100720630 to 0x100720723 (243 bytes)
//
// 1 xrefs:
// > FLAlertLayer::init @ 0x10049b736
//
// 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
//
ScrollingLayer *__fastcall ScrollingLayer::create(cocos2d::CCSize a1, cocos2d::CCPoint a2, float a3)
{
_QWORD *v3; // rdi
double *v4; // rsi
ScrollingLayer *v5; // rbx
double v6; // xmm0_8
double v7; // xmm0_8
cocos2d::CCLayerColor *v8; // rax
cocos2d::CCLayer *v9; // rax
__int64 v11; // [rsp+0h] [rbp-30h] BYREF
__int64 v12; // [rsp+8h] [rbp-28h] BYREF
float width; // [rsp+10h] [rbp-20h]
cocos2d::ccColor4B v14[7]; // [rsp+14h] [rbp-1Ch] BYREF
width = a1.width;
v5 = (ScrollingLayer *)operator new(0x260u);
ScrollingLayer::ScrollingLayer(v5);
sub_10028CFC0(&v11, v3);
v6 = sub_10028CC60(&v12, v4);
v14[0] = 0;
if ( cocos2d::CCLayerColor::initWithColor(v5, v14) )
{
v5->m_scrollFactor = width;
v7 = sub_10028CC90(&v5->m_position, (double *)&v12);
v14[0] = (cocos2d::ccColor4B)838860800;
v8 = cocos2d::CCLayerColor::create_1(v14);
((void (__fastcall *)(ScrollingLayer *, cocos2d::CCLayerColor *, __int64, double, double, float))v5->addChild_0)(
v5,
v8,
4294967294LL,
v7,
*(double *)&a2,
a3);
v9 = cocos2d::CCLayer::create();
v5->m_contentLayer = v9;
((void (__fastcall *)(ScrollingLayer *, cocos2d::CCLayer *, __int64))v5->addChild_0)(v5, v9, 0xFFFFFFFFLL);
sub_10028CFF0(&v5->m_size, &v11);
cocos2d::CCObject::autorelease(v5);
}
else
{
((void (__fastcall *)(ScrollingLayer *, double, double, float))v5->~ScrollingLayer_0)(v5, v6, *(double *)&a2, a3);
return nullptr;
}
return v5;
}