//
// GameStatsManager::unlockGauntletChest from 0x52aaf8 to 0x52ab68 (112 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::onPlay @ 0x60b036
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:59 +0000
//
GJRewardItem *__fastcall GameStatsManager::unlockGauntletChest(GameStatsManager *this, int a2)
{
int v3; // r2
int v4; // r3
GJRewardItem *v5; // r7
GameStatsManager *v6; // r0
GameStatsManager *v8; // r0
_BYTE v9[12]; // [sp+4h] [bp-20h] BYREF
int v10[3]; // [sp+10h] [bp-14h] BYREF
GameStatsManager::getGauntletRewardKey((GameStatsManager *)v9, (int)this, a2);
std::string::basic_string(v10, (int)v9);
v5 = GameStatsManager::unlockSpecialChest((int *)this, (int)v10, v3, v4);
v6 = (GameStatsManager *)std::string::~string((int)v10);
if ( v5 )
{
v8 = (GameStatsManager *)GameStatsManager::sharedState(v6);
GameStatsManager::incrementStat(v8, "40");
}
std::string::~string((int)v9);
return v5;
}