//
// LevelListCell::onClick from 0x1002431e0 to 0x1002432e6 (262 bytes)
//
// 1 xrefs:
// > LevelListCell::loadFromList @ 0x10022b79d
//
// This function is hookable on this platform (idp: pc, 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:27:18 +0000
//
__int64 __fastcall LevelListCell::onClick(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
__int64 (__fastcall ***v5)(_QWORD, __int64, __int64, __int64, _QWORD); // rdi
__int64 v6; // rdx
double v7; // xmm0_8
__int64 v8; // rax
__int64 v9; // rdi
__int64 v10; // rdx
double v11; // xmm0_8
__int64 v12; // rax
__int64 v13; // r14
__int64 v14; // rax
char *v15; // rax
__int64 v16; // rax
__int64 v17; // rsi
__int64 v18; // rdi
__int64 v19; // r14
__int64 v20; // rax
char *v21; // rax
if ( *(_BYTE *)(a1 + 560) == 1 )
{
result = *(_QWORD *)(a1 + 416);
v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 632);
if ( v5 )
{
v6 = 28;
if ( *(_BYTE *)(a1 + 561) )
v6 = 39;
return (**v5)(v5, a1, v6, 1, 0);
}
}
else
{
*(_QWORD *)&v7 = GameManager::sharedState(a1, a2, a3).u64[0];
v9 = v8;
if ( (unsigned __int8)GameManager::onlyCuratedLevels(v8, v7) )
{
*(_QWORD *)&v11 = GameManager::sharedState(v9, a2, v10).u64[0];
return GameManager::showParentalRestrictedAlert(v12, v11);
}
else if ( *(_DWORD *)(*(_QWORD *)(a1 + 552) + 544LL) == 2 )
{
v13 = cocos2d::CCDirector::sharedDirector(v9, a2);
v14 = LevelListLayer::scene(*(_QWORD *)(a1 + 552));
v15 = cocos2d::CCTransitionFade::create_1(v14, 0.5);
return cocos2d::CCDirector::replaceScene(v13, v15);
}
else
{
v16 = GameLevelManager::sharedState(v7);
v17 = *(_QWORD *)(a1 + 552);
v18 = v16;
GameLevelManager::updateSavedLevelList(v16, v17);
v19 = cocos2d::CCDirector::sharedDirector(v18, v17);
v20 = LevelListLayer::scene(*(_QWORD *)(a1 + 552));
v21 = cocos2d::CCTransitionFade::create_1(v20, 0.5);
return cocos2d::CCDirector::pushScene(v19, v21);
}
}
return result;
}