//
// ScrollableContentLayer::init from 0x6e5764 to 0x6e5854 (240 bytes)
//
// 2 xrefs:
// > ScrollableContentLayer::create @ 0x6e59d4
// > ??> @ 0x4a218
//
// 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:43 +0000
//
__int64 __fastcall ScrollableContentLayer::init(cocos2d::CCLayer *a1, __int64 a2)
{
unsigned __int8 v4; // w0
unsigned int v5; // w21
__int64 (__fastcall *v6)(cocos2d::CCLayer *, _BYTE *); // x22
cocos2d::CCNode *v7; // x0
__int64 v8; // x0
_BYTE v10[8]; // [xsp+50h] [xbp+50h] BYREF
v4 = cocos2d::CCLayer::init(a1);
v5 = v4;
if ( v4 )
{
cocos2d::CCSize::operator=((char *)a1 + 424, a2);
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)a1 + 320LL))(a1, a2);
v6 = *(__int64 (__fastcall **)(cocos2d::CCLayer *, _BYTE *))(*(_QWORD *)a1 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.5, 0.5);
v7 = (cocos2d::CCNode *)v6(a1, v10);
v8 = cocos2d::CCNode::create(v7);
*((_QWORD *)a1 + 52) = v8;
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8);
ScrollableContentLayer::applyContentPosition(a1);
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)a1 + 1104LL))(a1, 1);
}
return v5;
}