//
// GameStatsManager::getSecretChestForItem from 0x529028 to 0x52907c (84 bytes)
//
// 2 xrefs:
// > GameStatsManager::isItemUnlocked @ 0x5290aa
// > GameStatsManager::generateItemUnlockableData @ 0x52b808
//
// 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:57 +0000
//
int __fastcall GameStatsManager::getSecretChestForItem(int a1, int a2, int a3)
{
int v3; // r7
cocos2d::CCString *v4; // r0
int v5; // r6
_BYTE v7[12]; // [sp+0h] [bp-14h] BYREF
v3 = *(_DWORD *)(a1 + 280);
GameStatsManager::getItemKey((GameStatsManager *)v7, a1, a2, a3);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v3, v7);
v5 = cocos2d::CCString::intValue(v4);
std::string::~string((int)v7);
return v5;
}