//
// GameStatsManager::isPathChestUnlocked from 0x100078820 to 0x1000788a5 (133 bytes)
//
// 1 xrefs:
// > GJPathsLayer::onPath @ 0x1002fea87
//
// 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!
bool __fastcall GameStatsManager::isPathChestUnlocked(GameStatsManager *a1, int a2)
{
double v2; // xmm0_8
char v3; // r15
bool isSpecialChestUnlocked; // bl
__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, v2, *(__int64 *)&a2, a2);
v3 = v6;
if ( (v6 & 1) != 0 )
{
sub_100006B70(&v8, v7, *((unsigned __int64 *)&v6 + 1), v2);
}
else
{
__p = v7;
v2 = *(double *)&v6;
v8 = v6;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)a1, (__int64)&v8, v2);
if ( (v8 & 1) != 0 )
operator delete(__p);
if ( (v3 & 1) != 0 )
operator delete(v7);
return isSpecialChestUnlocked;
}