//
// GameStatsManager::isGauntletChestUnlocked from 0x100335f84 to 0x10033600c (136 bytes)
//
// 2 xrefs:
// > GauntletSelectLayer::onPlay @ 0x1001bf9ac
// > GameStatsManager::recountSpecialStats @ 0x100335b3c
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall GameStatsManager::isGauntletChestUnlocked(GameStatsManager *a1, int a2)
{
char isSpecialChestUnlocked; // w19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v6; // [xsp+10h] [xbp-30h]
void *v7[2]; // [xsp+18h] [xbp-28h] BYREF
__int64 v8; // [xsp+28h] [xbp-18h]
GameStatsManager::getGauntletRewardKey(v7, a1, *(_QWORD *)&a2);
if ( SHIBYTE(v8) < 0 )
{
sub_1000097D0(__p, v7[0], (unsigned __int64)v7[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v7;
v6 = v8;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(a1, __p);
if ( SHIBYTE(v6) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v8) < 0 )
operator delete(v7[0]);
return isSpecialChestUnlocked;
}