//
// LevelInfoLayer::onRateStarsMod from 0x1000287e0 to 0x100028854 (116 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x100025444
//
// 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::onRateStarsMod(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GJAccountManager *v3; // x0
int v4; // w8
GJGameLevel *m_level; // x0
void *v6; // x0
int v7; // w19
bool isPlatformer; // w0
if ( !a1->m_isBusy )
{
v3 = GJAccountManager::sharedState();
v4 = v3->m_accountID - v3->m_unkInt1;
m_level = a1->m_level;
if ( v4 == 2795 )
{
v6 = GJRateLevelLayer::create(m_level);
}
else
{
v7 = m_level->m_levelID.random - m_level->m_levelID.seed;
isPlatformer = GJGameLevel::isPlatformer(m_level);
v6 = RateStarsLayer::create(v7, isPlatformer, 1);
}
(*(void (__fastcall **)(void *))(*(_QWORD *)v6 + 1288LL))(v6);
}
}