//
// BoomScrollLayer::selectPage from 0x3c1ed0 to 0x3c1f2c (92 bytes)
//
// 1 xrefs:
// > BoomScrollLayer::ccTouchCancelled @ 0x3c1f4c
//
// 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:46:31 +0000
//
cocos2d::CCArray **__fastcall BoomScrollLayer::selectPage(cocos2d::CCArray **this, cocos2d::CCArray *a2)
{
cocos2d::CCArray **v3; // r4
cocos2d::CCArray *v4; // r8
int (__fastcall *v5)(cocos2d::CCArray *, _BYTE *); // r9
cocos2d::CCArray *v6; // r3
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
v3 = this;
if ( (int)a2 >= 0 )
{
this = (cocos2d::CCArray **)BoomScrollLayer::getTotalPages(this);
if ( (int)a2 < (int)this )
{
v4 = v3[96];
v5 = *(int (__fastcall **)(cocos2d::CCArray *, _BYTE *))(*(_DWORD *)v4 + 92);
BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v7, (float *)v3, (int)a2);
this = (cocos2d::CCArray **)v5(v4, v7);
v6 = v3[115];
v3[115] = a2;
v3[81] = v6;
}
}
return this;
}