//
// SecretRewardsLayer::onSwitchPage from 0x14056a710 to 0x14056a7c1 (177 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::init @ 0x14056a45e
// > ??> @ 0x14092c5c4
//
// 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 11:34:19 +0000
//
void __fastcall SecretRewardsLayer::onSwitchPage(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 v4; // rax
int v5; // ebx
int v6; // ebp
int v7; // ebp
__int64 v8; // rbx
cocos2d::CCArray *v9; // rcx
v3 = 544;
v4 = 544;
if ( !*(_BYTE *)(a1 + 584) )
v4 = 552;
v5 = *(_DWORD *)(*(_QWORD *)(v4 + a1) + 588LL);
v6 = 1;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) != 1 )
v6 = -1;
v7 = v5 + v6;
if ( !*(_BYTE *)(a1 + 584) )
v3 = 552;
v8 = *(_QWORD *)(v3 + a1);
if ( v8 )
{
if ( *(_BYTE *)(v8 + 456) )
v9 = *(cocos2d::CCArray **)(v8 + 448);
else
v9 = *(cocos2d::CCArray **)(v8 + 480);
cocos2d::CCArray::count(v9);
BoomScrollLayer::moveToPage((__int64 *)v8, v7);
}
}