//
// GameStatsManager::getSecretChestForItem from 0x8e7fc0 to 0x8e805c (156 bytes)
//
// 3 xrefs:
// > GameStatsManager::isItemUnlocked @ 0x8e80f0
// > GameStatsManager::generateItemUnlockableData @ 0x8ec5bc
// > ??> @ 0xa4308
//
// 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 12:56:53 +0000
//
__int64 __fastcall GameStatsManager::getSecretChestForItem(__int64 a1, unsigned int a2, unsigned int a3)
{
__int64 v3; // x21
cocos2d::CCString *v4; // x0
unsigned int v5; // w20
unsigned __int64 v7[3]; // [xsp+30h] [xbp+30h] BYREF
v3 = *(_QWORD *)(a1 + 352);
GameStatsManager::getItemKey(a2, a3, v7);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v3, v7);
v5 = cocos2d::CCString::intValue(v4);
if ( (v7[0] & 1) != 0 )
operator delete((void *)v7[2]);
return v5;
}