//
// BoomScrollLayer::moveToPageEnded from 0x1400415c0 to 0x140041642 (130 bytes)
//
// 7 xrefs:
// > BoomScrollLayer::instantMoveToPage @ 0x140041814
// > GauntletSelectLayer::goToPage @ 0x1402ff476
// > LevelSelectLayer::onNext @ 0x140442d70
// > LevelSelectLayer::onPrev @ 0x140442df0
// > BoomScrollLayer::moveToPage @ 0x14004195e
// > ??> @ 0x14090f50c
// > ??> @ 0x14090f518
//
// 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::moveToPageEnded(__int64 a1)
{
__int64 v2; // rcx
const struct cocos2d::CCPoint *v3; // rax
int v4; // eax
char v5; // [rsp+30h] [rbp+8h] BYREF
if ( *(_DWORD *)(a1 + 424) != *(_DWORD *)(a1 + 588) )
{
v2 = *(_QWORD *)(a1 + 544);
if ( v2 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 8LL))(v2, a1);
}
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 504), 2);
v3 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 504) + 200LL))(*(_QWORD *)(a1 + 504));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, v3);
BoomScrollLayer::pageNumberForPosition(a1);
*(_DWORD *)(a1 + 588) = v4;
*(_DWORD *)(a1 + 424) = v4;
BoomScrollLayer::updateDots(a1);
}