//
// LevelListCell::onClick from 0x7361c8 to 0x7362b8 (240 bytes)
//
// 3 xrefs:
// > ??> @ 0xb6c20
// > LevelListCell::loadFromList @ 0x740518
// > ??> @ 0x1545438
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:39 +0000
//
__int64 (__fastcall ***__fastcall LevelListCell::onClick(
LevelListCell *this,
cocos2d::CCObject *a2))(_QWORD, LevelListCell *, __int64, __int64, _QWORD)
{
GameManager *v3; // x0
__int64 (__fastcall ***result)(_QWORD, LevelListCell *, __int64, __int64, _QWORD); // x0
__int64 v5; // x2
GameManager *v6; // x0
GameManager *v7; // x0
cocos2d::CCDirector *v8; // x0
GameLevelManager *v9; // x0
cocos2d::CCDirector *updated; // x0
cocos2d::CCDirector *v11; // x20
GJLevelList *v12; // x1
cocos2d::CCTransitionFade *v13; // x0
cocos2d::CCScene *v14; // x1
cocos2d::CCScene *v15; // x0
GameManager *v16; // x0
cocos2d::CCDirector *v17; // x20
GJLevelList *v18; // x1
cocos2d::CCTransitionFade *v19; // x0
cocos2d::CCScene *v20; // x1
cocos2d::CCScene *v21; // x0
v3 = (GameManager *)*((unsigned __int8 *)this + 560);
if ( (_DWORD)v3 )
{
result = *(__int64 (__fastcall ****)(_QWORD, LevelListCell *, __int64, __int64, _QWORD))(*((_QWORD *)this + 52)
+ 632LL);
if ( result )
{
if ( *((_BYTE *)this + 561) )
v5 = 39;
else
v5 = 28;
return (__int64 (__fastcall ***)(_QWORD, LevelListCell *, __int64, __int64, _QWORD))(**result)(
result,
this,
v5,
1,
0);
}
}
else
{
v6 = (GameManager *)GameManager::sharedState(v3);
v7 = (GameManager *)(unsigned __int8)GameManager::onlyCuratedLevels(v6);
if ( (_BYTE)v7 )
{
v16 = (GameManager *)GameManager::sharedState(v7);
return (__int64 (__fastcall ***)(_QWORD, LevelListCell *, __int64, __int64, _QWORD))GameManager::showParentalRestrictedAlert(v16);
}
else
{
v8 = (cocos2d::CCDirector *)*(unsigned int *)(*((_QWORD *)this + 69) + 544LL);
if ( (_DWORD)v8 == 2 )
{
v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
v19 = (cocos2d::CCTransitionFade *)LevelListLayer::scene(*((LevelListLayer **)this + 69), v18);
v21 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v19, 0.5, v20);
return (__int64 (__fastcall ***)(_QWORD, LevelListCell *, __int64, __int64, _QWORD))cocos2d::CCDirector::replaceScene(
v17,
v21);
}
else
{
v9 = (GameLevelManager *)GameLevelManager::sharedState(v8);
updated = (cocos2d::CCDirector *)GameLevelManager::updateSavedLevelList(v9, *((GJLevelList **)this + 69));
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(updated);
v13 = (cocos2d::CCTransitionFade *)LevelListLayer::scene(*((LevelListLayer **)this + 69), v12);
v15 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v13, 0.5, v14);
return (__int64 (__fastcall ***)(_QWORD, LevelListCell *, __int64, __int64, _QWORD))cocos2d::CCDirector::pushScene(
v11,
v15);
}
}
}
return result;
}