//
// SmartTemplateCell::onClick from 0x100258f00 to 0x100258fa1 (161 bytes)
//
// 1 xrefs:
// > SmartTemplateCell::loadFromObject @ 0x10024d570
//
// 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 SmartTemplateCell::onClick(SmartTemplateCell *a1, cocos2d::CCObject *a2)
{
int v3; // eax
TableViewCellDelegate *m_cellDelegate; // rdi
bool (__cdecl *cellPerformedAction)(TableViewCellDelegate *__hidden, TableViewCell *, int, CellAction, cocos2d::CCNode *); // rax
SmartTemplateCell *v6; // rsi
__int64 v7; // rcx
if ( a2 )
{
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v3 == 1 )
{
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( !m_cellDelegate )
return;
cellPerformedAction = m_cellDelegate->cellPerformedAction;
v6 = a1;
v7 = 6;
goto LABEL_9;
}
if ( !v3 )
{
if ( a1->m_smartTemplate )
{
GameLevelManager::sharedState()->m_smartTemplate = a1->m_smartTemplate;
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
{
cellPerformedAction = m_cellDelegate->cellPerformedAction;
v6 = a1;
v7 = 1;
LABEL_9:
((void (__fastcall *)(TableViewCellDelegate *, SmartTemplateCell *, __int64, __int64, _QWORD))cellPerformedAction)(
m_cellDelegate,
v6,
22,
v7,
0);
}
}
}
}
}