//
// BoomScrollLayer::addPage from 0x68a5b4 to 0x68a620 (108 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::addPage @ 0x68a650
// > ??> @ 0xb7340
//
// 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:50:32 +0000
//
__int64 __fastcall BoomScrollLayer::addPage(BoomScrollLayer *this, cocos2d::CCLayer *a2, unsigned int a3)
{
unsigned int v4; // w0
signed int v5; // w2
cocos2d::CCObject *v6; // x1
v4 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 60));
v5 = a3;
v6 = a2;
if ( a3 > v4 )
{
v5 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 60));
v6 = a2;
}
if ( v5 < 0 )
v5 = 0;
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 60), v6, v5);
BoomScrollLayer::updatePages((cocos2d::CCArray **)this);
return BoomScrollLayer::moveToPage(this, *((_DWORD *)this + 147));
}