//
// ShardsPage::onSwitchPage from 0x1004c76a0 to 0x1004c76d4 (52 bytes)
//
// 2 xrefs:
// > ShardsPage::init @ 0x1004c70d7
// > ShardsPage::init @ 0x1004c71a0
//
// 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 __fastcall ShardsPage::onSwitchPage(ShardsPage *a1, cocos2d::CCObject *a2)
{
int m_page; // r14d
int v3; // eax
m_page = a1->m_page;
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
ShardsPage::goToPage(a1, m_page + 2 * (v3 == 1) - 1);
}