//
// SetupShaderEffectPopup::onResetColors from 0x1405e97c0 to 0x1405e997e (446 bytes)
//
// 3 xrefs:
// > SetupShaderEffectPopup::setupColorChange @ 0x1405e96e4
// > ??> @ 0x14092eec8
// > ??> @ 0x14092eed4
//
// 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:35:03 +0000
//
double __fastcall SetupShaderEffectPopup::onResetColors(cocos2d::CCDictionary **a1)
{
__int64 v2; // r8
__int64 v3; // r8
__int64 v4; // r8
if ( cocos2d::CCDictionary::objectForKey(a1[94], 176) )
{
LOBYTE(v2) = 1;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 144))(a1, 176, v2);
}
else
{
SetupTriggerPopup::updateValueControls(a1, 176);
}
SetupTriggerPopup::valueChanged(a1, 176);
if ( cocos2d::CCDictionary::objectForKey(a1[94], 191) )
{
LOBYTE(v3) = 1;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 144))(a1, 191, v3);
}
else
{
SetupTriggerPopup::updateValueControls(a1, 191);
}
SetupTriggerPopup::valueChanged(a1, 191);
if ( cocos2d::CCDictionary::objectForKey(a1[94], 175) )
{
LOBYTE(v4) = 1;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 144))(a1, 175, v4);
}
else
{
SetupTriggerPopup::updateValueControls(a1, 175);
}
SetupTriggerPopup::valueChanged(a1, 175);
if ( cocos2d::CCDictionary::objectForKey(a1[94], 179) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 179, 0);
else
SetupTriggerPopup::updateValueControls(a1, 179);
SetupTriggerPopup::valueChanged(a1, 179);
if ( cocos2d::CCDictionary::objectForKey(a1[94], 180) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 180, 0);
else
SetupTriggerPopup::updateValueControls(a1, 180);
SetupTriggerPopup::valueChanged(a1, 180);
if ( cocos2d::CCDictionary::objectForKey(a1[94], 189) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 189, 0);
else
SetupTriggerPopup::updateValueControls(a1, 189);
return SetupTriggerPopup::valueChanged(a1, 189);
}