//
// GameStatsManager::getNextGoldChestID from 0x517c14 to 0x517c38 (36 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::onGoldChest @ 0x6cdbf8
// > SecretRewardsLayer::init @ 0x6ced56
//
// 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:43 +0000
//
const char *__fastcall GameStatsManager::getNextGoldChestID(GameStatsManager *this)
{
const char *v2; // r4
v2 = (_BYTE *)(&stru_176C + 5);
while ( GameStatsManager::isSecretChestUnlocked(this, v2) )
{
if ( ++v2 == (_BYTE *)&stru_178C.st_name + 3 )
return nullptr;
}
return v2;
}