//
// ShardsPage::onSwitchPage from 0x1004c1a70 to 0x1004c1aa4 (52 bytes)
//
// 2 xrefs:
// > ShardsPage::init @ 0x1004c14a7
// > ShardsPage::init @ 0x1004c1570
//
// This function is hookable on this platform (idp: pc, 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 12:31:06 +0000
//
__int64 __fastcall ShardsPage::onSwitchPage(__int64 a1, __int64 a2)
{
int v2; // r14d
int v3; // eax
v2 = *(_DWORD *)(a1 + 696);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
return ShardsPage::goToPage(a1, v2 + 2 * (unsigned int)(v3 == 1) - 1);
}