//
// GameStatsManager::toggleEnableItem from 0x1402e9810 to 0x1402e98a3 (147 bytes)
//
// 3 xrefs:
// > GameSettingsLayer::valueDidChange @ 0x1402c73c7
// > GJGarageLayer::onToggleItem @ 0x1403803bc
// > ??> @ 0x14091e098
//
// 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 11:29:51 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GameStatsManager::toggleEnableItem(__int64 a1, unsigned int a2, unsigned int a3, char a4)
{
__int64 v6; // rbx
struct cocos2d::CCString *v7; // rax
_QWORD v8[4]; // [rsp+20h] [rbp-38h] BYREF
GameStatsManager::getItemKey(a1, v8, a3, a2);
if ( a4 )
{
v6 = *(_QWORD *)(a1 + 896);
v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 1);
cocos2d::CCDictionary::setObject(v6, v7, v8);
}
else
{
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 896), v8);
}
sub_14003D310((__int64)v8);
}