//
// GameStatsManager::getNextGoldChestID from 0x10033dfac to 0x10033dffc (80 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::init @ 0x1002e9110
// > SecretRewardsLayer::onGoldChest @ 0x1002e9d28
//
// 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 __fastcall GameStatsManager::getNextGoldChestID(GameStatsManager *a1)
{
int v2; // w21
int i; // w19
v2 = 20;
for ( i = 6001; GameStatsManager::isSecretChestUnlocked(a1, i); ++i )
{
if ( !--v2 )
return 0;
}
return i;
}