//
// GameStatsManager::keyCostForSecretChest from 0x51646e to 0x5164b2 (68 bytes)
//
// 3 xrefs:
// > GameStatsManager::unlockSecretChest @ 0x52ac9c
// > GameStatsManager::recountSpecialStats @ 0x52b566
// > SecretRewardsLayer::onSelectItem @ 0x6cddc0
//
// 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:51:40 +0000
//
int __fastcall GameStatsManager::keyCostForSecretChest(GameStatsManager *this, int a2)
{
if ( a2 > 6000 )
return 1;
if ( a2 > 5000 )
return 100;
if ( a2 > 4000 )
return 50;
if ( a2 > 3000 )
return 25;
if ( a2 > 2000 )
return 10;
if ( a2 <= 1000 )
return 1;
return 5;
}