//
// GameStatsManager::getNextGoldChestID from 0x8ccea0 to 0x8ccf08 (104 bytes)
//
// 3 xrefs:
// > SecretRewardsLayer::onGoldChest @ 0xb9ea04
// > SecretRewardsLayer::init @ 0xb9fee8
// > ??> @ 0xe4dc0
//
// This function is hookable on this platform (idp: arm, 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:56:37 +0000
//
__int64 __fastcall GameStatsManager::getNextGoldChestID(GameStatsManager *this)
{
unsigned int i; // w19
for ( i = 6001; i != 6031; ++i )
{
if ( !GameStatsManager::isSecretChestUnlocked(this, (const char *)i) )
return i;
}
return 0;
}