//
// LevelInfoLayer::onRate from 0x10002ab60 to 0x10002ac48 (232 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::FLAlert_Clicked @ 0x10002ad90
//
// 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::onRate(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
RateLevelLayer *v3; // x0
__int64 v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_isBusy )
{
if ( GameManager::sharedState()->m_showedRateDiffDialog )
{
v3 = RateLevelLayer::create(a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed);
v3->m_delegate = &a1->RateLevelDelegate;
((void (__fastcall *)(RateLevelLayer *))v3->show)(v3);
}
else
{
GameManager::sharedState()->m_showedRateDiffDialog = 1;
sub_100009900(
__p,
"Please rate the difficulty as fairly as possible. \n"
"(Demon and Auto levels are manually verified before accepted)");
v4 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Rate Difficulty", __p, "OK", 0, 300.0);
if ( v6 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4);
}
}
}