//
// LevelListCell::onClick from 0x4248c8 to 0x42497e (182 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 LevelListCell::onClick(
LevelListCell *this,
cocos2d::CCObject *a2))(_DWORD, LevelListCell *, int)
{
int (__fastcall ***result)(_DWORD, LevelListCell *, int); // r0
int v4; // r2
GameManager *v5; // r0
GameManager *v6; // r0
GameManager *v7; // r0
cocos2d::CCDirector *v8; // r5
GJLevelList *v9; // r1
float v10; // r0
cocos2d::CCScene *v11; // r2
cocos2d::CCScene *v12; // r1
GameLevelManager *v13; // r0
cocos2d::CCDirector *updated; // r0
cocos2d::CCDirector *v15; // r5
GJLevelList *v16; // r1
float v17; // r0
cocos2d::CCScene *v18; // r2
cocos2d::CCScene *v19; // r1
if ( *((_BYTE *)this + 424) )
{
result = *(int (__fastcall ****)(_DWORD, LevelListCell *, int))(*((_DWORD *)this + 80) + 464);
if ( result )
{
if ( *((_BYTE *)this + 425) )
v4 = 39;
else
v4 = 28;
return (int (__fastcall ***)(_DWORD, LevelListCell *, int))(**result)(result, this, v4);
}
}
else
{
v5 = (GameManager *)GameManager::sharedState(this);
v6 = (GameManager *)GameManager::onlyCuratedLevels(v5);
if ( v6 )
{
v7 = (GameManager *)GameManager::sharedState(v6);
return (int (__fastcall ***)(_DWORD, LevelListCell *, int))GameManager::showParentalRestrictedAlert(v7);
}
else if ( *(_DWORD *)(*((_DWORD *)this + 105) + 408) == 2 )
{
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(nullptr);
v10 = COERCE_FLOAT(LevelListLayer::scene(*((LevelListLayer **)this + 105), v9));
v12 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, v10, v11);
return (int (__fastcall ***)(_DWORD, LevelListCell *, int))cocos2d::CCDirector::replaceScene(v8, v12);
}
else
{
v13 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
updated = (cocos2d::CCDirector *)GameLevelManager::updateSavedLevelList(v13, *((GJLevelList **)this + 105));
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(updated);
v17 = COERCE_FLOAT(LevelListLayer::scene(*((LevelListLayer **)this + 105), v16));
v19 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, v17, v18);
return (int (__fastcall ***)(_DWORD, LevelListCell *, int))cocos2d::CCDirector::pushScene(v15, v19);
}
}
return result;
}