//
// SmartTemplateCell::onClick from 0x3302c0 to 0x330320 (96 bytes)
//
// 0 xrefs:
//
// 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 SmartTemplateCell::onClick(SmartTemplateCell *a1, cocos2d::CCObject *a2)
{
int v3; // r0
TableViewCellDelegate *m_cellDelegate; // r0
if ( a2 )
{
v3 = a2->getTag(a2);
if ( v3 )
{
if ( v3 == 1 )
{
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
LABEL_9:
((void (__fastcall *)(TableViewCellDelegate *, SmartTemplateCell *, int))m_cellDelegate->cellPerformedAction)(
m_cellDelegate,
a1,
22);
}
}
else if ( a1->m_smartTemplate )
{
GameLevelManager::sharedState()->m_smartTemplate = a1->m_smartTemplate;
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
goto LABEL_9;
}
}
}