//
// LevelCell::onClick from 0x10010f004 to 0x10010f120 (284 bytes)
//
// 6 xrefs:
// > LevelCell::loadLocalLevelCell @ 0x10010c43c
// > LevelCell::loadCustomLevelCell @ 0x10010ce68
// > LevelCell::loadCustomLevelCell @ 0x10010cfa4
// > LevelCell::loadCustomLevelCell @ 0x10010d074
// > LevelCell::loadCustomLevelCell @ 0x10010d144
// > LevelCell::loadCustomLevelCell @ 0x10010d204
//
// 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 LevelCell::onClick(LevelCell *a1, cocos2d::CCObject *a2)
{
unsigned int v4; // w8
TableViewCellDelegate *m_cellDelegate; // x0
__int64 v6; // x19
GameLevelManager *v7; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
if ( a1->m_listType == Level4 && ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) )
{
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1;
if ( v4 <= 3 )
{
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
((void (__fastcall *)(TableViewCellDelegate *, LevelCell *, _QWORD, _QWORD, _QWORD))m_cellDelegate->cellPerformedAction)(
m_cellDelegate,
a1,
(unsigned int)a1->m_listType,
dword_100636F50[v4],
0);
}
}
else if ( a1->m_level->m_gameVersion < 23 )
{
v7 = GameLevelManager::sharedState();
GameLevelManager::gotoLevelPage(v7, a1->m_level);
}
else
{
sub_100009900(__p, "Please update your application to download this level.");
v6 = sub_1002ABCCC(0, "Unavailable", __p, "Close", 0);
if ( v9 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1288LL))(v6);
}
}