//
// SetupTriggerPopup::onPage from 0x9e4db4 to 0x9e4e34 (128 bytes)
//
// 4 xrefs:
// > ??> @ 0x70068
// > SetupTriggerPopup::createPageButtons @ 0x9e45a4
// > SetupTriggerPopup::createPageButtons @ 0x9e4650
// > ??> @ 0x122bb08
//
// 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 v3; // w20
int v4; // w1
int v5; // w1
v3 = cocos2d::CCArray::count(a1->m_pageContainers);
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) + a1->m_page;
if ( v4 < 0 )
{
v5 = v4 + v3;
a1->m_page = v5;
SetupTriggerPopup::goToPage(a1, v5, 0);
}
else
{
if ( v3 <= v4 )
v4 -= v3;
a1->m_page = v4;
SetupTriggerPopup::goToPage(a1, v4, 0);
}
}