//
// ShardsPage::onSwitchPage from 0xaa3cc0 to 0xaa3d04 (68 bytes)
//
// 4 xrefs:
// > ??> @ 0x82108
// > ShardsPage::init @ 0xaa4af8
// > ShardsPage::init @ 0xaa4ba0
// > ??> @ 0x1543620
//
// This function is hookable on this platform (idp: arm, 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 13:00:49 +0000
//
__int64 __fastcall ShardsPage::onSwitchPage(ShardsPage *this, cocos2d::CCObject *a2)
{
int v3; // w19
int v4; // w0
int v5; // w1
v3 = *((_DWORD *)this + 174);
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v5 = v3 + 1;
if ( v4 != 1 )
v5 = v3 - 1;
return ShardsPage::goToPage((__int64)this, v5);
}