//
// BoomScrollLayer::selectPage from 0x68a488 to 0x68a52c (164 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::ccTouchCancelled @ 0x68a54c
// > ??> @ 0xd6588
//
// 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::selectPage(BoomScrollLayer *this, int a2)
{
__int64 v5; // x23
void (__fastcall *v6)(__int64, _BYTE *); // x24
_BYTE v7[8]; // [xsp+40h] [xbp+40h] BYREF
if ( (a2 & 0x80000000) == 0 && a2 < (int)BoomScrollLayer::getTotalPages((cocos2d::CCArray **)this) )
{
v5 = *((_QWORD *)this + 63);
v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL);
BoomScrollLayer::positionForPageWithNumber(this, a2, (cocos2d::CCPoint *)v7);
v6(v5, v7);
*((_DWORD *)this + 106) = *((_DWORD *)this + 147);
*((_DWORD *)this + 147) = a2;
}
return _stack_chk_guard;
}