//
// GJColorSetupLayer::onPage from 0x8a244c to 0x8a24ac (96 bytes)
//
// 4 xrefs:
// > ??> @ 0x68cb8
// > GJColorSetupLayer::init @ 0x8a20c0
// > GJColorSetupLayer::init @ 0x8a2178
// > ??> @ 0x122b668
//
// 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 GJColorSetupLayer::onPage(GJColorSetupLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int m_page; // w2
int v5; // w2
int v6; // w1
v3 = a2->getTag(a2);
m_page = a1->m_page;
if ( v3 )
v5 = m_page - 1;
else
v5 = m_page + 1;
if ( v5 < 0 )
v5 = 0;
v6 = a1->m_totalPages - 1;
if ( v5 <= v6 )
v6 = v5;
a1->m_page = v6;
GJColorSetupLayer::showPage(a1, v6);
}