//
// GameStatsManager::isSpecialChestUnlocked from 0x1003360c8 to 0x100336128 (96 bytes)
//
// 34 xrefs:
// > SecretLayer5::claimOnlineReward @ 0x100076a00
// > SecretLayer5::onlineRewardStatusFinished @ 0x100076c20
// > GJShopLayer::showReactMessage @ 0x10014c9b8
// > GJShopLayer::ccTouchBegan @ 0x10014d87c
// > SupportLayer::customSetup @ 0x1001919d8
// > GauntletNode::generateNode @ 0x1001c2124
// > RewardsPage::init @ 0x1001c3dec
// > RewardsPage::init @ 0x1001c3e14
// > RewardsPage::init @ 0x1001c3e3c
// > RewardsPage::init @ 0x1001c3e64
// > RewardsPage::init @ 0x1001c3e8c
// > RewardsPage::init @ 0x1001c3eb4
// > SecretRewardsLayer::init @ 0x1002e8a30
// > SecretRewardsLayer::init @ 0x1002e8f08
// > SecretRewardsLayer::init @ 0x1002e8f44
// > SecretLayer3::init @ 0x10030e9b4
// > SecretLayer3::init @ 0x10030ebb8
// > GameStatsManager::isItemUnlocked @ 0x10032fcf4
// > GameStatsManager::isGauntletChestUnlocked @ 0x100335fd0
// > GameStatsManager::unlockSpecialChest @ 0x1003368c0
// > GameStatsManager::isPathChestUnlocked @ 0x100336ad8
// > SecretLayer4::init @ 0x100354664
// > FollowRewardPage::init @ 0x100424b74
// > FollowRewardPage::init @ 0x100424c4c
// > FollowRewardPage::init @ 0x100424d14
// > FollowRewardPage::init @ 0x100424de0
// > FollowRewardPage::init @ 0x100424eac
// > FollowRewardPage::init @ 0x100424f78
// > FollowRewardPage::updateRate @ 0x100425b64
// > FollowRewardPage::updateRate @ 0x100425bb4
// > FollowRewardPage::updateRate @ 0x100425bec
// > FollowRewardPage::updateRate @ 0x100425c28
// > FollowRewardPage::updateRate @ 0x100425c60
// > FollowRewardPage::updateRate @ 0x100425c98
//
// 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
//
bool __fastcall GameStatsManager::isSpecialChestUnlocked(__int64 a1, char *a2)
{
__int64 v2; // x19
__int64 v3; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 776);
if ( a2[23] < 0 )
a2 = *(char **)a2;
sub_100009900(__p, a2);
v3 = cocos2d::CCDictionary::objectForKey_1(v2, __p);
if ( v6 < 0 )
operator delete(__p[0]);
return v3 != 0;
}