//
// BoomScrollLayer::instantMoveToPage from 0x100155adc to 0x100155bb4 (216 bytes)
//
// 11 xrefs:
// > sub_1001F0FD8 @ 0x1001f1010
// > sub_1001F0FD8 @ 0x1001f101c
// > sub_100255900 @ 0x10025593c
// > SecretRewardsLayer::init @ 0x1003849cc
// > SecretRewardsLayer::init @ 0x1003849d8
// > LevelSelectLayer::init @ 0x10048269c
// > LevelSelectLayer::init @ 0x1004826d8
// > EditButtonBar::loadFromItems @ 0x1004a360c
// > EditButtonBar::loadFromItems @ 0x1004a3618
// > EditButtonBar::goToPage @ 0x1004a3a00
// > EditButtonBar::goToPage @ 0x1004a3a0c
//
// 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 10:59:41 +0000
//
__int64 __fastcall BoomScrollLayer::instantMoveToPage(__int64 result, int a2)
{
__int64 v3; // x19
__int64 v4; // x8
float *v5; // x0
float v6; // [xsp+8h] [xbp-28h] BYREF
v3 = result;
if ( (*(_BYTE *)(result + 436) & 1) != 0 )
goto LABEL_6;
if ( (a2 & 0x80000000) == 0 )
{
v4 = 480;
if ( *(_BYTE *)(result + 456) )
v4 = 448;
result = sub_1002E757C(*(_QWORD *)(result + v4));
if ( (int)result > a2 )
{
LABEL_6:
cocos2d::CCNode::stopActionByTag(*(_QWORD *)(v3 + 504), 2);
*(_BYTE *)(v3 + 552) = 0;
v5 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 328LL))(v3);
sub_1000262BC(&v6, (float)(*v5 - *(float *)(v3 + 592)) * (float)-a2, 0.0);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(v3 + 504) + 184LL))(*(_QWORD *)(v3 + 504), &v6);
*(_DWORD *)(v3 + 588) = a2;
if ( *(_BYTE *)(v3 + 436) == 1 )
BoomScrollLayer::repositionPagesLooped(v3);
return BoomScrollLayer::moveToPageEnded(v3);
}
}
return result;
}