//
// LevelInfoLayer::onRateStarsMod from 0x3b1670 to 0x3b16be (78 bytes)
//
// 0 xrefs:
//
// 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::onRateStarsMod(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GJAccountManager *v3; // r0
int m_unkInt1; // r2
int v5; // r3
GJGameLevel *m_level; // r0
void *v7; // r0
int v8; // r4
bool isPlatformer; // r0
if ( !a1->m_isBusy )
{
v3 = GJAccountManager::sharedState();
m_unkInt1 = v3->m_unkInt1;
v5 = v3->m_accountID - 2795;
m_level = a1->m_level;
if ( v5 == m_unkInt1 )
{
v7 = GJRateLevelLayer::create(m_level);
}
else
{
v8 = m_level->m_levelID.random - m_level->m_levelID.seed;
isPlatformer = GJGameLevel::isPlatformer(m_level);
v7 = RateStarsLayer::create(v8, isPlatformer, 1);
}
(*(void (__fastcall **)(void *))(*(_DWORD *)v7 + 644))(v7);
}
}