//
// GameStatsManager::unlockPathChest from 0x100336b48 to 0x100336bd0 (136 bytes)
//
// 1 xrefs:
// > GJPathRewardPopup::onClaim @ 0x1003bbca8
//
// 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!
GJRewardItem *__fastcall GameStatsManager::unlockPathChest(GameStatsManager *a1, int a2)
{
GJRewardItem *v3; // x19
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::getPathRewardKey(*(__int64 *)&a2, v7);
if ( SHIBYTE(v8) < 0 )
{
sub_1000097D0(__p, v7[0], (unsigned __int64)v7[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v7;
v6 = v8;
}
v3 = GameStatsManager::unlockSpecialChest(a1, (__int64)__p);
if ( SHIBYTE(v6) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v8) < 0 )
operator delete(v7[0]);
return v3;
}