//
// LevelInfoLayer::onRate from 0x3b2990 to 0x3b2a3e (174 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::FLAlert_Clicked @ 0x3b2aac
//
// 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 LevelInfoLayer::onRate(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
int m_showedRateDiffDialog; // r7
FLAlertLayer *v5; // r4
RateLevelLayer *v6; // r0
RateLevelLayer_vtbl *v7; // r3
char v8[4]; // [sp+10h] [bp-Ch] BYREF
if ( !a1->m_isBusy )
{
v3 = GameManager::sharedState();
m_showedRateDiffDialog = v3->m_showedRateDiffDialog;
if ( v3->m_showedRateDiffDialog )
{
v6 = RateLevelLayer::create(a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed);
v7 = v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6->m_delegate = &a1->RateLevelDelegate;
v7->show(v6);
}
else
{
GameManager::sharedState()->m_showedRateDiffDialog = 1;
sub_776584(
(int)v8,
"Please rate the difficulty as fairly as possible. \n"
"(Demon and Auto levels are manually verified before accepted)");
v5 = FLAlertLayer::create(
(int)&a1->FLAlertLayerProtocol,
(int)"Rate Difficulty",
(int)v8,
(int)"OK",
m_showedRateDiffDialog,
300.0);
sub_774008(v8);
v5->setTag(v5, 7);
v5->show(v5);
}
}
}