//
// SecretRewardsLayer::onSwitchPage from 0x10070f5b0 to 0x10070f61e (110 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::init @ 0x10070ea42
// > SecretRewardsLayer::init @ 0x10070eb01
//
// 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:36:05 +0000
//
void __fastcall SecretRewardsLayer::onSwitchPage(__int64 a1, __int64 a2)
{
int v2; // r14d
int v3; // eax
__int64 v4; // rbx
int v5; // r14d
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 8LL * (*(unsigned __int8 *)(a1 + 584) ^ 1u) + 544) + 588LL);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(a1 + 8LL * (*(unsigned __int8 *)(a1 + 584) ^ 1u) + 544);
if ( v4 )
{
v5 = v2 + 2 * (v3 == 1) - 1;
BoomScrollLayer::getTotalPages(v4);
BoomScrollLayer::moveToPage(v4, v5);
}
}