//
// GameStatsManager::isItemEnabled from 0x10033621c to 0x100336298 (124 bytes)
//
// 8 xrefs:
// > PlayLayer::toggleMusicInPractice @ 0x10011e6e0
// > PlayerObject::init @ 0x100217998
// > PlayerObject::init @ 0x1002179ac
// > PlayerObject::init @ 0x1002179c0
// > GameOptionsLayer::setupOptions @ 0x1002e187c
// > GameOptionsLayer::onPracticeMusicSync @ 0x1002e1ce4
// > GJGarageLayer::setupSpecialPage @ 0x1003054dc
// > GJGarageLayer::onToggleItem @ 0x100305fe8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall GameStatsManager::isItemEnabled(GameStatsManager *a1, UnlockType a2, int a3)
{
__int64 v3; // x21
__int64 v4; // x20
cocos2d::CCString *v6; // x0
bool v7; // w19
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v10; // [xsp+1Fh] [xbp-21h]
v3 = *(_QWORD *)&a3;
v4 = *(_QWORD *)&a2;
if ( !GameStatsManager::isItemUnlocked(a1, a2, a3) )
return 0;
GameStatsManager::getItemKey(v3, v4, __p);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1->m_enabledItems, __p);
v7 = cocos2d::CCString::boolValue(v6);
if ( v10 < 0 )
operator delete(__p[0]);
return v7;
}