//
// ShardsPage::onSwitchPage from 0x95c414 to 0x95c458 (68 bytes)
//
// 4 xrefs:
// > ??> @ 0x5f388
// > ShardsPage::init @ 0x95d238
// > ShardsPage::init @ 0x95d2e0
// > ??> @ 0x122b140
//
// 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 ShardsPage::onSwitchPage(ShardsPage *a1, cocos2d::CCObject *a2)
{
int m_page; // w19
int v4; // w0
int v5; // w1
m_page = a1->m_page;
v4 = a2->getTag(a2);
v5 = m_page + 1;
if ( v4 != 1 )
v5 = m_page - 1;
ShardsPage::goToPage(a1, v5);
}