//
// BrowseSmartTemplateLayer::onClick from 0x1004ea400 to 0x1004ea443 (67 bytes)
//
// 2 xrefs:
// > BrowseSmartTemplateLayer::baseSetup @ 0x1004e9883
// > BrowseSmartTemplateLayer::baseSetup @ 0x1004e9933
//
// 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 BrowseSmartTemplateLayer::onClick(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2)
{
int v2; // eax
int v3; // esi
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v2 == 1 )
{
v3 = -1;
}
else
{
if ( v2 != 2 )
return;
v3 = 1;
}
BrowseSmartTemplateLayer::goToPage(a1, a1->m_page + v3);
}