//
// SecretRewardsLayer::goToPage from 0x585118 to 0x585144 (44 bytes)
//
// 1 xrefs:
// > SecretRewardsLayer::onSwitchPage @ 0x585176
//
// 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)
{
BoomScrollLayer *m_mainScrollLayer; // r4
m_mainScrollLayer = a1->m_mainScrollLayer;
if ( !a1->m_inMainLayer )
m_mainScrollLayer = a1->m_secondaryScrollLayer;
if ( m_mainScrollLayer )
{
BoomScrollLayer::getTotalPages(m_mainScrollLayer);
BoomScrollLayer::moveToPage(m_mainScrollLayer, a2);
}
}