//
// BoomScrollLayer::instantMoveToPage from 0x68a054 to 0x68a124 (208 bytes)
//
// 14 xrefs:
// > ListButtonBar::goToPage @ 0x6c8c64
// > ListButtonBar::goToPage @ 0x6c8c70
// > EditButtonBar::goToPage @ 0x86132c
// > EditButtonBar::goToPage @ 0x861338
// > EditButtonBar::loadFromItems @ 0x861d50
// > EditButtonBar::loadFromItems @ 0x861d5c
// > LevelSelectLayer::init @ 0x8c5548
// > LevelSelectLayer::init @ 0x8c5924
// > LevelSelectLayer::init @ 0x8c5930
// > GauntletSelectLayer::goToPage @ 0xa71fc4
// > WorldSelectLayer::goToPage @ 0xaa6030
// > SecretRewardsLayer::init @ 0xba0584
// > SecretRewardsLayer::init @ 0xba0590
// > ??> @ 0xc43a8
//
// 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::instantMoveToPage(cocos2d::CCNode **this, int a2)
{
_BYTE v5[8]; // [xsp+30h] [xbp+30h] BYREF
if ( *((_BYTE *)this + 436) || (a2 & 0x80000000) == 0 && a2 < (int)BoomScrollLayer::getTotalPages(this) )
{
cocos2d::CCNode::stopActionByTag(*(this + 63), 2);
*((_BYTE *)this + 552) = 0;
BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)this, a2, (cocos2d::CCPoint *)v5);
(*(void (__fastcall **)(_QWORD, _BYTE *))(*(_QWORD *)*(this + 63) + 184LL))(*(this + 63), v5);
*((_DWORD *)this + 147) = a2;
if ( *((_BYTE *)this + 436) )
BoomScrollLayer::repositionPagesLooped((BoomScrollLayer *)this);
BoomScrollLayer::moveToPageEnded((BoomScrollLayer *)this);
}
return _stack_chk_guard;
}