//
// ScrollingLayer::init from 0x3e7294 to 0x3e7332 (158 bytes)
//
// 1 xrefs:
// > ScrollingLayer::create @ 0x3e740c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:05 +0000
//
int __fastcall ScrollingLayer::init(_DWORD *a1, int a2, int a3, int a4)
{
int v8; // r7
int v9; // r0
cocos2d::CCLayer *v10; // r0
int v11; // r0
int v12; // r3
char v14; // [sp+0h] [bp-Ch] BYREF
char v15; // [sp+1h] [bp-Bh]
char v16; // [sp+2h] [bp-Ah]
char v17; // [sp+3h] [bp-9h]
int v18; // [sp+4h] [bp-8h]
int v19; // [sp+8h] [bp-4h]
v18 = a2;
v19 = a3;
v14 = 0;
v15 = 0;
v16 = 0;
v17 = 0;
v8 = cocos2d::CCLayerColor::initWithColor(a1, &v14);
if ( v8 )
{
a1[120] = a4;
cocos2d::CCPoint::operator=(a1 + 110, a3);
v14 = 0;
v17 = 50;
v15 = 0;
v16 = 0;
v9 = cocos2d::CCLayerColor::create(&v14);
v10 = (cocos2d::CCLayer *)(*(int (__fastcall **)(_DWORD *, int, int))(*a1 + 232))(a1, v9, -2);
v11 = cocos2d::CCLayer::create(v10);
v12 = *a1;
a1[122] = v11;
(*(void (__fastcall **)(_DWORD *, int, int))(v12 + 232))(a1, v11, -1);
cocos2d::CCSize::operator=(a1 + 112, a2);
}
return v8;
}