//
// GameStatsManager::isSpecialChestUnlocked from 0x5184f8 to 0x518562 (106 bytes)
//
// 49 xrefs:
// > GJNotificationCell::refreshChest @ 0x4272be
// > GameStatsManager::getNextVideoAdReward @ 0x518594
// > GameStatsManager::getNextVideoAdReward @ 0x5185d2
// > GameStatsManager::getNextVideoAdReward @ 0x518610
// > GameStatsManager::getNextVideoAdReward @ 0x51864e
// > GameStatsManager::getNextVideoAdReward @ 0x51868c
// > GameStatsManager::getNextVideoAdReward @ 0x5186ca
// > GameStatsManager::getNextVideoAdReward @ 0x518708
// > GameStatsManager::getNextVideoAdReward @ 0x518746
// > GameStatsManager::getNextVideoAdReward @ 0x518784
// > GameStatsManager::getNextVideoAdReward @ 0x5187c2
// > GameStatsManager::isGauntletChestUnlocked @ 0x52438a
// > GameStatsManager::isPathChestUnlocked @ 0x52474e
// > GameStatsManager::isItemUnlocked @ 0x529116
// > GameStatsManager::unlockSpecialChest @ 0x52aa8a
// > SupportLayer::customSetup @ 0x53a41e
// > GauntletNode::generateNode @ 0x60c674
// > GJShopLayer::showReactMessage @ 0x611f0a
// > GJShopLayer::ccTouchBegan @ 0x61298c
// > RewardsPage::init @ 0x6176ae
// > RewardsPage::init @ 0x6176ea
// > RewardsPage::init @ 0x617726
// > RewardsPage::init @ 0x617764
// > RewardsPage::init @ 0x617802
// > RewardsPage::init @ 0x61784c
// > RewardsPage::init @ 0x61788a
// > SecretLayer3::init @ 0x620656
// > SecretLayer3::init @ 0x620846
// > SecretLayer4::init @ 0x623244
// > FollowRewardPage::updateRate @ 0x62fe28
// > FollowRewardPage::updateRate @ 0x62fe62
// > FollowRewardPage::updateRate @ 0x62fe9c
// > FollowRewardPage::updateRate @ 0x62fed6
// > FollowRewardPage::updateRate @ 0x62ff0e
// > FollowRewardPage::updateRate @ 0x62ff46
// > FollowRewardPage::updateRate @ 0x62ff7c
// > FollowRewardPage::init @ 0x630a1a
// > FollowRewardPage::init @ 0x630a9a
// > FollowRewardPage::init @ 0x630b1c
// > FollowRewardPage::init @ 0x630b9c
// > FollowRewardPage::init @ 0x630c1c
// > FollowRewardPage::init @ 0x630c9c
// > FollowRewardPage::init @ 0x630dac
// > SecretRewardsLayer::init @ 0x6ce810
// > SecretRewardsLayer::init @ 0x6ce834
// > SecretRewardsLayer::init @ 0x6ce856
// > SecretLayer5::claimOnlineReward @ 0x6e4c12
// > SecretLayer5::onlineRewardStatusFinished @ 0x6e50d6
// > NotificationsPage::notificationRewardFinished @ 0x743f64
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:44 +0000
//
int __fastcall GameStatsManager::isSpecialChestUnlocked(int a1, int a2)
{
int v2; // r7
const char *v3; // r4
size_t v4; // r0
int v5; // r4
int result; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = *(_DWORD *)(a1 + 504);
memset(v7, 0, sizeof(v7));
if ( (*(_BYTE *)a2 & 1) != 0 )
v3 = *(const char **)(a2 + 8);
else
v3 = (const char *)(a2 + 1);
v4 = strlen(v3);
std::string::__init(v7, v3, v4);
v5 = cocos2d::CCDictionary::objectForKey(v2, v7);
std::string::~string((int)v7);
result = v5;
if ( v5 )
return 1;
return result;
}