//
// GameStatsManager::getNextGoldChestID from 0x7a6154 to 0x7a61b8 (100 bytes)
//
// 3 xrefs:
// > SecretRewardsLayer::init @ 0xa63224
// > SecretRewardsLayer::onGoldChest @ 0xa643d8
// > ??> @ 0xaee70
//
// 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
//
int GameStatsManager::getNextGoldChestID(GameStatsManager *a1)
{
int v2; // w19
v2 = 6001;
while ( GameStatsManager::isSecretChestUnlocked(a1, v2) )
{
if ( ++v2 == 6021 )
return 0;
}
return v2;
}