//
// GameStatsManager::isPathChestUnlocked from 0x10003e870 to 0x10003e8f5 (133 bytes)
//
// 1 xrefs:
// > GJPathsLayer::onPath @ 0x1002e95f7
//
// 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::isPathChestUnlocked(__int64 a1, __int64 a2)
{
char v2; // r15
unsigned int v3; // eax
unsigned int v4; // ebx
__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::getPathRewardKey((size_t *)&v6, a2, a2);
v2 = v6;
if ( (v6 & 1) != 0 )
{
sub_10001AD30(&v8, v7, *((unsigned __int64 *)&v6 + 1));
}
else
{
__p = v7;
v8 = v6;
}
LOBYTE(v3) = GameStatsManager::isSpecialChestUnlocked(a1, (__int64)&v8);
v4 = v3;
if ( (v8 & 1) != 0 )
operator delete(__p);
if ( (v2 & 1) != 0 )
operator delete(v7);
return v4;
}