//
// GameStatsManager::isSpecialChestUnlocked from 0x100077410 to 0x1000774e4 (212 bytes)
//
// 44 xrefs:
// > GameStatsManager::isItemUnlocked @ 0x10006bb4d
// > GameStatsManager::isGauntletChestUnlocked @ 0x100077283
// > GameStatsManager::getNextVideoAdReward @ 0x1000781da
// > GameStatsManager::getNextVideoAdReward @ 0x100078209
// > GameStatsManager::getNextVideoAdReward @ 0x100078238
// > GameStatsManager::getNextVideoAdReward @ 0x100078267
// > GameStatsManager::getNextVideoAdReward @ 0x100078296
// > GameStatsManager::getNextVideoAdReward @ 0x1000782c5
// > GameStatsManager::getNextVideoAdReward @ 0x1000782ef
// > GameStatsManager::getNextVideoAdReward @ 0x10007832c
// > GameStatsManager::getNextVideoAdReward @ 0x100078369
// > GameStatsManager::getNextVideoAdReward @ 0x1000783a6
// > GameStatsManager::unlockSpecialChest @ 0x100078507
// > GameStatsManager::isPathChestUnlocked @ 0x100078873
// > RewardsPage::init @ 0x10021a67a
// > RewardsPage::init @ 0x10021a6b1
// > RewardsPage::init @ 0x10021a6e5
// > RewardsPage::init @ 0x10021a719
// > RewardsPage::init @ 0x10021a74d
// > RewardsPage::init @ 0x10021a77b
// > GJShopLayer::showReactMessage @ 0x100325d33
// > GJShopLayer::ccTouchBegan @ 0x100327378
// > SupportLayer::customSetup @ 0x100398dfe
// > SecretLayer4::init @ 0x1003b1636
// > FollowRewardPage::init @ 0x10041fe27
// > FollowRewardPage::init @ 0x10041ff16
// > FollowRewardPage::init @ 0x100420000
// > FollowRewardPage::init @ 0x1004200ef
// > FollowRewardPage::init @ 0x1004201de
// > FollowRewardPage::init @ 0x1004202c8
// > FollowRewardPage::updateRate @ 0x100421151
// > FollowRewardPage::updateRate @ 0x10042118d
// > FollowRewardPage::updateRate @ 0x100421251
// > FollowRewardPage::updateRate @ 0x100421291
// > FollowRewardPage::updateRate @ 0x1004212da
// > FollowRewardPage::updateRate @ 0x10042131d
// > SecretLayer5::claimOnlineReward @ 0x10047d73e
// > SecretLayer5::onlineRewardStatusFinished @ 0x10047d9e9
// > SecretLayer3::init @ 0x1004a45c1
// > SecretLayer3::init @ 0x1004a480b
// > GauntletNode::generateNode @ 0x1005754d5
// > SecretRewardsLayer::init @ 0x100630d40
// > SecretRewardsLayer::init @ 0x100630da7
// > SecretRewardsLayer::init @ 0x100630de8
//
// 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, __int64 a2, double a3)
{
const char *v3; // rbx
__int64 v4; // r14
size_t v5; // rax
size_t v6; // r15
char *v7; // r12
size_t v8; // r13
__int64 v9; // rbx
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
if ( (*(_BYTE *)a2 & 1) != 0 )
v3 = *(const char **)(a2 + 16);
else
v3 = (const char *)(a2 + 1);
v4 = *(_QWORD *)(a1 + 776);
v5 = strlen(v3);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(a3);
v6 = v5;
if ( v5 >= 0x17 )
{
v8 = 26;
if ( (v5 | 7) != 0x17 )
v8 = (v5 | 7) + 1;
v7 = (char *)operator new(v8);
__p = v7;
__dst[0] = v8 + 1;
__dst[1] = v6;
goto LABEL_11;
}
LOBYTE(__dst[0]) = 2 * v5;
v7 = (char *)__dst + 1;
if ( v5 )
LABEL_11:
memmove(v7, v3, v6);
v7[v6] = 0;
v9 = cocos2d::CCDictionary::objectForKey_1(v4, __dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return v9 != 0;
}