//
// BoomScrollLayer::selectPage from 0x2e27e0 to 0x2e283c (92 bytes)
//
// 1 xrefs:
// > BoomScrollLayer::ccTouchCancelled @ 0x2e285c
//
// 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::selectPage(BoomScrollLayer *a1, int a2)
{
ExtendedLayer *m_extendedLayer; // r8
void (__fastcall *setPosition)(ExtendedLayer *__hidden, const cocos2d::CCPoint *); // r9
int m_page; // r3
cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF
if ( a2 >= 0 && a2 < BoomScrollLayer::getTotalPages(a1) )
{
m_extendedLayer = a1->m_extendedLayer;
setPosition = m_extendedLayer->setPosition;
BoomScrollLayer::positionForPageWithNumber(&v7, a1, a2);
setPosition(m_extendedLayer, &v7);
m_page = a1->m_page;
a1->m_page = a2;
a1->m_slowPage = m_page;
}
}