//
// LevelCell::onClick from 0x32ed6c to 0x32ee2a (190 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 LevelCell::onClick(LevelCell *a1, cocos2d::CCObject *a2)
{
FLAlertLayer *v4; // r5
GameLevelManager *v5; // r0
unsigned int v6; // r0
TableViewCellDelegate *m_cellDelegate; // r0
_BYTE v8[4]; // [sp+10h] [bp-8h] BYREF
if ( a1->m_listType == Level4 && a2->getTag(a2) )
{
v6 = a2->getTag(a2) - 1;
if ( v6 <= 3 )
{
if ( byte_9AA3B4[v6] )
{
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
((void (__fastcall *)(TableViewCellDelegate *, LevelCell *, BoomListType))m_cellDelegate->cellPerformedAction)(
m_cellDelegate,
a1,
a1->m_listType);
}
}
}
else if ( a1->m_level->m_gameVersion <= 22 )
{
v5 = GameLevelManager::sharedState();
GameLevelManager::gotoLevelPage(v5, a1->m_level);
}
else
{
sub_776584((int)v8, "Please update your application to download this level.");
v4 = FLAlertLayer::create(0, (int)"Unavailable", (int)v8, (int)"Close", 0);
sub_774008(v8);
v4->show(v4);
}
}