//
// GameStatsManager::isSpecialChestUnlocked from 0x40e158 to 0x40e1a4 (76 bytes)
//
// 44 xrefs:
// > GameStatsManager::getNextVideoAdReward @ 0x40e1d6
// > GameStatsManager::getNextVideoAdReward @ 0x40e200
// > GameStatsManager::getNextVideoAdReward @ 0x40e22a
// > GameStatsManager::getNextVideoAdReward @ 0x40e254
// > GameStatsManager::getNextVideoAdReward @ 0x40e27e
// > GameStatsManager::getNextVideoAdReward @ 0x40e2a8
// > GameStatsManager::getNextVideoAdReward @ 0x40e2d2
// > GameStatsManager::getNextVideoAdReward @ 0x40e2fc
// > GameStatsManager::getNextVideoAdReward @ 0x40e326
// > GameStatsManager::getNextVideoAdReward @ 0x40e350
// > GameStatsManager::isGauntletChestUnlocked @ 0x419b5e
// > GameStatsManager::isPathChestUnlocked @ 0x419c42
// > GameStatsManager::isItemUnlocked @ 0x41b9f4
// > GameStatsManager::unlockSpecialChest @ 0x41c7c6
// > SupportLayer::customSetup @ 0x42d17e
// > GauntletNode::generateNode @ 0x4d8c24
// > GJShopLayer::showReactMessage @ 0x4e23b4
// > GJShopLayer::ccTouchBegan @ 0x4e2f06
// > RewardsPage::init @ 0x4e7200
// > RewardsPage::init @ 0x4e7232
// > RewardsPage::init @ 0x4e7264
// > RewardsPage::init @ 0x4e729c
// > RewardsPage::init @ 0x4e72d2
// > RewardsPage::init @ 0x4e735e
// > SecretLayer3::init @ 0x4ef94e
// > SecretLayer3::init @ 0x4efb0c
// > SecretLayer4::init @ 0x4f201c
// > FollowRewardPage::updateRate @ 0x4ff5ce
// > FollowRewardPage::updateRate @ 0x4ff600
// > FollowRewardPage::updateRate @ 0x4ff632
// > FollowRewardPage::updateRate @ 0x4ff662
// > FollowRewardPage::updateRate @ 0x4ff692
// > FollowRewardPage::updateRate @ 0x4ff6c0
// > FollowRewardPage::init @ 0x500044
// > FollowRewardPage::init @ 0x5000b4
// > FollowRewardPage::init @ 0x500126
// > FollowRewardPage::init @ 0x500196
// > FollowRewardPage::init @ 0x500206
// > FollowRewardPage::init @ 0x5002e6
// > SecretRewardsLayer::init @ 0x5866cc
// > SecretRewardsLayer::init @ 0x58672e
// > SecretRewardsLayer::init @ 0x58674a
// > SecretLayer5::claimOnlineReward @ 0x59d404
// > SecretLayer5::onlineRewardStatusFinished @ 0x59d59e
//
// 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
//
int __fastcall GameStatsManager::isSpecialChestUnlocked(
int a1,
char **a2,
stl::StringData::Internal *a3,
stl::StringData::Internal *a4)
{
cocos2d::CCDictionary *v4; // r6
int v5; // r6
int result; // r0
std::string v7[2]; // [sp+8h] [bp-8h] BYREF
v7[0].m_data.m_data = a3;
v7[1].m_data.m_data = a4;
v4 = *(cocos2d::CCDictionary **)(a1 + 532);
sub_776584((int)v7, *a2);
v5 = cocos2d::CCDictionary::objectForKey(v4, v7);
sub_774008(v7);
result = v5;
if ( v5 )
return 1;
return result;
}