//
// SetupTriggerPopup::onPage from 0x1404742d0 to 0x14047433b (107 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createPageButtons @ 0x14047411c
// > SetupTriggerPopup::createPageButtons @ 0x1404741e0
// > ??> @ 0x1406db414
//
// 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)
{
unsigned int v4; // esi
int v5; // eax
int m_page; // edx
bool v7; // sf
int v8; // edx
v4 = cocos2d::CCArray::count(a1->m_pageContainers);
v5 = a2->getTag(a2);
m_page = a1->m_page;
v7 = v5 + m_page < 0;
v8 = v5 + m_page;
a1->m_page = v8;
if ( v7 )
{
v8 += v4;
LABEL_5:
a1->m_page = v8;
goto LABEL_6;
}
if ( v8 > (int)(v4 - 1) )
{
v8 -= v4;
goto LABEL_5;
}
LABEL_6:
SetupTriggerPopup::goToPage(a1, v8, 0);
}