//
// GameStatsManager::isItemEnabled from 0x8ec950 to 0x8eca20 (208 bytes)
//
// 11 xrefs:
// > PlayLayer::toggleMusicInPractice @ 0x6f2adc
// > PlayerObject::init @ 0x767220
// > PlayerObject::init @ 0x767234
// > PlayerObject::init @ 0x767248
// > GJGarageLayer::onToggleItem @ 0x8bac78
// > GJGarageLayer::setupSpecialPage @ 0x8c04bc
// > GameOptionsLayer::onPracticeMusicSync @ 0xa2b8f4
// > GameOptionsLayer::setupOptions @ 0xa35f70
// > GameSettingsLayer::getValue @ 0xc06d8c
// > GameSettingsLayer::valueDidChange @ 0xc06e8c
// > ??> @ 0x812e0
//
// 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:56 +0000
//
__int64 __fastcall GameStatsManager::isItemEnabled(__int64 a1, unsigned int a2, unsigned int a3)
{
unsigned __int8 isItemUnlocked; // w0
unsigned int v7; // w20
cocos2d::CCString *v9; // x0
unsigned __int64 v10[3]; // [xsp+40h] [xbp+40h] BYREF
isItemUnlocked = GameStatsManager::isItemUnlocked(a1, a2, a3);
v7 = isItemUnlocked;
if ( isItemUnlocked )
{
GameStatsManager::getItemKey(a3, a2, v10);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 792), v10);
v7 = (unsigned __int8)cocos2d::CCString::boolValue(v9) != 0;
if ( (v10[0] & 1) != 0 )
operator delete((void *)v10[2]);
}
return v7;
}