//
// LevelInfoLayer::onRateStarsMod from 0x1002ae9d0 to 0x1002aea32 (98 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002ab332
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:28:00 +0000
//
__int64 __fastcall LevelInfoLayer::onRateStarsMod(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
double v4; // xmm0_8
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rax
unsigned int v8; // ebx
unsigned __int8 isPlatformer; // al
if ( !*(_BYTE *)(a1 + 488) )
{
*(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];
v6 = *(_QWORD *)(a1 + 504);
if ( *(int *)(v5 + 1048) <= 0 )
{
v8 = *(_DWORD *)(v6 + 328) - *(_DWORD *)(v6 + 332);
isPlatformer = GJGameLevel::isPlatformer(v6, v4);
v7 = RateStarsModLayer::create(v8, isPlatformer);
}
else
{
v7 = GJRateLevelLayer::create(v6, v4);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
return result;
}