//
// BoomScrollLayer::instantMoveToPage from 0x2e24b4 to 0x2e2528 (116 bytes)
//
// 12 xrefs:
// > ListButtonBar::goToPage @ 0x2fd444
// > ListButtonBar::goToPage @ 0x2fd44e
// > EditButtonBar::goToPage @ 0x3d9106
// > EditButtonBar::goToPage @ 0x3d9114
// > EditButtonBar::loadFromItems @ 0x3d96b8
// > EditButtonBar::loadFromItems @ 0x3d96c2
// > LevelSelectLayer::init @ 0x40a2b4
// > LevelSelectLayer::init @ 0x40a2be
// > GauntletSelectLayer::goToPage @ 0x4d7200
// > WorldSelectLayer::goToPage @ 0x4fd08a
// > SecretRewardsLayer::init @ 0x5871ba
// > SecretRewardsLayer::init @ 0x5871c4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void BoomScrollLayer::instantMoveToPage(BoomScrollLayer *a1, int a2)
{
_BOOL4 m_looped; // r3
cocos2d::CCPoint v5; // [sp+4h] [bp-10h] BYREF
if ( a1->m_looped || a2 >= 0 && a2 < BoomScrollLayer::getTotalPages(a1) )
{
cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);
a1->m_pageMoving = 0;
BoomScrollLayer::positionForPageWithNumber(&v5, a1, a2);
a1->m_extendedLayer->setPosition(a1->m_extendedLayer, &v5);
m_looped = a1->m_looped;
a1->m_page = a2;
if ( m_looped )
BoomScrollLayer::repositionPagesLooped(a1);
BoomScrollLayer::moveToPageEnded(a1);
}
}