//
// ScrollingLayer::init from 0x6c98b8 to 0x6c99bc (260 bytes)
//
// 2 xrefs:
// > ScrollingLayer::create @ 0x6c9ab8
// > ??> @ 0xbe5a0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:51:22 +0000
//
__int64 __fastcall ScrollingLayer::init(__int64 *a1, __int64 a2, __int64 a3, float a4)
{
unsigned __int8 v6; // w0
unsigned int v7; // w21
__int64 v8; // x0
cocos2d::CCLayer *v9; // x0
__int64 v10; // x0
__int64 v11; // x3
char v15; // [xsp+60h] [xbp+60h] BYREF
char v16; // [xsp+61h] [xbp+61h]
char v17; // [xsp+62h] [xbp+62h]
char v18; // [xsp+63h] [xbp+63h]
v15 = 0;
v16 = 0;
v17 = 0;
v18 = 0;
v6 = cocos2d::CCLayerColor::initWithColor(a1, &v15);
v7 = v6;
if ( v6 )
{
*((float *)a1 + 146) = a4;
cocos2d::CCPoint::operator=(a1 + 68, a3);
v15 = 0;
v18 = 50;
v16 = 0;
v17 = 0;
v8 = cocos2d::CCLayerColor::create(&v15);
v9 = (cocos2d::CCLayer *)(*(__int64 (__fastcall **)(__int64 *, __int64, __int64))(*a1 + 464))(a1, v8, 4294967294LL);
v10 = cocos2d::CCLayer::create(v9);
v11 = *a1;
a1[74] = v10;
(*(void (__fastcall **)(__int64 *))(v11 + 464))(a1);
cocos2d::CCSize::operator=(a1 + 69, a2);
}
return v7;
}