//
// LevelInfoLayer::onRateStarsMod from 0x1002c1e00 to 0x1002c1e72 (114 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002be6bd
//
// 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 *v2; // rax
GJGameLevel *m_level; // rdi
void *v4; // rax
int v5; // ebx
bool isPlatformer; // al
if ( !a1->m_isBusy )
{
v2 = GJAccountManager::sharedState();
m_level = a1->m_level;
if ( v2->m_accountID - v2->m_unkInt1 == 2795 )
{
v4 = GJRateLevelLayer::create(m_level);
}
else
{
v5 = m_level->m_levelID.random - m_level->m_levelID.seed;
isPlatformer = GJGameLevel::isPlatformer(m_level);
a2 = (cocos2d::CCObject *)isPlatformer;
v4 = RateStarsLayer::create(v5, isPlatformer, 1);
}
(*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)v4 + 1288LL))(v4, a2);
}
}