//
// GameStatsManager::toggleEnableItem from 0x10003d970 to 0x10003d9e0 (112 bytes)
//
// 3 xrefs:
// > GameOptionsLayer::onPracticeMusicSync @ 0x10029eab9
// > GJGarageLayer::onToggleItem @ 0x100357bb0
// > GameSettingsLayer::valueDidChange @ 0x1006029b2
//
// 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
//
void __fastcall GameStatsManager::toggleEnableItem(__int64 a1, __int64 a2, unsigned int a3, int a4)
{
__int64 v5; // rbx
__int64 v6; // rax
char v7; // [rsp+0h] [rbp-30h]
size_t v8[5]; // [rsp+8h] [rbp-28h] BYREF
GameStatsManager::getItemKey(v8, a2, a3, a2);
v5 = *(_QWORD *)(a1 + 792);
if ( a4 )
{
v6 = sub_10088E820("%i", v7);
cocos2d::CCDictionary::setObject(v5, v6, v8);
}
else
{
cocos2d::CCDictionary::removeObjectForKey(v5, v8);
}
if ( (v8[0] & 1) != 0 )
operator delete((void *)v8[2]);
}