//
// GameStatsManager::shouldAwardSecretKey from 0x418958 to 0x4189a2 (74 bytes)
//
// 1 xrefs:
// > GameStatsManager::awardSecretKey @ 0x41bd38
//
// 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
//
bool GameStatsManager::shouldAwardSecretKey(GameStatsManager *a1)
{
int Stat; // r0
Stat = GameStatsManager::getStat(a1, "22");
return (float)(a1->m_bonusKey.random - a1->m_bonusKey.seed) < floorf((float)Stat / 500.0);
}