//
// BoomScrollLayer::instantMoveToPage from 0x140041750 to 0x140041824 (212 bytes)
//
// 16 xrefs:
// > ListButtonBar::goToPage @ 0x140078328
// > ListButtonBar::goToPage @ 0x140078336
// > EditButtonBar::loadFromItems @ 0x1401778ed
// > EditButtonBar::loadFromItems @ 0x1401778fb
// > EditButtonBar::goToPage @ 0x140177adf
// > EditButtonBar::goToPage @ 0x140177aed
// > EditorUI::updateCreateMenu @ 0x1401b240f
// > EditorUI::updateCreateMenu @ 0x1401b241d
// > GauntletSelectLayer::goToPage @ 0x1402ff489
// > GJShopLayer::init @ 0x1403b1a0e
// > GJShopLayer::init @ 0x1403b1a1c
// > LevelSelectLayer::init @ 0x140441f13
// > LevelSelectLayer::init @ 0x140441f21
// > SecretRewardsLayer::init @ 0x14056a68a
// > SecretRewardsLayer::init @ 0x14056a698
// > ??> @ 0x14090f530
//
// This function is hookable on this platform (idp: pc, 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 11:25:29 +0000
//
void __fastcall BoomScrollLayer::instantMoveToPage(__int64 a1, int a2)
{
cocos2d::CCArray *v4; // rcx
__int64 v5; // rax
float *v6; // rax
bool v7; // zf
char v8; // [rsp+30h] [rbp+8h] BYREF
if ( *(_BYTE *)(a1 + 436)
|| a2 >= 0
&& (!*(_BYTE *)(a1 + 456) ? (v4 = *(cocos2d::CCArray **)(a1 + 480)) : (v4 = *(cocos2d::CCArray **)(a1 + 448)),
a2 < (int)cocos2d::CCArray::count(v4)) )
{
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 504), 2);
v5 = *(_QWORD *)a1;
*(_BYTE *)(a1 + 552) = 0;
v6 = (float *)(*(__int64 (__fastcall **)(__int64))(v5 + 320))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, (float)(*v6 - *(float *)(a1 + 592)) * (float)-a2, 0.0);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 504) + 184LL))(*(_QWORD *)(a1 + 504), &v8);
v7 = *(_BYTE *)(a1 + 436) == 0;
*(_DWORD *)(a1 + 588) = a2;
if ( !v7 )
BoomScrollLayer::repositionPagesLooped(a1);
BoomScrollLayer::moveToPageEnded(a1);
}
}