//
// GameStatsManager::getSecretChestForItem from 0x1402eebf0 to 0x1402eec53 (99 bytes)
//
// 2 xrefs:
// > GameStatsManager::isItemUnlocked @ 0x1402e959d
// > ??> @ 0x14091e128
//
// This function is hookable on this platform (idp: pc, 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 11:29:56 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GameStatsManager::getSecretChestForItem(__int64 a1, unsigned int a2, unsigned int a3)
{
__int64 v3; // rbx
_QWORD *ItemKey; // rax
cocos2d::CCString *v5; // rax
_QWORD v7[4]; // [rsp+20h] [rbp-38h] BYREF
v3 = a1;
ItemKey = GameStatsManager::getItemKey(a1, v7, a2, a3);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 360), ItemKey);
LODWORD(v3) = cocos2d::CCString::intValue(v5);
sub_14003D310((__int64)v7);
return (unsigned int)v3;
}