//
// GameStatsManager::isGauntletChestUnlocked from 0x8df9ac to 0x8dfaac (256 bytes)
//
// 3 xrefs:
// > GameStatsManager::recountSpecialStats @ 0x8ec240
// > GauntletSelectLayer::onPlay @ 0xa73870
// > ??> @ 0x99730
//
// This function is hookable on this platform (idp: arm, 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:56:49 +0000
//
bool __fastcall GameStatsManager::isGauntletChestUnlocked(GameStatsManager *this, unsigned int a2)
{
_BOOL4 isSpecialChestUnlocked; // w20
unsigned __int64 v5; // [xsp+38h] [xbp+38h] BYREF
size_t v6; // [xsp+40h] [xbp+40h]
void *v7; // [xsp+48h] [xbp+48h]
unsigned __int64 v8; // [xsp+50h] [xbp+50h] BYREF
size_t v9; // [xsp+58h] [xbp+58h]
void *v10; // [xsp+60h] [xbp+60h]
GameStatsManager::getGauntletRewardKey(a2, &v5);
v8 = 0;
v9 = 0;
v10 = nullptr;
if ( (v5 & 1) != 0 )
{
std::string::__init((__int64 *)&v8, v7, v6);
}
else
{
v10 = v7;
v8 = v5;
v9 = v6;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v8);
if ( (v8 & 1) != 0 )
operator delete(v10);
if ( (v5 & 1) != 0 )
operator delete(v7);
return isSpecialChestUnlocked;
}