//
// SecretRewardsLayer::onSwitchPage from 0x6ca5f4 to 0x6ca62a (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:58 +0000
//
cocos2d::CCArray **__fastcall SecretRewardsLayer::onSwitchPage(SecretRewardsLayer *this, cocos2d::CCObject *a2)
{
int v3; // r3
int v4; // r4
cocos2d::CCArray *v5; // r1
v3 = *((_DWORD *)this + 97);
if ( !*((_BYTE *)this + 416) )
v3 = *((_DWORD *)this + 98);
v4 = *(_DWORD *)(v3 + 460);
if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) == 1 )
v5 = (cocos2d::CCArray *)(v4 + 1);
else
v5 = (cocos2d::CCArray *)(v4 - 1);
return SecretRewardsLayer::goToPage((cocos2d::CCArray **)this, v5);
}