//
// LevelInfoLayer::FLAlert_Clicked from 0x10002ace0 to 0x10002ae38 (344 bytes)
//
// 2 xrefs:
// > sub_10002AE38 @ 0x10002ae3c
// > ??> @ 0x100764a30
//
// 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 LevelInfoLayer::FLAlert_Clicked(LevelInfoLayer *a1, FLAlertLayer *a2, bool a3)
{
_BOOL4 v3; // w20
int v5; // w0
cocos2d::CCObject *v6; // x1
GJGameLevel *m_level; // x19
GameLevelManager *v9; // x0
int v10; // w8
GameLevelManager *v12; // x0
v3 = a3;
v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);
if ( v5 <= 7 )
{
if ( v5 > 5 )
{
if ( v5 == 6 )
{
if ( v3 )
LevelInfoLayer::onClone(a1, v6);
}
else
{
LevelInfoLayer::onRate(a1, v6);
}
}
else if ( v5 == 4 )
{
if ( v3 )
LevelInfoLayer::onDelete(a1, v6);
}
else if ( v5 == 5 && v3 )
{
LevelInfoLayer::onOwnerDelete(a1, v6);
}
return;
}
if ( v5 <= 9 )
{
if ( v5 == 8 )
{
LevelInfoLayer::onRateStars(a1, v6);
return;
}
if ( !v3 )
return;
a1->m_level->m_showedSongWarning = 1;
LABEL_29:
LevelInfoLayer::onPlay(a1, v6);
return;
}
if ( v5 == 10 )
{
if ( !v3 )
return;
a1->m_level->m_highObjectsEnabled = 1;
goto LABEL_29;
}
if ( v5 == 11 )
{
if ( v3 )
{
m_level = a1->m_level;
if ( m_level )
{
v12 = GameLevelManager::sharedState();
v10 = GameLevelManager::getHighestLevelOrder(v12) + 1;
goto LABEL_34;
}
}
}
else if ( v5 == 12 && v3 )
{
m_level = a1->m_level;
if ( m_level )
{
v9 = GameLevelManager::sharedState();
v10 = GameLevelManager::getLowestLevelOrder(v9) - 1;
LABEL_34:
m_level->m_levelIndex = v10;
}
}
}