//
// ScrollableContentLayer::init from 0x3f61e0 to 0x3f6264 (132 bytes)
//
// 1 xrefs:
// > ScrollableContentLayer::create @ 0x3f63b6
//
// 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:17 +0000
//
int __fastcall ScrollableContentLayer::init(cocos2d::CCLayer *a1, int a2, int a3, int a4)
{
int v6; // r6
int (__fastcall *v7)(cocos2d::CCLayer *, _DWORD *); // r8
cocos2d::CCNode *v8; // r0
int v9; // r0
int v10; // r3
int v11; // r1
int v12; // r2
int v13; // r3
_DWORD v15[3]; // [sp+4h] [bp-Ch] BYREF
v15[0] = a2;
v15[1] = a3;
v15[2] = a4;
v6 = cocos2d::CCLayer::init(a1);
if ( v6 )
{
cocos2d::CCSize::operator=((char *)a1 + 324, a2);
(*(void (__fastcall **)(cocos2d::CCLayer *, int))(*(_DWORD *)a1 + 160))(a1, a2);
v7 = *(int (__fastcall **)(cocos2d::CCLayer *, _DWORD *))(*(_DWORD *)a1 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.5, 0.5);
v8 = (cocos2d::CCNode *)v7(a1, v15);
v9 = cocos2d::CCNode::create(v8);
v10 = *(_DWORD *)a1;
*((_DWORD *)a1 + 80) = v9;
(*(void (__fastcall **)(cocos2d::CCLayer *, int))(v10 + 228))(a1, v9);
ScrollableContentLayer::applyContentPosition(a1, v11, v12, v13);
(*(void (__fastcall **)(cocos2d::CCLayer *, int))(*(_DWORD *)a1 + 552))(a1, 1);
}
return v6;
}