//
// GameStatsManager::isItemEnabled from 0x10003d8e0 to 0x10003d94e (110 bytes)
//
// 10 xrefs:
// > PlayLayer::toggleMusicInPractice @ 0x10008743b
// > GameOptionsLayer::setupOptions @ 0x10029e5df
// > GameOptionsLayer::onPracticeMusicSync @ 0x10029ea97
// > GJGarageLayer::setupSpecialPage @ 0x100356c18
// > GJGarageLayer::onToggleItem @ 0x100357b8f
// > PlayerObject::init @ 0x1003e7b7e
// > PlayerObject::init @ 0x1003e7b9b
// > PlayerObject::init @ 0x1003e7bb8
// > GameSettingsLayer::getValue @ 0x100602754
// > GameSettingsLayer::valueDidChange @ 0x10060294c
//
// 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:34 +0000
//
__int64 __fastcall GameStatsManager::isItemEnabled(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v4; // rax
unsigned int v5; // ebx
size_t v7[7]; // [rsp+8h] [rbp-38h] BYREF
if ( (unsigned __int8)GameStatsManager::isItemUnlocked(a1, a2, a3) )
{
GameStatsManager::getItemKey(v7, a2, a3, a2);
v4 = cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 792), v7);
v5 = cocos2d::CCString::boolValue(v4);
if ( (v7[0] & 1) != 0 )
operator delete((void *)v7[2]);
}
else
{
return 0;
}
return v5;
}