//
// SetupTriggerPopup::onPage from 0x10012e868 to 0x10012e8dc (116 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createPageButtons @ 0x10012e6bc
// > SetupTriggerPopup::createPageButtons @ 0x10012e780
//
// 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 __fastcall SetupTriggerPopup::onPage(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v4; // w20
int v5; // w1
v4 = sub_10024A36C(a1->m_pageContainers);
v5 = a1->m_page + ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
a1->m_page = v5;
if ( v5 < 0 )
{
v5 += v4;
goto LABEL_5;
}
if ( v5 >= v4 )
{
v5 -= v4;
LABEL_5:
a1->m_page = v5;
}
SetupTriggerPopup::goToPage(a1, v5, 0);
}