//
// SecretRewardsLayer::goToPage from 0xa609f0 to 0xa60a40 (80 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::onSwitchPage @ 0xa60a94
// > ??> @ 0x6a7d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SecretRewardsLayer::goToPage(SecretRewardsLayer *a1, int a2)
{
_BOOL4 m_inMainLayer; // w2
BoomScrollLayer *m_mainScrollLayer; // x19
BoomScrollLayer *m_secondaryScrollLayer; // x0
m_inMainLayer = a1->m_inMainLayer;
m_mainScrollLayer = a1->m_mainScrollLayer;
m_secondaryScrollLayer = a1->m_secondaryScrollLayer;
if ( !m_inMainLayer )
m_mainScrollLayer = m_secondaryScrollLayer;
if ( m_mainScrollLayer )
{
BoomScrollLayer::getTotalPages(m_mainScrollLayer);
BoomScrollLayer::moveToPage(m_mainScrollLayer, a2);
}
}