//
// GameStatsManager::isGauntletChestUnlocked from 0x100077230 to 0x1000772b5 (133 bytes)
//
// 2 xrefs:
// > GameStatsManager::recountSpecialStats @ 0x100076c3b
// > GauntletSelectLayer::onPlay @ 0x100572a11
//
// 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
//
bool __fastcall GameStatsManager::isGauntletChestUnlocked(GameStatsManager *a1, int a2)
{
double v2; // xmm0_8
char v3; // r15
char isSpecialChestUnlocked; // bl
__int128 v6; // [rsp+8h] [rbp-48h] BYREF
void *v7; // [rsp+18h] [rbp-38h]
__int128 v8; // [rsp+20h] [rbp-30h] BYREF
void *__p; // [rsp+30h] [rbp-20h]
GameStatsManager::getGauntletRewardKey(&v6, a2, (unsigned int)a2);
v3 = v6;
if ( (v6 & 1) != 0 )
{
sub_100006B70(&v8, v7, *((unsigned __int64 *)&v6 + 1), v2);
}
else
{
__p = v7;
v8 = v6;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(a1, &v8);
if ( (v8 & 1) != 0 )
operator delete(__p);
if ( (v3 & 1) != 0 )
operator delete(v7);
return isSpecialChestUnlocked;
}