//
// GameStatsManager::toggleEnableItem from 0x1401e5bd0 to 0x1401e5c60 (144 bytes)
//
// 3 xrefs:
// > GJGarageLayer::onToggleItem @ 0x1402779b7
// > GameOptionsLayer::onPracticeMusicSync @ 0x1402a03b7
// > ??> @ 0x1406cc60c
//
// 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
//
// Hidden C++ exception states: #wind=1
void GameStatsManager::toggleEnableItem(GameStatsManager *a1, UnlockType a2, int a3, bool a4)
{
struct cocos2d::CCString *v6; // rax
_QWORD v7[4]; // [rsp+20h] [rbp-38h] BYREF
GameStatsManager::getItemKey((__int64)a1, v7, a3, a2);
if ( a4 )
{
v6 = cocos2d::CCString::createWithFormat("%i", 1);
cocos2d::CCDictionary::setObject(a1->m_enabledItems, v6, v7);
}
else
{
cocos2d::CCDictionary::removeObjectForKey(a1->m_enabledItems, v7);
}
sub_14003A830((__int64)v7);
}