//
// SetupTriggerPopup::onPage from 0x5418c4 to 0x541902 (62 bytes)
//
// 0 xrefs:
//
// 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 SetupTriggerPopup::onPage(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v4; // r5
int v5; // r0
v4 = cocos2d::CCArray::count(a1->m_pageContainers);
v5 = a2->getTag(a2) + a1->m_page;
if ( v5 >= 0 )
{
if ( v4 <= v5 )
v5 -= v4;
}
else
{
v5 += v4;
}
a1->m_page = v5;
SetupTriggerPopup::goToPage(a1, a1->m_page, 0);
}