//
// GJColorSetupLayer::onPage from 0x140256b80 to 0x140256bcd (77 bytes)
//
// 2 xrefs:
// > GJColorSetupLayer::init @ 0x14025657f
// > ??> @ 0x1406cf990
//
// 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; // eax
int m_page; // edx
int v5; // r8d
int v6; // edx
int v7; // ecx
v3 = a2->getTag(a2);
m_page = a1->m_page;
v5 = m_page - 1;
v6 = m_page + 1;
if ( v3 )
v6 = v5;
v7 = 0;
if ( v6 >= 0 )
v7 = v6;
if ( a1->m_totalPages - 1 < v7 )
v7 = a1->m_totalPages - 1;
a1->m_page = v7;
GJColorSetupLayer::showPage(a1, v7);
}