//
// GameStatsManager::getSecretChestForItem from 0x10002ba70 to 0x10002bac1 (81 bytes)
//
// 0 xrefs:
//
// 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 12:19:27 +0000
//
__int64 __fastcall GameStatsManager::getSecretChestForItem(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v3; // rbx
__int64 v4; // rax
__int64 result; // rax
unsigned int v6; // ebx
_BYTE v7[16]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
v3 = *(_QWORD *)(a1 + 352);
GameStatsManager::getItemKey(v7, a2, (unsigned int)a2, a3);
v4 = cocos2d::CCDictionary::valueForKey(v3, v7);
result = cocos2d::CCString::intValue(v4);
if ( (v7[0] & 1) != 0 )
{
v6 = result;
operator delete(__p);
return v6;
}
return result;
}