//
// LevelInfoLayer::onRateStarsMod from 0x499e86 to 0x499eca (68 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:44 +0000
//
GameManager *__fastcall LevelInfoLayer::onRateStarsMod(GameManager *this, cocos2d::CCObject *a2)
{
GameManager *v2; // r4
GJGameLevel *v3; // r1
int v4; // r3
GJGameLevel *v5; // r0
int v6; // r0
RateStarsModLayer *v7; // r4
int isPlatformer; // r0
bool v9; // r2
v2 = this;
if ( !*((_BYTE *)this + 356) )
{
v4 = *(_DWORD *)(GameManager::sharedState(this) + 836);
v5 = *((GJGameLevel **)v2 + 91);
if ( v4 <= 0 )
{
v7 = (RateStarsModLayer *)(*((_DWORD *)v5 + 67) - *((_DWORD *)v5 + 68));
isPlatformer = GJGameLevel::isPlatformer(v5);
v6 = RateStarsModLayer::create(v7, isPlatformer, v9);
}
else
{
v6 = GJRateLevelLayer::create(v5, v3);
}
return (GameManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 656))(v6);
}
return this;
}