//
// SmartTemplateCell::onClick from 0x424868 to 0x4248c8 (96 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:48:03 +0000
//
int (__fastcall ***__fastcall SmartTemplateCell::onClick(
int (__fastcall ***this)(_DWORD, _DWORD, int),
cocos2d::CCObject *a2))(_DWORD, _DWORD, int)
{
int (__fastcall ***v2)(_DWORD, _DWORD, int); // r4
v2 = this;
if ( a2 )
{
this = (int (__fastcall ***)(_DWORD, _DWORD, int))(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( this )
{
if ( this == (int (__fastcall ***)(_DWORD, _DWORD, int))((char *)&dword_0 + 1) )
{
this = (int (__fastcall ***)(_DWORD, _DWORD, int))v2[80][116];
if ( this )
return (int (__fastcall ***)(_DWORD, _DWORD, int))(**this)(this, v2, 20);
}
}
else if ( v2[105] )
{
*(_DWORD *)(GameLevelManager::sharedState(nullptr) + 976) = v2[105];
this = (int (__fastcall ***)(_DWORD, _DWORD, int))v2[80][116];
if ( this )
return (int (__fastcall ***)(_DWORD, _DWORD, int))(**this)(this, v2, 20);
}
}
return this;
}