//
// BoomScrollLayer::moveToPageEnded from 0x2e20b4 to 0x2e2124 (112 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::instantMoveToPage @ 0x2e2514
// > BoomScrollLayer::quickUpdate @ 0x2e2898
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void BoomScrollLayer::moveToPageEnded(BoomScrollLayer *a1)
{
BoomScrollLayerDelegate *m_delegate; // r0
const cocos2d::CCPoint *v3; // r0
cocos2d::CCPoint v4; // r1
int v5; // r0
cocos2d::CCPoint v6; // [sp+4h] [bp-Ch] BYREF
if ( a1->m_slowPage != a1->m_page )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(BoomScrollLayerDelegate *, BoomScrollLayer *))m_delegate->scrollLayerScrolledToPage)(
m_delegate,
a1);
}
cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);
v3 = a1->m_extendedLayer->getPosition(a1->m_extendedLayer);
cocos2d::CCPoint::CCPoint(&v6, v3);
LODWORD(v4.x) = &v6;
v5 = BoomScrollLayer::pageNumberForPosition(a1, v4);
a1->m_page = v5;
a1->m_slowPage = v5;
BoomScrollLayer::updateDots(a1, 0.0);
}