//
// BoomScrollLayer::instantMoveToPage from 0x10038fd20 to 0x10038fdf8 (216 bytes)
//
// 22 xrefs:
// > WorldSelectLayer::goToPage @ 0x1003ac024
// > ListButtonBar::onLeft @ 0x1003dd827
// > ListButtonBar::onLeft @ 0x1003dd836
// > ListButtonBar::onRight @ 0x1003dd8c3
// > ListButtonBar::onRight @ 0x1003dd8d2
// > ListButtonBar::goToPage @ 0x1003dd960
// > ListButtonBar::goToPage @ 0x1003dd96e
// > LevelSelectLayer::init @ 0x10041fba0
// > LevelSelectLayer::init @ 0x10041fbda
// > GauntletSelectLayer::goToPage @ 0x1005a02ea
// > EditButtonBar::loadFromItems @ 0x1006b488b
// > EditButtonBar::loadFromItems @ 0x1006b489a
// > EditButtonBar::onLeft @ 0x1006b4a1d
// > EditButtonBar::onLeft @ 0x1006b4a2c
// > EditButtonBar::onRight @ 0x1006b4a99
// > EditButtonBar::onRight @ 0x1006b4aa8
// > EditButtonBar::onDotClicked @ 0x1006b4b3c
// > EditButtonBar::onDotClicked @ 0x1006b4b4b
// > EditButtonBar::goToPage @ 0x1006b4cf2
// > EditButtonBar::goToPage @ 0x1006b4d00
// > SecretRewardsLayer::init @ 0x10070ebcc
// > SecretRewardsLayer::init @ 0x10070ebda
//
// 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 12:29:13 +0000
//
void __fastcall BoomScrollLayer::instantMoveToPage(__int64 a1, int a2)
{
float *v2; // rax
float v3[2]; // [rsp+Ch] [rbp-24h] BYREF
float v4; // [rsp+14h] [rbp-1Ch]
if ( *(_BYTE *)(a1 + 436)
|| a2 >= 0 && (int)sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) > a2 )
{
cocos2d::CCNode::stopActionByTag(*(_QWORD *)(a1 + 504), 2);
*(_BYTE *)(a1 + 552) = 0;
v4 = (float)-a2;
v2 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);
sub_100278250(v3, (float)(*v2 - *(float *)(a1 + 592)) * v4, 0.0);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 504) + 184LL))(*(_QWORD *)(a1 + 504), v3);
*(_DWORD *)(a1 + 588) = a2;
if ( *(_BYTE *)(a1 + 436) == 1 )
BoomScrollLayer::repositionPagesLooped(a1);
BoomScrollLayer::moveToPageEnded(a1);
}
}