//
// GameStatsManager::toggleEnableItem from 0x1003362b4 to 0x10033633c (136 bytes)
//
// 2 xrefs:
// > GameOptionsLayer::onPracticeMusicSync @ 0x1002e1cfc
// > GJGarageLayer::onToggleItem @ 0x100306000
//
// 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!
void __fastcall GameStatsManager::toggleEnableItem(GameStatsManager *a1, UnlockType a2, int a3, bool a4)
{
_BOOL4 v4; // w20
cocos2d::CCDictionary *m_enabledItems; // x19
cocos2d::CCObject *v7; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
v4 = a4;
GameStatsManager::getItemKey(*(__int64 *)&a3, *(__int64 *)&a2, __p);
m_enabledItems = a1->m_enabledItems;
if ( v4 )
{
v7 = sub_100268F4C("%i", 1);
cocos2d::CCDictionary::setObject_1(m_enabledItems, v7, __p);
}
else
{
cocos2d::CCDictionary::removeObjectForKey_1((int)m_enabledItems, (char *)__p);
}
if ( v9 < 0 )
operator delete(__p[0]);
}