//
// GameStatsManager::unlockPathChest from 0x10003e950 to 0x10003e9d7 (135 bytes)
//
// 1 xrefs:
// > GJPathRewardPopup::onClaim @ 0x1002ee10c
//
// 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:35 +0000
//
__int64 __fastcall GameStatsManager::unlockPathChest(__int64 a1, __int64 a2, __m128 a3)
{
__int8 v3; // r15
__int64 v4; // rbx
__m128 v6; // [rsp+8h] [rbp-48h] BYREF
void *v7; // [rsp+18h] [rbp-38h]
__m128 v8; // [rsp+20h] [rbp-30h] BYREF
void *__p; // [rsp+30h] [rbp-20h]
GameStatsManager::getPathRewardKey((size_t *)&v6, a2, a2);
v3 = v6.i8[0];
if ( (v6.i8[0] & 1) != 0 )
{
sub_10001AD30(&v8, v7, v6.u64[1]);
}
else
{
__p = v7;
a3 = v6;
v8 = v6;
}
v4 = GameStatsManager::unlockSpecialChest(a1, (__int64)&v8, a3);
if ( (v8.i8[0] & 1) != 0 )
operator delete(__p);
if ( (v3 & 1) != 0 )
operator delete(v7);
return v4;
}