//
// GameStatsManager::isSpecialChestUnlocked from 0x1003d45e4 to 0x1003d4644 (96 bytes)
//
// 39 xrefs:
// > sub_10007F15C @ 0x10007f1b4
// > SecretLayer5::onlineRewardStatusFinished @ 0x10007f3d4
// > sub_1001327F8 @ 0x100132854
// > sub_1001CB24C @ 0x1001cb2b8
// > GJShopLayer::ccTouchBegan @ 0x1001cc17c
// > SupportLayer::customSetup @ 0x100224c2c
// > GauntletNode::generateNode @ 0x100257cd0
// > RewardsPage::init @ 0x100259938
// > RewardsPage::init @ 0x100259960
// > RewardsPage::init @ 0x100259988
// > RewardsPage::init @ 0x1002599b0
// > RewardsPage::init @ 0x1002599d8
// > RewardsPage::init @ 0x100259a00
// > RewardsPage::init @ 0x100259a28
// > SecretRewardsLayer::init @ 0x100383bb8
// > SecretRewardsLayer::init @ 0x100384090
// > SecretRewardsLayer::init @ 0x1003840cc
// > SecretLayer3::init @ 0x1003ab6cc
// > SecretLayer3::init @ 0x1003ab8d0
// > GameStatsManager::isItemUnlocked @ 0x1003cdbfc
// > sub_1003D44A0 @ 0x1003d44ec
// > GameStatsManager::unlockSpecialChest @ 0x1003d4ddc
// > sub_1003D4FA8 @ 0x1003d4ff4
// > SecretLayer4::init @ 0x1003f3f54
// > FollowRewardPage::init @ 0x1004a7058
// > FollowRewardPage::init @ 0x1004a7134
// > FollowRewardPage::init @ 0x1004a7204
// > FollowRewardPage::init @ 0x1004a72d0
// > FollowRewardPage::init @ 0x1004a739c
// > FollowRewardPage::init @ 0x1004a7468
// > FollowRewardPage::init @ 0x1004a7534
// > FollowRewardPage::updateRate @ 0x1004a81b8
// > FollowRewardPage::updateRate @ 0x1004a8204
// > FollowRewardPage::updateRate @ 0x1004a824c
// > FollowRewardPage::updateRate @ 0x1004a8284
// > FollowRewardPage::updateRate @ 0x1004a82c0
// > FollowRewardPage::updateRate @ 0x1004a82f8
// > FollowRewardPage::updateRate @ 0x1004a8330
// > NotificationsPage::notificationRewardFinished @ 0x10053bc90
//
// This function is hookable on this platform (idp: arm, 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 11:04:12 +0000
//
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 + 784);
if ( a2[23] < 0 )
a2 = *(char **)a2;
sub_100009900(__p, a2);
v3 = cocos2d::CCDictionary::objectForKey(v2, __p);
if ( v6 < 0 )
operator delete(__p[0]);
return v3 != 0;
}