//
// WorldSelectLayer::goToPage from 0xaa5fcc to 0xaa6044 (120 bytes)
//
// 6 xrefs:
// > WorldSelectLayer::animateInActiveIsland @ 0xaa6078
// > WorldSelectLayer::onNext @ 0xaa6120
// > WorldSelectLayer::onPrev @ 0xaa613c
// > WorldSelectLayer::init @ 0xaa85e0
// > WorldSelectLayer::init @ 0xaa860c
// > ??> @ 0xdf3d8
//
// 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 13:00:51 +0000
//
__int64 __fastcall WorldSelectLayer::goToPage(cocos2d::CCArray ***this, int a2, unsigned __int8 a3)
{
int v4; // w20
__int64 result; // x0
cocos2d::CCNode **v6; // x0
v4 = a3;
result = BoomScrollLayer::getTotalPages(*(this + 53));
if ( (int)result > a2 && (a2 & 0x80000000) == 0 )
{
BoomScrollLayer::quickUpdate((__int64)*(this + 53));
v6 = *(this + 53);
if ( v4 )
BoomScrollLayer::instantMoveToPage(v6, a2);
else
BoomScrollLayer::moveToPage((BoomScrollLayer *)v6, a2);
return WorldSelectLayer::updateArrows((WorldSelectLayer *)this);
}
return result;
}