//
// BrowseSmartTemplateLayer::onClick from 0xb14cb4 to 0xb14d20 (108 bytes)
//
// 4 xrefs:
// > ??> @ 0xa92b8
// > BrowseSmartTemplateLayer::baseSetup @ 0xb14760
// > BrowseSmartTemplateLayer::baseSetup @ 0xb14800
// > ??> @ 0x1544c28
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:31 +0000
//
__int64 __fastcall BrowseSmartTemplateLayer::onClick(BrowseSmartTemplateLayer *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
return BrowseSmartTemplateLayer::goToPage(this, *((_DWORD *)this + 170) - 1);
if ( (_DWORD)result == 2 )
return BrowseSmartTemplateLayer::goToPage(this, *((_DWORD *)this + 170) + 1);
return result;
}