//
// GameStatsManager::toggleEnableItem from 0x1003d47d0 to 0x1003d4858 (136 bytes)
//
// 2 xrefs:
// > GameSettingsLayer::valueDidChange @ 0x10016699c
// > sub_1003A2C94 @ 0x1003a2d10
//
// 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 11:04:12 +0000
//
void __fastcall GameStatsManager::toggleEnableItem(__int64 a1, __int64 a2, __int64 a3, int a4)
{
__int64 v6; // x19
void *v7; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
sub_1003C9AA8(a3, a2, __p);
v6 = *(_QWORD *)(a1 + 792);
if ( a4 )
{
v7 = sub_1003065B0("%i", 1);
cocos2d::CCDictionary::setObject(v6, v7, __p);
}
else
{
cocos2d::CCDictionary::removeObjectForKey(v6, (char *)__p);
}
if ( v9 < 0 )
operator delete(__p[0]);
}