//
// SetupTriggerPopup::onPage from 0x1002354e0 to 0x100235542 (98 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createPageButtons @ 0x10023533a
// > SetupTriggerPopup::createPageButtons @ 0x100235403
//
// 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 v2; // ebx
int v3; // eax
bool v4; // sf
int v5; // eax
int v6; // ecx
v2 = sub_100720070(a1->m_pageContainers);
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = a1->m_page + v3 < 0;
v5 = a1->m_page + v3;
a1->m_page = v5;
if ( v4 )
{
v5 += v2;
v6 = v5;
goto LABEL_5;
}
v6 = v5 - v2;
if ( v5 >= v2 )
{
v5 -= v2;
LABEL_5:
a1->m_page = v6;
}
SetupTriggerPopup::goToPage(a1, v5, 0);
}