//
// GameStatsManager::isGauntletChestUnlocked from 0x10003d280 to 0x10003d305 (133 bytes)
//
// 2 xrefs:
// > GameStatsManager::recountSpecialStats @ 0x10003cc7b
// > GauntletSelectLayer::onPlay @ 0x10059fda1
//
// 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:34 +0000
//
__int64 __fastcall GameStatsManager::isGauntletChestUnlocked(__int64 a1, __int64 a2)
{
char v2; // r15
unsigned int isSpecialChestUnlocked; // ebx
__int128 v5; // [rsp+8h] [rbp-48h] BYREF
void *v6; // [rsp+18h] [rbp-38h]
__int128 v7; // [rsp+20h] [rbp-30h] BYREF
void *__p; // [rsp+30h] [rbp-20h]
GameStatsManager::getGauntletRewardKey(&v5, a2, (unsigned int)a2);
v2 = v5;
if ( (v5 & 1) != 0 )
{
sub_10001AD30(&v7, v6, *((unsigned __int64 *)&v5 + 1));
}
else
{
__p = v6;
v7 = v5;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(a1, &v7);
if ( (v7 & 1) != 0 )
operator delete(__p);
if ( (v2 & 1) != 0 )
operator delete(v6);
return isSpecialChestUnlocked;
}