//
// SetupTriggerPopup::onPage from 0x676c34 to 0x676c72 (62 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:56 +0000
//
int __fastcall SetupTriggerPopup::onPage(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
int v4; // r5
int v5; // r0
v4 = cocos2d::CCArray::count(*(this + 164));
v5 = (int)*(this + 165) + (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( v5 >= 0 )
{
if ( v4 <= v5 )
v5 -= v4;
}
else
{
v5 += v4;
}
*(this + 165) = (cocos2d::CCArray *)v5;
return SetupTriggerPopup::goToPage(this, *(this + 165), 0);
}