//
// GameStatsManager::getNextGoldChestID from 0x100052820 to 0x100052b4f (815 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::init @ 0x10070e1e4
// > SecretRewardsLayer::onGoldChest @ 0x10070f0ef
//
// This function is hookable on this platform (idp: pc, 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:19:35 +0000
//
__int64 __fastcall GameStatsManager::getNextGoldChestID(__int64 a1)
{
unsigned int v1; // r14d
v1 = 6001;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6002;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6003;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6004;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6005;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6006;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6007;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6008;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6009;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6010;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6011;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6012;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6013;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6014;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6015;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6016;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6017;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6018;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6019;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6020;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6021;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6022;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6023;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6024;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6025;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6026;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6027;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6028;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 6029;
if ( GameStatsManager::isSecretChestUnlocked(a1) )
{
v1 = 0;
if ( !GameStatsManager::isSecretChestUnlocked(a1) )
return 6030;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return v1;
}